@shopify/flash-list 2.0.0-alpha.1 → 2.0.0-alpha.10

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.
Files changed (276) hide show
  1. package/README.md +34 -3
  2. package/dist/AnimatedFlashList.d.ts +0 -1
  3. package/dist/AnimatedFlashList.d.ts.map +1 -1
  4. package/dist/FlashList.js +2 -3
  5. package/dist/FlashList.js.map +1 -1
  6. package/dist/FlashListProps.d.ts +3 -3
  7. package/dist/FlashListProps.d.ts.map +1 -1
  8. package/dist/GridLayoutProviderWithProps.js +1 -2
  9. package/dist/GridLayoutProviderWithProps.js.map +1 -1
  10. package/dist/MasonryFlashList.d.ts +2 -2
  11. package/dist/MasonryFlashList.d.ts.map +1 -1
  12. package/dist/MasonryFlashList.js.map +1 -1
  13. package/dist/PureComponentWrapper.js +1 -1
  14. package/dist/PureComponentWrapper.js.map +1 -1
  15. package/dist/__tests__/AverageWindow.test.js.map +1 -1
  16. package/dist/__tests__/ConsecutiveNumbers.test.d.ts +2 -0
  17. package/dist/__tests__/ConsecutiveNumbers.test.d.ts.map +1 -0
  18. package/dist/__tests__/ConsecutiveNumbers.test.js +224 -0
  19. package/dist/__tests__/ConsecutiveNumbers.test.js.map +1 -0
  20. package/dist/__tests__/FlashList.test.js.map +1 -1
  21. package/dist/__tests__/GridLayoutManager.test.d.ts +2 -0
  22. package/dist/__tests__/GridLayoutManager.test.d.ts.map +1 -0
  23. package/dist/__tests__/GridLayoutManager.test.js +69 -0
  24. package/dist/__tests__/GridLayoutManager.test.js.map +1 -0
  25. package/dist/__tests__/GridLayoutProviderWithProps.test.js.map +1 -1
  26. package/dist/__tests__/LinearLayoutManager.test.d.ts +2 -0
  27. package/dist/__tests__/LinearLayoutManager.test.d.ts.map +1 -0
  28. package/dist/__tests__/LinearLayoutManager.test.js +140 -0
  29. package/dist/__tests__/LinearLayoutManager.test.js.map +1 -0
  30. package/dist/__tests__/MasonryFlashList.test.js.map +1 -1
  31. package/dist/__tests__/MasonryLayoutManager.test.d.ts +2 -0
  32. package/dist/__tests__/MasonryLayoutManager.test.d.ts.map +1 -0
  33. package/dist/__tests__/MasonryLayoutManager.test.js +148 -0
  34. package/dist/__tests__/MasonryLayoutManager.test.js.map +1 -0
  35. package/dist/__tests__/RecycleKeyManager.test.d.ts +2 -0
  36. package/dist/__tests__/RecycleKeyManager.test.d.ts.map +1 -0
  37. package/dist/__tests__/RecycleKeyManager.test.js +210 -0
  38. package/dist/__tests__/RecycleKeyManager.test.js.map +1 -0
  39. package/dist/__tests__/RecyclerView.test.d.ts +2 -0
  40. package/dist/__tests__/RecyclerView.test.d.ts.map +1 -0
  41. package/dist/__tests__/RecyclerView.test.js +59 -0
  42. package/dist/__tests__/RecyclerView.test.js.map +1 -0
  43. package/dist/__tests__/ViewabilityHelper.test.js.map +1 -1
  44. package/dist/__tests__/findVisibleIndex.test.d.ts +2 -0
  45. package/dist/__tests__/findVisibleIndex.test.d.ts.map +1 -0
  46. package/dist/__tests__/findVisibleIndex.test.js +259 -0
  47. package/dist/__tests__/findVisibleIndex.test.js.map +1 -0
  48. package/dist/__tests__/helpers/createLayoutManager.d.ts +34 -0
  49. package/dist/__tests__/helpers/createLayoutManager.d.ts.map +1 -0
  50. package/dist/__tests__/helpers/createLayoutManager.js +111 -0
  51. package/dist/__tests__/helpers/createLayoutManager.js.map +1 -0
  52. package/dist/__tests__/helpers/mountFlashList.d.ts +2 -2
  53. package/dist/__tests__/helpers/mountFlashList.d.ts.map +1 -1
  54. package/dist/__tests__/helpers/mountFlashList.js +2 -2
  55. package/dist/__tests__/helpers/mountFlashList.js.map +1 -1
  56. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts +2 -2
  57. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts.map +1 -1
  58. package/dist/__tests__/helpers/mountMasonryFlashList.js +2 -2
  59. package/dist/__tests__/helpers/mountMasonryFlashList.js.map +1 -1
  60. package/dist/__tests__/useBlankAreaTracker.test.js.map +1 -1
  61. package/dist/__tests__/useUnmountAwareCallbacks.test.d.ts +2 -0
  62. package/dist/__tests__/useUnmountAwareCallbacks.test.d.ts.map +1 -0
  63. package/dist/__tests__/useUnmountAwareCallbacks.test.js +185 -0
  64. package/dist/__tests__/useUnmountAwareCallbacks.test.js.map +1 -0
  65. package/dist/benchmark/AutoScrollHelper.js +2 -2
  66. package/dist/benchmark/AutoScrollHelper.js.map +1 -1
  67. package/dist/benchmark/JSFPSMonitor.js.map +1 -1
  68. package/dist/benchmark/roundToDecimalPlaces.js +1 -2
  69. package/dist/benchmark/roundToDecimalPlaces.js.map +1 -1
  70. package/dist/benchmark/useBenchmark.js +2 -3
  71. package/dist/benchmark/useBenchmark.js.map +1 -1
  72. package/dist/benchmark/useBlankAreaTracker.js +1 -2
  73. package/dist/benchmark/useBlankAreaTracker.js.map +1 -1
  74. package/dist/benchmark/useDataMultiplier.js +1 -2
  75. package/dist/benchmark/useDataMultiplier.js.map +1 -1
  76. package/dist/benchmark/useFlatListBenchmark.d.ts +0 -1
  77. package/dist/benchmark/useFlatListBenchmark.d.ts.map +1 -1
  78. package/dist/benchmark/useFlatListBenchmark.js +1 -2
  79. package/dist/benchmark/useFlatListBenchmark.js.map +1 -1
  80. package/dist/enableNewCore.d.ts.map +1 -1
  81. package/dist/enableNewCore.js +4 -4
  82. package/dist/enableNewCore.js.map +1 -1
  83. package/dist/errors/CustomError.js.map +1 -1
  84. package/dist/index.d.ts +2 -3
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +21 -6
  87. package/dist/index.js.map +1 -1
  88. package/dist/native/auto-layout/AutoLayoutView.d.ts +1 -1
  89. package/dist/native/auto-layout/AutoLayoutView.d.ts.map +1 -1
  90. package/dist/native/auto-layout/AutoLayoutView.js +1 -1
  91. package/dist/native/auto-layout/AutoLayoutView.js.map +1 -1
  92. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +1 -1
  93. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts +1 -1
  94. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts.map +1 -1
  95. package/dist/native/config/PlatformHelper.android.d.ts +2 -0
  96. package/dist/native/config/PlatformHelper.android.d.ts.map +1 -1
  97. package/dist/native/config/PlatformHelper.android.js +2 -0
  98. package/dist/native/config/PlatformHelper.android.js.map +1 -1
  99. package/dist/native/config/PlatformHelper.d.ts +2 -0
  100. package/dist/native/config/PlatformHelper.d.ts.map +1 -1
  101. package/dist/native/config/PlatformHelper.ios.d.ts +2 -0
  102. package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -1
  103. package/dist/native/config/PlatformHelper.ios.js +2 -0
  104. package/dist/native/config/PlatformHelper.ios.js.map +1 -1
  105. package/dist/native/config/PlatformHelper.js +2 -0
  106. package/dist/native/config/PlatformHelper.js.map +1 -1
  107. package/dist/native/config/PlatformHelper.web.d.ts +2 -0
  108. package/dist/native/config/PlatformHelper.web.d.ts.map +1 -1
  109. package/dist/native/config/PlatformHelper.web.js +3 -1
  110. package/dist/native/config/PlatformHelper.web.js.map +1 -1
  111. package/dist/recyclerview/RecycleKeyManager.js.map +1 -1
  112. package/dist/recyclerview/RecyclerView.d.ts +1 -1
  113. package/dist/recyclerview/RecyclerView.d.ts.map +1 -1
  114. package/dist/recyclerview/RecyclerView.js +56 -39
  115. package/dist/recyclerview/RecyclerView.js.map +1 -1
  116. package/dist/recyclerview/RecyclerViewContextProvider.d.ts +0 -1
  117. package/dist/recyclerview/RecyclerViewContextProvider.d.ts.map +1 -1
  118. package/dist/recyclerview/RecyclerViewContextProvider.js +2 -2
  119. package/dist/recyclerview/RecyclerViewContextProvider.js.map +1 -1
  120. package/dist/recyclerview/RecyclerViewManager.d.ts +10 -0
  121. package/dist/recyclerview/RecyclerViewManager.d.ts.map +1 -1
  122. package/dist/recyclerview/RecyclerViewManager.js +59 -11
  123. package/dist/recyclerview/RecyclerViewManager.js.map +1 -1
  124. package/dist/recyclerview/RecyclerViewProps.d.ts +1 -1
  125. package/dist/recyclerview/RecyclerViewProps.d.ts.map +1 -1
  126. package/dist/recyclerview/ViewHolder.d.ts.map +1 -1
  127. package/dist/recyclerview/ViewHolder.js +3 -3
  128. package/dist/recyclerview/ViewHolder.js.map +1 -1
  129. package/dist/recyclerview/ViewHolderCollection.d.ts +1 -1
  130. package/dist/recyclerview/ViewHolderCollection.d.ts.map +1 -1
  131. package/dist/recyclerview/ViewHolderCollection.js +0 -1
  132. package/dist/recyclerview/ViewHolderCollection.js.map +1 -1
  133. package/dist/recyclerview/components/ScrollAnchor.d.ts +1 -0
  134. package/dist/recyclerview/components/ScrollAnchor.d.ts.map +1 -1
  135. package/dist/recyclerview/components/ScrollAnchor.js +5 -6
  136. package/dist/recyclerview/components/ScrollAnchor.js.map +1 -1
  137. package/dist/recyclerview/components/StickyHeaders.d.ts +1 -1
  138. package/dist/recyclerview/components/StickyHeaders.d.ts.map +1 -1
  139. package/dist/recyclerview/components/StickyHeaders.js +5 -13
  140. package/dist/recyclerview/components/StickyHeaders.js.map +1 -1
  141. package/dist/recyclerview/helpers/ConsecutiveNumbers.d.ts +1 -1
  142. package/dist/recyclerview/helpers/ConsecutiveNumbers.d.ts.map +1 -1
  143. package/dist/recyclerview/helpers/ConsecutiveNumbers.js +2 -2
  144. package/dist/recyclerview/helpers/ConsecutiveNumbers.js.map +1 -1
  145. package/dist/recyclerview/helpers/EngagedIndicesTracker.d.ts +48 -2
  146. package/dist/recyclerview/helpers/EngagedIndicesTracker.d.ts.map +1 -1
  147. package/dist/recyclerview/helpers/EngagedIndicesTracker.js +90 -19
  148. package/dist/recyclerview/helpers/EngagedIndicesTracker.js.map +1 -1
  149. package/dist/recyclerview/helpers/RenderTimeTracker.d.ts +10 -0
  150. package/dist/recyclerview/helpers/RenderTimeTracker.d.ts.map +1 -0
  151. package/dist/recyclerview/helpers/RenderTimeTracker.js +39 -0
  152. package/dist/recyclerview/helpers/RenderTimeTracker.js.map +1 -0
  153. package/dist/recyclerview/helpers/VelocityTracker.d.ts +29 -0
  154. package/dist/recyclerview/helpers/VelocityTracker.d.ts.map +1 -0
  155. package/dist/recyclerview/helpers/VelocityTracker.js +70 -0
  156. package/dist/recyclerview/helpers/VelocityTracker.js.map +1 -0
  157. package/dist/recyclerview/hooks/useBoundDetection.d.ts +0 -1
  158. package/dist/recyclerview/hooks/useBoundDetection.d.ts.map +1 -1
  159. package/dist/recyclerview/hooks/useBoundDetection.js +4 -6
  160. package/dist/recyclerview/hooks/useBoundDetection.js.map +1 -1
  161. package/dist/recyclerview/hooks/useLayoutState.js +1 -2
  162. package/dist/recyclerview/hooks/useLayoutState.js.map +1 -1
  163. package/dist/recyclerview/hooks/useMappingHelper.d.ts +9 -0
  164. package/dist/recyclerview/hooks/useMappingHelper.d.ts.map +1 -0
  165. package/dist/recyclerview/hooks/useMappingHelper.js +19 -0
  166. package/dist/recyclerview/hooks/useMappingHelper.js.map +1 -0
  167. package/dist/recyclerview/hooks/useOnLoad.d.ts +2 -2
  168. package/dist/recyclerview/hooks/useOnLoad.d.ts.map +1 -1
  169. package/dist/recyclerview/hooks/useOnLoad.js +5 -4
  170. package/dist/recyclerview/hooks/useOnLoad.js.map +1 -1
  171. package/dist/recyclerview/hooks/useRecyclerViewController.d.ts.map +1 -1
  172. package/dist/recyclerview/hooks/useRecyclerViewController.js +171 -117
  173. package/dist/recyclerview/hooks/useRecyclerViewController.js.map +1 -1
  174. package/dist/recyclerview/hooks/useRecyclerViewManager.d.ts +2 -0
  175. package/dist/recyclerview/hooks/useRecyclerViewManager.d.ts.map +1 -1
  176. package/dist/recyclerview/hooks/useRecyclerViewManager.js +4 -1
  177. package/dist/recyclerview/hooks/useRecyclerViewManager.js.map +1 -1
  178. package/dist/recyclerview/hooks/useRecyclingState.js +1 -2
  179. package/dist/recyclerview/hooks/useRecyclingState.js.map +1 -1
  180. package/dist/recyclerview/hooks/useSecondaryProps.d.ts +1 -1
  181. package/dist/recyclerview/hooks/useSecondaryProps.d.ts.map +1 -1
  182. package/dist/recyclerview/hooks/useSecondaryProps.js +15 -12
  183. package/dist/recyclerview/hooks/useSecondaryProps.js.map +1 -1
  184. package/dist/recyclerview/hooks/useUnmountAwareCallbacks.d.ts +8 -0
  185. package/dist/recyclerview/hooks/useUnmountAwareCallbacks.d.ts.map +1 -0
  186. package/dist/recyclerview/hooks/useUnmountAwareCallbacks.js +34 -0
  187. package/dist/recyclerview/hooks/useUnmountAwareCallbacks.js.map +1 -0
  188. package/dist/recyclerview/hooks/useUnmountFlag.d.ts +0 -1
  189. package/dist/recyclerview/hooks/useUnmountFlag.d.ts.map +1 -1
  190. package/dist/recyclerview/layout-managers/GridLayoutManager.d.ts.map +1 -1
  191. package/dist/recyclerview/layout-managers/GridLayoutManager.js +2 -5
  192. package/dist/recyclerview/layout-managers/GridLayoutManager.js.map +1 -1
  193. package/dist/recyclerview/layout-managers/LayoutManager.d.ts +1 -0
  194. package/dist/recyclerview/layout-managers/LayoutManager.d.ts.map +1 -1
  195. package/dist/recyclerview/layout-managers/LayoutManager.js +5 -1
  196. package/dist/recyclerview/layout-managers/LayoutManager.js.map +1 -1
  197. package/dist/recyclerview/layout-managers/LinearLayoutManager.d.ts +1 -2
  198. package/dist/recyclerview/layout-managers/LinearLayoutManager.d.ts.map +1 -1
  199. package/dist/recyclerview/layout-managers/LinearLayoutManager.js +3 -3
  200. package/dist/recyclerview/layout-managers/LinearLayoutManager.js.map +1 -1
  201. package/dist/recyclerview/layout-managers/MasonryLayoutManager.d.ts.map +1 -1
  202. package/dist/recyclerview/layout-managers/MasonryLayoutManager.js +5 -7
  203. package/dist/recyclerview/layout-managers/MasonryLayoutManager.js.map +1 -1
  204. package/dist/recyclerview/utils/adjustOffsetForRTL.js +1 -2
  205. package/dist/recyclerview/utils/adjustOffsetForRTL.js.map +1 -1
  206. package/dist/recyclerview/utils/componentUtils.d.ts +1 -1
  207. package/dist/recyclerview/utils/componentUtils.d.ts.map +1 -1
  208. package/dist/recyclerview/utils/componentUtils.js.map +1 -1
  209. package/dist/recyclerview/utils/findVisibleIndex.d.ts.map +1 -1
  210. package/dist/recyclerview/utils/findVisibleIndex.js +3 -5
  211. package/dist/recyclerview/utils/findVisibleIndex.js.map +1 -1
  212. package/dist/recyclerview/utils/measureLayout.d.ts +24 -28
  213. package/dist/recyclerview/utils/measureLayout.d.ts.map +1 -1
  214. package/dist/recyclerview/utils/measureLayout.js +36 -6
  215. package/dist/recyclerview/utils/measureLayout.js.map +1 -1
  216. package/dist/recyclerview/utils/measureLayout.web.d.ts +29 -0
  217. package/dist/recyclerview/utils/measureLayout.web.d.ts.map +1 -0
  218. package/dist/recyclerview/utils/measureLayout.web.js +89 -0
  219. package/dist/recyclerview/utils/measureLayout.web.js.map +1 -0
  220. package/dist/specs/AutoLayoutNativeComponent.d.ts +1 -2
  221. package/dist/specs/AutoLayoutNativeComponent.d.ts.map +1 -1
  222. package/dist/specs/CellContainerNativeComponent.d.ts +0 -1
  223. package/dist/specs/CellContainerNativeComponent.d.ts.map +1 -1
  224. package/dist/tsconfig.tsbuildinfo +1 -1
  225. package/dist/utils/AverageWindow.js.map +1 -1
  226. package/dist/utils/ContentContainerUtils.d.ts.map +1 -1
  227. package/dist/utils/ContentContainerUtils.js.map +1 -1
  228. package/dist/viewability/ViewabilityHelper.js.map +1 -1
  229. package/dist/viewability/ViewabilityManager.d.ts.map +1 -1
  230. package/dist/viewability/ViewabilityManager.js.map +1 -1
  231. package/package.json +4 -3
  232. package/src/FlashList.tsx +1 -1
  233. package/src/FlashListProps.ts +1 -1
  234. package/src/__tests__/ConsecutiveNumbers.test.ts +232 -0
  235. package/src/__tests__/GridLayoutManager.test.ts +113 -0
  236. package/src/__tests__/LinearLayoutManager.test.ts +227 -0
  237. package/src/__tests__/MasonryLayoutManager.test.ts +202 -0
  238. package/src/__tests__/RecycleKeyManager.test.ts +254 -0
  239. package/src/__tests__/RecyclerView.test.tsx +69 -0
  240. package/src/__tests__/findVisibleIndex.test.ts +369 -0
  241. package/src/__tests__/helpers/createLayoutManager.ts +142 -0
  242. package/src/__tests__/useUnmountAwareCallbacks.test.tsx +285 -0
  243. package/src/enableNewCore.ts +3 -1
  244. package/src/index.ts +21 -7
  245. package/src/native/config/PlatformHelper.android.ts +2 -0
  246. package/src/native/config/PlatformHelper.ios.ts +2 -0
  247. package/src/native/config/PlatformHelper.ts +2 -0
  248. package/src/native/config/PlatformHelper.web.ts +3 -1
  249. package/src/recyclerview/RecyclerView.tsx +73 -38
  250. package/src/recyclerview/RecyclerViewContextProvider.ts +1 -0
  251. package/src/recyclerview/RecyclerViewManager.ts +67 -12
  252. package/src/recyclerview/RecyclerViewProps.ts +2 -1
  253. package/src/recyclerview/ViewHolder.tsx +8 -3
  254. package/src/recyclerview/ViewHolderCollection.tsx +3 -2
  255. package/src/recyclerview/components/ScrollAnchor.tsx +4 -3
  256. package/src/recyclerview/components/StickyHeaders.tsx +8 -14
  257. package/src/recyclerview/helpers/ConsecutiveNumbers.ts +2 -2
  258. package/src/recyclerview/helpers/EngagedIndicesTracker.ts +136 -25
  259. package/src/recyclerview/helpers/RenderTimeTracker.ts +38 -0
  260. package/src/recyclerview/helpers/VelocityTracker.ts +77 -0
  261. package/src/recyclerview/hooks/useBoundDetection.ts +2 -2
  262. package/src/recyclerview/hooks/useMappingHelper.ts +20 -0
  263. package/src/recyclerview/hooks/useOnLoad.ts +7 -4
  264. package/src/recyclerview/hooks/useRecyclerViewController.tsx +192 -133
  265. package/src/recyclerview/hooks/useRecyclerViewManager.ts +5 -1
  266. package/src/recyclerview/hooks/useSecondaryProps.tsx +12 -7
  267. package/src/recyclerview/hooks/useUnmountAwareCallbacks.ts +37 -0
  268. package/src/recyclerview/layout-managers/GridLayoutManager.ts +2 -5
  269. package/src/recyclerview/layout-managers/LayoutManager.ts +7 -2
  270. package/src/recyclerview/layout-managers/LinearLayoutManager.ts +12 -8
  271. package/src/recyclerview/layout-managers/MasonryLayoutManager.ts +4 -5
  272. package/src/recyclerview/utils/componentUtils.ts +1 -1
  273. package/src/recyclerview/utils/findVisibleIndex.ts +1 -2
  274. package/src/recyclerview/utils/measureLayout.ts +41 -2
  275. package/src/recyclerview/utils/measureLayout.web.ts +104 -0
  276. package/src/viewability/ViewToken.ts +1 -1
@@ -5,34 +5,6 @@ interface Layout {
5
5
  width: number;
6
6
  height: number;
7
7
  }
8
- /**
9
- * Measures the layout of a view relative to itselft.
10
- * Using measure wasn't returing accurate values but this workaround does.
11
- * Returns the x, y coordinates and dimensions of the view.
12
- *
13
- * @param view - The React Native View component to measure
14
- * @returns An object containing x, y, width, and height measurements
15
- */
16
- export declare function measureLayout(view: View, oldLayout: Layout | undefined): {
17
- x: number;
18
- y: number;
19
- width: number;
20
- height: number;
21
- };
22
- /**
23
- * Measures the layout of a view relative to another view.
24
- * Useful for measuring positions relative to a specific reference view.
25
- *
26
- * @param view - The React Native View component to measure
27
- * @param relativeTo - The reference view to measure against
28
- * @returns An object containing x, y, width, and height measurements
29
- */
30
- export declare function measureLayoutRelative(view: View, relativeTo: View, oldLayout: Layout | undefined): {
31
- x: number;
32
- y: number;
33
- width: number;
34
- height: number;
35
- };
36
8
  /**
37
9
  * Checks if two dimension values are not equal, with a small tolerance.
38
10
  * Used to handle floating-point precision issues in layout measurements.
@@ -52,5 +24,29 @@ export declare function areDimensionsNotEqual(value1: number, value2: number): b
52
24
  */
53
25
  export declare function areDimensionsEqual(value1: number, value2: number): boolean;
54
26
  export declare function roundOffPixel(value: number): number;
27
+ /**
28
+ * Specific method for easier mocking
29
+ * Measures the layout of parent of RecyclerView
30
+ * Returns the x, y coordinates and dimensions of the view.
31
+ * @param view - The React Native View component to measure
32
+ * @returns An object containing x, y, width, and height measurements
33
+ */
34
+ export declare function measureParentSize(view: View): Layout;
35
+ /**
36
+ * Specific method for easier mocking
37
+ * Measures the layout of child container of RecyclerView
38
+ * @param childContainerView
39
+ * @param parentView
40
+ * @returns
41
+ */
42
+ export declare function measureFirstChildLayout(childContainerView: View, parentView: View): Layout;
43
+ /**
44
+ * Specific method for easier mocking
45
+ * Measures the layout of items of RecyclerView
46
+ * @param item
47
+ * @param oldLayout
48
+ * @returns
49
+ */
50
+ export declare function measureItemLayout(item: View, oldLayout: Layout | undefined): Layout;
55
51
  export {};
56
52
  //# sourceMappingURL=measureLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"measureLayout.d.ts","sourceRoot":"","sources":["../../../src/recyclerview/utils/measureLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,MAAM;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS;;;;;EAMtE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,IAAI,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS;;;;;EAmB9B;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAO1E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD"}
1
+ {"version":3,"file":"measureLayout.d.ts","sourceRoot":"","sources":["../../../src/recyclerview/utils/measureLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,MAAM;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAkDD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAE7E;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAO1E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,kBAAkB,EAAE,IAAI,EACxB,UAAU,EAAE,IAAI,GACf,MAAM,CAER;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,MAAM,CAER"}
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.roundOffPixel = exports.areDimensionsEqual = exports.areDimensionsNotEqual = exports.measureLayoutRelative = exports.measureLayout = void 0;
3
+ exports.areDimensionsNotEqual = areDimensionsNotEqual;
4
+ exports.areDimensionsEqual = areDimensionsEqual;
5
+ exports.roundOffPixel = roundOffPixel;
6
+ exports.measureParentSize = measureParentSize;
7
+ exports.measureFirstChildLayout = measureFirstChildLayout;
8
+ exports.measureItemLayout = measureItemLayout;
4
9
  var react_native_1 = require("react-native");
5
10
  /**
6
11
  * Measures the layout of a view relative to itselft.
@@ -17,7 +22,6 @@ function measureLayout(view, oldLayout) {
17
22
  // return layout;
18
23
  return measureLayoutRelative(view, view, oldLayout);
19
24
  }
20
- exports.measureLayout = measureLayout;
21
25
  /**
22
26
  * Measures the layout of a view relative to another view.
23
27
  * Useful for measuring positions relative to a specific reference view.
@@ -44,7 +48,6 @@ function measureLayoutRelative(view, relativeTo, oldLayout) {
44
48
  }
45
49
  return layout;
46
50
  }
47
- exports.measureLayoutRelative = measureLayoutRelative;
48
51
  /**
49
52
  * Checks if two dimension values are not equal, with a small tolerance.
50
53
  * Used to handle floating-point precision issues in layout measurements.
@@ -56,7 +59,6 @@ exports.measureLayoutRelative = measureLayoutRelative;
56
59
  function areDimensionsNotEqual(value1, value2) {
57
60
  return !areDimensionsEqual(value1, value2);
58
61
  }
59
- exports.areDimensionsNotEqual = areDimensionsNotEqual;
60
62
  /**
61
63
  * Checks if two dimension values are equal, with a small tolerance.
62
64
  * Used to handle floating-point precision issues in layout measurements.
@@ -69,9 +71,37 @@ function areDimensionsEqual(value1, value2) {
69
71
  return (Math.abs(react_native_1.PixelRatio.getPixelSizeForLayoutSize(value1) -
70
72
  react_native_1.PixelRatio.getPixelSizeForLayoutSize(value2)) <= 1);
71
73
  }
72
- exports.areDimensionsEqual = areDimensionsEqual;
73
74
  function roundOffPixel(value) {
74
75
  return react_native_1.PixelRatio.roundToNearestPixel(value);
75
76
  }
76
- exports.roundOffPixel = roundOffPixel;
77
+ /**
78
+ * Specific method for easier mocking
79
+ * Measures the layout of parent of RecyclerView
80
+ * Returns the x, y coordinates and dimensions of the view.
81
+ * @param view - The React Native View component to measure
82
+ * @returns An object containing x, y, width, and height measurements
83
+ */
84
+ function measureParentSize(view) {
85
+ return measureLayout(view, undefined);
86
+ }
87
+ /**
88
+ * Specific method for easier mocking
89
+ * Measures the layout of child container of RecyclerView
90
+ * @param childContainerView
91
+ * @param parentView
92
+ * @returns
93
+ */
94
+ function measureFirstChildLayout(childContainerView, parentView) {
95
+ return measureLayoutRelative(childContainerView, parentView, undefined);
96
+ }
97
+ /**
98
+ * Specific method for easier mocking
99
+ * Measures the layout of items of RecyclerView
100
+ * @param item
101
+ * @param oldLayout
102
+ * @returns
103
+ */
104
+ function measureItemLayout(item, oldLayout) {
105
+ return measureLayout(item, oldLayout);
106
+ }
77
107
  //# sourceMappingURL=measureLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"measureLayout.js","sourceRoot":"","sources":["../../../src/recyclerview/utils/measureLayout.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAShD;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,IAAU,EAAE,SAA6B;IACrE,wDAAwD;IACxD,8CAA8C;IAC9C,gDAAgD;IAChD,iBAAiB;IACjB,OAAO,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AACtD,CAAC;AAND,sCAMC;AAED;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,IAAU,EACV,UAAgB,EAChB,SAA6B;IAE7B,IAAM,MAAM,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACnD,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,UAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM;QACjD,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACb,MAAM,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,IAAI,SAAS,EAAE;QACb,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE;YACrD,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;SAChC;QACD,IAAI,kBAAkB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE;YACvD,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;SAClC;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAtBD,sDAsBC;AAED;;;;;;;GAOG;AACH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,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AAC1E,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAC/B,IAAU,EACV,SAA6B;IAE7B,OAAO,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACxC,CAAC"}
@@ -0,0 +1,29 @@
1
+ interface Layout {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }
7
+ /**
8
+ * Checks if two dimension values are not equal, with a small tolerance.
9
+ */
10
+ export declare function areDimensionsNotEqual(value1: number, value2: number): boolean;
11
+ /**
12
+ * Checks if two dimension values are equal, with a small tolerance.
13
+ */
14
+ export declare function areDimensionsEqual(value1: number, value2: number): boolean;
15
+ export declare function roundOffPixel(value: number): number;
16
+ /**
17
+ * Measures the layout of parent of RecyclerView
18
+ */
19
+ export declare function measureParentSize(view: Element): Layout;
20
+ /**
21
+ * Measures the layout of child container of RecyclerView
22
+ */
23
+ export declare function measureFirstChildLayout(childContainerView: Element, parentView: Element): Layout;
24
+ /**
25
+ * Measures the layout of items of RecyclerView
26
+ */
27
+ export declare function measureItemLayout(item: Element, oldLayout: Layout | undefined): Layout;
28
+ export {};
29
+ //# sourceMappingURL=measureLayout.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measureLayout.web.d.ts","sourceRoot":"","sources":["../../../src/recyclerview/utils/measureLayout.web.ts"],"names":[],"mappings":"AAAA,UAAU,MAAM;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAuBD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAE7E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAOvD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,kBAAkB,EAAE,OAAO,EAC3B,UAAU,EAAE,OAAO,GAClB,MAAM,CAaR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,MAAM,CAkBR"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.areDimensionsNotEqual = areDimensionsNotEqual;
4
+ exports.areDimensionsEqual = areDimensionsEqual;
5
+ exports.roundOffPixel = roundOffPixel;
6
+ exports.measureParentSize = measureParentSize;
7
+ exports.measureFirstChildLayout = measureFirstChildLayout;
8
+ exports.measureItemLayout = measureItemLayout;
9
+ /**
10
+ * Gets scroll offsets from up to 3 parent elements
11
+ */
12
+ function getScrollOffsets(element, stopAt) {
13
+ var _a, _b;
14
+ var scrollX = 0;
15
+ var scrollY = 0;
16
+ var currentElement = element;
17
+ var depth = 0;
18
+ // Only check up to 3 parent elements
19
+ while (currentElement && currentElement !== stopAt && depth < 3) {
20
+ var htmlElement = currentElement;
21
+ scrollX += (_a = htmlElement.scrollLeft) !== null && _a !== void 0 ? _a : 0;
22
+ scrollY += (_b = htmlElement.scrollTop) !== null && _b !== void 0 ? _b : 0;
23
+ currentElement = currentElement.parentElement;
24
+ depth++;
25
+ }
26
+ return { scrollX: scrollX, scrollY: scrollY };
27
+ }
28
+ /**
29
+ * Checks if two dimension values are not equal, with a small tolerance.
30
+ */
31
+ function areDimensionsNotEqual(value1, value2) {
32
+ return !areDimensionsEqual(value1, value2);
33
+ }
34
+ /**
35
+ * Checks if two dimension values are equal, with a small tolerance.
36
+ */
37
+ function areDimensionsEqual(value1, value2) {
38
+ return Math.abs(value1 - value2) <= 1;
39
+ }
40
+ function roundOffPixel(value) {
41
+ return value;
42
+ }
43
+ /**
44
+ * Measures the layout of parent of RecyclerView
45
+ */
46
+ function measureParentSize(view) {
47
+ return {
48
+ x: 0,
49
+ y: 0,
50
+ width: view.clientWidth,
51
+ height: view.clientHeight,
52
+ };
53
+ }
54
+ /**
55
+ * Measures the layout of child container of RecyclerView
56
+ */
57
+ function measureFirstChildLayout(childContainerView, parentView) {
58
+ var childRect = childContainerView.getBoundingClientRect();
59
+ var parentRect = parentView.getBoundingClientRect();
60
+ // Get scroll offsets for child container (max 3 parents)
61
+ var scrollOffsets = getScrollOffsets(childContainerView, parentView);
62
+ return {
63
+ x: childRect.left - parentRect.left + scrollOffsets.scrollX,
64
+ y: childRect.top - parentRect.top + scrollOffsets.scrollY,
65
+ width: roundOffPixel(childRect.width),
66
+ height: roundOffPixel(childRect.height),
67
+ };
68
+ }
69
+ /**
70
+ * Measures the layout of items of RecyclerView
71
+ */
72
+ function measureItemLayout(item, oldLayout) {
73
+ var layout = {
74
+ x: 0,
75
+ y: 0,
76
+ width: item.clientWidth,
77
+ height: item.clientHeight,
78
+ };
79
+ if (oldLayout) {
80
+ if (areDimensionsEqual(layout.width, oldLayout.width)) {
81
+ layout.width = oldLayout.width;
82
+ }
83
+ if (areDimensionsEqual(layout.height, oldLayout.height)) {
84
+ layout.height = oldLayout.height;
85
+ }
86
+ }
87
+ return layout;
88
+ }
89
+ //# sourceMappingURL=measureLayout.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measureLayout.web.js","sourceRoot":"","sources":["../../../src/recyclerview/utils/measureLayout.web.ts"],"names":[],"mappings":";;AA+BA,sDAEC;AAKD,gDAEC;AAED,sCAEC;AAKD,8CAOC;AAKD,0DAgBC;AAKD,8CAqBC;AAhGD;;GAEG;AACH,SAAS,gBAAgB,CAAC,OAAgB,EAAE,MAAe;;IACzD,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,OAAO,GAA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D;IACzD,IAAM,aAAa,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;IAEvE,OAAO;QACL,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,GAAG,aAAa,CAAC,OAAO;QAC3D,CAAC,EAAE,SAAS,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,aAAa,CAAC,OAAO;QACzD,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;QACrC,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC;KACxC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,IAAa,EACb,SAA6B;IAE7B,IAAM,MAAM,GAAG;QACb,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,KAAK,EAAE,IAAI,CAAC,WAAW;QACvB,MAAM,EAAE,IAAI,CAAC,YAAY;KAC1B,CAAC;IAEF,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACtD,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,kBAAkB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YACxD,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react-native/types/modules/Codegen" />
2
1
  import type { ViewProps } from "react-native";
3
2
  import type { Int32, Double, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
4
- declare type BlankAreaEvent = Readonly<{
3
+ type BlankAreaEvent = Readonly<{
5
4
  offsetStart: Int32;
6
5
  offsetEnd: Int32;
7
6
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"AutoLayoutNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/AutoLayoutNativeComponent.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,aAAK,cAAc,GAAG,QAAQ,CAAC;IAC7B,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACvD;;AAED,wBAAqE"}
1
+ {"version":3,"file":"AutoLayoutNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/AutoLayoutNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,KAAK,cAAc,GAAG,QAAQ,CAAC;IAC7B,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACvD;;AAED,wBAAqE"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react-native/types/modules/Codegen" />
2
1
  import type { Int32 } from "react-native/Libraries/Types/CodegenTypes";
3
2
  import type { ViewProps } from "react-native";
4
3
  interface NativeProps extends ViewProps {
@@ -1 +1 @@
1
- {"version":3,"file":"CellContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/CellContainerNativeComponent.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;;AAED,wBAAoE"}
1
+ {"version":3,"file":"CellContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/CellContainerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;;AAED,wBAAoE"}