@legendapp/list 3.3.0 → 3.3.2
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 +12 -0
- package/animated.d.ts +8 -1
- package/keyboard-legacy.d.ts +8 -1
- package/keyboard.d.ts +8 -1
- package/package.json +1 -1
- package/react-native.d.ts +8 -1
- package/react-native.js +330 -114
- package/react-native.mjs +330 -114
- package/react-native.web.d.ts +8 -1
- package/react-native.web.js +330 -114
- package/react-native.web.mjs +330 -114
- package/react.d.ts +8 -1
- package/react.js +330 -114
- package/react.mjs +330 -114
- package/reanimated.d.ts +8 -1
- package/section-list.d.ts +8 -1
package/reanimated.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface MaintainVisibleContentPositionNormalized<ItemT = any> {
|
|
|
9
9
|
shouldRestorePosition?: (item: ItemT, index: number, data: readonly ItemT[]) => boolean;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
type ListenerType = "activeStickyIndex" | "alignItemsAtEndPadding" | "anchoredEndSpaceSize" | "debugComputedScroll" | "debugRawScroll" | "extraData" | "footerSize" | "headerSize" | "lastItemKeys" | "lastPositionUpdate" | "maintainVisibleContentPosition" | "numColumns" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "scrollAdjust" | "scrollAdjustPending" | "scrollAdjustUserOffset" | "scrollSize" | "snapToOffsets" | "stylePaddingTop" | "totalSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | `containerColumn${number}` | `containerSpan${number}` | `containerItemData${number}` | `containerItemKey${number}` | `containerPosition${number}` | `containerSticky${number}`;
|
|
12
|
+
type ListenerType = "activeStickyIndex" | "alignItemsAtEndPadding" | "anchoredEndSpaceSize" | "debugComputedScroll" | "debugRawScroll" | "extraData" | "footerSize" | "headerSize" | "lastItemKeys" | "lastPositionUpdate" | "maintainVisibleContentPosition" | "numColumns" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "scrollAdjust" | "scrollAdjustPending" | "scrollAdjustUserOffset" | "scrollSize" | "snapToOffsets" | "stylePaddingTop" | "totalSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | `containerColumn${number}` | `containerSpan${number}` | `containerItemData${number}` | `containerItemInfo${number}` | `containerItemKey${number}` | `containerPosition${number}` | `containerSticky${number}`;
|
|
13
13
|
type LegendListListenerType = Extract<ListenerType, "activeStickyIndex" | "anchoredEndSpaceSize" | "footerSize" | "headerSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | "lastItemKeys" | "lastPositionUpdate" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "snapToOffsets" | "totalSize">;
|
|
14
14
|
type ListenerTypeValueMap = {
|
|
15
15
|
activeStickyIndex: number;
|
|
@@ -49,6 +49,8 @@ type ListenerTypeValueMap = {
|
|
|
49
49
|
[K in ListenerType as K extends `containerItemKey${number}` ? K : never]: string;
|
|
50
50
|
} & {
|
|
51
51
|
[K in ListenerType as K extends `containerItemData${number}` ? K : never]: any;
|
|
52
|
+
} & {
|
|
53
|
+
[K in ListenerType as K extends `containerItemInfo${number}` ? K : never]: ContainerItemInfo;
|
|
52
54
|
} & {
|
|
53
55
|
[K in ListenerType as K extends `containerPosition${number}` ? K : never]: number;
|
|
54
56
|
} & {
|
|
@@ -58,6 +60,11 @@ type ListenerTypeValueMap = {
|
|
|
58
60
|
} & {
|
|
59
61
|
[K in ListenerType as K extends `containerSticky${number}` ? K : never]: boolean;
|
|
60
62
|
};
|
|
63
|
+
interface ContainerItemInfo {
|
|
64
|
+
index: number;
|
|
65
|
+
itemKey: string;
|
|
66
|
+
value: any;
|
|
67
|
+
}
|
|
61
68
|
|
|
62
69
|
interface Insets {
|
|
63
70
|
top: number;
|
package/section-list.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ interface MaintainVisibleContentPositionNormalized<ItemT = any> {
|
|
|
65
65
|
shouldRestorePosition?: (item: ItemT, index: number, data: readonly ItemT[]) => boolean;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
type ListenerType = "activeStickyIndex" | "alignItemsAtEndPadding" | "anchoredEndSpaceSize" | "debugComputedScroll" | "debugRawScroll" | "extraData" | "footerSize" | "headerSize" | "lastItemKeys" | "lastPositionUpdate" | "maintainVisibleContentPosition" | "numColumns" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "scrollAdjust" | "scrollAdjustPending" | "scrollAdjustUserOffset" | "scrollSize" | "snapToOffsets" | "stylePaddingTop" | "totalSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | `containerColumn${number}` | `containerSpan${number}` | `containerItemData${number}` | `containerItemKey${number}` | `containerPosition${number}` | `containerSticky${number}`;
|
|
68
|
+
type ListenerType = "activeStickyIndex" | "alignItemsAtEndPadding" | "anchoredEndSpaceSize" | "debugComputedScroll" | "debugRawScroll" | "extraData" | "footerSize" | "headerSize" | "lastItemKeys" | "lastPositionUpdate" | "maintainVisibleContentPosition" | "numColumns" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "scrollAdjust" | "scrollAdjustPending" | "scrollAdjustUserOffset" | "scrollSize" | "snapToOffsets" | "stylePaddingTop" | "totalSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | `containerColumn${number}` | `containerSpan${number}` | `containerItemData${number}` | `containerItemInfo${number}` | `containerItemKey${number}` | `containerPosition${number}` | `containerSticky${number}`;
|
|
69
69
|
type LegendListListenerType = Extract<ListenerType, "activeStickyIndex" | "anchoredEndSpaceSize" | "footerSize" | "headerSize" | "isAtEnd" | "isAtStart" | "isNearEnd" | "isNearStart" | "isWithinMaintainScrollAtEndThreshold" | "adaptiveRender" | "lastItemKeys" | "lastPositionUpdate" | "numContainers" | "numContainersPooled" | "otherAxisSize" | "readyToRender" | "snapToOffsets" | "totalSize">;
|
|
70
70
|
type ListenerTypeValueMap = {
|
|
71
71
|
activeStickyIndex: number;
|
|
@@ -105,6 +105,8 @@ type ListenerTypeValueMap = {
|
|
|
105
105
|
[K in ListenerType as K extends `containerItemKey${number}` ? K : never]: string;
|
|
106
106
|
} & {
|
|
107
107
|
[K in ListenerType as K extends `containerItemData${number}` ? K : never]: any;
|
|
108
|
+
} & {
|
|
109
|
+
[K in ListenerType as K extends `containerItemInfo${number}` ? K : never]: ContainerItemInfo;
|
|
108
110
|
} & {
|
|
109
111
|
[K in ListenerType as K extends `containerPosition${number}` ? K : never]: number;
|
|
110
112
|
} & {
|
|
@@ -114,6 +116,11 @@ type ListenerTypeValueMap = {
|
|
|
114
116
|
} & {
|
|
115
117
|
[K in ListenerType as K extends `containerSticky${number}` ? K : never]: boolean;
|
|
116
118
|
};
|
|
119
|
+
interface ContainerItemInfo {
|
|
120
|
+
index: number;
|
|
121
|
+
itemKey: string;
|
|
122
|
+
value: any;
|
|
123
|
+
}
|
|
117
124
|
|
|
118
125
|
interface Insets {
|
|
119
126
|
top: number;
|