@lynx-js/web-elements-canary 0.8.7-canary-20250921-d0ef559f → 0.8.8-canary-20251010-77397fd5
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 +19 -2
- package/dist/XSwiper/XSwiperCircular.js +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
-
## 0.8.
|
|
3
|
+
## 0.8.8-canary-20251010092201-77397fd535cf60556f8f82f7ef8dae8a623d1625
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: ([#1837](https://github.com/lynx-family/lynx-stack/pull/1837))
|
|
8
|
+
|
|
9
|
+
1. `LynxView.updateData()` cannot trigger `dataProcessor`.
|
|
10
|
+
|
|
11
|
+
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:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
LynxView.updateData(data: Cloneable, processorName?: string | undefined, callback?: (() => void) | undefined): void
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- Updated dependencies []:
|
|
18
|
+
- @lynx-js/web-elements-template@0.8.8-canary-20251010092201-77397fd535cf60556f8f82f7ef8dae8a623d1625
|
|
19
|
+
|
|
20
|
+
## 0.8.7
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
6
23
|
|
|
7
24
|
- The img within svg does not inherit the position ([#1769](https://github.com/lynx-family/lynx-stack/pull/1769))
|
|
8
25
|
|
|
9
26
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-elements-template@0.8.7
|
|
27
|
+
- @lynx-js/web-elements-template@0.8.7
|
|
11
28
|
|
|
12
29
|
## 0.8.6
|
|
13
30
|
|
|
@@ -46,13 +46,13 @@ let XSwiperCircular = (() => {
|
|
|
46
46
|
#getCircularFirstSlot = genDomGetter(() => this.#dom.shadowRoot, '#circular-start').bind(this);
|
|
47
47
|
#getCircularLastSlot = genDomGetter(() => this.#dom.shadowRoot, '#circular-end').bind(this);
|
|
48
48
|
#changeEventHandler(eventLikeObject) {
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
49
|
+
const numberOfChildren = this.#dom.childElementCount;
|
|
50
|
+
if (numberOfChildren > 2) {
|
|
51
51
|
const { current, isDragged, __isFirstLayout } = eventLikeObject.detail;
|
|
52
52
|
if (current === 0
|
|
53
|
-
|| current ===
|
|
53
|
+
|| current === numberOfChildren - 1
|
|
54
54
|
|| current === 2
|
|
55
|
-
|| current ===
|
|
55
|
+
|| current === numberOfChildren - 2) {
|
|
56
56
|
/**
|
|
57
57
|
* for current = 0
|
|
58
58
|
* start:[lastElement]
|
|
@@ -77,7 +77,7 @@ let XSwiperCircular = (() => {
|
|
|
77
77
|
lastElement.setAttribute('slot', 'circular-start');
|
|
78
78
|
targetElement = firstElement;
|
|
79
79
|
}
|
|
80
|
-
else if (current ===
|
|
80
|
+
else if (current === numberOfChildren - 1) {
|
|
81
81
|
elementsAtStart.forEach((e) => e.removeAttribute('slot'));
|
|
82
82
|
firstElement.setAttribute('slot', 'circular-end');
|
|
83
83
|
targetElement = lastElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-elements-canary",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8-canary-20251010-77397fd5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@lynx-js/web-elements-reactive": "npm:@lynx-js/web-elements-reactive-canary@0.2.2",
|
|
104
|
-
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.
|
|
104
|
+
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.8-canary-20251010-77397fd5"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"tslib": "^2.8.1"
|