@lynx-js/types 3.5.10-alpha.0 → 3.5.11

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,4 +1,10 @@
1
1
  # CHANGELOG
2
+ ## 3.5.11
3
+ - Fix `AppearanceEvent` type being deprecated.
4
+
5
+ ## 3.5.10
6
+ - Fix list-type to avoid incompatible type error.
7
+
2
8
  ## 3.5.9
3
9
  - Update `list` and `list-item` typings.
4
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/types",
3
- "version": "3.5.10-alpha.0",
3
+ "version": "3.5.11",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lynx",
@@ -36,19 +36,6 @@ export enum ListEventSource {
36
36
  SCROLL = 2,
37
37
  }
38
38
 
39
- /**
40
- * The layout type of list.
41
- * @Android
42
- * @iOS
43
- * @Harmony
44
- * @PC
45
- */
46
- export enum ListType {
47
- SINGLE = 'single',
48
- FLOW = 'flow',
49
- WATERFALL = 'waterfall',
50
- }
51
-
52
39
  export interface ListAttachedCell {
53
40
  /**
54
41
  * id of list item
@@ -414,13 +401,13 @@ export interface ListProps extends StandardProps {
414
401
 
415
402
  /**
416
403
  * layout type of the list
417
- * @defaultValue ListType.SINGLE
404
+ * @defaultValue 'single'
418
405
  * @Android
419
406
  * @iOS
420
407
  * @Harmony
421
408
  * @PC
422
409
  */
423
- 'list-type'?: ListType
410
+ 'list-type'?: 'single' | 'flow' | 'waterfall';
424
411
 
425
412
  /**
426
413
  * Whether to allow scrolling for a list.
@@ -64,6 +64,18 @@ export interface ChangedTouch {
64
64
  export interface BaseCommonEvent<T> extends BaseEventOrig<any, T> {}
65
65
  export interface CommonEvent extends BaseCommonEvent<Target | MainThreadElement> {}
66
66
 
67
+ /**
68
+ * Node appearance event.
69
+ * @deprecated Unexpectedly exported.
70
+ */
71
+ export interface AppearanceEvent {
72
+ type: 'nodeappear' | 'nodedisappear';
73
+ detail: {
74
+ position: number;
75
+ key: string;
76
+ };
77
+ }
78
+
67
79
  export interface BaseTouchEvent<T> extends BaseEventOrig<any, T> {
68
80
  /**
69
81
  * Collection of touch points currently on the touch plane.