@legendapp/list 2.1.0-next.1 → 3.0.0-beta.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 CHANGED
@@ -1,3 +1,89 @@
1
+ ## 3.0.0 beta
2
+
3
+ - Feat: Web support
4
+ - Breaking: Some of the maintainVisibleContentPosition behavior for preventing jumping while scrolling is now core behavior, and the behavior for maintaining scroll position when adding data is controlled by the prop, which is now disabled by default.
5
+
6
+ ## 2.0.14
7
+ - Feat: Add dataVersion prop to trigger re-render when mutating the data array in place
8
+
9
+ ## 2.0.13
10
+ - Feat: Allow returning undefined in getFixedItemSize to fall back to estimated size
11
+ - Fix: scrollToIndex viewOffset was being subtracted twice, causing incorrect scroll positioning
12
+ - Fix: Initial container allocation was not applying maintainVisibleContentPosition calculations
13
+ - Fix: updateItemSize was providing full data array to getEstimatedItemSize and getFixedItemSize instead of individual item
14
+
15
+ ## 2.0.12
16
+ - Fix: Scroll velocity calculation was sometimes incorrect when item sizes were very different from estimate
17
+ - Fix: onScroll while scrolling was updating positions without maintainVisibleContentPosition calculations, which was breaking scroll position maintenance
18
+
19
+ ## 2.0.11
20
+ - Fix: Missing React import in a file
21
+
22
+ ## 2.0.10
23
+ - Feat: Add onStickyHeaderChange callback for sticky headers
24
+ - Fix: Items with a falsy value like 0 were not rendering
25
+ - Fix: Column positions sometimes not calculating correctly
26
+ - Perf: updateItemsPositions was not breaking early sometimes
27
+ - Perf: Changed idCache to be an array instead of a Map for better performance
28
+ - Perf: Speed up container reuse lookups
29
+
30
+ ## 2.0.9
31
+ - Fix: Improve initialScrollIndex accuracy and reliability
32
+
33
+ ## 2.0.8
34
+ - Fix: Data changing sometimes left blank spaces because it was ignoring scroll
35
+ - Fix: Toggling between empty and non-empty causing maintainVisibleContentPosition issues
36
+
37
+ ## 2.0.7
38
+ - Fix: Layout not working on react-native-macos because of transform instead of position
39
+
40
+ ## 2.0.6
41
+ - Fix: updateItemPositions edge case with items multiple screen heights long was breaking the loop too early
42
+
43
+ ## 2.0.5
44
+ - Perf: Change updateAllPositions to constrain processing to the scroll range
45
+ - Fix: Crash when using snapTo in some environments
46
+ - Perf: Change Separator to use useIsLastItem which should reduce the number of times it runs
47
+
48
+ ## 2.0.4
49
+ - Fix: Possible crash if refScroller is undefined
50
+
51
+ ## 2.0.3
52
+ - Feat: Set activeStickyIndex for usage in getState()
53
+ - Revert changes from 2.0.1 and 2.0.2 which were buggy in an edge case
54
+
55
+ ## 2.0.2
56
+ - Fix: Performance improvement in 2.0.1 caused a bug in an edge case
57
+
58
+ ## 2.0.1
59
+ - Perf: Improve performance in very long lists (bad release)
60
+
61
+ ## 2.0.0
62
+ Major version release with significant performance improvements and architectural changes:
63
+ - Feat: Complete rewrite of virtualization algorithm for better performance
64
+ - Feat: Add sticky headers support via stickyIndices prop
65
+ - Feat: Add snapToIndices prop for snap-to behavior
66
+ - Feat: Add getItemType prop for better item type handling
67
+ - Feat: Add getFixedItemSize prop for items with known fixed sizes
68
+ - Feat: Add itemsAreEqual prop to reduce re-rendering when data changes
69
+ - Feat: Expose positions in getState()
70
+ - Feat: Add enableAverages prop to control average size calculations
71
+ - Feat: Add viewOffset option to scrollToEnd
72
+ - Feat: Improve maintainScrollAtEnd with more granular options
73
+ - Feat: Add ref function to enable/disable scroll processing
74
+ - Feat: Support lazy rendering directly in LegendList component
75
+ - Perf: Optimize container positioning using transform instead of absolute positioning
76
+ - Perf: Improve scroll buffering algorithm with directional bias
77
+ - Perf: Enable batched updates for better rendering performance
78
+ - Perf: Optimize container allocation and reuse algorithms
79
+ - Perf: Improve average item size calculations
80
+ - Fix: Improve maintainVisibleContentPosition reliability
81
+ - Fix: Better handling of data changes and scroll position maintenance
82
+ - Fix: Improve initial scroll positioning accuracy
83
+ - Fix: Better handling of padding changes
84
+ - Fix: Resolve various edge cases with container recycling
85
+ - Fix: Improve viewability calculations
86
+
1
87
  ## 1.1.4
2
88
  - Feat: Add sizes to getState()
3
89
 
package/animated.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8
 
package/animated.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8