@legendapp/list 3.2.0 → 3.3.1
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 +15 -0
- package/animated.d.ts +7 -1
- package/package.json +1 -1
- package/react-native.d.ts +8 -2
- package/react-native.js +378 -115
- package/react-native.mjs +378 -115
- package/react-native.web.d.ts +8 -2
- package/react-native.web.js +378 -115
- package/react-native.web.mjs +378 -115
- package/react.d.ts +8 -2
- package/react.js +378 -115
- package/react.mjs +378 -115
- package/reanimated.d.ts +7 -1
- package/section-list.d.ts +7 -1
package/reanimated.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ interface NativeSyntheticEvent<T> {
|
|
|
93
93
|
type ViewStyle = Record<string, unknown>;
|
|
94
94
|
type StyleProp<T> = T | T[] | null | undefined | false;
|
|
95
95
|
type AdaptiveRender = "normal" | "light";
|
|
96
|
+
type AdaptiveRenderChangeReason = "initial" | "ready" | "scroll";
|
|
96
97
|
interface AdaptiveRenderConfig {
|
|
97
98
|
/**
|
|
98
99
|
* Mode to use before the list is ready to render.
|
|
@@ -117,7 +118,7 @@ interface AdaptiveRenderConfig {
|
|
|
117
118
|
/**
|
|
118
119
|
* Called when the list-level adaptive render changes.
|
|
119
120
|
*/
|
|
120
|
-
onChange?: (mode: AdaptiveRender) => void;
|
|
121
|
+
onChange?: (mode: AdaptiveRender, reason: AdaptiveRenderChangeReason) => void;
|
|
121
122
|
}
|
|
122
123
|
type BaseScrollViewProps<TScrollView> = Omit<TScrollView, "contentOffset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children" | "onScroll">;
|
|
123
124
|
interface DataModeProps<ItemT, TItemType extends string | undefined> {
|
|
@@ -159,6 +160,11 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
|
|
|
159
160
|
* Style applied to each column's wrapper view.
|
|
160
161
|
*/
|
|
161
162
|
columnWrapperStyle?: ColumnWrapperStyle;
|
|
163
|
+
/**
|
|
164
|
+
* Identity token for the dataset represented by `data`.
|
|
165
|
+
* Change this when replacing the current dataset with a different logical dataset.
|
|
166
|
+
*/
|
|
167
|
+
dataKey?: Key;
|
|
162
168
|
/**
|
|
163
169
|
* Version token that forces the list to treat data as updated even when the array reference is stable.
|
|
164
170
|
* Increment or change this when mutating the data array in place.
|
package/section-list.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ interface NativeSyntheticEvent<T> {
|
|
|
149
149
|
type ViewStyle = Record<string, unknown>;
|
|
150
150
|
type StyleProp<T> = T | T[] | null | undefined | false;
|
|
151
151
|
type AdaptiveRender = "normal" | "light";
|
|
152
|
+
type AdaptiveRenderChangeReason = "initial" | "ready" | "scroll";
|
|
152
153
|
interface AdaptiveRenderConfig {
|
|
153
154
|
/**
|
|
154
155
|
* Mode to use before the list is ready to render.
|
|
@@ -173,7 +174,7 @@ interface AdaptiveRenderConfig {
|
|
|
173
174
|
/**
|
|
174
175
|
* Called when the list-level adaptive render changes.
|
|
175
176
|
*/
|
|
176
|
-
onChange?: (mode: AdaptiveRender) => void;
|
|
177
|
+
onChange?: (mode: AdaptiveRender, reason: AdaptiveRenderChangeReason) => void;
|
|
177
178
|
}
|
|
178
179
|
type BaseScrollViewProps<TScrollView> = Omit<TScrollView, "contentOffset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children" | "onScroll">;
|
|
179
180
|
interface DataModeProps<ItemT, TItemType extends string | undefined> {
|
|
@@ -215,6 +216,11 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
|
|
|
215
216
|
* Style applied to each column's wrapper view.
|
|
216
217
|
*/
|
|
217
218
|
columnWrapperStyle?: ColumnWrapperStyle;
|
|
219
|
+
/**
|
|
220
|
+
* Identity token for the dataset represented by `data`.
|
|
221
|
+
* Change this when replacing the current dataset with a different logical dataset.
|
|
222
|
+
*/
|
|
223
|
+
dataKey?: Key;
|
|
218
224
|
/**
|
|
219
225
|
* Version token that forces the list to treat data as updated even when the array reference is stable.
|
|
220
226
|
* Increment or change this when mutating the data array in place.
|