@tamagui/react-native-web-lite 2.7.6 → 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.
- package/dist/cjs/AccessibilityInfo/index.cjs +82 -87
- package/dist/cjs/ActivityIndicator/index.cjs +83 -103
- package/dist/cjs/Alert/index.cjs +17 -20
- package/dist/cjs/AppRegistry/AppContainer.cjs +37 -52
- package/dist/cjs/AppRegistry/index.cjs +69 -81
- package/dist/cjs/AppRegistry/renderApplication.cjs +42 -54
- package/dist/cjs/AppState/index.cjs +60 -67
- package/dist/cjs/Appearance/index.cjs +40 -49
- package/dist/cjs/BackHandler/index.cjs +20 -25
- package/dist/cjs/Clipboard/index.cjs +50 -53
- package/dist/cjs/DeviceEmitter.cjs +15 -18
- package/dist/cjs/DeviceInfo/index.cjs +50 -63
- package/dist/cjs/Dimensions/index.cjs +86 -89
- package/dist/cjs/FlatList.cjs +177 -211
- package/dist/cjs/I18nManager/index.cjs +24 -29
- package/dist/cjs/Image/index.cjs +277 -308
- package/dist/cjs/Image/types.cjs +10 -11
- package/dist/cjs/ImageBackground/index.cjs +35 -48
- package/dist/cjs/InteractionManager/TaskQueue.cjs +95 -100
- package/dist/cjs/InteractionManager/index.cjs +105 -115
- package/dist/cjs/Keyboard/index.cjs +23 -28
- package/dist/cjs/KeyboardAvoidingView/index.cjs +41 -54
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +15 -18
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +15 -18
- package/dist/cjs/Linking/index.cjs +86 -89
- package/dist/cjs/LogBox/index.cjs +20 -21
- package/dist/cjs/Modal/ModalAnimation.cjs +131 -151
- package/dist/cjs/Modal/ModalContent.cjs +57 -77
- package/dist/cjs/Modal/ModalPortal.cjs +38 -46
- package/dist/cjs/Modal/index.cjs +15 -18
- package/dist/cjs/NativeModules/index.cjs +15 -20
- package/dist/cjs/PanResponder/index.cjs +18 -26
- package/dist/cjs/PixelRatio/index.cjs +45 -48
- package/dist/cjs/Pressable/index.cjs +130 -142
- package/dist/cjs/RefreshControl/index.cjs +18 -35
- package/dist/cjs/SafeAreaView/index.cjs +35 -46
- package/dist/cjs/ScrollView/WebScrollView.cjs +270 -0
- package/dist/cjs/ScrollView/index.cjs +15 -662
- package/dist/cjs/SectionList.cjs +19 -25
- package/dist/cjs/Share/index.cjs +44 -47
- package/dist/cjs/StatusBar/index.cjs +17 -18
- package/dist/cjs/Text/index.cjs +133 -171
- package/dist/cjs/Text/types.cjs +10 -11
- package/dist/cjs/TextInput/index.cjs +281 -359
- package/dist/cjs/TextInput/types.cjs +10 -11
- package/dist/cjs/TouchableNativeFeedback.cjs +15 -18
- package/dist/cjs/TouchableOpacity.cjs +91 -99
- package/dist/cjs/TouchableWithoutFeedback.cjs +65 -74
- package/dist/cjs/UnimplementedView.cjs +26 -36
- package/dist/cjs/Vibration/index.cjs +25 -28
- package/dist/cjs/View/index.cjs +89 -121
- package/dist/cjs/View/types.cjs +10 -11
- package/dist/cjs/VirtualizedList.cjs +19 -25
- package/dist/cjs/codegenNativeCommands.cjs +32 -0
- package/dist/cjs/codegenNativeComponent.cjs +19 -18
- package/dist/cjs/createElement/index.cjs +52 -70
- package/dist/cjs/createReactDOMStyle.cjs +16 -17
- package/dist/cjs/index.cjs +106 -106
- package/dist/cjs/modules/requestIdleCallback.cjs +28 -29
- package/dist/cjs/preprocess.cjs +19 -20
- package/dist/cjs/render/index.cjs +18 -19
- package/dist/cjs/styleTypes.cjs +10 -11
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/useColorScheme/index.cjs +27 -37
- package/dist/cjs/useLocaleContext/index.cjs +15 -18
- package/dist/cjs/useWindowDimensions/index.cjs +32 -42
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +23 -24
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +136 -141
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +500 -533
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +100 -109
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +2 -1
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +182 -183
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +302 -328
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +48 -56
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +46 -53
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +63 -64
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +52 -56
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +74 -79
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +210 -215
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +107 -116
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -88
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +23 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +19 -25
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +23 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +23 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +16 -17
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +16 -17
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +32 -44
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +51 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +244 -247
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +59 -60
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +65 -66
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +185 -188
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +49 -50
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +51 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +152 -156
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +133 -134
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +113 -116
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +51 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -75
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +109 -110
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +212 -216
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -103
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +70 -71
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +75 -76
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +46 -57
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +54 -57
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +16 -17
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +21 -24
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +165 -173
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +259 -294
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +66 -69
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +87 -91
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +170 -176
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +42 -43
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +21 -22
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +95 -110
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +28 -34
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +27 -33
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +82 -111
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -22
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +20 -21
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +124 -127
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +16 -17
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +23 -24
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +26 -30
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +27 -30
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +26 -27
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +154 -163
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +147 -156
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +124 -125
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +100 -99
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +63 -64
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +66 -75
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +104 -160
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +56 -64
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +51 -52
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +222 -284
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +124 -144
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +58 -59
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +16 -17
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +2 -1
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +43 -44
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +115 -120
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +31 -32
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +80 -81
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +17 -18
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +26 -27
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -89
- package/dist/cjs/without-animated.cjs +255 -267
- package/dist/esm/AccessibilityInfo/index.mjs +69 -69
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
- package/dist/esm/ActivityIndicator/index.mjs +66 -78
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
- package/dist/esm/Alert/index.mjs +4 -3
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/AppContainer.mjs +21 -28
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
- package/dist/esm/AppRegistry/index.mjs +58 -65
- package/dist/esm/AppRegistry/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/renderApplication.mjs +30 -40
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
- package/dist/esm/AppState/index.mjs +48 -50
- package/dist/esm/AppState/index.mjs.map +1 -1
- package/dist/esm/Appearance/index.mjs +27 -31
- package/dist/esm/Appearance/index.mjs.map +1 -1
- package/dist/esm/BackHandler/index.mjs +6 -7
- package/dist/esm/BackHandler/index.mjs.map +1 -1
- package/dist/esm/Clipboard/index.mjs +37 -36
- package/dist/esm/Clipboard/index.mjs.map +1 -1
- package/dist/esm/DeviceEmitter.mjs +2 -0
- package/dist/esm/DeviceEmitter.mjs.map +1 -1
- package/dist/esm/DeviceInfo/index.mjs +37 -45
- package/dist/esm/DeviceInfo/index.mjs.map +1 -1
- package/dist/esm/Dimensions/index.mjs +72 -72
- package/dist/esm/Dimensions/index.mjs.map +1 -1
- package/dist/esm/FlatList.mjs +162 -188
- package/dist/esm/FlatList.mjs.map +1 -1
- package/dist/esm/I18nManager/index.mjs +10 -11
- package/dist/esm/I18nManager/index.mjs.map +1 -1
- package/dist/esm/Image/index.mjs +261 -285
- package/dist/esm/Image/index.mjs.map +1 -1
- package/dist/esm/Image/types.mjs +0 -2
- package/dist/esm/ImageBackground/index.mjs +21 -31
- package/dist/esm/ImageBackground/index.mjs.map +1 -1
- package/dist/esm/InteractionManager/TaskQueue.mjs +83 -83
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
- package/dist/esm/InteractionManager/index.mjs +89 -89
- package/dist/esm/InteractionManager/index.mjs.map +1 -1
- package/dist/esm/Keyboard/index.mjs +10 -10
- package/dist/esm/Keyboard/index.mjs.map +1 -1
- package/dist/esm/KeyboardAvoidingView/index.mjs +24 -29
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
- package/dist/esm/Libraries/Pressability/Pressability.mjs +1 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -1
- package/dist/esm/Libraries/Pressability/usePressability.mjs +2 -1
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -1
- package/dist/esm/Linking/index.mjs +73 -71
- package/dist/esm/Linking/index.mjs.map +1 -1
- package/dist/esm/LogBox/index.mjs +5 -4
- package/dist/esm/LogBox/index.mjs.map +1 -1
- package/dist/esm/Modal/ModalAnimation.mjs +116 -126
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
- package/dist/esm/Modal/ModalContent.mjs +41 -51
- package/dist/esm/Modal/ModalContent.mjs.map +1 -1
- package/dist/esm/Modal/ModalPortal.mjs +22 -20
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
- package/dist/esm/Modal/index.mjs +1 -0
- package/dist/esm/Modal/index.mjs.map +1 -1
- package/dist/esm/NativeModules/index.mjs +3 -3
- package/dist/esm/NativeModules/index.mjs.map +1 -1
- package/dist/esm/PanResponder/index.mjs +3 -3
- package/dist/esm/PixelRatio/index.mjs +33 -31
- package/dist/esm/PixelRatio/index.mjs.map +1 -1
- package/dist/esm/Pressable/index.mjs +114 -119
- package/dist/esm/Pressable/index.mjs.map +1 -1
- package/dist/esm/RefreshControl/index.mjs +4 -18
- package/dist/esm/RefreshControl/index.mjs.map +1 -1
- package/dist/esm/SafeAreaView/index.mjs +18 -21
- package/dist/esm/SafeAreaView/index.mjs.map +1 -1
- package/dist/esm/ScrollView/WebScrollView.mjs +244 -0
- package/dist/esm/ScrollView/WebScrollView.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +3 -635
- package/dist/esm/SectionList.mjs +3 -4
- package/dist/esm/Share/index.mjs +32 -30
- package/dist/esm/Share/index.mjs.map +1 -1
- package/dist/esm/StatusBar/index.mjs +2 -1
- package/dist/esm/StatusBar/index.mjs.map +1 -1
- package/dist/esm/Text/index.mjs +116 -146
- package/dist/esm/Text/index.mjs.map +1 -1
- package/dist/esm/Text/types.mjs +0 -2
- package/dist/esm/TextInput/index.mjs +265 -336
- package/dist/esm/TextInput/index.mjs.map +1 -1
- package/dist/esm/TextInput/types.mjs +0 -2
- package/dist/esm/TouchableNativeFeedback.mjs +2 -2
- package/dist/esm/TouchableOpacity.mjs +75 -73
- package/dist/esm/TouchableOpacity.mjs.map +1 -1
- package/dist/esm/TouchableWithoutFeedback.mjs +49 -48
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
- package/dist/esm/UnimplementedView.mjs +11 -11
- package/dist/esm/UnimplementedView.mjs.map +1 -1
- package/dist/esm/Vibration/index.mjs +11 -10
- package/dist/esm/Vibration/index.mjs.map +1 -1
- package/dist/esm/View/index.mjs +73 -97
- package/dist/esm/View/index.mjs.map +1 -1
- package/dist/esm/View/types.mjs +0 -2
- package/dist/esm/VirtualizedList.mjs +3 -4
- package/dist/esm/codegenNativeCommands.mjs +8 -0
- package/dist/esm/codegenNativeCommands.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +5 -3
- package/dist/esm/codegenNativeComponent.mjs.map +1 -1
- package/dist/esm/createElement/index.mjs +35 -45
- package/dist/esm/createElement/index.mjs.map +1 -1
- package/dist/esm/createReactDOMStyle.mjs +2 -0
- package/dist/esm/createReactDOMStyle.mjs.map +1 -1
- package/dist/esm/index.js +15 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +15 -10
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback.mjs +13 -12
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
- package/dist/esm/preprocess.mjs +3 -3
- package/dist/esm/render/index.mjs +1 -0
- package/dist/esm/render/index.mjs.map +1 -1
- package/dist/esm/styleTypes.mjs +0 -2
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/useColorScheme/index.mjs +11 -11
- package/dist/esm/useColorScheme/index.mjs.map +1 -1
- package/dist/esm/useLocaleContext/index.mjs +2 -2
- package/dist/esm/useWindowDimensions/index.mjs +16 -16
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +12 -10
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +124 -127
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +485 -515
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +85 -91
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +0 -2
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +169 -167
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +273 -296
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +26 -26
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +24 -23
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +48 -47
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -39
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +60 -62
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +196 -198
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +93 -99
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +68 -71
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +7 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +3 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +7 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +7 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +15 -19
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +37 -35
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +230 -230
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +45 -43
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +51 -49
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +172 -172
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +35 -33
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +37 -35
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +138 -139
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +119 -117
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +99 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +37 -35
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +60 -59
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +95 -93
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +198 -199
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +82 -86
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +56 -54
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +61 -59
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +32 -40
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +40 -40
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +2 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +7 -6
- package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +150 -156
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FlatList/index.mjs +244 -271
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -52
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +73 -74
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +153 -151
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +27 -26
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +6 -5
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -1
- package/dist/esm/vendor/react-native/SectionList/index.mjs +78 -85
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +11 -9
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +10 -8
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +67 -94
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +3 -6
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +6 -4
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +105 -106
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs +2 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +8 -7
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +11 -13
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +13 -13
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +12 -10
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +140 -146
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +133 -139
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +107 -106
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +88 -82
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +49 -47
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +49 -50
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +87 -135
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +38 -38
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +36 -35
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +207 -266
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +107 -119
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +43 -42
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +2 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +0 -2
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +29 -27
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -103
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +16 -15
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +66 -64
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/infoLog/index.mjs +2 -1
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/useRefEffect.mjs +12 -10
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +71 -70
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
- package/dist/esm/without-animated.mjs +172 -187
- package/dist/esm/without-animated.mjs.map +1 -1
- package/package.json +12 -12
- package/src/ScrollView/WebScrollView.tsx +383 -0
- package/src/ScrollView/index.tsx +6 -892
- package/src/codegenNativeCommands.ts +6 -0
- package/src/codegenNativeComponent.ts +2 -2
- package/src/index.tsx +3 -0
- package/src/without-animated.tsx +1 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +0 -209
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +0 -97
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +0 -162
- package/dist/cjs/AppState/__tests__/index-test.cjs +0 -38
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +0 -67
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +0 -72
- package/dist/cjs/Linking/__tests__/index-test.cjs +0 -56
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +0 -167
- package/dist/cjs/codegenNativeCommand.cjs +0 -31
- package/dist/cjs/createElement/__tests__/index-test.cjs +0 -828
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +0 -186
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +0 -74
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +0 -139
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +0 -1
- package/dist/esm/AppState/__tests__/index-test.mjs +0 -15
- package/dist/esm/AppState/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/Dimensions/__tests__/index-test.mjs +0 -44
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/Image/types.mjs.map +0 -1
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +0 -49
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/Linking/__tests__/index-test.mjs +0 -33
- package/dist/esm/Linking/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/PanResponder/index.mjs.map +0 -1
- package/dist/esm/ScrollView/ScrollViewBase.mjs +0 -130
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +0 -1
- package/dist/esm/ScrollView/index.mjs.map +0 -1
- package/dist/esm/SectionList.mjs.map +0 -1
- package/dist/esm/Text/types.mjs.map +0 -1
- package/dist/esm/TextInput/types.mjs.map +0 -1
- package/dist/esm/TouchableNativeFeedback.mjs.map +0 -1
- package/dist/esm/View/types.mjs.map +0 -1
- package/dist/esm/VirtualizedList.mjs.map +0 -1
- package/dist/esm/codegenNativeCommand.mjs +0 -6
- package/dist/esm/codegenNativeCommand.mjs.map +0 -1
- package/dist/esm/createElement/__tests__/index-test.mjs +0 -805
- package/dist/esm/createElement/__tests__/index-test.mjs.map +0 -1
- package/dist/esm/preprocess.mjs.map +0 -1
- package/dist/esm/styleTypes.mjs.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/useLocaleContext/index.mjs.map +0 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +0 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +0 -1
- package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +0 -466
- package/src/ActivityIndicator/__tests__/index-test.tsx +0 -147
- package/src/AppRegistry/__tests__/index-test.node.tsx +0 -144
- package/src/AppRegistry/__tests__/index-test.tsx +0 -94
- package/src/AppState/__tests__/index-test.tsx +0 -24
- package/src/Dimensions/__tests__/index-test.tsx +0 -54
- package/src/ImageBackground/__tests__/index-test.tsx +0 -49
- package/src/Linking/__tests__/index-test.tsx +0 -37
- package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +0 -196
- package/src/ScrollView/ScrollViewBase.tsx +0 -183
- package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +0 -49
- package/src/Text/__tests__/__snapshots__/index-test.js.snap +0 -218
- package/src/codegenNativeCommand.ts +0 -6
- package/src/createElement/__tests__/__snapshots__/index-test.js.snap +0 -13
- package/src/createElement/__tests__/index-test.tsx +0 -647
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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":"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"}
|
|
@@ -1,85 +1,91 @@
|
|
|
1
1
|
import { invariant } from "@tamagui/react-native-web-internals";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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,"
|
|
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;EACA,IAAI,MAAM,OAAO,MAAM,OAAO;GAC5B;EACF;EACA,MAAM,CAAC,gBAAgB,qBAAqB,KAAK,YAAY,MAAM,KAAK;EACxE,MAAM,CAAC,eAAe,oBAAoB,KAAK,YAAY,MAAM,IAAI;EACrE,IAAI,sBAAsB,oBAAoB,CAAC,eAAe,UAAU;GACtE;EACF;EACA,MAAM,gBAAgB,CAAC;EACvB,MAAM,gBAAgB,CAAC;EACvB,MAAM,gBAAgB;GACpB,GAAG;GACH,UAAU;EACZ;EACA,IAAI,eAAe,QAAQ,cAAc,OAAO;GAC9C,IAAI,eAAe,UAAU;IAC3B,cAAc,KAAK;KACjB,OAAO,eAAe;KACtB,MAAM,cAAc,QAAQ;KAC5B,UAAU;IACZ,CAAC;GACH,OAAO;IACL,cAAc,QAAQ,eAAe;GACvC;EACF;EACA,IAAI,cAAc,OAAO,cAAc,MAAM;GAC3C,IAAI,cAAc,UAAU;IAC1B,cAAc,KAAK;KACjB,OAAO,cAAc,OAAO;KAC5B,MAAM,cAAc;KACpB,UAAU;IACZ,CAAC;GACH,OAAO;IACL,cAAc,OAAO,cAAc;GACrC;EACF;EACA,MAAM,qBAAqB;GAAC,GAAG;GAAe;GAAe,GAAG;EAAa;EAC7E,MAAM,qBAAqB,mBAAmB,oBAAoB;EAClE,KAAK,SAAS,OAAO,mBAAmB,oBAAoB,GAAG,kBAAkB;CACnF;CACA,WAAW;EACT,OAAO,KAAK;CACd;CACA,OAAO,OAAO;EACZ,OAAO,KAAK,cAAc,MAAM,aAAa,KAAK,SAAS,WAAW,MAAM,SAAS,UAAU,KAAK,SAAS,OAC1G,QAAQ,MAAM,OAAO,UAAU,MAAM,SAAS,GAAG,SAAS,OAAO,SAAS,MAAM,SAAS,GAAG,QAAQ,OAAO,aAAa,MAAM,SAAS,GAAG,QAC7I;CACF;CACA,YAAY,SAAS;EACnB,IAAI,WAAW;EACf,IAAI,UAAU,KAAK,SAAS,SAAS;EACrC,OAAO,YAAY,SAAS;GAC1B,MAAM,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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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,"
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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,"
|
|
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"}
|