# @lynx-js/web-elements

## 0.12.4

### Patch Changes

- Preserve custom element false-attribute filtering metadata when applying the component decorator. ([#2603](https://github.com/lynx-family/lynx-stack/pull/2603))

## 0.12.3

### Patch Changes

- fix: inherit box sizing and border radius for x-input parts ([#2661](https://github.com/lynx-family/lynx-stack/pull/2661))

## 0.12.2

### Patch Changes

- fix: xmarkdown create img incorrectly ([#2540](https://github.com/lynx-family/lynx-stack/pull/2540))

## 0.12.1

### Patch Changes

- fix: XMarkdown slot created should not have prefix ([#2520](https://github.com/lynx-family/lynx-stack/pull/2520))

- feat: add x-markdown support ([#2412](https://github.com/lynx-family/lynx-stack/pull/2412))

  Add opt-in support for the `x-markdown` element on Lynx Web, including
  Markdown rendering together with its related styling, interaction, animation,
  truncation, range rendering, and effect capabilities exposed through the
  component API.

  Update the `web-core`, `web-core-wasm`, and `web-mainthread-apis` runtime
  paths to use the shared property-or-attribute setter from `web-constants`, so
  custom elements such as `x-markdown` can receive structured property values
  correctly instead of being forced through string-only attribute updates.

  ```javascript
  import '@lynx-js/web-elements/XMarkdown';
  ```

- fix: x-markdown inline view injection no longer queries light DOM children when the content attribute changes. Consumers must now pre-set `slot="{id}"` on the child element they want to project into `inlineview://{id}`. ([#2516](https://github.com/lynx-family/lynx-stack/pull/2516))

- fix: list cannot drag-scroll inside x-foldview-slot-ng ([#2507](https://github.com/lynx-family/lynx-stack/pull/2507))

  Cause: `touchstart` used `elementsFromPoint(pageX, pageY)` (expects `clientX/clientY`), so hit-testing can miss the real inner scroller (e.g. `x-list` shadow `#content`) when the document is scrolled.

  Fix: use `elementsFromPoint(clientX, clientY)` + `event.composedPath()` for Shadow DOM, and keep `previousPageX` updated during `touchmove`.

- fix: line-height of markdown-style should be added `px` ([#2509](https://github.com/lynx-family/lynx-stack/pull/2509))

- fix: list `bindscrolltolower` may not trigger because the lower threshold ([#2484](https://github.com/lynx-family/lynx-stack/pull/2484))
  sentinel had no effective size or offset, causing the bottom
  `IntersectionObserver` to miss the list boundary

## 0.12.0

### Minor Changes

- feat: add `willchange` event to `x-viewpager-ng` ([#2305](https://github.com/lynx-family/lynx-stack/pull/2305))

### Patch Changes

- fix: firefox `@supports(width:1rex)` ([#2288](https://github.com/lynx-family/lynx-stack/pull/2288))

- fix: check computed overflow style in `getTheMostScrollableKid` to avoid treating `overflow: visible` elements as scroll containers ([#2309](https://github.com/lynx-family/lynx-stack/pull/2309))

- fix: the inline-truncation should only work as a direct child of x-text ([#2287](https://github.com/lynx-family/lynx-stack/pull/2287))

- fix: getVisibleCells cannot work in firefox due to contentvisibilityautostatechange not propagate list-item ([#2308](https://github.com/lynx-family/lynx-stack/pull/2308))

- fix: foldview stuck issue ([#2304](https://github.com/lynx-family/lynx-stack/pull/2304))

## 0.11.3

### Patch Changes

- fix: firefox 147+ layout issue ([#2205](https://github.com/lynx-family/lynx-stack/pull/2205))

## 0.11.2

### Patch Changes

- Add scrollHeight/scrollWidth getters to XList. ([#2156](https://github.com/lynx-family/lynx-stack/pull/2156))

- Inherit padding styles for x-input elements. ([#2199](https://github.com/lynx-family/lynx-stack/pull/2199))

- Remove the default lazy-loading attribute from x-image elements. ([#2186](https://github.com/lynx-family/lynx-stack/pull/2186))

- Fix x-input number type forwarding to the inner input element. ([#2193](https://github.com/lynx-family/lynx-stack/pull/2193))

## 0.11.1

### Patch Changes

- feat: add wheel event handling and corresponding tests for x-foldview-ng ([#2145](https://github.com/lynx-family/lynx-stack/pull/2145))

## 0.11.0

### Minor Changes

- feat: integrate the LinearContainer Compat plugin ([#2100](https://github.com/lynx-family/lynx-stack/pull/2100))

  **This is a BREAKING CHANGE**

  Now we integrated the `LinearCompat` into @lynx-js/web-elements. Developers can safely remove the following imports:

  ```js
  import '@lynx-js/web-elements/compat/LinearContainer';
  ```

  ```js
  import '@lynx-js/web-elements-compat/LinearContainer';
  ```

### Patch Changes

- fix: list-item `contain` property changes from `size` to `layout paint`, because the size of the `list-item` can be expanded by its children. ([#2043](https://github.com/lynx-family/lynx-stack/pull/2043))

- Use the scoped `@lynx-js/source-field` for source build resolution. ([#2096](https://github.com/lynx-family/lynx-stack/pull/2096))

## 0.10.1

### Patch Changes

- feat: implement x-webview component ([#2061](https://github.com/lynx-family/lynx-stack/pull/2061))

- feat: support `recyclable="false"` on `list-item` and enable overflow visibility ([#2069](https://github.com/lynx-family/lynx-stack/pull/2069))

## 0.10.0

### Minor Changes

- chore: migrate all @lynx-js/web-elements-\* packages into one ([#2057](https://github.com/lynx-family/lynx-stack/pull/2057))

  #### Before

  ```js
  import '@lynx-js/web-elements-template';
  import '@lynx-js/web-elements-compat/LinearContainer';
  ```

  #### After

  ```js
  import '@lynx-js/web-elements/html-templates';
  import '@lynx-js/web-elements/compat/LinearContainer';
  ```

### Patch Changes

- refactor: change code structure for improved readability and maintainability ([#2004](https://github.com/lynx-family/lynx-stack/pull/2004))

  - enable noUnusedLocals for web-elements
  - add source field for supporting @rsbuild/plugin-source-build

  This is a part of #1937

## 0.9.0

### Minor Changes

- feat: new flex:val impl ([#1979](https://github.com/lynx-family/lynx-stack/pull/1979))

### Patch Changes

- fix: x-input display should add !important to avoid override ([#1960](https://github.com/lynx-family/lynx-stack/pull/1960))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.9.0

## 0.8.11

### Patch Changes

- fix: when estimated-main-axis-size-px is not set, should use the height of list ([#1930](https://github.com/lynx-family/lynx-stack/pull/1930))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.11

## 0.8.10

### Patch Changes

- fix: define x-foldview-slot-drag-ng typo. ([#1915](https://github.com/lynx-family/lynx-stack/pull/1915))

- feat: 1. Added support for the list `estimated-main-axis-size-px` property; the width and height of `list-item` are no longer required. ([#1911](https://github.com/lynx-family/lynx-stack/pull/1911))

  2. Fixed an issue where the list `lower-threshold-item-count` event would not trigger when using a horizontal layout under a waterfall layout.

  3. Fixed an issue where calling the list `autoScroll` method in `useEffect` might not scroll.

  4. Fixed an issue where the `scrolltolower` event might not be triggered in waterfall, because the lower styles was not updated in `registerEventEnableStatusChangeHandler`.

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.10

## 0.8.9

### Patch Changes

- fix: layoutchange event result `detail.top` and `detail.left` was `0` incorrectly ([#1887](https://github.com/lynx-family/lynx-stack/pull/1887))

- textarea placeholder inherits font-size by default ([#1874](https://github.com/lynx-family/lynx-stack/pull/1874))

- feat: support <x-text text="content"></x-text> ([#1881](https://github.com/lynx-family/lynx-stack/pull/1881))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.9

## 0.8.8

### Patch Changes

- fix: ([#1837](https://github.com/lynx-family/lynx-stack/pull/1837))

  1. `LynxView.updateData()` cannot trigger `dataProcessor`.

  2. **This is a break change:** The second parameter of `LynxView.updateData()` has been changed from `UpdateDataType` to `string`, which is the `processorName` (default is `default` which will use `defaultDataProcessor`). This change is to better align with Native. The current complete type is as follows:

  ```ts
  LynxView.updateData(data: Cloneable, processorName?: string | undefined, callback?: (() => void) | undefined): void
  ```

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.8

## 0.8.7

### Patch Changes

- The img within svg does not inherit the position ([#1769](https://github.com/lynx-family/lynx-stack/pull/1769))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.7

## 0.8.6

### Patch Changes

- fix: 1. svg use image tag to render, to differentiate background-image styles ([#1668](https://github.com/lynx-family/lynx-stack/pull/1668))

  1. use blob instead of raw data-uri

  > Not using data-uri(data:image/svg+xml;utf8,${props.content})
  > since it has follow limitations:
  >
  > < and > must be encoded to %3C and %3E.
  > Double quotes must be converted to single quotes.
  > Colors must use a non-hex format because # will not work inside data-uri.
  > See: https://codepen.io/zvuc/pen/BWNLJL
  > Instead, we use modern Blob API to create SVG URL that have the same support

- Updated dependencies [[`d618304`](https://github.com/lynx-family/lynx-stack/commit/d6183049a2f67a5ec68c2e1ef9efbdf26af4c343), [`1d97fce`](https://github.com/lynx-family/lynx-stack/commit/1d97fce68178418f6af8d50e54ab24a5567452b7)]:
  - @lynx-js/web-elements-template@0.8.6

## 0.8.5

### Patch Changes

- fix: register attr of width is set to height incorrectly ([#1649](https://github.com/lynx-family/lynx-stack/pull/1649))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.5

## 0.8.4

### Patch Changes

- feat: add autocomplete attribute support for x-input component ([#1444](https://github.com/lynx-family/lynx-stack/pull/1444))

  Implements autocomplete attribute forwarding from the x-input custom element to the internal HTML input element in the shadow DOM. This enables standard browser autocomplete functionality for x-input elements.

- Add referrerpolicy attribute support to x-image web component ([#1420](https://github.com/lynx-family/lynx-stack/pull/1420))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.4

## 0.8.3

### Patch Changes

- feat: support color style for x-textarea ([#1382](https://github.com/lynx-family/lynx-stack/pull/1382))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.3

## 0.8.2

### Patch Changes

- Add crossorigin attribute support to x-image component ([#1340](https://github.com/lynx-family/lynx-stack/pull/1340))

  - Added `crossorigin` to the `observedAttributes` array in `ImageSrc.ts`
  - Implemented `#handleCrossorigin` handler using the `bindToAttribute` helper to forward the crossorigin attribute from the custom element to the internal `<img>` element
  - Added comprehensive test coverage to verify the attribute is properly passed through to the shadow DOM

  This enables CORS-enabled image loading when using `<x-image crossorigin="anonymous">` or similar configurations.

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.2

## 0.8.1

### Patch Changes

- fix: indicator dots' bg-color on safari 26 ([#1298](https://github.com/lynx-family/lynx-stack/pull/1298))

  https://bugs.webkit.org/show_bug.cgi?id=296048
  The animation name should be defined in the template

- fix: list may only render only one column in ReactLynx. ([#1280](https://github.com/lynx-family/lynx-stack/pull/1280))

  This is because `span-count` may not be specified when `list-type` is specified, resulting in layout according to `span-count="1"`. Postponing the acquisition of `span-count` until layoutListItem can solve this problem.

- Updated dependencies [[`443f3d5`](https://github.com/lynx-family/lynx-stack/commit/443f3d57fc9ac41c3e845bdba5adfa4df16e5519)]:
  - @lynx-js/web-elements-template@0.8.1

## 0.8.0

### Minor Changes

- refactor: move exposure system to web-core ([#1254](https://github.com/lynx-family/lynx-stack/pull/1254))

  **THIS IS A BREAKING CHANGE**

  **You'll need to upgrade your @lynx-js/web-elements to >= 0.8.0**

  For SSR and better performance, we moved the lynx's exposure system from web-element to web-core.

  Before this commit, we create Intersection observers by creating HTMLElements.

  After this commit, we will create such Intersection observers after dom stabled.

  Also, the setInterval for exposure has been removed, now we use an on time lazy timer for such features.

### Patch Changes

- feat: add support for scrollTo method in x-swiper, remove scrollToNext && scrollToPrevious method ([#1197](https://github.com/lynx-family/lynx-stack/pull/1197))

- refactor: improve `linear-weight-sum` performance ([#1216](https://github.com/lynx-family/lynx-stack/pull/1216))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.8.0

## 0.7.7

### Patch Changes

- fix: the param `index` of list scrollToPosition function should be `position`. ([#1135](https://github.com/lynx-family/lynx-stack/pull/1135))

- fix: in lynx-view all-on-ui mode, the input event of input and textarea is triggered twice, and the first e.detail is a string, which does not conform to the expected data format. ([#1179](https://github.com/lynx-family/lynx-stack/pull/1179))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.7.7

## 0.7.6

### Patch Changes

- fix: incorrect syntax for x-canvas part ([#1067](https://github.com/lynx-family/lynx-stack/pull/1067))

- feat: x-input && x-textarea add attribute input-filter, which can filter input value. ([#1037](https://github.com/lynx-family/lynx-stack/pull/1037))

- fix: incorrect top style of x-foldview-slot-ng if the toolbar is wrapped in lynx-wrapper ([#1101](https://github.com/lynx-family/lynx-stack/pull/1101))

- perf: add loading="lazy" for image element ([#1056](https://github.com/lynx-family/lynx-stack/pull/1056))

  https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#loading

- fix: --lynx-color will be removed, and if color contains `gradient` it will be processed as transparent. ([#1069](https://github.com/lynx-family/lynx-stack/pull/1069))

- Updated dependencies [[`62d1078`](https://github.com/lynx-family/lynx-stack/commit/62d1078e67f2aba216a0d97bf1ad9ece624e498e)]:
  - @lynx-js/web-elements-template@0.7.6

## 0.7.5

### Patch Changes

- feat: x-input && x-textarea add new method: `getValue`, which returns the value of the input element, selectionStart and selectEnd when success. ([#982](https://github.com/lynx-family/lynx-stack/pull/982))

- feat: x-input and x-textarea bindinput event return structures add `selectionStart`, `selectionEnd`, and `textLength`, `textLength` are marked as @deprecated ([#996](https://github.com/lynx-family/lynx-stack/pull/996))

- feat: x-input and x-textarea support bindselection event, the returned type structure is `{ selectionStart: number; selectionEnd: number }`. ([#990](https://github.com/lynx-family/lynx-stack/pull/990))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.7.5

## 0.7.4

### Patch Changes

- fix: x-foldview-ng `overflow-y: scroll` add !important to avoid being covered. ([#932](https://github.com/lynx-family/lynx-stack/pull/932))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.7.4

## 0.7.3

### Patch Changes

- refactor: allow elements to be rendered before :defined ([#855](https://github.com/lynx-family/lynx-stack/pull/855))

  Before this commit, we don't allow developers to render these elements before they're defined.

  In this commit, we will remove these restrictions.

- fix: remove the style `contain: content` of x-foldview-ng, otherwise it will cause the `position: fixed` elements to be positioned incorrectly after scrolling. ([#878](https://github.com/lynx-family/lynx-stack/pull/878))

- fix: x-list should observe property list-type change. ([#862](https://github.com/lynx-family/lynx-stack/pull/862))

  Before this commit, list-type only works when it was first assigned.

  use `requestAnimationFrame` instead of `queueMicrotask` to layoutListItem, this is because it may cause crashes in webkit.

- fix: list-item should support linear layout. ([#859](https://github.com/lynx-family/lynx-stack/pull/859))

- Updated dependencies []:
  - @lynx-js/web-elements-template@0.7.3

## 0.7.2

### Patch Changes

- refactor: split shadowroot templates into a package ([#811](https://github.com/lynx-family/lynx-stack/pull/811))

  We're going to implement Lynx Web Platform's SSR based on the `shadowrootmode`.

  `https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/shadowRootMode`

  (chrome 111, firefox 123, safari 16.4)

  This means those modern browsers are able to show the correct layout before the web components are defined.

  To make this work, we have to split the shadowroot template string into a new package `@lynx-js/web-elements-template`.

  No features affected.

- Updated dependencies [[`ae9652a`](https://github.com/lynx-family/lynx-stack/commit/ae9652a7a1d6247959bb41e7d76793300eddb741), [`ae9652a`](https://github.com/lynx-family/lynx-stack/commit/ae9652a7a1d6247959bb41e7d76793300eddb741)]:
  - @lynx-js/web-elements-template@0.7.2
  - @lynx-js/web-elements-reactive@0.2.2

## 0.7.1

### Patch Changes

- fix(web): x-swiper-item threshold updated to 20 ([#639](https://github.com/lynx-family/lynx-stack/pull/639))

- fix: In React19, setter and getter functions are treated as properties, making it impossible to retrieve the current value via attributes. ([#639](https://github.com/lynx-family/lynx-stack/pull/639))

## 0.7.0

### Minor Changes

- fix: ([#629](https://github.com/lynx-family/lynx-stack/pull/629))

  - typo of `initial-scroll-offset` in scroll-view.
  - scroll-view's `initial-scroll-index` is changed to `initial-scroll-to-index`.

### Patch Changes

- fix: x-image border-radius setting has no effect. ([#638](https://github.com/lynx-family/lynx-stack/pull/638))

- perf: late evaluate document.font.ready ([#604](https://github.com/lynx-family/lynx-stack/pull/604))

- perf: improve raw-text performance ([#601](https://github.com/lynx-family/lynx-stack/pull/601))

- fix: the scroll-x field of scroll-view needs to be handled correctly. ([#635](https://github.com/lynx-family/lynx-stack/pull/635))

  Before this, scroll-x of '' would result in no scrolling along x-axis.

- feat: x-list supports `need-visible-item-info`, now you can get visible cells info in `scroll`、`scrolltoupper`、`scrolltolower` event. ([#595](https://github.com/lynx-family/lynx-stack/pull/595))

## 0.6.0

### Minor Changes

- fix: When list-type is not specified, it is treated as single formatting. ([#535](https://github.com/lynx-family/lynx-stack/pull/535))

- feat: improve compatibility for chrome 108 & support linear-gradient for nested x-text ([#590](https://github.com/lynx-family/lynx-stack/pull/590))

  **This is a breaking change**

  - Please upgrade your `@lynx-js/web-elements` to >=0.6.0
  - Please upgrade your `@lynx-js/web-core` to >=0.12.0
  - The compiled lynx template json won't be impacted.

  On chrome 108, the `-webkit-background-clip:text` cannot be computed by a `var(--css-var-value-text)`

  Therefore we move the logic into style transformation logic.

  Now the following status is supported

  ```
  <text style="color:linear-gradient()">
    <text>
    <text>
  </text>
  ```

### Patch Changes

- feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))

  Now use support the following usage

  - mainthread event
  - mainthread ref
  - runOnMainThread/runOnBackground
  - ref.current.xx

- feat: support `layoutchange` event for x-overlay-ng ([#519](https://github.com/lynx-family/lynx-stack/pull/519))

- fix: position:fixed not work in scroll-view ([#580](https://github.com/lynx-family/lynx-stack/pull/580))

- fix: x-list may cause error: 'Resizeobserver loop completed with undelivered notifications'. ([#541](https://github.com/lynx-family/lynx-stack/pull/541))

- fix: refactor foldview slot offset logic ([#575](https://github.com/lynx-family/lynx-stack/pull/575))

- fix: improve x-foldview-ng ([#513](https://github.com/lynx-family/lynx-stack/pull/513))

  - support fling for touch event driven scrolling
  - allow the height of `x-foldview-slot-ng` + `x-foldview-toolbar-ng` > `x-foldview-ng`
  - do not prevent horizontal gesture. After this commit we only allow one direction gesture for one touch (start -> end)

- feat: add list with waterfall ([#331](https://github.com/lynx-family/lynx-stack/pull/331))

## 0.5.4

### Patch Changes

- chore: bump the output target to es2024 ([#518](https://github.com/lynx-family/lynx-stack/pull/518))

- fix: the `\n` character should create a new line ([#522](https://github.com/lynx-family/lynx-stack/pull/522))

  add `white-space-collapse: preserve-breaks` to raw-text

- fix: the `input` event of x-input with number type should have raw value ([#517](https://github.com/lynx-family/lynx-stack/pull/517))

  For `type:=number` x-input with typed value "2."

  Before this commit: the value is "2"

  After this commit the value is "2."

## 0.5.3

### Patch Changes

- feat: add `layoutchange` event support for x-view and x-text ([#408](https://github.com/lynx-family/lynx-stack/pull/408))

## 0.5.2

### Patch Changes

- fix: When list with list-type: flow, scrolltoupper, scrolltolower were specified, there was a blank block. ([#379](https://github.com/lynx-family/lynx-stack/pull/379))

- fix: do not show scroll bar ([#406](https://github.com/lynx-family/lynx-stack/pull/406))

## 0.5.1

### Patch Changes

- Updated dependencies [[`082ad97`](https://github.com/lynx-family/lynx-stack/commit/082ad97510c212aa00a9395044bb6fc39a82940a)]:
  - @lynx-js/web-elements-reactive@0.2.1

## 0.5.0

### Minor Changes

- feat: 1. list adds support for the `sticky` attribute. Now sticky-offset, sticky-top, and sticky-bottom will only take effect when `sticky` is `true`. ([#257](https://github.com/lynx-family/lynx-stack/pull/257))

  2. Added support for `list-main-axis-gap`, `list-cross-axis-gap`.

- feat(web): The list element supports list-type with **flow**. ([#240](https://github.com/lynx-family/lynx-stack/pull/240))

  It supports all attributes and events under single, and also provides `full-span`.

  For detailed usage, please refer to the official website.

## 0.4.0

### Minor Changes

- refactor: remove web-elements/lazy and loadNewTag ([#123](https://github.com/lynx-family/lynx-stack/pull/123))

  - remove @lynx-js/web-elements/lazy
  - remove loadElement
  - remove loadNewTag callback

  **This is a breaking change**

  Now we removed the default lazy loading preinstalled in web-core

  Please add the following statement in your web project

  ```
  import "@lynx-js/web-elements/all";
  ```

### Patch Changes

- feat: never require the x-enable-xx-event attributes ([#157](https://github.com/lynx-family/lynx-stack/pull/157))

  After this commit, we do not need user to add `x-enable-xx-event` to enable corresponding events

- feat: add support for `<lynx-view/>` with shadowroot ([#198](https://github.com/lynx-family/lynx-stack/pull/198))

  add a minor logic in `<x-overlay-ng>` to be compatiable with the <lynx-view> with a shadowroot

- Updated dependencies [[`4c2ee65`](https://github.com/lynx-family/lynx-stack/commit/4c2ee65368eb4b39722ed36305101fe89a782b1a)]:
  - @lynx-js/web-elements-reactive@0.2.0

## 0.3.0

### Minor Changes

- feat: support `justify-content`, `align-self` in linear container ([#37](https://github.com/lynx-family/lynx-stack/pull/37))

  Now these two properties could work in a linear container.

  We don't transforms the `justify-content` and `align-self` to css vars any more.

  The previous version of `@lynx-js/web-core` won't work with current `@lynx-js/web-core` after this change.

### Patch Changes

- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))

- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
  - @lynx-js/web-elements-reactive@0.1.1

## 0.2.4

### Patch Changes

- 1abf8f0: feat: `inline-text` is deprecated, now you can use `x-text` instead in `x-text`.
- 1abf8f0: fix: Removed the list-item style `contain: strict`. Previously we thought it would affect `content-visibility: auto`, but it turns out that this is wrong.

  Now, you don't need to specify the width and height of list-item, it will be stretched by the child elements.

- 1abf8f0: fix: do truncation layout calculation after fonts loaded
- 1abf8f0: refractor: x-foldview-ng gesture use pageX&pageY to replace the screenX&screenY
- 1abf8f0: fix: x-input should inherit color style
- 1abf8f0: feat: `inline-image` is deprecated, now you can use `x-image` instead in `x-text`.

## 0.2.3

### Patch Changes

- 5a19264: feat: x-canvas is deprecated.

  Since other platforms do not implement it and do not plan to implement it, we deprecate it.

- b26ed57: fix: x-foldview-ng \_\_headershowing add compatibility criteria for Android WebView.
- 1d4f831: fix: the x-input should inherit margin properties

## 0.2.2

### Patch Changes

- 7ac2b1c: fix: remote `x-overlay-ng #dialog[open] { display: contents; }` && add top for chrome87.

  dialog[open].style.display is actually not allowed to be set to contents, it is always block.
  But in chrome87 it is allowed to be set to contents by mistake, which will cause it to not occupy any space, so we remove `display: contents;` of x-overlay-ng.

- d17e7e5: fix: add `position: fixed` for x-overlay-ng dialog[open].

  The `position` property of the x-overlay-ng dialog (when open) defaults to `absolute` other than `fixed` on some devices.

## 0.2.1

### Patch Changes

- 46a18cd: chore: fix scrollbar style for scroll-view
- f068dce: fix: rename vertical property to isVertical for x-swiepr

## 0.2.0

### Minor Changes

- 49f7f0b: break: remove `bounces` support for <scroll-view>

  We removed the bounces support for scroll-view.

### Patch Changes

- 0c6e1bb: fix: set width&height with DPR
- a72b50f: fix: set background-color inherit of x-input::part(input), otherwise its background may cover its parent node.

## 0.1.6

### Patch Changes

- 5649861: fix(web): x-image the style of position, left, right, top, bottom should be inherit only when auto-size.
- 65ac6a2: fix: add transform, opacity, z-index, filter CSS Properties inherit when x-image auto-size is set.
- 875cfd3: fix(web): x-textarea is supposed to be not resizeable

## 0.1.5

### Patch Changes

- b2fd603: fix(web): pin the `justify-content` of x-swiper to be `flex-start`
- 3ebcb99: fix(web): the first child of `<x-overlay-ng />` should have `position: absolute`.

  On Safari 16.1, We should have `position: absolute` to show the overlay content correctly.

  The parent `<dialog />` already have `position: fixed`, therefore we could use a absolute position.

- c19bba8: fix: the default justify-content value should be `flex-start`

## 0.1.4

### Patch Changes

- 5c3f447: fix(web): x-image::part(img)img style position, tip, left, right, bottom change to be inherit, to fix the problem that x-image setting location does not work.
- addc058: fix: incorrect linear detect after chrome 130

  see https://chromestatus.com/feature/5242724333387776

- 90131cc: feat(web): x-text support scrollIntoView method.
- 75877ed: fix(web): the scroll-view is always a linear container

  After this commit, we don't need to use `@container` queries to apply linear container styles for `scroll-view`'s kids

  we use type selector directly.

## 0.1.3

### Patch Changes

- 9b99484: fix: blank inline-text in color:linear-gradient text element

  Before this commit, those parent text element with style `color:linear-gradient()` will cause empty content in children inline-text element

- f650509: fix: browser compatibility issues

  1. safari 17.2~18.0 issue

  `display:linear` doesn't work

  2. chrome < 99 issue

  text may be blank on these browsers

## 0.1.2

### Patch Changes

- 6a97751: fix: x-folview-ng x-axis scrolling on safari/firefox
- 55f73a2: fix: x-foldview-ng block y-axis js scroll for x-axis gesture

## 0.1.1

### Patch Changes

- ddc8c5a: fix(web): add @supports of @container to avoid crash less chrome 117.

## 0.1.0

### Minor Changes

- 3547621: feat(web): use `<lynx-wrapper/>` to replace `<div style="display:content"/>`
- bed4f24: feat(web): implement <x-list> with list-type="single"

  #### 1. RFC

  https://github.com/lynx-wg/lynx-stack/issues/106

  #### 2. Implementation differences with RFC

  ##### paging-enabled

  deprecated, no need to implement

  ##### layoutcomplete

  Triggered only after the first screen because using contentvisibilityautostatechange.

  Here, a setTimeout is set to trigger layoutcomplete 100ms after the content-visible property of **content** changes.

  > This is because content is the parent container of list-item, and content is always visible before list-item.
  > We cannot obtain the timing of all the successfully visible list-items on the screen, so 100ms is used to delay this behavior.

  ##### event-scrolltoedge

  split bindscrolltoupperedge and bindscrooltolowerdge.

  ##### event-scrolltoupper/lower

  Can be used with upper/lower-threshold-item-count.

  Attention, when the number of x-list children changes, scrolltoupper/lower will be re-triggered (if the new node is on the screen).

  ##### getVisibleCells, layoutcomplete

  The returned cells may be an empty array, because there is a high probability that the contentvisibilityautostatechange event of list-item will not be captured when the first screen is displayed.

  #### 3. Tests not implemented

  ##### HTML Tests

  1. event-layoutcomplete skipped webkit, firefox due to contentvisibilityautostatechange not propagate
  2. get-visible-cells skipped webkit, firefox due to contentvisibilityautostatechange not propagate

  ##### React Tests

  1. lynx.createQuery not supported.

- b323923: feat(web): support **ReplaceElement, **CreateImage, \_\_CreateScrollView
- 39cf3ae: feat: improve performance for supporting linear layout

  Before this commit, we'll use `getComputedStyle()` to find out if a dom is a linear container.

  After this commit, we'll use the css variable cyclic toggle pattern and `@container style()`

  This feature requires **Chrome 111, Safari 18**.

  We'll provide a fallback implementation for firefox and legacy browsers.

  After this commit, your `flex-direction`, `flex-shrink`, `flex`, `flex-grow`, `flex-basis` will be transformed to a css variable expression.

- 2e0a780: feat: move LinearContainer to web-elements-compat

  In this commit, we're going to remove all LinearContainer Class from custom elements.

  It now relies on the `@container style(){}`, which is supported by chrome 111 and safari 18.

  For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.

  ```javascript
  import '@lynx-js/web-elements-compat/LinearContainer';
  import '@lynx-js/web-elements/all';
  ```

- f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element

  To avoid sending duplicated events for focus, we'll rename them.

  **This is a breaking change**

- 81be6cf: feat(web): support `load` and `error` events for x-image and filter-image
  fix #66
- f8d1d98: feat: allow custom elements to be lazy loaded

  After this commit, we'll allow developer to define custom elements lazy.

  A new api `onElementLoad` will be added to the `LynxCard`.

  Once a new element is creating, it will be called with the tag name.

  There is also a simple way to use this feature

  ```javascript
  import { LynxCard } from '@lynx-js/web-core';
  import { loadElement } from '@lynx-js/web-elements/lazy';
  import '@lynx-js/web-elements/index.css';
  import '@lynx-js/web-core/index.css';
  import './index.css';

  const lynxcard = new LynxCard({
    ...beforeConfigs,
    onElementLoad: loadElement,
  });
  ```

- 5018d8f: feat: export more objects of web-elements
- 8c6eeb9: fix(web): rename x-swiper-itrm to swiper-item
- 1fe49a2: feat(web): add custom element x-audio-tt

  #### The behavior is different from the native x-audio-tt:

  - When src changes, resources will not be loaded immediately. Resources will only be loaded when the play and prepare methods are triggered.

  > This is because resource loading and decoding are two steps in native lynx, while only resource loading can be controlled in web.
  > So loading and decoding are handled on one side.

  - The code returned by the binderror event does not include -4

  #### Unimplemented properties:

  - autoplay
  - playertype
  - experimental-ios-async-prepare

  #### Unimplemented methods:

  - requestFocus
  - releaseFocus

### Patch Changes

- 987da15: fix: x-foldview-ng scrolling behavior

  - fix scrolling behavior on its sub dom-tree has x-refresh-view
  - fix scrolling behavior on its sub dom-tree has x-viewpager-ng

- 3e66349: fix: x-viewpager bindchange use scrollEnd to trigger; bindoffsetchange use scroll to trigger.
- 2b7a4fe: fix: exposure should track the interaction with the closest scroll able ancestor
- 461d965: fix(web): swiper specifies current and bindchange, may cause jitter problem and some layout problems.

  1. swiper specifies current and bindchange, may cause jitter problem.
  2. When there are current not 0 && circular, the first layout is not correct.
  3. When there are circular mode='carousel' attributes, the first paint position is not correct.
  4. swiper-item with border is not right, should use offsetWidth/offsetHeight.

- 7ee0dc1: fix(web): rename swiper-item to x-swiper-item
- 7c752d9: fix(web): two bugs of x-textarea and x-input:

  1. When inputting Chinese characters, you need to send an input event again after the input is completed.

  2. When the business input event is bound to the input event inside web-elements, the input event will be triggered twice by mistake, so stopImmediatePropagation needs to be prevented in the form

- 29e4684: fix: list use debounce scroll in safari instead of scrollend
- 33691cd: fix(web): the lynx-wrapper should not have any impact on layout and style

  Before this commit, there exists some css selectors like `custome-element > another-custom-element`

  This may cause an issue of the direct child is a `lynx-wrapper`

  We submit this commit to fix it.

- 2047658: fix: exposure

  fix the error on triggering exposure event

- 917e496: fix: x-viewpager-item-ng should not respond to position:absoulte

  add `position:relateive !important` for it.

- 532380d: fix: ::part()::after selector not work on chrome 100
- a41965d: fix: foldview horizontal scroll in safari
- a7a222b: fix(web): x-view-pager-ng

  1. select-index, initial-select-index should only selectTab if the element has a connectedCallback.
  2. add scroll-snap-stop to x-view-pager-ng, to slide only one element at one time.

- c0a482a: fix(web): split flex, because flex-basis of undefined will cause the property to invalid
- 314cb44: fix(web): x-textarea replace blur,focus with lynxblur,lynxfocus.
- e0854a8: fix(web): add scroll-snap-stop of viewpager-item
- e86bba0: fix(web): do not remove `"false"` value for dataset attributes

  fix #77

- f0a50b6: chore: add tolerence for ios 14

  close #81

- Updated dependencies [2e0a780]
- Updated dependencies [a1d0070]
- Updated dependencies [e170052]
- Updated dependencies [e86bba0]
  - @lynx-js/web-elements-reactive@0.1.0
