@react-navigation/core 7.8.3 → 7.8.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/lib/typescript/src/BaseNavigationContainer.d.ts.map +1 -0
- package/lib/typescript/src/CurrentRenderContext.d.ts.map +1 -0
- package/lib/typescript/src/DeprecatedNavigationInChildContext.d.ts.map +1 -0
- package/lib/typescript/src/EnsureSingleNavigator.d.ts.map +1 -0
- package/lib/typescript/src/Group.d.ts.map +1 -0
- package/lib/typescript/src/NavigationBuilderContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationContainerRefContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationFocusedRouteStateContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationHelpersContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationIndependentTree.d.ts.map +1 -0
- package/lib/typescript/src/NavigationIndependentTreeContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationRouteContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationStateContext.d.ts.map +1 -0
- package/lib/typescript/src/PreventRemoveContext.d.ts.map +1 -0
- package/lib/typescript/src/PreventRemoveProvider.d.ts.map +1 -0
- package/lib/typescript/src/SceneView.d.ts.map +1 -0
- package/lib/typescript/src/Screen.d.ts.map +1 -0
- package/lib/typescript/src/StaticContainer.d.ts.map +1 -0
- package/lib/typescript/src/StaticNavigation.d.ts.map +1 -0
- package/lib/typescript/src/UnhandledActionContext.d.ts.map +1 -0
- package/lib/typescript/src/arrayStartsWith.d.ts.map +1 -0
- package/lib/typescript/src/checkDuplicateRouteNames.d.ts.map +1 -0
- package/lib/typescript/src/checkSerializable.d.ts.map +1 -0
- package/lib/typescript/src/createNavigationContainerRef.d.ts.map +1 -0
- package/lib/typescript/src/createNavigatorFactory.d.ts.map +1 -0
- package/lib/typescript/src/deepFreeze.d.ts.map +1 -0
- package/lib/typescript/src/findFocusedRoute.d.ts.map +1 -0
- package/lib/typescript/src/getActionFromState.d.ts.map +1 -0
- package/lib/typescript/src/getFocusedRouteNameFromRoute.d.ts.map +1 -0
- package/lib/typescript/src/getPathFromState.d.ts.map +1 -0
- package/lib/typescript/src/getPatternParts.d.ts.map +1 -0
- package/lib/typescript/src/getStateFromPath.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/isArrayEqual.d.ts.map +1 -0
- package/lib/typescript/src/isRecordEqual.d.ts.map +1 -0
- package/lib/typescript/src/theming/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/src/theming/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theming/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/useChildListeners.d.ts.map +1 -0
- package/lib/typescript/src/useComponent.d.ts.map +1 -0
- package/lib/typescript/src/useCurrentRender.d.ts.map +1 -0
- package/lib/typescript/src/useDescriptors.d.ts.map +1 -0
- package/lib/typescript/src/useEventEmitter.d.ts.map +1 -0
- package/lib/typescript/src/useFocusEffect.d.ts.map +1 -0
- package/lib/typescript/src/useFocusEvents.d.ts.map +1 -0
- package/lib/typescript/src/useFocusedListenersChildrenAdapter.d.ts.map +1 -0
- package/lib/typescript/src/useIsFocused.d.ts.map +1 -0
- package/lib/typescript/src/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/lib/typescript/src/useIsomorphicLayoutEffect.native.d.ts.map +1 -0
- package/lib/typescript/src/useKeyedChildListeners.d.ts.map +1 -0
- package/lib/typescript/src/useLazyValue.d.ts.map +1 -0
- package/lib/typescript/src/useNavigation.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationBuilder.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationCache.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationContainerRef.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationHelpers.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationIndependentTree.d.ts.map +1 -0
- package/lib/typescript/src/useNavigationState.d.ts.map +1 -0
- package/lib/typescript/src/useOnAction.d.ts.map +1 -0
- package/lib/typescript/src/useOnGetState.d.ts.map +1 -0
- package/lib/typescript/src/useOnPreventRemove.d.ts.map +1 -0
- package/lib/typescript/src/useOnRouteFocus.d.ts.map +1 -0
- package/lib/typescript/src/useOptionsGetters.d.ts.map +1 -0
- package/lib/typescript/src/usePreventRemove.d.ts.map +1 -0
- package/lib/typescript/src/usePreventRemoveContext.d.ts.map +1 -0
- package/lib/typescript/src/useRegisterNavigator.d.ts.map +1 -0
- package/lib/typescript/src/useRoute.d.ts.map +1 -0
- package/lib/typescript/src/useRouteCache.d.ts.map +1 -0
- package/lib/typescript/src/useScheduleUpdate.d.ts.map +1 -0
- package/lib/typescript/src/useStateForPath.d.ts.map +1 -0
- package/lib/typescript/src/useSyncState.d.ts.map +1 -0
- package/lib/typescript/src/validatePathConfig.d.ts.map +1 -0
- package/package.json +11 -24
- package/lib/commonjs/BaseNavigationContainer.js +0 -368
- package/lib/commonjs/BaseNavigationContainer.js.map +0 -1
- package/lib/commonjs/CurrentRenderContext.js +0 -15
- package/lib/commonjs/CurrentRenderContext.js.map +0 -1
- package/lib/commonjs/DeprecatedNavigationInChildContext.js +0 -14
- package/lib/commonjs/DeprecatedNavigationInChildContext.js.map +0 -1
- package/lib/commonjs/EnsureSingleNavigator.js +0 -43
- package/lib/commonjs/EnsureSingleNavigator.js.map +0 -1
- package/lib/commonjs/Group.js +0 -14
- package/lib/commonjs/Group.js.map +0 -1
- package/lib/commonjs/NavigationBuilderContext.js +0 -23
- package/lib/commonjs/NavigationBuilderContext.js.map +0 -1
- package/lib/commonjs/NavigationContainerRefContext.js +0 -14
- package/lib/commonjs/NavigationContainerRefContext.js.map +0 -1
- package/lib/commonjs/NavigationContext.js +0 -14
- package/lib/commonjs/NavigationContext.js.map +0 -1
- package/lib/commonjs/NavigationFocusedRouteStateContext.js +0 -14
- package/lib/commonjs/NavigationFocusedRouteStateContext.js.map +0 -1
- package/lib/commonjs/NavigationHelpersContext.js +0 -15
- package/lib/commonjs/NavigationHelpersContext.js.map +0 -1
- package/lib/commonjs/NavigationIndependentTree.js +0 -35
- package/lib/commonjs/NavigationIndependentTree.js.map +0 -1
- package/lib/commonjs/NavigationIndependentTreeContext.js +0 -14
- package/lib/commonjs/NavigationIndependentTreeContext.js.map +0 -1
- package/lib/commonjs/NavigationRouteContext.js +0 -14
- package/lib/commonjs/NavigationRouteContext.js.map +0 -1
- package/lib/commonjs/NavigationStateContext.js +0 -29
- package/lib/commonjs/NavigationStateContext.js.map +0 -1
- package/lib/commonjs/PreventRemoveContext.js +0 -16
- package/lib/commonjs/PreventRemoveContext.js.map +0 -1
- package/lib/commonjs/PreventRemoveProvider.js +0 -91
- package/lib/commonjs/PreventRemoveProvider.js.map +0 -1
- package/lib/commonjs/SceneView.js +0 -151
- package/lib/commonjs/SceneView.js.map +0 -1
- package/lib/commonjs/Screen.js +0 -14
- package/lib/commonjs/Screen.js.map +0 -1
- package/lib/commonjs/StaticContainer.js +0 -31
- package/lib/commonjs/StaticContainer.js.map +0 -1
- package/lib/commonjs/StaticNavigation.js +0 -258
- package/lib/commonjs/StaticNavigation.js.map +0 -1
- package/lib/commonjs/UnhandledActionContext.js +0 -11
- package/lib/commonjs/UnhandledActionContext.js.map +0 -1
- package/lib/commonjs/arrayStartsWith.js +0 -16
- package/lib/commonjs/arrayStartsWith.js.map +0 -1
- package/lib/commonjs/checkDuplicateRouteNames.js +0 -25
- package/lib/commonjs/checkDuplicateRouteNames.js.map +0 -1
- package/lib/commonjs/checkSerializable.js +0 -50
- package/lib/commonjs/checkSerializable.js.map +0 -1
- package/lib/commonjs/createNavigationContainerRef.js +0 -69
- package/lib/commonjs/createNavigationContainerRef.js.map +0 -1
- package/lib/commonjs/createNavigatorFactory.js +0 -34
- package/lib/commonjs/createNavigatorFactory.js.map +0 -1
- package/lib/commonjs/deepFreeze.js +0 -40
- package/lib/commonjs/deepFreeze.js.map +0 -1
- package/lib/commonjs/findFocusedRoute.js +0 -15
- package/lib/commonjs/findFocusedRoute.js.map +0 -1
- package/lib/commonjs/getActionFromState.js +0 -111
- package/lib/commonjs/getActionFromState.js.map +0 -1
- package/lib/commonjs/getFocusedRouteNameFromRoute.js +0 -22
- package/lib/commonjs/getFocusedRouteNameFromRoute.js.map +0 -1
- package/lib/commonjs/getPathFromState.js +0 -241
- package/lib/commonjs/getPathFromState.js.map +0 -1
- package/lib/commonjs/getPatternParts.js +0 -105
- package/lib/commonjs/getPatternParts.js.map +0 -1
- package/lib/commonjs/getStateFromPath.js +0 -521
- package/lib/commonjs/getStateFromPath.js.map +0 -1
- package/lib/commonjs/index.js +0 -295
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/isArrayEqual.js +0 -20
- package/lib/commonjs/isArrayEqual.js.map +0 -1
- package/lib/commonjs/isRecordEqual.js +0 -21
- package/lib/commonjs/isRecordEqual.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/theming/ThemeContext.js +0 -12
- package/lib/commonjs/theming/ThemeContext.js.map +0 -1
- package/lib/commonjs/theming/ThemeProvider.js +0 -21
- package/lib/commonjs/theming/ThemeProvider.js.map +0 -1
- package/lib/commonjs/theming/useTheme.js +0 -18
- package/lib/commonjs/theming/useTheme.js.map +0 -1
- package/lib/commonjs/types.js +0 -9
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/useChildListeners.js +0 -36
- package/lib/commonjs/useChildListeners.js.map +0 -1
- package/lib/commonjs/useComponent.js +0 -40
- package/lib/commonjs/useComponent.js.map +0 -1
- package/lib/commonjs/useCurrentRender.js +0 -25
- package/lib/commonjs/useCurrentRender.js.map +0 -1
- package/lib/commonjs/useDescriptors.js +0 -192
- package/lib/commonjs/useDescriptors.js.map +0 -1
- package/lib/commonjs/useEventEmitter.js +0 -105
- package/lib/commonjs/useEventEmitter.js.map +0 -1
- package/lib/commonjs/useFocusEffect.js +0 -80
- package/lib/commonjs/useFocusEffect.js.map +0 -1
- package/lib/commonjs/useFocusEvents.js +0 -70
- package/lib/commonjs/useFocusEvents.js.map +0 -1
- package/lib/commonjs/useFocusedListenersChildrenAdapter.js +0 -48
- package/lib/commonjs/useFocusedListenersChildrenAdapter.js.map +0 -1
- package/lib/commonjs/useIsFocused.js +0 -28
- package/lib/commonjs/useIsFocused.js.map +0 -1
- package/lib/commonjs/useIsomorphicLayoutEffect.js +0 -12
- package/lib/commonjs/useIsomorphicLayoutEffect.js.map +0 -1
- package/lib/commonjs/useIsomorphicLayoutEffect.native.js +0 -9
- package/lib/commonjs/useIsomorphicLayoutEffect.native.js.map +0 -1
- package/lib/commonjs/useKeyedChildListeners.js +0 -33
- package/lib/commonjs/useKeyedChildListeners.js.map +0 -1
- package/lib/commonjs/useLazyValue.js +0 -17
- package/lib/commonjs/useLazyValue.js.map +0 -1
- package/lib/commonjs/useNavigation.js +0 -27
- package/lib/commonjs/useNavigation.js.map +0 -1
- package/lib/commonjs/useNavigationBuilder.js +0 -495
- package/lib/commonjs/useNavigationBuilder.js.map +0 -1
- package/lib/commonjs/useNavigationCache.js +0 -162
- package/lib/commonjs/useNavigationCache.js.map +0 -1
- package/lib/commonjs/useNavigationContainerRef.js +0 -18
- package/lib/commonjs/useNavigationContainerRef.js.map +0 -1
- package/lib/commonjs/useNavigationHelpers.js +0 -88
- package/lib/commonjs/useNavigationHelpers.js.map +0 -1
- package/lib/commonjs/useNavigationIndependentTree.js +0 -14
- package/lib/commonjs/useNavigationIndependentTree.js.map +0 -1
- package/lib/commonjs/useNavigationState.js +0 -26
- package/lib/commonjs/useNavigationState.js.map +0 -1
- package/lib/commonjs/useOnAction.js +0 -106
- package/lib/commonjs/useOnAction.js.map +0 -1
- package/lib/commonjs/useOnGetState.js +0 -48
- package/lib/commonjs/useOnGetState.js.map +0 -1
- package/lib/commonjs/useOnPreventRemove.js +0 -72
- package/lib/commonjs/useOnPreventRemove.js.map +0 -1
- package/lib/commonjs/useOnRouteFocus.js +0 -36
- package/lib/commonjs/useOnRouteFocus.js.map +0 -1
- package/lib/commonjs/useOptionsGetters.js +0 -78
- package/lib/commonjs/useOptionsGetters.js.map +0 -1
- package/lib/commonjs/usePreventRemove.js +0 -48
- package/lib/commonjs/usePreventRemove.js.map +0 -1
- package/lib/commonjs/usePreventRemoveContext.js +0 -18
- package/lib/commonjs/usePreventRemoveContext.js.map +0 -1
- package/lib/commonjs/useRegisterNavigator.js +0 -32
- package/lib/commonjs/useRegisterNavigator.js.map +0 -1
- package/lib/commonjs/useRoute.js +0 -23
- package/lib/commonjs/useRoute.js.map +0 -1
- package/lib/commonjs/useRouteCache.js +0 -69
- package/lib/commonjs/useRouteCache.js.map +0 -1
- package/lib/commonjs/useScheduleUpdate.js +0 -30
- package/lib/commonjs/useScheduleUpdate.js.map +0 -1
- package/lib/commonjs/useStateForPath.js +0 -21
- package/lib/commonjs/useStateForPath.js.map +0 -1
- package/lib/commonjs/useSyncState.js +0 -87
- package/lib/commonjs/useSyncState.js.map +0 -1
- package/lib/commonjs/validatePathConfig.js +0 -56
- package/lib/commonjs/validatePathConfig.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/BaseNavigationContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/CurrentRenderContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/DeprecatedNavigationInChildContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/EnsureSingleNavigator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/Group.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationBuilderContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationContainerRefContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationFocusedRouteStateContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationHelpersContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationIndependentTree.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationIndependentTreeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationRouteContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/NavigationStateContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/PreventRemoveContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/PreventRemoveProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/SceneView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/Screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/StaticContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/StaticNavigation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/UnhandledActionContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/arrayStartsWith.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/checkDuplicateRouteNames.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/checkSerializable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/createNavigationContainerRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/createNavigatorFactory.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/deepFreeze.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/findFocusedRoute.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/getActionFromState.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/getFocusedRouteNameFromRoute.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/getPathFromState.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/getPatternParts.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/getStateFromPath.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/isArrayEqual.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/isRecordEqual.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/theming/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/theming/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/theming/useTheme.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useChildListeners.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useCurrentRender.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useDescriptors.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useEventEmitter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useFocusEffect.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useFocusEvents.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useFocusedListenersChildrenAdapter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useIsFocused.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useIsomorphicLayoutEffect.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useKeyedChildListeners.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useLazyValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationBuilder.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationCache.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationContainerRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationHelpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationIndependentTree.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useNavigationState.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useOnAction.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useOnGetState.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useOnPreventRemove.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useOnRouteFocus.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useOptionsGetters.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/usePreventRemove.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/usePreventRemoveContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useRegisterNavigator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useRoute.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useRouteCache.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useScheduleUpdate.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useStateForPath.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/useSyncState.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/validatePathConfig.d.ts.map +0 -1
- package/lib/typescript/module/src/BaseNavigationContainer.d.ts +0 -17
- package/lib/typescript/module/src/BaseNavigationContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/CurrentRenderContext.d.ts +0 -9
- package/lib/typescript/module/src/CurrentRenderContext.d.ts.map +0 -1
- package/lib/typescript/module/src/DeprecatedNavigationInChildContext.d.ts +0 -6
- package/lib/typescript/module/src/DeprecatedNavigationInChildContext.d.ts.map +0 -1
- package/lib/typescript/module/src/EnsureSingleNavigator.d.ts +0 -14
- package/lib/typescript/module/src/EnsureSingleNavigator.d.ts.map +0 -1
- package/lib/typescript/module/src/Group.d.ts +0 -7
- package/lib/typescript/module/src/Group.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationBuilderContext.d.ts +0 -36
- package/lib/typescript/module/src/NavigationBuilderContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationContainerRefContext.d.ts +0 -8
- package/lib/typescript/module/src/NavigationContainerRefContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationContext.d.ts +0 -8
- package/lib/typescript/module/src/NavigationContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationFocusedRouteStateContext.d.ts +0 -17
- package/lib/typescript/module/src/NavigationFocusedRouteStateContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationHelpersContext.d.ts +0 -9
- package/lib/typescript/module/src/NavigationHelpersContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationIndependentTree.d.ts +0 -8
- package/lib/typescript/module/src/NavigationIndependentTree.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationIndependentTreeContext.d.ts +0 -6
- package/lib/typescript/module/src/NavigationIndependentTreeContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationRouteContext.d.ts +0 -7
- package/lib/typescript/module/src/NavigationRouteContext.d.ts.map +0 -1
- package/lib/typescript/module/src/NavigationStateContext.d.ts +0 -13
- package/lib/typescript/module/src/NavigationStateContext.d.ts.map +0 -1
- package/lib/typescript/module/src/PreventRemoveContext.d.ts +0 -13
- package/lib/typescript/module/src/PreventRemoveContext.d.ts.map +0 -1
- package/lib/typescript/module/src/PreventRemoveProvider.d.ts +0 -10
- package/lib/typescript/module/src/PreventRemoveProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/SceneView.d.ts +0 -21
- package/lib/typescript/module/src/SceneView.d.ts.map +0 -1
- package/lib/typescript/module/src/Screen.d.ts +0 -7
- package/lib/typescript/module/src/Screen.d.ts.map +0 -1
- package/lib/typescript/module/src/StaticContainer.d.ts +0 -6
- package/lib/typescript/module/src/StaticContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/StaticNavigation.d.ts +0 -188
- package/lib/typescript/module/src/StaticNavigation.d.ts.map +0 -1
- package/lib/typescript/module/src/UnhandledActionContext.d.ts +0 -4
- package/lib/typescript/module/src/UnhandledActionContext.d.ts.map +0 -1
- package/lib/typescript/module/src/arrayStartsWith.d.ts +0 -5
- package/lib/typescript/module/src/arrayStartsWith.d.ts.map +0 -1
- package/lib/typescript/module/src/checkDuplicateRouteNames.d.ts +0 -3
- package/lib/typescript/module/src/checkDuplicateRouteNames.d.ts.map +0 -1
- package/lib/typescript/module/src/checkSerializable.d.ts +0 -10
- package/lib/typescript/module/src/checkSerializable.d.ts.map +0 -1
- package/lib/typescript/module/src/createNavigationContainerRef.d.ts +0 -4
- package/lib/typescript/module/src/createNavigationContainerRef.d.ts.map +0 -1
- package/lib/typescript/module/src/createNavigatorFactory.d.ts +0 -10
- package/lib/typescript/module/src/createNavigatorFactory.d.ts.map +0 -1
- package/lib/typescript/module/src/deepFreeze.d.ts +0 -3
- package/lib/typescript/module/src/deepFreeze.d.ts.map +0 -1
- package/lib/typescript/module/src/findFocusedRoute.d.ts +0 -10
- package/lib/typescript/module/src/findFocusedRoute.d.ts.map +0 -1
- package/lib/typescript/module/src/getActionFromState.d.ts +0 -17
- package/lib/typescript/module/src/getActionFromState.d.ts.map +0 -1
- package/lib/typescript/module/src/getFocusedRouteNameFromRoute.d.ts +0 -3
- package/lib/typescript/module/src/getFocusedRouteNameFromRoute.d.ts.map +0 -1
- package/lib/typescript/module/src/getPathFromState.d.ts +0 -40
- package/lib/typescript/module/src/getPathFromState.d.ts.map +0 -1
- package/lib/typescript/module/src/getPatternParts.d.ts +0 -11
- package/lib/typescript/module/src/getPatternParts.d.ts.map +0 -1
- package/lib/typescript/module/src/getStateFromPath.d.ts +0 -34
- package/lib/typescript/module/src/getStateFromPath.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -35
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/isArrayEqual.d.ts +0 -6
- package/lib/typescript/module/src/isArrayEqual.d.ts.map +0 -1
- package/lib/typescript/module/src/isRecordEqual.d.ts +0 -5
- package/lib/typescript/module/src/isRecordEqual.d.ts.map +0 -1
- package/lib/typescript/module/src/theming/ThemeContext.d.ts +0 -3
- package/lib/typescript/module/src/theming/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/module/src/theming/ThemeProvider.d.ts +0 -8
- package/lib/typescript/module/src/theming/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/theming/useTheme.d.ts +0 -2
- package/lib/typescript/module/src/theming/useTheme.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts +0 -732
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- package/lib/typescript/module/src/useChildListeners.d.ts +0 -12
- package/lib/typescript/module/src/useChildListeners.d.ts.map +0 -1
- package/lib/typescript/module/src/useComponent.d.ts +0 -7
- package/lib/typescript/module/src/useComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/useCurrentRender.d.ts +0 -14
- package/lib/typescript/module/src/useCurrentRender.d.ts.map +0 -1
- package/lib/typescript/module/src/useDescriptors.d.ts +0 -141
- package/lib/typescript/module/src/useDescriptors.d.ts.map +0 -1
- package/lib/typescript/module/src/useEventEmitter.d.ts +0 -9
- package/lib/typescript/module/src/useEventEmitter.d.ts.map +0 -1
- package/lib/typescript/module/src/useFocusEffect.d.ts +0 -11
- package/lib/typescript/module/src/useFocusEffect.d.ts.map +0 -1
- package/lib/typescript/module/src/useFocusEvents.d.ts +0 -13
- package/lib/typescript/module/src/useFocusEvents.d.ts.map +0 -1
- package/lib/typescript/module/src/useFocusedListenersChildrenAdapter.d.ts +0 -13
- package/lib/typescript/module/src/useFocusedListenersChildrenAdapter.d.ts.map +0 -1
- package/lib/typescript/module/src/useIsFocused.d.ts +0 -6
- package/lib/typescript/module/src/useIsFocused.d.ts.map +0 -1
- package/lib/typescript/module/src/useIsomorphicLayoutEffect.d.ts +0 -6
- package/lib/typescript/module/src/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/lib/typescript/module/src/useIsomorphicLayoutEffect.native.d.ts +0 -3
- package/lib/typescript/module/src/useIsomorphicLayoutEffect.native.d.ts.map +0 -1
- package/lib/typescript/module/src/useKeyedChildListeners.d.ts +0 -12
- package/lib/typescript/module/src/useKeyedChildListeners.d.ts.map +0 -1
- package/lib/typescript/module/src/useLazyValue.d.ts +0 -2
- package/lib/typescript/module/src/useLazyValue.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigation.d.ts +0 -11
- package/lib/typescript/module/src/useNavigation.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationBuilder.d.ts +0 -193
- package/lib/typescript/module/src/useNavigationBuilder.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationCache.d.ts +0 -69
- package/lib/typescript/module/src/useNavigationCache.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationContainerRef.d.ts +0 -3
- package/lib/typescript/module/src/useNavigationContainerRef.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationHelpers.d.ts +0 -102
- package/lib/typescript/module/src/useNavigationHelpers.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationIndependentTree.d.ts +0 -2
- package/lib/typescript/module/src/useNavigationIndependentTree.d.ts.map +0 -1
- package/lib/typescript/module/src/useNavigationState.d.ts +0 -10
- package/lib/typescript/module/src/useNavigationState.d.ts.map +0 -1
- package/lib/typescript/module/src/useOnAction.d.ts +0 -26
- package/lib/typescript/module/src/useOnAction.d.ts.map +0 -1
- package/lib/typescript/module/src/useOnGetState.d.ts +0 -9
- package/lib/typescript/module/src/useOnGetState.d.ts.map +0 -1
- package/lib/typescript/module/src/useOnPreventRemove.d.ts +0 -17
- package/lib/typescript/module/src/useOnPreventRemove.d.ts.map +0 -1
- package/lib/typescript/module/src/useOnRouteFocus.d.ts +0 -15
- package/lib/typescript/module/src/useOnRouteFocus.d.ts.map +0 -1
- package/lib/typescript/module/src/useOptionsGetters.d.ts +0 -13
- package/lib/typescript/module/src/useOptionsGetters.d.ts.map +0 -1
- package/lib/typescript/module/src/usePreventRemove.d.ts +0 -13
- package/lib/typescript/module/src/usePreventRemove.d.ts.map +0 -1
- package/lib/typescript/module/src/usePreventRemoveContext.d.ts +0 -5
- package/lib/typescript/module/src/usePreventRemoveContext.d.ts.map +0 -1
- package/lib/typescript/module/src/useRegisterNavigator.d.ts +0 -6
- package/lib/typescript/module/src/useRegisterNavigator.d.ts.map +0 -1
- package/lib/typescript/module/src/useRoute.d.ts +0 -9
- package/lib/typescript/module/src/useRoute.d.ts.map +0 -1
- package/lib/typescript/module/src/useRouteCache.d.ts +0 -14
- package/lib/typescript/module/src/useRouteCache.d.ts.map +0 -1
- package/lib/typescript/module/src/useScheduleUpdate.d.ts +0 -9
- package/lib/typescript/module/src/useScheduleUpdate.d.ts.map +0 -1
- package/lib/typescript/module/src/useStateForPath.d.ts +0 -8
- package/lib/typescript/module/src/useStateForPath.d.ts.map +0 -1
- package/lib/typescript/module/src/useSyncState.d.ts +0 -8
- package/lib/typescript/module/src/useSyncState.d.ts.map +0 -1
- package/lib/typescript/module/src/validatePathConfig.d.ts +0 -2
- package/lib/typescript/module/src/validatePathConfig.d.ts.map +0 -1
- /package/lib/typescript/{module/package.json → package.json} +0 -0
- /package/lib/typescript/{commonjs/src → src}/BaseNavigationContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/CurrentRenderContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/DeprecatedNavigationInChildContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/EnsureSingleNavigator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/Group.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationBuilderContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationContainerRefContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationFocusedRouteStateContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationHelpersContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationIndependentTree.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationIndependentTreeContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationRouteContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/NavigationStateContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/PreventRemoveContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/PreventRemoveProvider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/SceneView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/Screen.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/StaticContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/StaticNavigation.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/UnhandledActionContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/arrayStartsWith.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/checkDuplicateRouteNames.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/checkSerializable.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/createNavigationContainerRef.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/createNavigatorFactory.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/deepFreeze.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/findFocusedRoute.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/getActionFromState.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/getFocusedRouteNameFromRoute.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/getPathFromState.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/getPatternParts.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/getStateFromPath.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/isArrayEqual.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/isRecordEqual.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/theming/ThemeContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/theming/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/theming/useTheme.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useChildListeners.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useComponent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useCurrentRender.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useDescriptors.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useEventEmitter.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useFocusEffect.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useFocusEvents.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useFocusedListenersChildrenAdapter.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useIsFocused.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useIsomorphicLayoutEffect.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useIsomorphicLayoutEffect.native.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useKeyedChildListeners.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useLazyValue.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigation.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationBuilder.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationCache.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationContainerRef.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationHelpers.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationIndependentTree.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useNavigationState.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useOnAction.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useOnGetState.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useOnPreventRemove.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useOnRouteFocus.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useOptionsGetters.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/usePreventRemove.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/usePreventRemoveContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useRegisterNavigator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useRoute.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useRouteCache.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useScheduleUpdate.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useStateForPath.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/useSyncState.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/validatePathConfig.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NavigationHelpersContext","exports","createContext","undefined"],"sourceRoot":"../../src","sources":["NavigationHelpersContext.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAI/B;AACA;AACA;AACA;AACO,MAAMW,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAEzDC,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NavigationIndependentTree = NavigationIndependentTree;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _NavigationContext = require("./NavigationContext.js");
|
|
9
|
-
var _NavigationIndependentTreeContext = require("./NavigationIndependentTreeContext.js");
|
|
10
|
-
var _NavigationRouteContext = require("./NavigationRouteContext.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
/**
|
|
15
|
-
* Component to make the child navigation container independent of parent containers.
|
|
16
|
-
*/
|
|
17
|
-
function NavigationIndependentTree({
|
|
18
|
-
children
|
|
19
|
-
}) {
|
|
20
|
-
return (
|
|
21
|
-
/*#__PURE__*/
|
|
22
|
-
// We need to clear any existing contexts for nested independent container to work correctly
|
|
23
|
-
(0, _jsxRuntime.jsx)(_NavigationRouteContext.NavigationRouteContext.Provider, {
|
|
24
|
-
value: undefined,
|
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationContext.NavigationContext.Provider, {
|
|
26
|
-
value: undefined,
|
|
27
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationIndependentTreeContext.NavigationIndependentTreeContext.Provider, {
|
|
28
|
-
value: true,
|
|
29
|
-
children: children
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=NavigationIndependentTree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_NavigationContext","_NavigationIndependentTreeContext","_NavigationRouteContext","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NavigationIndependentTree","children","jsx","NavigationRouteContext","Provider","value","undefined","NavigationContext","NavigationIndependentTreeContext"],"sourceRoot":"../../src","sources":["NavigationIndependentTree.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD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AGF,CAAC,EAAE;EACD;IAAA;IACE;IACA,IAAAtB,WAAA,CAAAuB,GAAA,EAACxB,uBAAA,CAAAyB,sBAAsB,CAACC,QAAQ;MAACC,KAAK,EAAEC,SAAU;MAAAL,QAAA,eAChD,IAAAtB,WAAA,CAAAuB,GAAA,EAAC1B,kBAAA,CAAA+B,iBAAiB,CAACH,QAAQ;QAACC,KAAK,EAAEC,SAAU;QAAAL,QAAA,eAC3C,IAAAtB,WAAA,CAAAuB,GAAA,EAACzB,iCAAA,CAAA+B,gCAAgC,CAACJ,QAAQ;UAACC,KAAK;UAAAJ,QAAA,EAC7CA;QAAQ,CACgC;MAAC,CAClB;IAAC,CACE;EAAC;AAEtC","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NavigationIndependentTreeContext = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
/**
|
|
11
|
-
* Context which marks the navigation tree as independent.
|
|
12
|
-
*/
|
|
13
|
-
const NavigationIndependentTreeContext = exports.NavigationIndependentTreeContext = /*#__PURE__*/React.createContext(false);
|
|
14
|
-
//# sourceMappingURL=NavigationIndependentTreeContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NavigationIndependentTreeContext","exports","createContext"],"sourceRoot":"../../src","sources":["NavigationIndependentTreeContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAE/B;AACA;AACA;AACO,MAAMW,gCAAgC,GAAAC,OAAA,CAAAD,gCAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAAC,KAAK,CAAC","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NavigationRouteContext = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
/**
|
|
11
|
-
* Context which holds the route prop for a screen.
|
|
12
|
-
*/
|
|
13
|
-
const NavigationRouteContext = exports.NavigationRouteContext = /*#__PURE__*/React.createContext(undefined);
|
|
14
|
-
//# sourceMappingURL=NavigationRouteContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NavigationRouteContext","exports","createContext","undefined"],"sourceRoot":"../../src","sources":["NavigationRouteContext.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAE/B;AACA;AACA;AACO,MAAMW,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAEvDC,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NavigationStateContext = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
const MISSING_CONTEXT_ERROR = "Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.";
|
|
11
|
-
const NavigationStateContext = exports.NavigationStateContext = /*#__PURE__*/React.createContext({
|
|
12
|
-
isDefault: true,
|
|
13
|
-
get getKey() {
|
|
14
|
-
throw new Error(MISSING_CONTEXT_ERROR);
|
|
15
|
-
},
|
|
16
|
-
get setKey() {
|
|
17
|
-
throw new Error(MISSING_CONTEXT_ERROR);
|
|
18
|
-
},
|
|
19
|
-
get getState() {
|
|
20
|
-
throw new Error(MISSING_CONTEXT_ERROR);
|
|
21
|
-
},
|
|
22
|
-
get setState() {
|
|
23
|
-
throw new Error(MISSING_CONTEXT_ERROR);
|
|
24
|
-
},
|
|
25
|
-
get getIsInitial() {
|
|
26
|
-
throw new Error(MISSING_CONTEXT_ERROR);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=NavigationStateContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MISSING_CONTEXT_ERROR","NavigationStateContext","exports","createContext","isDefault","getKey","Error","setKey","getState","setState","getIsInitial"],"sourceRoot":"../../src","sources":["NavigationStateContext.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAE/B,MAAMW,qBAAqB,GACzB,wKAAwK;AAEnK,MAAMC,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,gBAAGxB,KAAK,CAAC0B,aAAa,CActD;EACDC,SAAS,EAAE,IAAI;EAEf,IAAIC,MAAMA,CAAA,EAAQ;IAChB,MAAM,IAAIC,KAAK,CAACN,qBAAqB,CAAC;EACxC,CAAC;EACD,IAAIO,MAAMA,CAAA,EAAQ;IAChB,MAAM,IAAID,KAAK,CAACN,qBAAqB,CAAC;EACxC,CAAC;EACD,IAAIQ,QAAQA,CAAA,EAAQ;IAClB,MAAM,IAAIF,KAAK,CAACN,qBAAqB,CAAC;EACxC,CAAC;EACD,IAAIS,QAAQA,CAAA,EAAQ;IAClB,MAAM,IAAIH,KAAK,CAACN,qBAAqB,CAAC;EACxC,CAAC;EACD,IAAIU,YAAYA,CAAA,EAAQ;IACtB,MAAM,IAAIJ,KAAK,CAACN,qBAAqB,CAAC;EACxC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PreventRemoveContext = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
/**
|
|
11
|
-
* A type of an object that have a route key as an object key
|
|
12
|
-
* and a value whether to prevent that route.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
const PreventRemoveContext = exports.PreventRemoveContext = /*#__PURE__*/React.createContext(undefined);
|
|
16
|
-
//# sourceMappingURL=PreventRemoveContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","PreventRemoveContext","exports","createContext","undefined"],"sourceRoot":"../../src","sources":["PreventRemoveContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAE/B;AACA;AACA;AACA;;AAGO,MAAMW,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAUrDC,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PreventRemoveProvider = PreventRemoveProvider;
|
|
7
|
-
var _nonSecure = require("nanoid/non-secure");
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _useLatestCallback = _interopRequireDefault(require("use-latest-callback"));
|
|
10
|
-
var _NavigationHelpersContext = require("./NavigationHelpersContext.js");
|
|
11
|
-
var _NavigationRouteContext = require("./NavigationRouteContext.js");
|
|
12
|
-
var _PreventRemoveContext = require("./PreventRemoveContext.js");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
/**
|
|
18
|
-
* Util function to transform map of prevented routes to a simpler object.
|
|
19
|
-
*/
|
|
20
|
-
const transformPreventedRoutes = preventedRoutesMap => {
|
|
21
|
-
const preventedRoutesToTransform = [...preventedRoutesMap.values()];
|
|
22
|
-
const preventedRoutes = preventedRoutesToTransform.reduce((acc, {
|
|
23
|
-
routeKey,
|
|
24
|
-
preventRemove
|
|
25
|
-
}) => {
|
|
26
|
-
acc[routeKey] = {
|
|
27
|
-
preventRemove: acc[routeKey]?.preventRemove || preventRemove
|
|
28
|
-
};
|
|
29
|
-
return acc;
|
|
30
|
-
}, {});
|
|
31
|
-
return preventedRoutes;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Component used for managing which routes have to be prevented from removal in native-stack.
|
|
36
|
-
*/
|
|
37
|
-
function PreventRemoveProvider({
|
|
38
|
-
children
|
|
39
|
-
}) {
|
|
40
|
-
const [parentId] = React.useState(() => (0, _nonSecure.nanoid)());
|
|
41
|
-
const [preventedRoutesMap, setPreventedRoutesMap] = React.useState(() => new Map());
|
|
42
|
-
const navigation = React.useContext(_NavigationHelpersContext.NavigationHelpersContext);
|
|
43
|
-
const route = React.useContext(_NavigationRouteContext.NavigationRouteContext);
|
|
44
|
-
const preventRemoveContextValue = React.useContext(_PreventRemoveContext.PreventRemoveContext);
|
|
45
|
-
// take `setPreventRemove` from parent context - if exist it means we're in a nested context
|
|
46
|
-
const setParentPrevented = preventRemoveContextValue?.setPreventRemove;
|
|
47
|
-
const setPreventRemove = (0, _useLatestCallback.default)((id, routeKey, preventRemove) => {
|
|
48
|
-
if (preventRemove && (navigation == null || navigation?.getState().routes.every(route => route.key !== routeKey))) {
|
|
49
|
-
throw new Error(`Couldn't find a route with the key ${routeKey}. Is your component inside NavigationContent?`);
|
|
50
|
-
}
|
|
51
|
-
setPreventedRoutesMap(prevPrevented => {
|
|
52
|
-
// values haven't changed - do nothing
|
|
53
|
-
if (routeKey === prevPrevented.get(id)?.routeKey && preventRemove === prevPrevented.get(id)?.preventRemove) {
|
|
54
|
-
return prevPrevented;
|
|
55
|
-
}
|
|
56
|
-
const nextPrevented = new Map(prevPrevented);
|
|
57
|
-
if (preventRemove) {
|
|
58
|
-
nextPrevented.set(id, {
|
|
59
|
-
routeKey,
|
|
60
|
-
preventRemove
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
nextPrevented.delete(id);
|
|
64
|
-
}
|
|
65
|
-
return nextPrevented;
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
const isPrevented = [...preventedRoutesMap.values()].some(({
|
|
69
|
-
preventRemove
|
|
70
|
-
}) => preventRemove);
|
|
71
|
-
React.useEffect(() => {
|
|
72
|
-
if (route?.key !== undefined && setParentPrevented !== undefined) {
|
|
73
|
-
// when route is defined (and setParentPrevented) it means we're in a nested stack
|
|
74
|
-
// route.key then will be the route key of parent
|
|
75
|
-
setParentPrevented(parentId, route.key, isPrevented);
|
|
76
|
-
return () => {
|
|
77
|
-
setParentPrevented(parentId, route.key, false);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return;
|
|
81
|
-
}, [parentId, isPrevented, route?.key, setParentPrevented]);
|
|
82
|
-
const value = React.useMemo(() => ({
|
|
83
|
-
setPreventRemove,
|
|
84
|
-
preventedRoutes: transformPreventedRoutes(preventedRoutesMap)
|
|
85
|
-
}), [setPreventRemove, preventedRoutesMap]);
|
|
86
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreventRemoveContext.PreventRemoveContext.Provider, {
|
|
87
|
-
value: value,
|
|
88
|
-
children: children
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=PreventRemoveProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_nonSecure","require","React","_interopRequireWildcard","_useLatestCallback","_interopRequireDefault","_NavigationHelpersContext","_NavigationRouteContext","_PreventRemoveContext","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","transformPreventedRoutes","preventedRoutesMap","preventedRoutesToTransform","values","preventedRoutes","reduce","acc","routeKey","preventRemove","PreventRemoveProvider","children","parentId","useState","nanoid","setPreventedRoutesMap","Map","navigation","useContext","NavigationHelpersContext","route","NavigationRouteContext","preventRemoveContextValue","PreventRemoveContext","setParentPrevented","setPreventRemove","useLatestCallback","id","getState","routes","every","key","Error","prevPrevented","nextPrevented","delete","isPrevented","some","useEffect","undefined","value","useMemo","jsx","Provider"],"sourceRoot":"../../src","sources":["PreventRemoveProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,yBAAA,GAAAL,OAA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AAG,EAAEP,kBAAkB,CAAC,CAAC;EAE3D,MAAMgB,KAAK,GAAGnE,KAAK,CAACoE,OAAO,CACzB,OAAO;IACLhB,gBAAgB;IAChBpB,eAAe,EAAEJ,wBAAwB,CAACC,kBAAkB;EAC9D,CAAC,CAAC,EACF,CAACuB,gBAAgB,EAAEvB,kBAAkB,CACvC,CAAC;EAED,oBACE,IAAAtB,WAAA,CAAA8D,GAAA,EAAC/D,qBAAA,CAAA4C,oBAAoB,CAACoB,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAA7B,QAAA,EACzCA;EAAQ,CACoB,CAAC;AAEpC","ignoreList":[]}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SceneView = SceneView;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _EnsureSingleNavigator = require("./EnsureSingleNavigator.js");
|
|
9
|
-
var _NavigationFocusedRouteStateContext = require("./NavigationFocusedRouteStateContext.js");
|
|
10
|
-
var _NavigationStateContext = require("./NavigationStateContext.js");
|
|
11
|
-
var _StaticContainer = require("./StaticContainer.js");
|
|
12
|
-
var _useOptionsGetters = require("./useOptionsGetters.js");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
/**
|
|
17
|
-
* Component which takes care of rendering the screen for a route.
|
|
18
|
-
* It provides all required contexts and applies optimizations when applicable.
|
|
19
|
-
*/
|
|
20
|
-
function SceneView({
|
|
21
|
-
screen,
|
|
22
|
-
route,
|
|
23
|
-
navigation,
|
|
24
|
-
routeState,
|
|
25
|
-
getState,
|
|
26
|
-
setState,
|
|
27
|
-
options,
|
|
28
|
-
clearOptions
|
|
29
|
-
}) {
|
|
30
|
-
const navigatorKeyRef = React.useRef();
|
|
31
|
-
const getKey = React.useCallback(() => navigatorKeyRef.current, []);
|
|
32
|
-
const {
|
|
33
|
-
addOptionsGetter
|
|
34
|
-
} = (0, _useOptionsGetters.useOptionsGetters)({
|
|
35
|
-
key: route.key,
|
|
36
|
-
options,
|
|
37
|
-
navigation
|
|
38
|
-
});
|
|
39
|
-
const setKey = React.useCallback(key => {
|
|
40
|
-
navigatorKeyRef.current = key;
|
|
41
|
-
}, []);
|
|
42
|
-
const getCurrentState = React.useCallback(() => {
|
|
43
|
-
const state = getState();
|
|
44
|
-
const currentRoute = state.routes.find(r => r.key === route.key);
|
|
45
|
-
return currentRoute ? currentRoute.state : undefined;
|
|
46
|
-
}, [getState, route.key]);
|
|
47
|
-
const setCurrentState = React.useCallback(child => {
|
|
48
|
-
const state = getState();
|
|
49
|
-
setState({
|
|
50
|
-
...state,
|
|
51
|
-
routes: state.routes.map(r => {
|
|
52
|
-
if (r.key !== route.key) {
|
|
53
|
-
return r;
|
|
54
|
-
}
|
|
55
|
-
const nextRoute = {
|
|
56
|
-
...r,
|
|
57
|
-
state: child
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// Before updating the state, cleanup any nested screen and state
|
|
61
|
-
// This will avoid the navigator trying to handle them again
|
|
62
|
-
if (nextRoute.params && ('state' in nextRoute.params && typeof nextRoute.params.state === 'object' && nextRoute.params.state !== null || 'screen' in nextRoute.params && typeof nextRoute.params.screen === 'string')) {
|
|
63
|
-
// @ts-expect-error: we don't have correct type for params
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
|
-
const {
|
|
66
|
-
state,
|
|
67
|
-
screen,
|
|
68
|
-
params,
|
|
69
|
-
initial,
|
|
70
|
-
...rest
|
|
71
|
-
} = nextRoute.params;
|
|
72
|
-
if (Object.keys(rest).length) {
|
|
73
|
-
nextRoute.params = rest;
|
|
74
|
-
} else {
|
|
75
|
-
delete nextRoute.params;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return nextRoute;
|
|
79
|
-
})
|
|
80
|
-
});
|
|
81
|
-
}, [getState, route.key, setState]);
|
|
82
|
-
const isInitialRef = React.useRef(true);
|
|
83
|
-
React.useEffect(() => {
|
|
84
|
-
isInitialRef.current = false;
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
// Clear options set by this screen when it is unmounted
|
|
88
|
-
React.useEffect(() => {
|
|
89
|
-
return clearOptions;
|
|
90
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
91
|
-
}, []);
|
|
92
|
-
const getIsInitial = React.useCallback(() => isInitialRef.current, []);
|
|
93
|
-
const parentFocusedRouteState = React.useContext(_NavigationFocusedRouteStateContext.NavigationFocusedRouteStateContext);
|
|
94
|
-
const focusedRouteState = React.useMemo(() => {
|
|
95
|
-
const state = {
|
|
96
|
-
routes: [{
|
|
97
|
-
key: route.key,
|
|
98
|
-
name: route.name,
|
|
99
|
-
params: route.params,
|
|
100
|
-
path: route.path
|
|
101
|
-
}]
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// Add our state to the innermost route of the parent state
|
|
105
|
-
const addState = parent => {
|
|
106
|
-
const parentRoute = parent?.routes[0];
|
|
107
|
-
if (parentRoute) {
|
|
108
|
-
return {
|
|
109
|
-
routes: [{
|
|
110
|
-
...parentRoute,
|
|
111
|
-
state: addState(parentRoute.state)
|
|
112
|
-
}]
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
return state;
|
|
116
|
-
};
|
|
117
|
-
return addState(parentFocusedRouteState);
|
|
118
|
-
}, [parentFocusedRouteState, route.key, route.name, route.params, route.path]);
|
|
119
|
-
const context = React.useMemo(() => ({
|
|
120
|
-
state: routeState,
|
|
121
|
-
getState: getCurrentState,
|
|
122
|
-
setState: setCurrentState,
|
|
123
|
-
getKey,
|
|
124
|
-
setKey,
|
|
125
|
-
getIsInitial,
|
|
126
|
-
addOptionsGetter
|
|
127
|
-
}), [routeState, getCurrentState, setCurrentState, getKey, setKey, getIsInitial, addOptionsGetter]);
|
|
128
|
-
const ScreenComponent = screen.getComponent ? screen.getComponent() : screen.component;
|
|
129
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationStateContext.NavigationStateContext.Provider, {
|
|
130
|
-
value: context,
|
|
131
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationFocusedRouteStateContext.NavigationFocusedRouteStateContext.Provider, {
|
|
132
|
-
value: focusedRouteState,
|
|
133
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EnsureSingleNavigator.EnsureSingleNavigator, {
|
|
134
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StaticContainer.StaticContainer, {
|
|
135
|
-
name: screen.name,
|
|
136
|
-
render: ScreenComponent || screen.children,
|
|
137
|
-
navigation: navigation,
|
|
138
|
-
route: route,
|
|
139
|
-
children: ScreenComponent !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ScreenComponent, {
|
|
140
|
-
navigation: navigation,
|
|
141
|
-
route: route
|
|
142
|
-
}) : screen.children !== undefined ? screen.children({
|
|
143
|
-
navigation,
|
|
144
|
-
route
|
|
145
|
-
}) : null
|
|
146
|
-
})
|
|
147
|
-
})
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
//# sourceMappingURL=SceneView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_EnsureSingleNavigator","_NavigationFocusedRouteStateContext","_NavigationStateContext","_StaticContainer","_useOptionsGetters","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SceneView","screen","route","navigation","routeState","getState","setState","options","clearOptions","navigatorKeyRef","useRef","getKey","useCallback","current","addOptionsGetter","useOptionsGetters","key","setKey","getCurrentState","state","currentRoute","routes","find","undefined","setCurrentState","child","map","nextRoute","params","initial","rest","keys","length","isInitialRef","useEffect","getIsInitial","parentFocusedRouteState","useContext","NavigationFocusedRouteStateContext","focusedRouteState","useMemo","name","path","addState","parent","parentRoute","context","ScreenComponent","getComponent","component","jsx","NavigationStateContext","Provider","value","children","EnsureSingleNavigator","StaticContainer","render"],"sourceRoot":"../../src","sources":["SceneView.tsx"],"mappings":";;;;;;AAMA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,mCAAA,GAAAF,OAAA;AAIA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AAAwD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,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AAU,EAAEA,UAAW;UACvBD,KAAK,EAAEA,KAAM;UAAAoD,QAAA,EAEZP,eAAe,KAAKxB,SAAS,gBAC5B,IAAA5C,WAAA,CAAAuE,GAAA,EAACH,eAAe;YAAC5C,UAAU,EAAEA,UAAW;YAACD,KAAK,EAAEA;UAAM,CAAE,CAAC,GACvDD,MAAM,CAACqD,QAAQ,KAAK/B,SAAS,GAC/BtB,MAAM,CAACqD,QAAQ,CAAC;YAAEnD,UAAU;YAAED;UAAM,CAAC,CAAC,GACpC;QAAI,CACO;MAAC,CACG;IAAC,CACmB;EAAC,CACf,CAAC;AAEtC","ignoreList":[]}
|
package/lib/commonjs/Screen.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Screen = Screen;
|
|
7
|
-
/**
|
|
8
|
-
* Empty component used for specifying route configuration.
|
|
9
|
-
*/
|
|
10
|
-
function Screen(_) {
|
|
11
|
-
/* istanbul ignore next */
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=Screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Screen","_"],"sourceRoot":"../../src","sources":["Screen.tsx"],"mappings":";;;;;;AAIA;AACA;AACA;AACO,SAASA,MAAMA,CAQpBC,CAOC,EACD;EACA;EACA,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StaticContainer = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
/**
|
|
11
|
-
* Component which prevents updates for children if no props changed
|
|
12
|
-
*/
|
|
13
|
-
const StaticContainer = exports.StaticContainer = /*#__PURE__*/React.memo(function StaticContainer(props) {
|
|
14
|
-
return props.children;
|
|
15
|
-
}, (prevProps, nextProps) => {
|
|
16
|
-
const prevPropKeys = Object.keys(prevProps);
|
|
17
|
-
const nextPropKeys = Object.keys(nextProps);
|
|
18
|
-
if (prevPropKeys.length !== nextPropKeys.length) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
for (const key of prevPropKeys) {
|
|
22
|
-
if (key === 'children') {
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
if (prevProps[key] !== nextProps[key]) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return true;
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=StaticContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StaticContainer","exports","memo","props","children","prevProps","nextProps","prevPropKeys","keys","nextPropKeys","length","key"],"sourceRoot":"../../src","sources":["StaticContainer.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAA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