@lynx-js/web-elements-canary 0.8.7 → 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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @lynx-js/web-elements
2
2
 
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
+
3
20
  ## 0.8.7
4
21
 
5
22
  ### Patch Changes
@@ -604,8 +621,8 @@
604
621
  For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.
605
622
 
606
623
  ```javascript
607
- import '@lynx-js/web-elements-compat/LinearContainer';
608
- import '@lynx-js/web-elements/all';
624
+ import "@lynx-js/web-elements-compat/LinearContainer";
625
+ import "@lynx-js/web-elements/all";
609
626
  ```
610
627
 
611
628
  - f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element
@@ -627,11 +644,11 @@
627
644
  There is also a simple way to use this feature
628
645
 
629
646
  ```javascript
630
- import { LynxCard } from '@lynx-js/web-core';
631
- import { loadElement } from '@lynx-js/web-elements/lazy';
632
- import '@lynx-js/web-elements/index.css';
633
- import '@lynx-js/web-core/index.css';
634
- import './index.css';
647
+ import { LynxCard } from "@lynx-js/web-core";
648
+ import { loadElement } from "@lynx-js/web-elements/lazy";
649
+ import "@lynx-js/web-elements/index.css";
650
+ import "@lynx-js/web-core/index.css";
651
+ import "./index.css";
635
652
 
636
653
  const lynxcard = new LynxCard({
637
654
  ...beforeConfigs,
@@ -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 numberOfChlidren = this.#dom.childElementCount;
50
- if (numberOfChlidren > 2) {
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 === numberOfChlidren - 1
53
+ || current === numberOfChildren - 1
54
54
  || current === 2
55
- || current === numberOfChlidren - 2) {
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 === numberOfChlidren - 1) {
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.7",
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.7"
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"