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,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DerivedValue } from "react-native-reanimated";
|
|
2
|
+
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
3
|
+
import type { ScreenAnimationTarget } from "./types";
|
|
4
|
+
export type { ScreenAnimationTarget } from "./types";
|
|
5
|
+
export declare function useScreenAnimation(target?: ScreenAnimationTarget): DerivedValue<ScreenInterpolationProps>;
|
|
2
6
|
//# sourceMappingURL=use-screen-animation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/animation/use-screen-animation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/animation/use-screen-animation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,kBAAkB,CACjC,MAAM,CAAC,EAAE,qBAAqB,GAC5B,YAAY,CAAC,wBAAwB,CAAC,CAQxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EACX,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EACX,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,0CAA0C,CAAC;AAmHlD,iBAAS,eAAe,CAAC,MAAM,SAAS,gBAAgB,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,GACrD,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAUlB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -6,12 +6,16 @@ export type AnimationStoreMap = {
|
|
|
6
6
|
closing: SharedValue<number>;
|
|
7
7
|
entering: SharedValue<number>;
|
|
8
8
|
targetProgress: SharedValue<number>;
|
|
9
|
+
/** Resolved fraction (contentHeight / screenHeight) for the 'auto' snap point. -1 = not yet measured. */
|
|
10
|
+
autoSnapPoint: SharedValue<number>;
|
|
9
11
|
};
|
|
10
12
|
declare function peekRouteAnimations(routeKey: ScreenKey): AnimationStoreMap | undefined;
|
|
11
13
|
declare function getRouteAnimation(routeKey: ScreenKey, type: keyof AnimationStoreMap): SharedValue<number>;
|
|
14
|
+
declare function getAnimation(routeKey: ScreenKey, type: keyof AnimationStoreMap): SharedValue<number>;
|
|
12
15
|
declare function getRouteAnimations(routeKey: ScreenKey): AnimationStoreMap;
|
|
13
16
|
declare function clear(routeKey: ScreenKey): void;
|
|
14
17
|
export declare const AnimationStore: {
|
|
18
|
+
getAnimation: typeof getAnimation;
|
|
15
19
|
peekRouteAnimations: typeof peekRouteAnimations;
|
|
16
20
|
getRouteAnimation: typeof getRouteAnimation;
|
|
17
21
|
getRouteAnimations: typeof getRouteAnimations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.store.d.ts","sourceRoot":"","sources":["../../../../src/shared/stores/animation.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"animation.store.d.ts","sourceRoot":"","sources":["../../../../src/shared/stores/animation.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,yGAAyG;IACzG,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC,CAAC;AAwBF,iBAAS,mBAAmB,CAC3B,QAAQ,EAAE,SAAS,GACjB,iBAAiB,GAAG,SAAS,CAE/B;AAED,iBAAS,iBAAiB,CACzB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,MAAM,iBAAiB,GAC3B,WAAW,CAAC,MAAM,CAAC,CAErB;AAED,iBAAS,YAAY,CACpB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,MAAM,iBAAiB,GAC3B,WAAW,CAAC,MAAM,CAAC,CAErB;AAED,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,iBAAiB,CAElE;AAED,iBAAS,KAAK,CAAC,QAAQ,EAAE,SAAS,QAWjC;AAED,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,sBAAsB,EACtB,wBAAwB,EAExB,KAAK,EAGL,MAAM,UAAU,CAAC;AAoFlB,iBAAS,qBAAqB,CAC7B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,wBAAwB,GAC/B,sBAAsB,CA8HxB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -33,6 +33,8 @@ export type ResolveTransitionContext = {
|
|
|
33
33
|
export type ResolvedTransitionPair = {
|
|
34
34
|
sourceBounds: MeasuredDimensions | null;
|
|
35
35
|
destinationBounds: MeasuredDimensions | null;
|
|
36
|
+
sourceStyles: StyleProps | null;
|
|
37
|
+
destinationStyles: StyleProps | null;
|
|
36
38
|
sourceScreenKey: ScreenKey | null;
|
|
37
39
|
destinationScreenKey: ScreenKey | null;
|
|
38
40
|
usedPending: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/stores/bounds/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EACX,YAAY,EACZ,eAAe,EACf,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,cAAc,GAAG;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;IACrD,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,MAAM,MA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CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,qBAAqB,CAAC,EAAE,YAAY,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;AAE5E,MAAM,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -5,16 +5,6 @@ import type { BoundsAccessor } from "./bounds.types";
|
|
|
5
5
|
import type { GestureValues } from "./gesture.types";
|
|
6
6
|
import type { Layout } from "./screen.types";
|
|
7
7
|
import type { BaseStackRoute } from "./stack.types";
|
|
8
|
-
export interface OverlayInterpolationProps {
|
|
9
|
-
progress: number;
|
|
10
|
-
layouts: {
|
|
11
|
-
/**
|
|
12
|
-
* The `width` and `height` of the screen container.
|
|
13
|
-
*/
|
|
14
|
-
screen: Layout;
|
|
15
|
-
};
|
|
16
|
-
insets: EdgeInsets;
|
|
17
|
-
}
|
|
18
8
|
export type ScreenTransitionState = {
|
|
19
9
|
/**
|
|
20
10
|
* Animation progress for this screen.
|
|
@@ -34,11 +24,11 @@ export type ScreenTransitionState = {
|
|
|
34
24
|
*/
|
|
35
25
|
closing: number;
|
|
36
26
|
/**
|
|
37
|
-
* Whether this screen is in
|
|
38
|
-
* - `0`: Screen is
|
|
39
|
-
* - `1`: Screen is opening/entering
|
|
27
|
+
* Whether this screen is actively in its opening phase.
|
|
28
|
+
* - `0`: Screen is settled, inactive, or closing
|
|
29
|
+
* - `1`: Screen is currently opening/entering
|
|
40
30
|
*
|
|
41
|
-
*
|
|
31
|
+
* This flips back to `0` once the open animation finishes.
|
|
42
32
|
*/
|
|
43
33
|
entering: number;
|
|
44
34
|
/**
|
|
@@ -144,16 +134,6 @@ export interface ScreenInterpolationProps {
|
|
|
144
134
|
* When focused, this is the previous screen. When not focused, this is the current screen.
|
|
145
135
|
*/
|
|
146
136
|
inactive: ScreenTransitionState | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Whether the active screen is currently transitioning (either being dragged or animating).
|
|
149
|
-
* @deprecated Use `active.animating` instead.
|
|
150
|
-
*/
|
|
151
|
-
isActiveTransitioning: boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Whether the active screen is in the process of being dismissed/closed.
|
|
154
|
-
* @deprecated Use `active.closing` instead.
|
|
155
|
-
*/
|
|
156
|
-
isDismissing: boolean;
|
|
157
137
|
}
|
|
158
138
|
export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => TransitionInterpolatedStyle;
|
|
159
139
|
/**
|
|
@@ -163,17 +143,11 @@ export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => Trans
|
|
|
163
143
|
* (which has `[key: string]: any`) so TypeScript can provide autocomplete and catch typos.
|
|
164
144
|
*/
|
|
165
145
|
export type AnimatedViewStyle = ViewStyle & TextStyle;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
*
|
|
169
|
-
* - `style` is applied via `useAnimatedStyle` (transform, opacity, backgroundColor, etc.)
|
|
170
|
-
* - `props` is applied via `useAnimatedProps` (component-specific props like BlurView intensity)
|
|
171
|
-
*/
|
|
172
|
-
export type TransitionSlotExplicit = {
|
|
173
|
-
/** Animated styles applied via useAnimatedStyle. */
|
|
146
|
+
type TransitionSlotDefinition = {
|
|
147
|
+
/** Animated styles applied via `useAnimatedStyle`. */
|
|
174
148
|
style?: AnimatedViewStyle;
|
|
175
|
-
/** Animated props applied via useAnimatedProps
|
|
176
|
-
props?: Record<string,
|
|
149
|
+
/** Animated props applied via `useAnimatedProps`. */
|
|
150
|
+
props?: Record<string, unknown>;
|
|
177
151
|
};
|
|
178
152
|
/**
|
|
179
153
|
* A slot in the interpolated style map.
|
|
@@ -182,14 +156,14 @@ export type TransitionSlotExplicit = {
|
|
|
182
156
|
* - **Shorthand**: Write styles directly — `{ opacity: 0.5, transform: [...] }`
|
|
183
157
|
* - **Explicit**: Use `style` and/or `props` buckets — `{ style: { opacity: 0.5 }, props: { intensity: 80 } }`
|
|
184
158
|
*/
|
|
185
|
-
export type TransitionSlotStyle = AnimatedViewStyle |
|
|
159
|
+
export type TransitionSlotStyle = AnimatedViewStyle | TransitionSlotDefinition;
|
|
186
160
|
/**
|
|
187
161
|
* Internal normalized slot format used after the backward-compat shim.
|
|
188
162
|
* Always uses the explicit `{ style, props }` shape (with Reanimated's full StyleProps).
|
|
189
163
|
*/
|
|
190
164
|
export type NormalizedTransitionSlotStyle = {
|
|
191
165
|
style?: StyleProps;
|
|
192
|
-
props?: Record<string,
|
|
166
|
+
props?: Record<string, unknown>;
|
|
193
167
|
};
|
|
194
168
|
/**
|
|
195
169
|
* Normalized interpolated style map used internally after the backward-compat shim.
|
|
@@ -206,10 +180,10 @@ export type NormalizedTransitionInterpolatedStyle = {
|
|
|
206
180
|
[id: string]: NormalizedTransitionSlotStyle | undefined;
|
|
207
181
|
};
|
|
208
182
|
/**
|
|
209
|
-
*
|
|
210
|
-
* Uses
|
|
183
|
+
* The return type of `screenStyleInterpolator`.
|
|
184
|
+
* Uses the nested slot format, while still accepting deprecated flat keys.
|
|
211
185
|
*/
|
|
212
|
-
export type
|
|
186
|
+
export type TransitionInterpolatedStyle = {
|
|
213
187
|
/** Animated style and props for the main screen content view. */
|
|
214
188
|
content?: TransitionSlotStyle;
|
|
215
189
|
/** Animated style and props for the backdrop layer between screens. */
|
|
@@ -218,22 +192,22 @@ export type NewTransitionInterpolatedStyle = {
|
|
|
218
192
|
surface?: TransitionSlotStyle;
|
|
219
193
|
/** Custom styles/props by id for Transition.View components. */
|
|
220
194
|
[id: string]: TransitionSlotStyle | undefined;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
*/
|
|
226
|
-
export type LegacyTransitionInterpolatedStyle = {
|
|
195
|
+
/**
|
|
196
|
+
* @deprecated Use `content` instead.
|
|
197
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
198
|
+
*/
|
|
227
199
|
contentStyle?: AnimatedViewStyle;
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use `backdrop` instead.
|
|
202
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
203
|
+
*/
|
|
228
204
|
backdropStyle?: AnimatedViewStyle;
|
|
205
|
+
/**
|
|
206
|
+
* @deprecated Use `backdrop` instead.
|
|
207
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
208
|
+
*/
|
|
229
209
|
overlayStyle?: AnimatedViewStyle;
|
|
230
|
-
[id: string]: AnimatedViewStyle | undefined;
|
|
231
210
|
};
|
|
232
|
-
/**
|
|
233
|
-
* The return type of `screenStyleInterpolator`.
|
|
234
|
-
* Accepts both the new nested format and the legacy flat format (auto-converted).
|
|
235
|
-
*/
|
|
236
|
-
export type TransitionInterpolatedStyle = NewTransitionInterpolatedStyle | LegacyTransitionInterpolatedStyle;
|
|
237
211
|
/**
|
|
238
212
|
* A Reanimated animation configuration object.
|
|
239
213
|
*/
|
|
@@ -261,4 +235,5 @@ export interface TransitionSpec {
|
|
|
261
235
|
*/
|
|
262
236
|
collapse?: AnimationConfig;
|
|
263
237
|
}
|
|
238
|
+
export {};
|
|
264
239
|
//# sourceMappingURL=animation.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/animation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;A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MAAM,MAAM,qCAAqC,GAAG;IACnD,iEAAiE;IACjE,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC,kFAAkF;IAClF,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,gEAAgE;IAChE,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACzC,iEAAiE;IACjE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gEAAgE;IAChE,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
2
|
import type { Snapshot } from "../stores/bounds";
|
|
3
|
-
import type { BoundsOptions, BoundsOptionsResult } from "../utils/bounds/types/options";
|
|
3
|
+
import type { BoundId, BoundsAnchor, BoundsOptions, BoundsOptionsResult, BoundsScaleMode } from "../utils/bounds/types/options";
|
|
4
4
|
import type { TransitionInterpolatedStyle } from "./animation.types";
|
|
5
5
|
/**
|
|
6
6
|
* Target style computation.
|
|
@@ -18,13 +18,50 @@ export type BoundsLink = {
|
|
|
18
18
|
source: BoundEntry | null;
|
|
19
19
|
destination: BoundEntry | null;
|
|
20
20
|
};
|
|
21
|
-
export type
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
export type BoundsNavigationZoomOptions = {
|
|
22
|
+
anchor?: BoundsAnchor;
|
|
23
|
+
scaleMode?: BoundsScaleMode;
|
|
24
|
+
target?: "bound" | "fullscreen" | MeasuredDimensions;
|
|
25
|
+
mask?: {
|
|
26
|
+
borderRadius?: number | "auto" | {
|
|
27
|
+
from?: number;
|
|
28
|
+
to?: number;
|
|
29
|
+
};
|
|
30
|
+
borderTopLeftRadius?: number | "auto" | {
|
|
31
|
+
from?: number;
|
|
32
|
+
to?: number;
|
|
33
|
+
};
|
|
34
|
+
borderTopRightRadius?: number | "auto" | {
|
|
35
|
+
from?: number;
|
|
36
|
+
to?: number;
|
|
37
|
+
};
|
|
38
|
+
borderBottomLeftRadius?: number | "auto" | {
|
|
39
|
+
from?: number;
|
|
40
|
+
to?: number;
|
|
41
|
+
};
|
|
42
|
+
borderBottomRightRadius?: number | "auto" | {
|
|
43
|
+
from?: number;
|
|
44
|
+
to?: number;
|
|
45
|
+
};
|
|
46
|
+
borderCurve?: "circular" | "continuous";
|
|
47
|
+
outset?: number | {
|
|
48
|
+
top?: number;
|
|
49
|
+
right?: number;
|
|
50
|
+
bottom?: number;
|
|
51
|
+
left?: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
motion?: {
|
|
55
|
+
dragResistance?: number;
|
|
56
|
+
dragDirectionalScaleMin?: number;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Use `mask.borderRadius` instead.
|
|
60
|
+
*/
|
|
24
61
|
maskBorderRadius?: number;
|
|
25
62
|
};
|
|
26
63
|
export type BoundsNavigationAccessor = {
|
|
27
|
-
zoom: () => TransitionInterpolatedStyle;
|
|
64
|
+
zoom: (options?: BoundsNavigationZoomOptions) => TransitionInterpolatedStyle;
|
|
28
65
|
};
|
|
29
66
|
type BoundsBoundNavigationAccessor = {
|
|
30
67
|
navigation: BoundsNavigationAccessor;
|
|
@@ -32,10 +69,10 @@ type BoundsBoundNavigationAccessor = {
|
|
|
32
69
|
type BoundsCallResult<T extends BoundsOptions> = BoundsOptionsResult<T> & BoundsBoundNavigationAccessor;
|
|
33
70
|
export type BoundsAccessor = {
|
|
34
71
|
<T extends BoundsOptions>(options: T): BoundsCallResult<T>;
|
|
35
|
-
getSnapshot: (id:
|
|
36
|
-
getLink: (id:
|
|
37
|
-
interpolateStyle: (id:
|
|
38
|
-
interpolateBounds: (id:
|
|
72
|
+
getSnapshot: (id: BoundId, key?: string) => Snapshot | null;
|
|
73
|
+
getLink: (id: BoundId) => BoundsLink | null;
|
|
74
|
+
interpolateStyle: (id: BoundId, property: keyof StyleProps, fallback?: number) => number;
|
|
75
|
+
interpolateBounds: (id: BoundId, property: keyof MeasuredDimensions, fallbackOrTargetKey?: number | string, fallback?: number) => number;
|
|
39
76
|
};
|
|
40
77
|
export {};
|
|
41
78
|
//# sourceMappingURL=bounds.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACX,aAAa,EACb,mBAAmB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE;;;;;;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UAAU,EAAE,wBAAwB,CAAC;CACrC,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACtE,6BAA6B,CAAC;AAE/B,MAAM,MAAM,cAAc,GAAG;IAC5B,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC5D,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;IAC5C,gBAAgB,EAAE,CACjB,EAAE,EAAE,OAAO,EACX,QAAQ,EAAE,MAAM,UAAU,EAC1B,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;IACZ,iBAAiB,EAAE,CAClB,EAAE,EAAE,OAAO,EACX,QAAQ,EAAE,MAAM,kBAAkB,EAClC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,EACrC,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;CACZ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { FALSE, TRUE } from "../constants";
|
|
2
|
-
export type { AnimatedViewStyle, AnimationConfig,
|
|
3
|
-
export type {
|
|
2
|
+
export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionState, TransitionInterpolatedStyle, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
|
|
3
|
+
export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationZoomOptions, } from "./bounds.types";
|
|
4
4
|
export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, SideActivation, } from "./gesture.types";
|
|
5
|
-
export type {
|
|
5
|
+
export type { OverlayProps } from "./overlay.types";
|
|
6
6
|
export type { Layout, ScreenKey, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
|
|
7
7
|
export type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, DescriptorMap, } from "./stack.types";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { Route } from "@react-navigation/native";
|
|
2
2
|
import type { DerivedValue } from "react-native-reanimated";
|
|
3
|
-
import type { OverlayInterpolationProps, ScreenInterpolationProps } from "./animation.types";
|
|
4
3
|
import type { ScreenTransitionConfig } from "./screen.types";
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Overlay mode is no longer needed. Overlays now always render as "float" mode.
|
|
7
|
-
* For per-screen overlays, render an absolute-positioned view directly in your screen component
|
|
8
|
-
* and use `useScreenAnimation()` to access animation values.
|
|
9
|
-
*/
|
|
10
|
-
export type OverlayMode = "float" | "screen";
|
|
11
4
|
/**
|
|
12
5
|
* Props passed to overlay components.
|
|
13
6
|
* Generic over the navigation type since different stacks have different navigation props.
|
|
@@ -16,7 +9,7 @@ export type OverlayMode = "float" | "screen";
|
|
|
16
9
|
* Overlay screen state passed to overlay host for rendering.
|
|
17
10
|
* Generic over navigation type — defaults to `unknown` for flexibility.
|
|
18
11
|
*/
|
|
19
|
-
export type OverlayScreenState<TNavigation = unknown> = Omit<OverlayProps<TNavigation>, "progress"
|
|
12
|
+
export type OverlayScreenState<TNavigation = unknown> = Omit<OverlayProps<TNavigation>, "progress"> & {
|
|
20
13
|
index: number;
|
|
21
14
|
snapTo: (index: number) => void;
|
|
22
15
|
};
|
|
@@ -50,19 +43,5 @@ export type OverlayProps<TNavigation = unknown> = {
|
|
|
50
43
|
* This is equivalent to `useScreenAnimation().stackProgress`.
|
|
51
44
|
*/
|
|
52
45
|
progress: DerivedValue<number>;
|
|
53
|
-
/**
|
|
54
|
-
* Animation values for the overlay.
|
|
55
|
-
*
|
|
56
|
-
* @deprecated Use `progress` prop or `useScreenAnimation()` instead.
|
|
57
|
-
* This prop will be removed in a future version.
|
|
58
|
-
*/
|
|
59
|
-
overlayAnimation: DerivedValue<OverlayInterpolationProps>;
|
|
60
|
-
/**
|
|
61
|
-
* Animation values for the screen.
|
|
62
|
-
*
|
|
63
|
-
* @deprecated Use `useScreenAnimation()` hook directly instead.
|
|
64
|
-
* This prop will be removed in a future version.
|
|
65
|
-
*/
|
|
66
|
-
screenAnimation: DerivedValue<ScreenInterpolationProps>;
|
|
67
46
|
};
|
|
68
47
|
//# sourceMappingURL=overlay.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/overlay.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"overlay.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/overlay.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D;;;GAGG;AACH;;;GAGG;AACH,MAAM,MAAM,kBAAkB,CAAC,WAAW,GAAG,OAAO,IAAI,IAAI,CAC3D,YAAY,CAAC,WAAW,CAAC,EACzB,UAAU,CACV,GAAG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,WAAW,GAAG,OAAO,IAAI;IACjD;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,sBAAsB,CAAC;IAEhC;;;OAGG;IACH,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { AnimatedProps } from "react-native-reanimated";
|
|
2
2
|
import type { ScreenStyleInterpolator, TransitionSpec } from "./animation.types";
|
|
3
3
|
import type { GestureActivationArea, GestureDirection } from "./gesture.types";
|
|
4
|
-
import type {
|
|
4
|
+
import type { OverlayProps } from "./overlay.types";
|
|
5
5
|
export type Layout = {
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
8
|
};
|
|
9
9
|
export type ScreenKey = string;
|
|
10
|
+
/**
|
|
11
|
+
* A single snap point value. Either a fraction of screen height (0–1) or
|
|
12
|
+
* `'auto'` to snap to the intrinsic height of the screen content.
|
|
13
|
+
*/
|
|
14
|
+
export type SnapPoint = number | "auto";
|
|
10
15
|
export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
|
|
11
16
|
/**
|
|
12
17
|
* Connects this component to custom animated styles defined in screenStyleInterpolator.
|
|
@@ -135,18 +140,8 @@ export type ScreenTransitionConfig = {
|
|
|
135
140
|
meta?: Record<string, unknown>;
|
|
136
141
|
/**
|
|
137
142
|
* Function that returns a React Element to display as an overlay.
|
|
138
|
-
* For container overlays (overlayMode: 'container'), use ContainerOverlayProps which includes children.
|
|
139
143
|
*/
|
|
140
144
|
overlay?: (props: OverlayProps) => React.ReactNode;
|
|
141
|
-
/**
|
|
142
|
-
* How the overlay is positioned relative to screens.
|
|
143
|
-
*
|
|
144
|
-
* @deprecated This option is no longer needed. Overlays now always render as "float" mode
|
|
145
|
-
* (single persistent overlay above all screens). For per-screen overlays, render an
|
|
146
|
-
* absolute-positioned view directly in your screen component and use `useScreenAnimation()`
|
|
147
|
-
* to access animation values.
|
|
148
|
-
*/
|
|
149
|
-
overlayMode?: OverlayMode;
|
|
150
145
|
/**
|
|
151
146
|
* Whether to show the overlay. The overlay is shown by default when `overlay` is provided.
|
|
152
147
|
* Setting this to `false` hides the overlay.
|
|
@@ -164,15 +159,21 @@ export type ScreenTransitionConfig = {
|
|
|
164
159
|
*/
|
|
165
160
|
experimental_enableHighRefreshRate?: boolean;
|
|
166
161
|
/**
|
|
167
|
-
* Describes heights where a screen can rest, as fractions of screen height
|
|
168
|
-
*
|
|
162
|
+
* Describes heights where a screen can rest, as fractions of screen height,
|
|
163
|
+
* or `'auto'` to snap to the intrinsic height of the screen content.
|
|
164
|
+
*
|
|
165
|
+
* Pass an array of ascending values from 0 to 1, or `'auto'`.
|
|
166
|
+
* The `'auto'` value measures the content's natural height after layout and
|
|
167
|
+
* converts it to the equivalent fraction of the screen height.
|
|
169
168
|
*
|
|
170
169
|
* @example
|
|
171
|
-
* snapPoints={[0.5, 1.0]}
|
|
170
|
+
* snapPoints={[0.5, 1.0]} // 50% and 100% of screen height
|
|
171
|
+
* snapPoints={['auto']} // snap to content height
|
|
172
|
+
* snapPoints={['auto', 1.0]} // content height or full screen
|
|
172
173
|
*
|
|
173
174
|
* @default [1.0]
|
|
174
175
|
*/
|
|
175
|
-
snapPoints?:
|
|
176
|
+
snapPoints?: SnapPoint[];
|
|
176
177
|
/**
|
|
177
178
|
* The initial snap point index when the screen opens.
|
|
178
179
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/screen.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACX,uBAAuB,EACvB,cAAc,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"screen.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/screen.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,E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AEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;OASG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAE7C;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;IAEpE;;;;;;;;;;;;;;;;;;OAkBG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAE7C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,GAAI,mEAM/B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,GAAI,mEAM/B,sBAAsB,SA+DxB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
2
|
-
import type { BoundsOptions } from "../types/options";
|
|
2
|
+
import type { BoundId, BoundsOptions } from "../types/options";
|
|
3
3
|
import type { ResolveBoundTagParams } from "./resolve-bound-tag";
|
|
4
4
|
type BuildBoundsOptionsParams = {
|
|
5
5
|
props: Omit<ScreenInterpolationProps, "bounds">;
|
|
6
|
-
id?:
|
|
6
|
+
id?: BoundId;
|
|
7
7
|
group?: string;
|
|
8
8
|
overrides?: Partial<BoundsOptions>;
|
|
9
9
|
mode?: "style" | "navigation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-bounds-options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/build-bounds-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"build-bounds-options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/build-bounds-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,KAAK,wBAAwB,GAAG;IAC/B,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IAChD,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,CAAC;CACvE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,yDAOhC,wBAAwB,KAAG,aAyB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-bounds-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/compute-bounds-styles.ts"],"names":[],"mappings":"AAQA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"compute-bounds-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/compute-bounds-styles.ts"],"names":[],"mappings":"AAQA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAEX,mBAAmB,EACnB,aAAa,EACb,MAAM,kBAAkB,CAAC;AA8F1B,eAAO,MAAM,kBAAkB,GAC9B,uDAAuD,mBAAmB,EAC1E,iBAAgB,aAAkC,EAClD,eAAe,sBAAsB,iBA0FrC,CAAC"}
|
|
@@ -13,8 +13,9 @@ export declare function computeRelativeGeometry({ start, end, entering, anchor,
|
|
|
13
13
|
scaleMode?: BoundsScaleMode;
|
|
14
14
|
}): RelativeGeometry;
|
|
15
15
|
/**
|
|
16
|
-
* Computes the transform to apply to the
|
|
17
|
-
*
|
|
16
|
+
* Computes the transform to apply to the current screen so that its owned
|
|
17
|
+
* bound (`end`) matches the paired target bound (`start`) at the aligned
|
|
18
|
+
* phase of the transition.
|
|
18
19
|
*/
|
|
19
20
|
export declare function computeContentTransformGeometry({ start, end, entering, dimensions, anchor, scaleMode, }: {
|
|
20
21
|
start: MeasuredDimensions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAsCtE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACvC,KAAK,EACL,GAAG,EACH,QAAQ,EACR,MAAiB,EACjB,SAAmB,GACnB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,gBAAgB,CAoCnB;AACD
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAsCtE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACvC,KAAK,EACL,GAAG,EACH,QAAQ,EACR,MAAiB,EACjB,SAAmB,GACnB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,gBAAgB,CAoCnB;AACD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,EAC/C,KAAK,EACL,GAAG,EACH,QAAQ,EACR,UAAU,EACV,MAAiB,EACjB,SAAqB,GACrB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,wBAAwB,CAoD3B"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
2
|
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
3
|
+
import type { BoundId } from "../types/options";
|
|
3
4
|
import type { LinkAccessor } from "./link-accessor";
|
|
4
5
|
type InterpolatorParams = {
|
|
5
6
|
getProps: () => Omit<ScreenInterpolationProps, "bounds">;
|
|
6
7
|
getLink: LinkAccessor["getLink"];
|
|
7
8
|
};
|
|
8
9
|
export declare const createInterpolators: ({ getProps, getLink, }: InterpolatorParams) => {
|
|
9
|
-
interpolateStyle: (tag:
|
|
10
|
-
interpolateBounds: (tag:
|
|
10
|
+
interpolateStyle: (tag: BoundId, property: string, fallback?: number) => number;
|
|
11
|
+
interpolateBounds: (tag: BoundId, property: keyof MeasuredDimensions, fallbackOrTargetKey?: number | string, fallback?: number) => number;
|
|
11
12
|
};
|
|
12
13
|
export {};
|
|
13
14
|
//# sourceMappingURL=interpolators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolators.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/interpolators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"interpolators.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/interpolators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IACzD,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,kBAAkB;4BAId,OAAO,YACF,MAAM,aACL,MAAM,KACf,MAAM;6BA8DH,OAAO,YACF,MAAM,kBAAkB,wBACZ,MAAM,GAAG,MAAM,aAC1B,MAAM,KACf,MAAM;CAmBT,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type Snapshot } from "../../../stores/bounds";
|
|
2
2
|
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
3
3
|
import type { BoundsLink } from "../../../types/bounds.types";
|
|
4
|
+
import type { BoundId } from "../types/options";
|
|
4
5
|
type GetProps = () => Omit<ScreenInterpolationProps, "bounds">;
|
|
5
6
|
export type LinkAccessor = {
|
|
6
|
-
getSnapshot: (tag:
|
|
7
|
-
getLink: (tag:
|
|
7
|
+
getSnapshot: (tag: BoundId, key?: string) => Snapshot | null;
|
|
8
|
+
getLink: (tag: BoundId) => BoundsLink | null;
|
|
8
9
|
};
|
|
9
10
|
export declare const createLinkAccessor: (getProps: GetProps) => LinkAccessor;
|
|
10
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/link-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/link-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YA+BvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-bound-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bound-tag.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve-bound-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bound-tag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,gBAG7B,qBAAqB,KAAG,MAAM,GAAG,SAiBnC,CAAC"}
|
|
@@ -16,9 +16,10 @@ export type ElementComposeParams = {
|
|
|
16
16
|
computeOptions: BoundsOptions;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Screen-level content transform params
|
|
20
|
-
* - start/end: absolute window bounds for the
|
|
21
|
-
*
|
|
19
|
+
* Screen-level content transform params.
|
|
20
|
+
* - start/end: absolute window bounds for the paired target and the current
|
|
21
|
+
* screen-owned bound
|
|
22
|
+
* - geometry: precomputed screen-level tx/ty/scale plus ranges/entering
|
|
22
23
|
* - interp: function to interpolate between numbers using the correct progress range
|
|
23
24
|
*/
|
|
24
25
|
type ContentComposeParams = {
|