react-native-screen-transitions 3.4.0-alpha.0 → 3.4.0-alpha.1
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 +65 -2
- package/lib/commonjs/shared/animation/snap-to.js +5 -1
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/index.js +1 -3
- package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -16
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/scene-view.js +2 -4
- package/lib/commonjs/shared/components/scene-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +47 -55
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +77 -0
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/commonjs/shared/constants.js +6 -2
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
- package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +7 -3
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/index.js +15 -3
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +55 -18
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +31 -17
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +11 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +8 -2
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- 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/interpolators.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +3 -3
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +541 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/commonjs/shared/utils/overlay/visibility.js +2 -9
- package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +5 -1
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/index.js +1 -3
- package/lib/module/shared/components/overlay/index.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -17
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/scene-view.js +3 -5
- package/lib/module/shared/components/scene-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +52 -60
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +72 -0
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/module/shared/constants.js +6 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/module/shared/hooks/gestures/types.js +2 -0
- package/lib/module/shared/hooks/gestures/types.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +7 -4
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/index.js +1 -2
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +55 -18
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js +30 -15
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +11 -6
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/types.js +2 -0
- package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +2 -2
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +8 -2
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- 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/interpolators.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +3 -3
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
- package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/build.js +536 -0
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
- package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/module/shared/utils/overlay/visibility.js +1 -7
- package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
- package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +7 -0
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +3 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -2
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +16 -17
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +6 -3
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +0 -2
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +5 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +4 -0
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +2 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +26 -51
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +46 -9
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +3 -3
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +1 -22
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +16 -15
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -3
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +5 -4
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +5 -3
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
- package/lib/typescript/shared/utils/overlay/visibility.d.ts +1 -4
- package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/shared/animation/snap-to.ts +12 -1
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
- package/src/shared/components/overlay/index.ts +0 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +2 -16
- package/src/shared/components/scene-view.tsx +0 -3
- package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
- package/src/shared/components/screen-container/layers/content.tsx +80 -77
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +93 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +1 -2
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition.ts +20 -6
- package/src/shared/constants.ts +6 -2
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
- package/src/shared/hooks/gestures/types.ts +5 -0
- package/src/shared/hooks/gestures/use-screen-gesture.ts +10 -3
- package/src/shared/hooks/navigation/use-stack.tsx +1 -2
- package/src/shared/index.ts +14 -16
- package/src/shared/providers/gestures/handlers/use-handlers.ts +67 -24
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
- package/src/shared/providers/screen/animation/animation.provider.tsx +46 -10
- package/src/shared/providers/screen/animation/helpers/derivations.ts +0 -8
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +26 -5
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
- package/src/shared/providers/screen/animation/index.tsx +4 -1
- package/src/shared/providers/screen/animation/types.ts +5 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +16 -3
- package/src/shared/providers/stack/direct.provider.tsx +2 -5
- package/src/shared/providers/stack/helpers/use-processed-routes.ts +2 -2
- package/src/shared/stores/animation.store.ts +13 -1
- package/src/shared/stores/bounds/internals/resolver.ts +13 -1
- package/src/shared/stores/bounds/types.ts +2 -0
- package/src/shared/types/animation.types.ts +25 -58
- package/src/shared/types/bounds.types.ts +30 -10
- package/src/shared/types/index.ts +2 -15
- package/src/shared/types/overlay.types.ts +1 -28
- package/src/shared/types/screen.types.ts +17 -16
- package/src/shared/utils/animation/animate-to-progress.ts +7 -0
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +2 -2
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +34 -8
- package/src/shared/utils/bounds/helpers/geometry.ts +3 -2
- package/src/shared/utils/bounds/helpers/interpolators.ts +8 -6
- package/src/shared/utils/bounds/helpers/link-accessor.ts +10 -6
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +9 -6
- package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
- package/src/shared/utils/bounds/index.ts +6 -8
- package/src/shared/utils/bounds/types/options.ts +6 -4
- package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
- package/src/shared/utils/bounds/zoom/build.ts +705 -0
- package/src/shared/utils/bounds/zoom/config.ts +179 -0
- package/src/shared/utils/bounds/zoom/index.ts +2 -0
- package/src/shared/utils/bounds/zoom/types.ts +22 -0
- package/src/shared/utils/gesture/validate-snap-points.ts +20 -8
- package/src/shared/utils/overlay/visibility.ts +1 -16
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/math.js +0 -132
- package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +0 -45
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +0 -60
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +0 -20
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +0 -295
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -61
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/math.js +0 -115
- package/lib/module/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +0 -40
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +0 -54
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js +0 -15
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +0 -290
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +0 -38
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +0 -16
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +0 -17
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +0 -3
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +0 -18
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +0 -4
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +0 -1
- package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -68
- package/src/shared/utils/bounds/helpers/math.ts +0 -161
- package/src/shared/utils/bounds/helpers/navigation-accessor.ts +0 -61
- package/src/shared/utils/bounds/sugar/navigation/helpers.ts +0 -74
- package/src/shared/utils/bounds/sugar/navigation/index.ts +0 -14
- package/src/shared/utils/bounds/sugar/navigation/types.ts +0 -26
- package/src/shared/utils/bounds/sugar/navigation/zoom.ts +0 -348
- /package/lib/commonjs/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
- /package/lib/module/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useMemo } from "react";
|
|
3
|
+
import { createContext, useContext, useMemo } from "react";
|
|
4
4
|
import { useDerivedValue } from "react-native-reanimated";
|
|
5
|
-
import createProvider from "../../../utils/create-provider";
|
|
6
5
|
import { useScreenAnimationPipeline } from "./helpers/pipeline";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ScreenAnimationContext = /*#__PURE__*/createContext(null);
|
|
8
|
+
ScreenAnimationContext.displayName = "ScreenAnimation";
|
|
9
|
+
function ScreenAnimationProvider({
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
const parentContext = useContext(ScreenAnimationContext);
|
|
13
13
|
const {
|
|
14
14
|
screenInterpolatorProps,
|
|
15
15
|
nextInterpolator,
|
|
@@ -25,16 +25,31 @@ const {
|
|
|
25
25
|
bounds: boundsAccessor
|
|
26
26
|
};
|
|
27
27
|
});
|
|
28
|
+
const ancestorScreenAnimations = useMemo(() => {
|
|
29
|
+
if (!parentContext) {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
return [parentContext.screenAnimation, ...parentContext.ancestorScreenAnimations];
|
|
33
|
+
}, [parentContext]);
|
|
28
34
|
const value = useMemo(() => ({
|
|
29
35
|
screenInterpolatorProps,
|
|
30
36
|
nextInterpolator,
|
|
31
37
|
currentInterpolator,
|
|
32
38
|
boundsAccessor,
|
|
33
|
-
screenAnimation
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
screenAnimation,
|
|
40
|
+
ancestorScreenAnimations
|
|
41
|
+
}), [screenInterpolatorProps, nextInterpolator, currentInterpolator, boundsAccessor, screenAnimation, ancestorScreenAnimations]);
|
|
42
|
+
return /*#__PURE__*/_jsx(ScreenAnimationContext.Provider, {
|
|
43
|
+
value: value,
|
|
44
|
+
children: children
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function useScreenAnimationContext() {
|
|
48
|
+
const context = useContext(ScreenAnimationContext);
|
|
49
|
+
if (!context) {
|
|
50
|
+
throw new Error("ScreenAnimation context must be used within a ScreenAnimationProvider");
|
|
51
|
+
}
|
|
52
|
+
return context;
|
|
53
|
+
}
|
|
54
|
+
export { ScreenAnimationContext, ScreenAnimationProvider, useScreenAnimationContext };
|
|
40
55
|
//# sourceMappingURL=animation.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","useDerivedValue","
|
|
1
|
+
{"version":3,"names":["createContext","useContext","useMemo","useDerivedValue","useScreenAnimationPipeline","jsx","_jsx","ScreenAnimationContext","displayName","ScreenAnimationProvider","children","parentContext","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","screenAnimation","props","value","bounds","ancestorScreenAnimations","Provider","useScreenAnimationContext","context","Error"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/animation.provider.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAkBC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC1E,SAA4BC,eAAe,QAAQ,yBAAyB;AAE5E,SAASC,0BAA0B,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAahE,MAAMC,sBAAsB,gBAC3BP,aAAa,CAAqC,IAAI,CAAC;AACxDO,sBAAsB,CAACC,WAAW,GAAG,iBAAiB;AAEtD,SAASC,uBAAuBA,CAAC;EAAEC;AAAgB,CAAC,EAAE;EACrD,MAAMC,aAAa,GAAGV,UAAU,CAACM,sBAAsB,CAAC;EAExD,MAAM;IACLK,uBAAuB;IACvBC,gBAAgB;IAChBC,mBAAmB;IACnBC;EACD,CAAC,GAAGX,0BAA0B,CAAC,CAAC;EAEhC,MAAMY,eAAe,GAAGb,eAAe,CAA2B,MAAM;IACvE,SAAS;;IACT,MAAMc,KAAK,GAAGL,uBAAuB,CAACM,KAAK;IAC3C,OAAO;MACN,GAAGD,KAAK;MACRE,MAAM,EAAEJ;IACT,CAAC;EACF,CAAC,CAAC;EAEF,MAAMK,wBAAwB,GAAGlB,OAAO,CAAC,MAAM;IAC9C,IAAI,CAACS,aAAa,EAAE;MACnB,OAAO,EAAE;IACV;IAEA,OAAO,CACNA,aAAa,CAACK,eAAe,EAC7B,GAAGL,aAAa,CAACS,wBAAwB,CACzC;EACF,CAAC,EAAE,CAACT,aAAa,CAAC,CAAC;EAEnB,MAAMO,KAAK,GAAGhB,OAAO,CACpB,OAAO;IACNU,uBAAuB;IACvBC,gBAAgB;IAChBC,mBAAmB;IACnBC,cAAc;IACdC,eAAe;IACfI;EACD,CAAC,CAAC,EACF,CACCR,uBAAuB,EACvBC,gBAAgB,EAChBC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,EACfI,wBAAwB,CAE1B,CAAC;EAED,oBACCd,IAAA,CAACC,sBAAsB,CAACc,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAR,QAAA,EAC5CA;EAAQ,CACuB,CAAC;AAEpC;AAEA,SAASY,yBAAyBA,CAAA,EAAgC;EACjE,MAAMC,OAAO,GAAGtB,UAAU,CAACM,sBAAsB,CAAC;EAElD,IAAI,CAACgB,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CACd,uEACD,CAAC;EACF;EAEA,OAAOD,OAAO;AACf;AAEA,SACChB,sBAAsB,EACtBE,uBAAuB,EACvBa,yBAAyB","ignoreList":[]}
|
|
@@ -21,19 +21,11 @@ export const derivations = ({
|
|
|
21
21
|
|
|
22
22
|
// The screen NOT driving the transition
|
|
23
23
|
const inactive = focused ? previous : current;
|
|
24
|
-
|
|
25
|
-
// deprecated
|
|
26
|
-
const isActiveTransitioning = !!(active.gesture.dragging || active.animating);
|
|
27
|
-
|
|
28
|
-
// deprecated
|
|
29
|
-
const isDismissing = !!(active.gesture.dismissing || active.closing);
|
|
30
24
|
return {
|
|
31
25
|
progress,
|
|
32
26
|
focused,
|
|
33
27
|
active,
|
|
34
|
-
inactive
|
|
35
|
-
isActiveTransitioning,
|
|
36
|
-
isDismissing
|
|
28
|
+
inactive
|
|
37
29
|
};
|
|
38
30
|
};
|
|
39
31
|
//# sourceMappingURL=derivations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["derivations","previous","current","next","progress","focused","active","inactive"
|
|
1
|
+
{"version":3,"names":["derivations","previous","current","next","progress","focused","active","inactive"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/derivations.ts"],"mappings":";;AAQA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,OAAO;EAAEC;AAAwB,CAAC,KAAK;EAC9E,SAAS;;EAET;EACA,MAAMC,QAAQ,GAAGF,OAAO,CAACE,QAAQ,IAAID,IAAI,EAAEC,QAAQ,IAAI,CAAC,CAAC;;EAEzD;EACA,MAAMC,OAAO,GAAG,CAACF,IAAI;;EAErB;EACA,MAAMG,MAAM,GAAGD,OAAO,GAAGH,OAAO,GAAIC,IAAI,IAAID,OAAQ;;EAEpD;EACA,MAAMK,QAAQ,GAAGF,OAAO,GAAGJ,QAAQ,GAAGC,OAAO;EAE7C,OAAO;IACNE,QAAQ;IACRC,OAAO;IACPC,MAAM;IACNC;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -102,10 +102,13 @@ export function useScreenAnimationPipeline() {
|
|
|
102
102
|
const prevAnimation = useBuildScreenTransitionState(previousDescriptor, "previous");
|
|
103
103
|
const currentRouteKey = currentDescriptor?.route?.key;
|
|
104
104
|
const currentIndex = routeKeys.indexOf(currentRouteKey);
|
|
105
|
-
const
|
|
105
|
+
const sortedNumericSnapPoints = useMemo(() => {
|
|
106
106
|
const points = currentDescriptor?.options?.snapPoints;
|
|
107
|
-
|
|
107
|
+
if (!points) return [];
|
|
108
|
+
return points.filter(p => typeof p === "number").sort((a, b) => a - b);
|
|
108
109
|
}, [currentDescriptor?.options?.snapPoints]);
|
|
110
|
+
const hasAutoSnapPoint = useMemo(() => currentDescriptor?.options?.snapPoints?.includes("auto") ?? false, [currentDescriptor?.options?.snapPoints]);
|
|
111
|
+
const autoSnapPointValue = AnimationStore.getAnimation(currentRouteKey ?? "_", "autoSnapPoint");
|
|
109
112
|
const nextRouteKey = nextDescriptor?.route?.key;
|
|
110
113
|
const nextHasTransitions = !!nextRouteKey && hasTransitionsEnabled(nextDescriptor?.options, transitionsAlwaysOn);
|
|
111
114
|
const framePropsMutable = useSharedValue({
|
|
@@ -121,9 +124,7 @@ export function useScreenAnimationPipeline() {
|
|
|
121
124
|
snapIndex: -1,
|
|
122
125
|
focused: true,
|
|
123
126
|
active: DEFAULT_SCREEN_TRANSITION_STATE,
|
|
124
|
-
inactive: undefined
|
|
125
|
-
isActiveTransitioning: false,
|
|
126
|
-
isDismissing: false
|
|
127
|
+
inactive: undefined
|
|
127
128
|
});
|
|
128
129
|
const boundsAccessor = useMemo(() => {
|
|
129
130
|
return createBoundsAccessor(() => {
|
|
@@ -151,7 +152,11 @@ export function useScreenAnimationPipeline() {
|
|
|
151
152
|
// This gives us the sum of progress values from current screen onwards
|
|
152
153
|
// Falls back to current progress if index is invalid
|
|
153
154
|
const stackProgress = currentIndex >= 0 ? rootStackProgress.value - currentIndex : progress;
|
|
154
|
-
|
|
155
|
+
|
|
156
|
+
// Resolve 'auto' snap point reactively so computeSnapIndex stays accurate
|
|
157
|
+
const resolvedAutoSnap = hasAutoSnapPoint && autoSnapPointValue.value > 0 ? autoSnapPointValue.value : null;
|
|
158
|
+
const resolvedSnapPoints = resolvedAutoSnap !== null ? [...sortedNumericSnapPoints, resolvedAutoSnap].sort((a, b) => a - b) : sortedNumericSnapPoints;
|
|
159
|
+
const snapIndex = computeSnapIndex(current.progress, resolvedSnapPoints);
|
|
155
160
|
const nextProps = {
|
|
156
161
|
layouts: {
|
|
157
162
|
screen: dimensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","useDerivedValue","useSharedValue","createScreenTransitionState","DEFAULT_SCREEN_TRANSITION_STATE","useStack","AnimationStore","GestureStore","createBoundsAccessor","useViewportContext","useDescriptors","derivations","toPlainRoute","toPlainValue","computeSnapIndex","progress","snapPoints","length","i","t","unwrapInto","s","out","unwrapped","value","closing","entering","animating","gesture","x","y","normX","normY","dismissing","dragging","direction","normalizedX","normalizedY","isDismissing","isDragging","settled","meta","useBuildScreenTransitionState","descriptor","slot","key","route","options","gestureEnabled","shouldUseNeutralNextGestures","undefined","plainRoute","plainMeta","getRouteAnimation","peekRouteGestures","getNeutralGestures","getRouteGestures","hasTransitionsEnabled","alwaysOn","enableTransitions","useScreenAnimationPipeline","flags","stackProgress","rootStackProgress","routeKeys","dimensions","insets","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","current","currentDescriptor","next","nextDescriptor","previous","previousDescriptor","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","currentIndex","indexOf","
|
|
1
|
+
{"version":3,"names":["useMemo","useDerivedValue","useSharedValue","createScreenTransitionState","DEFAULT_SCREEN_TRANSITION_STATE","useStack","AnimationStore","GestureStore","createBoundsAccessor","useViewportContext","useDescriptors","derivations","toPlainRoute","toPlainValue","computeSnapIndex","progress","snapPoints","length","i","t","unwrapInto","s","out","unwrapped","value","closing","entering","animating","gesture","x","y","normX","normY","dismissing","dragging","direction","normalizedX","normalizedY","isDismissing","isDragging","settled","meta","useBuildScreenTransitionState","descriptor","slot","key","route","options","gestureEnabled","shouldUseNeutralNextGestures","undefined","plainRoute","plainMeta","getRouteAnimation","peekRouteGestures","getNeutralGestures","getRouteGestures","hasTransitionsEnabled","alwaysOn","enableTransitions","useScreenAnimationPipeline","flags","stackProgress","rootStackProgress","routeKeys","dimensions","insets","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","current","currentDescriptor","next","nextDescriptor","previous","previousDescriptor","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","currentIndex","indexOf","sortedNumericSnapPoints","points","filter","p","sort","a","b","hasAutoSnapPoint","includes","autoSnapPointValue","getAnimation","nextRouteKey","nextHasTransitions","framePropsMutable","layouts","screen","snapIndex","focused","active","inactive","boundsAccessor","screenInterpolatorProps","helpers","resolvedAutoSnap","resolvedSnapPoints","nextProps","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/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AAGnF,gBAAgB,CAACuD,OAAO,CAACtD,QAAQ,EAAE0F,kBAAkB,CAAC;IAExE,MAAMC,SAAS,GAAG;MACjBX,OAAO,EAAE;QAAEC,MAAM,EAAE/B;MAAW,CAAC;MAC/BC,MAAM;MACNO,QAAQ;MACRJ,OAAO;MACPE,IAAI;MACJxD,QAAQ;MACR+C,aAAa;MACbmC,SAAS;MACT,GAAGM;IACJ,CAAC;IAEDT,iBAAiB,CAACtE,KAAK,GAAGkF,SAAS;IACnC,OAAOA,SAAS;EACjB,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAGnC,cAAc,EAAEzB,OAAO,CAAC6D,uBAAuB;EACxE,MAAMC,mBAAmB,GACxBvC,iBAAiB,EAAEvB,OAAO,CAAC6D,uBAAuB;EAEnD,OAAO;IACNN,uBAAuB;IACvBK,gBAAgB;IAChBE,mBAAmB;IACnBR;EACD,CAAC;AACF","ignoreList":[]}
|
package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const isAncestorTarget = target => {
|
|
4
|
+
return typeof target === "object" && target !== null && "ancestor" in target;
|
|
5
|
+
};
|
|
6
|
+
export function resolveScreenAnimationTarget({
|
|
7
|
+
target,
|
|
8
|
+
self,
|
|
9
|
+
ancestors
|
|
10
|
+
}) {
|
|
11
|
+
if (!target || target === "self") {
|
|
12
|
+
return self;
|
|
13
|
+
}
|
|
14
|
+
if (target === "parent") {
|
|
15
|
+
return ancestors[0] ?? self;
|
|
16
|
+
}
|
|
17
|
+
if (target === "root") {
|
|
18
|
+
return ancestors[ancestors.length - 1] ?? self;
|
|
19
|
+
}
|
|
20
|
+
if (!isAncestorTarget(target)) {
|
|
21
|
+
return self;
|
|
22
|
+
}
|
|
23
|
+
const depth = target.ancestor;
|
|
24
|
+
if (!Number.isInteger(depth) || depth < 1) {
|
|
25
|
+
return self;
|
|
26
|
+
}
|
|
27
|
+
return ancestors[depth - 1] ?? self;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=resolve-screen-animation-target.js.map
|
package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isAncestorTarget","target","resolveScreenAnimationTarget","self","ancestors","length","depth","ancestor","Number","isInteger"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts"],"mappings":";;AAUA,MAAMA,gBAAgB,GACrBC,MAA6B,IACO;EACpC,OAAO,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,IAAI,UAAU,IAAIA,MAAM;AAC7E,CAAC;AAED,OAAO,SAASC,4BAA4BA,CAAC;EAC5CD,MAAM;EACNE,IAAI;EACJC;AACO,CAAC,EAA0C;EAClD,IAAI,CAACH,MAAM,IAAIA,MAAM,KAAK,MAAM,EAAE;IACjC,OAAOE,IAAI;EACZ;EAEA,IAAIF,MAAM,KAAK,QAAQ,EAAE;IACxB,OAAOG,SAAS,CAAC,CAAC,CAAC,IAAID,IAAI;EAC5B;EAEA,IAAIF,MAAM,KAAK,MAAM,EAAE;IACtB,OAAOG,SAAS,CAACA,SAAS,CAACC,MAAM,GAAG,CAAC,CAAC,IAAIF,IAAI;EAC/C;EAEA,IAAI,CAACH,gBAAgB,CAACC,MAAM,CAAC,EAAE;IAC9B,OAAOE,IAAI;EACZ;EAEA,MAAMG,KAAK,GAAGL,MAAM,CAACM,QAAQ;EAC7B,IAAI,CAACC,MAAM,CAACC,SAAS,CAACH,KAAK,CAAC,IAAIA,KAAK,GAAG,CAAC,EAAE;IAC1C,OAAOH,IAAI;EACZ;EAEA,OAAOC,SAAS,CAACE,KAAK,GAAG,CAAC,CAAC,IAAIH,IAAI;AACpC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ScreenAnimationProvider","useScreenAnimationContext","useScreenAnimation"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/index.tsx"],"mappings":";;AAAA,SACCA,uBAAuB,EACvBC,yBAAyB,QACnB,sBAAsB;AAC7B,
|
|
1
|
+
{"version":3,"names":["ScreenAnimationProvider","useScreenAnimationContext","useScreenAnimation"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/index.tsx"],"mappings":";;AAAA,SACCA,uBAAuB,EACvBC,yBAAyB,QACnB,sBAAsB;AAC7B,SAECC,kBAAkB,QACZ,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useScreenAnimationContext } from "./animation.provider";
|
|
4
|
-
|
|
4
|
+
import { resolveScreenAnimationTarget } from "./helpers/resolve-screen-animation-target";
|
|
5
|
+
export function useScreenAnimation(target) {
|
|
5
6
|
const {
|
|
6
|
-
screenAnimation
|
|
7
|
+
screenAnimation,
|
|
8
|
+
ancestorScreenAnimations
|
|
7
9
|
} = useScreenAnimationContext();
|
|
8
|
-
return
|
|
10
|
+
return resolveScreenAnimationTarget({
|
|
11
|
+
target,
|
|
12
|
+
self: screenAnimation,
|
|
13
|
+
ancestors: ancestorScreenAnimations
|
|
14
|
+
});
|
|
9
15
|
}
|
|
10
16
|
//# sourceMappingURL=use-screen-animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useScreenAnimationContext","useScreenAnimation","screenAnimation"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["useScreenAnimationContext","resolveScreenAnimationTarget","useScreenAnimation","target","screenAnimation","ancestorScreenAnimations","self","ancestors"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;AAEA,SAASA,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,4BAA4B,QAAQ,2CAA2C;AAKxF,OAAO,SAASC,kBAAkBA,CACjCC,MAA8B,EACW;EACzC,MAAM;IAAEC,eAAe;IAAEC;EAAyB,CAAC,GAClDL,yBAAyB,CAAC,CAAC;EAC5B,OAAOC,4BAA4B,CAAC;IACnCE,MAAM;IACNG,IAAI,EAAEF,eAAe;IACrBG,SAAS,EAAEF;EACZ,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { StackContext } from "../../hooks/navigation/use-stack";
|
|
5
5
|
import { AnimationStore } from "../../stores/animation.store";
|
|
6
|
-
import {
|
|
6
|
+
import { isOverlayVisible } from "../../utils/overlay/visibility";
|
|
7
7
|
import { useStackCoreContext } from "./core.provider";
|
|
8
8
|
import { useStackDerived } from "./helpers/use-stack-derived";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -52,7 +52,7 @@ function useDirectStackValue(props) {
|
|
|
52
52
|
animationMaps.push(AnimationStore.getRouteAnimations(route.key));
|
|
53
53
|
if (!shouldShowFloatOverlay && descriptor) {
|
|
54
54
|
const options = descriptor.options;
|
|
55
|
-
if (options?.enableTransitions === true &&
|
|
55
|
+
if (options?.enableTransitions === true && isOverlayVisible(options)) {
|
|
56
56
|
shouldShowFloatOverlay = true;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","StackContext","AnimationStore","
|
|
1
|
+
{"version":3,"names":["useMemo","StackContext","AnimationStore","isOverlayVisible","useStackCoreContext","useStackDerived","jsx","_jsx","useDirectStackValue","props","state","navigation","descriptors","describe","flags","navigatorKey","key","preloadedDescriptors","preloadedRoutes","reduce","acc","route","scenes","shouldShowFloatOverlay","routeKeys","allRoutes","animationMaps","routes","concat","allDescriptors","descriptor","isPreloaded","undefined","push","getRouteAnimations","options","enableTransitions","stackProgress","optimisticFocusedIndex","focusedIndex","index","stackContextValue","lifecycleValue","withDirectStack","Component","DirectStackProvider","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["shared/providers/stack/direct.provider.tsx"],"mappings":";;AACA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SACCC,YAAY,QAEN,kCAAkC;AACzC,SACCC,cAAc,QAER,8BAA8B;AAMrC,SAASC,gBAAgB,QAAQ,gCAAgC;AACjE,SAASC,mBAAmB,QAAQ,iBAAiB;AACrD,SAASC,eAAe,QAAQ,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,SAASC,mBAAmBA,CAC3BC,KAAuB,EAC8C;EACrE,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC,WAAW;IAAEC;EAAS,CAAC,GAAGJ,KAAK;EAC1D,MAAM;IAAEK;EAAM,CAAC,GAAGV,mBAAmB,CAAC,CAAC;EACvC,MAAMW,YAAY,GAAGL,KAAK,CAACM,GAAG;EAE9B,MAAMC,oBAAoB,GAAGjB,OAAO,CAAC,MAAM;IAC1C,OAAOU,KAAK,CAACQ,eAAe,CAACC,MAAM,CAClC,CAACC,GAAG,EAAEC,KAAK,KAAK;MACfD,GAAG,CAACC,KAAK,CAACL,GAAG,CAAC,GAAGI,GAAG,CAACC,KAAK,CAACL,GAAG,CAAC,IAAIH,QAAQ,CAACQ,KAAK,EAAE,IAAI,CAAC;MACxD,OAAOD,GAAG;IACX,CAAC,EACD,CAAC,CACF,CAAC;EACF,CAAC,EAAE,CAACV,KAAK,CAACQ,eAAe,EAAEL,QAAQ,CAAC,CAAC;EAErC,MAAM;IACLS,MAAM;IACNC,sBAAsB;IACtBC,SAAS;IACTC,SAAS;IACTC;EACD,CAAC,GAAG1B,OAAO,CAAC,MAAM;IACjB,MAAMyB,SAAS,GAAGf,KAAK,CAACiB,MAAM,CAACC,MAAM,CAAClB,KAAK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7B,KAAK,CAAC8B,KAAK;EAEhC,MAAMC,iBAAiB,GAAGzC,OAAO,CAChC,OAAO;IACNc,KAAK;IACLC,YAAY;IACZS,SAAS;IACTG,MAAM,EAAEF,SAAS;IACjBH,MAAM;IACNe,aAAa;IACbC;EACD,CAAC,CAAC,EACF,CACCxB,KAAK,EACLC,YAAY,EACZS,SAAS,EACTC,SAAS,EACTH,MAAM,EACNe,aAAa,EACbC,sBAAsB,CAExB,CAAC;;EAED;EACA,MAAMI,cAAc,GAAG1C,OAAO,CAC7B,OAAO;IACNU,KAAK;IACLC,UAAU;IACVC,WAAW;IACXU,MAAM;IACNiB,YAAY;IACZhB;EACD,CAAC,CAAC,EACF,CACCb,KAAK,EACLC,UAAU,EACVC,WAAW,EACXU,MAAM,EACNiB,YAAY,EACZhB,sBAAsB,CAExB,CAAC;EAED,OAAO;IAAE,GAAGmB,cAAc;IAAED;EAAkB,CAAC;AAChD;AAEA,SAASE,eAAeA,CACvBC,SAAuD,EACpC;EACnB,OAAO,SAASC,mBAAmBA,CAACpC,KAAa,EAAE;IAClD,MAAM;MAAEgC,iBAAiB;MAAE,GAAGC;IAAe,CAAC,GAAGlC,mBAAmB,CAACC,KAAK,CAAC;IAE3E,oBACCF,IAAA,CAACN,YAAY,CAAC6C,QAAQ;MAACC,KAAK,EAAEN,iBAAkB;MAAAO,QAAA,eAC/CzC,IAAA,CAACqC,SAAS;QAAA,GAAKF;MAAc,CAAG;IAAC,CACX,CAAC;EAE1B,CAAC;AACF;AAEA,SAASC,eAAe","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { AnimationStore } from "../../../stores/animation.store";
|
|
5
|
-
import {
|
|
5
|
+
import { isOverlayVisible } from "../../../utils/overlay/visibility";
|
|
6
6
|
/**
|
|
7
7
|
* Processes raw routes + descriptors into derived arrays needed by the stack.
|
|
8
8
|
* Single reverse pass computes: scenes, routeKeys, backdropBehaviors,
|
|
@@ -29,7 +29,7 @@ export function useProcessedRoutes(routes, descriptors) {
|
|
|
29
29
|
backdropBehaviors[i] = options?.backdropBehavior ?? "block";
|
|
30
30
|
animationMaps[i] = AnimationStore.getRouteAnimations(route.key);
|
|
31
31
|
if (!shouldShowFloatOverlay) {
|
|
32
|
-
shouldShowFloatOverlay =
|
|
32
|
+
shouldShowFloatOverlay = isOverlayVisible(options);
|
|
33
33
|
}
|
|
34
34
|
if (!stopLimit) {
|
|
35
35
|
const shouldKeepPrevious = options?.detachPreviousScreen !== true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","AnimationStore","
|
|
1
|
+
{"version":3,"names":["useMemo","AnimationStore","isOverlayVisible","useProcessedRoutes","routes","descriptors","scenes","routeKeys","backdropBehaviors","animationMaps","shouldShowFloatOverlay","limit","stopLimit","i","length","route","descriptor","key","options","backdropBehavior","getRouteAnimations","shouldKeepPrevious","detachPreviousScreen","activeScreensLimit","Math","min"],"sourceRoot":"../../../../../../src","sources":["shared/providers/stack/helpers/use-processed-routes.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SACCC,cAAc,QAER,iCAAiC;AAKxC,SAASC,gBAAgB,QAAQ,mCAAmC;AAapE;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAGjCC,MAA8B,EAC9BC,WAAwC,EACT;EAC/B,OAAOL,OAAO,CAAC,MAAM;IACpB,MAAMM,MAAqC,GAAG,EAAE;IAChD,MAAMC,SAAmB,GAAG,EAAE;IAC9B,MAAMC,iBAA2B,GAAG,EAAE;IACtC,MAAMC,aAAkC,GAAG,EAAE;IAE7C,IAAIC,sBAAsB,GAAG,KAAK;IAClC,IAAIC,KAAK,GAAG,CAAC;IACb,IAAIC,SAAS,GAAG,KAAK;IAErB,KAAK,IAAIC,CAAC,GAAGT,MAAM,CAACU,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MAC5C,MAAME,KAAK,GAAGX,MAAM,CAACS,CAAC,CAAC;MACvB,MAAMG,UAAU,GAAGX,WAAW,CAACU,KAAK,CAACE,GAAG,CAAgB;MACxD,MAAMC,OAAO,GAAGF,UAAU,EAAEE,OAAO;MAEnCZ,MAAM,CAACO,CAAC,CAAC,GAAG;QAAEE,KAAK;QAAEC;MAAW,CAAC;MACjCT,SAAS,CAACM,CAAC,CAAC,GAAGE,KAAK,CAACE,GAAG;MACxBT,iBAAiB,CAACK,CAAC,CAAC,GAAGK,OAAO,EAAEC,gBAAgB,IAAI,OAAO;MAC3DV,aAAa,CAACI,CAAC,CAAC,GAAGZ,cAAc,CAACmB,kBAAkB,CAACL,KAAK,CAACE,GAAG,CAAC;MAE/D,IAAI,CAACP,sBAAsB,EAAE;QAC5BA,sBAAsB,GAAGR,gBAAgB,CAACgB,OAAO,CAAC;MACnD;MAEA,IAAI,CAACN,SAAS,EAAE;QACf,MAAMS,kBAAkB,GACtBH,OAAO,EACLI,oBAAoB,KAAK,IAAI;QAEjC,IAAID,kBAAkB,EAAE;UACvBV,KAAK,IAAI,CAAC;QACX,CAAC,MAAM;UACNC,SAAS,GAAG,IAAI;QACjB;MACD;IACD;IAEA,MAAMW,kBAAkB,GAAGC,IAAI,CAACC,GAAG,CAClCd,KAAK,EACLP,MAAM,CAACU,MAAM,KAAK,CAAC,GAAG,CAAC,GAAGV,MAAM,CAACU,MAClC,CAAC;IAED,OAAO;MACNR,MAAM;MACNC,SAAS;MACTC,iBAAiB;MACjBC,aAAa;MACbC,sBAAsB;MACtBa;IACD,CAAC;EACF,CAAC,EAAE,CAACnB,MAAM,EAAEC,WAAW,CAAC,CAAC;AAC1B","ignoreList":[]}
|
|
@@ -7,8 +7,9 @@ function createAnimationBag() {
|
|
|
7
7
|
progress: makeMutable(0),
|
|
8
8
|
closing: makeMutable(0),
|
|
9
9
|
animating: makeMutable(0),
|
|
10
|
-
entering: makeMutable(
|
|
11
|
-
targetProgress: makeMutable(1)
|
|
10
|
+
entering: makeMutable(0),
|
|
11
|
+
targetProgress: makeMutable(1),
|
|
12
|
+
autoSnapPoint: makeMutable(-1)
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
function ensure(routeKey) {
|
|
@@ -25,6 +26,9 @@ function peekRouteAnimations(routeKey) {
|
|
|
25
26
|
function getRouteAnimation(routeKey, type) {
|
|
26
27
|
return ensure(routeKey)[type];
|
|
27
28
|
}
|
|
29
|
+
function getAnimation(routeKey, type) {
|
|
30
|
+
return getRouteAnimation(routeKey, type);
|
|
31
|
+
}
|
|
28
32
|
function getRouteAnimations(routeKey) {
|
|
29
33
|
return ensure(routeKey);
|
|
30
34
|
}
|
|
@@ -36,10 +40,12 @@ function clear(routeKey) {
|
|
|
36
40
|
cancelAnimation(bag.closing);
|
|
37
41
|
cancelAnimation(bag.entering);
|
|
38
42
|
cancelAnimation(bag.targetProgress);
|
|
43
|
+
cancelAnimation(bag.autoSnapPoint);
|
|
39
44
|
}
|
|
40
45
|
delete store[routeKey];
|
|
41
46
|
}
|
|
42
47
|
export const AnimationStore = {
|
|
48
|
+
getAnimation,
|
|
43
49
|
peekRouteAnimations,
|
|
44
50
|
getRouteAnimation,
|
|
45
51
|
getRouteAnimations,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cancelAnimation","makeMutable","store","createAnimationBag","progress","closing","animating","entering","targetProgress","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getRouteAnimations","clear","AnimationStore"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;
|
|
1
|
+
{"version":3,"names":["cancelAnimation","makeMutable","store","createAnimationBag","progress","closing","animating","entering","targetProgress","autoSnapPoint","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getAnimation","getRouteAnimations","clear","AnimationStore"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;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,eAAe,CAACY,GAAG,CAACN,SAAS,CAAC;IAC9BN,eAAe,CAACY,GAAG,CAACP,OAAO,CAAC;IAC5BL,eAAe,CAACY,GAAG,CAACL,QAAQ,CAAC;IAC7BP,eAAe,CAACY,GAAG,CAACJ,cAAc,CAAC;IACnCR,eAAe,CAACY,GAAG,CAACH,aAAa,CAAC;EACnC;EACA,OAAOP,KAAK,CAACS,QAAQ,CAAC;AACvB;AAEA,OAAO,MAAMQ,cAAc,GAAG;EAC7BH,YAAY;EACZH,mBAAmB;EACnBC,iBAAiB;EACjBG,kBAAkB;EAClBC;AACD,CAAC","ignoreList":[]}
|
|
@@ -43,6 +43,7 @@ function getSnapshotBoundsByPriority(tag, keys) {
|
|
|
43
43
|
if (!snapshot) continue;
|
|
44
44
|
return {
|
|
45
45
|
bounds: snapshot.bounds,
|
|
46
|
+
styles: snapshot.styles,
|
|
46
47
|
screenKey: key
|
|
47
48
|
};
|
|
48
49
|
}
|
|
@@ -81,6 +82,8 @@ function resolveTransitionPair(tag, context) {
|
|
|
81
82
|
}
|
|
82
83
|
let sourceBounds = matchedLink?.source?.bounds ?? null;
|
|
83
84
|
let destinationBounds = matchedLink?.destination?.bounds ?? null;
|
|
85
|
+
let sourceStyles = matchedLink?.source?.styles ?? null;
|
|
86
|
+
let destinationStyles = matchedLink?.destination?.styles ?? null;
|
|
84
87
|
let sourceScreenKey = matchedLink?.source?.screenKey ?? null;
|
|
85
88
|
let destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
|
|
86
89
|
let usedSnapshotSource = false;
|
|
@@ -91,6 +94,7 @@ function resolveTransitionPair(tag, context) {
|
|
|
91
94
|
const sourceSnapshot = getSnapshotBoundsByPriority(tag, sourceFallbackKeys);
|
|
92
95
|
if (sourceSnapshot) {
|
|
93
96
|
sourceBounds = sourceSnapshot.bounds;
|
|
97
|
+
sourceStyles = sourceSnapshot.styles;
|
|
94
98
|
sourceScreenKey = sourceSnapshot.screenKey;
|
|
95
99
|
usedSnapshotSource = true;
|
|
96
100
|
}
|
|
@@ -99,6 +103,7 @@ function resolveTransitionPair(tag, context) {
|
|
|
99
103
|
const destinationSnapshot = getSnapshotBoundsByPriority(tag, destinationFallbackKeys);
|
|
100
104
|
if (destinationSnapshot) {
|
|
101
105
|
destinationBounds = destinationSnapshot.bounds;
|
|
106
|
+
destinationStyles = destinationSnapshot.styles;
|
|
102
107
|
destinationScreenKey = destinationSnapshot.screenKey;
|
|
103
108
|
usedSnapshotDestination = true;
|
|
104
109
|
}
|
|
@@ -109,6 +114,8 @@ function resolveTransitionPair(tag, context) {
|
|
|
109
114
|
return {
|
|
110
115
|
sourceBounds,
|
|
111
116
|
destinationBounds,
|
|
117
|
+
sourceStyles,
|
|
118
|
+
destinationStyles,
|
|
112
119
|
sourceScreenKey,
|
|
113
120
|
destinationScreenKey,
|
|
114
121
|
usedPending,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["matchesScreenKey","getSnapshot","debugResolverLog","registry","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","bounds","resolveTransitionPair","context","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["matchesScreenKey","getSnapshot","debugResolverLog","registry","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","bounds","styles","resolveTransitionPair","context","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceStyles","destinationStyles","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;AACA,SAASA,gBAAgB,QAAQ,qBAAqB;AAStD,SAASC,WAAW,QAAQ,YAAY;AACxC,SAASC,gBAAgB,EAAEC,QAAQ,QAAQ,SAAS;AAEpD,MAAMC,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CAACA,IAAI,CAACG,WAAW,IAAId,gBAAgB,CAACW,IAAI,CAACG,WAAW,EAAED,SAAS,CACpE,CAAC;AACF;AAEA,SAASE,yBAAyBA,CACjCV,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IAAK,CAAC,CAACA,IAAI,CAACG,WAAW,IAAId,gBAAgB,CAACW,IAAI,CAACK,MAAM,EAAEH,SAAS,CACxE,CAAC;AACF;AAEA,SAASI,uBAAuBA,CAC/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EACF;EAEA,OAAO;IACNK,YAAY;IACZC,iBAAiB;IACjBC,YAAY;IACZC,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBV,WAAW;IACXW,kBAAkB;IAClBC;EACD,CAAC;AACF;AAEA,SAAShB,qBAAqB","ignoreList":[]}
|
|
@@ -40,6 +40,9 @@ export const animateToProgress = ({
|
|
|
40
40
|
if (!config) {
|
|
41
41
|
animating.set(FALSE);
|
|
42
42
|
progress.set(value);
|
|
43
|
+
if (!isClosing) {
|
|
44
|
+
entering.set(FALSE);
|
|
45
|
+
}
|
|
43
46
|
if (onAnimationFinish) {
|
|
44
47
|
runOnJS(onAnimationFinish)(true);
|
|
45
48
|
}
|
|
@@ -50,6 +53,9 @@ export const animateToProgress = ({
|
|
|
50
53
|
"worklet";
|
|
51
54
|
|
|
52
55
|
if (!finished) return;
|
|
56
|
+
if (!isClosing) {
|
|
57
|
+
entering.set(FALSE);
|
|
58
|
+
}
|
|
53
59
|
if (onAnimationFinish) {
|
|
54
60
|
runOnJS(onAnimationFinish)(finished);
|
|
55
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["runOnJS","FALSE","TRUE","animate","animateToProgress","target","spec","onAnimationFinish","animations","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","targetProgress","set","finished","requestAnimationFrame"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,KAAK,EAAEC,IAAI,QAAQ,iBAAiB;AAG7C,SAASC,OAAO,QAAQ,WAAW;AAiBnC,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SAAS,GACdL,MAAM,KAAK,OAAO,IAAK,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,CAAE;EACnE,MAAMM,KAAK,GAAG,OAAON,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAGA,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC;;EAE7E;EACA,MAAMO,MAAM,GAAGF,SAAS,GAAGJ,IAAI,EAAEO,KAAK,GAAGP,IAAI,EAAEQ,IAAI;EAEnD,MAAMC,cAAc,GACnB,CAAC,CAACH,MAAM,IAAI,EAAE,UAAU,IAAIA,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAIA,MAAM,CAAC;EAE7D,MAAMI,eAAe,GACpBD,cAAc,IAAI,OAAON,eAAe,KAAK,QAAQ,GAClD;IAAE,GAAGG,MAAM;IAAEK,QAAQ,EAAER;EAAgB,CAAC,GACxCG,MAAM;EAEV,MAAM;IAAEM,QAAQ;IAAEC,SAAS;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAe,CAAC,GAAGd,UAAU;EAE7Ec,cAAc,CAACC,GAAG,CAACZ,KAAK,CAAC;EAEzB,IAAID,SAAS,EAAE;IACdU,OAAO,CAACG,GAAG,CAACrB,IAAI,CAAC;IACjBmB,QAAQ,CAACE,GAAG,CAACtB,KAAK,CAAC;EACpB,CAAC,MAAM;IACNoB,QAAQ,CAACE,GAAG,CAACrB,IAAI,CAAC;EACnB;EAEA,IAAI,CAACU,MAAM,EAAE;IACZO,SAAS,CAACI,GAAG,CAACtB,KAAK,CAAC;IACpBiB,QAAQ,CAACK,GAAG,CAACZ,KAAK,CAAC;
|
|
1
|
+
{"version":3,"names":["runOnJS","FALSE","TRUE","animate","animateToProgress","target","spec","onAnimationFinish","animations","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","targetProgress","set","finished","requestAnimationFrame"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,KAAK,EAAE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SAAS,EAAE;MACfW,QAAQ,CAACE,GAAG,CAACtB,KAAK,CAAC;IACpB;IAEA,IAAIM,iBAAiB,EAAE;MACtBP,OAAO,CAACO,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAY,SAAS,CAACI,GAAG,CAACrB,IAAI,CAAC,CAAC,CAAC;EACrBgB,QAAQ,CAACK,GAAG,CACXpB,OAAO,CAACQ,KAAK,EAAEK,eAAe,EAAGQ,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAACd,SAAS,EAAE;MACfW,QAAQ,CAACE,GAAG,CAACtB,KAAK,CAAC;IACpB;IAEA,IAAIM,iBAAiB,EAAE;MACtBP,OAAO,CAACO,iBAAiB,CAAC,CAACiB,QAAQ,CAAC;IACrC;;IAEA;IACAC,qBAAqB,CAAC,MAAM;MAC3BN,SAAS,CAACI,GAAG,CAACtB,KAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@ const resolveBounds = params => {
|
|
|
15
15
|
const currentScreenKey = params.current?.route.key;
|
|
16
16
|
const previousScreenKey = params.previous?.route.key;
|
|
17
17
|
const nextScreenKey = params.next?.route.key;
|
|
18
|
-
const resolvedPair = params.resolvedPair ?? BoundStore.resolveTransitionPair(params.id, {
|
|
18
|
+
const resolvedPair = params.resolvedPair ?? BoundStore.resolveTransitionPair(String(params.id), {
|
|
19
19
|
currentScreenKey,
|
|
20
20
|
previousScreenKey,
|
|
21
21
|
nextScreenKey,
|
|
@@ -27,7 +27,10 @@ const resolveBounds = params => {
|
|
|
27
27
|
return {
|
|
28
28
|
start: null,
|
|
29
29
|
end: null,
|
|
30
|
-
entering
|
|
30
|
+
entering,
|
|
31
|
+
currentScreenKey,
|
|
32
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
33
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -36,7 +39,10 @@ const resolveBounds = params => {
|
|
|
36
39
|
return {
|
|
37
40
|
start: null,
|
|
38
41
|
end: null,
|
|
39
|
-
entering
|
|
42
|
+
entering,
|
|
43
|
+
currentScreenKey,
|
|
44
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
45
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
40
46
|
};
|
|
41
47
|
}
|
|
42
48
|
const start = sourceBounds;
|
|
@@ -51,7 +57,10 @@ const resolveBounds = params => {
|
|
|
51
57
|
return {
|
|
52
58
|
start,
|
|
53
59
|
end,
|
|
54
|
-
entering
|
|
60
|
+
entering,
|
|
61
|
+
currentScreenKey,
|
|
62
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
63
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
55
64
|
};
|
|
56
65
|
};
|
|
57
66
|
export const computeBoundStyles = ({
|
|
@@ -75,7 +84,10 @@ export const computeBoundStyles = ({
|
|
|
75
84
|
const {
|
|
76
85
|
start,
|
|
77
86
|
end,
|
|
78
|
-
entering
|
|
87
|
+
entering,
|
|
88
|
+
currentScreenKey,
|
|
89
|
+
sourceScreenKey,
|
|
90
|
+
destinationScreenKey
|
|
79
91
|
} = resolveBounds({
|
|
80
92
|
id,
|
|
81
93
|
previous,
|
|
@@ -93,19 +105,22 @@ export const computeBoundStyles = ({
|
|
|
93
105
|
}
|
|
94
106
|
const ranges = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
95
107
|
if (computeOptions.method === "content") {
|
|
108
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
|
|
109
|
+
const contentStart = currentOwnsSource ? end : start;
|
|
110
|
+
const contentEnd = currentOwnsSource ? start : end;
|
|
96
111
|
const geometry = computeContentTransformGeometry({
|
|
97
|
-
start,
|
|
98
|
-
end,
|
|
112
|
+
start: contentStart,
|
|
113
|
+
end: contentEnd,
|
|
99
114
|
entering,
|
|
100
115
|
dimensions,
|
|
101
116
|
anchor: computeOptions.anchor,
|
|
102
117
|
scaleMode: computeOptions.scaleMode
|
|
103
118
|
});
|
|
104
119
|
return composeContentStyle({
|
|
105
|
-
start,
|
|
120
|
+
start: contentStart,
|
|
106
121
|
progress,
|
|
107
122
|
ranges,
|
|
108
|
-
end,
|
|
123
|
+
end: contentEnd,
|
|
109
124
|
geometry,
|
|
110
125
|
computeOptions
|
|
111
126
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EMPTY_BOUND_HELPER_RESULT","EMPTY_BOUND_HELPER_RESULT_RAW","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","BoundStore","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","resolveBounds","params","entering","next","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","resolveTransitionPair","id","sourceBounds","destinationBounds","start","end","customTarget","computeBoundStyles","progress","raw","ranges","method","geometry","anchor","scaleMode","common","isSize","isAbsolute","space"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;AACA,SACCA,yBAAyB,EACzBC,6BAA6B,EAC7BC,WAAW,EACXC,UAAU,EACVC,qBAAqB,QACf,oBAAoB;AAC3B,SACCC,UAAU,QAEJ,wBAAwB;
|
|
1
|
+
{"version":3,"names":["EMPTY_BOUND_HELPER_RESULT","EMPTY_BOUND_HELPER_RESULT_RAW","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","BoundStore","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","resolveBounds","params","entering","next","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","ranges","method","currentOwnsSource","contentStart","contentEnd","geometry","anchor","scaleMode","common","isSize","isAbsolute","space"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;AACA,SACCA,yBAAyB,EACzBC,6BAA6B,EAC7BC,WAAW,EACXC,UAAU,EACVC,qBAAqB,QACf,oBAAoB;AAC3B,SACCC,UAAU,QAEJ,wBAAwB;AAQ/B,SACCC,+BAA+B,EAC/BC,uBAAuB,QACjB,YAAY;AACnB,SACCC,mBAAmB,EACnBC,mBAAmB,EACnBC,mBAAmB,EACnBC,wBAAwB,EACxBC,wBAAwB,QAElB,mBAAmB;AAE1B,MAAMC,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAGb,qBAAqB,CAACU,MAAM,CAACI,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGL,MAAM,CAACM,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOR,MAAM,CAACM,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGV,MAAM,CAACW,OAAO,EAAEC,KAAK,CAACC,GAAG;EAClD,MAAMC,iBAAiB,GAAGd,MAAM,CAACe,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACpD,MAAMG,aAAa,GAAGhB,MAAM,CAACE,IAAI,EAAEU,KAAK,CAACC,GAAG;EAE5C,MAAMI,YAAY,GACjBjB,MAAM,CAACiB,YAAY,IACnB1B,UAA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