@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,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useKeyedChildListeners = useKeyedChildListeners;
|
|
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
|
-
* Hook which lets child navigators add getters to be called for obtaining rehydrated state.
|
|
12
|
-
*/
|
|
13
|
-
function useKeyedChildListeners() {
|
|
14
|
-
const {
|
|
15
|
-
current: keyedListeners
|
|
16
|
-
} = React.useRef(Object.assign(Object.create(null), {
|
|
17
|
-
getState: {},
|
|
18
|
-
beforeRemove: {}
|
|
19
|
-
}));
|
|
20
|
-
const addKeyedListener = React.useCallback((type, key, listener) => {
|
|
21
|
-
// @ts-expect-error: according to ref stated above you can use `key` to index type
|
|
22
|
-
keyedListeners[type][key] = listener;
|
|
23
|
-
return () => {
|
|
24
|
-
// @ts-expect-error: according to ref stated above you can use `key` to index type
|
|
25
|
-
keyedListeners[type][key] = undefined;
|
|
26
|
-
};
|
|
27
|
-
}, [keyedListeners]);
|
|
28
|
-
return {
|
|
29
|
-
keyedListeners,
|
|
30
|
-
addKeyedListener
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=useKeyedChildListeners.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","useKeyedChildListeners","current","keyedListeners","useRef","assign","create","getState","beforeRemove","addKeyedListener","useCallback","type","key","listener","undefined"],"sourceRoot":"../../src","sources":["useKeyedChildListeners.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,KA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
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useLazyValue = useLazyValue;
|
|
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
|
-
function useLazyValue(create) {
|
|
11
|
-
const lazyRef = React.useRef();
|
|
12
|
-
if (lazyRef.current === undefined) {
|
|
13
|
-
lazyRef.current = create();
|
|
14
|
-
}
|
|
15
|
-
return lazyRef.current;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=useLazyValue.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","useLazyValue","create","lazyRef","useRef","current","undefined"],"sourceRoot":"../../src","sources":["useLazyValue.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,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0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useNavigation = useNavigation;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _NavigationContainerRefContext = require("./NavigationContainerRefContext.js");
|
|
9
|
-
var _NavigationContext = require("./NavigationContext.js");
|
|
10
|
-
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); }
|
|
11
|
-
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; }
|
|
12
|
-
/**
|
|
13
|
-
* Hook to access the navigation prop of the parent screen anywhere.
|
|
14
|
-
*
|
|
15
|
-
* @returns Navigation prop of the parent screen.
|
|
16
|
-
*/
|
|
17
|
-
function useNavigation() {
|
|
18
|
-
const root = React.useContext(_NavigationContainerRefContext.NavigationContainerRefContext);
|
|
19
|
-
const navigation = React.useContext(_NavigationContext.NavigationContext);
|
|
20
|
-
if (navigation === undefined && root === undefined) {
|
|
21
|
-
throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// FIXME: Figure out a better way to do this
|
|
25
|
-
return navigation ?? root;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=useNavigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_NavigationContainerRefContext","_NavigationContext","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useNavigation","root","useContext","NavigationContainerRefContext","navigation","NavigationContext","undefined","Error"],"sourceRoot":"../../src","sources":["useNavigation.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,8BAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AAAwD,SAAAG,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,SAAAL,wBAAAK,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;AAGxD;AACA;AACA;AACA;AACA;AACO,SAASW,aAAaA,CAAA,EAItB;EACL,MAAMC,IAAI,GAAG1B,KAAK,CAAC2B,UAAU,CAACC,4DAA6B,CAAC;EAC5D,MAAMC,UAAU,GAAG7B,KAAK,CAAC2B,UAAU,CAACG,oCAAiB,CAAC;EAEtD,IAAID,UAAU,KAAKE,SAAS,IAAIL,IAAI,KAAKK,SAAS,EAAE;IAClD,MAAM,IAAIC,KAAK,CACb,kFACF,CAAC;EACH;;EAEA;EACA,OAAQH,UAAU,IAAIH,IAAI;AAC5B","ignoreList":[]}
|
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useNavigationBuilder = useNavigationBuilder;
|
|
7
|
-
var _routers = require("@react-navigation/routers");
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _reactIs = require("react-is");
|
|
10
|
-
var _useLatestCallback = _interopRequireDefault(require("use-latest-callback"));
|
|
11
|
-
var _deepFreeze = require("./deepFreeze.js");
|
|
12
|
-
var _Group = require("./Group.js");
|
|
13
|
-
var _isArrayEqual = require("./isArrayEqual.js");
|
|
14
|
-
var _isRecordEqual = require("./isRecordEqual.js");
|
|
15
|
-
var _NavigationHelpersContext = require("./NavigationHelpersContext.js");
|
|
16
|
-
var _NavigationRouteContext = require("./NavigationRouteContext.js");
|
|
17
|
-
var _NavigationStateContext = require("./NavigationStateContext.js");
|
|
18
|
-
var _PreventRemoveProvider = require("./PreventRemoveProvider.js");
|
|
19
|
-
var _Screen = require("./Screen.js");
|
|
20
|
-
var _types = require("./types.js");
|
|
21
|
-
var _useChildListeners = require("./useChildListeners.js");
|
|
22
|
-
var _useComponent = require("./useComponent.js");
|
|
23
|
-
var _useCurrentRender = require("./useCurrentRender.js");
|
|
24
|
-
var _useDescriptors = require("./useDescriptors.js");
|
|
25
|
-
var _useEventEmitter = require("./useEventEmitter.js");
|
|
26
|
-
var _useFocusedListenersChildrenAdapter = require("./useFocusedListenersChildrenAdapter.js");
|
|
27
|
-
var _useFocusEvents = require("./useFocusEvents.js");
|
|
28
|
-
var _useIsomorphicLayoutEffect = require("./useIsomorphicLayoutEffect");
|
|
29
|
-
var _useKeyedChildListeners = require("./useKeyedChildListeners.js");
|
|
30
|
-
var _useLazyValue = require("./useLazyValue.js");
|
|
31
|
-
var _useNavigationHelpers = require("./useNavigationHelpers.js");
|
|
32
|
-
var _useOnAction = require("./useOnAction.js");
|
|
33
|
-
var _useOnGetState = require("./useOnGetState.js");
|
|
34
|
-
var _useOnRouteFocus = require("./useOnRouteFocus.js");
|
|
35
|
-
var _useRegisterNavigator = require("./useRegisterNavigator.js");
|
|
36
|
-
var _useScheduleUpdate = require("./useScheduleUpdate.js");
|
|
37
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
39
|
-
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); }
|
|
40
|
-
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; }
|
|
41
|
-
// This is to make TypeScript compiler happy
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
43
|
-
_types.PrivateValueStore;
|
|
44
|
-
const isValidKey = key => key === undefined || typeof key === 'string' && key !== '';
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Extract route config object from React children elements.
|
|
48
|
-
*
|
|
49
|
-
* @param children React Elements to extract the config from.
|
|
50
|
-
*/
|
|
51
|
-
const getRouteConfigsFromChildren = (children, groupKey, groupOptions, groupLayout) => {
|
|
52
|
-
const configs = React.Children.toArray(children).reduce((acc, child) => {
|
|
53
|
-
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
54
|
-
if (child.type === _Screen.Screen) {
|
|
55
|
-
// We can only extract the config from `Screen` elements
|
|
56
|
-
// If something else was rendered, it's probably a bug
|
|
57
|
-
|
|
58
|
-
if (!isValidKey(child.props.navigationKey)) {
|
|
59
|
-
throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(child.props.navigationKey)}) for the screen '${child.props.name}'. It must be a non-empty string or 'undefined'.`);
|
|
60
|
-
}
|
|
61
|
-
acc.push({
|
|
62
|
-
keys: [groupKey, child.props.navigationKey],
|
|
63
|
-
options: groupOptions,
|
|
64
|
-
layout: groupLayout,
|
|
65
|
-
props: child.props
|
|
66
|
-
});
|
|
67
|
-
return acc;
|
|
68
|
-
}
|
|
69
|
-
if (child.type === React.Fragment || child.type === _Group.Group) {
|
|
70
|
-
if (!isValidKey(child.props.navigationKey)) {
|
|
71
|
-
throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(child.props.navigationKey)}) for the group. It must be a non-empty string or 'undefined'.`);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// When we encounter a fragment or group, we need to dive into its children to extract the configs
|
|
75
|
-
// This is handy to conditionally define a group of screens
|
|
76
|
-
acc.push(...getRouteConfigsFromChildren(child.props.children, child.props.navigationKey, child.type !== _Group.Group ? groupOptions : groupOptions != null ? [...groupOptions, child.props.screenOptions] : [child.props.screenOptions], typeof child.props.screenLayout === 'function' ? child.props.screenLayout : groupLayout));
|
|
77
|
-
return acc;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
throw new Error(`A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found ${/*#__PURE__*/React.isValidElement(child) ? `'${typeof child.type === 'string' ? child.type : child.type?.name}'${child.props != null && typeof child.props === 'object' && 'name' in child.props && child.props?.name ? ` for the screen '${child.props.name}'` : ''}` : typeof child === 'object' ? JSON.stringify(child) : `'${String(child)}'`}). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.`);
|
|
81
|
-
}, []);
|
|
82
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
83
|
-
configs.forEach(config => {
|
|
84
|
-
const {
|
|
85
|
-
name,
|
|
86
|
-
children,
|
|
87
|
-
component,
|
|
88
|
-
getComponent
|
|
89
|
-
} = config.props;
|
|
90
|
-
if (typeof name !== 'string' || !name) {
|
|
91
|
-
throw new Error(`Got an invalid name (${JSON.stringify(name)}) for the screen. It must be a non-empty string.`);
|
|
92
|
-
}
|
|
93
|
-
if (children != null || component !== undefined || getComponent !== undefined) {
|
|
94
|
-
if (children != null && component !== undefined) {
|
|
95
|
-
throw new Error(`Got both 'component' and 'children' props for the screen '${name}'. You must pass only one of them.`);
|
|
96
|
-
}
|
|
97
|
-
if (children != null && getComponent !== undefined) {
|
|
98
|
-
throw new Error(`Got both 'getComponent' and 'children' props for the screen '${name}'. You must pass only one of them.`);
|
|
99
|
-
}
|
|
100
|
-
if (component !== undefined && getComponent !== undefined) {
|
|
101
|
-
throw new Error(`Got both 'component' and 'getComponent' props for the screen '${name}'. You must pass only one of them.`);
|
|
102
|
-
}
|
|
103
|
-
if (children != null && typeof children !== 'function') {
|
|
104
|
-
throw new Error(`Got an invalid value for 'children' prop for the screen '${name}'. It must be a function returning a React Element.`);
|
|
105
|
-
}
|
|
106
|
-
if (component !== undefined && !(0, _reactIs.isValidElementType)(component)) {
|
|
107
|
-
throw new Error(`Got an invalid value for 'component' prop for the screen '${name}'. It must be a valid React Component.`);
|
|
108
|
-
}
|
|
109
|
-
if (getComponent !== undefined && typeof getComponent !== 'function') {
|
|
110
|
-
throw new Error(`Got an invalid value for 'getComponent' prop for the screen '${name}'. It must be a function returning a React Component.`);
|
|
111
|
-
}
|
|
112
|
-
if (typeof component === 'function') {
|
|
113
|
-
if (component.name === 'component') {
|
|
114
|
-
// Inline anonymous functions passed in the `component` prop will have the name of the prop
|
|
115
|
-
// It's relatively safe to assume that it's not a component since it should also have PascalCase name
|
|
116
|
-
// We won't catch all scenarios here, but this should catch a good chunk of incorrect use.
|
|
117
|
-
console.warn(`Looks like you're passing an inline function for 'component' prop for the screen '${name}' (e.g. component={() => <SomeComponent />}). Passing an inline function will cause the component state to be lost on re-render and cause perf issues since it's re-created every render. You can pass the function as children to 'Screen' instead to achieve the desired behaviour.`);
|
|
118
|
-
} else if (/^[a-z]/.test(component.name)) {
|
|
119
|
-
console.warn(`Got a component with the name '${component.name}' for the screen '${name}'. React Components must start with an uppercase letter. If you're passing a regular function and not a component, pass it as children to 'Screen' instead. Otherwise capitalize your component's name.`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
} else {
|
|
123
|
-
throw new Error(`Couldn't find a 'component', 'getComponent' or 'children' prop for the screen '${name}'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.`);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
return configs;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Hook for building navigators.
|
|
132
|
-
*
|
|
133
|
-
* @param createRouter Factory method which returns router object.
|
|
134
|
-
* @param options Options object containing `children` and additional options for the router.
|
|
135
|
-
* @returns An object containing `state`, `navigation`, `descriptors` objects.
|
|
136
|
-
*/
|
|
137
|
-
function useNavigationBuilder(createRouter, options) {
|
|
138
|
-
const navigatorKey = (0, _useRegisterNavigator.useRegisterNavigator)();
|
|
139
|
-
const route = React.useContext(_NavigationRouteContext.NavigationRouteContext);
|
|
140
|
-
const {
|
|
141
|
-
children,
|
|
142
|
-
layout,
|
|
143
|
-
screenOptions,
|
|
144
|
-
screenLayout,
|
|
145
|
-
screenListeners,
|
|
146
|
-
UNSTABLE_router,
|
|
147
|
-
...rest
|
|
148
|
-
} = options;
|
|
149
|
-
const routeConfigs = getRouteConfigsFromChildren(children);
|
|
150
|
-
const router = (0, _useLazyValue.useLazyValue)(() => {
|
|
151
|
-
if (rest.initialRouteName != null && routeConfigs.every(config => config.props.name !== rest.initialRouteName)) {
|
|
152
|
-
throw new Error(`Couldn't find a screen named '${rest.initialRouteName}' to use as 'initialRouteName'.`);
|
|
153
|
-
}
|
|
154
|
-
const original = createRouter(rest);
|
|
155
|
-
if (UNSTABLE_router != null) {
|
|
156
|
-
const overrides = UNSTABLE_router(original);
|
|
157
|
-
return {
|
|
158
|
-
...original,
|
|
159
|
-
...overrides
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
return original;
|
|
163
|
-
});
|
|
164
|
-
const screens = routeConfigs.reduce((acc, config) => {
|
|
165
|
-
if (config.props.name in acc) {
|
|
166
|
-
throw new Error(`A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${config.props.name}')`);
|
|
167
|
-
}
|
|
168
|
-
acc[config.props.name] = config;
|
|
169
|
-
return acc;
|
|
170
|
-
}, {});
|
|
171
|
-
const routeNames = routeConfigs.map(config => config.props.name);
|
|
172
|
-
const routeKeyList = routeNames.reduce((acc, curr) => {
|
|
173
|
-
acc[curr] = screens[curr].keys.map(key => key ?? '').join(':');
|
|
174
|
-
return acc;
|
|
175
|
-
}, {});
|
|
176
|
-
const routeParamList = routeNames.reduce((acc, curr) => {
|
|
177
|
-
const {
|
|
178
|
-
initialParams
|
|
179
|
-
} = screens[curr].props;
|
|
180
|
-
acc[curr] = initialParams;
|
|
181
|
-
return acc;
|
|
182
|
-
}, {});
|
|
183
|
-
const routeGetIdList = routeNames.reduce((acc, curr) => Object.assign(acc, {
|
|
184
|
-
[curr]: screens[curr].props.getId
|
|
185
|
-
}), {});
|
|
186
|
-
if (!routeNames.length) {
|
|
187
|
-
throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");
|
|
188
|
-
}
|
|
189
|
-
const isStateValid = React.useCallback(state => state.type === undefined || state.type === router.type, [router.type]);
|
|
190
|
-
const isStateInitialized = React.useCallback(state => state !== undefined && state.stale === false && isStateValid(state), [isStateValid]);
|
|
191
|
-
const {
|
|
192
|
-
state: currentState,
|
|
193
|
-
getState: getCurrentState,
|
|
194
|
-
setState: setCurrentState,
|
|
195
|
-
setKey,
|
|
196
|
-
getKey,
|
|
197
|
-
getIsInitial
|
|
198
|
-
} = React.useContext(_NavigationStateContext.NavigationStateContext);
|
|
199
|
-
const stateCleanedUp = React.useRef(false);
|
|
200
|
-
const setState = (0, _useLatestCallback.default)(state => {
|
|
201
|
-
if (stateCleanedUp.current) {
|
|
202
|
-
// State might have been already cleaned up due to unmount
|
|
203
|
-
// We do not want to expose API allowing to override this
|
|
204
|
-
// This would lead to old data preservation on main navigator unmount
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
setCurrentState(state);
|
|
208
|
-
});
|
|
209
|
-
const [initializedState, isFirstStateInitialization] = React.useMemo(() => {
|
|
210
|
-
const initialRouteParamList = routeNames.reduce((acc, curr) => {
|
|
211
|
-
const {
|
|
212
|
-
initialParams
|
|
213
|
-
} = screens[curr].props;
|
|
214
|
-
const initialParamsFromParams = route?.params?.state == null && route?.params?.initial !== false && route?.params?.screen === curr ? route.params.params : undefined;
|
|
215
|
-
acc[curr] = initialParams !== undefined || initialParamsFromParams !== undefined ? {
|
|
216
|
-
...initialParams,
|
|
217
|
-
...initialParamsFromParams
|
|
218
|
-
} : undefined;
|
|
219
|
-
return acc;
|
|
220
|
-
}, {});
|
|
221
|
-
|
|
222
|
-
// If the current state isn't initialized on first render, we initialize it
|
|
223
|
-
// We also need to re-initialize it if the state passed from parent was changed (maybe due to reset)
|
|
224
|
-
// Otherwise assume that the state was provided as initial state
|
|
225
|
-
// So we need to rehydrate it to make it usable
|
|
226
|
-
if ((currentState === undefined || !isStateValid(currentState)) && route?.params?.state == null && !(typeof route?.params?.screen === 'string' && route?.params?.initial !== false)) {
|
|
227
|
-
return [router.getInitialState({
|
|
228
|
-
routeNames,
|
|
229
|
-
routeParamList: initialRouteParamList,
|
|
230
|
-
routeGetIdList
|
|
231
|
-
}), true];
|
|
232
|
-
} else {
|
|
233
|
-
let stateFromParams;
|
|
234
|
-
if (route?.params?.state != null) {
|
|
235
|
-
stateFromParams = route.params.state;
|
|
236
|
-
} else if (typeof route?.params?.screen === 'string' && route?.params?.initial !== false) {
|
|
237
|
-
stateFromParams = {
|
|
238
|
-
index: 0,
|
|
239
|
-
routes: [{
|
|
240
|
-
name: route.params.screen,
|
|
241
|
-
params: route.params.params,
|
|
242
|
-
path: route.params.path
|
|
243
|
-
}]
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
return [router.getRehydratedState(stateFromParams ?? currentState, {
|
|
247
|
-
routeNames,
|
|
248
|
-
routeParamList: initialRouteParamList,
|
|
249
|
-
routeGetIdList
|
|
250
|
-
}), false];
|
|
251
|
-
}
|
|
252
|
-
// We explicitly don't include routeNames, route.params etc. in the dep list
|
|
253
|
-
// below. We want to avoid forcing a new state to be calculated in those cases
|
|
254
|
-
// Instead, we handle changes to these in the nextState code below. Note
|
|
255
|
-
// that some changes to routeConfigs are explicitly ignored, such as changes
|
|
256
|
-
// to initialParams
|
|
257
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
258
|
-
}, [currentState, router, isStateValid]);
|
|
259
|
-
const previousRouteKeyListRef = React.useRef(routeKeyList);
|
|
260
|
-
React.useEffect(() => {
|
|
261
|
-
previousRouteKeyListRef.current = routeKeyList;
|
|
262
|
-
});
|
|
263
|
-
const previousRouteKeyList = previousRouteKeyListRef.current;
|
|
264
|
-
let state =
|
|
265
|
-
// If the state isn't initialized, or stale, use the state we initialized instead
|
|
266
|
-
// The state won't update until there's a change needed in the state we have initialized locally
|
|
267
|
-
// So it'll be `undefined` or stale until the first navigation event happens
|
|
268
|
-
isStateInitialized(currentState) ? currentState : initializedState;
|
|
269
|
-
let nextState = state;
|
|
270
|
-
if (!(0, _isArrayEqual.isArrayEqual)(state.routeNames, routeNames) || !(0, _isRecordEqual.isRecordEqual)(routeKeyList, previousRouteKeyList)) {
|
|
271
|
-
// When the list of route names change, the router should handle it to remove invalid routes
|
|
272
|
-
nextState = router.getStateForRouteNamesChange(state, {
|
|
273
|
-
routeNames,
|
|
274
|
-
routeParamList,
|
|
275
|
-
routeGetIdList,
|
|
276
|
-
routeKeyChanges: Object.keys(routeKeyList).filter(name => name in previousRouteKeyList && routeKeyList[name] !== previousRouteKeyList[name])
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
const previousNestedParamsRef = React.useRef(route?.params);
|
|
280
|
-
React.useEffect(() => {
|
|
281
|
-
previousNestedParamsRef.current = route?.params;
|
|
282
|
-
}, [route?.params]);
|
|
283
|
-
if (route?.params) {
|
|
284
|
-
const previousParams = previousNestedParamsRef.current;
|
|
285
|
-
let action;
|
|
286
|
-
if (typeof route.params.state === 'object' && route.params.state != null && route.params !== previousParams) {
|
|
287
|
-
// If the route was updated with new state, we should reset to it
|
|
288
|
-
action = _routers.CommonActions.reset(route.params.state);
|
|
289
|
-
} else if (typeof route.params.screen === 'string' && (route.params.initial === false && isFirstStateInitialization || route.params !== previousParams)) {
|
|
290
|
-
// If the route was updated with new screen name and/or params, we should navigate there
|
|
291
|
-
action = _routers.CommonActions.navigate({
|
|
292
|
-
name: route.params.screen,
|
|
293
|
-
params: route.params.params,
|
|
294
|
-
path: route.params.path,
|
|
295
|
-
pop: route.params.pop
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// The update should be limited to current navigator only, so we call the router manually
|
|
300
|
-
const updatedState = action ? router.getStateForAction(nextState, action, {
|
|
301
|
-
routeNames,
|
|
302
|
-
routeParamList,
|
|
303
|
-
routeGetIdList
|
|
304
|
-
}) : null;
|
|
305
|
-
nextState = updatedState !== null ? router.getRehydratedState(updatedState, {
|
|
306
|
-
routeNames,
|
|
307
|
-
routeParamList,
|
|
308
|
-
routeGetIdList
|
|
309
|
-
}) : nextState;
|
|
310
|
-
}
|
|
311
|
-
const shouldUpdate = state !== nextState;
|
|
312
|
-
(0, _useScheduleUpdate.useScheduleUpdate)(() => {
|
|
313
|
-
if (shouldUpdate) {
|
|
314
|
-
// If the state needs to be updated, we'll schedule an update
|
|
315
|
-
setState(nextState);
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
// The up-to-date state will come in next render, but we don't need to wait for it
|
|
320
|
-
// We can't use the outdated state since the screens have changed, which will cause error due to mismatched config
|
|
321
|
-
// So we override the state object we return to use the latest state as soon as possible
|
|
322
|
-
state = nextState;
|
|
323
|
-
React.useEffect(() => {
|
|
324
|
-
// In strict mode, React will double-invoke effects.
|
|
325
|
-
// So we need to reset the flag if component was not unmounted
|
|
326
|
-
stateCleanedUp.current = false;
|
|
327
|
-
setKey(navigatorKey);
|
|
328
|
-
if (!getIsInitial()) {
|
|
329
|
-
// If it's not initial render, we need to update the state
|
|
330
|
-
// This will make sure that our container gets notifier of state changes due to new mounts
|
|
331
|
-
// This is necessary for proper screen tracking, URL updates etc.
|
|
332
|
-
setState(nextState);
|
|
333
|
-
}
|
|
334
|
-
return () => {
|
|
335
|
-
// We need to clean up state for this navigator on unmount
|
|
336
|
-
if (getCurrentState() !== undefined && getKey() === navigatorKey) {
|
|
337
|
-
setCurrentState(undefined);
|
|
338
|
-
stateCleanedUp.current = true;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
342
|
-
}, []);
|
|
343
|
-
|
|
344
|
-
// In some cases (e.g. route names change), internal state might have changed
|
|
345
|
-
// But it hasn't been committed yet, so hasn't propagated to the sync external store
|
|
346
|
-
// During this time, we need to return the internal state in `getState`
|
|
347
|
-
// Otherwise it can result in inconsistent state during render in children
|
|
348
|
-
// To avoid this, we use a ref for render phase, and immediately clear it on commit
|
|
349
|
-
const stateRef = React.useRef(state);
|
|
350
|
-
stateRef.current = state;
|
|
351
|
-
(0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(() => {
|
|
352
|
-
stateRef.current = null;
|
|
353
|
-
});
|
|
354
|
-
const getState = (0, _useLatestCallback.default)(() => {
|
|
355
|
-
const currentState = getCurrentState();
|
|
356
|
-
return (0, _deepFreeze.deepFreeze)(isStateInitialized(currentState) ? currentState : initializedState);
|
|
357
|
-
});
|
|
358
|
-
const emitter = (0, _useEventEmitter.useEventEmitter)(e => {
|
|
359
|
-
const routeNames = [];
|
|
360
|
-
let route;
|
|
361
|
-
if (e.target) {
|
|
362
|
-
route = state.routes.find(route => route.key === e.target);
|
|
363
|
-
if (route?.name) {
|
|
364
|
-
routeNames.push(route.name);
|
|
365
|
-
}
|
|
366
|
-
} else {
|
|
367
|
-
route = state.routes[state.index];
|
|
368
|
-
routeNames.push(...Object.keys(screens).filter(name => route?.name === name));
|
|
369
|
-
}
|
|
370
|
-
if (route == null) {
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
const navigation = descriptors[route.key].navigation;
|
|
374
|
-
const listeners = [].concat(
|
|
375
|
-
// Get an array of listeners for all screens + common listeners on navigator
|
|
376
|
-
...[screenListeners, ...routeNames.map(name => {
|
|
377
|
-
const {
|
|
378
|
-
listeners
|
|
379
|
-
} = screens[name].props;
|
|
380
|
-
return listeners;
|
|
381
|
-
})].map(listeners => {
|
|
382
|
-
const map = typeof listeners === 'function' ? listeners({
|
|
383
|
-
route: route,
|
|
384
|
-
navigation
|
|
385
|
-
}) : listeners;
|
|
386
|
-
return map ? Object.keys(map).filter(type => type === e.type).map(type => map?.[type]) : undefined;
|
|
387
|
-
}))
|
|
388
|
-
// We don't want same listener to be called multiple times for same event
|
|
389
|
-
// So we remove any duplicate functions from the array
|
|
390
|
-
.filter((cb, i, self) => cb && self.lastIndexOf(cb) === i);
|
|
391
|
-
listeners.forEach(listener => listener?.(e));
|
|
392
|
-
});
|
|
393
|
-
(0, _useFocusEvents.useFocusEvents)({
|
|
394
|
-
state,
|
|
395
|
-
emitter
|
|
396
|
-
});
|
|
397
|
-
React.useEffect(() => {
|
|
398
|
-
emitter.emit({
|
|
399
|
-
type: 'state',
|
|
400
|
-
data: {
|
|
401
|
-
state
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}, [emitter, state]);
|
|
405
|
-
const {
|
|
406
|
-
listeners: childListeners,
|
|
407
|
-
addListener
|
|
408
|
-
} = (0, _useChildListeners.useChildListeners)();
|
|
409
|
-
const {
|
|
410
|
-
keyedListeners,
|
|
411
|
-
addKeyedListener
|
|
412
|
-
} = (0, _useKeyedChildListeners.useKeyedChildListeners)();
|
|
413
|
-
const onAction = (0, _useOnAction.useOnAction)({
|
|
414
|
-
router,
|
|
415
|
-
getState,
|
|
416
|
-
setState,
|
|
417
|
-
key: route?.key,
|
|
418
|
-
actionListeners: childListeners.action,
|
|
419
|
-
beforeRemoveListeners: keyedListeners.beforeRemove,
|
|
420
|
-
routerConfigOptions: {
|
|
421
|
-
routeNames,
|
|
422
|
-
routeParamList,
|
|
423
|
-
routeGetIdList
|
|
424
|
-
},
|
|
425
|
-
emitter
|
|
426
|
-
});
|
|
427
|
-
const onRouteFocus = (0, _useOnRouteFocus.useOnRouteFocus)({
|
|
428
|
-
router,
|
|
429
|
-
key: route?.key,
|
|
430
|
-
getState,
|
|
431
|
-
setState
|
|
432
|
-
});
|
|
433
|
-
const navigation = (0, _useNavigationHelpers.useNavigationHelpers)({
|
|
434
|
-
id: options.id,
|
|
435
|
-
onAction,
|
|
436
|
-
getState,
|
|
437
|
-
emitter,
|
|
438
|
-
router,
|
|
439
|
-
stateRef
|
|
440
|
-
});
|
|
441
|
-
(0, _useFocusedListenersChildrenAdapter.useFocusedListenersChildrenAdapter)({
|
|
442
|
-
navigation,
|
|
443
|
-
focusedListeners: childListeners.focus
|
|
444
|
-
});
|
|
445
|
-
(0, _useOnGetState.useOnGetState)({
|
|
446
|
-
getState,
|
|
447
|
-
getStateListeners: keyedListeners.getState
|
|
448
|
-
});
|
|
449
|
-
const {
|
|
450
|
-
describe,
|
|
451
|
-
descriptors
|
|
452
|
-
} = (0, _useDescriptors.useDescriptors)({
|
|
453
|
-
state,
|
|
454
|
-
screens,
|
|
455
|
-
navigation,
|
|
456
|
-
screenOptions,
|
|
457
|
-
screenLayout,
|
|
458
|
-
onAction,
|
|
459
|
-
getState,
|
|
460
|
-
setState,
|
|
461
|
-
onRouteFocus,
|
|
462
|
-
addListener,
|
|
463
|
-
addKeyedListener,
|
|
464
|
-
router,
|
|
465
|
-
// @ts-expect-error: this should have both core and custom events, but too much work right now
|
|
466
|
-
emitter
|
|
467
|
-
});
|
|
468
|
-
(0, _useCurrentRender.useCurrentRender)({
|
|
469
|
-
state,
|
|
470
|
-
navigation,
|
|
471
|
-
descriptors
|
|
472
|
-
});
|
|
473
|
-
const NavigationContent = (0, _useComponent.useComponent)(children => {
|
|
474
|
-
const element = layout != null ? layout({
|
|
475
|
-
state,
|
|
476
|
-
descriptors,
|
|
477
|
-
navigation,
|
|
478
|
-
children
|
|
479
|
-
}) : children;
|
|
480
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NavigationHelpersContext.NavigationHelpersContext.Provider, {
|
|
481
|
-
value: navigation,
|
|
482
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreventRemoveProvider.PreventRemoveProvider, {
|
|
483
|
-
children: element
|
|
484
|
-
})
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
return {
|
|
488
|
-
state,
|
|
489
|
-
navigation,
|
|
490
|
-
describe,
|
|
491
|
-
descriptors,
|
|
492
|
-
NavigationContent
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
//# sourceMappingURL=useNavigationBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_routers","require","React","_interopRequireWildcard","_reactIs","_useLatestCallback","_interopRequireDefault","_deepFreeze","_Group","_isArrayEqual","_isRecordEqual","_NavigationHelpersContext","_NavigationRouteContext","_NavigationStateContext","_PreventRemoveProvider","_Screen","_types","_useChildListeners","_useComponent","_useCurrentRender","_useDescriptors","_useEventEmitter","_useFocusedListenersChildrenAdapter","_useFocusEvents","_useIsomorphicLayoutEffect","_useKeyedChildListeners","_useLazyValue","_useNavigationHelpers","_useOnAction","_useOnGetState","_useOnRouteFocus","_useRegisterNavigator","_useScheduleUpdate","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","PrivateValueStore","isValidKey","key","undefined","getRouteConfigsFromChildren","children","groupKey","groupOptions","groupLayout","configs","Children","toArray","reduce","acc","child","isValidElement","type","Screen","props","navigationKey","Error","JSON","stringify","name","push","keys","options","layout","Fragment","Group","screenOptions","screenLayout","String","process","env","NODE_ENV","forEach","config","component","getComponent","isValidElementType","console","warn","test","useNavigationBuilder","createRouter","navigatorKey","useRegisterNavigator","route","useContext","NavigationRouteContext","screenListeners","UNSTABLE_router","rest","routeConfigs","router","useLazyValue","initialRouteName","every","original","overrides","screens","routeNames","map","routeKeyList","curr","join","routeParamList","initialParams","routeGetIdList","assign","getId","length","isStateValid","useCallback","state","isStateInitialized","stale","currentState","getState","getCurrentState","setState","setCurrentState","setKey","getKey","getIsInitial","NavigationStateContext","stateCleanedUp","useRef","useLatestCallback","current","initializedState","isFirstStateInitialization","useMemo","initialRouteParamList","initialParamsFromParams","params","initial","screen","getInitialState","stateFromParams","index","routes","path","getRehydratedState","previousRouteKeyListRef","useEffect","previousRouteKeyList","nextState","isArrayEqual","isRecordEqual","getStateForRouteNamesChange","routeKeyChanges","filter","previousNestedParamsRef","previousParams","action","CommonActions","reset","navigate","pop","updatedState","getStateForAction","shouldUpdate","useScheduleUpdate","stateRef","useIsomorphicLayoutEffect","deepFreeze","emitter","useEventEmitter","target","find","navigation","descriptors","listeners","concat","cb","self","lastIndexOf","listener","useFocusEvents","emit","data","childListeners","addListener","useChildListeners","keyedListeners","addKeyedListener","useKeyedChildListeners","onAction","useOnAction","actionListeners","beforeRemoveListeners","beforeRemove","routerConfigOptions","onRouteFocus","useOnRouteFocus","useNavigationHelpers","id","useFocusedListenersChildrenAdapter","focusedListeners","focus","useOnGetState","getStateListeners","describe","useDescriptors","useCurrentRender","NavigationContent","useComponent","element","jsx","NavigationHelpersContext","Provider","value","PreventRemoveProvider"],"sourceRoot":"../../src","sources":["useNavigationBuilder.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAYA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GAAAV,OAAA;AACA,IAAAW,uBAAA,GAAAX,OAAA;AACA,IAAAY,uBAAA,GAAAZ,OAAA;AACA,IAAAa,sBAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,MAAA,GAAAf,OAAA;AAQA,IAAAgB,kBAAA,GAAAhB,OAAA;AACA,IAAAiB,aAAA,GAAAjB,OAAA;AACA,IAAAkB,iBAAA,GAAAlB,OAAA;AACA,IAAAmB,eAAA,GAAAnB,OAAA;AACA,IAAAoB,gBAAA,GAAApB,OAAA;AACA,IAAAqB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