react-native-screen-transitions 3.1.0 → 3.2.0-beta.0
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/commonjs/blank-stack/components/screens.js +2 -2
- package/lib/commonjs/blank-stack/components/screens.js.map +1 -1
- package/lib/commonjs/blank-stack/components/stack-view.js +42 -51
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/{shared/components → blank-stack}/controllers/blank-stack-lifecycle.js +17 -8
- package/lib/commonjs/blank-stack/controllers/blank-stack-lifecycle.js.map +1 -0
- package/lib/commonjs/component-stack/components/component-view.js +63 -0
- package/lib/commonjs/component-stack/components/component-view.js.map +1 -0
- package/lib/commonjs/component-stack/components/screens.js +64 -0
- package/lib/commonjs/component-stack/components/screens.js.map +1 -0
- package/lib/commonjs/component-stack/controllers/component-stack-lifecycle.js +82 -0
- package/lib/commonjs/component-stack/controllers/component-stack-lifecycle.js.map +1 -0
- package/lib/commonjs/component-stack/hooks/use-component-navigation-builder.js +321 -0
- package/lib/commonjs/component-stack/hooks/use-component-navigation-builder.js.map +1 -0
- package/lib/commonjs/component-stack/hooks/use-component-navigation.js +28 -0
- package/lib/commonjs/component-stack/hooks/use-component-navigation.js.map +1 -0
- package/lib/commonjs/component-stack/index.js +20 -0
- package/lib/commonjs/component-stack/index.js.map +1 -0
- package/lib/commonjs/component-stack/navigators/create-component-navigator.js +97 -0
- package/lib/commonjs/component-stack/navigators/create-component-navigator.js.map +1 -0
- package/lib/commonjs/component-stack/types.js.map +1 -0
- package/lib/commonjs/{shared/components → native-stack}/controllers/native-stack-lifecycle.js +18 -9
- package/lib/commonjs/native-stack/controllers/native-stack-lifecycle.js.map +1 -0
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +120 -121
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +64 -0
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/index.js +15 -0
- package/lib/commonjs/shared/components/overlay/index.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/container-overlay.js +99 -0
- package/lib/commonjs/shared/components/overlay/variations/container-overlay.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +51 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +124 -0
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +47 -0
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -0
- package/lib/commonjs/shared/components/root-transition-aware.js +2 -2
- package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -1
- package/lib/commonjs/shared/constants.js +2 -31
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js +2 -2
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js +30 -0
- package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +1 -0
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +16 -9
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/commonjs/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.js +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +37 -0
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures.provider.js +1 -1
- package/lib/commonjs/shared/providers/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +11 -5
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/{keys.provider.js → screen/keys.provider.js} +12 -0
- package/lib/commonjs/shared/providers/screen/keys.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/{screen-transition.provider.js → screen/screen-composer.js} +7 -7
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -0
- package/lib/commonjs/shared/providers/{transition-styles.provider.js → screen/styles.provider.js} +12 -13
- package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/core.provider.js +61 -0
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/direct.provider.js +158 -0
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -0
- package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js → shared/providers/stack/helpers/active-screens-limit.js} +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +93 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/managed.provider.js +155 -0
- package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds.store.js.map +1 -1
- package/lib/commonjs/shared/types/index.js +19 -0
- package/lib/commonjs/shared/types/index.js.map +1 -0
- package/lib/commonjs/shared/types/overlay.types.js +6 -0
- package/lib/commonjs/shared/types/overlay.types.js.map +1 -0
- package/lib/commonjs/shared/types/screen.types.js +6 -0
- package/lib/commonjs/shared/types/screen.types.js.map +1 -0
- package/lib/commonjs/shared/types/{core.types.js → stack.types.js} +1 -1
- package/lib/commonjs/shared/types/{core.types.js.map → stack.types.js.map} +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +16 -13
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js +51 -0
- package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js +95 -0
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -0
- package/lib/commonjs/shared/utils/read-shared-value.js +17 -0
- package/lib/commonjs/shared/utils/read-shared-value.js.map +1 -0
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js +2 -1
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/module/blank-stack/components/screens.js +2 -2
- package/lib/module/blank-stack/components/screens.js.map +1 -1
- package/lib/module/blank-stack/components/stack-view.js +41 -50
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/{shared/components → blank-stack}/controllers/blank-stack-lifecycle.js +18 -9
- package/lib/module/blank-stack/controllers/blank-stack-lifecycle.js.map +1 -0
- package/lib/module/component-stack/components/component-view.js +58 -0
- package/lib/module/component-stack/components/component-view.js.map +1 -0
- package/lib/module/component-stack/components/screens.js +58 -0
- package/lib/module/component-stack/components/screens.js.map +1 -0
- package/lib/module/component-stack/controllers/component-stack-lifecycle.js +76 -0
- package/lib/module/component-stack/controllers/component-stack-lifecycle.js.map +1 -0
- package/lib/module/component-stack/hooks/use-component-navigation-builder.js +316 -0
- package/lib/module/component-stack/hooks/use-component-navigation-builder.js.map +1 -0
- package/lib/module/component-stack/hooks/use-component-navigation.js +25 -0
- package/lib/module/component-stack/hooks/use-component-navigation.js.map +1 -0
- package/lib/module/component-stack/index.js +5 -0
- package/lib/module/component-stack/index.js.map +1 -0
- package/lib/module/component-stack/navigators/create-component-navigator.js +91 -0
- package/lib/module/component-stack/navigators/create-component-navigator.js.map +1 -0
- package/lib/module/component-stack/types.js.map +1 -0
- package/lib/module/{shared/components → native-stack}/controllers/native-stack-lifecycle.js +18 -9
- package/lib/module/native-stack/controllers/native-stack-lifecycle.js.map +1 -0
- package/lib/module/native-stack/views/NativeStackView.native.js +121 -122
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +59 -0
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -0
- package/lib/module/shared/components/overlay/index.js +11 -0
- package/lib/module/shared/components/overlay/index.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/container-overlay.js +97 -0
- package/lib/module/shared/components/overlay/variations/container-overlay.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js +48 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/overlay-host.js +120 -0
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +44 -0
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -0
- package/lib/module/shared/components/root-transition-aware.js +2 -2
- package/lib/module/shared/components/root-transition-aware.js.map +1 -1
- package/lib/module/shared/constants.js +0 -29
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/animation/use-associated-style.js +2 -2
- package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/module/shared/hooks/animation/use-high-refresh-rate.js +24 -0
- package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +1 -0
- package/lib/module/shared/hooks/animation/use-screen-animation.js +16 -9
- package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-build-gestures.js +1 -1
- package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/module/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.js +1 -1
- package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-stack.js +33 -0
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -0
- package/lib/module/shared/providers/gestures.provider.js +1 -1
- package/lib/module/shared/providers/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +11 -5
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/{keys.provider.js → screen/keys.provider.js} +12 -0
- package/lib/module/shared/providers/screen/keys.provider.js.map +1 -0
- package/lib/module/shared/providers/{screen-transition.provider.js → screen/screen-composer.js} +6 -6
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -0
- package/lib/module/shared/providers/{transition-styles.provider.js → screen/styles.provider.js} +10 -10
- package/lib/module/shared/providers/screen/styles.provider.js.map +1 -0
- package/lib/module/shared/providers/stack/core.provider.js +55 -0
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -0
- package/lib/module/shared/providers/stack/direct.provider.js +153 -0
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -0
- package/lib/module/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js → shared/providers/stack/helpers/active-screens-limit.js} +1 -1
- package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js +87 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +1 -0
- package/lib/module/shared/providers/stack/managed.provider.js +150 -0
- package/lib/module/shared/providers/stack/managed.provider.js.map +1 -0
- package/lib/module/shared/stores/bounds.store.js.map +1 -1
- package/lib/module/shared/types/index.js +4 -0
- package/lib/module/shared/types/index.js.map +1 -0
- package/lib/module/shared/types/overlay.types.js +4 -0
- package/lib/module/shared/types/overlay.types.js.map +1 -0
- package/lib/module/shared/types/screen.types.js +4 -0
- package/lib/module/shared/types/screen.types.js.map +1 -0
- package/lib/module/shared/types/stack.types.js +4 -0
- package/lib/{commonjs/shared/types/utils.types.js.map → module/shared/types/stack.types.js.map} +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/create-provider.js +16 -13
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -1
- package/lib/module/shared/utils/navigation/align-routes-with-latest.js +46 -0
- package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +1 -0
- package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +1 -0
- package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -0
- package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +1 -0
- package/lib/module/shared/utils/navigation/routes-are-identical.js.map +1 -0
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js +90 -0
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -0
- package/lib/module/shared/utils/read-shared-value.js +14 -0
- package/lib/module/shared/utils/read-shared-value.js.map +1 -0
- package/lib/module/shared/utils/reset-stores-for-screen.js +2 -2
- package/lib/module/shared/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/typescript/blank-stack/components/stack-view.d.ts +2 -1
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/{shared/components → blank-stack}/controllers/blank-stack-lifecycle.d.ts +2 -1
- package/lib/typescript/blank-stack/controllers/blank-stack-lifecycle.d.ts.map +1 -0
- package/lib/typescript/blank-stack/types.d.ts +9 -50
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/component-view.d.ts +4 -0
- package/lib/typescript/component-stack/components/component-view.d.ts.map +1 -0
- package/lib/typescript/component-stack/components/screens.d.ts +9 -0
- package/lib/typescript/component-stack/components/screens.d.ts.map +1 -0
- package/lib/typescript/component-stack/controllers/component-stack-lifecycle.d.ts +10 -0
- package/lib/typescript/component-stack/controllers/component-stack-lifecycle.d.ts.map +1 -0
- package/lib/typescript/component-stack/hooks/use-component-navigation-builder.d.ts +19 -0
- package/lib/typescript/component-stack/hooks/use-component-navigation-builder.d.ts.map +1 -0
- package/lib/typescript/component-stack/hooks/use-component-navigation.d.ts +19 -0
- package/lib/typescript/component-stack/hooks/use-component-navigation.d.ts.map +1 -0
- package/lib/typescript/component-stack/index.d.ts +4 -0
- package/lib/typescript/component-stack/index.d.ts.map +1 -0
- package/lib/typescript/component-stack/navigators/create-component-navigator.d.ts +35 -0
- package/lib/typescript/component-stack/navigators/create-component-navigator.d.ts.map +1 -0
- package/lib/typescript/component-stack/types.d.ts +206 -0
- package/lib/typescript/component-stack/types.d.ts.map +1 -0
- package/lib/typescript/native-stack/controllers/native-stack-lifecycle.d.ts.map +1 -0
- package/lib/typescript/native-stack/index.d.ts +1 -1
- package/lib/typescript/native-stack/index.d.ts.map +1 -1
- package/lib/typescript/native-stack/types.d.ts +9 -6
- package/lib/typescript/native-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +2 -10
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +20 -0
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/index.d.ts +9 -0
- package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/container-overlay.d.ts +8 -0
- package/lib/typescript/shared/components/overlay/variations/container-overlay.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +6 -0
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +12 -0
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +6 -0
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -1
- package/lib/typescript/shared/configs/presets.d.ts +1 -1
- package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +1 -16
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts +6 -0
- package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-closing-route-keys.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +71 -0
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +31 -33
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures.provider.d.ts +4 -2
- package/lib/typescript/shared/providers/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts +11 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts +34 -0
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +9 -0
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts +19 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts +39 -0
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -0
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +2 -2
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +3 -3
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +0 -1
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +8 -0
- package/lib/typescript/shared/types/index.d.ts.map +1 -0
- package/lib/typescript/shared/types/overlay.types.d.ts +50 -0
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/{core.types.d.ts → screen.types.d.ts} +31 -6
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/stack.types.d.ts +52 -0
- package/lib/typescript/shared/types/stack.types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts +1 -2
- package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts +1 -9
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/builder.d.ts +9 -8
- package/lib/typescript/shared/utils/bounds/types/builder.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/geometry.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/types/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +1 -1
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts +13 -0
- package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts +2 -0
- package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +6 -0
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +6 -0
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +6 -0
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +21 -0
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -0
- package/lib/typescript/shared/utils/read-shared-value.d.ts +7 -0
- package/lib/typescript/shared/utils/read-shared-value.d.ts.map +1 -0
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +4 -3
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +1 -1
- package/package.json +7 -2
- package/src/blank-stack/components/screens.tsx +2 -2
- package/src/blank-stack/components/stack-view.tsx +59 -67
- package/src/{shared/components → blank-stack}/controllers/blank-stack-lifecycle.tsx +18 -11
- package/src/blank-stack/types.ts +10 -62
- package/src/component-stack/components/component-view.tsx +72 -0
- package/src/component-stack/components/screens.tsx +86 -0
- package/src/component-stack/controllers/component-stack-lifecycle.tsx +80 -0
- package/src/component-stack/hooks/use-component-navigation-builder.tsx +388 -0
- package/src/component-stack/hooks/use-component-navigation.tsx +22 -0
- package/src/component-stack/index.ts +16 -0
- package/src/component-stack/navigators/create-component-navigator.tsx +104 -0
- package/src/component-stack/types.ts +209 -0
- package/src/{shared/components → native-stack}/controllers/native-stack-lifecycle.tsx +18 -11
- package/src/native-stack/index.ts +1 -0
- package/src/native-stack/types.ts +11 -7
- package/src/native-stack/views/NativeStackView.native.tsx +42 -69
- package/src/shared/__tests__/sync-routes-with-removed.test.ts +283 -0
- package/src/shared/components/create-transition-aware-component.tsx +5 -6
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +64 -0
- package/src/shared/components/overlay/index.ts +9 -0
- package/src/shared/components/overlay/variations/container-overlay.tsx +98 -0
- package/src/shared/components/overlay/variations/float-overlay.tsx +44 -0
- package/src/shared/components/overlay/variations/overlay-host.tsx +148 -0
- package/src/shared/components/overlay/variations/screen-overlay.tsx +51 -0
- package/src/shared/components/root-transition-aware.tsx +2 -2
- package/src/shared/configs/presets.ts +1 -1
- package/src/shared/constants.ts +1 -33
- package/src/shared/hooks/animation/use-associated-style.tsx +2 -2
- package/src/shared/hooks/animation/use-high-refresh-rate.tsx +28 -0
- package/src/shared/hooks/animation/use-screen-animation.tsx +19 -15
- package/src/shared/hooks/gestures/use-build-gestures.tsx +1 -2
- package/src/shared/hooks/gestures/use-scroll-registry.tsx +3 -4
- package/src/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.tsx +1 -1
- package/src/shared/hooks/navigation/use-stack.tsx +100 -0
- package/src/shared/index.ts +7 -3
- package/src/shared/providers/gestures.provider.tsx +6 -2
- package/src/shared/providers/register-bounds.provider.tsx +13 -6
- package/src/shared/providers/screen/keys.provider.tsx +72 -0
- package/src/shared/providers/screen/screen-composer.tsx +38 -0
- package/src/shared/providers/{transition-styles.provider.tsx → screen/styles.provider.tsx} +14 -13
- package/src/shared/providers/stack/core.provider.tsx +64 -0
- package/src/shared/providers/stack/direct.provider.tsx +228 -0
- package/src/{blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.ts → shared/providers/stack/helpers/active-screens-limit.ts} +10 -4
- package/src/shared/providers/stack/helpers/use-local-routes.tsx +133 -0
- package/src/shared/providers/stack/managed.provider.tsx +226 -0
- package/src/shared/stores/animation.store.ts +1 -1
- package/src/shared/stores/bounds.store.ts +4 -5
- package/src/shared/stores/gesture.store.ts +2 -2
- package/src/shared/types/animation.types.ts +3 -3
- package/src/shared/types/gesture.types.ts +0 -2
- package/src/shared/types/index.ts +47 -0
- package/src/shared/types/overlay.types.ts +62 -0
- package/src/shared/types/{core.types.ts → screen.types.ts} +40 -7
- package/src/shared/types/stack.types.ts +59 -0
- package/src/shared/utils/bounds/helpers/geometry.ts +1 -1
- package/src/shared/utils/bounds/helpers/style-composers.ts +1 -1
- package/src/shared/utils/bounds/helpers/styles.ts +1 -2
- package/src/shared/utils/bounds/index.ts +1 -9
- package/src/shared/utils/bounds/types/builder.ts +8 -8
- package/src/shared/utils/bounds/types/geometry.ts +1 -1
- package/src/shared/utils/create-provider.tsx +14 -16
- package/src/shared/utils/gesture/check-gesture-activation.ts +1 -1
- package/src/shared/utils/navigation/align-routes-with-latest.ts +68 -0
- package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.ts +5 -5
- package/src/shared/utils/navigation/compose-descriptors.ts +21 -0
- package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.ts +6 -4
- package/src/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.ts +6 -4
- package/src/shared/utils/navigation/sync-routes-with-removed.ts +132 -0
- package/src/shared/utils/read-shared-value.ts +15 -0
- package/src/shared/utils/reset-stores-for-screen.ts +4 -3
- package/lib/commonjs/blank-stack/components/overlay.js +0 -156
- package/lib/commonjs/blank-stack/components/overlay.js.map +0 -1
- package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +0 -72
- package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js +0 -196
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js +0 -61
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/types.js.map +0 -1
- package/lib/commonjs/native-stack/views/FooterComponent.js +0 -17
- package/lib/commonjs/native-stack/views/FooterComponent.js.map +0 -1
- package/lib/commonjs/shared/components/controllers/blank-stack-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/components/controllers/native-stack-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/providers/flags.provider.js +0 -25
- package/lib/commonjs/shared/providers/flags.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/keys.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/routes.provider.js +0 -48
- package/lib/commonjs/shared/providers/routes.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/screen-transition.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/transition-styles.provider.js.map +0 -1
- package/lib/commonjs/shared/types/utils.types.js +0 -2
- package/lib/commonjs/shared/utils/animation/compute-stack-progress.js +0 -20
- package/lib/commonjs/shared/utils/animation/compute-stack-progress.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/constants.js +0 -42
- package/lib/commonjs/shared/utils/bounds/constants.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js +0 -19
- package/lib/commonjs/shared/utils/bounds/helpers/is-bounds-equal.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js +0 -224
- package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js.map +0 -1
- package/lib/commonjs/shared/utils/reanimated/version.js +0 -12
- package/lib/commonjs/shared/utils/reanimated/version.js.map +0 -1
- package/lib/module/blank-stack/components/overlay.js +0 -152
- package/lib/module/blank-stack/components/overlay.js.map +0 -1
- package/lib/module/blank-stack/hooks/use-overlay-animation.js +0 -68
- package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-previous.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js +0 -190
- package/lib/module/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/index.js +0 -55
- package/lib/module/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
- package/lib/module/blank-stack/utils/with-stack-navigation/types.js.map +0 -1
- package/lib/module/native-stack/views/FooterComponent.js +0 -13
- package/lib/module/native-stack/views/FooterComponent.js.map +0 -1
- package/lib/module/shared/components/controllers/blank-stack-lifecycle.js.map +0 -1
- package/lib/module/shared/components/controllers/native-stack-lifecycle.js.map +0 -1
- package/lib/module/shared/providers/flags.provider.js +0 -19
- package/lib/module/shared/providers/flags.provider.js.map +0 -1
- package/lib/module/shared/providers/keys.provider.js.map +0 -1
- package/lib/module/shared/providers/routes.provider.js +0 -42
- package/lib/module/shared/providers/routes.provider.js.map +0 -1
- package/lib/module/shared/providers/screen-transition.provider.js.map +0 -1
- package/lib/module/shared/providers/transition-styles.provider.js.map +0 -1
- package/lib/module/shared/types/core.types.js +0 -4
- package/lib/module/shared/types/core.types.js.map +0 -1
- package/lib/module/shared/types/utils.types.js +0 -2
- package/lib/module/shared/types/utils.types.js.map +0 -1
- package/lib/module/shared/utils/animation/compute-stack-progress.js +0 -15
- package/lib/module/shared/utils/animation/compute-stack-progress.js.map +0 -1
- package/lib/module/shared/utils/bounds/constants.js +0 -37
- package/lib/module/shared/utils/bounds/constants.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js +0 -14
- package/lib/module/shared/utils/bounds/helpers/is-bounds-equal.js.map +0 -1
- package/lib/module/shared/utils/gesture/apply-offset-rules.js +0 -219
- package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +0 -1
- package/lib/module/shared/utils/reanimated/version.js +0 -7
- package/lib/module/shared/utils/reanimated/version.js.map +0 -1
- package/lib/typescript/blank-stack/components/overlay.d.ts +0 -5
- package/lib/typescript/blank-stack/components/overlay.d.ts.map +0 -1
- package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +0 -12
- package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.d.ts +0 -3
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.d.ts +0 -4
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.d.ts +0 -4
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.d.ts +0 -3
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.d.ts +0 -3
- package/lib/typescript/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-previous.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.d.ts +0 -20
- package/lib/typescript/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts +0 -4
- package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts.map +0 -1
- package/lib/typescript/blank-stack/utils/with-stack-navigation/types.d.ts +0 -22
- package/lib/typescript/blank-stack/utils/with-stack-navigation/types.d.ts.map +0 -1
- package/lib/typescript/native-stack/views/FooterComponent.d.ts +0 -7
- package/lib/typescript/native-stack/views/FooterComponent.d.ts.map +0 -1
- package/lib/typescript/shared/components/controllers/blank-stack-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/components/controllers/native-stack-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/providers/flags.provider.d.ts +0 -10
- package/lib/typescript/shared/providers/flags.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/keys.provider.d.ts +0 -18
- package/lib/typescript/shared/providers/keys.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/routes.provider.d.ts +0 -19
- package/lib/typescript/shared/providers/routes.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen-transition.provider.d.ts +0 -14
- package/lib/typescript/shared/providers/screen-transition.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/transition-styles.provider.d.ts +0 -14
- package/lib/typescript/shared/providers/transition-styles.provider.d.ts.map +0 -1
- package/lib/typescript/shared/types/core.types.d.ts.map +0 -1
- package/lib/typescript/shared/types/utils.types.d.ts +0 -5
- package/lib/typescript/shared/types/utils.types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/compute-stack-progress.d.ts +0 -3
- package/lib/typescript/shared/utils/animation/compute-stack-progress.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/constants.d.ts +0 -7
- package/lib/typescript/shared/utils/bounds/constants.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts +0 -7
- package/lib/typescript/shared/utils/bounds/helpers/is-bounds-equal.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +0 -38
- package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +0 -1
- package/lib/typescript/shared/utils/reanimated/version.d.ts +0 -2
- package/lib/typescript/shared/utils/reanimated/version.d.ts.map +0 -1
- package/src/blank-stack/components/overlay.tsx +0 -169
- package/src/blank-stack/hooks/use-overlay-animation.tsx +0 -86
- package/src/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.ts +0 -17
- package/src/blank-stack/utils/with-stack-navigation/hooks/use-stack-navigation-state.tsx +0 -267
- package/src/blank-stack/utils/with-stack-navigation/index.tsx +0 -74
- package/src/blank-stack/utils/with-stack-navigation/types.ts +0 -35
- package/src/native-stack/views/FooterComponent.tsx +0 -10
- package/src/shared/providers/flags.provider.tsx +0 -21
- package/src/shared/providers/keys.provider.tsx +0 -57
- package/src/shared/providers/routes.provider.tsx +0 -54
- package/src/shared/providers/screen-transition.provider.tsx +0 -41
- package/src/shared/types/utils.types.ts +0 -4
- package/src/shared/utils/animation/compute-stack-progress.ts +0 -16
- package/src/shared/utils/bounds/constants.ts +0 -40
- package/src/shared/utils/bounds/helpers/is-bounds-equal.ts +0 -24
- package/src/shared/utils/gesture/apply-offset-rules.ts +0 -312
- package/src/shared/utils/reanimated/version.ts +0 -5
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation → component-stack}/types.js +0 -0
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.js +0 -0
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.js +0 -0
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/compose-descriptors.js +0 -0
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.js +0 -0
- /package/lib/commonjs/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation → component-stack}/types.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/are-descriptors-equal.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/compose-descriptors.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/have-same-route-keys.js +0 -0
- /package/lib/module/{blank-stack/utils/with-stack-navigation/helpers → shared/utils/navigation}/routes-are-identical.js +0 -0
- /package/lib/typescript/{shared/components → native-stack}/controllers/native-stack-lifecycle.d.ts +0 -0
- /package/lib/typescript/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-closing-route-keys.d.ts +0 -0
- /package/lib/typescript/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.d.ts +0 -0
- /package/src/{blank-stack/utils/with-stack-navigation/hooks → shared/hooks/navigation}/use-previous.tsx +0 -0
|
@@ -90,25 +90,23 @@ export default function createProvider<
|
|
|
90
90
|
return context;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* HOC that wraps a component with the provider.
|
|
95
|
+
* Uses the Provider component internally to ensure hooks are called correctly.
|
|
96
|
+
*/
|
|
93
97
|
const withProvider = (Component: ComponentType<ContextValue>) => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (!
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const memoValue = useMemo(
|
|
104
|
-
() => (enabled ? value : null),
|
|
105
|
-
[enabled, value],
|
|
106
|
-
);
|
|
98
|
+
// Consumer component that reads context and passes to wrapped component
|
|
99
|
+
const ContextConsumer = () => {
|
|
100
|
+
const contextValue = useEnhancedContext();
|
|
101
|
+
if (!contextValue) return null;
|
|
102
|
+
return <Component {...contextValue} />;
|
|
103
|
+
};
|
|
107
104
|
|
|
105
|
+
return function WithProviderWrapper(props: ProviderProps) {
|
|
108
106
|
return (
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
</
|
|
107
|
+
<Provider {...props}>
|
|
108
|
+
<ContextConsumer />
|
|
109
|
+
</Provider>
|
|
112
110
|
);
|
|
113
111
|
};
|
|
114
112
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
|
|
2
2
|
import type { SharedValue } from "react-native-reanimated";
|
|
3
|
-
import type { Layout } from "../../types/core.types";
|
|
4
3
|
import {
|
|
5
4
|
type ActivationArea,
|
|
6
5
|
type GestureActivationArea,
|
|
7
6
|
GestureOffsetState,
|
|
8
7
|
type SideActivation,
|
|
9
8
|
} from "../../types/gesture.types";
|
|
9
|
+
import type { Layout } from "../../types/screen.types";
|
|
10
10
|
|
|
11
11
|
type Directions = {
|
|
12
12
|
vertical: boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { composeDescriptors } from "./compose-descriptors";
|
|
2
|
+
|
|
3
|
+
interface RouteWithKey {
|
|
4
|
+
key: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Aligns current routes with the latest route data while preserving references
|
|
9
|
+
* when possible for performance optimization
|
|
10
|
+
*/
|
|
11
|
+
export const alignRoutesWithLatest = <
|
|
12
|
+
Route extends RouteWithKey,
|
|
13
|
+
DescriptorMap extends Record<string, unknown>,
|
|
14
|
+
>(
|
|
15
|
+
currentRoutes: Route[],
|
|
16
|
+
currentDescriptors: DescriptorMap,
|
|
17
|
+
nextRoutes: Route[],
|
|
18
|
+
nextDescriptors: DescriptorMap,
|
|
19
|
+
): { routes: Route[]; descriptors: DescriptorMap } => {
|
|
20
|
+
// Early return for empty current routes
|
|
21
|
+
if (currentRoutes.length === 0) {
|
|
22
|
+
return {
|
|
23
|
+
routes: nextRoutes,
|
|
24
|
+
descriptors: composeDescriptors(
|
|
25
|
+
nextRoutes,
|
|
26
|
+
nextDescriptors,
|
|
27
|
+
currentDescriptors,
|
|
28
|
+
),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Create lookup map for efficient route finding
|
|
33
|
+
const nextRouteLookup = new Map<string, Route>();
|
|
34
|
+
for (const route of nextRoutes) {
|
|
35
|
+
nextRouteLookup.set(route.key, route);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Track if any changes occurred
|
|
39
|
+
let didChange = currentRoutes.length !== nextRoutes.length;
|
|
40
|
+
|
|
41
|
+
// Align routes, updating references where needed
|
|
42
|
+
const alignedRoutes = currentRoutes.map((route) => {
|
|
43
|
+
const nextRoute = nextRouteLookup.get(route.key);
|
|
44
|
+
|
|
45
|
+
if (!nextRoute) {
|
|
46
|
+
return route; // Keep current route if not in next
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (nextRoute !== route) {
|
|
50
|
+
didChange = true;
|
|
51
|
+
return nextRoute; // Update to new route reference
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return route; // Keep current route reference
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// Only create new array if changes occurred
|
|
58
|
+
const routesResult = didChange ? alignedRoutes : currentRoutes;
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
routes: routesResult,
|
|
62
|
+
descriptors: composeDescriptors(
|
|
63
|
+
routesResult,
|
|
64
|
+
nextDescriptors,
|
|
65
|
+
currentDescriptors,
|
|
66
|
+
),
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
a:
|
|
5
|
-
b:
|
|
1
|
+
export const areDescriptorsEqual = <
|
|
2
|
+
DescriptorMap extends Record<string, unknown>,
|
|
3
|
+
>(
|
|
4
|
+
a: DescriptorMap,
|
|
5
|
+
b: DescriptorMap,
|
|
6
6
|
): boolean => {
|
|
7
7
|
if (a === b) return true;
|
|
8
8
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface RouteWithKey {
|
|
2
|
+
key: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export const composeDescriptors = <
|
|
6
|
+
Route extends RouteWithKey,
|
|
7
|
+
DescriptorMap extends Record<string, unknown>,
|
|
8
|
+
>(
|
|
9
|
+
routes: Route[],
|
|
10
|
+
nextDescriptors: DescriptorMap,
|
|
11
|
+
currentDescriptors: DescriptorMap,
|
|
12
|
+
): DescriptorMap => {
|
|
13
|
+
const composed = {} as DescriptorMap;
|
|
14
|
+
|
|
15
|
+
for (const route of routes) {
|
|
16
|
+
(composed as Record<string, unknown>)[route.key] =
|
|
17
|
+
nextDescriptors[route.key] ?? currentDescriptors[route.key];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return composed;
|
|
21
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface RouteWithKey {
|
|
2
|
+
key: string;
|
|
3
|
+
}
|
|
2
4
|
|
|
3
|
-
export const haveSameRouteKeys = (
|
|
4
|
-
previous: Route
|
|
5
|
-
next: Route
|
|
5
|
+
export const haveSameRouteKeys = <Route extends RouteWithKey>(
|
|
6
|
+
previous: Route[],
|
|
7
|
+
next: Route[],
|
|
6
8
|
): boolean => {
|
|
7
9
|
if (previous.length !== next.length) {
|
|
8
10
|
return false;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface RouteWithKey {
|
|
2
|
+
key: string;
|
|
3
|
+
}
|
|
2
4
|
|
|
3
|
-
export const routesAreIdentical = (
|
|
4
|
-
a: Route
|
|
5
|
-
b: Route
|
|
5
|
+
export const routesAreIdentical = <Route extends RouteWithKey>(
|
|
6
|
+
a: Route[],
|
|
7
|
+
b: Route[],
|
|
6
8
|
): boolean => {
|
|
7
9
|
if (a === b) return true;
|
|
8
10
|
if (a.length !== b.length) return false;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { useClosingRouteKeys } from "../../hooks/navigation/use-closing-route-keys";
|
|
2
|
+
import { AnimationStore } from "../../stores/animation.store";
|
|
3
|
+
import { GestureStore } from "../../stores/gesture.store";
|
|
4
|
+
import { readSharedValue } from "../read-shared-value";
|
|
5
|
+
import { composeDescriptors } from "./compose-descriptors";
|
|
6
|
+
|
|
7
|
+
interface RouteWithKey {
|
|
8
|
+
key: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type SyncRoutesWithRemovedParams<
|
|
12
|
+
Route extends RouteWithKey,
|
|
13
|
+
DescriptorMap extends Record<string, unknown>,
|
|
14
|
+
> = {
|
|
15
|
+
prevRoutes: Route[];
|
|
16
|
+
prevDescriptors: DescriptorMap;
|
|
17
|
+
nextRoutes: Route[];
|
|
18
|
+
nextDescriptors: DescriptorMap;
|
|
19
|
+
closingRouteKeys: ReturnType<typeof useClosingRouteKeys>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const isRouteDismissing = (routeKey: string): boolean => {
|
|
23
|
+
const gestures = GestureStore.getRouteGestures(routeKey);
|
|
24
|
+
const animations = AnimationStore.getAll(routeKey);
|
|
25
|
+
|
|
26
|
+
const isBeingDragged = readSharedValue(gestures.isDragging) === 1;
|
|
27
|
+
const isProgrammaticallyDismissing =
|
|
28
|
+
readSharedValue(gestures.isDismissing) === 1;
|
|
29
|
+
const isClosing = readSharedValue(animations.closing) === 1;
|
|
30
|
+
const hasNotFullyEntered = readSharedValue(animations.progress) < 0.5;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
isBeingDragged ||
|
|
34
|
+
isProgrammaticallyDismissing ||
|
|
35
|
+
isClosing ||
|
|
36
|
+
hasNotFullyEntered
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Synchronizes routes while handling removed routes that may still be animating out.
|
|
42
|
+
* This manages the complex logic of keeping closing routes visible during transitions.
|
|
43
|
+
*/
|
|
44
|
+
export const syncRoutesWithRemoved = <
|
|
45
|
+
Route extends RouteWithKey,
|
|
46
|
+
DescriptorMap extends Record<string, unknown>,
|
|
47
|
+
>({
|
|
48
|
+
prevRoutes,
|
|
49
|
+
prevDescriptors,
|
|
50
|
+
nextRoutes,
|
|
51
|
+
nextDescriptors,
|
|
52
|
+
closingRouteKeys,
|
|
53
|
+
}: SyncRoutesWithRemovedParams<Route, DescriptorMap>): {
|
|
54
|
+
routes: Route[];
|
|
55
|
+
descriptors: DescriptorMap;
|
|
56
|
+
} => {
|
|
57
|
+
if (nextRoutes.length === 0) {
|
|
58
|
+
closingRouteKeys.clear();
|
|
59
|
+
return {
|
|
60
|
+
routes: nextRoutes,
|
|
61
|
+
descriptors: {} as DescriptorMap,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Reorder mid-dismiss routes to the end so they animate out above newer routes.
|
|
66
|
+
// Only middle routes are moved - first (root) and last (focused) stay in place.
|
|
67
|
+
const stableRoutes: Route[] = [];
|
|
68
|
+
const dismissingMiddleRoutes: Route[] = [];
|
|
69
|
+
|
|
70
|
+
for (let i = 0; i < nextRoutes.length; i++) {
|
|
71
|
+
const route = nextRoutes[i];
|
|
72
|
+
const isFirstOrLast = i === 0 || i === nextRoutes.length - 1;
|
|
73
|
+
|
|
74
|
+
if (!isFirstOrLast && isRouteDismissing(route.key)) {
|
|
75
|
+
closingRouteKeys.add(route.key);
|
|
76
|
+
dismissingMiddleRoutes.push(route);
|
|
77
|
+
} else {
|
|
78
|
+
stableRoutes.push(route);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const routes: Route[] = [...stableRoutes, ...dismissingMiddleRoutes];
|
|
83
|
+
|
|
84
|
+
// Handle focus transitions (when the top route changes)
|
|
85
|
+
const previousFocusedRoute = prevRoutes[prevRoutes.length - 1];
|
|
86
|
+
const nextFocusedRoute = nextRoutes[nextRoutes.length - 1];
|
|
87
|
+
const focusHasChanged =
|
|
88
|
+
previousFocusedRoute &&
|
|
89
|
+
nextFocusedRoute &&
|
|
90
|
+
previousFocusedRoute.key !== nextFocusedRoute.key;
|
|
91
|
+
|
|
92
|
+
if (focusHasChanged) {
|
|
93
|
+
const nextRouteExistedBefore = prevRoutes.some(
|
|
94
|
+
(route) => route.key === nextFocusedRoute.key,
|
|
95
|
+
);
|
|
96
|
+
const previousRouteStillExists = nextRoutes.some(
|
|
97
|
+
(route) => route.key === previousFocusedRoute.key,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
if (nextRouteExistedBefore && !previousRouteStillExists) {
|
|
101
|
+
// Back navigation: previous route was popped, keep it for exit animation
|
|
102
|
+
closingRouteKeys.add(previousFocusedRoute.key);
|
|
103
|
+
routes.push(previousFocusedRoute);
|
|
104
|
+
} else {
|
|
105
|
+
// Forward navigation: new route gained focus
|
|
106
|
+
closingRouteKeys.remove(nextFocusedRoute.key);
|
|
107
|
+
|
|
108
|
+
if (!previousRouteStillExists) {
|
|
109
|
+
// Previous route was replaced, insert it underneath for transition
|
|
110
|
+
const insertIndex = Math.max(routes.length - 1, 0);
|
|
111
|
+
routes.splice(insertIndex, 0, previousFocusedRoute);
|
|
112
|
+
closingRouteKeys.remove(previousFocusedRoute.key);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
} else if (nextFocusedRoute) {
|
|
116
|
+
// Same focused route, ensure it's not marked as closing
|
|
117
|
+
closingRouteKeys.remove(nextFocusedRoute.key);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Clean up orphaned closing keys
|
|
121
|
+
const activeKeys = new Set(routes.map((route) => route.key));
|
|
122
|
+
for (const key of Array.from(closingRouteKeys.ref.current)) {
|
|
123
|
+
if (!activeKeys.has(key)) {
|
|
124
|
+
closingRouteKeys.remove(key);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
routes,
|
|
130
|
+
descriptors: composeDescriptors(routes, nextDescriptors, prevDescriptors),
|
|
131
|
+
};
|
|
132
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
executeOnUIRuntimeSync,
|
|
3
|
+
type SharedValue,
|
|
4
|
+
} from "react-native-reanimated";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Safely read a SharedValue from the UI thread.
|
|
8
|
+
* Avoids the "cannot read .value inside component render" warning.
|
|
9
|
+
*/
|
|
10
|
+
export const readSharedValue = executeOnUIRuntimeSync(
|
|
11
|
+
<T>(sv: SharedValue<T>): T => {
|
|
12
|
+
"worklet";
|
|
13
|
+
return sv.value;
|
|
14
|
+
},
|
|
15
|
+
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { TransitionDescriptor } from "../providers/keys.provider";
|
|
2
1
|
import { AnimationStore } from "../stores/animation.store";
|
|
3
2
|
import { BoundStore } from "../stores/bounds.store";
|
|
4
3
|
import { GestureStore } from "../stores/gesture.store";
|
|
4
|
+
import type { BaseStackDescriptor } from "../types/stack.types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Reset all stores for a given screen
|
|
7
|
+
* Reset all stores for a given screen.
|
|
8
|
+
* Accepts any descriptor that has a route with a key.
|
|
8
9
|
*/
|
|
9
|
-
export const resetStoresForScreen = (current:
|
|
10
|
+
export const resetStoresForScreen = (current: BaseStackDescriptor) => {
|
|
10
11
|
AnimationStore.clear(current.route.key);
|
|
11
12
|
GestureStore.clear(current.route.key);
|
|
12
13
|
BoundStore.clear(current.route.key);
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Overlay = void 0;
|
|
7
|
-
var _native = require("@react-navigation/native");
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _useScreenAnimation = require("../../shared/hooks/animation/use-screen-animation");
|
|
11
|
-
var _keys = require("../../shared/providers/keys.provider");
|
|
12
|
-
var _transitionStyles = require("../../shared/providers/transition-styles.provider");
|
|
13
|
-
var _useOverlayAnimation = require("../hooks/use-overlay-animation");
|
|
14
|
-
var _withStackNavigation = require("../utils/with-stack-navigation");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
const getActiveFloatOverlay = (scenes, index) => {
|
|
17
|
-
if (scenes.length === 0) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// When navigating back, closing scenes are kept at the top of the local stack
|
|
22
|
-
// while the focused index already points to the destination screen. We need to
|
|
23
|
-
// start scanning from the actual top of the stack so the overlay can animate
|
|
24
|
-
// out together with its closing screen instead of disappearing immediately.
|
|
25
|
-
const startIndex = Math.max(index, scenes.length - 1);
|
|
26
|
-
for (let i = startIndex; i >= 0; i--) {
|
|
27
|
-
const scene = scenes[i];
|
|
28
|
-
const options = scene?.descriptor?.options;
|
|
29
|
-
if (options?.overlayMode === "float" && options?.overlayShown) {
|
|
30
|
-
return {
|
|
31
|
-
scene,
|
|
32
|
-
overlayIndex: i
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
const OverlayHost = ({
|
|
39
|
-
scene,
|
|
40
|
-
isFloating
|
|
41
|
-
}) => {
|
|
42
|
-
const OverlayComponent = scene.descriptor.options.overlay;
|
|
43
|
-
const {
|
|
44
|
-
overlayAnimation,
|
|
45
|
-
optimisticActiveIndex
|
|
46
|
-
} = (0, _useOverlayAnimation.useOverlayAnimation)();
|
|
47
|
-
const {
|
|
48
|
-
scenes,
|
|
49
|
-
routes
|
|
50
|
-
} = (0, _withStackNavigation.useStackNavigationContext)();
|
|
51
|
-
const overlaySceneIndex = (0, _react.useMemo)(() => {
|
|
52
|
-
return scenes.findIndex(stackScene => stackScene.route.key === scene.route.key);
|
|
53
|
-
}, [scenes, scene.route.key]);
|
|
54
|
-
const focusedScene = (0, _react.useMemo)(() => {
|
|
55
|
-
if (overlaySceneIndex === -1) {
|
|
56
|
-
return scene;
|
|
57
|
-
}
|
|
58
|
-
const maxOffset = Math.max(scenes.length - overlaySceneIndex - 1, 0);
|
|
59
|
-
const normalizedIndex = Math.min(Math.max(optimisticActiveIndex, 0), maxOffset);
|
|
60
|
-
return scenes[overlaySceneIndex + normalizedIndex] ?? scene;
|
|
61
|
-
}, [overlaySceneIndex, optimisticActiveIndex, scenes, scene]);
|
|
62
|
-
const screenAnimation = (0, _useScreenAnimation.useScreenAnimation)();
|
|
63
|
-
if (!OverlayComponent) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
const overlayProps = {
|
|
67
|
-
routes,
|
|
68
|
-
overlayAnimation,
|
|
69
|
-
screenAnimation,
|
|
70
|
-
focusedRoute: focusedScene.route,
|
|
71
|
-
focusedIndex: optimisticActiveIndex,
|
|
72
|
-
meta: focusedScene.descriptor.options.meta,
|
|
73
|
-
navigation: scene.descriptor.navigation
|
|
74
|
-
};
|
|
75
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
76
|
-
pointerEvents: "box-none",
|
|
77
|
-
style: [styles.container, isFloating ? styles.floating : {
|
|
78
|
-
zIndex: 1
|
|
79
|
-
}, styles.absolute],
|
|
80
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationContext.Provider, {
|
|
81
|
-
value: scene.descriptor.navigation,
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationRouteContext.Provider, {
|
|
83
|
-
value: scene.route,
|
|
84
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
85
|
-
pointerEvents: "box-none",
|
|
86
|
-
style: styles.overlay,
|
|
87
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OverlayComponent, {
|
|
88
|
-
...overlayProps
|
|
89
|
-
})
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
const FloatOverlay = () => {
|
|
96
|
-
const {
|
|
97
|
-
scenes,
|
|
98
|
-
focusedIndex
|
|
99
|
-
} = (0, _withStackNavigation.useStackNavigationContext)();
|
|
100
|
-
const activeOverlay = (0, _react.useMemo)(() => getActiveFloatOverlay(scenes, focusedIndex), [scenes, focusedIndex]);
|
|
101
|
-
if (!activeOverlay) {
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
const {
|
|
105
|
-
scene,
|
|
106
|
-
overlayIndex
|
|
107
|
-
} = activeOverlay;
|
|
108
|
-
const previous = scenes[overlayIndex - 1]?.descriptor;
|
|
109
|
-
const current = scene.descriptor;
|
|
110
|
-
const next = scenes[overlayIndex + 1]?.descriptor;
|
|
111
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_keys.KeysProvider, {
|
|
112
|
-
current: current,
|
|
113
|
-
previous: previous,
|
|
114
|
-
next: next,
|
|
115
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_transitionStyles.TransitionStylesProvider, {
|
|
116
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OverlayHost, {
|
|
117
|
-
scene: scene,
|
|
118
|
-
isFloating: true
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
const ScreenOverlay = () => {
|
|
124
|
-
const {
|
|
125
|
-
current
|
|
126
|
-
} = (0, _keys.useKeys)();
|
|
127
|
-
const options = current.options;
|
|
128
|
-
if (!options.overlayShown || options.overlayMode !== "screen") {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
const scene = {
|
|
132
|
-
descriptor: current,
|
|
133
|
-
route: current.route
|
|
134
|
-
};
|
|
135
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(OverlayHost, {
|
|
136
|
-
scene: scene
|
|
137
|
-
});
|
|
138
|
-
};
|
|
139
|
-
const Overlay = exports.Overlay = {
|
|
140
|
-
Float: FloatOverlay,
|
|
141
|
-
Screen: ScreenOverlay
|
|
142
|
-
};
|
|
143
|
-
const styles = _reactNative.StyleSheet.create({
|
|
144
|
-
overlay: {
|
|
145
|
-
..._reactNative.StyleSheet.absoluteFillObject,
|
|
146
|
-
zIndex: 1
|
|
147
|
-
},
|
|
148
|
-
container: {
|
|
149
|
-
flex: 1
|
|
150
|
-
},
|
|
151
|
-
absolute: _reactNative.StyleSheet.absoluteFillObject,
|
|
152
|
-
floating: {
|
|
153
|
-
zIndex: 1000
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
//# sourceMappingURL=overlay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_react","_reactNative","_useScreenAnimation","_keys","_transitionStyles","_useOverlayAnimation","_withStackNavigation","_jsxRuntime","getActiveFloatOverlay","scenes","index","length","startIndex","Math","max","i","scene","options","descriptor","overlayMode","overlayShown","overlayIndex","OverlayHost","isFloating","OverlayComponent","overlay","overlayAnimation","optimisticActiveIndex","useOverlayAnimation","routes","useStackNavigationContext","overlaySceneIndex","useMemo","findIndex","stackScene","route","key","focusedScene","maxOffset","normalizedIndex","min","screenAnimation","useScreenAnimation","overlayProps","focusedRoute","focusedIndex","meta","navigation","jsx","Animated","View","pointerEvents","style","styles","container","floating","zIndex","absolute","children","NavigationContext","Provider","value","NavigationRouteContext","FloatOverlay","activeOverlay","previous","current","next","KeysProvider","TransitionStylesProvider","ScreenOverlay","useKeys","Overlay","exports","Float","Screen","StyleSheet","create","absoluteFillObject","flex"],"sourceRoot":"../../../../src","sources":["blank-stack/components/overlay.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AAMA,IAAAO,oBAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAO3E,MAAMS,qBAAqB,GAAGA,CAACC,MAAyB,EAAEC,KAAa,KAAK;EAC3E,IAAID,MAAM,CAACE,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;EACA;EACA,MAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACJ,KAAK,EAAED,MAAM,CAACE,MAAM,GAAG,CAAC,CAAC;EAErD,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACrC,MAAMC,KAAK,GAAGP,MAAM,CAACM,CAAC,CAAC;IACvB,MAAME,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;IAE1C,IAAIA,OAAO,EAAEE,WAAW,KAAK,OAAO,IAAIF,OAAO,EAAEG,YAAY,EAAE;MAC9D,OAAO;QAAEJ,KAAK;QAAEK,YAAY,EAAEN;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,MAAMO,WAAW,GAAGA,CAAC;EAAEN,KAAK;EAAEO;AAA6B,CAAC,KAAK;EAChE,MAAMC,gBAAgB,GAAGR,KAAK,CAACE,UAAU,CAACD,OAAO,CAACQ,OAAO;EAEzD,MAAM;IAAEC,gBAAgB;IAAEC;EAAsB,CAAC,GAAG,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AU,CAACC,MAAM,CAAC;EAChCpD,OAAO,EAAE;IACR,GAAGmD,uBAAU,CAACE,kBAAkB;IAChCtB,MAAM,EAAE;EACT,CAAC;EACDF,SAAS,EAAE;IACVyB,IAAI,EAAE;EACP,CAAC;EACDtB,QAAQ,EAAEmB,uBAAU,CAACE,kBAAkB;EACvCvB,QAAQ,EAAE;IACTC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useOverlayAnimation = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
11
|
-
var _useSharedValueState = require("../../shared/hooks/reanimated/use-shared-value-state");
|
|
12
|
-
var _keys = require("../../shared/providers/keys.provider");
|
|
13
|
-
var _animation = require("../../shared/stores/animation.store");
|
|
14
|
-
var _withStackNavigation = require("../utils/with-stack-navigation");
|
|
15
|
-
/**
|
|
16
|
-
* Aggregates progress values for the overlay owner and every scene that sits
|
|
17
|
-
* above it in the stack. The result can be consumed by floating overlays to
|
|
18
|
-
* drive animations that span multiple screens.
|
|
19
|
-
*/
|
|
20
|
-
const useOverlayAnimation = () => {
|
|
21
|
-
const {
|
|
22
|
-
current
|
|
23
|
-
} = (0, _keys.useKeys)();
|
|
24
|
-
const {
|
|
25
|
-
scenes
|
|
26
|
-
} = (0, _withStackNavigation.useStackNavigationContext)();
|
|
27
|
-
const routeKey = current?.route?.key;
|
|
28
|
-
const progressValues = (0, _react.useMemo)(() => {
|
|
29
|
-
if (!routeKey) {
|
|
30
|
-
return [];
|
|
31
|
-
}
|
|
32
|
-
const overlayIndex = scenes.findIndex(scene => scene.route.key === routeKey);
|
|
33
|
-
if (overlayIndex === -1) {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
return scenes.slice(overlayIndex).map(scene => {
|
|
37
|
-
return _animation.AnimationStore.getAll(scene.route.key);
|
|
38
|
-
});
|
|
39
|
-
}, [routeKey, scenes]);
|
|
40
|
-
const accumulatedProgress = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
let total = 0;
|
|
44
|
-
for (let i = 0; i < progressValues.length; i += 1) {
|
|
45
|
-
total += progressValues[i].progress.value;
|
|
46
|
-
}
|
|
47
|
-
return total;
|
|
48
|
-
}, [progressValues]);
|
|
49
|
-
const optimisticActiveIndex = (0, _useSharedValueState.useSharedValueState)((0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
50
|
-
"worklet";
|
|
51
|
-
|
|
52
|
-
const activeIndex = progressValues.length - 1;
|
|
53
|
-
const isOneDismissing = Number(progressValues.some(value => value.closing.value > 0));
|
|
54
|
-
const optimisticIndex = activeIndex - isOneDismissing;
|
|
55
|
-
return optimisticIndex;
|
|
56
|
-
}));
|
|
57
|
-
const screen = (0, _reactNative.useWindowDimensions)();
|
|
58
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
59
|
-
const overlayAnimation = (0, _reactNativeReanimated.useDerivedValue)(() => ({
|
|
60
|
-
progress: accumulatedProgress.value,
|
|
61
|
-
layouts: {
|
|
62
|
-
screen
|
|
63
|
-
},
|
|
64
|
-
insets
|
|
65
|
-
}));
|
|
66
|
-
return {
|
|
67
|
-
overlayAnimation,
|
|
68
|
-
optimisticActiveIndex
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
exports.useOverlayAnimation = useOverlayAnimation;
|
|
72
|
-
//# sourceMappingURL=use-overlay-animation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_useSharedValueState","_keys","_animation","_withStackNavigation","useOverlayAnimation","current","useKeys","scenes","useStackNavigationContext","routeKey","route","key","progressValues","useMemo","overlayIndex","findIndex","scene","slice","map","AnimationStore","getAll","accumulatedProgress","useDerivedValue","total","i","length","progress","value","optimisticActiveIndex","useSharedValueState","activeIndex","isOneDismissing","Number","some","closing","optimisticIndex","screen","useWindowDimensions","insets","useSafeAreaInsets","overlayAnimation","layouts","exports"],"sourceRoot":"../../../../src","sources":["blank-stack/hooks/use-overlay-animation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,oBAAA,GAAAP,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMQ,mBAAmB,GAAGA,CAAA,KAG9B;EACJ,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EAC7B,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,8CAAyB,EAAC,CAAC;EAC9C,MAAMC,QAAQ,GAAGJ,OAAO,EAAEK,KAAK,EAAEC,GAAG;EAEpC,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAAC,MAAM;IACpC,IAAI,CAACJ,QAAQ,EAAE;MACd,OAAO,EAAE;IACV;IAEA,MAAMK,YAAY,GAAGP,MAAM,CAACQ,SAAS,CACnCC,KAAK,IAAKA,KAAK,CAACN,KAAK,CAACC,GAAG,KAAKF,QAChC,CAAC;IAED,IAAIK,YAAY,KAAK,CAAC,CAAC,EAAE;MACxB,OAAO,EAAE;IACV;IAEA,OAAOP,MAAM,CAACU,KAAK,CAACH,YAAY,CAAC,CAACI,GAAG,CAAEF,KAAK,IAAK;MAChD,OAAOG,yB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}
|
package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["areDescriptorsEqual","a","b","aKeys","Object","keys","bKeys","length","every","key","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/helpers/are-descriptors-equal.ts"],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAGA,CAClCC,CAA0B,EAC1BC,CAA0B,KACb;EACb,IAAID,CAAC,KAAKC,CAAC,EAAE,OAAO,IAAI;EAExB,MAAMC,KAAK,GAAGC,MAAM,CAACC,IAAI,CAACJ,CAAC,CAAC;EAC5B,MAAMK,KAAK,GAAGF,MAAM,CAACC,IAAI,CAACH,CAAC,CAAC;EAE5B,IAAIC,KAAK,CAACI,MAAM,KAAKD,KAAK,CAACC,MAAM,EAAE,OAAO,KAAK;EAE/C,OAAOJ,KAAK,CAACK,KAAK,CAAEC,GAAG,IAAKR,CAAC,CAACQ,GAAG,CAAC,KAAKP,CAAC,CAACO,GAAG,CAAC,CAAC;AAC/C,CAAC;AAACC,OAAA,CAAAV,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["calculateActiveScreensLimit","routes","descriptors","length","limit","i","route","shouldKeepPrevious","key","options","detachPreviousScreen","Math","min"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/helpers/calculate-active-screens-limit.ts"],"mappings":";;;;;;AAGO,SAASA,2BAA2BA,CAC1CC,MAAgD,EAChDC,WAAoC,EAC3B;EACT,IAAID,MAAM,CAACE,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,CAAC;EACT;EAEA,IAAIC,KAAK,GAAG,CAAC;EAEb,KAAK,IAAIC,CAAC,GAAGJ,MAAM,CAACE,MAAM,GAAG,CAAC,EAAEE,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC5C,MAAMC,KAAK,GAAGL,MAAM,CAACI,CAAC,CAAC;IAEvB,MAAME,kBAAkB,GACvBL,WAAW,GAAGI,KAAK,CAACE,GAAG,CAAC,EAAEC,OAAO,EAAEC,oBAAoB,KAAK,IAAI;IAEjE,IAAIH,kBAAkB,EAAE;MACvBH,KAAK,EAAE;MACP;IACD;IAEA;EACD;EAEA,OAAOO,IAAI,CAACC,GAAG,CAACR,KAAK,EAAEH,MAAM,CAACE,MAAM,CAAC;AACtC","ignoreList":[]}
|
package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["composeDescriptors","routes","nextDescriptors","currentDescriptors","composed","route","key","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/helpers/compose-descriptors.ts"],"mappings":";;;;;;AAGO,MAAMA,kBAAkB,GAAGA,CACjCC,MAAuB,EACvBC,eAAwC,EACxCC,kBAA2C,KACd;EAC7B,MAAMC,QAAiC,GAAG,CAAC,CAAC;EAE5C,KAAK,MAAMC,KAAK,IAAIJ,MAAM,EAAE;IAC3BG,QAAQ,CAACC,KAAK,CAACC,GAAG,CAAC,GAClBJ,eAAe,CAACG,KAAK,CAACC,GAAG,CAAC,IAAIH,kBAAkB,CAACE,KAAK,CAACC,GAAG,CAAC;EAC7D;EAEA,OAAOF,QAAQ;AAChB,CAAC;AAACG,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["haveSameRouteKeys","previous","next","length","every","route","index","key","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/helpers/have-same-route-keys.ts"],"mappings":";;;;;;AAEO,MAAMA,iBAAiB,GAAGA,CAChCC,QAAyB,EACzBC,IAAqB,KACR;EACb,IAAID,QAAQ,CAACE,MAAM,KAAKD,IAAI,CAACC,MAAM,EAAE;IACpC,OAAO,KAAK;EACb;EAEA,OAAOF,QAAQ,CAACG,KAAK,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAKD,KAAK,EAAEE,GAAG,KAAKL,IAAI,CAACI,KAAK,CAAC,EAAEC,GAAG,CAAC;AACzE,CAAC;AAACC,OAAA,CAAAR,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/lib/commonjs/blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["routesAreIdentical","a","b","length","every","route","index","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/helpers/routes-are-identical.ts"],"mappings":";;;;;;AAEO,MAAMA,kBAAkB,GAAGA,CACjCC,CAAkB,EAClBC,CAAkB,KACL;EACb,IAAID,CAAC,KAAKC,CAAC,EAAE,OAAO,IAAI;EACxB,IAAID,CAAC,CAACE,MAAM,KAAKD,CAAC,CAACC,MAAM,EAAE,OAAO,KAAK;EAEvC,OAAOF,CAAC,CAACG,KAAK,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAKD,KAAK,KAAKH,CAAC,CAACI,KAAK,CAAC,CAAC;AACrD,CAAC;AAACC,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/lib/commonjs/blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","e","__esModule","default","useClosingRouteKeys","keysRef","useRef","Set","shared","useSharedValue","add","useStableCallback","key","keys","current","has","modify","prev","includes","push","remove","delete","index","indexOf","splice","clear","length","useMemo","ref","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/hooks/use-closing-route-keys.tsx"],"mappings":";;;;;;AAAA,IAAAA,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AC;EACH,CAAC,CAAC;EAEF,MAAMQ,KAAK,GAAG,IAAAd,0BAAiB,EAAC,MAAM;IACrC,MAAME,IAAI,GAAGR,OAAO,CAACS,OAAO;IAE5BD,IAAI,CAACY,KAAK,CAAC,CAAC;IACZjB,MAAM,CAACQ,MAAM,CAAEC,IAAI,IAAK;MACvB,SAAS;;MACTA,IAAI,CAACS,MAAM,GAAG,CAAC;MACf,OAAOT,IAAI;IACZ,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,OAAO,IAAAU,cAAO,EACb,OAAO;IACNC,GAAG,EAAEvB,OAAO;IACZG,MAAM;IACNE,GAAG;IACHU,MAAM;IACNK;EACD,CAAC,CAAC,EACF,CAACjB,MAAM,EAAEE,GAAG,EAAEU,MAAM,EAAEK,KAAK,CAC5B,CAAC;AACF,CAAC;AAACI,OAAA,CAAAzB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current","exports"],"sourceRoot":"../../../../../../src","sources":["blank-stack/utils/with-stack-navigation/hooks/use-previous.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,WAAW,GAAQC,KAAQ,IAAe;EACtD,MAAMC,GAAG,GAAG,IAAAC,aAAM,EAAI,IAAI,CAAC;EAE3B,IAAAC,gBAAS,EAAC,MAAM;IACfF,GAAG,CAACG,OAAO,GAAGJ,KAAK;EACpB,CAAC,CAAC;EAEF,OAAOC,GAAG,CAACG,OAAO;AACnB,CAAC;AAACC,OAAA,CAAAN,WAAA,GAAAA,WAAA","ignoreList":[]}
|