@legendapp/list 3.0.0-beta.30 → 3.0.0-beta.32

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/.DS_Store CHANGED
Binary file
package/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
- import { ComponentProps, Key, ReactNode, Dispatch, SetStateAction } from 'react';
3
- import { View, ScrollView, Animated, LayoutRectangle, Insets, ScrollViewProps, ScrollViewComponent, ScrollResponderMixin, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
2
+ import { Key, ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import { View, LayoutRectangle, Insets, ScrollView, ScrollViewProps, Animated, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, ScrollViewComponent, ScrollResponderMixin } from 'react-native';
4
4
  import Reanimated from 'react-native-reanimated';
5
5
 
6
6
  type AnimatedValue = number;
@@ -473,6 +473,12 @@ interface InternalState {
473
473
  loadStartTime: number;
474
474
  maintainingScrollAtEnd?: boolean;
475
475
  minIndexSizeChanged: number | undefined;
476
+ mvcpAnchorLock?: {
477
+ id: string;
478
+ position: number;
479
+ quietPasses: number;
480
+ expiresAt: number;
481
+ };
476
482
  contentInsetOverride?: Partial<Insets> | null;
477
483
  nativeContentInset?: Insets;
478
484
  nativeMarginTop: number;
@@ -482,6 +488,7 @@ interface InternalState {
482
488
  positions: Map<string, number>;
483
489
  previousData?: readonly unknown[];
484
490
  queuedCalculateItemsInView: number | undefined;
491
+ queuedMVCPRecalculate?: number;
485
492
  queuedInitialLayout?: boolean | undefined;
486
493
  refScroller: React.RefObject<ScrollView>;
487
494
  scroll: number;
@@ -530,6 +537,7 @@ interface InternalState {
530
537
  contentInset: Insets | undefined;
531
538
  data: readonly any[];
532
539
  dataVersion: Key | undefined;
540
+ drawDistance: number;
533
541
  estimatedItemSize: number | undefined;
534
542
  getEstimatedItemSize: LegendListProps["getEstimatedItemSize"];
535
543
  getFixedItemSize: LegendListProps["getFixedItemSize"];
@@ -553,7 +561,6 @@ interface InternalState {
553
561
  overrideItemLayout: LegendListProps["overrideItemLayout"];
554
562
  recycleItems: boolean;
555
563
  renderItem: LegendListProps["renderItem"];
556
- scrollBuffer: number;
557
564
  snapToIndices: number[] | undefined;
558
565
  stickyIndicesArr: number[];
559
566
  stickyIndicesSet: Set<number>;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
- import { ComponentProps, Key, ReactNode, Dispatch, SetStateAction } from 'react';
3
- import { View, ScrollView, Animated, LayoutRectangle, Insets, ScrollViewProps, ScrollViewComponent, ScrollResponderMixin, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
2
+ import { Key, ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
3
+ import { View, LayoutRectangle, Insets, ScrollView, ScrollViewProps, Animated, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, ScrollViewComponent, ScrollResponderMixin } from 'react-native';
4
4
  import Reanimated from 'react-native-reanimated';
5
5
 
6
6
  type AnimatedValue = number;
@@ -473,6 +473,12 @@ interface InternalState {
473
473
  loadStartTime: number;
474
474
  maintainingScrollAtEnd?: boolean;
475
475
  minIndexSizeChanged: number | undefined;
476
+ mvcpAnchorLock?: {
477
+ id: string;
478
+ position: number;
479
+ quietPasses: number;
480
+ expiresAt: number;
481
+ };
476
482
  contentInsetOverride?: Partial<Insets> | null;
477
483
  nativeContentInset?: Insets;
478
484
  nativeMarginTop: number;
@@ -482,6 +488,7 @@ interface InternalState {
482
488
  positions: Map<string, number>;
483
489
  previousData?: readonly unknown[];
484
490
  queuedCalculateItemsInView: number | undefined;
491
+ queuedMVCPRecalculate?: number;
485
492
  queuedInitialLayout?: boolean | undefined;
486
493
  refScroller: React.RefObject<ScrollView>;
487
494
  scroll: number;
@@ -530,6 +537,7 @@ interface InternalState {
530
537
  contentInset: Insets | undefined;
531
538
  data: readonly any[];
532
539
  dataVersion: Key | undefined;
540
+ drawDistance: number;
533
541
  estimatedItemSize: number | undefined;
534
542
  getEstimatedItemSize: LegendListProps["getEstimatedItemSize"];
535
543
  getFixedItemSize: LegendListProps["getFixedItemSize"];
@@ -553,7 +561,6 @@ interface InternalState {
553
561
  overrideItemLayout: LegendListProps["overrideItemLayout"];
554
562
  recycleItems: boolean;
555
563
  renderItem: LegendListProps["renderItem"];
556
- scrollBuffer: number;
557
564
  snapToIndices: number[] | undefined;
558
565
  stickyIndicesArr: number[];
559
566
  stickyIndicesSet: Set<number>;