@lynx-js/lynx-ui-common 3.137.0 → 3.139.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,11 @@
1
1
  # @lynx-js/lynx-ui-common
2
2
 
3
+ ## 3.139.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Correct generated API types for scroll callbacks and union-valued arrays. ([#273](https://github.com/lynx-family/lynx-ui/pull/273))
8
+
3
9
  ## 3.137.0
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import type { ScrollViewProps as OriginalScrollViewProps, ScrollEvent } from '@lynx-js/types';
1
+ import type { ScrollEndEvent, ScrollEvent, ScrollToLowerEvent, ScrollToUpperEvent } from '@lynx-js/types';
2
2
  export interface BaseScrollEvents {
3
3
  /**
4
4
  * Being triggered when scrolling occurs.
@@ -16,7 +16,7 @@ export interface BaseScrollEvents {
16
16
  * @Android
17
17
  * @iOS
18
18
  */
19
- onScrollEnd?: (e: OriginalScrollViewProps['bindscrollend']) => void;
19
+ onScrollEnd?: (e: ScrollEndEvent) => void;
20
20
  /**
21
21
  * Being triggered when scrolling to upper.
22
22
  * @zh 滚动到顶部时触发。
@@ -25,7 +25,7 @@ export interface BaseScrollEvents {
25
25
  * @Android
26
26
  * @iOS
27
27
  */
28
- onScrollToUpper?: (e: OriginalScrollViewProps['bindscrolltoupper']) => void;
28
+ onScrollToUpper?: (e: ScrollToUpperEvent) => void;
29
29
  /**
30
30
  * Being triggered when scrolling to lower.
31
31
  * @zh 滚动到底部时触发。
@@ -34,6 +34,6 @@ export interface BaseScrollEvents {
34
34
  * @Android
35
35
  * @iOS
36
36
  */
37
- onScrollToLower?: (e: OriginalScrollViewProps['bindscrolltolower']) => void;
37
+ onScrollToLower?: (e: ScrollToLowerEvent) => void;
38
38
  }
39
39
  //# sourceMappingURL=BaseScrollEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseScrollEvents.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/BaseScrollEvents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,eAAe,IAAI,uBAAuB,EAC1C,WAAW,EACZ,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IACnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,KAAK,IAAI,CAAA;IACnE;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,uBAAuB,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IAC3E;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,uBAAuB,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CAC5E"}
1
+ {"version":3,"file":"BaseScrollEvents.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/BaseScrollEvents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IACnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IACzC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACjD;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-common",
3
- "version": "3.137.0",
3
+ "version": "3.139.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",
@@ -3,8 +3,10 @@
3
3
  // LICENSE file in the root directory of this source tree.
4
4
 
5
5
  import type {
6
- ScrollViewProps as OriginalScrollViewProps,
6
+ ScrollEndEvent,
7
7
  ScrollEvent,
8
+ ScrollToLowerEvent,
9
+ ScrollToUpperEvent,
8
10
  } from '@lynx-js/types'
9
11
 
10
12
  export interface BaseScrollEvents {
@@ -24,7 +26,7 @@ export interface BaseScrollEvents {
24
26
  * @Android
25
27
  * @iOS
26
28
  */
27
- onScrollEnd?: (e: OriginalScrollViewProps['bindscrollend']) => void
29
+ onScrollEnd?: (e: ScrollEndEvent) => void
28
30
  /**
29
31
  * Being triggered when scrolling to upper.
30
32
  * @zh 滚动到顶部时触发。
@@ -33,7 +35,7 @@ export interface BaseScrollEvents {
33
35
  * @Android
34
36
  * @iOS
35
37
  */
36
- onScrollToUpper?: (e: OriginalScrollViewProps['bindscrolltoupper']) => void
38
+ onScrollToUpper?: (e: ScrollToUpperEvent) => void
37
39
  /**
38
40
  * Being triggered when scrolling to lower.
39
41
  * @zh 滚动到底部时触发。
@@ -42,5 +44,5 @@ export interface BaseScrollEvents {
42
44
  * @Android
43
45
  * @iOS
44
46
  */
45
- onScrollToLower?: (e: OriginalScrollViewProps['bindscrolltolower']) => void
47
+ onScrollToLower?: (e: ScrollToLowerEvent) => void
46
48
  }