@lynx-js/lynx-ui-swipe-action 3.140.1 → 3.142.0

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,20 @@
1
1
  # @lynx-js/lynx-ui-swipe-action
2
2
 
3
+ ## 3.142.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Accept React 18 and newer types. ReactLynx still defines the compatible versions for each app. ([#383](https://github.com/lynx-family/lynx-ui/pull/383))
8
+
9
+ - Updated dependencies [[`49cb3c5`](https://github.com/lynx-family/lynx-ui/commit/49cb3c5b20d9346ff0f8b314367b4c8e354d195d)]:
10
+ - @lynx-js/lynx-ui-common@3.142.0
11
+
12
+ ## 3.140.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Remove the unused `children` prop from `SwipeActionProps` and its API reference. Use `displayArea` for visible content and `actionArea` for swipe actions. ([#371](https://github.com/lynx-family/lynx-ui/pull/371))
17
+
3
18
  ## 3.140.1
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -27,10 +27,13 @@ The `lynx-ui-swipe-action` follows a headless composition pattern.
27
27
 
28
28
  ## Component Structure
29
29
 
30
- The `SwipeAction` component is composed of the following sub-components:
30
+ `SwipeAction` exposes `displayArea` and `actionArea` as structural slots.
31
31
 
32
32
  ```tsx
33
- <SwipeAction displayArea={<view />} actionArea={<view />} />
33
+ <SwipeAction
34
+ displayArea={displayArea}
35
+ actionArea={actionArea}
36
+ />
34
37
  ```
35
38
 
36
39
  - **`SwipeAction`**: The main swipe action container.
@@ -39,13 +39,6 @@ export interface SwipeActionProps extends ComponentBasicProps {
39
39
  * @iOS
40
40
  */
41
41
  estimatedActionAreaSize?: number;
42
- /**
43
- * The content of the SwipeAction. The content will be displayed on the left side of the SwipeAction.
44
- * @zh SwipeAction 的内容. 内容会显示在 SwipeAction 的左侧.
45
- * @Android
46
- * @iOS
47
- */
48
- children?: ReactElement;
49
42
  /**
50
43
  * Force touch event to send to SwipeAction.
51
44
  * @zh 制触摸事件发送到 SwipeAction.
@@ -1 +1 @@
1
- {"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,GAAG,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAClC;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,YAAY,CAAA;IACxB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C;;;;;OAKG;IACH,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C"}
1
+ {"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,GAAG,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAClC;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,YAAY,CAAA;IACxB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C;;;;;OAKG;IACH,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-swipe-action",
3
- "version": "3.140.1",
3
+ "version": "3.142.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@lynx-js/gesture-runtime": "2.1.1",
29
- "@lynx-js/lynx-ui-common": "3.139.0"
29
+ "@lynx-js/lynx-ui-common": "3.142.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@lynx-js/react": "0.123.1",
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "@lynx-js/react": ">=0.100.0",
40
40
  "@lynx-js/types": "*",
41
- "@types/react": "^18"
41
+ "@types/react": ">=18"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
@@ -45,13 +45,6 @@ export interface SwipeActionProps extends ComponentBasicProps {
45
45
  * @iOS
46
46
  */
47
47
  estimatedActionAreaSize?: number
48
- /**
49
- * The content of the SwipeAction. The content will be displayed on the left side of the SwipeAction.
50
- * @zh SwipeAction 的内容. 内容会显示在 SwipeAction 的左侧.
51
- * @Android
52
- * @iOS
53
- */
54
- children?: ReactElement
55
48
  /**
56
49
  * Force touch event to send to SwipeAction.
57
50
  * @zh 制触摸事件发送到 SwipeAction.