@legendapp/list 2.0.0-next.5 → 2.0.0-next.7
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/index.d.mts +9 -1
- package/index.d.ts +9 -1
- package/index.js +280 -284
- package/index.mjs +281 -285
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -316,6 +316,14 @@ interface InternalState {
|
|
|
316
316
|
loadStartTime: number;
|
|
317
317
|
initialScroll: ScrollIndexWithOffsetPosition | undefined;
|
|
318
318
|
lastLayout: LayoutRectangle | undefined;
|
|
319
|
+
queuedItemSizeUpdates: {
|
|
320
|
+
itemKey: string;
|
|
321
|
+
sizeObj: {
|
|
322
|
+
width: number;
|
|
323
|
+
height: number;
|
|
324
|
+
};
|
|
325
|
+
}[];
|
|
326
|
+
queuedItemSizeUpdatesWaiting?: boolean;
|
|
319
327
|
props: {
|
|
320
328
|
alignItemsAtEnd: boolean;
|
|
321
329
|
data: readonly any[];
|
|
@@ -543,7 +551,7 @@ interface LegendListRecyclingState<T> {
|
|
|
543
551
|
}
|
|
544
552
|
type TypedForwardRef = <T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactNode) => (props: P & React.RefAttributes<T>) => React.ReactNode;
|
|
545
553
|
declare const typedForwardRef: TypedForwardRef;
|
|
546
|
-
type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqual?: (prevProps: Readonly<
|
|
554
|
+
type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqual?: (prevProps: Readonly<React.JSXElementConstructor<T>>, nextProps: Readonly<React.JSXElementConstructor<T>>) => boolean) => T & {
|
|
547
555
|
displayName?: string;
|
|
548
556
|
};
|
|
549
557
|
declare const typedMemo: TypedMemo;
|
package/index.d.ts
CHANGED
|
@@ -316,6 +316,14 @@ interface InternalState {
|
|
|
316
316
|
loadStartTime: number;
|
|
317
317
|
initialScroll: ScrollIndexWithOffsetPosition | undefined;
|
|
318
318
|
lastLayout: LayoutRectangle | undefined;
|
|
319
|
+
queuedItemSizeUpdates: {
|
|
320
|
+
itemKey: string;
|
|
321
|
+
sizeObj: {
|
|
322
|
+
width: number;
|
|
323
|
+
height: number;
|
|
324
|
+
};
|
|
325
|
+
}[];
|
|
326
|
+
queuedItemSizeUpdatesWaiting?: boolean;
|
|
319
327
|
props: {
|
|
320
328
|
alignItemsAtEnd: boolean;
|
|
321
329
|
data: readonly any[];
|
|
@@ -543,7 +551,7 @@ interface LegendListRecyclingState<T> {
|
|
|
543
551
|
}
|
|
544
552
|
type TypedForwardRef = <T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactNode) => (props: P & React.RefAttributes<T>) => React.ReactNode;
|
|
545
553
|
declare const typedForwardRef: TypedForwardRef;
|
|
546
|
-
type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqual?: (prevProps: Readonly<
|
|
554
|
+
type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqual?: (prevProps: Readonly<React.JSXElementConstructor<T>>, nextProps: Readonly<React.JSXElementConstructor<T>>) => boolean) => T & {
|
|
547
555
|
displayName?: string;
|
|
548
556
|
};
|
|
549
557
|
declare const typedMemo: TypedMemo;
|