@lynx-js/web-elements-canary 0.12.1 → 0.12.2-canary-20260429-eb46fea3
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
+
## 0.12.2-canary-20260429080413-eb46fea3504525123ec18ac08ec7afe47566bf33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: xmarkdown create img incorrectly ([#2540](https://github.com/lynx-family/lynx-stack/pull/2540))
|
|
8
|
+
|
|
3
9
|
## 0.12.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -19,7 +25,7 @@
|
|
|
19
25
|
correctly instead of being forced through string-only attribute updates.
|
|
20
26
|
|
|
21
27
|
```javascript
|
|
22
|
-
import
|
|
28
|
+
import "@lynx-js/web-elements/XMarkdown";
|
|
23
29
|
```
|
|
24
30
|
|
|
25
31
|
- 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))
|
|
@@ -89,11 +95,11 @@
|
|
|
89
95
|
Now we integrated the `LinearCompat` into @lynx-js/web-elements. Developers can safely remove the following imports:
|
|
90
96
|
|
|
91
97
|
```js
|
|
92
|
-
import
|
|
98
|
+
import "@lynx-js/web-elements/compat/LinearContainer";
|
|
93
99
|
```
|
|
94
100
|
|
|
95
101
|
```js
|
|
96
|
-
import
|
|
102
|
+
import "@lynx-js/web-elements-compat/LinearContainer";
|
|
97
103
|
```
|
|
98
104
|
|
|
99
105
|
### Patch Changes
|
|
@@ -119,21 +125,20 @@
|
|
|
119
125
|
#### Before
|
|
120
126
|
|
|
121
127
|
```js
|
|
122
|
-
import
|
|
123
|
-
import
|
|
128
|
+
import "@lynx-js/web-elements-template";
|
|
129
|
+
import "@lynx-js/web-elements-compat/LinearContainer";
|
|
124
130
|
```
|
|
125
131
|
|
|
126
132
|
#### After
|
|
127
133
|
|
|
128
134
|
```js
|
|
129
|
-
import
|
|
130
|
-
import
|
|
135
|
+
import "@lynx-js/web-elements/html-templates";
|
|
136
|
+
import "@lynx-js/web-elements/compat/LinearContainer";
|
|
131
137
|
```
|
|
132
138
|
|
|
133
139
|
### Patch Changes
|
|
134
140
|
|
|
135
141
|
- refactor: change code structure for improved readability and maintainability ([#2004](https://github.com/lynx-family/lynx-stack/pull/2004))
|
|
136
|
-
|
|
137
142
|
- enable noUnusedLocals for web-elements
|
|
138
143
|
- add source field for supporting @rsbuild/plugin-source-build
|
|
139
144
|
|
|
@@ -168,7 +173,6 @@
|
|
|
168
173
|
- fix: define x-foldview-slot-drag-ng typo. ([#1915](https://github.com/lynx-family/lynx-stack/pull/1915))
|
|
169
174
|
|
|
170
175
|
- 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))
|
|
171
|
-
|
|
172
176
|
2. Fixed an issue where the list `lower-threshold-item-count` event would not trigger when using a horizontal layout under a waterfall layout.
|
|
173
177
|
|
|
174
178
|
3. Fixed an issue where calling the list `autoScroll` method in `useEffect` might not scroll.
|
|
@@ -196,7 +200,6 @@
|
|
|
196
200
|
### Patch Changes
|
|
197
201
|
|
|
198
202
|
- fix: ([#1837](https://github.com/lynx-family/lynx-stack/pull/1837))
|
|
199
|
-
|
|
200
203
|
1. `LynxView.updateData()` cannot trigger `dataProcessor`.
|
|
201
204
|
|
|
202
205
|
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:
|
|
@@ -222,7 +225,6 @@
|
|
|
222
225
|
### Patch Changes
|
|
223
226
|
|
|
224
227
|
- fix: 1. svg use image tag to render, to differentiate background-image styles ([#1668](https://github.com/lynx-family/lynx-stack/pull/1668))
|
|
225
|
-
|
|
226
228
|
1. use blob instead of raw data-uri
|
|
227
229
|
|
|
228
230
|
> Not using data-uri(data:image/svg+xml;utf8,${props.content})
|
|
@@ -273,7 +275,6 @@
|
|
|
273
275
|
### Patch Changes
|
|
274
276
|
|
|
275
277
|
- Add crossorigin attribute support to x-image component ([#1340](https://github.com/lynx-family/lynx-stack/pull/1340))
|
|
276
|
-
|
|
277
278
|
- Added `crossorigin` to the `observedAttributes` array in `ImageSrc.ts`
|
|
278
279
|
- Implemented `#handleCrossorigin` handler using the `bindToAttribute` helper to forward the crossorigin attribute from the custom element to the internal `<img>` element
|
|
279
280
|
- Added comprehensive test coverage to verify the attribute is properly passed through to the shadow DOM
|
|
@@ -436,7 +437,6 @@
|
|
|
436
437
|
### Minor Changes
|
|
437
438
|
|
|
438
439
|
- fix: ([#629](https://github.com/lynx-family/lynx-stack/pull/629))
|
|
439
|
-
|
|
440
440
|
- typo of `initial-scroll-offset` in scroll-view.
|
|
441
441
|
- scroll-view's `initial-scroll-index` is changed to `initial-scroll-to-index`.
|
|
442
442
|
|
|
@@ -463,7 +463,6 @@
|
|
|
463
463
|
- feat: improve compatibility for chrome 108 & support linear-gradient for nested x-text ([#590](https://github.com/lynx-family/lynx-stack/pull/590))
|
|
464
464
|
|
|
465
465
|
**This is a breaking change**
|
|
466
|
-
|
|
467
466
|
- Please upgrade your `@lynx-js/web-elements` to >=0.6.0
|
|
468
467
|
- Please upgrade your `@lynx-js/web-core` to >=0.12.0
|
|
469
468
|
- The compiled lynx template json won't be impacted.
|
|
@@ -486,7 +485,6 @@
|
|
|
486
485
|
- feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))
|
|
487
486
|
|
|
488
487
|
Now use support the following usage
|
|
489
|
-
|
|
490
488
|
- mainthread event
|
|
491
489
|
- mainthread ref
|
|
492
490
|
- runOnMainThread/runOnBackground
|
|
@@ -501,7 +499,6 @@
|
|
|
501
499
|
- fix: refactor foldview slot offset logic ([#575](https://github.com/lynx-family/lynx-stack/pull/575))
|
|
502
500
|
|
|
503
501
|
- fix: improve x-foldview-ng ([#513](https://github.com/lynx-family/lynx-stack/pull/513))
|
|
504
|
-
|
|
505
502
|
- support fling for touch event driven scrolling
|
|
506
503
|
- allow the height of `x-foldview-slot-ng` + `x-foldview-toolbar-ng` > `x-foldview-ng`
|
|
507
504
|
- do not prevent horizontal gesture. After this commit we only allow one direction gesture for one touch (start -> end)
|
|
@@ -552,7 +549,6 @@
|
|
|
552
549
|
### Minor Changes
|
|
553
550
|
|
|
554
551
|
- 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))
|
|
555
|
-
|
|
556
552
|
2. Added support for `list-main-axis-gap`, `list-cross-axis-gap`.
|
|
557
553
|
|
|
558
554
|
- feat(web): The list element supports list-type with **flow**. ([#240](https://github.com/lynx-family/lynx-stack/pull/240))
|
|
@@ -566,7 +562,6 @@
|
|
|
566
562
|
### Minor Changes
|
|
567
563
|
|
|
568
564
|
- refactor: remove web-elements/lazy and loadNewTag ([#123](https://github.com/lynx-family/lynx-stack/pull/123))
|
|
569
|
-
|
|
570
565
|
- remove @lynx-js/web-elements/lazy
|
|
571
566
|
- remove loadElement
|
|
572
567
|
- remove loadNewTag callback
|
|
@@ -717,11 +712,9 @@
|
|
|
717
712
|
Before this commit, those parent text element with style `color:linear-gradient()` will cause empty content in children inline-text element
|
|
718
713
|
|
|
719
714
|
- f650509: fix: browser compatibility issues
|
|
720
|
-
|
|
721
715
|
1. safari 17.2~18.0 issue
|
|
722
716
|
|
|
723
717
|
`display:linear` doesn't work
|
|
724
|
-
|
|
725
718
|
2. chrome < 99 issue
|
|
726
719
|
|
|
727
720
|
text may be blank on these browsers
|
|
@@ -782,12 +775,10 @@
|
|
|
782
775
|
#### 3. Tests not implemented
|
|
783
776
|
|
|
784
777
|
##### HTML Tests
|
|
785
|
-
|
|
786
778
|
1. event-layoutcomplete skipped webkit, firefox due to contentvisibilityautostatechange not propagate
|
|
787
779
|
2. get-visible-cells skipped webkit, firefox due to contentvisibilityautostatechange not propagate
|
|
788
780
|
|
|
789
781
|
##### React Tests
|
|
790
|
-
|
|
791
782
|
1. lynx.createQuery not supported.
|
|
792
783
|
|
|
793
784
|
- b323923: feat(web): support **ReplaceElement, **CreateImage, \_\_CreateScrollView
|
|
@@ -812,8 +803,8 @@
|
|
|
812
803
|
For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.
|
|
813
804
|
|
|
814
805
|
```javascript
|
|
815
|
-
import
|
|
816
|
-
import
|
|
806
|
+
import "@lynx-js/web-elements-compat/LinearContainer";
|
|
807
|
+
import "@lynx-js/web-elements/all";
|
|
817
808
|
```
|
|
818
809
|
|
|
819
810
|
- f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element
|
|
@@ -835,11 +826,11 @@
|
|
|
835
826
|
There is also a simple way to use this feature
|
|
836
827
|
|
|
837
828
|
```javascript
|
|
838
|
-
import { LynxCard } from
|
|
839
|
-
import { loadElement } from
|
|
840
|
-
import
|
|
841
|
-
import
|
|
842
|
-
import
|
|
829
|
+
import { LynxCard } from "@lynx-js/web-core";
|
|
830
|
+
import { loadElement } from "@lynx-js/web-elements/lazy";
|
|
831
|
+
import "@lynx-js/web-elements/index.css";
|
|
832
|
+
import "@lynx-js/web-core/index.css";
|
|
833
|
+
import "./index.css";
|
|
843
834
|
|
|
844
835
|
const lynxcard = new LynxCard({
|
|
845
836
|
...beforeConfigs,
|
|
@@ -852,36 +843,30 @@
|
|
|
852
843
|
- 1fe49a2: feat(web): add custom element x-audio-tt
|
|
853
844
|
|
|
854
845
|
#### The behavior is different from the native x-audio-tt:
|
|
855
|
-
|
|
856
846
|
- When src changes, resources will not be loaded immediately. Resources will only be loaded when the play and prepare methods are triggered.
|
|
857
847
|
|
|
858
848
|
> This is because resource loading and decoding are two steps in native lynx, while only resource loading can be controlled in web.
|
|
859
849
|
> So loading and decoding are handled on one side.
|
|
860
|
-
|
|
861
850
|
- The code returned by the binderror event does not include -4
|
|
862
851
|
|
|
863
852
|
#### Unimplemented properties:
|
|
864
|
-
|
|
865
853
|
- autoplay
|
|
866
854
|
- playertype
|
|
867
855
|
- experimental-ios-async-prepare
|
|
868
856
|
|
|
869
857
|
#### Unimplemented methods:
|
|
870
|
-
|
|
871
858
|
- requestFocus
|
|
872
859
|
- releaseFocus
|
|
873
860
|
|
|
874
861
|
### Patch Changes
|
|
875
862
|
|
|
876
863
|
- 987da15: fix: x-foldview-ng scrolling behavior
|
|
877
|
-
|
|
878
864
|
- fix scrolling behavior on its sub dom-tree has x-refresh-view
|
|
879
865
|
- fix scrolling behavior on its sub dom-tree has x-viewpager-ng
|
|
880
866
|
|
|
881
867
|
- 3e66349: fix: x-viewpager bindchange use scrollEnd to trigger; bindoffsetchange use scroll to trigger.
|
|
882
868
|
- 2b7a4fe: fix: exposure should track the interaction with the closest scroll able ancestor
|
|
883
869
|
- 461d965: fix(web): swiper specifies current and bindchange, may cause jitter problem and some layout problems.
|
|
884
|
-
|
|
885
870
|
1. swiper specifies current and bindchange, may cause jitter problem.
|
|
886
871
|
2. When there are current not 0 && circular, the first layout is not correct.
|
|
887
872
|
3. When there are circular mode='carousel' attributes, the first paint position is not correct.
|
|
@@ -889,7 +874,6 @@
|
|
|
889
874
|
|
|
890
875
|
- 7ee0dc1: fix(web): rename swiper-item to x-swiper-item
|
|
891
876
|
- 7c752d9: fix(web): two bugs of x-textarea and x-input:
|
|
892
|
-
|
|
893
877
|
1. When inputting Chinese characters, you need to send an input event again after the input is completed.
|
|
894
878
|
|
|
895
879
|
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
|
|
@@ -914,7 +898,6 @@
|
|
|
914
898
|
- 532380d: fix: ::part()::after selector not work on chrome 100
|
|
915
899
|
- a41965d: fix: foldview horizontal scroll in safari
|
|
916
900
|
- a7a222b: fix(web): x-view-pager-ng
|
|
917
|
-
|
|
918
901
|
1. select-index, initial-select-index should only selectTab if the element has a connectedCallback.
|
|
919
902
|
2. add scroll-snap-stop to x-view-pager-ng, to slide only one element at one time.
|
|
920
903
|
|
|
@@ -936,6 +936,7 @@ let XMarkdownAttributes = (() => {
|
|
|
936
936
|
}
|
|
937
937
|
else {
|
|
938
938
|
root.innerHTML = sanitizeHtml(preprocessInlineView(renderMarkdown(parser, visible)));
|
|
939
|
+
this.#injectInlineViews(root);
|
|
939
940
|
}
|
|
940
941
|
this.#appendTypewriterCursor(root);
|
|
941
942
|
this.#applyPostRenderPolicies(root);
|