@hanzogui/react-native-web-lite 2.0.0-rc.41-hanzoai.5
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/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/cjs/AccessibilityInfo/index.cjs +109 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +209 -0
- package/dist/cjs/ActivityIndicator/index.cjs +130 -0
- package/dist/cjs/Alert/index.cjs +30 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +75 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +97 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +162 -0
- package/dist/cjs/AppRegistry/index.cjs +100 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +74 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +38 -0
- package/dist/cjs/AppState/index.cjs +85 -0
- package/dist/cjs/Appearance/index.cjs +64 -0
- package/dist/cjs/BackHandler/index.cjs +37 -0
- package/dist/cjs/Clipboard/index.cjs +64 -0
- package/dist/cjs/DeviceEmitter.cjs +29 -0
- package/dist/cjs/DeviceInfo/index.cjs +76 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +67 -0
- package/dist/cjs/Dimensions/index.cjs +112 -0
- package/dist/cjs/FlatList.cjs +241 -0
- package/dist/cjs/I18nManager/index.cjs +40 -0
- package/dist/cjs/Image/index.cjs +355 -0
- package/dist/cjs/Image/types.cjs +18 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +72 -0
- package/dist/cjs/ImageBackground/index.cjs +69 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +111 -0
- package/dist/cjs/InteractionManager/index.cjs +141 -0
- package/dist/cjs/Keyboard/index.cjs +40 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +72 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +28 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +28 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +56 -0
- package/dist/cjs/Linking/index.cjs +103 -0
- package/dist/cjs/LogBox/index.cjs +35 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +174 -0
- package/dist/cjs/Modal/ModalContent.cjs +95 -0
- package/dist/cjs/Modal/ModalPortal.cjs +63 -0
- package/dist/cjs/Modal/index.cjs +28 -0
- package/dist/cjs/NativeModules/index.cjs +31 -0
- package/dist/cjs/PanResponder/index.cjs +39 -0
- package/dist/cjs/PixelRatio/index.cjs +59 -0
- package/dist/cjs/Pressable/index.cjs +172 -0
- package/dist/cjs/RefreshControl/index.cjs +51 -0
- package/dist/cjs/SafeAreaView/index.cjs +70 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +167 -0
- package/dist/cjs/ScrollView/index.cjs +672 -0
- package/dist/cjs/SectionList.cjs +41 -0
- package/dist/cjs/Share/index.cjs +58 -0
- package/dist/cjs/StatusBar/index.cjs +38 -0
- package/dist/cjs/Text/index.cjs +197 -0
- package/dist/cjs/Text/types.cjs +18 -0
- package/dist/cjs/TextInput/index.cjs +396 -0
- package/dist/cjs/TextInput/types.cjs +18 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +28 -0
- package/dist/cjs/TouchableOpacity.cjs +125 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +95 -0
- package/dist/cjs/UnimplementedView.cjs +52 -0
- package/dist/cjs/Vibration/index.cjs +40 -0
- package/dist/cjs/View/index.cjs +144 -0
- package/dist/cjs/View/types.cjs +18 -0
- package/dist/cjs/VirtualizedList.cjs +41 -0
- package/dist/cjs/codegenNativeCommand.cjs +31 -0
- package/dist/cjs/codegenNativeComponent.cjs +31 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +828 -0
- package/dist/cjs/createElement/index.cjs +94 -0
- package/dist/cjs/createReactDOMStyle.cjs +30 -0
- package/dist/cjs/index.cjs +174 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +45 -0
- package/dist/cjs/preprocess.cjs +32 -0
- package/dist/cjs/render/index.cjs +34 -0
- package/dist/cjs/styleTypes.cjs +18 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/useColorScheme/index.cjs +53 -0
- package/dist/cjs/useLocaleContext/index.cjs +28 -0
- package/dist/cjs/useWindowDimensions/index.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +164 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +587 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +147 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +199 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +402 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +80 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +77 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +86 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +72 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +95 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +233 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +134 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +124 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +44 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +65 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +274 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +74 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +84 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +225 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +174 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +151 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +90 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +127 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +239 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +119 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +87 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +104 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +72 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +73 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +31 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +35 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +189 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +324 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +93 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +116 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +207 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +62 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +36 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +128 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +52 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +125 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +36 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +39 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +158 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +30 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +40 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +184 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +175 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +110 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +77 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +92 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +182 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +89 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +66 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +310 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +165 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +74 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +32 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +59 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +136 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +46 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +96 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +34 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +103 -0
- package/dist/cjs/without-animated.cjs +348 -0
- package/dist/esm/AccessibilityInfo/index.mjs +84 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +186 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/index.mjs +93 -0
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -0
- package/dist/esm/Alert/index.mjs +5 -0
- package/dist/esm/Alert/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/AppContainer.mjs +38 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +74 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +139 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +75 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +48 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +15 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +60 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +39 -0
- package/dist/esm/Appearance/index.mjs.map +1 -0
- package/dist/esm/BackHandler/index.mjs +12 -0
- package/dist/esm/BackHandler/index.mjs.map +1 -0
- package/dist/esm/Clipboard/index.mjs +39 -0
- package/dist/esm/Clipboard/index.mjs.map +1 -0
- package/dist/esm/DeviceEmitter.mjs +4 -0
- package/dist/esm/DeviceEmitter.mjs.map +1 -0
- package/dist/esm/DeviceInfo/index.mjs +51 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +44 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +86 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +204 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +15 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +318 -0
- package/dist/esm/Image/index.mjs.map +1 -0
- package/dist/esm/Image/types.mjs +2 -0
- package/dist/esm/Image/types.mjs.map +1 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +49 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ImageBackground/index.mjs +43 -0
- package/dist/esm/ImageBackground/index.mjs.map +1 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs +86 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +105 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -0
- package/dist/esm/Keyboard/index.mjs +15 -0
- package/dist/esm/Keyboard/index.mjs.map +1 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs +35 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
- package/dist/esm/Linking/__tests__/index-test.mjs +33 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +78 -0
- package/dist/esm/Linking/index.mjs.map +1 -0
- package/dist/esm/LogBox/index.mjs +9 -0
- package/dist/esm/LogBox/index.mjs.map +1 -0
- package/dist/esm/Modal/ModalAnimation.mjs +138 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +59 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +27 -0
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -0
- package/dist/esm/Modal/index.mjs +3 -0
- package/dist/esm/Modal/index.mjs.map +1 -0
- package/dist/esm/NativeModules/index.mjs +6 -0
- package/dist/esm/NativeModules/index.mjs.map +1 -0
- package/dist/esm/PanResponder/index.mjs +3 -0
- package/dist/esm/PanResponder/index.mjs.map +1 -0
- package/dist/esm/PixelRatio/index.mjs +34 -0
- package/dist/esm/PixelRatio/index.mjs.map +1 -0
- package/dist/esm/Pressable/index.mjs +133 -0
- package/dist/esm/Pressable/index.mjs.map +1 -0
- package/dist/esm/RefreshControl/index.mjs +25 -0
- package/dist/esm/RefreshControl/index.mjs.map +1 -0
- package/dist/esm/SafeAreaView/index.mjs +33 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +130 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +635 -0
- package/dist/esm/ScrollView/index.mjs.map +1 -0
- package/dist/esm/SectionList.mjs +4 -0
- package/dist/esm/SectionList.mjs.map +1 -0
- package/dist/esm/Share/index.mjs +33 -0
- package/dist/esm/Share/index.mjs.map +1 -0
- package/dist/esm/StatusBar/index.mjs +12 -0
- package/dist/esm/StatusBar/index.mjs.map +1 -0
- package/dist/esm/Text/index.mjs +160 -0
- package/dist/esm/Text/index.mjs.map +1 -0
- package/dist/esm/Text/types.mjs +2 -0
- package/dist/esm/Text/types.mjs.map +1 -0
- package/dist/esm/TextInput/index.mjs +359 -0
- package/dist/esm/TextInput/index.mjs.map +1 -0
- package/dist/esm/TextInput/types.mjs +2 -0
- package/dist/esm/TextInput/types.mjs.map +1 -0
- package/dist/esm/TouchableNativeFeedback.mjs +3 -0
- package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
- package/dist/esm/TouchableOpacity.mjs +87 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +59 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +16 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +15 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +107 -0
- package/dist/esm/View/index.mjs.map +1 -0
- package/dist/esm/View/types.mjs +2 -0
- package/dist/esm/View/types.mjs.map +1 -0
- package/dist/esm/VirtualizedList.mjs +4 -0
- package/dist/esm/VirtualizedList.mjs.map +1 -0
- package/dist/esm/codegenNativeCommand.mjs +6 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +6 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +805 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +57 -0
- package/dist/esm/createElement/index.mjs.map +1 -0
- package/dist/esm/createReactDOMStyle.mjs +4 -0
- package/dist/esm/createReactDOMStyle.mjs.map +1 -0
- package/dist/esm/index.js +61 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +61 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback.mjs +19 -0
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
- package/dist/esm/preprocess.mjs +3 -0
- package/dist/esm/preprocess.mjs.map +1 -0
- package/dist/esm/render/index.mjs +6 -0
- package/dist/esm/render/index.mjs.map +1 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/useColorScheme/index.mjs +17 -0
- package/dist/esm/useColorScheme/index.mjs.map +1 -0
- package/dist/esm/useLocaleContext/index.mjs +3 -0
- package/dist/esm/useLocaleContext/index.mjs.map +1 -0
- package/dist/esm/useWindowDimensions/index.mjs +22 -0
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +22 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +136 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +558 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +118 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +171 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +360 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +60 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +44 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +67 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +205 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +108 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +96 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +7 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +28 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +248 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +48 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +56 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +197 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +146 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +125 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +110 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +64 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +99 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +211 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +93 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +59 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +44 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +45 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +5 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +163 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +287 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +65 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +88 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +170 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +36 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs +91 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +13 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +12 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +99 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +8 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +11 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +126 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs +4 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +12 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +17 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +19 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +156 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +149 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +116 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +85 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +51 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +55 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +145 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +50 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +40 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +284 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +128 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +46 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +4 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +2 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +31 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +110 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +18 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +68 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs +6 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +75 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +234 -0
- package/dist/esm/without-animated.mjs.map +1 -0
- package/package.json +125 -0
- package/src/AccessibilityInfo/index.tsx +113 -0
- package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +466 -0
- package/src/ActivityIndicator/__tests__/index-test.tsx +147 -0
- package/src/ActivityIndicator/index.tsx +116 -0
- package/src/Alert/index.tsx +12 -0
- package/src/AppRegistry/AppContainer.tsx +54 -0
- package/src/AppRegistry/__tests__/index-test.node.tsx +144 -0
- package/src/AppRegistry/__tests__/index-test.tsx +94 -0
- package/src/AppRegistry/index.tsx +156 -0
- package/src/AppRegistry/renderApplication.tsx +75 -0
- package/src/AppState/__tests__/index-test.tsx +24 -0
- package/src/AppState/index.tsx +92 -0
- package/src/Appearance/index.tsx +59 -0
- package/src/BackHandler/index.tsx +23 -0
- package/src/Clipboard/index.tsx +61 -0
- package/src/DeviceEmitter.ts +3 -0
- package/src/DeviceInfo/index.tsx +55 -0
- package/src/Dimensions/__tests__/index-test.tsx +54 -0
- package/src/Dimensions/index.tsx +129 -0
- package/src/FlatList.tsx +331 -0
- package/src/I18nManager/index.tsx +31 -0
- package/src/Image/index.tsx +401 -0
- package/src/Image/types.tsx +112 -0
- package/src/ImageBackground/__tests__/index-test.tsx +49 -0
- package/src/ImageBackground/index.tsx +66 -0
- package/src/InteractionManager/TaskQueue.tsx +112 -0
- package/src/InteractionManager/index.tsx +140 -0
- package/src/Keyboard/index.tsx +24 -0
- package/src/KeyboardAvoidingView/index.tsx +55 -0
- package/src/Libraries/Pressability/Pressability.ts +2 -0
- package/src/Libraries/Pressability/usePressability.ts +2 -0
- package/src/Linking/__tests__/index-test.tsx +37 -0
- package/src/Linking/index.tsx +113 -0
- package/src/LogBox/index.tsx +17 -0
- package/src/Modal/ModalAnimation.js +178 -0
- package/src/Modal/ModalContent.js +73 -0
- package/src/Modal/ModalPortal.js +40 -0
- package/src/Modal/index.js +1 -0
- package/src/NativeModules/index.tsx +15 -0
- package/src/PanResponder/Alternative.tsx +385 -0
- package/src/PanResponder/index.tsx +1 -0
- package/src/PixelRatio/index.tsx +49 -0
- package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +196 -0
- package/src/Pressable/index.tsx +236 -0
- package/src/RefreshControl/index.tsx +50 -0
- package/src/SafeAreaView/index.tsx +48 -0
- package/src/ScrollView/ScrollViewBase.tsx +183 -0
- package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +49 -0
- package/src/ScrollView/index.tsx +892 -0
- package/src/SectionList.tsx +9 -0
- package/src/Share/index.tsx +69 -0
- package/src/StatusBar/index.tsx +22 -0
- package/src/Text/__tests__/__snapshots__/index-test.js.snap +218 -0
- package/src/Text/index.tsx +208 -0
- package/src/Text/types.tsx +96 -0
- package/src/TextInput/index.tsx +453 -0
- package/src/TextInput/types.tsx +74 -0
- package/src/TouchableNativeFeedback.tsx +8 -0
- package/src/TouchableOpacity.tsx +150 -0
- package/src/TouchableWithoutFeedback.tsx +95 -0
- package/src/UnimplementedView.tsx +13 -0
- package/src/Vibration/index.tsx +26 -0
- package/src/View/index.tsx +139 -0
- package/src/View/types.tsx +170 -0
- package/src/VirtualizedList.tsx +9 -0
- package/src/codegenNativeCommand.ts +6 -0
- package/src/codegenNativeComponent.ts +6 -0
- package/src/createElement/__tests__/__snapshots__/index-test.js.snap +13 -0
- package/src/createElement/__tests__/index-test.tsx +647 -0
- package/src/createElement/index.tsx +92 -0
- package/src/createReactDOMStyle.ts +4 -0
- package/src/index.tsx +111 -0
- package/src/modules/requestIdleCallback.ts +32 -0
- package/src/preprocess.ts +7 -0
- package/src/render/index.tsx +16 -0
- package/src/styleTypes.ts +321 -0
- package/src/types.ts +77 -0
- package/src/useColorScheme/index.tsx +28 -0
- package/src/useLocaleContext/index.tsx +10 -0
- package/src/useWindowDimensions/index.tsx +34 -0
- package/src/vendor/react-native/Animated/Animated.js +33 -0
- package/src/vendor/react-native/Animated/AnimatedEvent.js +199 -0
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +649 -0
- package/src/vendor/react-native/Animated/AnimatedMock.js +155 -0
- package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +11 -0
- package/src/vendor/react-native/Animated/Easing.js +249 -0
- package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +525 -0
- package/src/vendor/react-native/Animated/NativeAnimatedModule.js +57 -0
- package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +53 -0
- package/src/vendor/react-native/Animated/SpringConfig.js +88 -0
- package/src/vendor/react-native/Animated/animations/Animation.js +66 -0
- package/src/vendor/react-native/Animated/animations/DecayAnimation.js +88 -0
- package/src/vendor/react-native/Animated/animations/SpringAnimation.js +291 -0
- package/src/vendor/react-native/Animated/animations/TimingAnimation.js +133 -0
- package/src/vendor/react-native/Animated/bezier.js +142 -0
- package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedImage.js +17 -0
- package/src/vendor/react-native/Animated/components/AnimatedScrollView.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedText.js +15 -0
- package/src/vendor/react-native/Animated/components/AnimatedView.js +15 -0
- package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +39 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +293 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +67 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +78 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.jsx +327 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +56 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +59 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +190 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +160 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +137 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +90 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +122 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +292 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +108 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +89 -0
- package/src/vendor/react-native/Animated/useAnimatedProps.js +173 -0
- package/src/vendor/react-native/Batchinator/index.js +77 -0
- package/src/vendor/react-native/EventEmitter/NativeEventEmitter.js +85 -0
- package/src/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +22 -0
- package/src/vendor/react-native/FeatureFlags.js +8 -0
- package/src/vendor/react-native/FillRateHelper/index.js +213 -0
- package/src/vendor/react-native/FlatList/index.jsx +518 -0
- package/src/vendor/react-native/JSEventLoopWatchdog/index.js +85 -0
- package/src/vendor/react-native/LayoutAnimation/index.js +119 -0
- package/src/vendor/react-native/PanResponder/index.js +243 -0
- package/src/vendor/react-native/PooledClass/index.js +62 -0
- package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +20 -0
- package/src/vendor/react-native/SHA +2 -0
- package/src/vendor/react-native/SectionList/index.jsx +100 -0
- package/src/vendor/react-native/StaticContainer/index.js +43 -0
- package/src/vendor/react-native/StaticRenderer/index.js +26 -0
- package/src/vendor/react-native/TouchHistoryMath/index.js +137 -0
- package/src/vendor/react-native/TurboModule/RCTExport.js +37 -0
- package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +27 -0
- package/src/vendor/react-native/Types/CoreEventTypes.js +151 -0
- package/src/vendor/react-native/Utilities/Platform.js +3 -0
- package/src/vendor/react-native/Utilities/clamp.js +24 -0
- package/src/vendor/react-native/Utilities/setAndForwardRef.js +62 -0
- package/src/vendor/react-native/Utilities/useMergeRefs.js +40 -0
- package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
- package/src/vendor/react-native/ViewabilityHelper/index.js +251 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +293 -0
- package/src/vendor/react-native/VirtualizeUtils/index.js +204 -0
- package/src/vendor/react-native/VirtualizedList/CellRenderMask.js +135 -0
- package/src/vendor/react-native/VirtualizedList/ChildListCollection.js +75 -0
- package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.js +82 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +184 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.jsx +96 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
- package/src/vendor/react-native/VirtualizedList/index.jsx +378 -0
- package/src/vendor/react-native/VirtualizedSectionList/index.jsx +149 -0
- package/src/vendor/react-native/deepDiffer/index.js +69 -0
- package/src/vendor/react-native/emitter/EventEmitter.js +14 -0
- package/src/vendor/react-native/emitter/EventSubscription.js +12 -0
- package/src/vendor/react-native/emitter/_EmitterSubscription.js +47 -0
- package/src/vendor/react-native/emitter/_EventEmitter.js +175 -0
- package/src/vendor/react-native/emitter/_EventSubscription.js +34 -0
- package/src/vendor/react-native/emitter/_EventSubscriptionVendor.js +96 -0
- package/src/vendor/react-native/infoLog/index.js +21 -0
- package/src/vendor/react-native/useRefEffect.js +44 -0
- package/src/vendor/react-native/vendor/emitter/EventEmitter.js +121 -0
- package/src/without-animated.tsx +288 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleSheet } from "@hanzogui/react-native-web-internals";
|
|
3
|
+
import { View } from "../View/index.mjs";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
const createSvgCircle = style => /* @__PURE__ */jsx("circle", {
|
|
6
|
+
cx: "16",
|
|
7
|
+
cy: "16",
|
|
8
|
+
fill: "none",
|
|
9
|
+
r: "14",
|
|
10
|
+
strokeWidth: "4",
|
|
11
|
+
style
|
|
12
|
+
});
|
|
13
|
+
const ActivityIndicator = React.forwardRef((props, forwardedRef) => {
|
|
14
|
+
const {
|
|
15
|
+
animating = true,
|
|
16
|
+
color = "#1976D2",
|
|
17
|
+
hidesWhenStopped = true,
|
|
18
|
+
size = "small",
|
|
19
|
+
style,
|
|
20
|
+
...other
|
|
21
|
+
} = props;
|
|
22
|
+
const svg = /* @__PURE__ */jsxs("svg", {
|
|
23
|
+
height: "100%",
|
|
24
|
+
viewBox: "0 0 32 32",
|
|
25
|
+
width: "100%",
|
|
26
|
+
children: [createSvgCircle({
|
|
27
|
+
stroke: color,
|
|
28
|
+
opacity: 0.2
|
|
29
|
+
}), createSvgCircle({
|
|
30
|
+
stroke: color,
|
|
31
|
+
strokeDasharray: 80,
|
|
32
|
+
strokeDashoffset: 60
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */jsx(View, {
|
|
36
|
+
...other,
|
|
37
|
+
accessibilityRole: "progressbar",
|
|
38
|
+
accessibilityValueMax: 1,
|
|
39
|
+
accessibilityValueMin: 0,
|
|
40
|
+
ref: forwardedRef,
|
|
41
|
+
style: [styles.container, style],
|
|
42
|
+
children: /* @__PURE__ */jsx(View, {
|
|
43
|
+
children: svg,
|
|
44
|
+
style: [typeof size === "number" ? {
|
|
45
|
+
height: size,
|
|
46
|
+
width: size
|
|
47
|
+
} : indicatorSizes[size], styles.animation, !animating && styles.animationPause, !animating && hidesWhenStopped && styles.hidesWhenStopped]
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
ActivityIndicator.displayName = "ActivityIndicator";
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
container: {
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center"
|
|
56
|
+
},
|
|
57
|
+
hidesWhenStopped: {
|
|
58
|
+
visibility: "hidden"
|
|
59
|
+
},
|
|
60
|
+
animation: {
|
|
61
|
+
animationDuration: "0.75s",
|
|
62
|
+
animationKeyframes: [{
|
|
63
|
+
"0%": {
|
|
64
|
+
transform: [{
|
|
65
|
+
rotate: "0deg"
|
|
66
|
+
}]
|
|
67
|
+
},
|
|
68
|
+
"100%": {
|
|
69
|
+
transform: [{
|
|
70
|
+
rotate: "360deg"
|
|
71
|
+
}]
|
|
72
|
+
}
|
|
73
|
+
}],
|
|
74
|
+
animationTimingFunction: "linear",
|
|
75
|
+
animationIterationCount: "infinite"
|
|
76
|
+
},
|
|
77
|
+
animationPause: {
|
|
78
|
+
animationPlayState: "paused"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const indicatorSizes = StyleSheet.create({
|
|
82
|
+
small: {
|
|
83
|
+
width: 20,
|
|
84
|
+
height: 20
|
|
85
|
+
},
|
|
86
|
+
large: {
|
|
87
|
+
width: 36,
|
|
88
|
+
height: 36
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
var ActivityIndicator_default = ActivityIndicator;
|
|
92
|
+
export { ActivityIndicator, ActivityIndicator_default as default };
|
|
93
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","jsx","jsxs","createSvgCircle","style","cx","cy","fill","r","strokeWidth","ActivityIndicator","forwardRef","props","forwardedRef","animating","color","hidesWhenStopped","size","other","svg","height","viewBox","width","children","stroke","opacity","strokeDasharray","strokeDashoffset","accessibilityRole","accessibilityValueMax","accessibilityValueMin","ref","styles","container","indicatorSizes","animation","animationPause","displayName","create","alignItems","justifyContent","visibility","animationDuration","animationKeyframes","transform","rotate","animationTimingFunction","animationIterationCount","animationPlayState","small","large","ActivityIndicator_default"],"sources":["../../../src/ActivityIndicator/index.tsx"],"sourcesContent":[null],"mappings":"AAUA,YAAYA,KAAA,MAAW;AACvB,SAASC,UAAA,QAAkB;AAG3B,SAASC,IAAA,QAAY;AAGnB,SAAAC,GAAA,EAsBIC,IAAA,QAtBJ;AADF,MAAMC,eAAA,GAAmBC,KAAA,IACvB,eAAAH,GAAA,CAAC;EAAOI,EAAA,EAAG;EAAKC,EAAA,EAAG;EAAKC,IAAA,EAAK;EAAOC,CAAA,EAAE;EAAKC,WAAA,EAAY;EAAIL;AAAA,CAAc;AAU3E,MAAMM,iBAAA,GAAoBZ,KAAA,CAAMa,UAAA,CAC9B,CAACC,KAAA,EAAOC,YAAA,KAAiB;EACvB,MAAM;IACJC,SAAA,GAAY;IACZC,KAAA,GAAQ;IACRC,gBAAA,GAAmB;IACnBC,IAAA,GAAO;IACPb,KAAA;IACA,GAAGc;EACL,IAAIN,KAAA;EAEJ,MAAMO,GAAA,GACJ,eAAAjB,IAAA,CAAC;IAAIkB,MAAA,EAAO;IAAOC,OAAA,EAAQ;IAAYC,KAAA,EAAM;IAC1CC,QAAA,GAAApB,eAAA,CAAgB;MACfqB,MAAA,EAAQT,KAAA;MACRU,OAAA,EAAS;IACX,CAAC,GACAtB,eAAA,CAAgB;MACfqB,MAAA,EAAQT,KAAA;MACRW,eAAA,EAAiB;MACjBC,gBAAA,EAAkB;IACpB,CAAC;EAAA,CACH;EAGF,OACE,eAAA1B,GAAA,CAACD,IAAA;IACE,GAAGkB,KAAA;IACJU,iBAAA,EAAkB;IAClBC,qBAAA,EAAuB;IACvBC,qBAAA,EAAuB;IACvBC,GAAA,EAAKlB,YAAA;IACLT,KAAA,EAAO,CAAC4B,MAAA,CAAOC,SAAA,EAAW7B,KAAK;IAE/BmB,QAAA,iBAAAtB,GAAA,CAACD,IAAA;MACCuB,QAAA,EAAUJ,GAAA;MACVf,KAAA,EAAO,CACL,OAAOa,IAAA,KAAS,WACZ;QAAEG,MAAA,EAAQH,IAAA;QAAMK,KAAA,EAAOL;MAAK,IAC5BiB,cAAA,CAAejB,IAAI,GACvBe,MAAA,CAAOG,SAAA,EACP,CAACrB,SAAA,IAAakB,MAAA,CAAOI,cAAA,EACrB,CAACtB,SAAA,IAAaE,gBAAA,IAAoBgB,MAAA,CAAOhB,gBAAA;IAC3C,CACF;EAAA,CACF;AAEJ,CACF;AAEAN,iBAAA,CAAkB2B,WAAA,GAAc;AAEhC,MAAML,MAAA,GAASjC,UAAA,CAAWuC,MAAA,CAAO;EAC/BL,SAAA,EAAW;IACTM,UAAA,EAAY;IACZC,cAAA,EAAgB;EAClB;EACAxB,gBAAA,EAAkB;IAChByB,UAAA,EAAY;EACd;EACAN,SAAA,EAAW;IACTO,iBAAA,EAAmB;IACnBC,kBAAA,EAAoB,CAClB;MACE,MAAM;QAAEC,SAAA,EAAW,CAAC;UAAEC,MAAA,EAAQ;QAAO,CAAC;MAAE;MACxC,QAAQ;QAAED,SAAA,EAAW,CAAC;UAAEC,MAAA,EAAQ;QAAS,CAAC;MAAE;IAC9C,EACF;IACAC,uBAAA,EAAyB;IACzBC,uBAAA,EAAyB;EAC3B;EACAX,cAAA,EAAgB;IACdY,kBAAA,EAAoB;EACtB;AACF,CAAC;AAED,MAAMd,cAAA,GAAiBnC,UAAA,CAAWuC,MAAA,CAAO;EACvCW,KAAA,EAAO;IACL3B,KAAA,EAAO;IACPF,MAAA,EAAQ;EACV;EACA8B,KAAA,EAAO;IACL5B,KAAA,EAAO;IACPF,MAAA,EAAQ;EACV;AACF,CAAC;AAGD,IAAO+B,yBAAA,GAAQzC,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","alert"],"sources":["../../../src/Alert/index.tsx"],"sourcesContent":[null],"mappings":"AASO,MAAMA,KAAA,CAAM;EACjB,OAAOC,MAAA,EAAQ,CAAC;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleSheet } from "@hanzogui/react-native-web-internals";
|
|
3
|
+
import { View } from "../View/index.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
const RootTagContext = React.createContext(null);
|
|
6
|
+
const AppContainer = React.forwardRef((props, forwardedRef) => {
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
WrapperComponent
|
|
10
|
+
} = props;
|
|
11
|
+
let innerView = /* @__PURE__ */jsx(View, {
|
|
12
|
+
pointerEvents: "box-none",
|
|
13
|
+
style: styles.appContainer,
|
|
14
|
+
children
|
|
15
|
+
}, 1);
|
|
16
|
+
if (WrapperComponent) {
|
|
17
|
+
innerView = /* @__PURE__ */jsx(WrapperComponent, {
|
|
18
|
+
children: innerView
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */jsx(RootTagContext.Provider, {
|
|
22
|
+
value: props.rootTag,
|
|
23
|
+
children: /* @__PURE__ */jsx(View, {
|
|
24
|
+
pointerEvents: "box-none",
|
|
25
|
+
ref: forwardedRef,
|
|
26
|
+
style: styles.appContainer,
|
|
27
|
+
children: innerView
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
AppContainer.displayName = "AppContainer";
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
appContainer: {
|
|
34
|
+
flex: 1
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export { AppContainer, RootTagContext };
|
|
38
|
+
//# sourceMappingURL=AppContainer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","jsx","RootTagContext","createContext","AppContainer","forwardRef","props","forwardedRef","children","WrapperComponent","innerView","pointerEvents","style","styles","appContainer","Provider","value","rootTag","ref","displayName","create","flex"],"sources":["../../../src/AppRegistry/AppContainer.tsx"],"sourcesContent":[null],"mappings":"AAUA,YAAYA,KAAA,MAAW;AACvB,SAASC,UAAA,QAAkB;AAE3B,SAASC,IAAA,QAAY;AAcjB,SAAAC,GAAA;AANG,MAAMC,cAAA,GAAqCJ,KAAA,CAAMK,aAAA,CAAc,IAAI;AAE1E,MAAMC,YAAA,GAAeN,KAAA,CAAMO,UAAA,CAAW,CAACC,KAAA,EAAcC,YAAA,KAAkC;EACrF,MAAM;IAAEC,QAAA;IAAUC;EAAiB,IAAIH,KAAA;EAEvC,IAAII,SAAA,GACF,eAAAT,GAAA,CAACD,IAAA;IAAaW,aAAA,EAAc;IAAWC,KAAA,EAAOC,MAAA,CAAOC,YAAA;IAClDN;EAAA,GADQ,CAEX;EAGF,IAAIC,gBAAA,EAAkB;IACpBC,SAAA,GAAY,eAAAT,GAAA,CAACQ,gBAAA;MAAkBD,QAAA,EAAAE;IAAA,CAAU;EAC3C;EAEA,OACE,eAAAT,GAAA,CAACC,cAAA,CAAea,QAAA,EAAf;IAAwBC,KAAA,EAAOV,KAAA,CAAMW,OAAA;IACpCT,QAAA,iBAAAP,GAAA,CAACD,IAAA;MAAKW,aAAA,EAAc;MAAWO,GAAA,EAAKX,YAAA;MAAcK,KAAA,EAAOC,MAAA,CAAOC,YAAA;MAC7DN,QAAA,EAAAE;IAAA,CACH;EAAA,CACF;AAEJ,CAAC;AAEDN,YAAA,CAAae,WAAA,GAAc;AAE3B,MAAMN,MAAA,GAASd,UAAA,CAAWqB,MAAA,CAAO;EAC/BN,YAAA,EAAc;IACZO,IAAA,EAAM;EACR;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import AppRegistry from "../index.mjs";
|
|
3
|
+
const NoopComponent = () => React.createElement("div");
|
|
4
|
+
describe("AppRegistry", () => {
|
|
5
|
+
describe("runApplication", () => {
|
|
6
|
+
let rootTag;
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
rootTag = document.createElement("div");
|
|
9
|
+
rootTag.id = "react-root";
|
|
10
|
+
document.body.appendChild(rootTag);
|
|
11
|
+
});
|
|
12
|
+
afterEach(() => {
|
|
13
|
+
document.body.removeChild(rootTag);
|
|
14
|
+
});
|
|
15
|
+
test("callback after render", () => {
|
|
16
|
+
const callback = jest.fn();
|
|
17
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
18
|
+
AppRegistry.runApplication("App", {
|
|
19
|
+
initialProps: {},
|
|
20
|
+
rootTag,
|
|
21
|
+
callback
|
|
22
|
+
});
|
|
23
|
+
expect(callback).toHaveBeenCalledTimes(1);
|
|
24
|
+
});
|
|
25
|
+
test("styles roots in different documents", () => {
|
|
26
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
27
|
+
AppRegistry.runApplication("App", {
|
|
28
|
+
initialProps: {},
|
|
29
|
+
rootTag
|
|
30
|
+
});
|
|
31
|
+
const iframe = document.createElement("iframe");
|
|
32
|
+
document.body.appendChild(iframe);
|
|
33
|
+
const iframeRootTag = document.createElement("div");
|
|
34
|
+
iframeRootTag.id = "react-iframe-root";
|
|
35
|
+
iframe.contentWindow.document.body.appendChild(iframeRootTag);
|
|
36
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
37
|
+
AppRegistry.runApplication("App", {
|
|
38
|
+
initialProps: {},
|
|
39
|
+
rootTag: iframeRootTag
|
|
40
|
+
});
|
|
41
|
+
const iframedoc = iframeRootTag.ownerDocument;
|
|
42
|
+
expect(iframedoc).toBe(iframe.contentWindow.document);
|
|
43
|
+
expect(iframedoc).not.toBe(document);
|
|
44
|
+
const cssText = Array.prototype.slice.call(iframedoc.getElementById("react-native-stylesheet").sheet.cssRules).map(cssRule => cssRule.cssText);
|
|
45
|
+
expect(cssText).toMatchInlineSnapshot(`
|
|
46
|
+
[
|
|
47
|
+
"[stylesheet-group=\\"0\\"] {}",
|
|
48
|
+
"body {margin: 0;}",
|
|
49
|
+
"button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
|
|
50
|
+
"html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
|
|
51
|
+
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
|
|
52
|
+
"[stylesheet-group=\\"1\\"] {}",
|
|
53
|
+
".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
|
|
54
|
+
"[stylesheet-group=\\"2\\"] {}",
|
|
55
|
+
".r-display-xoduu5 {display: inline-flex;}",
|
|
56
|
+
".r-flex-13awgt0 {flex: 1;}",
|
|
57
|
+
"[stylesheet-group=\\"2.2\\"] {}",
|
|
58
|
+
".r-bottom-1p0dtai {bottom: 0px;}",
|
|
59
|
+
".r-left-1d2f490 {left: 0px;}",
|
|
60
|
+
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
|
|
61
|
+
".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
|
|
62
|
+
".r-pointerEvents-12vffkv {pointer-events: none !important;}",
|
|
63
|
+
".r-pointerEvents-633pao {pointer-events: none !important;}",
|
|
64
|
+
".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
|
|
65
|
+
".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
|
|
66
|
+
".r-position-u8s1d {position: absolute;}",
|
|
67
|
+
".r-right-zchlnj {right: 0px;}",
|
|
68
|
+
".r-top-ipm5af {top: 0px;}",
|
|
69
|
+
]
|
|
70
|
+
`);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=index-test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","AppRegistry","NoopComponent","createElement","describe","rootTag","beforeEach","document","id","body","appendChild","afterEach","removeChild","test","callback","jest","fn","registerComponent","runApplication","initialProps","expect","toHaveBeenCalledTimes","iframe","iframeRootTag","contentWindow","iframedoc","ownerDocument","toBe","not","cssText","Array","prototype","slice","call","getElementById","sheet","cssRules","map","cssRule","toMatchInlineSnapshot"],"sources":["../../../../src/AppRegistry/__tests__/index-test.tsx"],"sourcesContent":[null],"mappings":"AAOA,OAAOA,KAAA,MAAW;AAElB,OAAOC,WAAA,MAAiB;AAExB,MAAMC,aAAA,GAAgBA,CAAA,KAAMF,KAAA,CAAMG,aAAA,CAAc,KAAK;AAErDC,QAAA,CAAS,eAAe,MAAM;EAC5BA,QAAA,CAAS,kBAAkB,MAAM;IAC/B,IAAIC,OAAA;IAEJC,UAAA,CAAW,MAAM;MACfD,OAAA,GAAUE,QAAA,CAASJ,aAAA,CAAc,KAAK;MACtCE,OAAA,CAAQG,EAAA,GAAK;MACbD,QAAA,CAASE,IAAA,CAAKC,WAAA,CAAYL,OAAO;IACnC,CAAC;IAEDM,SAAA,CAAU,MAAM;MACdJ,QAAA,CAASE,IAAA,CAAKG,WAAA,CAAYP,OAAO;IACnC,CAAC;IAEDQ,IAAA,CAAK,yBAAyB,MAAM;MAClC,MAAMC,QAAA,GAAWC,IAAA,CAAKC,EAAA,CAAG;MACzBf,WAAA,CAAYgB,iBAAA,CAAkB,OAAO,MAAMf,aAAa;MACxDD,WAAA,CAAYiB,cAAA,CAAe,OAAO;QAChCC,YAAA,EAAc,CAAC;QACfd,OAAA;QACAS;MACF,CAAC;MACDM,MAAA,CAAON,QAAQ,EAAEO,qBAAA,CAAsB,CAAC;IAC1C,CAAC;IAEDR,IAAA,CAAK,uCAAuC,MAAM;MAChDZ,WAAA,CAAYgB,iBAAA,CAAkB,OAAO,MAAMf,aAAa;MACxDD,WAAA,CAAYiB,cAAA,CAAe,OAAO;QAAEC,YAAA,EAAc,CAAC;QAAGd;MAAQ,CAAC;MAG/D,MAAMiB,MAAA,GAASf,QAAA,CAASJ,aAAA,CAAc,QAAQ;MAC9CI,QAAA,CAASE,IAAA,CAAKC,WAAA,CAAYY,MAAM;MAEhC,MAAMC,aAAA,GAAgBhB,QAAA,CAASJ,aAAA,CAAc,KAAK;MAClDoB,aAAA,CAAcf,EAAA,GAAK;MACnBc,MAAA,CAAOE,aAAA,CAAcjB,QAAA,CAASE,IAAA,CAAKC,WAAA,CAAYa,aAAa;MAG5DtB,WAAA,CAAYgB,iBAAA,CAAkB,OAAO,MAAMf,aAAa;MACxDD,WAAA,CAAYiB,cAAA,CAAe,OAAO;QAChCC,YAAA,EAAc,CAAC;QACfd,OAAA,EAASkB;MACX,CAAC;MAED,MAAME,SAAA,GAAYF,aAAA,CAAcG,aAAA;MAChCN,MAAA,CAAOK,SAAS,EAAEE,IAAA,CAAKL,MAAA,CAAOE,aAAA,CAAcjB,QAAQ;MACpDa,MAAA,CAAOK,SAAS,EAAEG,GAAA,CAAID,IAAA,CAAKpB,QAAQ;MAEnC,MAAMsB,OAAA,GAAUC,KAAA,CAAMC,SAAA,CAAUC,KAAA,CAC7BC,IAAA,CAAKR,SAAA,CAAUS,cAAA,CAAe,yBAAyB,EAAEC,KAAA,CAAMC,QAAQ,EACvEC,GAAA,CAAKC,OAAA,IAAYA,OAAA,CAAQT,OAAO;MAEnCT,MAAA,CAAOS,OAAO,EAAEU,qBAAA,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAyBrC;IACH,CAAC;EACH,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDOMServer from "react-dom/server";
|
|
3
|
+
import StyleSheet from "../../StyleSheet/index";
|
|
4
|
+
import View from "../../View/index.mjs";
|
|
5
|
+
import AppRegistry from "../index.mjs";
|
|
6
|
+
const NoopComponent = () => React.createElement("div");
|
|
7
|
+
describe("AppRegistry", () => {
|
|
8
|
+
describe("getApplication", () => {
|
|
9
|
+
test("does not throw when missing appParameters", () => {
|
|
10
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
11
|
+
expect(() => AppRegistry.getApplication("App")).not.toThrow();
|
|
12
|
+
});
|
|
13
|
+
test('returns "element" and "getStyleElement"', () => {
|
|
14
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
15
|
+
const {
|
|
16
|
+
element,
|
|
17
|
+
getStyleElement
|
|
18
|
+
} = AppRegistry.getApplication("App", {});
|
|
19
|
+
const styleElement = ReactDOMServer.renderToStaticMarkup(getStyleElement());
|
|
20
|
+
expect(element).toMatchInlineSnapshot(`
|
|
21
|
+
<AppContainer
|
|
22
|
+
rootTag={{}}
|
|
23
|
+
>
|
|
24
|
+
<NoopComponent />
|
|
25
|
+
</AppContainer>
|
|
26
|
+
`);
|
|
27
|
+
expect(styleElement).toMatchInlineSnapshot(`
|
|
28
|
+
"<style id=\\"react-native-stylesheet\\">[stylesheet-group=\\"0\\"]{}
|
|
29
|
+
body{margin:0;}
|
|
30
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
31
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
32
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
33
|
+
[stylesheet-group=\\"1\\"]{}
|
|
34
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
35
|
+
[stylesheet-group=\\"2\\"]{}
|
|
36
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
37
|
+
.r-flex-13awgt0{flex:1;}
|
|
38
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
39
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
40
|
+
.r-left-1d2f490{left:0px;}
|
|
41
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
42
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
43
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
44
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
45
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
46
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
47
|
+
.r-position-u8s1d{position:absolute;}
|
|
48
|
+
.r-right-zchlnj{right:0px;}
|
|
49
|
+
.r-top-ipm5af{top:0px;}</style>"
|
|
50
|
+
`);
|
|
51
|
+
});
|
|
52
|
+
test('"getStyleElement" adds props to <style>', () => {
|
|
53
|
+
const nonce = "2Bz9RM/UHvBbmo3jK/PbYZ==";
|
|
54
|
+
AppRegistry.registerComponent("App", () => NoopComponent);
|
|
55
|
+
const {
|
|
56
|
+
getStyleElement
|
|
57
|
+
} = AppRegistry.getApplication("App", {});
|
|
58
|
+
const styleElement = getStyleElement({
|
|
59
|
+
nonce
|
|
60
|
+
});
|
|
61
|
+
expect(styleElement.props.nonce).toBe(nonce);
|
|
62
|
+
});
|
|
63
|
+
test('"getStyleElement" contains style updates', () => {
|
|
64
|
+
const getApplicationStyles = appName => {
|
|
65
|
+
const {
|
|
66
|
+
getStyleElement
|
|
67
|
+
} = AppRegistry.getApplication(appName, {});
|
|
68
|
+
return getStyleElement().props.dangerouslySetInnerHTML.__html;
|
|
69
|
+
};
|
|
70
|
+
const RootComponent = () => React.createElement(View);
|
|
71
|
+
AppRegistry.registerComponent("App", () => RootComponent);
|
|
72
|
+
const first = getApplicationStyles("App");
|
|
73
|
+
expect(first).toMatchInlineSnapshot(`
|
|
74
|
+
"[stylesheet-group=\\"0\\"]{}
|
|
75
|
+
body{margin:0;}
|
|
76
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
77
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
78
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
79
|
+
[stylesheet-group=\\"1\\"]{}
|
|
80
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
81
|
+
[stylesheet-group=\\"2\\"]{}
|
|
82
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
83
|
+
.r-flex-13awgt0{flex:1;}
|
|
84
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
85
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
86
|
+
.r-left-1d2f490{left:0px;}
|
|
87
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
88
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
89
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
90
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
91
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
92
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
93
|
+
.r-position-u8s1d{position:absolute;}
|
|
94
|
+
.r-right-zchlnj{right:0px;}
|
|
95
|
+
.r-top-ipm5af{top:0px;}"
|
|
96
|
+
`);
|
|
97
|
+
const styles = StyleSheet.create({
|
|
98
|
+
root: {
|
|
99
|
+
borderWidth: 1234,
|
|
100
|
+
backgroundColor: "purple"
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const AlternativeComponent = () => React.createElement(View, {
|
|
104
|
+
style: styles.root
|
|
105
|
+
});
|
|
106
|
+
AppRegistry.registerComponent("AlternativeApp", () => AlternativeComponent);
|
|
107
|
+
const second = getApplicationStyles("AlternativeApp");
|
|
108
|
+
expect(second).toMatchInlineSnapshot(`
|
|
109
|
+
"[stylesheet-group=\\"0\\"]{}
|
|
110
|
+
body{margin:0;}
|
|
111
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
112
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
113
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
114
|
+
[stylesheet-group=\\"1\\"]{}
|
|
115
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
116
|
+
[stylesheet-group=\\"2\\"]{}
|
|
117
|
+
.r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
|
|
118
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
119
|
+
.r-flex-13awgt0{flex:1;}
|
|
120
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
121
|
+
.r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
|
|
122
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
123
|
+
.r-left-1d2f490{left:0px;}
|
|
124
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
125
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
126
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
127
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
128
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
129
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
130
|
+
.r-position-u8s1d{position:absolute;}
|
|
131
|
+
.r-right-zchlnj{right:0px;}
|
|
132
|
+
.r-top-ipm5af{top:0px;}"
|
|
133
|
+
`);
|
|
134
|
+
const third = getApplicationStyles("App");
|
|
135
|
+
expect(third).toEqual(second);
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
//# sourceMappingURL=index-test.node.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ReactDOMServer","StyleSheet","View","AppRegistry","NoopComponent","createElement","describe","test","registerComponent","expect","getApplication","not","toThrow","element","getStyleElement","styleElement","renderToStaticMarkup","toMatchInlineSnapshot","nonce","props","toBe","getApplicationStyles","appName","dangerouslySetInnerHTML","__html","RootComponent","first","styles","create","root","borderWidth","backgroundColor","AlternativeComponent","style","second","third","toEqual"],"sources":["../../../../src/AppRegistry/__tests__/index-test.node.tsx"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { unmountComponentAtNode } from "react-dom";
|
|
2
|
+
import { invariant } from "@hanzogui/react-native-web-internals";
|
|
3
|
+
import { renderApplication, getApplication } from "./renderApplication.mjs";
|
|
4
|
+
const emptyObject = {};
|
|
5
|
+
const runnables = {};
|
|
6
|
+
let componentProviderInstrumentationHook = component => component();
|
|
7
|
+
let wrapperComponentProvider;
|
|
8
|
+
class AppRegistry {
|
|
9
|
+
static getAppKeys() {
|
|
10
|
+
return Object.keys(runnables);
|
|
11
|
+
}
|
|
12
|
+
static getApplication(appKey, appParameters) {
|
|
13
|
+
invariant(runnables[appKey] && runnables[appKey].getApplication, `Application ${appKey} has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.`);
|
|
14
|
+
return runnables[appKey]?.getApplication?.(appParameters);
|
|
15
|
+
}
|
|
16
|
+
static registerComponent(appKey, componentProvider) {
|
|
17
|
+
runnables[appKey] = {
|
|
18
|
+
getApplication: appParameters => getApplication(componentProviderInstrumentationHook(componentProvider), appParameters ? appParameters.initialProps : emptyObject, wrapperComponentProvider && wrapperComponentProvider(appParameters)),
|
|
19
|
+
run: appParameters => renderApplication(componentProviderInstrumentationHook(componentProvider), wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.callback, {
|
|
20
|
+
hydrate: appParameters.hydrate || false,
|
|
21
|
+
initialProps: appParameters.initialProps || emptyObject,
|
|
22
|
+
mode: appParameters.mode || "legacy",
|
|
23
|
+
rootTag: appParameters.rootTag
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
return appKey;
|
|
27
|
+
}
|
|
28
|
+
static registerConfig(config) {
|
|
29
|
+
config.forEach(({
|
|
30
|
+
appKey,
|
|
31
|
+
component,
|
|
32
|
+
run
|
|
33
|
+
}) => {
|
|
34
|
+
if (run) {
|
|
35
|
+
AppRegistry.registerRunnable(appKey, run);
|
|
36
|
+
} else {
|
|
37
|
+
invariant(component, "No component provider passed in");
|
|
38
|
+
AppRegistry.registerComponent(appKey, component);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
// TODO: fix style sheet creation when using this method
|
|
43
|
+
static registerRunnable(appKey, run) {
|
|
44
|
+
runnables[appKey] = {
|
|
45
|
+
run
|
|
46
|
+
};
|
|
47
|
+
return appKey;
|
|
48
|
+
}
|
|
49
|
+
static runApplication(appKey, appParameters) {
|
|
50
|
+
const isDevelopment = process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test";
|
|
51
|
+
if (isDevelopment) {
|
|
52
|
+
const params = {
|
|
53
|
+
...appParameters
|
|
54
|
+
};
|
|
55
|
+
params.rootTag = `#${params.rootTag.id}`;
|
|
56
|
+
console.log(`Running application "${appKey}" with appParams:
|
|
57
|
+
`, params, `
|
|
58
|
+
Development-level warnings: ${isDevelopment ? "ON" : "OFF"}.
|
|
59
|
+
Performance optimizations: ${isDevelopment ? "OFF" : "ON"}.`);
|
|
60
|
+
}
|
|
61
|
+
invariant(runnables[appKey] && runnables[appKey].run, `Application "${appKey}" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.`);
|
|
62
|
+
return runnables[appKey].run(appParameters);
|
|
63
|
+
}
|
|
64
|
+
static setComponentProviderInstrumentationHook(hook) {
|
|
65
|
+
componentProviderInstrumentationHook = hook;
|
|
66
|
+
}
|
|
67
|
+
static setWrapperComponentProvider(provider) {
|
|
68
|
+
wrapperComponentProvider = provider;
|
|
69
|
+
}
|
|
70
|
+
static unmountApplicationComponentAtRootTag(rootTag) {
|
|
71
|
+
unmountComponentAtNode(rootTag);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export { AppRegistry };
|
|
75
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["unmountComponentAtNode","invariant","renderApplication","getApplication","emptyObject","runnables","componentProviderInstrumentationHook","component","wrapperComponentProvider","AppRegistry","getAppKeys","Object","keys","appKey","appParameters","registerComponent","componentProvider","initialProps","run","callback","hydrate","mode","rootTag","registerConfig","config","forEach","registerRunnable","runApplication","isDevelopment","process","env","NODE_ENV","params","id","console","log","setComponentProviderInstrumentationHook","hook","setWrapperComponentProvider","provider","unmountApplicationComponentAtRootTag"],"sources":["../../../src/AppRegistry/index.tsx"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { StyleSheet } from "@hanzogui/react-native-web-internals";
|
|
2
|
+
import { invariant } from "@hanzogui/react-native-web-internals";
|
|
3
|
+
import { renderLegacy, hydrate, hydrateLegacy, render } from "../render/index.mjs";
|
|
4
|
+
import { AppContainer } from "./AppContainer.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function renderApplication(RootComponent, WrapperComponent = null, callback = () => {}, options) {
|
|
7
|
+
const {
|
|
8
|
+
hydrate: shouldHydrate,
|
|
9
|
+
initialProps,
|
|
10
|
+
mode,
|
|
11
|
+
rootTag
|
|
12
|
+
} = options;
|
|
13
|
+
const renderFn = shouldHydrate ? mode === "concurrent" ? hydrate : hydrateLegacy : mode === "concurrent" ? render : renderLegacy;
|
|
14
|
+
invariant(rootTag, "Expect to have a valid rootTag, instead got ", rootTag);
|
|
15
|
+
return renderFn(/* @__PURE__ */jsx(AppContainer, {
|
|
16
|
+
WrapperComponent,
|
|
17
|
+
ref: callback,
|
|
18
|
+
rootTag,
|
|
19
|
+
children: /* @__PURE__ */jsx(RootComponent, {
|
|
20
|
+
...initialProps
|
|
21
|
+
})
|
|
22
|
+
}), rootTag);
|
|
23
|
+
}
|
|
24
|
+
function getApplication(RootComponent, initialProps, WrapperComponent) {
|
|
25
|
+
const element = /* @__PURE__ */jsx(AppContainer, {
|
|
26
|
+
WrapperComponent,
|
|
27
|
+
rootTag: {},
|
|
28
|
+
children: /* @__PURE__ */jsx(RootComponent, {
|
|
29
|
+
...initialProps
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
const getStyleElement = props => {
|
|
33
|
+
const sheet = StyleSheet.getSheet();
|
|
34
|
+
return /* @__PURE__ */jsx("style", {
|
|
35
|
+
...props,
|
|
36
|
+
dangerouslySetInnerHTML: {
|
|
37
|
+
__html: sheet.textContent
|
|
38
|
+
},
|
|
39
|
+
id: sheet.id
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
element,
|
|
44
|
+
getStyleElement
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export { getApplication, renderApplication };
|
|
48
|
+
//# sourceMappingURL=renderApplication.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","invariant","renderLegacy","hydrate","hydrateLegacy","render","AppContainer","jsx","renderApplication","RootComponent","WrapperComponent","callback","options","shouldHydrate","initialProps","mode","rootTag","renderFn","ref","children","getApplication","element","getStyleElement","props","sheet","getSheet","dangerouslySetInnerHTML","__html","textContent","id"],"sources":["../../../src/AppRegistry/renderApplication.tsx"],"sourcesContent":[null],"mappings":"AAYA,SAASA,UAAA,QAAkB;AAC3B,SAASC,SAAA,QAAiB;AAE1B,SAASC,YAAA,EAAcC,OAAA,EAASC,aAAA,EAAeC,MAAA,QAAc;AAC7D,SAASC,YAAA,QAAoB;AA2BvB,SAAAC,GAAA;AAzBC,SAASC,kBACdC,aAAA,EACAC,gBAAA,GAAkD,MAClDC,QAAA,GAAuBA,CAAA,KAAM,CAAC,GAC9BC,OAAA,EAMA;EACA,MAAM;IAAET,OAAA,EAASU,aAAA;IAAeC,YAAA;IAAcC,IAAA;IAAMC;EAAQ,IAAIJ,OAAA;EAChE,MAAMK,QAAA,GAAWJ,aAAA,GACbE,IAAA,KAAS,eACPZ,OAAA,GACAC,aAAA,GACFW,IAAA,KAAS,eACPV,MAAA,GACAH,YAAA;EAEND,SAAA,CAAUe,OAAA,EAAS,gDAAgDA,OAAO;EAG1E,OAAOC,QAAA,CACL,eAAAV,GAAA,CAACD,YAAA;IAAaI,gBAAA;IAAoCQ,GAAA,EAAKP,QAAA;IAAUK,OAAA;IAC/DG,QAAA,iBAAAZ,GAAA,CAACE,aAAA;MAAe,GAAGK;IAAA,CAAc;EAAA,CACnC,GACAE,OACF;AACF;AAEO,SAASI,eACdX,aAAA,EACAK,YAAA,EACAJ,gBAAA,EAIA;EACA,MAAMW,OAAA,GACJ,eAAAd,GAAA,CAACD,YAAA;IAAaI,gBAAA;IAAoCM,OAAA,EAAS,CAAC;IAC1DG,QAAA,iBAAAZ,GAAA,CAACE,aAAA;MAAe,GAAGK;IAAA,CAAc;EAAA,CACnC;EAGF,MAAMQ,eAAA,GAAmBC,KAAA,IAAU;IACjC,MAAMC,KAAA,GAAQxB,UAAA,CAAWyB,QAAA,CAAS;IAClC,OACE,eAAAlB,GAAA,CAAC;MACE,GAAGgB,KAAA;MACJG,uBAAA,EAAyB;QAAEC,MAAA,EAAQH,KAAA,CAAMI;MAAY;MACrDC,EAAA,EAAIL,KAAA,CAAMK;IAAA,CACZ;EAEJ;EACA,OAAO;IAAER,OAAA;IAASC;EAAgB;AACpC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AppState from "../index.mjs";
|
|
2
|
+
describe("apis/AppState", () => {
|
|
3
|
+
const handler = () => {};
|
|
4
|
+
describe("addEventListener", () => {
|
|
5
|
+
test('throws if the provided "eventType" is not supported', () => {
|
|
6
|
+
expect(() => AppState.addEventListener("foo", handler)).toThrow();
|
|
7
|
+
expect(() => AppState.addEventListener("change", handler).remove()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
test("returns remove subscription", () => {
|
|
10
|
+
const subscription = AppState.addEventListener("change", handler);
|
|
11
|
+
expect(() => subscription.remove()).not.toThrow();
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=index-test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AppState","describe","handler","test","expect","addEventListener","toThrow","remove","not","subscription"],"sources":["../../../../src/AppState/__tests__/index-test.tsx"],"sourcesContent":[null],"mappings":"AAOA,OAAOA,QAAA,MAAc;AAErBC,QAAA,CAAS,iBAAiB,MAAM;EAC9B,MAAMC,OAAA,GAAUA,CAAA,KAAM,CAAC;EAEvBD,QAAA,CAAS,oBAAoB,MAAM;IACjCE,IAAA,CAAK,uDAAuD,MAAM;MAChEC,MAAA,CAAO,MAAMJ,QAAA,CAASK,gBAAA,CAAiB,OAAOH,OAAO,CAAC,EAAEI,OAAA,CAAQ;MAChEF,MAAA,CAAO,MAAMJ,QAAA,CAASK,gBAAA,CAAiB,UAAUH,OAAO,EAAEK,MAAA,CAAO,CAAC,EAAEC,GAAA,CAAIF,OAAA,CAAQ;IAClF,CAAC;IAEDH,IAAA,CAAK,+BAA+B,MAAM;MACxC,MAAMM,YAAA,GAAeT,QAAA,CAASK,gBAAA,CAAiB,UAAUH,OAAO;MAChEE,MAAA,CAAO,MAAMK,YAAA,CAAaF,MAAA,CAAO,CAAC,EAAEC,GAAA,CAAIF,OAAA,CAAQ;IAClD,CAAC;EACH,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { canUseDOM, invariant } from "@hanzogui/react-native-web-internals";
|
|
2
|
+
const isPrefixed =
|
|
3
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
4
|
+
canUseDOM && !document.hasOwnProperty("hidden") && document.hasOwnProperty("webkitHidden");
|
|
5
|
+
const EVENT_TYPES = ["change", "memoryWarning"];
|
|
6
|
+
const VISIBILITY_CHANGE_EVENT = isPrefixed ? "webkitvisibilitychange" : "visibilitychange";
|
|
7
|
+
const VISIBILITY_STATE_PROPERTY = isPrefixed ? "webkitVisibilityState" : "visibilityState";
|
|
8
|
+
const AppStates = {
|
|
9
|
+
BACKGROUND: "background",
|
|
10
|
+
ACTIVE: "active"
|
|
11
|
+
};
|
|
12
|
+
class EventEmitter {
|
|
13
|
+
listeners = {};
|
|
14
|
+
addListener(type, handler) {
|
|
15
|
+
this.listeners[type] ??= /* @__PURE__ */new Set();
|
|
16
|
+
this.listeners[type].add(handler);
|
|
17
|
+
}
|
|
18
|
+
emit(type, state) {
|
|
19
|
+
this.listeners[type]?.forEach(cb => cb(state));
|
|
20
|
+
}
|
|
21
|
+
removeListener(type, handler) {
|
|
22
|
+
this.listeners[type]?.delete(handler);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
let hasBoundVisibilityChangeEvent = false;
|
|
26
|
+
const changeEmitter = new EventEmitter();
|
|
27
|
+
class AppState {
|
|
28
|
+
static isAvailable = canUseDOM && document[VISIBILITY_STATE_PROPERTY];
|
|
29
|
+
static get currentState() {
|
|
30
|
+
if (!AppState.isAvailable) {
|
|
31
|
+
return AppStates.ACTIVE;
|
|
32
|
+
}
|
|
33
|
+
switch (document[VISIBILITY_STATE_PROPERTY]) {
|
|
34
|
+
case "hidden":
|
|
35
|
+
case "prerender":
|
|
36
|
+
case "unloaded":
|
|
37
|
+
return AppStates.BACKGROUND;
|
|
38
|
+
default:
|
|
39
|
+
return AppStates.ACTIVE;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static addEventListener(type, handler) {
|
|
43
|
+
if (AppState.isAvailable) {
|
|
44
|
+
invariant(EVENT_TYPES.indexOf(type) !== -1, 'Trying to subscribe to unknown event: "%s"', type);
|
|
45
|
+
if (type === "change") {
|
|
46
|
+
if (!hasBoundVisibilityChangeEvent) {
|
|
47
|
+
hasBoundVisibilityChangeEvent = true;
|
|
48
|
+
document.addEventListener(VISIBILITY_CHANGE_EVENT, () => {
|
|
49
|
+
if (changeEmitter) {
|
|
50
|
+
changeEmitter.emit("change", AppState.currentState);
|
|
51
|
+
}
|
|
52
|
+
}, false);
|
|
53
|
+
}
|
|
54
|
+
return changeEmitter.addListener(type, handler);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export { AppState };
|
|
60
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canUseDOM","invariant","isPrefixed","document","hasOwnProperty","EVENT_TYPES","VISIBILITY_CHANGE_EVENT","VISIBILITY_STATE_PROPERTY","AppStates","BACKGROUND","ACTIVE","EventEmitter","listeners","addListener","type","handler","Set","add","emit","state","forEach","cb","removeListener","delete","hasBoundVisibilityChangeEvent","changeEmitter","AppState","isAvailable","currentState","addEventListener","indexOf"],"sources":["../../../src/AppState/index.tsx"],"sourcesContent":[null],"mappings":"AAUA,SAASA,SAAA,EAAWC,SAAA,QAAiB;AAGrC,MAAMC,UAAA;AAAA;AAEJF,SAAA,IACA,CAACG,QAAA,CAASC,cAAA,CAAe,QAAQ,KACjCD,QAAA,CAASC,cAAA,CAAe,cAAc;AAExC,MAAMC,WAAA,GAAc,CAAC,UAAU,eAAe;AAC9C,MAAMC,uBAAA,GAA0BJ,UAAA,GAAa,2BAA2B;AACxE,MAAMK,yBAAA,GAA4BL,UAAA,GAAa,0BAA0B;AAEzE,MAAMM,SAAA,GAAY;EAChBC,UAAA,EAAY;EACZC,MAAA,EAAQ;AACV;AAEA,MAAMC,YAAA,CAAa;EACjBC,SAAA,GAAY,CAAC;EAEbC,YAAYC,IAAA,EAAcC,OAAA,EAAmB;IAC3C,KAAKH,SAAA,CAAUE,IAAI,MAAM,mBAAIE,GAAA,CAAI;IACjC,KAAKJ,SAAA,CAAUE,IAAI,EAAEG,GAAA,CAAIF,OAAO;EAClC;EAEAG,KAAKJ,IAAA,EAAcK,KAAA,EAAY;IAC7B,KAAKP,SAAA,CAAUE,IAAI,GAAGM,OAAA,CAASC,EAAA,IAAOA,EAAA,CAAGF,KAAK,CAAC;EACjD;EAEAG,eAAeR,IAAA,EAAcC,OAAA,EAAmB;IAC9C,KAAKH,SAAA,CAAUE,IAAI,GAAGS,MAAA,CAAOR,OAAO;EACtC;AACF;AAEA,IAAIS,6BAAA,GAAgC;AAEpC,MAAMC,aAAA,GAAgB,IAAId,YAAA,CAAa;AAEhC,MAAMe,QAAA,CAAS;EACpB,OAAOC,WAAA,GAAc3B,SAAA,IAAaG,QAAA,CAASI,yBAAyB;EAEpE,WAAWqB,aAAA,EAAe;IACxB,IAAI,CAACF,QAAA,CAASC,WAAA,EAAa;MACzB,OAAOnB,SAAA,CAAUE,MAAA;IACnB;IAEA,QAAQP,QAAA,CAASI,yBAAyB;MACxC,KAAK;MACL,KAAK;MACL,KAAK;QACH,OAAOC,SAAA,CAAUC,UAAA;MACnB;QACE,OAAOD,SAAA,CAAUE,MAAA;IACrB;EACF;EAEA,OAAOmB,iBAAiBf,IAAA,EAAcC,OAAA,EAAmB;IACvD,IAAIW,QAAA,CAASC,WAAA,EAAa;MACxB1B,SAAA,CACEI,WAAA,CAAYyB,OAAA,CAAQhB,IAAI,MAAM,IAC9B,8CACAA,IACF;MACA,IAAIA,IAAA,KAAS,UAAU;QACrB,IAAI,CAACU,6BAAA,EAA+B;UAClCA,6BAAA,GAAgC;UAChCrB,QAAA,CAAS0B,gBAAA,CACPvB,uBAAA,EACA,MAAM;YACJ,IAAImB,aAAA,EAAe;cACjBA,aAAA,CAAcP,IAAA,CAAK,UAAUQ,QAAA,CAASE,YAAY;YACpD;UACF,GACA,KACF;QACF;QACA,OAAOH,aAAA,CAAcZ,WAAA,CAAYC,IAAA,EAAMC,OAAO;MAChD;IACF;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { canUseDOM } from "@hanzogui/react-native-web-internals";
|
|
2
|
+
function getQuery() {
|
|
3
|
+
return canUseDOM && window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
4
|
+
}
|
|
5
|
+
const query = getQuery();
|
|
6
|
+
const listenerMapping = /* @__PURE__ */new WeakMap();
|
|
7
|
+
const Appearance = {
|
|
8
|
+
getColorScheme() {
|
|
9
|
+
return query && query.matches ? "dark" : "light";
|
|
10
|
+
},
|
|
11
|
+
addChangeListener(listener) {
|
|
12
|
+
let mappedListener = listenerMapping.get(listener);
|
|
13
|
+
if (!mappedListener) {
|
|
14
|
+
mappedListener = ({
|
|
15
|
+
matches
|
|
16
|
+
}) => {
|
|
17
|
+
listener({
|
|
18
|
+
colorScheme: matches ? "dark" : "light"
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
listenerMapping.set(listener, mappedListener);
|
|
22
|
+
}
|
|
23
|
+
if (query) {
|
|
24
|
+
query.addListener(mappedListener);
|
|
25
|
+
}
|
|
26
|
+
function remove() {
|
|
27
|
+
const mappedListener2 = listenerMapping.get(listener);
|
|
28
|
+
if (query && mappedListener2) {
|
|
29
|
+
query.removeListener(mappedListener2);
|
|
30
|
+
}
|
|
31
|
+
listenerMapping.delete(listener);
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
remove
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export { Appearance };
|
|
39
|
+
//# sourceMappingURL=index.mjs.map
|