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,290 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { interpolate } from "react-native-reanimated";
|
|
4
|
-
import { EPSILON, NAVIGATION_CONTAINER_STYLE_ID, NAVIGATION_MASK_STYLE_ID, NO_STYLES } from "../../../../constants";
|
|
5
|
-
import { BoundStore } from "../../../../stores/bounds";
|
|
6
|
-
import { interpolateClamped } from "../../helpers/interpolate";
|
|
7
|
-
import { combineScales, composeCompensatedTranslation, computeCenterScaleShift, normalizedToScale, normalizedToTranslation } from "../../helpers/math";
|
|
8
|
-
import { resolveNavigationConfig, toNumber } from "./helpers";
|
|
9
|
-
const DRAG_RESISTANCE = 0.4;
|
|
10
|
-
const DIRECTIONAL_DRAG_SCALE_OUTPUT = [1, 0.25];
|
|
11
|
-
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
12
|
-
const getZoomContentTarget = ({
|
|
13
|
-
explicitTarget,
|
|
14
|
-
resolvedTag,
|
|
15
|
-
currentRouteKey,
|
|
16
|
-
previousRouteKey,
|
|
17
|
-
nextRouteKey,
|
|
18
|
-
entering,
|
|
19
|
-
screenLayout,
|
|
20
|
-
anchor
|
|
21
|
-
}) => {
|
|
22
|
-
"worklet";
|
|
23
|
-
|
|
24
|
-
if (explicitTarget !== undefined) return explicitTarget;
|
|
25
|
-
const resolvedPair = BoundStore.resolveTransitionPair(resolvedTag, {
|
|
26
|
-
currentScreenKey: currentRouteKey,
|
|
27
|
-
previousScreenKey: previousRouteKey,
|
|
28
|
-
nextScreenKey: nextRouteKey,
|
|
29
|
-
entering
|
|
30
|
-
});
|
|
31
|
-
const sourceBounds = resolvedPair.sourceBounds;
|
|
32
|
-
const screenWidth = screenLayout.width;
|
|
33
|
-
if (!sourceBounds || sourceBounds.width <= 0 || screenWidth <= 0) {
|
|
34
|
-
return "fullscreen";
|
|
35
|
-
}
|
|
36
|
-
const height = sourceBounds.height / sourceBounds.width * screenWidth;
|
|
37
|
-
let horizontalAnchor;
|
|
38
|
-
switch (anchor) {
|
|
39
|
-
case "topLeading":
|
|
40
|
-
case "leading":
|
|
41
|
-
case "bottomLeading":
|
|
42
|
-
horizontalAnchor = "leading";
|
|
43
|
-
break;
|
|
44
|
-
case "topTrailing":
|
|
45
|
-
case "trailing":
|
|
46
|
-
case "bottomTrailing":
|
|
47
|
-
horizontalAnchor = "trailing";
|
|
48
|
-
break;
|
|
49
|
-
default:
|
|
50
|
-
horizontalAnchor = "center";
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
let verticalAnchor;
|
|
54
|
-
switch (anchor) {
|
|
55
|
-
case "topLeading":
|
|
56
|
-
case "top":
|
|
57
|
-
case "topTrailing":
|
|
58
|
-
verticalAnchor = "top";
|
|
59
|
-
break;
|
|
60
|
-
case "bottomLeading":
|
|
61
|
-
case "bottom":
|
|
62
|
-
case "bottomTrailing":
|
|
63
|
-
verticalAnchor = "bottom";
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
verticalAnchor = "center";
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
const x = horizontalAnchor === "leading" ? 0 : horizontalAnchor === "trailing" ? screenLayout.width - screenWidth : (screenLayout.width - screenWidth) / 2;
|
|
70
|
-
const y = verticalAnchor === "top" ? 0 : verticalAnchor === "bottom" ? screenLayout.height - height : (screenLayout.height - height) / 2;
|
|
71
|
-
return {
|
|
72
|
-
x,
|
|
73
|
-
y,
|
|
74
|
-
pageX: x,
|
|
75
|
-
pageY: y,
|
|
76
|
-
width: screenWidth,
|
|
77
|
-
height
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export const buildZoomNavigationStyles = ({
|
|
81
|
-
id,
|
|
82
|
-
group,
|
|
83
|
-
navigationOptions,
|
|
84
|
-
props,
|
|
85
|
-
resolveTag,
|
|
86
|
-
computeRaw
|
|
87
|
-
}) => {
|
|
88
|
-
"worklet";
|
|
89
|
-
|
|
90
|
-
const focused = props.focused;
|
|
91
|
-
const progress = props.progress;
|
|
92
|
-
const currentRouteKey = props.current?.route.key;
|
|
93
|
-
const previousRouteKey = props.previous?.route.key;
|
|
94
|
-
const nextRouteKey = props.next?.route.key;
|
|
95
|
-
const entering = !props.next;
|
|
96
|
-
const screenLayout = props.layouts.screen;
|
|
97
|
-
const normX = props.active.gesture.normX;
|
|
98
|
-
const normY = props.active.gesture.normY;
|
|
99
|
-
const initialDirection = props.active.gesture.direction;
|
|
100
|
-
const xScaleOutput = initialDirection === "horizontal" ? DIRECTIONAL_DRAG_SCALE_OUTPUT : IDENTITY_DRAG_SCALE_OUTPUT;
|
|
101
|
-
const yScaleOutput = initialDirection === "vertical" ? DIRECTIONAL_DRAG_SCALE_OUTPUT : IDENTITY_DRAG_SCALE_OUTPUT;
|
|
102
|
-
const dragX = normalizedToTranslation({
|
|
103
|
-
normalized: normX,
|
|
104
|
-
dimension: screenLayout.width,
|
|
105
|
-
resistance: DRAG_RESISTANCE
|
|
106
|
-
});
|
|
107
|
-
const dragY = normalizedToTranslation({
|
|
108
|
-
normalized: normY,
|
|
109
|
-
dimension: screenLayout.height,
|
|
110
|
-
resistance: DRAG_RESISTANCE
|
|
111
|
-
});
|
|
112
|
-
const dragXScale = normalizedToScale({
|
|
113
|
-
normalized: normX,
|
|
114
|
-
outputRange: xScaleOutput,
|
|
115
|
-
exponent: 2
|
|
116
|
-
});
|
|
117
|
-
const dragYScale = normalizedToScale({
|
|
118
|
-
normalized: normY,
|
|
119
|
-
outputRange: yScaleOutput,
|
|
120
|
-
exponent: 2
|
|
121
|
-
});
|
|
122
|
-
const dragScale = combineScales(dragXScale, dragYScale);
|
|
123
|
-
const resolvedConfig = resolveNavigationConfig({
|
|
124
|
-
id,
|
|
125
|
-
group,
|
|
126
|
-
navigationOptions,
|
|
127
|
-
currentRouteKey,
|
|
128
|
-
resolveTag,
|
|
129
|
-
defaultAnchor: "top"
|
|
130
|
-
});
|
|
131
|
-
if (!resolvedConfig) return NO_STYLES;
|
|
132
|
-
const {
|
|
133
|
-
resolvedTag,
|
|
134
|
-
sharedOptions,
|
|
135
|
-
explicitTarget
|
|
136
|
-
} = resolvedConfig;
|
|
137
|
-
if (focused) {
|
|
138
|
-
const contentTarget = getZoomContentTarget({
|
|
139
|
-
explicitTarget,
|
|
140
|
-
resolvedTag,
|
|
141
|
-
currentRouteKey,
|
|
142
|
-
previousRouteKey,
|
|
143
|
-
nextRouteKey,
|
|
144
|
-
entering,
|
|
145
|
-
screenLayout,
|
|
146
|
-
anchor: sharedOptions.anchor
|
|
147
|
-
});
|
|
148
|
-
const contentRaw = computeRaw({
|
|
149
|
-
...sharedOptions,
|
|
150
|
-
method: "content",
|
|
151
|
-
target: contentTarget
|
|
152
|
-
});
|
|
153
|
-
const maskRaw = computeRaw({
|
|
154
|
-
...sharedOptions,
|
|
155
|
-
method: "size",
|
|
156
|
-
space: "absolute",
|
|
157
|
-
target: "fullscreen"
|
|
158
|
-
});
|
|
159
|
-
const focusedFade = props.active?.closing ? interpolate(progress, [0.6, 1], [0, 1], "clamp") : interpolate(progress, [0, 0.5], [0, 1], "clamp");
|
|
160
|
-
const maskWidth = Math.max(1, toNumber(maskRaw.width));
|
|
161
|
-
const maskHeight = Math.max(1, toNumber(maskRaw.height));
|
|
162
|
-
const contentTranslateX = toNumber(contentRaw.translateX) + dragX;
|
|
163
|
-
const contentTranslateY = toNumber(contentRaw.translateY) + dragY;
|
|
164
|
-
const contentScale = toNumber(contentRaw.scale, 1) * dragScale;
|
|
165
|
-
const maskTranslateX = toNumber(maskRaw.translateX) + dragX;
|
|
166
|
-
const maskTranslateY = toNumber(maskRaw.translateY) + dragY;
|
|
167
|
-
return {
|
|
168
|
-
[NAVIGATION_CONTAINER_STYLE_ID]: {
|
|
169
|
-
style: {
|
|
170
|
-
opacity: focusedFade,
|
|
171
|
-
transform: [{
|
|
172
|
-
translateX: contentTranslateX
|
|
173
|
-
}, {
|
|
174
|
-
translateY: contentTranslateY
|
|
175
|
-
}, {
|
|
176
|
-
scale: contentScale
|
|
177
|
-
}]
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
[NAVIGATION_MASK_STYLE_ID]: {
|
|
181
|
-
style: {
|
|
182
|
-
width: maskWidth,
|
|
183
|
-
height: maskHeight,
|
|
184
|
-
transform: [{
|
|
185
|
-
translateX: maskTranslateX
|
|
186
|
-
}, {
|
|
187
|
-
translateY: maskTranslateY
|
|
188
|
-
}, {
|
|
189
|
-
scale: dragScale
|
|
190
|
-
}],
|
|
191
|
-
borderRadius: 12
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
// Signal the destination boundary to stay visible during the transition.
|
|
195
|
-
// Without this, useAssociatedStyles enters "waiting-first-style" mode
|
|
196
|
-
// (opacity: 0) because it detects previous-screen evidence but never
|
|
197
|
-
// receives a resolved style for this tag.
|
|
198
|
-
[resolvedTag]: {
|
|
199
|
-
style: {
|
|
200
|
-
opacity: 1
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
const unfocusedFade = props.active?.closing ? interpolate(progress, [1.6, 2], [1, 0], "clamp") : interpolate(progress, [1, 1.5], [1, 0], "clamp");
|
|
206
|
-
const unfocusedScale = interpolateClamped(progress, [1, 2], [1, 0.95]);
|
|
207
|
-
const isUnfocusedIdle = props.active.settled === 1;
|
|
208
|
-
const elementTarget = sharedOptions.scaleMode === "match" ? "fullscreen" : getZoomContentTarget({
|
|
209
|
-
explicitTarget,
|
|
210
|
-
resolvedTag,
|
|
211
|
-
currentRouteKey,
|
|
212
|
-
previousRouteKey,
|
|
213
|
-
nextRouteKey,
|
|
214
|
-
entering,
|
|
215
|
-
screenLayout,
|
|
216
|
-
anchor: sharedOptions.anchor
|
|
217
|
-
});
|
|
218
|
-
const elementRaw = computeRaw({
|
|
219
|
-
...sharedOptions,
|
|
220
|
-
method: "transform",
|
|
221
|
-
space: "relative",
|
|
222
|
-
target: elementTarget
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
// Keep compensation tied to the element target's center. In `scaleMode: "match"`
|
|
226
|
-
// this target is fullscreen, so the center offset should resolve to zero.
|
|
227
|
-
const elementCenterY = typeof elementTarget === "object" ? elementTarget.pageY + elementTarget.height / 2 : screenLayout.height / 2;
|
|
228
|
-
const scaleShiftY = computeCenterScaleShift({
|
|
229
|
-
center: elementCenterY,
|
|
230
|
-
containerCenter: screenLayout.height / 2,
|
|
231
|
-
scale: dragScale
|
|
232
|
-
});
|
|
233
|
-
const compensatedGestureX = composeCompensatedTranslation({
|
|
234
|
-
gesture: dragX,
|
|
235
|
-
parentScale: unfocusedScale,
|
|
236
|
-
epsilon: EPSILON
|
|
237
|
-
});
|
|
238
|
-
// dragY is measured in screen space and must be unscaled by the parent
|
|
239
|
-
// content shrink, while scaleShiftY is already in the parent's local space.
|
|
240
|
-
const compensatedGestureY = composeCompensatedTranslation({
|
|
241
|
-
gesture: dragY,
|
|
242
|
-
parentScale: unfocusedScale,
|
|
243
|
-
centerShift: scaleShiftY,
|
|
244
|
-
epsilon: EPSILON
|
|
245
|
-
});
|
|
246
|
-
const elementTranslateX = toNumber(elementRaw.translateX) + compensatedGestureX;
|
|
247
|
-
const elementTranslateY = toNumber(elementRaw.translateY) + compensatedGestureY;
|
|
248
|
-
const elementScaleX = toNumber(elementRaw.scaleX, 1) * dragScale;
|
|
249
|
-
const elementScaleY = toNumber(elementRaw.scaleY, 1) * dragScale;
|
|
250
|
-
const resolvedElementStyle = isUnfocusedIdle ? {
|
|
251
|
-
transform: [{
|
|
252
|
-
translateX: 0
|
|
253
|
-
}, {
|
|
254
|
-
translateY: 0
|
|
255
|
-
}, {
|
|
256
|
-
scaleX: 1
|
|
257
|
-
}, {
|
|
258
|
-
scaleY: 1
|
|
259
|
-
}],
|
|
260
|
-
opacity: 0,
|
|
261
|
-
zIndex: 0,
|
|
262
|
-
elevation: 0
|
|
263
|
-
} : {
|
|
264
|
-
transform: [{
|
|
265
|
-
translateX: elementTranslateX
|
|
266
|
-
}, {
|
|
267
|
-
translateY: elementTranslateY
|
|
268
|
-
}, {
|
|
269
|
-
scaleX: elementScaleX
|
|
270
|
-
}, {
|
|
271
|
-
scaleY: elementScaleY
|
|
272
|
-
}],
|
|
273
|
-
opacity: unfocusedFade,
|
|
274
|
-
zIndex: 9999,
|
|
275
|
-
elevation: 9999
|
|
276
|
-
};
|
|
277
|
-
return {
|
|
278
|
-
content: {
|
|
279
|
-
style: {
|
|
280
|
-
transform: [{
|
|
281
|
-
scale: unfocusedScale
|
|
282
|
-
}]
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
[resolvedTag]: {
|
|
286
|
-
style: resolvedElementStyle
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
//# sourceMappingURL=zoom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","EPSILON","NAVIGATION_CONTAINER_STYLE_ID","NAVIGATION_MASK_STYLE_ID","NO_STYLES","BoundStore","interpolateClamped","combineScales","composeCompensatedTranslation","computeCenterScaleShift","normalizedToScale","normalizedToTranslation","resolveNavigationConfig","toNumber","DRAG_RESISTANCE","DIRECTIONAL_DRAG_SCALE_OUTPUT","IDENTITY_DRAG_SCALE_OUTPUT","getZoomContentTarget","explicitTarget","resolvedTag","currentRouteKey","previousRouteKey","nextRouteKey","entering","screenLayout","anchor","undefined","resolvedPair","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","screenWidth","width","height","horizontalAnchor","verticalAnchor","x","y","pageX","pageY","buildZoomNavigationStyles","id","group","navigationOptions","props","resolveTag","computeRaw","focused","progress","current","route","key","previous","next","layouts","screen","normX","active","gesture","normY","initialDirection","direction","xScaleOutput","yScaleOutput","dragX","normalized","dimension","resistance","dragY","dragXScale","outputRange","exponent","dragYScale","dragScale","resolvedConfig","defaultAnchor","sharedOptions","contentTarget","contentRaw","method","target","maskRaw","space","focusedFade","closing","maskWidth","Math","max","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","style","opacity","transform","borderRadius","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","elementTarget","scaleMode","elementRaw","elementCenterY","scaleShiftY","center","containerCenter","compensatedGestureX","parentScale","epsilon","compensatedGestureY","centerShift","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/sugar/navigation/zoom.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,yBAAyB;AACrD,SACCC,O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IACD,CAACrF,WAAW,GAAG;MACdgF,KAAK,EAAE0B;IACR;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Screen overlay component that renders per-screen.
|
|
3
|
-
* Gets current descriptor from keys context.
|
|
4
|
-
*
|
|
5
|
-
* @deprecated Screen overlays are deprecated. For per-screen overlays, render an
|
|
6
|
-
* absolute-positioned view directly in your screen component and use `useScreenAnimation()`
|
|
7
|
-
* to access animation values. This component will be removed in a future version.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ScreenOverlay(): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
//# sourceMappingURL=screen-overlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screen-overlay.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/overlay/variations/screen-overlay.tsx"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,wBAAgB,aAAa,mDA8C5B"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
type CombinedScaleMode = "multiply" | "average" | "max" | "min";
|
|
2
|
-
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
3
|
-
export declare const clamp01: (value: number) => number;
|
|
4
|
-
export declare const lerp: (from: number, to: number, t: number) => number;
|
|
5
|
-
export declare const safeDivide: (numerator: number, denominator: number, fallback?: number) => number;
|
|
6
|
-
export declare const inverseLerp: (value: number, inMin: number, inMax: number) => number;
|
|
7
|
-
export declare const mapRangeClamped: (value: number, inMin: number, inMax: number, outMin: number, outMax: number) => number;
|
|
8
|
-
export declare const applyPowerCurve: (value: number, exponent: number) => number;
|
|
9
|
-
export declare const normalizedToTranslation: ({ normalized, dimension, resistance, }: {
|
|
10
|
-
normalized: number;
|
|
11
|
-
dimension: number;
|
|
12
|
-
resistance: number;
|
|
13
|
-
}) => number;
|
|
14
|
-
export declare const normalizedToScale: ({ normalized, outputRange, exponent, positiveOnly, }: {
|
|
15
|
-
normalized: number;
|
|
16
|
-
outputRange: readonly [number, number];
|
|
17
|
-
exponent?: number;
|
|
18
|
-
positiveOnly?: boolean;
|
|
19
|
-
}) => number;
|
|
20
|
-
export declare const combineScales: (scaleX: number, scaleY: number, mode?: CombinedScaleMode) => number;
|
|
21
|
-
export declare const computeCenterScaleShift: ({ center, containerCenter, scale, }: {
|
|
22
|
-
center: number;
|
|
23
|
-
containerCenter: number;
|
|
24
|
-
scale: number;
|
|
25
|
-
}) => number;
|
|
26
|
-
export declare const compensateTranslationForParentScale: ({ translation, parentScale, epsilon, }: {
|
|
27
|
-
translation: number;
|
|
28
|
-
parentScale: number;
|
|
29
|
-
epsilon: number;
|
|
30
|
-
}) => number;
|
|
31
|
-
export declare const composeCompensatedTranslation: ({ gesture, parentScale, centerShift, epsilon, }: {
|
|
32
|
-
gesture: number;
|
|
33
|
-
parentScale: number;
|
|
34
|
-
centerShift?: number;
|
|
35
|
-
epsilon: number;
|
|
36
|
-
}) => number;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=math.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/math.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC;AAEhE,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAS/D,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,MAGvC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,EAAE,GAAG,MAAM,KAAG,MAG1D,CAAC;AAEF,eAAO,MAAM,UAAU,GACtB,WAAW,MAAM,EACjB,aAAa,MAAM,EACnB,iBAAY,KACV,MAIF,CAAC;AAEF,eAAO,MAAM,WAAW,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AChB,KAAG,MASH,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
2
|
-
import type { BoundsOptions } from "../types/options";
|
|
3
|
-
import type { ResolveBoundTagParams } from "./resolve-bound-tag";
|
|
4
|
-
type NavigationAccessorParams = {
|
|
5
|
-
id?: string;
|
|
6
|
-
group?: string;
|
|
7
|
-
getProps: () => Omit<ScreenInterpolationProps, "bounds">;
|
|
8
|
-
resolveBoundTag: (params: ResolveBoundTagParams) => string | undefined;
|
|
9
|
-
computeRaw: (overrides?: Partial<BoundsOptions>, frameProps?: Omit<ScreenInterpolationProps, "bounds">) => Record<string, unknown>;
|
|
10
|
-
zoomBaseOptions?: Pick<BoundsOptions, "anchor" | "scaleMode" | "target">;
|
|
11
|
-
};
|
|
12
|
-
export declare const createNavigationAccessor: ({ id, group, getProps, resolveBoundTag, computeRaw, zoomBaseOptions, }: NavigationAccessorParams) => {
|
|
13
|
-
zoom: () => Readonly<{}>;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=navigation-accessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/navigation-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,KAAK,wBAAwB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IACzD,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,UAAU,EAAE,CACX,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAClC,UAAU,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC;CACzE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,wEAOtC,wBAAwB;;CAmC1B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BoundsNavigationOptions } from "../../../../types/bounds.types";
|
|
2
|
-
import type { BoundsOptions } from "../../types/options";
|
|
3
|
-
import type { ResolveTag } from "./types";
|
|
4
|
-
export declare const toNumber: (value: unknown, fallback?: number) => number;
|
|
5
|
-
export declare const resolveNavigationConfig: ({ id, group, navigationOptions, currentRouteKey, resolveTag, defaultAnchor, }: {
|
|
6
|
-
id: string;
|
|
7
|
-
group?: string;
|
|
8
|
-
navigationOptions?: BoundsNavigationOptions;
|
|
9
|
-
currentRouteKey?: string;
|
|
10
|
-
resolveTag: ResolveTag;
|
|
11
|
-
defaultAnchor: BoundsOptions["anchor"] | undefined;
|
|
12
|
-
}) => {
|
|
13
|
-
resolvedTag: string;
|
|
14
|
-
sharedOptions: Partial<BoundsOptions>;
|
|
15
|
-
explicitTarget: BoundsOptions["target"] | undefined;
|
|
16
|
-
} | null;
|
|
17
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/sugar/navigation/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,EAAE,iBAAY,KAAG,MAGvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,+EAOrC;IACF,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;CACnD,KAAG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACtC,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;CACpD,GAAG,IA6CH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/sugar/navigation/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAG3D,eAAO,MAAM,qBAAqB,GAAI,QAAQ,2BAA2B,iBASxE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ScreenInterpolationProps } from "../../../../types/animation.types";
|
|
2
|
-
import type { BoundsNavigationOptions, BoundsNavigationPreset } from "../../../../types/bounds.types";
|
|
3
|
-
import type { BoundsOptions } from "../../types/options";
|
|
4
|
-
export type ResolveTag = (params: {
|
|
5
|
-
id?: string;
|
|
6
|
-
group?: string;
|
|
7
|
-
}) => string | undefined;
|
|
8
|
-
export type ComputeRaw = (overrides: Partial<BoundsOptions>, frameProps?: Omit<ScreenInterpolationProps, "bounds">) => Record<string, unknown>;
|
|
9
|
-
export type BuildNavigationStylesParams = {
|
|
10
|
-
id: string;
|
|
11
|
-
group?: string;
|
|
12
|
-
preset: BoundsNavigationPreset;
|
|
13
|
-
navigationOptions?: BoundsNavigationOptions;
|
|
14
|
-
props: Omit<ScreenInterpolationProps, "bounds">;
|
|
15
|
-
resolveTag: ResolveTag;
|
|
16
|
-
computeRaw: ComputeRaw;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/sugar/navigation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACX,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,KAAK,MAAM,GAAG,SAAS,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,CACxB,SAAS,EAAE,OAAO,CAAC,aAAa,CAAC,EACjC,UAAU,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7B,MAAM,MAAM,2BAA2B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TransitionInterpolatedStyle } from "../../../../types/animation.types";
|
|
2
|
-
import type { BuildNavigationStylesParams } from "./types";
|
|
3
|
-
export declare const buildZoomNavigationStyles: ({ id, group, navigationOptions, props, resolveTag, computeRaw, }: BuildNavigationStylesParams) => TransitionInterpolatedStyle;
|
|
4
|
-
//# sourceMappingURL=zoom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zoom.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/sugar/navigation/zoom.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAYrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAkG3D,eAAO,MAAM,yBAAyB,GAAI,kEAOvC,2BAA2B,KAAG,2BA8NhC,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { snapDescriptorToIndex } from "../../../animation/snap-to";
|
|
3
|
-
import { useOptimisticFocusedIndex } from "../../../hooks/navigation/use-optimistic-focused-index";
|
|
4
|
-
import {
|
|
5
|
-
type StackDescriptor,
|
|
6
|
-
type StackScene,
|
|
7
|
-
useStack,
|
|
8
|
-
} from "../../../hooks/navigation/use-stack";
|
|
9
|
-
import { useDescriptors } from "../../../providers/screen/descriptors";
|
|
10
|
-
import type { OverlayScreenState } from "../../../types/overlay.types";
|
|
11
|
-
import { isScreenOverlayVisible } from "../../../utils/overlay/visibility";
|
|
12
|
-
import { OverlayHost } from "./overlay-host";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Screen overlay component that renders per-screen.
|
|
16
|
-
* Gets current descriptor from keys context.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Screen overlays are deprecated. For per-screen overlays, render an
|
|
19
|
-
* absolute-positioned view directly in your screen component and use `useScreenAnimation()`
|
|
20
|
-
* to access animation values. This component will be removed in a future version.
|
|
21
|
-
*/
|
|
22
|
-
export function ScreenOverlay() {
|
|
23
|
-
const { current } = useDescriptors<StackDescriptor>();
|
|
24
|
-
const { flags, routes, optimisticFocusedIndex, routeKeys } = useStack();
|
|
25
|
-
const focusedIndex = useOptimisticFocusedIndex(
|
|
26
|
-
optimisticFocusedIndex,
|
|
27
|
-
routeKeys.length,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
const options = current.options;
|
|
31
|
-
|
|
32
|
-
const scene = useMemo<StackScene>(
|
|
33
|
-
() => ({
|
|
34
|
-
descriptor: current,
|
|
35
|
-
route: current.route,
|
|
36
|
-
}),
|
|
37
|
-
[current],
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
const overlayScreenState = useMemo<
|
|
41
|
-
OverlayScreenState<StackDescriptor["navigation"]>
|
|
42
|
-
>(
|
|
43
|
-
() => ({
|
|
44
|
-
index: routeKeys.indexOf(current.route.key),
|
|
45
|
-
options: current.options,
|
|
46
|
-
routes,
|
|
47
|
-
focusedRoute: routes[focusedIndex] ?? current.route,
|
|
48
|
-
focusedIndex,
|
|
49
|
-
meta: current.options?.meta,
|
|
50
|
-
navigation: current.navigation,
|
|
51
|
-
snapTo: (index: number) => {
|
|
52
|
-
snapDescriptorToIndex(current, index);
|
|
53
|
-
},
|
|
54
|
-
}),
|
|
55
|
-
[current, routeKeys, routes, focusedIndex],
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
// Skip screens without enableTransitions (native-stack only)
|
|
59
|
-
if (!flags.TRANSITIONS_ALWAYS_ON && !options.enableTransitions) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (!isScreenOverlayVisible(options)) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return <OverlayHost scene={scene} overlayScreenState={overlayScreenState} />;
|
|
68
|
-
}
|