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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveRuntimeSnapPoints","snapPoints","hasAutoSnapPoint","autoSnapPoint","minSnapPoint","maxSnapPoint","canDismiss","resolvedAutoSnapPoint","resolvedSnapPoints","sort","a","b","resolvedMinSnapPoint","Math","min","resolvedMaxSnapPoint","length","exports","findNearestSnapPoint","progress","nearest","smallestDistance","abs","i","point","distance"],"sourceRoot":"../../../../../../src","sources":["shared/providers/gestures/helpers/gesture-snap-points.ts"],"mappings":";;;;;;AAgBO,MAAMA,wBAAwB,GAAGA,CAAC;EACxC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E3C,IAAIC,QAAQ,GAAGJ,gBAAgB,EAAE;MAChCA,gBAAgB,GAAGI,QAAQ;MAC3BL,OAAO,GAAGI,KAAK;IAChB;EACD;EAEA,OAAOJ,OAAO;AACf,CAAC;AAACH,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ScreenAnimationContext = void 0;
|
|
7
|
+
exports.ScreenAnimationProvider = ScreenAnimationProvider;
|
|
8
|
+
exports.useScreenAnimationContext = useScreenAnimationContext;
|
|
7
9
|
var _react = require("react");
|
|
8
10
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
-
var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
|
|
10
11
|
var _pipeline = require("./helpers/pipeline");
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
const ScreenAnimationContext = exports.ScreenAnimationContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
14
|
+
ScreenAnimationContext.displayName = "ScreenAnimation";
|
|
15
|
+
function ScreenAnimationProvider({
|
|
16
|
+
children
|
|
17
|
+
}) {
|
|
18
|
+
const parentContext = (0, _react.useContext)(ScreenAnimationContext);
|
|
18
19
|
const {
|
|
19
20
|
screenInterpolatorProps,
|
|
20
21
|
nextInterpolator,
|
|
@@ -30,17 +31,30 @@ const {
|
|
|
30
31
|
bounds: boundsAccessor
|
|
31
32
|
};
|
|
32
33
|
});
|
|
34
|
+
const ancestorScreenAnimations = (0, _react.useMemo)(() => {
|
|
35
|
+
if (!parentContext) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
return [parentContext.screenAnimation, ...parentContext.ancestorScreenAnimations];
|
|
39
|
+
}, [parentContext]);
|
|
33
40
|
const value = (0, _react.useMemo)(() => ({
|
|
34
41
|
screenInterpolatorProps,
|
|
35
42
|
nextInterpolator,
|
|
36
43
|
currentInterpolator,
|
|
37
44
|
boundsAccessor,
|
|
38
|
-
screenAnimation
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
screenAnimation,
|
|
46
|
+
ancestorScreenAnimations
|
|
47
|
+
}), [screenInterpolatorProps, nextInterpolator, currentInterpolator, boundsAccessor, screenAnimation, ancestorScreenAnimations]);
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ScreenAnimationContext.Provider, {
|
|
49
|
+
value: value,
|
|
50
|
+
children: children
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function useScreenAnimationContext() {
|
|
54
|
+
const context = (0, _react.useContext)(ScreenAnimationContext);
|
|
55
|
+
if (!context) {
|
|
56
|
+
throw new Error("ScreenAnimation context must be used within a ScreenAnimationProvider");
|
|
57
|
+
}
|
|
58
|
+
return context;
|
|
59
|
+
}
|
|
46
60
|
//# sourceMappingURL=animation.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_pipeline","_jsxRuntime","ScreenAnimationContext","exports","createContext","displayName","ScreenAnimationProvider","children","parentContext","useContext","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","useScreenAnimationPipeline","screenAnimation","useDerivedValue","props","value","bounds","ancestorScreenAnimations","useMemo","jsx","Provider","useScreenAnimationContext","context","Error"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/animation.provider.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAA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AA,EAAgC;EACjE,MAAMC,OAAO,GAAG,IAAAhB,iBAAU,EAACP,sBAAsB,CAAC;EAElD,IAAI,CAACuB,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CACd,uEACD,CAAC;EACF;EAEA,OAAOD,OAAO;AACf","ignoreList":[]}
|
|
@@ -25,19 +25,11 @@ const derivations = ({
|
|
|
25
25
|
|
|
26
26
|
// The screen NOT driving the transition
|
|
27
27
|
const inactive = focused ? previous : current;
|
|
28
|
-
|
|
29
|
-
// deprecated
|
|
30
|
-
const isActiveTransitioning = !!(active.gesture.dragging || active.animating);
|
|
31
|
-
|
|
32
|
-
// deprecated
|
|
33
|
-
const isDismissing = !!(active.gesture.dismissing || active.closing);
|
|
34
28
|
return {
|
|
35
29
|
progress,
|
|
36
30
|
focused,
|
|
37
31
|
active,
|
|
38
|
-
inactive
|
|
39
|
-
isActiveTransitioning,
|
|
40
|
-
isDismissing
|
|
32
|
+
inactive
|
|
41
33
|
};
|
|
42
34
|
};
|
|
43
35
|
exports.derivations = derivations;
|
|
@@ -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","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/derivations.ts"],"mappings":";;;;;;AAQA;AACA;AACA;AACO,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;AAACC,OAAA,CAAAR,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -106,10 +106,13 @@ function useScreenAnimationPipeline() {
|
|
|
106
106
|
const prevAnimation = useBuildScreenTransitionState(previousDescriptor, "previous");
|
|
107
107
|
const currentRouteKey = currentDescriptor?.route?.key;
|
|
108
108
|
const currentIndex = routeKeys.indexOf(currentRouteKey);
|
|
109
|
-
const
|
|
109
|
+
const sortedNumericSnapPoints = (0, _react.useMemo)(() => {
|
|
110
110
|
const points = currentDescriptor?.options?.snapPoints;
|
|
111
|
-
|
|
111
|
+
if (!points) return [];
|
|
112
|
+
return points.filter(p => typeof p === "number").sort((a, b) => a - b);
|
|
112
113
|
}, [currentDescriptor?.options?.snapPoints]);
|
|
114
|
+
const hasAutoSnapPoint = (0, _react.useMemo)(() => currentDescriptor?.options?.snapPoints?.includes("auto") ?? false, [currentDescriptor?.options?.snapPoints]);
|
|
115
|
+
const autoSnapPointValue = _animation.AnimationStore.getAnimation(currentRouteKey ?? "_", "autoSnapPoint");
|
|
113
116
|
const nextRouteKey = nextDescriptor?.route?.key;
|
|
114
117
|
const nextHasTransitions = !!nextRouteKey && hasTransitionsEnabled(nextDescriptor?.options, transitionsAlwaysOn);
|
|
115
118
|
const framePropsMutable = (0, _reactNativeReanimated.useSharedValue)({
|
|
@@ -125,9 +128,7 @@ function useScreenAnimationPipeline() {
|
|
|
125
128
|
snapIndex: -1,
|
|
126
129
|
focused: true,
|
|
127
130
|
active: _constants.DEFAULT_SCREEN_TRANSITION_STATE,
|
|
128
|
-
inactive: undefined
|
|
129
|
-
isActiveTransitioning: false,
|
|
130
|
-
isDismissing: false
|
|
131
|
+
inactive: undefined
|
|
131
132
|
});
|
|
132
133
|
const boundsAccessor = (0, _react.useMemo)(() => {
|
|
133
134
|
return (0, _bounds.createBoundsAccessor)(() => {
|
|
@@ -155,7 +156,11 @@ function useScreenAnimationPipeline() {
|
|
|
155
156
|
// This gives us the sum of progress values from current screen onwards
|
|
156
157
|
// Falls back to current progress if index is invalid
|
|
157
158
|
const stackProgress = currentIndex >= 0 ? rootStackProgress.value - currentIndex : progress;
|
|
158
|
-
|
|
159
|
+
|
|
160
|
+
// Resolve 'auto' snap point reactively so computeSnapIndex stays accurate
|
|
161
|
+
const resolvedAutoSnap = hasAutoSnapPoint && autoSnapPointValue.value > 0 ? autoSnapPointValue.value : null;
|
|
162
|
+
const resolvedSnapPoints = resolvedAutoSnap !== null ? [...sortedNumericSnapPoints, resolvedAutoSnap].sort((a, b) => a - b) : sortedNumericSnapPoints;
|
|
163
|
+
const snapIndex = computeSnapIndex(current.progress, resolvedSnapPoints);
|
|
159
164
|
const nextProps = {
|
|
160
165
|
layouts: {
|
|
161
166
|
screen: dimensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_useStack","_animation","_gesture","_bounds","_viewport","_descriptors","_derivations","_worklet","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","useMemo","undefined","plainRoute","toPlainRoute","plainMeta","toPlainValue","AnimationStore","getRouteAnimation","GestureStore","peekRouteGestures","getNeutralGestures","getRouteGestures","createScreenTransitionState","hasTransitionsEnabled","alwaysOn","enableTransitions","useScreenAnimationPipeline","flags","stackProgress","rootStackProgress","routeKeys","useStack","dimensions","insets","useViewportContext","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","current","currentDescriptor","next","nextDescriptor","previous","previousDescriptor","useDescriptors","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","currentIndex","indexOf","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_useStack","_animation","_gesture","_bounds","_viewport","_descriptors","_derivations","_worklet","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","useMemo","undefined","plainRoute","toPlainRoute","plainMeta","toPlainValue","AnimationStore","getRouteAnimation","GestureStore","peekRouteGestures","getNeutralGestures","getRouteGestures","createScreenTransitionState","hasTransitionsEnabled","alwaysOn","enableTransitions","useScreenAnimationPipeline","flags","stackProgress","rootStackProgress","routeKeys","useStack","dimensions","insets","useViewportContext","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","current","currentDescriptor","next","nextDescriptor","previous","previousDescriptor","useDescriptors","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","currentIndex","indexOf","sortedNumericSnapPoints","points","filter","p","sort","a","b","hasAutoSnapPoint","includes","autoSnapPointValue","getAnimation","nextRouteKey","nextHasTransitions","framePropsMutable","useSharedValue","layouts","screen","DEFAULT_SCREEN_TRANSITION_STATE","snapIndex","focused","active","inactive","boundsAccessor","createBoundsAccessor","screenInterpolatorProps","useDerivedValue","helpers","derivations","resolvedAutoSnap","resolvedSnapPoints","nextProps","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAOA,IAAAE,UAAA,GAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAYA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAA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MACT,GAAGQ;IACJ,CAAC;IAEDb,iBAAiB,CAAC/E,KAAK,GAAGgG,SAAS;IACnC,OAAOA,SAAS;EACjB,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAGzC,cAAc,EAAEjC,OAAO,CAAC2E,uBAAuB;EACxE,MAAMC,mBAAmB,GACxB7C,iBAAiB,EAAE/B,OAAO,CAAC2E,uBAAuB;EAEnD,OAAO;IACNR,uBAAuB;IACvBO,gBAAgB;IAChBE,mBAAmB;IACnBX;EACD,CAAC;AACF","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveScreenAnimationTarget = resolveScreenAnimationTarget;
|
|
7
|
+
const isAncestorTarget = target => {
|
|
8
|
+
return typeof target === "object" && target !== null && "ancestor" in target;
|
|
9
|
+
};
|
|
10
|
+
function resolveScreenAnimationTarget({
|
|
11
|
+
target,
|
|
12
|
+
self,
|
|
13
|
+
ancestors
|
|
14
|
+
}) {
|
|
15
|
+
if (!target || target === "self") {
|
|
16
|
+
return self;
|
|
17
|
+
}
|
|
18
|
+
if (target === "parent") {
|
|
19
|
+
return ancestors[0] ?? self;
|
|
20
|
+
}
|
|
21
|
+
if (target === "root") {
|
|
22
|
+
return ancestors[ancestors.length - 1] ?? self;
|
|
23
|
+
}
|
|
24
|
+
if (!isAncestorTarget(target)) {
|
|
25
|
+
return self;
|
|
26
|
+
}
|
|
27
|
+
const depth = target.ancestor;
|
|
28
|
+
if (!Number.isInteger(depth) || depth < 1) {
|
|
29
|
+
return self;
|
|
30
|
+
}
|
|
31
|
+
return ancestors[depth - 1] ?? self;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=resolve-screen-animation-target.js.map
|
|
@@ -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;AAEM,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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -5,10 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useScreenAnimation = useScreenAnimation;
|
|
7
7
|
var _animation = require("./animation.provider");
|
|
8
|
-
|
|
8
|
+
var _resolveScreenAnimationTarget = require("./helpers/resolve-screen-animation-target");
|
|
9
|
+
function useScreenAnimation(target) {
|
|
9
10
|
const {
|
|
10
|
-
screenAnimation
|
|
11
|
+
screenAnimation,
|
|
12
|
+
ancestorScreenAnimations
|
|
11
13
|
} = (0, _animation.useScreenAnimationContext)();
|
|
12
|
-
return
|
|
14
|
+
return (0, _resolveScreenAnimationTarget.resolveScreenAnimationTarget)({
|
|
15
|
+
target,
|
|
16
|
+
self: screenAnimation,
|
|
17
|
+
ancestors: ancestorScreenAnimations
|
|
18
|
+
});
|
|
13
19
|
}
|
|
14
20
|
//# sourceMappingURL=use-screen-animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_animation","require","useScreenAnimation","screenAnimation","useScreenAnimationContext"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_animation","require","_resolveScreenAnimationTarget","useScreenAnimation","target","screenAnimation","ancestorScreenAnimations","useScreenAnimationContext","resolveScreenAnimationTarget","self","ancestors"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,6BAAA,GAAAD,OAAA;AAKO,SAASE,kBAAkBA,CACjCC,MAA8B,EACW;EACzC,MAAM;IAAEC,eAAe;IAAEC;EAAyB,CAAC,GAClD,IAAAC,oCAAyB,EAAC,CAAC;EAC5B,OAAO,IAAAC,0DAA4B,EAAC;IACnCJ,MAAM;IACNK,IAAI,EAAEJ,eAAe;IACrBK,SAAS,EAAEJ;EACZ,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -56,7 +56,7 @@ function useDirectStackValue(props) {
|
|
|
56
56
|
animationMaps.push(_animation.AnimationStore.getRouteAnimations(route.key));
|
|
57
57
|
if (!shouldShowFloatOverlay && descriptor) {
|
|
58
58
|
const options = descriptor.options;
|
|
59
|
-
if (options?.enableTransitions === true && (0, _visibility.
|
|
59
|
+
if (options?.enableTransitions === true && (0, _visibility.isOverlayVisible)(options)) {
|
|
60
60
|
shouldShowFloatOverlay = true;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_useStack","_animation","_visibility","_core","_useStackDerived","_jsxRuntime","useDirectStackValue","props","state","navigation","descriptors","describe","flags","useStackCoreContext","navigatorKey","key","preloadedDescriptors","useMemo","preloadedRoutes","reduce","acc","route","scenes","shouldShowFloatOverlay","routeKeys","allRoutes","animationMaps","routes","concat","allDescriptors","descriptor","isPreloaded","undefined","push","AnimationStore","getRouteAnimations","options","enableTransitions","
|
|
1
|
+
{"version":3,"names":["_react","require","_useStack","_animation","_visibility","_core","_useStackDerived","_jsxRuntime","useDirectStackValue","props","state","navigation","descriptors","describe","flags","useStackCoreContext","navigatorKey","key","preloadedDescriptors","useMemo","preloadedRoutes","reduce","acc","route","scenes","shouldShowFloatOverlay","routeKeys","allRoutes","animationMaps","routes","concat","allDescriptors","descriptor","isPreloaded","undefined","push","AnimationStore","getRouteAnimations","options","enableTransitions","isOverlayVisible","stackProgress","optimisticFocusedIndex","useStackDerived","focusedIndex","index","stackContextValue","lifecycleValue","withDirectStack","Component","DirectStackProvider","jsx","StackContext","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["shared/providers/stack/direct.provider.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAIA,IAAAE,UAAA,GAAAF,OAAA;AASA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAA8D,IAAAM,WAAA,GAAAN,OAAA;AAE9D,SAASO,mBAAmBA,CAC3BC,KAAuB,EAC8C;EACrE,MAAM;IAAEC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W,EACXY,MAAM,EACNoB,YAAY,EACZnB,sBAAsB,CAExB,CAAC;EAED,OAAO;IAAE,GAAGsB,cAAc;IAAED;EAAkB,CAAC;AAChD;AAEA,SAASE,eAAeA,CACvBC,SAAuD,EACpC;EACnB,OAAO,SAASC,mBAAmBA,CAACzC,KAAa,EAAE;IAClD,MAAM;MAAEqC,iBAAiB;MAAE,GAAGC;IAAe,CAAC,GAAGvC,mBAAmB,CAACC,KAAK,CAAC;IAE3E,oBACC,IAAAF,WAAA,CAAA4C,GAAA,EAACjD,SAAA,CAAAkD,YAAY,CAACC,QAAQ;MAACC,KAAK,EAAER,iBAAkB;MAAAS,QAAA,eAC/C,IAAAhD,WAAA,CAAA4C,GAAA,EAACF,SAAS;QAAA,GAAKF;MAAc,CAAG;IAAC,CACX,CAAC;EAE1B,CAAC;AACF","ignoreList":[]}
|
|
@@ -33,7 +33,7 @@ function useProcessedRoutes(routes, descriptors) {
|
|
|
33
33
|
backdropBehaviors[i] = options?.backdropBehavior ?? "block";
|
|
34
34
|
animationMaps[i] = _animation.AnimationStore.getRouteAnimations(route.key);
|
|
35
35
|
if (!shouldShowFloatOverlay) {
|
|
36
|
-
shouldShowFloatOverlay = (0, _visibility.
|
|
36
|
+
shouldShowFloatOverlay = (0, _visibility.isOverlayVisible)(options);
|
|
37
37
|
}
|
|
38
38
|
if (!stopLimit) {
|
|
39
39
|
const shouldKeepPrevious = options?.detachPreviousScreen !== true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_animation","_visibility","useProcessedRoutes","routes","descriptors","useMemo","scenes","routeKeys","backdropBehaviors","animationMaps","shouldShowFloatOverlay","limit","stopLimit","i","length","route","descriptor","key","options","backdropBehavior","AnimationStore","getRouteAnimations","
|
|
1
|
+
{"version":3,"names":["_react","require","_animation","_visibility","useProcessedRoutes","routes","descriptors","useMemo","scenes","routeKeys","backdropBehaviors","animationMaps","shouldShowFloatOverlay","limit","stopLimit","i","length","route","descriptor","key","options","backdropBehavior","AnimationStore","getRouteAnimations","isOverlayVisible","shouldKeepPrevious","detachPreviousScreen","activeScreensLimit","Math","min"],"sourceRoot":"../../../../../../src","sources":["shared/providers/stack/helpers/use-processed-routes.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAQA,IAAAE,WAAA,GAAAF,OAAA;AAaA;AACA;AACA;AACA;AACA;AACO,SAASG,kBAAkBA,CAGjCC,MAA8B,EAC9BC,WAAwC,EACT;EAC/B,OAAO,IAAAC,cAAO,EAAC,MAAM;IACpB,MAAMC,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,GAAGV,MAAM,CAACW,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MAC5C,MAAME,KAAK,GAAGZ,MAAM,CAACU,CAAC,CAAC;MACvB,MAAMG,UAAU,GAAGZ,WAAW,CAACW,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,GAAGO,yBAAc,CAACC,kBAAkB,CAACN,KAAK,CAACE,GAAG,CAAC;MAE/D,IAAI,CAACP,sBAAsB,EAAE;QAC5BA,sBAAsB,GAAG,IAAAY,4BAAgB,EAACJ,OAAO,CAAC;MACnD;MAEA,IAAI,CAACN,SAAS,EAAE;QACf,MAAMW,kBAAkB,GACtBL,OAAO,EACLM,oBAAoB,KAAK,IAAI;QAEjC,IAAID,kBAAkB,EAAE;UACvBZ,KAAK,IAAI,CAAC;QACX,CAAC,MAAM;UACNC,SAAS,GAAG,IAAI;QACjB;MACD;IACD;IAEA,MAAMa,kBAAkB,GAAGC,IAAI,CAACC,GAAG,CAClChB,KAAK,EACLR,MAAM,CAACW,MAAM,KAAK,CAAC,GAAG,CAAC,GAAGX,MAAM,CAACW,MAClC,CAAC;IAED,OAAO;MACNR,MAAM;MACNC,SAAS;MACTC,iBAAiB;MACjBC,aAAa;MACbC,sBAAsB;MACtBe;IACD,CAAC;EACF,CAAC,EAAE,CAACtB,MAAM,EAAEC,WAAW,CAAC,CAAC;AAC1B","ignoreList":[]}
|
|
@@ -11,8 +11,9 @@ function createAnimationBag() {
|
|
|
11
11
|
progress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
12
12
|
closing: (0, _reactNativeReanimated.makeMutable)(0),
|
|
13
13
|
animating: (0, _reactNativeReanimated.makeMutable)(0),
|
|
14
|
-
entering: (0, _reactNativeReanimated.makeMutable)(
|
|
15
|
-
targetProgress: (0, _reactNativeReanimated.makeMutable)(1)
|
|
14
|
+
entering: (0, _reactNativeReanimated.makeMutable)(0),
|
|
15
|
+
targetProgress: (0, _reactNativeReanimated.makeMutable)(1),
|
|
16
|
+
autoSnapPoint: (0, _reactNativeReanimated.makeMutable)(-1)
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
function ensure(routeKey) {
|
|
@@ -29,6 +30,9 @@ function peekRouteAnimations(routeKey) {
|
|
|
29
30
|
function getRouteAnimation(routeKey, type) {
|
|
30
31
|
return ensure(routeKey)[type];
|
|
31
32
|
}
|
|
33
|
+
function getAnimation(routeKey, type) {
|
|
34
|
+
return getRouteAnimation(routeKey, type);
|
|
35
|
+
}
|
|
32
36
|
function getRouteAnimations(routeKey) {
|
|
33
37
|
return ensure(routeKey);
|
|
34
38
|
}
|
|
@@ -40,10 +44,12 @@ function clear(routeKey) {
|
|
|
40
44
|
(0, _reactNativeReanimated.cancelAnimation)(bag.closing);
|
|
41
45
|
(0, _reactNativeReanimated.cancelAnimation)(bag.entering);
|
|
42
46
|
(0, _reactNativeReanimated.cancelAnimation)(bag.targetProgress);
|
|
47
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.autoSnapPoint);
|
|
43
48
|
}
|
|
44
49
|
delete store[routeKey];
|
|
45
50
|
}
|
|
46
51
|
const AnimationStore = exports.AnimationStore = {
|
|
52
|
+
getAnimation,
|
|
47
53
|
peekRouteAnimations,
|
|
48
54
|
getRouteAnimation,
|
|
49
55
|
getRouteAnimations,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","store","createAnimationBag","progress","makeMutable","closing","animating","entering","targetProgress","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getRouteAnimations","clear","cancelAnimation","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","store","createAnimationBag","progress","makeMutable","closing","animating","entering","targetProgress","autoSnapPoint","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getAnimation","getRouteAnimations","clear","cancelAnimation","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAiBA,MAAMC,KAA2C,GAAG,CAAC,CAAC;AAEtD,SAASC,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,QAAQ,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IACxBC,OAAO,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IACvBE,SAAS,EAAE,IAAAF,kCAAW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AAe,EAACP,GAAG,CAACH,aAAa,CAAC;EACnC;EACA,OAAOR,KAAK,CAACU,QAAQ,CAAC;AACvB;AAEO,MAAMS,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC7BJ,YAAY;EACZH,mBAAmB;EACnBC,iBAAiB;EACjBG,kBAAkB;EAClBC;AACD,CAAC","ignoreList":[]}
|
|
@@ -47,6 +47,7 @@ function getSnapshotBoundsByPriority(tag, keys) {
|
|
|
47
47
|
if (!snapshot) continue;
|
|
48
48
|
return {
|
|
49
49
|
bounds: snapshot.bounds,
|
|
50
|
+
styles: snapshot.styles,
|
|
50
51
|
screenKey: key
|
|
51
52
|
};
|
|
52
53
|
}
|
|
@@ -85,6 +86,8 @@ function resolveTransitionPair(tag, context) {
|
|
|
85
86
|
}
|
|
86
87
|
let sourceBounds = matchedLink?.source?.bounds ?? null;
|
|
87
88
|
let destinationBounds = matchedLink?.destination?.bounds ?? null;
|
|
89
|
+
let sourceStyles = matchedLink?.source?.styles ?? null;
|
|
90
|
+
let destinationStyles = matchedLink?.destination?.styles ?? null;
|
|
88
91
|
let sourceScreenKey = matchedLink?.source?.screenKey ?? null;
|
|
89
92
|
let destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
|
|
90
93
|
let usedSnapshotSource = false;
|
|
@@ -95,6 +98,7 @@ function resolveTransitionPair(tag, context) {
|
|
|
95
98
|
const sourceSnapshot = getSnapshotBoundsByPriority(tag, sourceFallbackKeys);
|
|
96
99
|
if (sourceSnapshot) {
|
|
97
100
|
sourceBounds = sourceSnapshot.bounds;
|
|
101
|
+
sourceStyles = sourceSnapshot.styles;
|
|
98
102
|
sourceScreenKey = sourceSnapshot.screenKey;
|
|
99
103
|
usedSnapshotSource = true;
|
|
100
104
|
}
|
|
@@ -103,6 +107,7 @@ function resolveTransitionPair(tag, context) {
|
|
|
103
107
|
const destinationSnapshot = getSnapshotBoundsByPriority(tag, destinationFallbackKeys);
|
|
104
108
|
if (destinationSnapshot) {
|
|
105
109
|
destinationBounds = destinationSnapshot.bounds;
|
|
110
|
+
destinationStyles = destinationSnapshot.styles;
|
|
106
111
|
destinationScreenKey = destinationSnapshot.screenKey;
|
|
107
112
|
usedSnapshotDestination = true;
|
|
108
113
|
}
|
|
@@ -113,6 +118,8 @@ function resolveTransitionPair(tag, context) {
|
|
|
113
118
|
return {
|
|
114
119
|
sourceBounds,
|
|
115
120
|
destinationBounds,
|
|
121
|
+
sourceStyles,
|
|
122
|
+
destinationStyles,
|
|
116
123
|
sourceScreenKey,
|
|
117
124
|
destinationScreenKey,
|
|
118
125
|
usedPending,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_registry","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","getSnapshot","bounds","resolveTransitionPair","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot","debugResolverLog"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_matching","require","_registry","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","getSnapshot","bounds","styles","resolveTransitionPair","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceStyles","destinationStyles","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot","debugResolverLog"],"sour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ACpBV,WAAW;IACXW,kBAAkB;IAClBC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -44,6 +44,9 @@ const animateToProgress = ({
|
|
|
44
44
|
if (!config) {
|
|
45
45
|
animating.set(_constants.FALSE);
|
|
46
46
|
progress.set(value);
|
|
47
|
+
if (!isClosing) {
|
|
48
|
+
entering.set(_constants.FALSE);
|
|
49
|
+
}
|
|
47
50
|
if (onAnimationFinish) {
|
|
48
51
|
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(true);
|
|
49
52
|
}
|
|
@@ -54,6 +57,9 @@ const animateToProgress = ({
|
|
|
54
57
|
"worklet";
|
|
55
58
|
|
|
56
59
|
if (!finished) return;
|
|
60
|
+
if (!isClosing) {
|
|
61
|
+
entering.set(_constants.FALSE);
|
|
62
|
+
}
|
|
57
63
|
if (onAnimationFinish) {
|
|
58
64
|
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(finished);
|
|
59
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","targetProgress","set","TRUE","FALSE","runOnJS","animate","finished","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAiBO,MAAMG,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,CAACC,eAAI,CAAC;IACjBH,QAAQ,CAACE,GAAG,CAACE,gBAAK,CAAC;EACpB,CAAC,MAAM;IACNJ,QAAQ,CAACE,GAAG,CAACC,eAAI,CAAC;EACnB;EAEA,IAAI,CAACZ,MAAM,EAAE;IACZO,SAAS,CAACI,GAAG,CAACE,gBAAK,CAAC;IACpBP,QAAQ,CAACK,GAAG,CAACZ,KAAK,CAAC;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","targetProgress","set","TRUE","FALSE","runOnJS","animate","finished","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAA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pB;IAEA,IAAIlB,iBAAiB,EAAE;MACtB,IAAAmB,8BAAO,EAACnB,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAY,SAAS,CAACI,GAAG,CAACC,eAAI,CAAC,CAAC,CAAC;EACrBN,QAAQ,CAACK,GAAG,CACX,IAAAI,gBAAO,EAAChB,KAAK,EAAEK,eAAe,EAAGY,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAAClB,SAAS,EAAE;MACfW,QAAQ,CAACE,GAAG,CAACE,gBAAK,CAAC;IACpB;IAEA,IAAIlB,iBAAiB,EAAE;MACtB,IAAAmB,8BAAO,EAACnB,iBAAiB,CAAC,CAACqB,QAAQ,CAAC;IACrC;;IAEA;IACAC,qBAAqB,CAAC,MAAM;MAC3BV,SAAS,CAACI,GAAG,CAACE,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACK,OAAA,CAAA1B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -19,7 +19,7 @@ const resolveBounds = params => {
|
|
|
19
19
|
const currentScreenKey = params.current?.route.key;
|
|
20
20
|
const previousScreenKey = params.previous?.route.key;
|
|
21
21
|
const nextScreenKey = params.next?.route.key;
|
|
22
|
-
const resolvedPair = params.resolvedPair ?? _bounds.BoundStore.resolveTransitionPair(params.id, {
|
|
22
|
+
const resolvedPair = params.resolvedPair ?? _bounds.BoundStore.resolveTransitionPair(String(params.id), {
|
|
23
23
|
currentScreenKey,
|
|
24
24
|
previousScreenKey,
|
|
25
25
|
nextScreenKey,
|
|
@@ -31,7 +31,10 @@ const resolveBounds = params => {
|
|
|
31
31
|
return {
|
|
32
32
|
start: null,
|
|
33
33
|
end: null,
|
|
34
|
-
entering
|
|
34
|
+
entering,
|
|
35
|
+
currentScreenKey,
|
|
36
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
37
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -40,7 +43,10 @@ const resolveBounds = params => {
|
|
|
40
43
|
return {
|
|
41
44
|
start: null,
|
|
42
45
|
end: null,
|
|
43
|
-
entering
|
|
46
|
+
entering,
|
|
47
|
+
currentScreenKey,
|
|
48
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
49
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
const start = sourceBounds;
|
|
@@ -55,7 +61,10 @@ const resolveBounds = params => {
|
|
|
55
61
|
return {
|
|
56
62
|
start,
|
|
57
63
|
end,
|
|
58
|
-
entering
|
|
64
|
+
entering,
|
|
65
|
+
currentScreenKey,
|
|
66
|
+
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
67
|
+
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
59
68
|
};
|
|
60
69
|
};
|
|
61
70
|
const computeBoundStyles = ({
|
|
@@ -79,7 +88,10 @@ const computeBoundStyles = ({
|
|
|
79
88
|
const {
|
|
80
89
|
start,
|
|
81
90
|
end,
|
|
82
|
-
entering
|
|
91
|
+
entering,
|
|
92
|
+
currentScreenKey,
|
|
93
|
+
sourceScreenKey,
|
|
94
|
+
destinationScreenKey
|
|
83
95
|
} = resolveBounds({
|
|
84
96
|
id,
|
|
85
97
|
previous,
|
|
@@ -97,19 +109,22 @@ const computeBoundStyles = ({
|
|
|
97
109
|
}
|
|
98
110
|
const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
99
111
|
if (computeOptions.method === "content") {
|
|
112
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
|
|
113
|
+
const contentStart = currentOwnsSource ? end : start;
|
|
114
|
+
const contentEnd = currentOwnsSource ? start : end;
|
|
100
115
|
const geometry = (0, _geometry.computeContentTransformGeometry)({
|
|
101
|
-
start,
|
|
102
|
-
end,
|
|
116
|
+
start: contentStart,
|
|
117
|
+
end: contentEnd,
|
|
103
118
|
entering,
|
|
104
119
|
dimensions,
|
|
105
120
|
anchor: computeOptions.anchor,
|
|
106
121
|
scaleMode: computeOptions.scaleMode
|
|
107
122
|
});
|
|
108
123
|
return (0, _styleComposers.composeContentStyle)({
|
|
109
|
-
start,
|
|
124
|
+
start: contentStart,
|
|
110
125
|
progress,
|
|
111
126
|
ranges,
|
|
112
|
-
end,
|
|
127
|
+
end: contentEnd,
|
|
113
128
|
geometry,
|
|
114
129
|
computeOptions
|
|
115
130
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","id","sourceBounds","destinationBounds","start","end","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","EMPTY_BOUND_HELPER_RESULT","ranges","ENTER_RANGE","EXIT_RANGE","method","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","EMPTY_BOUND_HELPER_RESULT","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGX,MAAM,CAACY,OAAO,EAAEC,KAAK,CAACC,GAAG;EAClD,MAAMC,iBAAiB,GAAGf,MAAM,CAACgB,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACpD,MAAMG,aAAa,GAAGjB,MAAM,CAACE,IAAI,EAAEW,KAAK,CAACC,GAAG;EAE5C,MAAMI,YAAY,GACjBlB,MAAM,CAACkB,YAAY,IACnBC,kBAAU,CAACC,qBAAqB,CAACC,MAAM,CAACrB,MAAM,CAACsB,EAAE,CAAC,EAAE;IACnDX,g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