react-native-screen-transitions 3.3.0 → 3.4.0-alpha.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/README.md +323 -130
- package/lib/commonjs/blank-stack/components/stack-view.js +13 -29
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/blank-stack/components/stack-view.native.js +13 -29
- package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -1
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +2 -20
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/components/component-screen.js +1 -1
- package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
- package/lib/commonjs/component-stack/components/stack-view.js +11 -25
- package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +2 -20
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +2 -4
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/shared/animation/snap-to.js +1 -1
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +17 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +45 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +101 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +33 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +47 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +37 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +58 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +35 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +230 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -0
- package/lib/commonjs/shared/{utils/bounds/types/builder.js → components/create-boundary-component/types.js} +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/types.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +21 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js +40 -8
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +5 -5
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +9 -6
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -2
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +2 -2
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/scene-view.js +34 -0
- package/lib/commonjs/shared/components/scene-view.js.map +1 -0
- package/lib/commonjs/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/index.js +32 -0
- package/lib/commonjs/shared/components/screen-container/index.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +101 -0
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js +118 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +52 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +42 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +27 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +47 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
- package/lib/commonjs/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +36 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -0
- package/lib/commonjs/shared/configs/index.js +3 -1
- package/lib/commonjs/shared/configs/index.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +222 -203
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +8 -1
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +19 -9
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js +219 -28
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +30 -0
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-screen-state.js +2 -2
- package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +0 -19
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js +32 -0
- package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +38 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +2 -13
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/commonjs/shared/index.js +12 -2
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js +94 -0
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +77 -98
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +56 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +143 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +76 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +50 -3
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +74 -0
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/index.js +19 -0
- package/lib/commonjs/shared/providers/gestures/index.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/types.js +13 -0
- package/lib/commonjs/shared/providers/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/{hooks → providers}/gestures/use-build-gestures.js +25 -32
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +1 -0
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +19 -6
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +124 -77
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +46 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -0
- package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
- package/lib/commonjs/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -45
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/animation/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +14 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +91 -0
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +41 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +31 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +28 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/index.js +25 -0
- package/lib/commonjs/shared/providers/screen/descriptors/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +12 -11
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles.provider.js +37 -25
- package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/scroll-settle.provider.js +25 -0
- package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/core.provider.js +14 -8
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +14 -67
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +30 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
- package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js +101 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +58 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +37 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/managed.provider.js +36 -124
- package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/viewport.provider.js +33 -0
- package/lib/commonjs/shared/providers/viewport.provider.js.map +1 -0
- package/lib/commonjs/shared/stores/animation.store.js +33 -20
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +43 -0
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +23 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +22 -0
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +37 -0
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +247 -0
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +128 -0
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +309 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +123 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/state.js +102 -0
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/types.js +6 -0
- package/lib/commonjs/shared/stores/bounds/types.js.map +1 -0
- package/lib/commonjs/shared/stores/gesture.store.js +36 -16
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +4 -0
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/types/providers/direct-stack.types.js +6 -0
- package/lib/commonjs/shared/types/providers/direct-stack.types.js.map +1 -0
- package/lib/commonjs/shared/types/providers/managed-stack.types.js +6 -0
- package/lib/commonjs/shared/types/providers/managed-stack.types.js.map +1 -0
- package/lib/commonjs/shared/types/stack.types.js +4 -0
- package/lib/commonjs/shared/types/stack.types.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-many.js +32 -0
- package/lib/commonjs/shared/utils/animation/animate-many.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +41 -0
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +137 -0
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js +15 -0
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +20 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +67 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +40 -0
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/math.js +132 -0
- package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +45 -0
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +25 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +154 -21
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +89 -190
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +60 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +20 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js +6 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +295 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/types/options.js +6 -0
- package/lib/commonjs/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +1 -23
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js +2 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js +0 -28
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/commonjs/shared/utils/logger.js +1 -3
- package/lib/commonjs/shared/utils/logger.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +70 -0
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/commonjs/shared/utils/normalize-interpolated-style.js +68 -0
- package/lib/commonjs/shared/utils/normalize-interpolated-style.js.map +1 -0
- package/lib/commonjs/shared/utils/overlay/visibility.js +1 -2
- package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/commonjs/shared/utils/platform.js +13 -0
- package/lib/commonjs/shared/utils/platform.js.map +1 -0
- package/lib/module/blank-stack/components/stack-view.js +10 -25
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/blank-stack/components/stack-view.native.js +10 -25
- package/lib/module/blank-stack/components/stack-view.native.js.map +1 -1
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +3 -20
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/components/component-screen.js +1 -1
- package/lib/module/component-stack/components/component-screen.js.map +1 -1
- package/lib/module/component-stack/components/stack-view.js +9 -22
- package/lib/module/component-stack/components/stack-view.js.map +1 -1
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js +3 -20
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.native.js +1 -3
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +1 -1
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +12 -0
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +40 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +95 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +28 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +42 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +52 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +32 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +53 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +30 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +224 -0
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/types.js +4 -0
- package/lib/module/shared/components/create-boundary-component/types.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +17 -0
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js +42 -10
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +5 -5
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +11 -7
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +4 -3
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -1
- package/lib/module/shared/components/scene-view.js +29 -0
- package/lib/module/shared/components/scene-view.js.map +1 -0
- package/lib/module/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
- package/lib/module/shared/components/screen-container/index.js +28 -0
- package/lib/module/shared/components/screen-container/index.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/backdrop.js +96 -0
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/content.js +112 -0
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js +47 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +36 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +22 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +42 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
- package/lib/module/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -2
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
- package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/index.js +31 -0
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -0
- package/lib/module/shared/configs/index.js +4 -2
- package/lib/module/shared/configs/index.js.map +1 -1
- package/lib/module/shared/configs/presets.js +222 -203
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/configs/specs.js +7 -0
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +18 -8
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/animation/use-associated-style.js +221 -30
- package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +1 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +26 -0
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-screen-state.js +2 -2
- package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js +0 -20
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-tab-press-reset.js +28 -0
- package/lib/module/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +33 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +3 -14
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/module/shared/index.js +6 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/gestures.provider.js +87 -0
- package/lib/module/shared/providers/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +64 -85
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
- package/lib/module/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/module/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +47 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/module/shared/{utils/gesture/velocity.js → providers/gestures/helpers/gesture-physics.js} +56 -30
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +71 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/module/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +48 -3
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +70 -0
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
- package/lib/module/shared/providers/gestures/index.js +4 -0
- package/lib/module/shared/providers/gestures/index.js.map +1 -0
- package/lib/module/shared/providers/gestures/types.js +9 -0
- package/lib/module/shared/providers/gestures/types.js.map +1 -0
- package/lib/module/shared/{hooks → providers}/gestures/use-build-gestures.js +24 -31
- package/lib/module/shared/providers/gestures/use-build-gestures.js.map +1 -0
- package/lib/module/shared/providers/layout-anchor.provider.js +19 -6
- package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +124 -76
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +40 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -0
- package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
- package/lib/module/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -44
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/index.js +5 -0
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +10 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +84 -0
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +37 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +27 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +24 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/index.js +4 -0
- package/lib/module/shared/providers/screen/descriptors/index.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +12 -11
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles.provider.js +35 -24
- package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
- package/lib/module/shared/providers/scroll-settle.provider.js +19 -0
- package/lib/module/shared/providers/scroll-settle.provider.js.map +1 -0
- package/lib/module/shared/providers/stack/core.provider.js +14 -8
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +15 -66
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +25 -0
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
- package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +2 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js +95 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +54 -0
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +33 -0
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
- package/lib/module/shared/providers/stack/managed.provider.js +37 -125
- package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/module/shared/providers/viewport.provider.js +27 -0
- package/lib/module/shared/providers/viewport.provider.js.map +1 -0
- package/lib/module/shared/stores/animation.store.js +34 -21
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +38 -0
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js +19 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/matching.js +17 -0
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +33 -0
- package/lib/module/shared/stores/bounds/index.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/clear.js +242 -0
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/presence.js +118 -0
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/registry.js +295 -0
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js +120 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/state.js +93 -0
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -0
- package/lib/module/shared/stores/bounds/types.js +4 -0
- package/lib/module/shared/stores/bounds/types.js.map +1 -0
- package/lib/module/shared/stores/gesture.store.js +36 -16
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +5 -0
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/types/providers/direct-stack.types.js +4 -0
- package/lib/module/shared/types/providers/direct-stack.types.js.map +1 -0
- package/lib/module/shared/types/providers/managed-stack.types.js +4 -0
- package/lib/module/shared/types/providers/managed-stack.types.js.map +1 -0
- package/lib/module/shared/types/stack.types.js +5 -0
- package/lib/module/shared/types/stack.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-many.js +27 -0
- package/lib/module/shared/utils/animation/animate-many.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +36 -0
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +132 -0
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/constants.js +11 -0
- package/lib/module/shared/utils/bounds/helpers/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate.js +16 -0
- package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/interpolators.js +62 -0
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js +35 -0
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/math.js +115 -0
- package/lib/module/shared/utils/bounds/helpers/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +40 -0
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +20 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/style-composers.js +154 -21
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +86 -187
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +54 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js +15 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js +4 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +290 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
- package/lib/module/shared/utils/bounds/types/options.js +4 -0
- package/lib/module/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
- package/lib/module/shared/utils/create-provider.js +1 -23
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js +2 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js.map +1 -1
- package/lib/module/shared/utils/gesture/resolve-ownership.js +0 -27
- package/lib/module/shared/utils/gesture/resolve-ownership.js.map +1 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js +10 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/module/shared/utils/logger.js +0 -1
- package/lib/module/shared/utils/logger.js.map +1 -1
- package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +66 -0
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/module/shared/utils/normalize-interpolated-style.js +64 -0
- package/lib/module/shared/utils/normalize-interpolated-style.js.map +1 -0
- package/lib/module/shared/utils/overlay/visibility.js +1 -1
- package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/module/shared/utils/platform.js +9 -0
- package/lib/module/shared/utils/platform.js.map +1 -0
- package/lib/typescript/blank-stack/components/stack-view.d.ts +1 -2
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts +1 -2
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/stack-view.d.ts +1 -2
- package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +2 -0
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +23 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +18 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +30 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +38 -0
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +9 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +3 -7
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +13 -0
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.d.ts +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -0
- package/lib/typescript/shared/components/{screen-container.d.ts → screen-container/index.d.ts} +1 -1
- package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -0
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts +6 -0
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +8 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +7 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.d.ts +3 -3
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.d.ts +2 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts +10 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -0
- package/lib/typescript/shared/configs/index.d.ts +2 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -1
- package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
- package/lib/typescript/shared/configs/specs.d.ts +1 -0
- package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +9 -5
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +27 -2
- package/lib/typescript/shared/hooks/animation/use-associated-style.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 -1
- package/lib/typescript/shared/hooks/navigation/use-history.d.ts +2 -1
- package/lib/typescript/shared/hooks/navigation/use-history.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts +4 -0
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -41
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts +10 -0
- package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts +8 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +27 -16
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +19 -0
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-screen-gesture-handlers.d.ts → providers/gestures/handlers/use-handlers.d.ts} +6 -4
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/check-gesture-activation.d.ts → providers/gestures/helpers/gesture-activation.d.ts} +7 -13
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/should-defer-to-child-claim.d.ts → providers/gestures/helpers/gesture-claims.d.ts} +2 -2
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +13 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +42 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/reset-gesture-values.d.ts → providers/gestures/helpers/gesture-reset.d.ts} +6 -4
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/determine-snap-target.d.ts → providers/gestures/helpers/gesture-targets.d.ts} +19 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +9 -0
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/index.d.ts +3 -0
- package/lib/typescript/shared/providers/gestures/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures.provider.d.ts → gestures/types.d.ts} +4 -20
- package/lib/typescript/shared/providers/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks → providers}/gestures/use-build-gestures.d.ts +2 -2
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +1 -0
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +6 -1
- package/lib/typescript/shared/providers/layout-anchor.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/animation/animation.provider.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/derivations.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/worklet.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/worklet.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +26 -0
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +24 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts +7 -7
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +12 -0
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts +4 -32
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts +7 -0
- package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.d.ts +1 -4
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/{use-local-routes.d.ts → use-local-routes/index.d.ts} +3 -3
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts +17 -0
- package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts +18 -0
- package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts +5 -37
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/viewport.provider.d.ts +13 -0
- package/lib/typescript/shared/providers/viewport.provider.d.ts.map +1 -0
- package/lib/typescript/shared/stores/animation.store.d.ts +6 -4
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +19 -0
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +32 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +6 -0
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +12 -0
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +16 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +11 -0
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts +62 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts +13 -4
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +85 -29
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +17 -3
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +27 -8
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +2 -2
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +8 -0
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/providers/direct-stack.types.d.ts +22 -0
- package/lib/typescript/shared/types/providers/direct-stack.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts +45 -0
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/screen.types.d.ts +62 -6
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/stack.types.d.ts +7 -0
- package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-many.d.ts +13 -0
- package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +14 -0
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/helpers/constants.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/interpolate-style.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +13 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +11 -0
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +38 -0
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +16 -0
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -4
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +18 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/{builder.d.ts → options.d.ts} +15 -7
- package/lib/typescript/shared/utils/bounds/types/{builder.d.ts.map → options.d.ts.map} +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts +2 -2
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts +2 -10
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +7 -2
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
- package/lib/typescript/shared/utils/logger.d.ts +0 -1
- package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +1 -4
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +25 -0
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +1 -3
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
- package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts +17 -0
- package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts.map +1 -0
- package/lib/typescript/shared/utils/overlay/visibility.d.ts +0 -1
- package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
- package/lib/typescript/shared/utils/platform.d.ts +5 -0
- package/lib/typescript/shared/utils/platform.d.ts.map +1 -0
- package/package.json +3 -1
- package/src/blank-stack/components/stack-view.native.tsx +15 -34
- package/src/blank-stack/components/stack-view.tsx +15 -34
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +2 -28
- package/src/component-stack/components/component-screen.tsx +1 -1
- package/src/component-stack/components/stack-view.tsx +8 -30
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +2 -28
- package/src/native-stack/views/NativeStackView.native.tsx +1 -4
- package/src/shared/animation/snap-to.ts +1 -1
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +16 -0
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +50 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +177 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +55 -0
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +59 -0
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +83 -0
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +47 -0
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +83 -0
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +40 -0
- package/src/shared/components/create-boundary-component/index.tsx +263 -0
- package/src/shared/components/create-boundary-component/types.ts +47 -0
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +29 -0
- package/src/shared/components/create-transition-aware-component.tsx +53 -9
- package/src/shared/components/native-screen.tsx +4 -8
- package/src/shared/components/overlay/variations/float-overlay.tsx +25 -28
- package/src/shared/components/overlay/variations/overlay-host.tsx +7 -12
- package/src/shared/components/overlay/variations/screen-overlay.tsx +6 -12
- package/src/shared/components/scene-view.tsx +32 -0
- package/src/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.ts +9 -5
- package/src/shared/components/screen-container/index.tsx +26 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +111 -0
- package/src/shared/components/screen-container/layers/content.tsx +133 -0
- package/src/shared/components/screen-container/layers/surface-container.tsx +55 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.ts +46 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +27 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +58 -0
- package/src/shared/{hooks/lifecycle/use-close-transition.ts → components/screen-lifecycle/hooks/use-close-transition/index.ts} +43 -20
- package/src/shared/{hooks/animation/use-high-refresh-rate.tsx → components/screen-lifecycle/hooks/use-high-refresh-rate.ts} +2 -2
- package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.ts +15 -4
- package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.ts +4 -4
- package/src/shared/components/screen-lifecycle/index.tsx +36 -0
- package/src/shared/configs/index.ts +3 -1
- package/src/shared/configs/presets.ts +189 -153
- package/src/shared/configs/specs.ts +8 -0
- package/src/shared/constants.ts +18 -6
- package/src/shared/hooks/animation/use-associated-style.ts +347 -0
- package/src/shared/hooks/gestures/use-screen-gesture.ts +1 -1
- package/src/shared/hooks/gestures/{use-scroll-registry.tsx → use-scroll-registry.ts} +1 -1
- package/src/shared/hooks/navigation/use-history.ts +1 -1
- package/src/shared/hooks/navigation/use-navigation-helpers.ts +25 -0
- package/src/shared/hooks/navigation/{use-previous.tsx → use-previous.ts} +1 -1
- package/src/shared/hooks/navigation/{use-screen-state.tsx → use-screen-state.ts} +3 -3
- package/src/shared/hooks/navigation/use-stack.tsx +1 -41
- package/src/shared/hooks/navigation/use-tab-press-reset.ts +41 -0
- package/src/shared/hooks/reanimated/use-shared-value-ref.ts +43 -0
- package/src/shared/hooks/reanimated/use-shared-value-state.ts +2 -13
- package/src/shared/index.ts +20 -1
- package/src/shared/providers/gestures/gestures.provider.tsx +127 -0
- package/src/shared/{hooks/gestures/use-screen-gesture-handlers.ts → providers/gestures/handlers/use-handlers.ts} +109 -126
- package/src/shared/{utils/gesture/check-gesture-activation.ts → providers/gestures/helpers/gesture-activation.ts} +6 -13
- package/src/shared/{utils/gesture/should-defer-to-child-claim.ts → providers/gestures/helpers/gesture-claims.ts} +1 -1
- package/src/shared/providers/gestures/helpers/gesture-directions.ts +97 -0
- package/src/shared/{utils/gesture/velocity.ts → providers/gestures/helpers/gesture-physics.ts} +97 -48
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +108 -0
- package/src/shared/{utils/gesture/determine-snap-target.ts → providers/gestures/helpers/gesture-targets.ts} +81 -4
- package/src/shared/providers/gestures/helpers/register-direction-claims.ts +84 -0
- package/src/shared/providers/gestures/index.tsx +10 -0
- package/src/shared/providers/gestures/types.ts +45 -0
- package/src/shared/{hooks/gestures/use-build-gestures.tsx → providers/gestures/use-build-gestures.ts} +30 -45
- package/src/shared/providers/layout-anchor.provider.tsx +34 -3
- package/src/shared/providers/register-bounds.provider.tsx +169 -113
- package/src/shared/providers/screen/animation/animation.provider.tsx +57 -0
- package/src/shared/{utils/animation → providers/screen/animation/helpers}/derivations.ts +5 -5
- package/src/shared/{hooks/animation/use-screen-animation.tsx → providers/screen/animation/helpers/pipeline.ts} +109 -48
- package/src/shared/{utils/animation → providers/screen/animation/helpers}/worklet.ts +1 -1
- package/src/shared/providers/screen/animation/index.tsx +5 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +6 -0
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +113 -0
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +67 -0
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +30 -0
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +29 -0
- package/src/shared/providers/screen/descriptors/index.tsx +6 -0
- package/src/shared/providers/screen/screen-composer.tsx +12 -9
- package/src/shared/providers/screen/styles.provider.tsx +122 -105
- package/src/shared/providers/scroll-settle.provider.tsx +24 -0
- package/src/shared/providers/stack/core.provider.tsx +13 -8
- package/src/shared/providers/stack/direct.provider.tsx +19 -110
- package/src/shared/providers/stack/helpers/use-closing-route-map.ts +28 -0
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.ts +2 -5
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.ts +1 -3
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.ts +1 -3
- package/src/shared/providers/stack/helpers/use-local-routes/index.ts +147 -0
- package/src/shared/providers/stack/helpers/use-processed-routes.ts +85 -0
- package/src/shared/providers/stack/helpers/use-stack-derived.ts +43 -0
- package/src/shared/providers/stack/managed.provider.tsx +65 -190
- package/src/shared/providers/viewport.provider.tsx +39 -0
- package/src/shared/stores/animation.store.ts +42 -20
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +101 -0
- package/src/shared/stores/bounds/helpers/keys.ts +21 -0
- package/src/shared/stores/bounds/helpers/matching.ts +25 -0
- package/src/shared/stores/bounds/index.ts +60 -0
- package/src/shared/stores/bounds/internals/clear.ts +335 -0
- package/src/shared/stores/bounds/internals/presence.ts +146 -0
- package/src/shared/stores/bounds/internals/registry.ts +408 -0
- package/src/shared/stores/bounds/internals/resolver.ts +213 -0
- package/src/shared/stores/bounds/internals/state.ts +115 -0
- package/src/shared/stores/bounds/types.ts +76 -0
- package/src/shared/stores/gesture.store.ts +52 -27
- package/src/shared/types/animation.types.ts +92 -30
- package/src/shared/types/bounds.types.ts +25 -5
- package/src/shared/types/gesture.types.ts +29 -8
- package/src/shared/types/index.ts +11 -0
- package/src/shared/types/overlay.types.ts +12 -0
- package/src/shared/types/providers/direct-stack.types.ts +35 -0
- package/src/shared/types/providers/managed-stack.types.ts +59 -0
- package/src/shared/types/screen.types.ts +66 -6
- package/src/shared/types/stack.types.ts +8 -0
- package/src/shared/utils/animation/animate-many.ts +40 -0
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +48 -0
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +180 -0
- package/src/shared/utils/bounds/helpers/constants.ts +10 -0
- package/src/shared/utils/bounds/helpers/geometry.ts +4 -3
- package/src/shared/utils/bounds/helpers/interpolate-style.ts +2 -2
- package/src/shared/utils/bounds/helpers/interpolate.ts +19 -0
- package/src/shared/utils/bounds/helpers/interpolators.ts +108 -0
- package/src/shared/utils/bounds/helpers/link-accessor.ts +40 -0
- package/src/shared/utils/bounds/helpers/math.ts +161 -0
- package/src/shared/utils/bounds/helpers/navigation-accessor.ts +61 -0
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +26 -0
- package/src/shared/utils/bounds/helpers/style-composers.ts +132 -57
- package/src/shared/utils/bounds/index.ts +115 -254
- package/src/shared/utils/bounds/sugar/navigation/helpers.ts +74 -0
- package/src/shared/utils/bounds/sugar/navigation/index.ts +14 -0
- package/src/shared/utils/bounds/sugar/navigation/types.ts +26 -0
- package/src/shared/utils/bounds/sugar/navigation/zoom.ts +348 -0
- package/src/shared/utils/bounds/types/{builder.ts → options.ts} +26 -18
- package/src/shared/utils/create-provider.tsx +0 -27
- package/src/shared/utils/gesture/find-collapse-target.ts +2 -3
- package/src/shared/utils/gesture/resolve-ownership.ts +1 -37
- package/src/shared/utils/gesture/validate-snap-points.ts +17 -5
- package/src/shared/utils/logger.ts +0 -3
- package/src/shared/utils/navigation/compose-descriptors.ts +1 -3
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +89 -0
- package/src/shared/utils/navigation/sync-routes-with-removed.ts +1 -4
- package/src/shared/utils/normalize-interpolated-style.ts +67 -0
- package/src/shared/utils/overlay/visibility.ts +1 -1
- package/src/shared/utils/platform.ts +6 -0
- package/lib/commonjs/shared/components/screen-container.js +0 -129
- package/lib/commonjs/shared/components/screen-container.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle.js +0 -29
- package/lib/commonjs/shared/components/screen-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
- package/lib/commonjs/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures.provider.js +0 -169
- package/lib/commonjs/shared/providers/gestures.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/keys.provider.js +0 -40
- package/lib/commonjs/shared/providers/screen/keys.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js +0 -23
- package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +0 -93
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds.store.js +0 -231
- package/lib/commonjs/shared/stores/bounds.store.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/derivations.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/worklet.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/determine-dismissal.js +0 -50
- package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/determine-snap-target.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js +0 -17
- package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js +0 -56
- package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/velocity.js +0 -111
- package/lib/commonjs/shared/utils/gesture/velocity.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +0 -1
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js +0 -20
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/module/shared/components/screen-container.js +0 -123
- package/lib/module/shared/components/screen-container.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle.js +0 -24
- package/lib/module/shared/components/screen-lifecycle.js.map +0 -1
- package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
- package/lib/module/shared/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
- package/lib/module/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
- package/lib/module/shared/providers/gestures.provider.js +0 -162
- package/lib/module/shared/providers/gestures.provider.js.map +0 -1
- package/lib/module/shared/providers/screen/keys.provider.js +0 -35
- package/lib/module/shared/providers/screen/keys.provider.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/active-screens-limit.js +0 -19
- package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js +0 -87
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
- package/lib/module/shared/stores/bounds.store.js +0 -227
- package/lib/module/shared/stores/bounds.store.js.map +0 -1
- package/lib/module/shared/utils/animation/derivations.js.map +0 -1
- package/lib/module/shared/utils/animation/worklet.js.map +0 -1
- package/lib/module/shared/utils/bounds/types/builder.js +0 -4
- package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/module/shared/utils/gesture/determine-dismissal.js +0 -45
- package/lib/module/shared/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/module/shared/utils/gesture/determine-snap-target.js.map +0 -1
- package/lib/module/shared/utils/gesture/map-gesture-to-progress.js +0 -12
- package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/module/shared/utils/gesture/reset-gesture-values.js +0 -51
- package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/module/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
- package/lib/module/shared/utils/gesture/velocity.js.map +0 -1
- package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
- package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
- package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +0 -1
- package/lib/module/shared/utils/navigation/routes-are-identical.js.map +0 -1
- package/lib/module/shared/utils/reset-stores-for-screen.js +0 -15
- package/lib/module/shared/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/typescript/shared/components/screen-container.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle.d.ts +0 -12
- package/lib/typescript/shared/components/screen-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +0 -8
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture-handlers.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts +0 -13
- package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/use-backdrop-pointer-events.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts +0 -22
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +0 -9
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds.store.d.ts +0 -43
- package/lib/typescript/shared/stores/bounds.store.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/derivations.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/worklet.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts +0 -24
- package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/determine-snap-target.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts +0 -5
- package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/should-defer-to-child-claim.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/velocity.d.ts +0 -26
- package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +0 -6
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +0 -6
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +0 -1
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +0 -7
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +0 -1
- package/src/shared/components/screen-container.tsx +0 -138
- package/src/shared/components/screen-lifecycle.tsx +0 -32
- package/src/shared/hooks/animation/use-associated-style.tsx +0 -71
- package/src/shared/providers/gestures.provider.tsx +0 -254
- package/src/shared/providers/screen/keys.provider.tsx +0 -48
- package/src/shared/providers/stack/helpers/active-screens-limit.ts +0 -35
- package/src/shared/providers/stack/helpers/use-local-routes.tsx +0 -133
- package/src/shared/stores/bounds.store.ts +0 -257
- package/src/shared/utils/gesture/determine-dismissal.ts +0 -80
- package/src/shared/utils/gesture/map-gesture-to-progress.ts +0 -11
- package/src/shared/utils/gesture/reset-gesture-values.ts +0 -67
- package/src/shared/utils/reset-stores-for-screen.ts +0 -14
- /package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
- /package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
- /package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.d.ts +0 -0
- /package/src/shared/hooks/navigation/{use-closing-route-keys.tsx → use-closing-route-keys.ts} +0 -0
- /package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.ts +0 -0
|
@@ -3,18 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createScreenTransitionState = exports.TRUE = exports.
|
|
6
|
+
exports.createScreenTransitionState = exports.TRUE = exports.NO_STYLES = exports.NO_PROPS = exports.NAVIGATION_MASK_STYLE_ID = exports.NAVIGATION_MASK_HOST_FLAG_STYLE_ID = exports.NAVIGATION_CONTAINER_STYLE_ID = exports.MASK_STYLE_ID = exports.IS_WEB = exports.FULLSCREEN_DIMENSIONS = exports.FALSE = exports.EXIT_RANGE = exports.EPSILON = exports.ENTER_RANGE = exports.EMPTY_BOUND_HELPER_RESULT_RAW = exports.EMPTY_BOUND_HELPER_RESULT = exports.DEFAULT_SCREEN_TRANSITION_STATE = exports.DEFAULT_GESTURE_VELOCITY_IMPACT = exports.DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT = exports.DEFAULT_GESTURE_SNAP_LOCKED = exports.DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE = exports.DEFAULT_GESTURE_RELEASE_VELOCITY_MAX = exports.DEFAULT_GESTURE_DRIVES_PROGRESS = exports.DEFAULT_GESTURE_DIRECTION = exports.DEFAULT_GESTURE_ACTIVATION_AREA = exports.CONTAINER_STYLE_ID = exports.ANIMATION_SNAP_THRESHOLD = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
/**
|
|
9
9
|
* Masked view integration
|
|
10
10
|
*/
|
|
11
11
|
const MASK_STYLE_ID = exports.MASK_STYLE_ID = "_ROOT_MASKED";
|
|
12
12
|
const CONTAINER_STYLE_ID = exports.CONTAINER_STYLE_ID = "_ROOT_CONTAINER";
|
|
13
|
+
const NAVIGATION_MASK_HOST_FLAG_STYLE_ID = exports.NAVIGATION_MASK_HOST_FLAG_STYLE_ID = "_NAVIGATION_MASK_HOST";
|
|
14
|
+
const NAVIGATION_MASK_STYLE_ID = exports.NAVIGATION_MASK_STYLE_ID = "_NAVIGATION_ROOT_MASK";
|
|
15
|
+
const NAVIGATION_CONTAINER_STYLE_ID = exports.NAVIGATION_CONTAINER_STYLE_ID = "_NAVIGATION_ROOT_CONTAINER";
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* Styles
|
|
16
19
|
*/
|
|
17
20
|
const NO_STYLES = exports.NO_STYLES = Object.freeze({});
|
|
21
|
+
const NO_PROPS = exports.NO_PROPS = Object.freeze({});
|
|
18
22
|
|
|
19
23
|
/**
|
|
20
24
|
* Default gesture values
|
|
@@ -22,11 +26,16 @@ const NO_STYLES = exports.NO_STYLES = Object.freeze({});
|
|
|
22
26
|
const DEFAULT_GESTURE_VALUES = {
|
|
23
27
|
x: 0,
|
|
24
28
|
y: 0,
|
|
29
|
+
normX: 0,
|
|
30
|
+
normY: 0,
|
|
31
|
+
dismissing: 0,
|
|
32
|
+
dragging: 0,
|
|
33
|
+
direction: null,
|
|
34
|
+
// Deprecated aliases
|
|
25
35
|
normalizedX: 0,
|
|
26
36
|
normalizedY: 0,
|
|
27
37
|
isDismissing: 0,
|
|
28
|
-
isDragging: 0
|
|
29
|
-
direction: null
|
|
38
|
+
isDragging: 0
|
|
30
39
|
};
|
|
31
40
|
|
|
32
41
|
/**
|
|
@@ -36,6 +45,7 @@ const createScreenTransitionState = (route, meta) => ({
|
|
|
36
45
|
progress: 0,
|
|
37
46
|
closing: 0,
|
|
38
47
|
animating: 0,
|
|
48
|
+
settled: 1,
|
|
39
49
|
entering: 1,
|
|
40
50
|
gesture: {
|
|
41
51
|
...DEFAULT_GESTURE_VALUES
|
|
@@ -52,6 +62,7 @@ const DEFAULT_SCREEN_TRANSITION_STATE = exports.DEFAULT_SCREEN_TRANSITION_STATE
|
|
|
52
62
|
progress: 0,
|
|
53
63
|
closing: 0,
|
|
54
64
|
animating: 0,
|
|
65
|
+
settled: 1,
|
|
55
66
|
entering: 1,
|
|
56
67
|
gesture: DEFAULT_GESTURE_VALUES,
|
|
57
68
|
route: {}
|
|
@@ -84,15 +95,14 @@ const FULLSCREEN_DIMENSIONS = dimensions => {
|
|
|
84
95
|
height: dimensions.height
|
|
85
96
|
};
|
|
86
97
|
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Default gesture config
|
|
90
|
-
*/
|
|
91
98
|
exports.FULLSCREEN_DIMENSIONS = FULLSCREEN_DIMENSIONS;
|
|
92
|
-
const
|
|
93
|
-
const
|
|
99
|
+
const DEFAULT_GESTURE_VELOCITY_IMPACT = exports.DEFAULT_GESTURE_VELOCITY_IMPACT = 0.3;
|
|
100
|
+
const DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT = exports.DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT = 0.1;
|
|
101
|
+
const DEFAULT_GESTURE_RELEASE_VELOCITY_MAX = exports.DEFAULT_GESTURE_RELEASE_VELOCITY_MAX = 3.2;
|
|
102
|
+
const DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE = exports.DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE = 1;
|
|
94
103
|
const DEFAULT_GESTURE_DIRECTION = exports.DEFAULT_GESTURE_DIRECTION = "horizontal";
|
|
95
104
|
const DEFAULT_GESTURE_DRIVES_PROGRESS = exports.DEFAULT_GESTURE_DRIVES_PROGRESS = true;
|
|
105
|
+
const DEFAULT_GESTURE_SNAP_LOCKED = exports.DEFAULT_GESTURE_SNAP_LOCKED = false;
|
|
96
106
|
const DEFAULT_GESTURE_ACTIVATION_AREA = exports.DEFAULT_GESTURE_ACTIVATION_AREA = "screen";
|
|
97
107
|
const IS_WEB = exports.IS_WEB = _reactNative.Platform.OS === "web";
|
|
98
108
|
const TRUE = exports.TRUE = 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","MASK_STYLE_ID","exports","CONTAINER_STYLE_ID","NO_STYLES","Object","freeze","DEFAULT_GESTURE_VALUES","x","y","normalizedX","normalizedY","isDismissing","isDragging","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","MASK_STYLE_ID","exports","CONTAINER_STYLE_ID","NAVIGATION_MASK_HOST_FLAG_STYLE_ID","NAVIGATION_MASK_STYLE_ID","NAVIGATION_CONTAINER_STYLE_ID","NO_STYLES","Object","freeze","NO_PROPS","DEFAULT_GESTURE_VALUES","x","y","normX","normY","dismissing","dragging","direction","normalizedX","normalizedY","isDismissing","isDragging","createScreenTransitionState","route","meta","progress","closing","animating","settled","entering","gesture","DEFAULT_SCREEN_TRANSITION_STATE","EMPTY_BOUND_HELPER_RESULT","EMPTY_BOUND_HELPER_RESULT_RAW","scaleX","scaleY","scale","translateX","translateY","width","height","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","dimensions","pageX","pageY","DEFAULT_GESTURE_VELOCITY_IMPACT","DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT","DEFAULT_GESTURE_RELEASE_VELOCITY_MAX","DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE","DEFAULT_GESTURE_DIRECTION","DEFAULT_GESTURE_DRIVES_PROGRESS","DEFAULT_GESTURE_SNAP_LOCKED","DEFAULT_GESTURE_ACTIVATION_AREA","IS_WEB","Platform","OS","TRUE","FALSE","EPSILON","ANIMATION_SNAP_THRESHOLD"],"sourceRoot":"../../../src","sources":["shared/constants.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACO,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,cAAc;AACpC,MAAME,kBAAkB,GAAAD,OAAA,CAAAC,kBAAA,GAAG,iBAAiB;AAC5C,MAAMC,kCAAkC,GAAAF,OAAA,CAAAE,kCAAA,GAAG,uBAAuB;AAClE,MAAMC,wBAAwB,GAAAH,OAAA,CAAAG,wBAAA,GAAG,uBAAu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I;AAC5C,MAAMC,2BAA2B,GAAApD,OAAA,CAAAoD,2BAAA,GAAG,KAAK;AACzC,MAAMC,+BAA+C,GAAArD,OAAA,CAAAqD,+BAAA,GAAG,QAAQ;AAEhE,MAAMC,MAAM,GAAAtD,OAAA,CAAAsD,MAAA,GAAGC,qBAAQ,CAACC,EAAE,KAAK,KAAK;AAEpC,MAAMC,IAAI,GAAAzD,OAAA,CAAAyD,IAAA,GAAG,CAAC;AACd,MAAMC,KAAK,GAAA1D,OAAA,CAAA0D,KAAA,GAAG,CAAC;;AAEtB;AACA;AACA;AACO,MAAMC,OAAO,GAAA3D,OAAA,CAAA2D,OAAA,GAAG,IAAI;;AAE3B;AACA;AACA;AACA;AACO,MAAMC,wBAAwB,GAAA5D,OAAA,CAAA4D,wBAAA,GAAG,IAAI","ignoreList":[]}
|
|
@@ -6,62 +6,253 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useAssociatedStyles = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _constants = require("../../constants");
|
|
9
|
+
var _descriptors = require("../../providers/screen/descriptors");
|
|
9
10
|
var _styles = require("../../providers/screen/styles.provider");
|
|
11
|
+
var _animation = require("../../stores/animation.store");
|
|
12
|
+
var _bounds = require("../../stores/bounds");
|
|
13
|
+
const TRANSIENT_EMPTY_GRACE_FRAMES = 2;
|
|
14
|
+
const TRANSITION_PROGRESS_COMPLETE = 1 - _constants.EPSILON;
|
|
15
|
+
const IDENTITY_TRANSFORM = [{
|
|
16
|
+
translateX: 0
|
|
17
|
+
}, {
|
|
18
|
+
translateY: 0
|
|
19
|
+
}, {
|
|
20
|
+
scaleX: 1
|
|
21
|
+
}, {
|
|
22
|
+
scaleY: 1
|
|
23
|
+
}];
|
|
24
|
+
const ALWAYS_RESET_STYLE_VALUES = {
|
|
25
|
+
zIndex: 0,
|
|
26
|
+
elevation: 0
|
|
27
|
+
};
|
|
28
|
+
const hasAnyKeys = record => {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
for (const _key in record) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
};
|
|
36
|
+
const collectKeyMeta = record => {
|
|
37
|
+
"worklet";
|
|
38
|
+
|
|
39
|
+
const keys = {};
|
|
40
|
+
let hasAny = false;
|
|
41
|
+
for (const key in record) {
|
|
42
|
+
keys[key] = true;
|
|
43
|
+
hasAny = true;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
keys,
|
|
47
|
+
hasAny
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const getGroupTagParts = tag => {
|
|
51
|
+
"worklet";
|
|
52
|
+
|
|
53
|
+
const separatorIndex = tag.indexOf(":");
|
|
54
|
+
if (separatorIndex <= 0 || separatorIndex >= tag.length - 1) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
group: tag.slice(0, separatorIndex),
|
|
59
|
+
memberId: tag.slice(separatorIndex + 1)
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
const allowPreviousTransitionEvidence = tag => {
|
|
63
|
+
"worklet";
|
|
64
|
+
|
|
65
|
+
const groupTagParts = getGroupTagParts(tag);
|
|
66
|
+
if (!groupTagParts) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// For grouped boundaries, only the active member can inherit
|
|
71
|
+
// transition evidence from the previous screen.
|
|
72
|
+
const activeGroupMemberId = _bounds.BoundStore.getGroupActiveId(groupTagParts.group);
|
|
73
|
+
return activeGroupMemberId !== null && activeGroupMemberId === groupTagParts.memberId;
|
|
74
|
+
};
|
|
75
|
+
const buildUnsetPatch = ({
|
|
76
|
+
previousKeys,
|
|
77
|
+
currentKeys,
|
|
78
|
+
shouldDeferUnset,
|
|
79
|
+
resetTransformOnUnset
|
|
80
|
+
}) => {
|
|
81
|
+
"worklet";
|
|
82
|
+
|
|
83
|
+
const unsetPatch = {};
|
|
84
|
+
for (const key in previousKeys) {
|
|
85
|
+
if (currentKeys[key]) continue;
|
|
86
|
+
const shouldAlwaysUnset = key in ALWAYS_RESET_STYLE_VALUES;
|
|
87
|
+
if (shouldDeferUnset && !shouldAlwaysUnset) continue;
|
|
88
|
+
if (key === "transform" && resetTransformOnUnset) {
|
|
89
|
+
unsetPatch.transform = IDENTITY_TRANSFORM;
|
|
90
|
+
} else if (key in ALWAYS_RESET_STYLE_VALUES) {
|
|
91
|
+
unsetPatch[key] = ALWAYS_RESET_STYLE_VALUES[key];
|
|
92
|
+
} else {
|
|
93
|
+
unsetPatch[key] = undefined;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return unsetPatch;
|
|
97
|
+
};
|
|
98
|
+
|
|
10
99
|
/**
|
|
11
|
-
*
|
|
100
|
+
* Resolves the animated style associated with an `id` (styleId/bound tag), while
|
|
101
|
+
* guarding against one-frame glitches during shared-boundary transitions.
|
|
102
|
+
*
|
|
103
|
+
* Why this exists:
|
|
104
|
+
* - During push/pop, links and style maps can be briefly out of sync.
|
|
105
|
+
* - Without guards, boundaries can flash raw layout for one frame.
|
|
106
|
+
* - Cleanup must be deterministic so stale transform keys do not linger.
|
|
107
|
+
*
|
|
108
|
+
* Visual model (worklet state machine):
|
|
109
|
+
*
|
|
110
|
+
* expected transition + no resolved style yet -> waiting-first-style
|
|
111
|
+
* expected transition + transient empty style map -> hold-last-style
|
|
112
|
+
* otherwise -> live
|
|
113
|
+
*
|
|
114
|
+
* - `waiting-first-style`: return `opacity: 0` until first resolved style arrives.
|
|
115
|
+
* - `hold-last-style`: reuse last resolved style through short empty-map gaps.
|
|
116
|
+
* - `live`: apply current resolved style directly.
|
|
117
|
+
*
|
|
118
|
+
* For grouped tags (`group:id`), previous-screen transition evidence is only
|
|
119
|
+
* considered for the group's active member to avoid hiding non-active siblings.
|
|
120
|
+
*
|
|
121
|
+
* Set `waitForFirstResolvedStyle` to `false` for generic shared-bound-tag usage
|
|
122
|
+
* where the transition can be driven by other style ids.
|
|
12
123
|
*/
|
|
13
124
|
const useAssociatedStyles = ({
|
|
14
|
-
id
|
|
125
|
+
id,
|
|
126
|
+
resetTransformOnUnset = false,
|
|
127
|
+
waitForFirstResolvedStyle = true
|
|
15
128
|
} = {}) => {
|
|
16
129
|
const {
|
|
17
130
|
stylesMap,
|
|
18
131
|
ancestorStylesMaps
|
|
19
132
|
} = (0, _styles.useScreenStyles)();
|
|
20
|
-
const
|
|
21
|
-
|
|
133
|
+
const {
|
|
134
|
+
previousScreenKey,
|
|
135
|
+
currentScreenKey,
|
|
136
|
+
hasConfiguredInterpolator
|
|
137
|
+
} = (0, _descriptors.useDescriptorDerivations)();
|
|
138
|
+
const isAnimating = _animation.AnimationStore.getRouteAnimation(currentScreenKey, "animating");
|
|
139
|
+
const progress = _animation.AnimationStore.getRouteAnimation(currentScreenKey, "progress");
|
|
140
|
+
const isClosing = _animation.AnimationStore.getRouteAnimation(currentScreenKey, "closing");
|
|
141
|
+
const previousAppliedKeys = (0, _reactNativeReanimated.useSharedValue)({});
|
|
142
|
+
const emptyGraceFrameCount = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
143
|
+
const lastResolvedBase = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
144
|
+
const associatedStyles = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
22
145
|
"worklet";
|
|
23
146
|
|
|
24
147
|
if (!id) {
|
|
25
|
-
|
|
26
|
-
return;
|
|
148
|
+
return _constants.NO_STYLES;
|
|
27
149
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
150
|
+
|
|
151
|
+
// Check local slot first, then fall back to parent
|
|
152
|
+
const ownSlot = stylesMap.value[id];
|
|
153
|
+
const ancestorSlot = ancestorStylesMaps.find(ancestorMap => ancestorMap.value[id])?.value[id];
|
|
154
|
+
const slot = ownSlot || ancestorSlot;
|
|
155
|
+
const base = slot?.style || _constants.NO_STYLES;
|
|
156
|
+
const {
|
|
157
|
+
keys: currentKeys,
|
|
158
|
+
hasAny: hasCurrentKeys
|
|
159
|
+
} = collectKeyMeta(base);
|
|
160
|
+
const hasPreviousKeys = hasAnyKeys(previousAppliedKeys.value);
|
|
161
|
+
const isTransitioning = isAnimating.get() !== 0 || isClosing.get() !== 0;
|
|
162
|
+
const isTransitionProgressInFlight = progress.get() < TRANSITION_PROGRESS_COMPLETE;
|
|
163
|
+
const isTransitionInFlight = isTransitioning || isTransitionProgressInFlight;
|
|
164
|
+
const canUsePreviousTransitionEvidence = resetTransformOnUnset && allowPreviousTransitionEvidence(id);
|
|
165
|
+
const hasActiveLink = resetTransformOnUnset && canUsePreviousTransitionEvidence && (_bounds.BoundStore.hasPendingLink(id) || _bounds.BoundStore.hasSourceLink(id, currentScreenKey) || _bounds.BoundStore.hasDestinationLink(id, currentScreenKey));
|
|
166
|
+
const hasPreviousTransitionEvidence = canUsePreviousTransitionEvidence && !!previousScreenKey && (!!_bounds.BoundStore.getSnapshot(id, previousScreenKey) || _bounds.BoundStore.hasBoundaryPresence(id, previousScreenKey));
|
|
167
|
+
|
|
168
|
+
// Split intent:
|
|
169
|
+
// - incoming: strict signal for first-style hiding
|
|
170
|
+
// - in-flight: broad signal to keep existing styles from resetting
|
|
171
|
+
const shouldExpectIncomingStyle = resetTransformOnUnset && (hasActiveLink && canUsePreviousTransitionEvidence || hasPreviousTransitionEvidence);
|
|
172
|
+
const shouldProtectInFlightStyles = resetTransformOnUnset && (hasActiveLink || hasPreviousTransitionEvidence);
|
|
173
|
+
if (hasCurrentKeys) {
|
|
174
|
+
lastResolvedBase.value = base;
|
|
32
175
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
176
|
+
const hasPersistedResolvedStyle = !!lastResolvedBase.value;
|
|
177
|
+
const hasResolvedStyle = hasCurrentKeys || hasPersistedResolvedStyle;
|
|
178
|
+
const isTransientEmptyGap = hasConfiguredInterpolator && shouldProtectInFlightStyles && !isTransitioning && !hasCurrentKeys && (hasPreviousKeys || hasPersistedResolvedStyle);
|
|
36
179
|
|
|
37
|
-
|
|
38
|
-
|
|
180
|
+
// Keep styles stable for a couple of frames to absorb
|
|
181
|
+
// transient empty-map gaps on slower devices.
|
|
182
|
+
if (isTransientEmptyGap) {
|
|
183
|
+
emptyGraceFrameCount.value = emptyGraceFrameCount.value + 1;
|
|
184
|
+
} else {
|
|
185
|
+
emptyGraceFrameCount.value = 0;
|
|
39
186
|
}
|
|
187
|
+
const isWithinGapGrace = isTransientEmptyGap && emptyGraceFrameCount.value <= TRANSIENT_EMPTY_GRACE_FRAMES;
|
|
188
|
+
const shouldDeferUnset = resetTransformOnUnset && shouldProtectInFlightStyles && (isTransitioning || isWithinGapGrace);
|
|
40
189
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
190
|
+
/**
|
|
191
|
+
* Associated-style state machine:
|
|
192
|
+
* - waiting-first-style: transition is expected but no style has resolved yet.
|
|
193
|
+
* - hold-last-style: transient empty frame; reuse last resolved style.
|
|
194
|
+
* - live: apply current resolved style normally.
|
|
195
|
+
*/
|
|
196
|
+
let mode = "live";
|
|
197
|
+
if (waitForFirstResolvedStyle && resetTransformOnUnset && hasConfiguredInterpolator && shouldExpectIncomingStyle && isTransitionInFlight && !hasResolvedStyle) {
|
|
198
|
+
mode = "waiting-first-style";
|
|
199
|
+
} else if (shouldDeferUnset && !hasCurrentKeys && hasPersistedResolvedStyle) {
|
|
200
|
+
mode = "hold-last-style";
|
|
48
201
|
}
|
|
49
|
-
|
|
202
|
+
const resolvedBase = mode === "hold-last-style" ? lastResolvedBase.value : base;
|
|
203
|
+
const unsetPatch = buildUnsetPatch({
|
|
204
|
+
previousKeys: previousAppliedKeys.value,
|
|
205
|
+
currentKeys,
|
|
206
|
+
shouldDeferUnset,
|
|
207
|
+
resetTransformOnUnset
|
|
208
|
+
});
|
|
209
|
+
if (shouldDeferUnset) {
|
|
210
|
+
previousAppliedKeys.value = {
|
|
211
|
+
...previousAppliedKeys.value,
|
|
212
|
+
...currentKeys
|
|
213
|
+
};
|
|
214
|
+
} else {
|
|
215
|
+
previousAppliedKeys.value = currentKeys;
|
|
216
|
+
|
|
217
|
+
// Drop cached style when fully idle so future transitions
|
|
218
|
+
// start from a clean state.
|
|
219
|
+
if (!hasCurrentKeys && !shouldProtectInFlightStyles && !isTransitioning) {
|
|
220
|
+
lastResolvedBase.value = null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (mode === "waiting-first-style") {
|
|
50
224
|
return {
|
|
51
|
-
...
|
|
225
|
+
...unsetPatch,
|
|
52
226
|
opacity: 0
|
|
53
227
|
};
|
|
54
228
|
}
|
|
55
|
-
|
|
56
|
-
|
|
229
|
+
const mergedBase = {
|
|
230
|
+
...unsetPatch,
|
|
231
|
+
...resolvedBase
|
|
232
|
+
};
|
|
233
|
+
let opacity = 1;
|
|
234
|
+
if ("opacity" in mergedBase) {
|
|
235
|
+
opacity = mergedBase.opacity;
|
|
236
|
+
}
|
|
237
|
+
if ("opacity" in mergedBase) {
|
|
238
|
+
return mergedBase;
|
|
57
239
|
}
|
|
58
240
|
return {
|
|
59
|
-
...
|
|
241
|
+
...mergedBase,
|
|
60
242
|
opacity
|
|
61
243
|
};
|
|
62
244
|
});
|
|
245
|
+
const associatedProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
|
|
246
|
+
"worklet";
|
|
247
|
+
|
|
248
|
+
if (!id) return _constants.NO_PROPS;
|
|
249
|
+
const ownSlot = stylesMap.value[id];
|
|
250
|
+
const ancestorSlot = ancestorStylesMaps.find(ancestorMap => ancestorMap.value[id])?.value[id];
|
|
251
|
+
return (ownSlot || ancestorSlot)?.props ?? _constants.NO_PROPS;
|
|
252
|
+
});
|
|
63
253
|
return {
|
|
64
|
-
associatedStyles
|
|
254
|
+
associatedStyles,
|
|
255
|
+
associatedProps
|
|
65
256
|
};
|
|
66
257
|
};
|
|
67
258
|
exports.useAssociatedStyles = useAssociatedStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_styles","useAssociatedStyles","id","stylesMap","ancestorStylesMaps","useScreenStyles","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_descriptors","_styles","_animation","_bounds","TRANSIENT_EMPTY_GRACE_FRAMES","TRANSITION_PROGRESS_COMPLETE","EPSILON","IDENTITY_TRANSFORM","translateX","translateY","scaleX","scaleY","ALWAYS_RESET_STYLE_VALUES","zIndex","elevation","hasAnyKeys","record","_key","collectKeyMeta","keys","hasAny","key","getGroupTagParts","tag","separatorIndex","indexOf","length","group","slice","memberId","allowPreviousTransitionEvidence","groupTagParts","activeGroupMemberId","BoundStore","getGroupActiveId","buildUnsetPatch","previousKeys","currentKeys","shouldDeferUnset","resetTransformOnUnset","unsetPatch","shouldAlwaysUnset","transform","undefined","useAssociatedStyles","id","waitForFirstResolvedStyle","stylesMap","ancestorStylesMaps","useScreenStyles","previousScreenKey","currentScreenKey","hasConfiguredInterpolator","useDescriptorDerivations","isAnimating","AnimationStore","getRouteAnimation","progress","isClosing","previousAppliedKeys","useSharedValue","emptyGraceFrameCount","lastResolvedBase","associatedStyles","useAnimatedStyle","NO_STYLES","ownSlot","value","ancestorSlot","find","ancestorMap","slot","base","style","hasCurrentKeys","hasPreviousKeys","isTransitioning","get","isTransitionProgressInFlight","isTransitionInFlight","canUsePreviousTransitionEvidence","hasActiveLink","hasPendingLink","hasSourceLink","hasDestinationLink","hasPreviousTransitionEvidence","getSnapshot","hasBoundaryPresence","shouldExpectIncomingStyle","shouldProtectInFlightStyles","hasPersistedResolvedStyle","hasResolvedStyle","isTransientEmptyGap","isWithinGapGrace","mode","resolvedBase","opacity","mergedBase","associatedProps","useAnimatedProps","NO_PROPS","props","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/animation/use-associated-style.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAA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
|
5
5
|
});
|
|
6
6
|
exports.useScreenGesture = void 0;
|
|
7
|
-
var _gestures = require("../../providers/gestures
|
|
7
|
+
var _gestures = require("../../providers/gestures");
|
|
8
8
|
/**
|
|
9
9
|
* Returns a ref to the screen's navigation pan gesture.
|
|
10
10
|
* Use this to coordinate child gestures with the navigation gesture.
|
|
@@ -7,7 +7,7 @@ exports.useScrollRegistry = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
9
9
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
-
var _gestures = require("../../providers/gestures
|
|
10
|
+
var _gestures = require("../../providers/gestures");
|
|
11
11
|
var _useStableCallback = _interopRequireDefault(require("../use-stable-callback"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_gestures","_useStableCallback","_interopRequireDefault","e","__esModule","default","findGestureOwnerForDirection","context","direction","current","startIsolated","isIsolated","undefined","claimedDirections","ancestorContext","findGestureOwnersForAxis","axis","directions","owners","dir","owner","includes","push","useScrollRegistry","props","useGestureContext","scrollDirection","useMemo","scrollConfigs","map","o","scrollConfig","filter","c","panGestures","panGesture","g","nativeGesture","length","setIsTouched","modify","v","isTouched","clearIsTouched","gesture","Gesture","Native","onTouchesDown","onTouchesUp","onTouchesCancelled","requireExternalGestureToFail","scrollHandler","useAnimatedScrollHandler","onScroll","event","update","x","contentOffset","y","contentHeight","contentWidth","layoutHeight","layoutWidth","onContentSizeChange","useStableCallback","width","height","onLayout","nativeEvent","layout","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/gestures/use-scroll-registry.
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_gestures","_useStableCallback","_interopRequireDefault","e","__esModule","default","findGestureOwnerForDirection","context","direction","current","startIsolated","isIsolated","undefined","claimedDirections","ancestorContext","findGestureOwnersForAxis","axis","directions","owners","dir","owner","includes","push","useScrollRegistry","props","useGestureContext","scrollDirection","useMemo","scrollConfigs","map","o","scrollConfig","filter","c","panGestures","panGesture","g","nativeGesture","length","setIsTouched","modify","v","isTouched","clearIsTouched","gesture","Gesture","Native","onTouchesDown","onTouchesUp","onTouchesCancelled","requireExternalGestureToFail","scrollHandler","useAnimatedScrollHandler","onScroll","event","update","x","contentOffset","y","contentHeight","contentWidth","layoutHeight","layoutWidth","onContentSizeChange","useStableCallback","width","height","onLayout","nativeEvent","layout","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/gestures/use-scroll-registry.ts"],"mappings":";;;;;;AAcA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAMA,IAAAI,kBAAA,GAAAC,sBAAA,CAAAL,OAAA;AAAuD,SAAAK,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAzBvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA,SAASG,4BAA4BA,CACpCC,OAA8C,EAC9CC,SAAoB,EACQ;EAC5B,IAAIC,OAAO,GAAGF,OAAO;EACrB,MAAMG,aAAa,GAAGH,OAAO,EAAEI,UAAU;EAEzC,OAAOF,OAAO,EAAE;IACf,IAAIC,aAAa,KAAKE,SAAS,IAAIH,OAAO,CAACE,UAAU,KAAKD,aAAa,EAAE;MACxE;IACD;IAEA,IAAID,OAAO,CAACI,iBAAiB,GAAGL,SAAS,CAAC,EAAE;MAC3C,OAAOC,OAAO;IACf;IAEAA,OAAO,GAAGA,OAAO,CAACK,eAAe;EAClC;EAEA,OAAO,IAAI;AACZ;;AAEA;AACA;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MAAM,CAACe,MAAM,CAAC;IAC5B;EACD,CACD,CAAC;EAED,MAAMY,QAAQ,GAAG,IAAAH,0BAAiB,EAAEV,KAAwB,IAAK;IAChE9B,KAAK,CAAC2C,QAAQ,GAAGb,KAAK,CAAC;IACvB,IAAI1B,aAAa,CAACU,MAAM,KAAK,CAAC,EAAE;IAEhC,MAAM;MAAE2B,KAAK;MAAEC;IAAO,CAAC,GAAGZ,KAAK,CAACc,WAAW,CAACC,MAAM;IAElD,MAAMd,MAAM,GAAId,CAAM,IAAK;MAC1B,SAAS;;MACT,IAAIA,CAAC,KAAK,IAAI,EAAE;QACf,OAAO;UACNe,CAAC,EAAE,CAAC;UACJE,CAAC,EAAE,CAAC;UACJC,aAAa,EAAE,CAAC;UAChBC,YAAY,EAAE,CAAC;UACfC,YAAY,EAAEK,MAAM;UACpBJ,WAAW,EAAEG,KAAK;UAClBvB,SAAS,EAAE;QACZ,CAAC;MACF;MACAD,CAAC,CAACoB,YAAY,GAAGK,MAAM;MACvBzB,CAAC,CAACqB,WAAW,GAAGG,KAAK;MACrB,OAAOxB,CAAC;IACT,CAAC;;IAED;IACA,KAAK,MAAMV,YAAY,IAAIH,aAAa,EAAE;MACzCG,YAAY,CAACS,MAAM,CAACe,MAAM,CAAC;IAC5B;EACD,CAAC,CAAC;EAEF,OAAO;IACNJ,aAAa;IACbY,mBAAmB;IACnBI,QAAQ;IACR9B;EACD,CAAC;AACF,CAAC;AAACiC,OAAA,CAAA/C,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
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":["shared/hooks/navigation/use-closing-route-keys.
|
|
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":["shared/hooks/navigation/use-closing-route-keys.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAuD,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhD,MAAMG,mBAAmB,GAAGA,CAAA,KAAM;EACxC,MAAMC,OAAO,GAAG,IAAAC,aAAM,EAAc,IAAIC,GAAG,CAAC,CAAC,CAAC;EAC9C,MAAMC,MAAM,GAAG,IAAAC,qCAAc,EAAW,EAAE,CAAC;EAE3C,MAAMC,GAAG,GAAG,IAAAC,0BAAiB,EAAEC,GAAW,IAAK;IAC9C,MAAMC,IAAI,GAAGR,OAAO,CAACS,OAAO;IAC5B,IAAID,IAAI,CAACE,GAAG,CAACH,GAAG,CAAC,EAAE;MAClB;IACD;IAEAC,IAAI,CAACH,GAAG,CAACE,GAAG,CAAC;IACbJ,MAAM,CAACQ,MAAM,CAAEC,IAAI,IAAK;MACvB,SAAS;;MACT,IAAI,CAACA,IAAI,CAACC,QAAQ,CAACN,GAAG,CAAC,EAAE;QACxBK,IAAI,CAACE,IAAI,CAACP,GAAG,CAAC;MACf;MACA,OAAOK,IAAI;IACZ,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,MAAMG,MAAM,GAAG,IAAAT,0BAAiB,EAAEC,GAAW,IAAK;IACjD,MAAMC,IAAI,GAAGR,OAAO,CAACS,OAAO;IAC5BD,IAAI,CAACQ,MAAM,CAACT,GAAG,CAAC;IAEhBJ,MAAM,CAACQ,MAAM,CAAEC,IAAI,IAAK;MACvB,SAAS;;MACT,MAAMK,KAAK,GAAGL,IAAI,CAACM,OAAO,CAACX,GAAG,CAAC;MAC/B,IAAIU,KAAK,KAAK,CAAC,CAAC,EAAE;QACjBL,IAAI,CAACO,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;MACtB;MACA,OAAOL,IAAI;IACZ,CAAC,CAAC;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":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useNavigationHelpers = useNavigationHelpers;
|
|
7
|
+
var _native = require("@react-navigation/native");
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _descriptors = require("../../providers/screen/descriptors");
|
|
10
|
+
function useNavigationHelpers() {
|
|
11
|
+
const {
|
|
12
|
+
current
|
|
13
|
+
} = (0, _descriptors.useDescriptors)();
|
|
14
|
+
const dismissScreen = (0, _react.useCallback)(() => {
|
|
15
|
+
const state = current.navigation.getState();
|
|
16
|
+
const routeIndex = state.routes.findIndex(route => route.key === current.route.key);
|
|
17
|
+
const routeStillPresent = routeIndex !== -1;
|
|
18
|
+
if (!routeStillPresent || routeIndex === 0) return false;
|
|
19
|
+
current.navigation.dispatch({
|
|
20
|
+
..._native.StackActions.pop(),
|
|
21
|
+
source: current.route.key,
|
|
22
|
+
target: state.key
|
|
23
|
+
});
|
|
24
|
+
return true;
|
|
25
|
+
}, [current]);
|
|
26
|
+
return {
|
|
27
|
+
dismissScreen
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=use-navigation-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_native","require","_react","_descriptors","useNavigationHelpers","current","useDescriptors","dismissScreen","useCallback","state","navigation","getState","routeIndex","routes","findIndex","route","key","routeStillPresent","dispatch","StackActions","pop","source","target"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-navigation-helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEO,SAASG,oBAAoBA,CAAA,EAAG;EACtC,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,2BAAc,EAAC,CAAC;EAEpC,MAAMC,aAAa,GAAG,IAAAC,kBAAW,EAAC,MAAe;IAChD,MAAMC,KAAK,GAAGJ,OAAO,CAACK,UAAU,CAACC,QAAQ,CAAC,CAAC;IAC3C,MAAMC,UAAU,GAAGH,KAAK,CAACI,MAAM,CAACC,SAAS,CACvCC,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKX,OAAO,CAACU,KAAK,CAACC,GACxC,CAAC;IACD,MAAMC,iBAAiB,GAAGL,UAAU,KAAK,CAAC,CAAC;IAC3C,IAAI,CAACK,iBAAiB,IAAIL,UAAU,KAAK,CAAC,EAAE,OAAO,KAAK;IAExDP,OAAO,CAACK,UAAU,CAACQ,QAAQ,CAAC;MAC3B,GAAGC,oBAAY,CAACC,GAAG,CAAC,CAAC;MACrBC,MAAM,EAAEhB,OAAO,CAACU,KAAK,CAACC,GAAG;MACzBM,MAAM,EAAEb,KAAK,CAACO;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACZ,CAAC,EAAE,CAACX,OAAO,CAAC,CAAC;EAEb,OAAO;IAAEE;EAAc,CAAC;AACzB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-previous.
|
|
1
|
+
{"version":3,"names":["_react","require","usePrevious","value","ref","useRef","useEffect","current","exports"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-previous.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,WAAW,GAAOC,KAAQ,IAAe;EACrD,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":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useScreenState = useScreenState;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _snapTo = require("../../animation/snap-to");
|
|
9
|
-
var
|
|
9
|
+
var _descriptors = require("../../providers/screen/descriptors");
|
|
10
10
|
var _useOptimisticFocusedIndex = require("./use-optimistic-focused-index");
|
|
11
11
|
var _useStack = require("./use-stack");
|
|
12
12
|
/**
|
|
@@ -23,7 +23,7 @@ function useScreenState() {
|
|
|
23
23
|
} = (0, _useStack.useStack)();
|
|
24
24
|
const {
|
|
25
25
|
current
|
|
26
|
-
} = (0,
|
|
26
|
+
} = (0, _descriptors.useDescriptors)();
|
|
27
27
|
const index = (0, _react.useMemo)(() => routeKeys.indexOf(current.route.key), [routeKeys, current.route.key]);
|
|
28
28
|
const focusedIndex = (0, _useOptimisticFocusedIndex.useOptimisticFocusedIndex)(optimisticFocusedIndex, routeKeys.length);
|
|
29
29
|
const focusedScene = (0, _react.useMemo)(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_snapTo","
|
|
1
|
+
{"version":3,"names":["_react","require","_snapTo","_descriptors","_useOptimisticFocusedIndex","_useStack","useScreenState","routes","scenes","routeKeys","optimisticFocusedIndex","useStack","current","useDescriptors","index","useMemo","indexOf","route","key","focusedIndex","useOptimisticFocusedIndex","length","focusedScene","snapTo","useCallback","targetIndex","descriptor","snapDescriptorToIndex","options","focusedRoute","meta","navigation"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-screen-state.ts"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAMA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAgDA;AACA;AACA;AACA;AACA;AACO,SAASK,cAAcA,CAAA,EAEA;EAC7B,MAAM;IAAEC,MAAM;IAAEC,MAAM;IAAEC,SAAS;IAAEC;EAAuB,CAAC,GAC1D,IAAAC,kBAAQ,EAAoB,CAAC;EAC9B,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,2BAAc,EAAiB,CAAC;EAEpD,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACpB,MAAMN,SAAS,CAACO,OAAO,CAACJ,OAAO,CAACK,KAAK,CAACC,GAAG,CAAC,EAC1C,CAACT,SAAS,EAAEG,OAAO,CAACK,KAAK,CAACC,GAAG,CAC9B,CAAC;EAED,MAAMC,YAAY,GAAG,IAAAC,oDAAyB,EAC7CV,sBAAsB,EACtBD,SAAS,CAACY,MACX,CAAC;EAED,MAAMC,YAAY,GAAG,IAAAP,cAAO,EAAC,MAAM;IAClC,OAAOP,MAAM,CAACW,YAAY,CAAC,IAAIX,MAAM,CAACA,MAAM,CAACa,MAAM,GAAG,CAAC,CAAC;EACzD,CAAC,EAAE,CAACb,MAAM,EAAEW,YAAY,CAAC,CAAC;EAE1B,MAAMI,MAAM,GAAG,IAAAC,kBAAW,EACxBC,WAAmB,IAAK;IACxB,MAAMC,UAAU,GAAGJ,YAAY,EAAEI,UAAU;IAC3C,IAAI,CAACA,UAAU,EAAE;IACjB,IAAAC,6BAAqB,EAACD,UAAU,EAAED,WAAW,CAAC;EAC/C,CAAC,EACD,CAACH,YAAY,CACd,CAAC;EAED,OAAO,IAAAP,cAAO,EACb,OAAO;IACND,KAAK;IACLc,OAAO,EAAEN,YAAY,EAAEI,UAAU,EAAEE,OAAO,IAAI,CAAC,CAAC;IAChDrB,MAAM;IACNsB,YAAY,EAAEP,YAAY,EAAEL,KAAK,IAAIL,OAAO,CAACK,KAAK;IAClDE,YAAY;IACZW,IAAI,EAAER,YAAY,EAAEI,UAAU,EAAEE,OAAO,EAAEE,IAAI;IAC7CC,UAAU,EAAEnB,OAAO,CAACmB,UAAyB;IAC7CR;EACD,CAAC,CAAC,EACF,CACCT,KAAK,EACLQ,YAAY,EACZf,MAAM,EACNY,YAAY,EACZP,OAAO,CAACmB,UAAU,EAClBnB,OAAO,CAACK,KAAK,EACbM,MAAM,CAER,CAAC;AACF","ignoreList":[]}
|
|
@@ -6,27 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StackContext = void 0;
|
|
7
7
|
exports.useStack = useStack;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
/**
|
|
10
|
-
* Stack descriptor with overlay options.
|
|
11
|
-
* Extends BaseStackDescriptor with overlay-specific options.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Scene type for stack context (route + descriptor pair).
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Common stack context value that both managed and direct stack providers populate.
|
|
20
|
-
* Used by overlays and shared components that need stack progress info.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
9
|
const StackContext = exports.StackContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
24
10
|
StackContext.displayName = "Stack";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Hook to access common stack context values.
|
|
28
|
-
* Works in both blank-stack and native-stack navigators.
|
|
29
|
-
*/
|
|
30
11
|
function useStack() {
|
|
31
12
|
const context = (0, _react.useContext)(StackContext);
|
|
32
13
|
if (context === null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","StackContext","exports","createContext","displayName","useStack","context","useContext","Error"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-stack.tsx"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","StackContext","exports","createContext","displayName","useStack","context","useContext","Error"],"sourceRoot":"../../../../../src","sources":["shared/hooks/navigation/use-stack.tsx"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAoCO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAG,IAAAE,oBAAa,EAA2B,IAAI,CAAC;AACzEF,YAAY,CAACG,WAAW,GAAG,OAAO;AAE3B,SAASC,QAAQA,CAAA,EAAuD;EAC9E,MAAMC,OAAO,GAAG,IAAAC,iBAAU,EAACN,YAAY,CAAC;EAExC,IAAIK,OAAO,KAAK,IAAI,EAAE;IACrB,MAAM,IAAIE,KAAK,CAAC,+CAA+C,CAAC;EACjE;EAEA,OAAOF,OAAO;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useTabPressReset = useTabPressReset;
|
|
7
|
+
var _native = require("@react-navigation/native");
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
/**
|
|
11
|
+
* When inside a tab navigator, resets the stack to the first screen
|
|
12
|
+
* when the already-focused tab is pressed again. Replicates native behaviour.
|
|
13
|
+
*/
|
|
14
|
+
function useTabPressReset(navigation, stateIndex, stateKey) {
|
|
15
|
+
React.useEffect(() => navigation?.addListener?.("tabPress", e => {
|
|
16
|
+
const isFocused = navigation.isFocused();
|
|
17
|
+
|
|
18
|
+
// Run the operation in the next frame so we're sure all listeners have been run
|
|
19
|
+
// This is necessary to know if preventDefault() has been called
|
|
20
|
+
requestAnimationFrame(() => {
|
|
21
|
+
if (stateIndex > 0 && isFocused && !e.defaultPrevented) {
|
|
22
|
+
// When user taps on already focused tab and we're inside the tab,
|
|
23
|
+
// reset the stack to replicate native behaviour
|
|
24
|
+
navigation.dispatch({
|
|
25
|
+
..._native.StackActions.popToTop(),
|
|
26
|
+
target: stateKey
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}), [navigation, stateIndex, stateKey]);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=use-tab-press-reset.js.map
|