@tamagui/react-native-web-lite 2.7.7 → 3.0.0-beta.637.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.
Files changed (504) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +82 -87
  2. package/dist/cjs/ActivityIndicator/index.cjs +83 -103
  3. package/dist/cjs/Alert/index.cjs +17 -20
  4. package/dist/cjs/AppRegistry/AppContainer.cjs +37 -52
  5. package/dist/cjs/AppRegistry/index.cjs +69 -81
  6. package/dist/cjs/AppRegistry/renderApplication.cjs +42 -54
  7. package/dist/cjs/AppState/index.cjs +60 -67
  8. package/dist/cjs/Appearance/index.cjs +40 -49
  9. package/dist/cjs/BackHandler/index.cjs +20 -25
  10. package/dist/cjs/Clipboard/index.cjs +50 -53
  11. package/dist/cjs/DeviceEmitter.cjs +15 -18
  12. package/dist/cjs/DeviceInfo/index.cjs +50 -63
  13. package/dist/cjs/Dimensions/index.cjs +86 -89
  14. package/dist/cjs/FlatList.cjs +177 -211
  15. package/dist/cjs/I18nManager/index.cjs +24 -29
  16. package/dist/cjs/Image/index.cjs +277 -308
  17. package/dist/cjs/Image/types.cjs +10 -11
  18. package/dist/cjs/ImageBackground/index.cjs +35 -48
  19. package/dist/cjs/InteractionManager/TaskQueue.cjs +95 -100
  20. package/dist/cjs/InteractionManager/index.cjs +105 -115
  21. package/dist/cjs/Keyboard/index.cjs +23 -28
  22. package/dist/cjs/KeyboardAvoidingView/index.cjs +41 -54
  23. package/dist/cjs/Libraries/Pressability/Pressability.cjs +15 -18
  24. package/dist/cjs/Libraries/Pressability/usePressability.cjs +15 -18
  25. package/dist/cjs/Linking/index.cjs +86 -89
  26. package/dist/cjs/LogBox/index.cjs +20 -21
  27. package/dist/cjs/Modal/ModalAnimation.cjs +131 -151
  28. package/dist/cjs/Modal/ModalContent.cjs +57 -77
  29. package/dist/cjs/Modal/ModalPortal.cjs +38 -46
  30. package/dist/cjs/Modal/index.cjs +15 -18
  31. package/dist/cjs/NativeModules/index.cjs +15 -20
  32. package/dist/cjs/PanResponder/index.cjs +18 -26
  33. package/dist/cjs/PixelRatio/index.cjs +45 -48
  34. package/dist/cjs/Pressable/index.cjs +130 -142
  35. package/dist/cjs/RefreshControl/index.cjs +18 -35
  36. package/dist/cjs/SafeAreaView/index.cjs +35 -46
  37. package/dist/cjs/ScrollView/WebScrollView.cjs +270 -0
  38. package/dist/cjs/ScrollView/index.cjs +15 -662
  39. package/dist/cjs/SectionList.cjs +19 -25
  40. package/dist/cjs/Share/index.cjs +44 -47
  41. package/dist/cjs/StatusBar/index.cjs +17 -18
  42. package/dist/cjs/Text/index.cjs +133 -171
  43. package/dist/cjs/Text/types.cjs +10 -11
  44. package/dist/cjs/TextInput/index.cjs +281 -359
  45. package/dist/cjs/TextInput/types.cjs +10 -11
  46. package/dist/cjs/TouchableNativeFeedback.cjs +15 -18
  47. package/dist/cjs/TouchableOpacity.cjs +91 -99
  48. package/dist/cjs/TouchableWithoutFeedback.cjs +65 -74
  49. package/dist/cjs/UnimplementedView.cjs +26 -36
  50. package/dist/cjs/Vibration/index.cjs +25 -28
  51. package/dist/cjs/View/index.cjs +89 -121
  52. package/dist/cjs/View/types.cjs +10 -11
  53. package/dist/cjs/VirtualizedList.cjs +19 -25
  54. package/dist/cjs/codegenNativeCommands.cjs +32 -0
  55. package/dist/cjs/codegenNativeComponent.cjs +19 -18
  56. package/dist/cjs/createElement/index.cjs +52 -70
  57. package/dist/cjs/createReactDOMStyle.cjs +16 -17
  58. package/dist/cjs/index.cjs +106 -106
  59. package/dist/cjs/modules/requestIdleCallback.cjs +28 -29
  60. package/dist/cjs/preprocess.cjs +19 -20
  61. package/dist/cjs/render/index.cjs +18 -19
  62. package/dist/cjs/styleTypes.cjs +10 -11
  63. package/dist/cjs/types.cjs +10 -11
  64. package/dist/cjs/useColorScheme/index.cjs +27 -37
  65. package/dist/cjs/useLocaleContext/index.cjs +15 -18
  66. package/dist/cjs/useWindowDimensions/index.cjs +32 -42
  67. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +23 -24
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +136 -141
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +500 -533
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +100 -109
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +2 -1
  72. package/dist/cjs/vendor/react-native/Animated/Easing.cjs +182 -183
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +302 -328
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +48 -56
  75. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +46 -53
  76. package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +63 -64
  77. package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +52 -56
  78. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +74 -79
  79. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +210 -215
  80. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +107 -116
  81. package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -88
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +23 -29
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +19 -25
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +23 -29
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +23 -29
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +16 -17
  87. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +16 -17
  88. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +32 -44
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +51 -52
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +244 -247
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +59 -60
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +65 -66
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +185 -188
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +49 -50
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +51 -52
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +152 -156
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +133 -134
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +113 -116
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +51 -52
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -75
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +109 -110
  102. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +212 -216
  103. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -103
  104. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +70 -71
  105. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +75 -76
  106. package/dist/cjs/vendor/react-native/Batchinator/index.cjs +46 -57
  107. package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +54 -57
  108. package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +16 -17
  109. package/dist/cjs/vendor/react-native/FeatureFlags.cjs +21 -24
  110. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +165 -173
  111. package/dist/cjs/vendor/react-native/FlatList/index.cjs +259 -294
  112. package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +66 -69
  113. package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +87 -91
  114. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +170 -176
  115. package/dist/cjs/vendor/react-native/PooledClass/index.cjs +42 -43
  116. package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +21 -22
  117. package/dist/cjs/vendor/react-native/SectionList/index.cjs +95 -110
  118. package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +28 -34
  119. package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +27 -33
  120. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +82 -111
  121. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -22
  122. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +20 -21
  123. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +124 -127
  124. package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +16 -17
  125. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +23 -24
  126. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +26 -30
  127. package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +27 -30
  128. package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +26 -27
  129. package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +154 -163
  130. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +147 -156
  131. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +124 -125
  132. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +100 -99
  133. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +63 -64
  134. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +66 -75
  135. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +104 -160
  136. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +56 -64
  137. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +51 -52
  138. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +222 -284
  139. package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +124 -144
  140. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +58 -59
  141. package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +16 -17
  142. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +2 -1
  143. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +43 -44
  144. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +115 -120
  145. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +31 -32
  146. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +80 -81
  147. package/dist/cjs/vendor/react-native/infoLog/index.cjs +17 -18
  148. package/dist/cjs/vendor/react-native/useRefEffect.cjs +26 -27
  149. package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -89
  150. package/dist/cjs/without-animated.cjs +255 -267
  151. package/dist/esm/AccessibilityInfo/index.mjs +69 -69
  152. package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
  153. package/dist/esm/ActivityIndicator/index.mjs +66 -78
  154. package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
  155. package/dist/esm/Alert/index.mjs +4 -3
  156. package/dist/esm/Alert/index.mjs.map +1 -1
  157. package/dist/esm/AppRegistry/AppContainer.mjs +21 -28
  158. package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
  159. package/dist/esm/AppRegistry/index.mjs +58 -65
  160. package/dist/esm/AppRegistry/index.mjs.map +1 -1
  161. package/dist/esm/AppRegistry/renderApplication.mjs +30 -40
  162. package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
  163. package/dist/esm/AppState/index.mjs +48 -50
  164. package/dist/esm/AppState/index.mjs.map +1 -1
  165. package/dist/esm/Appearance/index.mjs +27 -31
  166. package/dist/esm/Appearance/index.mjs.map +1 -1
  167. package/dist/esm/BackHandler/index.mjs +6 -7
  168. package/dist/esm/BackHandler/index.mjs.map +1 -1
  169. package/dist/esm/Clipboard/index.mjs +37 -36
  170. package/dist/esm/Clipboard/index.mjs.map +1 -1
  171. package/dist/esm/DeviceEmitter.mjs +2 -0
  172. package/dist/esm/DeviceEmitter.mjs.map +1 -1
  173. package/dist/esm/DeviceInfo/index.mjs +37 -45
  174. package/dist/esm/DeviceInfo/index.mjs.map +1 -1
  175. package/dist/esm/Dimensions/index.mjs +72 -72
  176. package/dist/esm/Dimensions/index.mjs.map +1 -1
  177. package/dist/esm/FlatList.mjs +162 -188
  178. package/dist/esm/FlatList.mjs.map +1 -1
  179. package/dist/esm/I18nManager/index.mjs +10 -11
  180. package/dist/esm/I18nManager/index.mjs.map +1 -1
  181. package/dist/esm/Image/index.mjs +261 -285
  182. package/dist/esm/Image/index.mjs.map +1 -1
  183. package/dist/esm/Image/types.mjs +0 -2
  184. package/dist/esm/ImageBackground/index.mjs +21 -31
  185. package/dist/esm/ImageBackground/index.mjs.map +1 -1
  186. package/dist/esm/InteractionManager/TaskQueue.mjs +83 -83
  187. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
  188. package/dist/esm/InteractionManager/index.mjs +89 -89
  189. package/dist/esm/InteractionManager/index.mjs.map +1 -1
  190. package/dist/esm/Keyboard/index.mjs +10 -10
  191. package/dist/esm/Keyboard/index.mjs.map +1 -1
  192. package/dist/esm/KeyboardAvoidingView/index.mjs +24 -29
  193. package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
  194. package/dist/esm/Libraries/Pressability/Pressability.mjs +1 -0
  195. package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -1
  196. package/dist/esm/Libraries/Pressability/usePressability.mjs +2 -1
  197. package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -1
  198. package/dist/esm/Linking/index.mjs +73 -71
  199. package/dist/esm/Linking/index.mjs.map +1 -1
  200. package/dist/esm/LogBox/index.mjs +5 -4
  201. package/dist/esm/LogBox/index.mjs.map +1 -1
  202. package/dist/esm/Modal/ModalAnimation.mjs +116 -126
  203. package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
  204. package/dist/esm/Modal/ModalContent.mjs +41 -51
  205. package/dist/esm/Modal/ModalContent.mjs.map +1 -1
  206. package/dist/esm/Modal/ModalPortal.mjs +22 -20
  207. package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
  208. package/dist/esm/Modal/index.mjs +1 -0
  209. package/dist/esm/Modal/index.mjs.map +1 -1
  210. package/dist/esm/NativeModules/index.mjs +3 -3
  211. package/dist/esm/NativeModules/index.mjs.map +1 -1
  212. package/dist/esm/PanResponder/index.mjs +3 -3
  213. package/dist/esm/PixelRatio/index.mjs +33 -31
  214. package/dist/esm/PixelRatio/index.mjs.map +1 -1
  215. package/dist/esm/Pressable/index.mjs +114 -119
  216. package/dist/esm/Pressable/index.mjs.map +1 -1
  217. package/dist/esm/RefreshControl/index.mjs +4 -18
  218. package/dist/esm/RefreshControl/index.mjs.map +1 -1
  219. package/dist/esm/SafeAreaView/index.mjs +18 -21
  220. package/dist/esm/SafeAreaView/index.mjs.map +1 -1
  221. package/dist/esm/ScrollView/WebScrollView.mjs +244 -0
  222. package/dist/esm/ScrollView/WebScrollView.mjs.map +1 -0
  223. package/dist/esm/ScrollView/index.mjs +3 -635
  224. package/dist/esm/SectionList.mjs +3 -4
  225. package/dist/esm/Share/index.mjs +32 -30
  226. package/dist/esm/Share/index.mjs.map +1 -1
  227. package/dist/esm/StatusBar/index.mjs +2 -1
  228. package/dist/esm/StatusBar/index.mjs.map +1 -1
  229. package/dist/esm/Text/index.mjs +116 -146
  230. package/dist/esm/Text/index.mjs.map +1 -1
  231. package/dist/esm/Text/types.mjs +0 -2
  232. package/dist/esm/TextInput/index.mjs +265 -336
  233. package/dist/esm/TextInput/index.mjs.map +1 -1
  234. package/dist/esm/TextInput/types.mjs +0 -2
  235. package/dist/esm/TouchableNativeFeedback.mjs +2 -2
  236. package/dist/esm/TouchableOpacity.mjs +75 -73
  237. package/dist/esm/TouchableOpacity.mjs.map +1 -1
  238. package/dist/esm/TouchableWithoutFeedback.mjs +49 -48
  239. package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
  240. package/dist/esm/UnimplementedView.mjs +11 -11
  241. package/dist/esm/UnimplementedView.mjs.map +1 -1
  242. package/dist/esm/Vibration/index.mjs +11 -10
  243. package/dist/esm/Vibration/index.mjs.map +1 -1
  244. package/dist/esm/View/index.mjs +73 -97
  245. package/dist/esm/View/index.mjs.map +1 -1
  246. package/dist/esm/View/types.mjs +0 -2
  247. package/dist/esm/VirtualizedList.mjs +3 -4
  248. package/dist/esm/codegenNativeCommands.mjs +8 -0
  249. package/dist/esm/codegenNativeCommands.mjs.map +1 -0
  250. package/dist/esm/codegenNativeComponent.mjs +5 -3
  251. package/dist/esm/codegenNativeComponent.mjs.map +1 -1
  252. package/dist/esm/createElement/index.mjs +35 -45
  253. package/dist/esm/createElement/index.mjs.map +1 -1
  254. package/dist/esm/createReactDOMStyle.mjs +2 -0
  255. package/dist/esm/createReactDOMStyle.mjs.map +1 -1
  256. package/dist/esm/index.js +15 -10
  257. package/dist/esm/index.js.map +1 -1
  258. package/dist/esm/index.mjs +15 -10
  259. package/dist/esm/index.mjs.map +1 -1
  260. package/dist/esm/modules/requestIdleCallback.mjs +13 -12
  261. package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
  262. package/dist/esm/preprocess.mjs +3 -3
  263. package/dist/esm/render/index.mjs +1 -0
  264. package/dist/esm/render/index.mjs.map +1 -1
  265. package/dist/esm/styleTypes.mjs +0 -2
  266. package/dist/esm/types.mjs +0 -2
  267. package/dist/esm/useColorScheme/index.mjs +11 -11
  268. package/dist/esm/useColorScheme/index.mjs.map +1 -1
  269. package/dist/esm/useLocaleContext/index.mjs +2 -2
  270. package/dist/esm/useWindowDimensions/index.mjs +16 -16
  271. package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
  272. package/dist/esm/vendor/react-native/Animated/Animated.mjs +12 -10
  273. package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
  274. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +124 -127
  275. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
  276. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +485 -515
  277. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
  278. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +85 -91
  279. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
  280. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +0 -2
  281. package/dist/esm/vendor/react-native/Animated/Easing.mjs +169 -167
  282. package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
  283. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +273 -296
  284. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
  285. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +26 -26
  286. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
  287. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +24 -23
  288. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
  289. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +48 -47
  290. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
  291. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -39
  292. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
  293. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +60 -62
  294. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
  295. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +196 -198
  296. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
  297. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +93 -99
  298. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
  299. package/dist/esm/vendor/react-native/Animated/bezier.mjs +68 -71
  300. package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
  301. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +7 -5
  302. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
  303. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +3 -1
  304. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
  305. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +7 -5
  306. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
  307. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +7 -5
  308. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
  309. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +2 -0
  310. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -1
  311. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +2 -0
  312. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -1
  313. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +15 -19
  314. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
  315. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +37 -35
  316. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
  317. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +230 -230
  318. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
  319. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +45 -43
  320. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
  321. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +51 -49
  322. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
  323. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +172 -172
  324. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
  325. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +35 -33
  326. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
  327. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +37 -35
  328. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
  329. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +138 -139
  330. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
  331. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +119 -117
  332. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
  333. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +99 -99
  334. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
  335. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +37 -35
  336. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
  337. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +60 -59
  338. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
  339. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +95 -93
  340. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
  341. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +198 -199
  342. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
  343. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +82 -86
  344. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
  345. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +56 -54
  346. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
  347. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +61 -59
  348. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
  349. package/dist/esm/vendor/react-native/Batchinator/index.mjs +32 -40
  350. package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
  351. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +40 -40
  352. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
  353. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +2 -0
  354. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -1
  355. package/dist/esm/vendor/react-native/FeatureFlags.mjs +7 -6
  356. package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -1
  357. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +150 -156
  358. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
  359. package/dist/esm/vendor/react-native/FlatList/index.mjs +244 -271
  360. package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
  361. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -52
  362. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
  363. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +73 -74
  364. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
  365. package/dist/esm/vendor/react-native/PanResponder/index.mjs +153 -151
  366. package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
  367. package/dist/esm/vendor/react-native/PooledClass/index.mjs +27 -26
  368. package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
  369. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +6 -5
  370. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -1
  371. package/dist/esm/vendor/react-native/SectionList/index.mjs +78 -85
  372. package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
  373. package/dist/esm/vendor/react-native/StaticContainer/index.mjs +11 -9
  374. package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
  375. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +10 -8
  376. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -1
  377. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +67 -94
  378. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
  379. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +3 -6
  380. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
  381. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +6 -4
  382. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
  383. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +105 -106
  384. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
  385. package/dist/esm/vendor/react-native/Utilities/Platform.mjs +2 -0
  386. package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -1
  387. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +8 -7
  388. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
  389. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +11 -13
  390. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
  391. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +13 -13
  392. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
  393. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +12 -10
  394. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
  395. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +140 -146
  396. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
  397. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +133 -139
  398. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
  399. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +107 -106
  400. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
  401. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +88 -82
  402. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
  403. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +49 -47
  404. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
  405. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +49 -50
  406. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
  407. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +87 -135
  408. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
  409. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +38 -38
  410. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
  411. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +36 -35
  412. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -1
  413. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +207 -266
  414. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
  415. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +107 -119
  416. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
  417. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +43 -42
  418. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
  419. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +2 -0
  420. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -1
  421. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +0 -2
  422. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +29 -27
  423. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
  424. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -103
  425. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
  426. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +16 -15
  427. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -1
  428. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +66 -64
  429. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
  430. package/dist/esm/vendor/react-native/infoLog/index.mjs +2 -1
  431. package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -1
  432. package/dist/esm/vendor/react-native/useRefEffect.mjs +12 -10
  433. package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
  434. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +71 -70
  435. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
  436. package/dist/esm/without-animated.mjs +172 -187
  437. package/dist/esm/without-animated.mjs.map +1 -1
  438. package/package.json +12 -12
  439. package/src/ScrollView/WebScrollView.tsx +383 -0
  440. package/src/ScrollView/index.tsx +6 -892
  441. package/src/codegenNativeCommands.ts +6 -0
  442. package/src/codegenNativeComponent.ts +2 -2
  443. package/src/index.tsx +3 -0
  444. package/src/without-animated.tsx +1 -0
  445. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +0 -209
  446. package/dist/cjs/AppRegistry/__tests__/index-test.cjs +0 -97
  447. package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +0 -162
  448. package/dist/cjs/AppState/__tests__/index-test.cjs +0 -38
  449. package/dist/cjs/Dimensions/__tests__/index-test.cjs +0 -67
  450. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +0 -72
  451. package/dist/cjs/Linking/__tests__/index-test.cjs +0 -56
  452. package/dist/cjs/ScrollView/ScrollViewBase.cjs +0 -167
  453. package/dist/cjs/codegenNativeCommand.cjs +0 -31
  454. package/dist/cjs/createElement/__tests__/index-test.cjs +0 -828
  455. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +0 -186
  456. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +0 -1
  457. package/dist/esm/AppRegistry/__tests__/index-test.mjs +0 -74
  458. package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +0 -1
  459. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +0 -139
  460. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +0 -1
  461. package/dist/esm/AppState/__tests__/index-test.mjs +0 -15
  462. package/dist/esm/AppState/__tests__/index-test.mjs.map +0 -1
  463. package/dist/esm/Dimensions/__tests__/index-test.mjs +0 -44
  464. package/dist/esm/Dimensions/__tests__/index-test.mjs.map +0 -1
  465. package/dist/esm/Image/types.mjs.map +0 -1
  466. package/dist/esm/ImageBackground/__tests__/index-test.mjs +0 -49
  467. package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +0 -1
  468. package/dist/esm/Linking/__tests__/index-test.mjs +0 -33
  469. package/dist/esm/Linking/__tests__/index-test.mjs.map +0 -1
  470. package/dist/esm/PanResponder/index.mjs.map +0 -1
  471. package/dist/esm/ScrollView/ScrollViewBase.mjs +0 -130
  472. package/dist/esm/ScrollView/ScrollViewBase.mjs.map +0 -1
  473. package/dist/esm/ScrollView/index.mjs.map +0 -1
  474. package/dist/esm/SectionList.mjs.map +0 -1
  475. package/dist/esm/Text/types.mjs.map +0 -1
  476. package/dist/esm/TextInput/types.mjs.map +0 -1
  477. package/dist/esm/TouchableNativeFeedback.mjs.map +0 -1
  478. package/dist/esm/View/types.mjs.map +0 -1
  479. package/dist/esm/VirtualizedList.mjs.map +0 -1
  480. package/dist/esm/codegenNativeCommand.mjs +0 -6
  481. package/dist/esm/codegenNativeCommand.mjs.map +0 -1
  482. package/dist/esm/createElement/__tests__/index-test.mjs +0 -805
  483. package/dist/esm/createElement/__tests__/index-test.mjs.map +0 -1
  484. package/dist/esm/preprocess.mjs.map +0 -1
  485. package/dist/esm/styleTypes.mjs.map +0 -1
  486. package/dist/esm/types.mjs.map +0 -1
  487. package/dist/esm/useLocaleContext/index.mjs.map +0 -1
  488. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +0 -1
  489. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +0 -1
  490. package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +0 -466
  491. package/src/ActivityIndicator/__tests__/index-test.tsx +0 -147
  492. package/src/AppRegistry/__tests__/index-test.node.tsx +0 -144
  493. package/src/AppRegistry/__tests__/index-test.tsx +0 -94
  494. package/src/AppState/__tests__/index-test.tsx +0 -24
  495. package/src/Dimensions/__tests__/index-test.tsx +0 -54
  496. package/src/ImageBackground/__tests__/index-test.tsx +0 -49
  497. package/src/Linking/__tests__/index-test.tsx +0 -37
  498. package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +0 -196
  499. package/src/ScrollView/ScrollViewBase.tsx +0 -183
  500. package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +0 -49
  501. package/src/Text/__tests__/__snapshots__/index-test.js.snap +0 -218
  502. package/src/codegenNativeCommand.ts +0 -6
  503. package/src/createElement/__tests__/__snapshots__/index-test.js.snap +0 -13
  504. package/src/createElement/__tests__/index-test.tsx +0 -647
@@ -1 +1 @@
1
- {"version":3,"names":["elementsThatOverlapOffsets","offsets","props","getFrameMetrics","zoomScale","itemCount","getItemCount","data","result","offsetIndex","length","currentOffset","left","right","mid","frame","scaledOffsetStart","offset","scaledOffsetEnd","newRangeCount","prev","next","last","first","Math","max","min","computeWindowedRenderLimits","maxToRenderPerBatch","windowSize","getFrameMetricsApprox","scrollMetrics","velocity","visibleLength","visibleBegin","visibleEnd","overscanLength","leadFactor","fillPreference","overscanBegin","overscanEnd","lastItemOffset","overscanFirst","overscanLast","visible","newCellCount","maxNewCells","firstWillAddMore","firstShouldIncrement","lastWillAddMore","lastShouldIncrement","Error","JSON","stringify","keyExtractor","item","index","key","id","String"],"sources":["../../../../../src/vendor/react-native/VirtualizeUtils/index.js"],"sourcesContent":[null],"mappings":"AAeO,SAASA,2BACdC,OAAA,EACAC,KAAA,EACAC,eAAA,EACAC,SAAA,GAAY,GACZ;EACA,MAAMC,SAAA,GAAYH,KAAA,CAAMI,YAAA,CAAaJ,KAAA,CAAMK,IAAI;EAC/C,MAAMC,MAAA,GAAS,EAAC;EAChB,SAASC,WAAA,GAAc,GAAGA,WAAA,GAAcR,OAAA,CAAQS,MAAA,EAAQD,WAAA,IAAe;IACrE,MAAME,aAAA,GAAgBV,OAAA,CAAQQ,WAAW;IACzC,IAAIG,IAAA,GAAO;IACX,IAAIC,KAAA,GAAQR,SAAA,GAAY;IAExB,OAAOO,IAAA,IAAQC,KAAA,EAAO;MAEpB,MAAMC,GAAA,GAAMF,IAAA,IAASC,KAAA,GAAQD,IAAA,KAAU;MACvC,MAAMG,KAAA,GAAQZ,eAAA,CAAgBW,GAAA,EAAKZ,KAAK;MACxC,MAAMc,iBAAA,GAAoBD,KAAA,CAAME,MAAA,GAASb,SAAA;MACzC,MAAMc,eAAA,IAAmBH,KAAA,CAAME,MAAA,GAASF,KAAA,CAAML,MAAA,IAAUN,SAAA;MAIxD,IACGU,GAAA,KAAQ,KAAKH,aAAA,GAAgBK,iBAAA,IAC7BF,GAAA,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AYA,IAAA,EAAME,GAAA,IAAO,MAAM;IACjD,OAAOF,IAAA,CAAKE,GAAA;EACd;EACA,IAAI,OAAOF,IAAA,KAAS,YAAYA,IAAA,EAAMG,EAAA,IAAM,MAAM;IAChD,OAAOH,IAAA,CAAKG,EAAA;EACd;EACA,OAAOC,MAAA,CAAOH,KAAK;AACrB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizeUtils/index.js"],"sourcesContent":["function elementsThatOverlapOffsets(offsets, props, getFrameMetrics, zoomScale = 1) {\n const itemCount = props.getItemCount(props.data);\n const result = [];\n for (let offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {\n const currentOffset = offsets[offsetIndex];\n let left = 0;\n let right = itemCount - 1;\n while (left <= right) {\n const mid = left + (right - left >>> 1);\n const frame = getFrameMetrics(mid, props);\n const scaledOffsetStart = frame.offset * zoomScale;\n const scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;\n if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) {\n right = mid - 1;\n } else if (currentOffset > scaledOffsetEnd) {\n left = mid + 1;\n } else {\n result[offsetIndex] = mid;\n break;\n }\n }\n }\n return result;\n}\nfunction newRangeCount(prev, next) {\n return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));\n}\nfunction computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {\n const itemCount = props.getItemCount(props.data);\n if (itemCount === 0) {\n return { first: 0, last: -1 };\n }\n const { offset, velocity, visibleLength, zoomScale = 1 } = scrollMetrics;\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n const leadFactor = 0.5;\n const fillPreference = velocity > 1 ? \"after\" : velocity < -1 ? \"before\" : \"none\";\n const overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength);\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n const lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;\n if (lastItemOffset < overscanBegin) {\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1\n };\n }\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props,\n getFrameMetricsApprox,\n zoomScale\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last;\n const visible = { first, last };\n let newCellCount = newRangeCount(prev, visible);\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n break;\n }\n if (firstShouldIncrement && !(fillPreference === \"after\" && lastShouldIncrement && lastWillAddMore)) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (lastShouldIncrement && !(fillPreference === \"before\" && firstShouldIncrement && firstWillAddMore)) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) {\n throw new Error(\n \"Bad window calculation \" + JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible\n })\n );\n }\n return { first, last };\n}\nfunction keyExtractor(item, index) {\n if (typeof item === \"object\" && item?.key != null) {\n return item.key;\n }\n if (typeof item === \"object\" && item?.id != null) {\n return item.id;\n }\n return String(index);\n}\nexport {\n computeWindowedRenderLimits,\n elementsThatOverlapOffsets,\n keyExtractor,\n newRangeCount\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,SAAS,2BAA2B,SAAS,OAAO,iBAAiB,YAAY,GAAG;CAClF,MAAM,YAAY,MAAM,aAAa,MAAM,IAAI;CAC/C,MAAM,SAAS,CAAC;CAChB,KAAK,IAAI,cAAc,GAAG,cAAc,QAAQ,QAAQ,eAAe;EACrE,MAAM,gBAAgB,QAAQ;EAC9B,IAAI,OAAO;EACX,IAAI,QAAQ,YAAY;EACxB,OAAO,QAAQ,OAAO;GACpB,MAAM,MAAM,QAAQ,QAAQ,SAAS;GACrC,MAAM,QAAQ,gBAAgB,KAAK,KAAK;GACxC,MAAM,oBAAoB,MAAM,SAAS;GACzC,MAAM,mBAAmB,MAAM,SAAS,MAAM,UAAU;GACxD,IAAI,QAAQ,KAAK,gBAAgB,qBAAqB,QAAQ,KAAK,iBAAiB,mBAAmB;IACrG,QAAQ,MAAM;GAChB,OAAO,IAAI,gBAAgB,iBAAiB;IAC1C,OAAO,MAAM;GACf,OAAO;IACL,OAAO,eAAe;IACtB;GACF;EACF;CACF;CACA,OAAO;AACT;AACA,SAAS,cAAc,MAAM,MAAM;CACjC,OAAO,KAAK,OAAO,KAAK,QAAQ,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,KAAK,MAAM,KAAK,IAAI,IAAI,KAAK,IAAI,KAAK,OAAO,KAAK,KAAK,CAAC;AACvH;AACA,SAAS,4BAA4B,OAAO,qBAAqB,YAAY,MAAM,uBAAuB,eAAe;CACvH,MAAM,YAAY,MAAM,aAAa,MAAM,IAAI;CAC/C,IAAI,cAAc,GAAG;EACnB,OAAO;GAAE,OAAO;GAAG,MAAM,CAAC;EAAE;CAC9B;CACA,MAAM,EAAE,QAAQ,UAAU,eAAe,YAAY,MAAM;CAC3D,MAAM,eAAe,KAAK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AW,uBAAuB,kBAAkB;GACnG,IAAI,kBAAkB;IACpB;GACF;GACA;EACF;EACA,IAAI,uBAAuB,EAAE,mBAAmB,YAAY,wBAAwB,mBAAmB;GACrG,IAAI,iBAAiB;IACnB;GACF;GACA;EACF;CACF;CACA,IAAI,EAAE,QAAQ,SAAS,SAAS,KAAK,OAAO,aAAa,SAAS,iBAAiB,QAAQ,gBAAgB,SAAS,QAAQ,SAAS,QAAQ,QAAQ,OAAO;EAC1J,MAAM,IAAI,MACR,4BAA4B,KAAK,UAAU;GACzC;GACA;GACA;GACA;GACA;GACA;EACF,CAAC,CACH;CACF;CACA,OAAO;EAAE;EAAO;CAAK;AACvB;AACA,SAAS,aAAa,MAAM,OAAO;CACjC,IAAI,OAAO,SAAS,YAAY,MAAM,OAAO,MAAM;EACjD,OAAO,KAAK;CACd;CACA,IAAI,OAAO,SAAS,YAAY,MAAM,MAAM,MAAM;EAChD,OAAO,KAAK;CACd;CACA,OAAO,OAAO,KAAK;AACrB"}
@@ -1,85 +1,91 @@
1
1
  import { invariant } from "@tamagui/react-native-web-internals";
2
- class CellRenderMask {
3
- constructor(numCells) {
4
- invariant(numCells >= 0, "CellRenderMask must contain a non-negative number os cells");
5
- this._numCells = numCells;
6
- if (numCells === 0) {
7
- this._regions = [];
8
- } else {
9
- this._regions = [{
10
- first: 0,
11
- last: numCells - 1,
12
- isSpacer: true
13
- }];
14
- }
15
- }
16
- enumerateRegions() {
17
- return this._regions;
18
- }
19
- addCells(cells) {
20
- invariant(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, "CellRenderMask.addCells called with invalid cell range");
21
- if (cells.last < cells.first) {
22
- return;
23
- }
24
- const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);
25
- const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);
26
- if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {
27
- return;
28
- }
29
- const newLeadRegion = [];
30
- const newTailRegion = [];
31
- const newMainRegion = {
32
- ...cells,
33
- isSpacer: false
34
- };
35
- if (firstIntersect.first < newMainRegion.first) {
36
- if (firstIntersect.isSpacer) {
37
- newLeadRegion.push({
38
- first: firstIntersect.first,
39
- last: newMainRegion.first - 1,
40
- isSpacer: true
41
- });
42
- } else {
43
- newMainRegion.first = firstIntersect.first;
44
- }
45
- }
46
- if (lastIntersect.last > newMainRegion.last) {
47
- if (lastIntersect.isSpacer) {
48
- newTailRegion.push({
49
- first: newMainRegion.last + 1,
50
- last: lastIntersect.last,
51
- isSpacer: true
52
- });
53
- } else {
54
- newMainRegion.last = lastIntersect.last;
55
- }
56
- }
57
- const replacementRegions = [...newLeadRegion, newMainRegion, ...newTailRegion];
58
- const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
59
- this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);
60
- }
61
- numCells() {
62
- return this._numCells;
63
- }
64
- equals(other) {
65
- return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every((region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer);
66
- }
67
- _findRegion(cellIdx) {
68
- let firstIdx = 0;
69
- let lastIdx = this._regions.length - 1;
70
- while (firstIdx <= lastIdx) {
71
- const middleIdx = Math.floor((firstIdx + lastIdx) / 2);
72
- const middleRegion = this._regions[middleIdx];
73
- if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {
74
- return [middleRegion, middleIdx];
75
- } else if (cellIdx < middleRegion.first) {
76
- lastIdx = middleIdx - 1;
77
- } else if (cellIdx > middleRegion.last) {
78
- firstIdx = middleIdx + 1;
79
- }
80
- }
81
- invariant(false, `A region was not found containing cellIdx ${cellIdx}`);
82
- }
83
- }
2
+
3
+ var CellRenderMask = class {
4
+ constructor(numCells) {
5
+ invariant(numCells >= 0, "CellRenderMask must contain a non-negative number os cells");
6
+ this._numCells = numCells;
7
+ if (numCells === 0) {
8
+ this._regions = [];
9
+ } else {
10
+ this._regions = [{
11
+ first: 0,
12
+ last: numCells - 1,
13
+ isSpacer: true
14
+ }];
15
+ }
16
+ }
17
+ enumerateRegions() {
18
+ return this._regions;
19
+ }
20
+ addCells(cells) {
21
+ invariant(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, "CellRenderMask.addCells called with invalid cell range");
22
+ if (cells.last < cells.first) {
23
+ return;
24
+ }
25
+ const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);
26
+ const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);
27
+ if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {
28
+ return;
29
+ }
30
+ const newLeadRegion = [];
31
+ const newTailRegion = [];
32
+ const newMainRegion = {
33
+ ...cells,
34
+ isSpacer: false
35
+ };
36
+ if (firstIntersect.first < newMainRegion.first) {
37
+ if (firstIntersect.isSpacer) {
38
+ newLeadRegion.push({
39
+ first: firstIntersect.first,
40
+ last: newMainRegion.first - 1,
41
+ isSpacer: true
42
+ });
43
+ } else {
44
+ newMainRegion.first = firstIntersect.first;
45
+ }
46
+ }
47
+ if (lastIntersect.last > newMainRegion.last) {
48
+ if (lastIntersect.isSpacer) {
49
+ newTailRegion.push({
50
+ first: newMainRegion.last + 1,
51
+ last: lastIntersect.last,
52
+ isSpacer: true
53
+ });
54
+ } else {
55
+ newMainRegion.last = lastIntersect.last;
56
+ }
57
+ }
58
+ const replacementRegions = [
59
+ ...newLeadRegion,
60
+ newMainRegion,
61
+ ...newTailRegion
62
+ ];
63
+ const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
64
+ this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);
65
+ }
66
+ numCells() {
67
+ return this._numCells;
68
+ }
69
+ equals(other) {
70
+ return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every((region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer);
71
+ }
72
+ _findRegion(cellIdx) {
73
+ let firstIdx = 0;
74
+ let lastIdx = this._regions.length - 1;
75
+ while (firstIdx <= lastIdx) {
76
+ const middleIdx = Math.floor((firstIdx + lastIdx) / 2);
77
+ const middleRegion = this._regions[middleIdx];
78
+ if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {
79
+ return [middleRegion, middleIdx];
80
+ } else if (cellIdx < middleRegion.first) {
81
+ lastIdx = middleIdx - 1;
82
+ } else if (cellIdx > middleRegion.last) {
83
+ firstIdx = middleIdx + 1;
84
+ }
85
+ }
86
+ invariant(false, `A region was not found containing cellIdx ${cellIdx}`);
87
+ }
88
+ };
89
+
84
90
  export { CellRenderMask };
85
91
  //# sourceMappingURL=CellRenderMask.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["invariant","CellRenderMask","constructor","numCells","_numCells","_regions","first","last","isSpacer","enumerateRegions","addCells","cells","firstIntersect","firstIntersectIdx","_findRegion","lastIntersect","lastIntersectIdx","newLeadRegion","newTailRegion","newMainRegion","push","replacementRegions","numRegionsToDelete","splice","equals","other","length","every","region","i","cellIdx","firstIdx","lastIdx","middleIdx","Math","floor","middleRegion"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/CellRenderMask.js"],"sourcesContent":[null],"mappings":"AAUA,SAASA,SAAA,QAAiB;AAEnB,MAAMC,cAAA,CAAe;EAC1BC,YAAYC,QAAA,EAAU;IACpBH,SAAA,CAAUG,QAAA,IAAY,GAAG,4DAA4D;IAErF,KAAKC,SAAA,GAAYD,QAAA;IAEjB,IAAIA,QAAA,KAAa,GAAG;MAClB,KAAKE,QAAA,GAAW,EAAC;IACnB,OAAO;MACL,KAAKA,QAAA,GAAW,CACd;QACEC,KAAA,EAAO;QACPC,IAAA,EAAMJ,QAAA,GAAW;QACjBK,QAAA,EAAU;MACZ,EACF;IACF;EACF;EAEAC,iBAAA,EAAmB;IACjB,OAAO,KAAKJ,QAAA;EACd;EAEAK,SAASC,KAAA,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M,YAAA,CAAa9B,KAAA,IAASwB,OAAA,IAAWM,YAAA,CAAa7B,IAAA,EAAM;QACjE,OAAO,CAAC6B,YAAA,EAAcH,SAAS;MACjC,WAAWH,OAAA,GAAUM,YAAA,CAAa9B,KAAA,EAAO;QACvC0B,OAAA,GAAUC,SAAA,GAAY;MACxB,WAAWH,OAAA,GAAUM,YAAA,CAAa7B,IAAA,EAAM;QACtCwB,QAAA,GAAWE,SAAA,GAAY;MACzB;IACF;IAEAjC,SAAA,CAAU,OAAO,6CAA6C8B,OAAO,EAAE;EACzE;AACF","ignoreList":[]}
1
+ {"version":3,"file":"CellRenderMask.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/CellRenderMask.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass CellRenderMask {\n constructor(numCells) {\n invariant(numCells >= 0, \"CellRenderMask must contain a non-negative number os cells\");\n this._numCells = numCells;\n if (numCells === 0) {\n this._regions = [];\n } else {\n this._regions = [\n {\n first: 0,\n last: numCells - 1,\n isSpacer: true\n }\n ];\n }\n }\n enumerateRegions() {\n return this._regions;\n }\n addCells(cells) {\n invariant(\n cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1,\n \"CellRenderMask.addCells called with invalid cell range\"\n );\n if (cells.last < cells.first) {\n return;\n }\n const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);\n const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);\n if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {\n return;\n }\n const newLeadRegion = [];\n const newTailRegion = [];\n const newMainRegion = {\n ...cells,\n isSpacer: false\n };\n if (firstIntersect.first < newMainRegion.first) {\n if (firstIntersect.isSpacer) {\n newLeadRegion.push({\n first: firstIntersect.first,\n last: newMainRegion.first - 1,\n isSpacer: true\n });\n } else {\n newMainRegion.first = firstIntersect.first;\n }\n }\n if (lastIntersect.last > newMainRegion.last) {\n if (lastIntersect.isSpacer) {\n newTailRegion.push({\n first: newMainRegion.last + 1,\n last: lastIntersect.last,\n isSpacer: true\n });\n } else {\n newMainRegion.last = lastIntersect.last;\n }\n }\n const replacementRegions = [...newLeadRegion, newMainRegion, ...newTailRegion];\n const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;\n this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);\n }\n numCells() {\n return this._numCells;\n }\n equals(other) {\n return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(\n (region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer\n );\n }\n _findRegion(cellIdx) {\n let firstIdx = 0;\n let lastIdx = this._regions.length - 1;\n while (firstIdx <= lastIdx) {\n const middleIdx = Math.floor((firstIdx + lastIdx) / 2);\n const middleRegion = this._regions[middleIdx];\n if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {\n return [middleRegion, middleIdx];\n } else if (cellIdx < middleRegion.first) {\n lastIdx = middleIdx - 1;\n } else if (cellIdx > middleRegion.last) {\n firstIdx = middleIdx + 1;\n }\n }\n invariant(false, `A region was not found containing cellIdx ${cellIdx}`);\n }\n}\nexport {\n CellRenderMask\n};\n//# sourceMappingURL=CellRenderMask.js.map\n"],"mappings":";;;AACA,IAAM,iBAAN,MAAqB;CACnB,YAAY,UAAU;EACpB,UAAU,YAAY,GAAG,4DAA4D;EACrF,KAAK,YAAY;EACjB,IAAI,aAAa,GAAG;GAClB,KAAK,WAAW,CAAC;EACnB,OAAO;GACL,KAAK,WAAW,CACd;IACE,OAAO;IACP,MAAM,WAAW;IACjB,UAAU;GACZ,CACF;EACF;CACF;CACA,mBAAmB;EACjB,OAAO,KAAK;CACd;CACA,SAAS,OAAO;EACd,UACE,MAAM,SAAS,KAAK,MAAM,QAAQ,KAAK,aAAa,MAAM,QAAQ,CAAC,KAAK,MAAM,OAAO,KAAK,aAAa,MAAM,QAAQ,MAAM,QAAQ,GACnI,wDACF;EAC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AM,YAAY,KAAK,OAAO,WAAW,WAAW,CAAC;GACrD,MAAM,eAAe,KAAK,SAAS;GACnC,IAAI,WAAW,aAAa,SAAS,WAAW,aAAa,MAAM;IACjE,OAAO,CAAC,cAAc,SAAS;GACjC,OAAO,IAAI,UAAU,aAAa,OAAO;IACvC,UAAU,YAAY;GACxB,OAAO,IAAI,UAAU,aAAa,MAAM;IACtC,WAAW,YAAY;GACzB;EACF;EACA,UAAU,OAAO,6CAA6C,SAAS;CACzE;AACF"}
@@ -1,51 +1,53 @@
1
1
  import { invariant } from "@tamagui/react-native-web-internals";
2
- class ChildListCollection {
3
- _cellKeyToChildren = /* @__PURE__ */new Map();
4
- _childrenToCellKey = /* @__PURE__ */new Map();
5
- add(list, cellKey) {
6
- invariant(!this._childrenToCellKey.has(list), "Trying to add already present child list");
7
- const cellLists = this._cellKeyToChildren.get(cellKey) ?? /* @__PURE__ */new Set();
8
- cellLists.add(list);
9
- this._cellKeyToChildren.set(cellKey, cellLists);
10
- this._childrenToCellKey.set(list, cellKey);
11
- }
12
- remove(list) {
13
- const cellKey = this._childrenToCellKey.get(list);
14
- invariant(cellKey != null, "Trying to remove non-present child list");
15
- this._childrenToCellKey.delete(list);
16
- const cellLists = this._cellKeyToChildren.get(cellKey);
17
- invariant(cellLists, "_cellKeyToChildren should contain cellKey");
18
- cellLists.delete(list);
19
- if (cellLists.size === 0) {
20
- this._cellKeyToChildren.delete(cellKey);
21
- }
22
- }
23
- forEach(fn) {
24
- for (const listSet of this._cellKeyToChildren.values()) {
25
- for (const list of listSet) {
26
- fn(list);
27
- }
28
- }
29
- }
30
- forEachInCell(cellKey, fn) {
31
- const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
32
- for (const list of listSet) {
33
- fn(list);
34
- }
35
- }
36
- anyInCell(cellKey, fn) {
37
- const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
38
- for (const list of listSet) {
39
- if (fn(list)) {
40
- return true;
41
- }
42
- }
43
- return false;
44
- }
45
- size() {
46
- return this._childrenToCellKey.size;
47
- }
48
- }
2
+
3
+ var ChildListCollection = class {
4
+ _cellKeyToChildren = /* @__PURE__ */ new Map();
5
+ _childrenToCellKey = /* @__PURE__ */ new Map();
6
+ add(list, cellKey) {
7
+ invariant(!this._childrenToCellKey.has(list), "Trying to add already present child list");
8
+ const cellLists = this._cellKeyToChildren.get(cellKey) ?? /* @__PURE__ */ new Set();
9
+ cellLists.add(list);
10
+ this._cellKeyToChildren.set(cellKey, cellLists);
11
+ this._childrenToCellKey.set(list, cellKey);
12
+ }
13
+ remove(list) {
14
+ const cellKey = this._childrenToCellKey.get(list);
15
+ invariant(cellKey != null, "Trying to remove non-present child list");
16
+ this._childrenToCellKey.delete(list);
17
+ const cellLists = this._cellKeyToChildren.get(cellKey);
18
+ invariant(cellLists, "_cellKeyToChildren should contain cellKey");
19
+ cellLists.delete(list);
20
+ if (cellLists.size === 0) {
21
+ this._cellKeyToChildren.delete(cellKey);
22
+ }
23
+ }
24
+ forEach(fn) {
25
+ for (const listSet of this._cellKeyToChildren.values()) {
26
+ for (const list of listSet) {
27
+ fn(list);
28
+ }
29
+ }
30
+ }
31
+ forEachInCell(cellKey, fn) {
32
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
33
+ for (const list of listSet) {
34
+ fn(list);
35
+ }
36
+ }
37
+ anyInCell(cellKey, fn) {
38
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
39
+ for (const list of listSet) {
40
+ if (fn(list)) {
41
+ return true;
42
+ }
43
+ }
44
+ return false;
45
+ }
46
+ size() {
47
+ return this._childrenToCellKey.size;
48
+ }
49
+ };
49
50
  var ChildListCollection_default = ChildListCollection;
51
+
50
52
  export { ChildListCollection, ChildListCollection_default as default };
51
53
  //# sourceMappingURL=ChildListCollection.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["invariant","ChildListCollection","_cellKeyToChildren","Map","_childrenToCellKey","add","list","cellKey","has","cellLists","get","Set","set","remove","delete","size","forEach","fn","listSet","values","forEachInCell","anyInCell","ChildListCollection_default"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/ChildListCollection.js"],"sourcesContent":[null],"mappings":"AAUA,SAASA,SAAA,QAAiB;AAE1B,MAAMC,mBAAA,CAAoB;EACxBC,kBAAA,GAAqB,mBAAIC,GAAA,CAAI;EAC7BC,kBAAA,GAAqB,mBAAID,GAAA,CAAI;EAE7BE,IAAIC,IAAA,EAAMC,OAAA,EAAS;IACjBP,SAAA,CACE,CAAC,KAAKI,kBAAA,CAAmBI,GAAA,CAAIF,IAAI,GACjC,0CACF;IAEA,MAAMG,SAAA,GAAY,KAAKP,kBAAA,CAAmBQ,GAAA,CAAIH,OAAO,KAAK,mBAAII,GAAA,CAAI;IAClEF,SAAA,CAAUJ,GAAA,CAAIC,IAAI;IAClB,KAAKJ,kBAAA,CAAmBU,GAAA,CAAIL,OAAA,EAASE,SAAS;IAE9C,KAAKL,kBAAA,CAAmBQ,GAAA,CAAIN,IAAA,EAAMC,OAAO;EAC3C;EAEAM,OAAOP,IAAA,EAAM;IACX,MAAMC,OAAA,GAAU,KAAKH,kBAAA,CAAmBM,GAAA,CAAIJ,IAAI;IAChDN,SAAA,CAAUO,OAAA,IAAW,MAAM,yCAAyC;IACpE,KAAKH,kBAAA,CAAmBU,MAAA,CAAOR,IAAI;IAEnC,MAAMG,SAAA,GAAY,KAAKP,kBAAA,CAAmBQ,GAAA,CAAIH,OAAO;IACrDP,SAAA,CAAUS,SAAA,EAAW,2CAA2C;IAChEA,SAAA,CAAUK,MAAA,CAAOR,IAAI;IAErB,IAAIG,SAAA,CAAUM,IAAA,KAAS,GAAG;MACxB,KAAKb,kBAAA,CAAmBY,MAAA,CAAOP,OAAO;IACxC;EACF;EAEAS,QAAQC,EAAA,EAAI;IACV,WAAWC,OAAA,IAAW,KAAKhB,kBAAA,CAAmBiB,MAAA,CAAO,GAAG;MACtD,WAAWb,IAAA,IAAQY,OAAA,EAAS;QAC1BD,EAAA,CAAGX,IAAI;MACT;IACF;EACF;EAEAc,cAAcb,OAAA,EAASU,EAAA,EAAI;IACzB,MAAMC,OAAA,GAAU,KAAKhB,kBAAA,CAAmBQ,GAAA,CAAIH,OAAO,KAAK,EAAC;IACzD,WAAWD,IAAA,IAAQY,OAAA,EAAS;MAC1BD,EAAA,CAAGX,IAAI;IACT;EACF;EAEAe,UAAUd,OAAA,EAASU,EAAA,EAAI;IACrB,MAAMC,OAAA,GAAU,KAAKhB,kBAAA,CAAmBQ,GAAA,CAAIH,OAAO,KAAK,EAAC;IACzD,WAAWD,IAAA,IAAQY,OAAA,EAAS;MAC1B,IAAID,EAAA,CAAGX,IAAI,GAAG;QACZ,OAAO;MACT;IACF;IACA,OAAO;EACT;EAEAS,KAAA,EAAO;IACL,OAAO,KAAKX,kBAAA,CAAmBW,IAAA;EACjC;AACF;AAGA,IAAOO,2BAAA,GAAQrB,mBAAA","ignoreList":[]}
1
+ {"version":3,"file":"ChildListCollection.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/ChildListCollection.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass ChildListCollection {\n _cellKeyToChildren = /* @__PURE__ */ new Map();\n _childrenToCellKey = /* @__PURE__ */ new Map();\n add(list, cellKey) {\n invariant(\n !this._childrenToCellKey.has(list),\n \"Trying to add already present child list\"\n );\n const cellLists = this._cellKeyToChildren.get(cellKey) ?? /* @__PURE__ */ new Set();\n cellLists.add(list);\n this._cellKeyToChildren.set(cellKey, cellLists);\n this._childrenToCellKey.set(list, cellKey);\n }\n remove(list) {\n const cellKey = this._childrenToCellKey.get(list);\n invariant(cellKey != null, \"Trying to remove non-present child list\");\n this._childrenToCellKey.delete(list);\n const cellLists = this._cellKeyToChildren.get(cellKey);\n invariant(cellLists, \"_cellKeyToChildren should contain cellKey\");\n cellLists.delete(list);\n if (cellLists.size === 0) {\n this._cellKeyToChildren.delete(cellKey);\n }\n }\n forEach(fn) {\n for (const listSet of this._cellKeyToChildren.values()) {\n for (const list of listSet) {\n fn(list);\n }\n }\n }\n forEachInCell(cellKey, fn) {\n const listSet = this._cellKeyToChildren.get(cellKey) ?? [];\n for (const list of listSet) {\n fn(list);\n }\n }\n anyInCell(cellKey, fn) {\n const listSet = this._cellKeyToChildren.get(cellKey) ?? [];\n for (const list of listSet) {\n if (fn(list)) {\n return true;\n }\n }\n return false;\n }\n size() {\n return this._childrenToCellKey.size;\n }\n}\nvar ChildListCollection_default = ChildListCollection;\nexport {\n ChildListCollection,\n ChildListCollection_default as default\n};\n//# sourceMappingURL=ChildListCollection.js.map\n"],"mappings":";;;AACA,IAAM,sBAAN,MAA0B;CACxB,qCAAqC,IAAI,IAAI;CAC7C,qCAAqC,IAAI,IAAI;CAC7C,IAAI,MAAM,SAAS;EACjB,UACE,CAAC,KAAK,mBAAmB,IAAI,IAAI,GACjC,0CACF;EACA,MAAM,YAAY,KAAK,mBAAmB,IAAI,OAAO,qBAAqB,IAAI,IAAI;EAClF,UAAU,IAAI,IAAI;EAClB,KAAK,mBAAmB,IAAI,SAAS,SAAS;EAC9C,KAAK,mBAAmB,IAAI,MAAM,OAAO;CAC3C;CACA,OAAO,MAAM;EACX,MAAM,UAAU,KAAK,mBAAmB,IAAI,IAAI;EAChD,UAAU,WAAW,MAAM,yCAAyC;EACpE,KAAK,mBAAmB,OAAO,IAAI;EACnC,MAAM,YAAY,KAAK,mBAAmB,IAAI,OAAO;EACrD,UAAU,WAAW,2CAA2C;EAChE,UAAU,OAAO,IAAI;EACrB,IAAI,UAAU,SAAS,GAAG;GACxB,KAAK,mBAAmB,OAAO,OAAO;EACxC;CACF;CACA,QAAQ,IAAI;EACV,KAAK,MAAM,WAAW,KAAK,mBAAmB,OAAO,GAAG;GACtD,KAAK,MAAM,QAAQ,SAAS;IAC1B,GAAG,IAAI;GACT;EACF;CACF;CACA,cAAc,SAAS,IAAI;EACzB,MAAM,UAAU,KAAK,mBAAmB,IAAI,OAAO,KAAK,CAAC;EACzD,KAAK,MAAM,QAAQ,SAAS;GAC1B,GAAG,IAAI;EACT;CACF;CACA,UAAU,SAAS,IAAI;EACrB,MAAM,UAAU,KAAK,mBAAmB,IAAI,OAAO,KAAK,CAAC;EACzD,KAAK,MAAM,QAAQ,SAAS;GAC1B,IAAI,GAAG,IAAI,GAAG;IACZ,OAAO;GACT;EACF;EACA,OAAO;CACT;CACA,OAAO;EACL,OAAO,KAAK,mBAAmB;CACjC;AACF;AACA,IAAI,8BAA8B"}
@@ -1,55 +1,54 @@
1
1
  import { invariant } from "@tamagui/react-native-web-internals";
2
2
  import * as React from "react";
3
- class StateSafePureComponent extends React.PureComponent {
4
- _inAsyncStateUpdate = false;
5
- constructor(props) {
6
- super(props);
7
- this._installSetStateHooks();
8
- }
9
- setState(partialState, callback) {
10
- if (typeof partialState === "function") {
11
- super.setState((state, props) => {
12
- this._inAsyncStateUpdate = true;
13
- let ret;
14
- try {
15
- ret = partialState(state, props);
16
- } catch (err) {
17
- throw err;
18
- } finally {
19
- this._inAsyncStateUpdate = false;
20
- }
21
- return ret;
22
- }, callback);
23
- } else {
24
- super.setState(partialState, callback);
25
- }
26
- }
27
- _installSetStateHooks() {
28
- const that = this;
29
- let {
30
- props,
31
- state
32
- } = this;
33
- Object.defineProperty(this, "props", {
34
- get() {
35
- invariant(!that._inAsyncStateUpdate, '"this.props" should not be accessed during state updates');
36
- return props;
37
- },
38
- set(newProps) {
39
- props = newProps;
40
- }
41
- });
42
- Object.defineProperty(this, "state", {
43
- get() {
44
- invariant(!that._inAsyncStateUpdate, '"this.state" should not be acceessed during state updates');
45
- return state;
46
- },
47
- set(newState) {
48
- state = newState;
49
- }
50
- });
51
- }
52
- }
3
+
4
+ var StateSafePureComponent = class extends React.PureComponent {
5
+ _inAsyncStateUpdate = false;
6
+ constructor(props) {
7
+ super(props);
8
+ this._installSetStateHooks();
9
+ }
10
+ setState(partialState, callback) {
11
+ if (typeof partialState === "function") {
12
+ super.setState((state, props) => {
13
+ this._inAsyncStateUpdate = true;
14
+ let ret;
15
+ try {
16
+ ret = partialState(state, props);
17
+ } catch (err) {
18
+ throw err;
19
+ } finally {
20
+ this._inAsyncStateUpdate = false;
21
+ }
22
+ return ret;
23
+ }, callback);
24
+ } else {
25
+ super.setState(partialState, callback);
26
+ }
27
+ }
28
+ _installSetStateHooks() {
29
+ const that = this;
30
+ let { props, state } = this;
31
+ Object.defineProperty(this, "props", {
32
+ get() {
33
+ invariant(!that._inAsyncStateUpdate, "\"this.props\" should not be accessed during state updates");
34
+ return props;
35
+ },
36
+ set(newProps) {
37
+ props = newProps;
38
+ }
39
+ });
40
+ Object.defineProperty(this, "state", {
41
+ get() {
42
+ invariant(!that._inAsyncStateUpdate, "\"this.state\" should not be acceessed during state updates");
43
+ return state;
44
+ },
45
+ set(newState) {
46
+ state = newState;
47
+ }
48
+ });
49
+ }
50
+ };
53
51
  var StateSafePureComponent_default = StateSafePureComponent;
52
+
54
53
  export { StateSafePureComponent, StateSafePureComponent_default as default };
55
54
  //# sourceMappingURL=StateSafePureComponent.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["invariant","React","StateSafePureComponent","PureComponent","_inAsyncStateUpdate","constructor","props","_installSetStateHooks","setState","partialState","callback","state","ret","err","that","Object","defineProperty","get","set","newProps","newState","StateSafePureComponent_default"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/StateSafePureComponent.js"],"sourcesContent":[null],"mappings":"AAUA,SAASA,SAAA,QAAiB;AAC1B,YAAYC,KAAA,MAAW;AAWvB,MAAMC,sBAAA,SAA+BD,KAAA,CAAME,aAAA,CAAc;EACvDC,mBAAA,GAAsB;EAEtBC,YAAYC,KAAA,EAAO;IACjB,MAAMA,KAAK;IACX,KAAKC,qBAAA,CAAsB;EAC7B;EAEAC,SAASC,YAAA,EAAcC,QAAA,EAAU;IAC/B,IAAI,OAAOD,YAAA,KAAiB,YAAY;MACtC,MAAMD,QAAA,CAAS,CAACG,KAAA,EAAOL,KAAA,KAAU;QAC/B,KAAKF,mBAAA,GAAsB;QAC3B,IAAIQ,GAAA;QACJ,IAAI;UACFA,GAAA,GAAMH,YAAA,CAAaE,KAAA,EAAOL,KAAK;QACjC,SAASO,GAAA,EAAK;UACZ,MAAMA,GAAA;QACR,UAAE;UACA,KAAKT,mBAAA,GAAsB;QAC7B;QACA,OAAOQ,GAAA;MACT,GAAGF,QAAQ;IACb,OAAO;MACL,MAAMF,QAAA,CAASC,YAAA,EAAcC,QAAQ;IACvC;EACF;EAEAH,sBAAA,EAAwB;IACtB,MAAMO,IAAA,GAAO;IACb,IAAI;MAAER,KAAA;MAAOK;IAAM,IAAI;IAEvBI,MAAA,CAAOC,cAAA,CAAe,MAAM,SAAS;MACnCC,IAAA,EAAM;QACJjB,SAAA,CACE,CAACc,IAAA,CAAKV,mBAAA,EACN,0DACF;QACA,OAAOE,KAAA;MACT;MACAY,IAAIC,QAAA,EAAU;QACZb,KAAA,GAAQa,QAAA;MACV;IACF,CAAC;IACDJ,MAAA,CAAOC,cAAA,CAAe,MAAM,SAAS;MACnCC,IAAA,EAAM;QACJjB,SAAA,CACE,CAACc,IAAA,CAAKV,mBAAA,EACN,2DACF;QACA,OAAOO,KAAA;MACT;MACAO,IAAIE,QAAA,EAAU;QACZT,KAAA,GAAQS,QAAA;MACV;IACF,CAAC;EACH;AACF;AAGA,IAAOC,8BAAA,GAAQnB,sBAAA","ignoreList":[]}
1
+ {"version":3,"file":"StateSafePureComponent.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nimport * as React from \"react\";\nclass StateSafePureComponent extends React.PureComponent {\n _inAsyncStateUpdate = false;\n constructor(props) {\n super(props);\n this._installSetStateHooks();\n }\n setState(partialState, callback) {\n if (typeof partialState === \"function\") {\n super.setState((state, props) => {\n this._inAsyncStateUpdate = true;\n let ret;\n try {\n ret = partialState(state, props);\n } catch (err) {\n throw err;\n } finally {\n this._inAsyncStateUpdate = false;\n }\n return ret;\n }, callback);\n } else {\n super.setState(partialState, callback);\n }\n }\n _installSetStateHooks() {\n const that = this;\n let { props, state } = this;\n Object.defineProperty(this, \"props\", {\n get() {\n invariant(\n !that._inAsyncStateUpdate,\n '\"this.props\" should not be accessed during state updates'\n );\n return props;\n },\n set(newProps) {\n props = newProps;\n }\n });\n Object.defineProperty(this, \"state\", {\n get() {\n invariant(\n !that._inAsyncStateUpdate,\n '\"this.state\" should not be acceessed during state updates'\n );\n return state;\n },\n set(newState) {\n state = newState;\n }\n });\n }\n}\nvar StateSafePureComponent_default = StateSafePureComponent;\nexport {\n StateSafePureComponent,\n StateSafePureComponent_default as default\n};\n//# sourceMappingURL=StateSafePureComponent.js.map\n"],"mappings":";;;;AAEA,IAAM,yBAAN,cAAqC,MAAM,cAAc;CACvD,sBAAsB;CACtB,YAAY,OAAO;EACjB,MAAM,KAAK;EACX,KAAK,sBAAsB;CAC7B;CACA,SAAS,cAAc,UAAU;EAC/B,IAAI,OAAO,iBAAiB,YAAY;GACtC,MAAM,UAAU,OAAO,UAAU;IAC/B,KAAK,sBAAsB;IAC3B,IAAI;IACJ,IAAI;KACF,MAAM,aAAa,OAAO,KAAK;IACjC,SAAS,KAAK;KACZ,MAAM;IACR,UAAU;KACR,KAAK,sBAAsB;IAC7B;IACA,OAAO;GACT,GAAG,QAAQ;EACb,OAAO;GACL,MAAM,SAAS,cAAc,QAAQ;EACvC;CACF;CACA,wBAAwB;EACtB,MAAM,OAAO;EACb,IAAI,EAAE,OAAO,UAAU;EACvB,OAAO,eAAe,MAAM,SAAS;GACnC,MAAM;IACJ,UACE,CAAC,KAAK,qBACN,4DACF;IACA,OAAO;GACT;GACA,IAAI,UAAU;IACZ,QAAQ;GACV;EACF,CAAC;EACD,OAAO,eAAe,MAAM,SAAS;GACnC,MAAM;IACJ,UACE,CAAC,KAAK,qBACN,6DACF;IACA,OAAO;GACT;GACA,IAAI,UAAU;IACZ,QAAQ;GACV;EACF,CAAC;CACH;AACF;AACA,IAAI,iCAAiC"}