@lynx-js/web-elements-canary 0.12.4-canary-20260617-bb7927bd → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +38 -15
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-elements
2
2
 
3
- ## 0.12.4-canary-20260617035556-bb7927bdd9ccf5be6a0670538ca466770b320ee9
3
+ ## 0.12.4
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -37,7 +37,7 @@
37
37
  correctly instead of being forced through string-only attribute updates.
38
38
 
39
39
  ```javascript
40
- import "@lynx-js/web-elements/XMarkdown";
40
+ import '@lynx-js/web-elements/XMarkdown';
41
41
  ```
42
42
 
43
43
  - 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))
@@ -107,11 +107,11 @@
107
107
  Now we integrated the `LinearCompat` into @lynx-js/web-elements. Developers can safely remove the following imports:
108
108
 
109
109
  ```js
110
- import "@lynx-js/web-elements/compat/LinearContainer";
110
+ import '@lynx-js/web-elements/compat/LinearContainer';
111
111
  ```
112
112
 
113
113
  ```js
114
- import "@lynx-js/web-elements-compat/LinearContainer";
114
+ import '@lynx-js/web-elements-compat/LinearContainer';
115
115
  ```
116
116
 
117
117
  ### Patch Changes
@@ -137,20 +137,21 @@
137
137
  #### Before
138
138
 
139
139
  ```js
140
- import "@lynx-js/web-elements-template";
141
- import "@lynx-js/web-elements-compat/LinearContainer";
140
+ import '@lynx-js/web-elements-template';
141
+ import '@lynx-js/web-elements-compat/LinearContainer';
142
142
  ```
143
143
 
144
144
  #### After
145
145
 
146
146
  ```js
147
- import "@lynx-js/web-elements/html-templates";
148
- import "@lynx-js/web-elements/compat/LinearContainer";
147
+ import '@lynx-js/web-elements/html-templates';
148
+ import '@lynx-js/web-elements/compat/LinearContainer';
149
149
  ```
150
150
 
151
151
  ### Patch Changes
152
152
 
153
153
  - refactor: change code structure for improved readability and maintainability ([#2004](https://github.com/lynx-family/lynx-stack/pull/2004))
154
+
154
155
  - enable noUnusedLocals for web-elements
155
156
  - add source field for supporting @rsbuild/plugin-source-build
156
157
 
@@ -185,6 +186,7 @@
185
186
  - fix: define x-foldview-slot-drag-ng typo. ([#1915](https://github.com/lynx-family/lynx-stack/pull/1915))
186
187
 
187
188
  - 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))
189
+
188
190
  2. Fixed an issue where the list `lower-threshold-item-count` event would not trigger when using a horizontal layout under a waterfall layout.
189
191
 
190
192
  3. Fixed an issue where calling the list `autoScroll` method in `useEffect` might not scroll.
@@ -212,6 +214,7 @@
212
214
  ### Patch Changes
213
215
 
214
216
  - fix: ([#1837](https://github.com/lynx-family/lynx-stack/pull/1837))
217
+
215
218
  1. `LynxView.updateData()` cannot trigger `dataProcessor`.
216
219
 
217
220
  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:
@@ -237,6 +240,7 @@
237
240
  ### Patch Changes
238
241
 
239
242
  - fix: 1. svg use image tag to render, to differentiate background-image styles ([#1668](https://github.com/lynx-family/lynx-stack/pull/1668))
243
+
240
244
  1. use blob instead of raw data-uri
241
245
 
242
246
  > Not using data-uri(data:image/svg+xml;utf8,${props.content})
@@ -287,6 +291,7 @@
287
291
  ### Patch Changes
288
292
 
289
293
  - Add crossorigin attribute support to x-image component ([#1340](https://github.com/lynx-family/lynx-stack/pull/1340))
294
+
290
295
  - Added `crossorigin` to the `observedAttributes` array in `ImageSrc.ts`
291
296
  - Implemented `#handleCrossorigin` handler using the `bindToAttribute` helper to forward the crossorigin attribute from the custom element to the internal `<img>` element
292
297
  - Added comprehensive test coverage to verify the attribute is properly passed through to the shadow DOM
@@ -449,6 +454,7 @@
449
454
  ### Minor Changes
450
455
 
451
456
  - fix: ([#629](https://github.com/lynx-family/lynx-stack/pull/629))
457
+
452
458
  - typo of `initial-scroll-offset` in scroll-view.
453
459
  - scroll-view's `initial-scroll-index` is changed to `initial-scroll-to-index`.
454
460
 
@@ -475,6 +481,7 @@
475
481
  - feat: improve compatibility for chrome 108 & support linear-gradient for nested x-text ([#590](https://github.com/lynx-family/lynx-stack/pull/590))
476
482
 
477
483
  **This is a breaking change**
484
+
478
485
  - Please upgrade your `@lynx-js/web-elements` to >=0.6.0
479
486
  - Please upgrade your `@lynx-js/web-core` to >=0.12.0
480
487
  - The compiled lynx template json won't be impacted.
@@ -497,6 +504,7 @@
497
504
  - feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))
498
505
 
499
506
  Now use support the following usage
507
+
500
508
  - mainthread event
501
509
  - mainthread ref
502
510
  - runOnMainThread/runOnBackground
@@ -511,6 +519,7 @@
511
519
  - fix: refactor foldview slot offset logic ([#575](https://github.com/lynx-family/lynx-stack/pull/575))
512
520
 
513
521
  - fix: improve x-foldview-ng ([#513](https://github.com/lynx-family/lynx-stack/pull/513))
522
+
514
523
  - support fling for touch event driven scrolling
515
524
  - allow the height of `x-foldview-slot-ng` + `x-foldview-toolbar-ng` > `x-foldview-ng`
516
525
  - do not prevent horizontal gesture. After this commit we only allow one direction gesture for one touch (start -> end)
@@ -561,6 +570,7 @@
561
570
  ### Minor Changes
562
571
 
563
572
  - 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))
573
+
564
574
  2. Added support for `list-main-axis-gap`, `list-cross-axis-gap`.
565
575
 
566
576
  - feat(web): The list element supports list-type with **flow**. ([#240](https://github.com/lynx-family/lynx-stack/pull/240))
@@ -574,6 +584,7 @@
574
584
  ### Minor Changes
575
585
 
576
586
  - refactor: remove web-elements/lazy and loadNewTag ([#123](https://github.com/lynx-family/lynx-stack/pull/123))
587
+
577
588
  - remove @lynx-js/web-elements/lazy
578
589
  - remove loadElement
579
590
  - remove loadNewTag callback
@@ -724,9 +735,11 @@
724
735
  Before this commit, those parent text element with style `color:linear-gradient()` will cause empty content in children inline-text element
725
736
 
726
737
  - f650509: fix: browser compatibility issues
738
+
727
739
  1. safari 17.2~18.0 issue
728
740
 
729
741
  `display:linear` doesn't work
742
+
730
743
  2. chrome < 99 issue
731
744
 
732
745
  text may be blank on these browsers
@@ -787,10 +800,12 @@
787
800
  #### 3. Tests not implemented
788
801
 
789
802
  ##### HTML Tests
803
+
790
804
  1. event-layoutcomplete skipped webkit, firefox due to contentvisibilityautostatechange not propagate
791
805
  2. get-visible-cells skipped webkit, firefox due to contentvisibilityautostatechange not propagate
792
806
 
793
807
  ##### React Tests
808
+
794
809
  1. lynx.createQuery not supported.
795
810
 
796
811
  - b323923: feat(web): support **ReplaceElement, **CreateImage, \_\_CreateScrollView
@@ -815,8 +830,8 @@
815
830
  For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.
816
831
 
817
832
  ```javascript
818
- import "@lynx-js/web-elements-compat/LinearContainer";
819
- import "@lynx-js/web-elements/all";
833
+ import '@lynx-js/web-elements-compat/LinearContainer';
834
+ import '@lynx-js/web-elements/all';
820
835
  ```
821
836
 
822
837
  - f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element
@@ -838,11 +853,11 @@
838
853
  There is also a simple way to use this feature
839
854
 
840
855
  ```javascript
841
- import { LynxCard } from "@lynx-js/web-core";
842
- import { loadElement } from "@lynx-js/web-elements/lazy";
843
- import "@lynx-js/web-elements/index.css";
844
- import "@lynx-js/web-core/index.css";
845
- import "./index.css";
856
+ import { LynxCard } from '@lynx-js/web-core';
857
+ import { loadElement } from '@lynx-js/web-elements/lazy';
858
+ import '@lynx-js/web-elements/index.css';
859
+ import '@lynx-js/web-core/index.css';
860
+ import './index.css';
846
861
 
847
862
  const lynxcard = new LynxCard({
848
863
  ...beforeConfigs,
@@ -855,30 +870,36 @@
855
870
  - 1fe49a2: feat(web): add custom element x-audio-tt
856
871
 
857
872
  #### The behavior is different from the native x-audio-tt:
873
+
858
874
  - When src changes, resources will not be loaded immediately. Resources will only be loaded when the play and prepare methods are triggered.
859
875
 
860
876
  > This is because resource loading and decoding are two steps in native lynx, while only resource loading can be controlled in web.
861
877
  > So loading and decoding are handled on one side.
878
+
862
879
  - The code returned by the binderror event does not include -4
863
880
 
864
881
  #### Unimplemented properties:
882
+
865
883
  - autoplay
866
884
  - playertype
867
885
  - experimental-ios-async-prepare
868
886
 
869
887
  #### Unimplemented methods:
888
+
870
889
  - requestFocus
871
890
  - releaseFocus
872
891
 
873
892
  ### Patch Changes
874
893
 
875
894
  - 987da15: fix: x-foldview-ng scrolling behavior
895
+
876
896
  - fix scrolling behavior on its sub dom-tree has x-refresh-view
877
897
  - fix scrolling behavior on its sub dom-tree has x-viewpager-ng
878
898
 
879
899
  - 3e66349: fix: x-viewpager bindchange use scrollEnd to trigger; bindoffsetchange use scroll to trigger.
880
900
  - 2b7a4fe: fix: exposure should track the interaction with the closest scroll able ancestor
881
901
  - 461d965: fix(web): swiper specifies current and bindchange, may cause jitter problem and some layout problems.
902
+
882
903
  1. swiper specifies current and bindchange, may cause jitter problem.
883
904
  2. When there are current not 0 && circular, the first layout is not correct.
884
905
  3. When there are circular mode='carousel' attributes, the first paint position is not correct.
@@ -886,6 +907,7 @@
886
907
 
887
908
  - 7ee0dc1: fix(web): rename swiper-item to x-swiper-item
888
909
  - 7c752d9: fix(web): two bugs of x-textarea and x-input:
910
+
889
911
  1. When inputting Chinese characters, you need to send an input event again after the input is completed.
890
912
 
891
913
  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
@@ -910,6 +932,7 @@
910
932
  - 532380d: fix: ::part()::after selector not work on chrome 100
911
933
  - a41965d: fix: foldview horizontal scroll in safari
912
934
  - a7a222b: fix(web): x-view-pager-ng
935
+
913
936
  1. select-index, initial-select-index should only selectTab if the element has a connectedCallback.
914
937
  2. add scroll-snap-stop to x-view-pager-ng, to slide only one element at one time.
915
938
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-elements-canary",
3
- "version": "0.12.4-canary-20260617-bb7927bd",
3
+ "version": "0.12.4",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",