react-native-screen-transitions 3.4.0-alpha.0 → 3.4.0-alpha.2
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 +11 -1046
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +69 -2
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
- 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/hooks/helpers/measurement-rules.js +195 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +54 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +40 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +72 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +22 -8
- package/lib/commonjs/shared/components/create-boundary-component/index.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/create-transition-aware-component.js +3 -2
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen-container.js +12 -6
- package/lib/commonjs/shared/components/native-screen-container.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +35 -8
- package/lib/commonjs/shared/components/native-screen.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/hooks/use-content-layout.js +60 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- 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 +16 -56
- 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 +86 -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 +61 -25
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.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/layout-anchor.provider.js +4 -6
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
- 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 +25 -13
- 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/core.provider.js +14 -21
- package/lib/commonjs/shared/providers/stack/core.provider.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 +10 -2
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.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 +33 -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 +4 -8
- 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 +13 -3
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js +6 -0
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js.map +1 -0
- 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 +548 -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/commonjs/shared/utils/resolve-screen-transition-options.js +25 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +69 -3
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/module/component-stack/navigators/create-component-stack-navigator.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/hooks/helpers/measurement-rules.js +182 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +49 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +41 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +67 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +22 -8
- package/lib/module/shared/components/create-boundary-component/index.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/create-transition-aware-component.js +3 -2
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen-container.js +12 -6
- package/lib/module/shared/components/native-screen-container.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +35 -8
- package/lib/module/shared/components/native-screen.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/hooks/use-content-layout.js +56 -0
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- 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 +18 -58
- 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 +81 -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 +61 -25
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.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/layout-anchor.provider.js +4 -6
- package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
- 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 +25 -13
- 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/core.provider.js +14 -21
- package/lib/module/shared/providers/stack/core.provider.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 +10 -2
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.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 +33 -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 +4 -8
- 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 +13 -3
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/types/frame-props.js +4 -0
- package/lib/module/shared/utils/bounds/types/frame-props.js.map +1 -0
- 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 +543 -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/module/shared/utils/resolve-screen-transition-options.js +19 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/typescript/blank-stack/index.d.ts +1 -1
- package/lib/typescript/blank-stack/index.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +29 -4
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +33 -4
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +8 -0
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +81 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +3 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +5 -3
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +2 -4
- package/lib/typescript/shared/components/create-boundary-component/types.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/create-transition-aware-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen.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/hooks/use-content-layout.d.ts +3 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -0
- 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 +9 -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 -18
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.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/layout-anchor.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
- 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/core.provider.d.ts +2 -0
- package/lib/typescript/shared/providers/stack/core.provider.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 +8 -2
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.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 +33 -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 +62 -37
- 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 +2 -2
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts +5 -0
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts.map +1 -0
- 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/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +5 -0
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/blank-stack/index.ts +1 -0
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +138 -19
- package/src/blank-stack/types.ts +33 -5
- package/src/component-stack/navigators/create-component-stack-navigator.tsx +8 -0
- package/src/shared/animation/snap-to.ts +12 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +258 -0
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +7 -17
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +38 -28
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +41 -10
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +82 -0
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +24 -12
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +11 -9
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +29 -26
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +26 -17
- package/src/shared/components/create-boundary-component/index.tsx +25 -6
- package/src/shared/components/create-boundary-component/types.ts +8 -4
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
- package/src/shared/components/create-transition-aware-component.tsx +5 -2
- package/src/shared/components/native-screen-container.tsx +11 -3
- package/src/shared/components/native-screen.tsx +65 -20
- 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/hooks/use-content-layout.ts +82 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
- package/src/shared/components/screen-container/layers/content.tsx +23 -82
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +101 -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 +75 -29
- package/src/shared/providers/gestures/helpers/gesture-activation.ts +11 -6
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
- package/src/shared/providers/layout-anchor.provider.tsx +2 -5
- package/src/shared/providers/register-bounds.provider.tsx +1 -1
- 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 +51 -14
- 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/core.provider.tsx +27 -14
- 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 +21 -5
- package/src/shared/stores/bounds/internals/presence.ts +3 -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 +32 -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 +67 -38
- 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 +47 -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 +7 -10
- package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
- package/src/shared/utils/bounds/index.ts +22 -13
- package/src/shared/utils/bounds/types/frame-props.ts +5 -0
- 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 +715 -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/src/shared/utils/resolve-screen-transition-options.ts +37 -0
- 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/providers/viewport.provider.js +0 -33
- package/lib/commonjs/shared/providers/viewport.provider.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/providers/viewport.provider.js +0 -27
- package/lib/module/shared/providers/viewport.provider.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/providers/viewport.provider.d.ts +0 -13
- package/lib/typescript/shared/providers/viewport.provider.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/providers/viewport.provider.tsx +0 -39
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/core.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"core.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/core.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,WAAW,eAAe;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAOD,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE;QACN,qBAAqB,EAAE,OAAO,CAAC;QAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;QACvB,sBAAsB,EAAE,OAAO,CAAC;QAChC,+BAA+B,EAAE,OAAO,CAAC;KACzC,CAAC;CACF;AAED,QAAA,MAAsD,mBAAmB,6BAwCtE,CAAC;AAEJ;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,MAAM,EAClD,aAAa,EAAE,eAAe,EAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,GACpC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,eAAe,CAAC,CAyBpC;AAMD,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -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"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { type SharedValue } from "react-native-reanimated";
|
|
2
|
-
import type { ScreenKey } from "../types/screen.types";
|
|
2
|
+
import type { Layout, ScreenKey } from "../types/screen.types";
|
|
3
3
|
export type AnimationStoreMap = {
|
|
4
4
|
progress: SharedValue<number>;
|
|
5
5
|
animating: SharedValue<number>;
|
|
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>;
|
|
11
|
+
/** Intrinsic content layout measured from the screen container wrapper. */
|
|
12
|
+
contentLayout: SharedValue<Layout | null>;
|
|
9
13
|
};
|
|
10
14
|
declare function peekRouteAnimations(routeKey: ScreenKey): AnimationStoreMap | undefined;
|
|
11
|
-
declare function getRouteAnimation(routeKey: ScreenKey, type:
|
|
15
|
+
declare function getRouteAnimation<K extends keyof AnimationStoreMap>(routeKey: ScreenKey, type: K): AnimationStoreMap[K];
|
|
16
|
+
declare function getAnimation<K extends keyof AnimationStoreMap>(routeKey: ScreenKey, type: K): AnimationStoreMap[K];
|
|
12
17
|
declare function getRouteAnimations(routeKey: ScreenKey): AnimationStoreMap;
|
|
13
18
|
declare function clear(routeKey: ScreenKey): void;
|
|
14
19
|
export declare const AnimationStore: {
|
|
20
|
+
getAnimation: typeof getAnimation;
|
|
15
21
|
peekRouteAnimations: typeof peekRouteAnimations;
|
|
16
22
|
getRouteAnimation: typeof getRouteAnimation;
|
|
17
23
|
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;
|
|
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,MAAM,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CA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AAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,MAAM,EACrB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAyBhC;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QA8BnE;AAED,iBAAS,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAgBtE;AAED,iBAAS,mBAAmB,wFAG3B;AAED,iBAAS,iBAAiB,CACzB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,GAClB,cAAc,GAAG,IAAI,CAmBvB;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/presence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAqB,KAAK,WAAW,EAAoB,MAAM,SAAS,CAAC;AAEhF,iBAAS,wBAAwB,CAChC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,SAAS,EAAE,EAC1B,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,MAAM,EACrB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAyBhC;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QA8BnE;AAED,iBAAS,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAgBtE;AAED,iBAAS,mBAAmB,wFAG3B;AAED,iBAAS,iBAAiB,CACzB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,GAClB,cAAc,GAAG,IAAI,CAmBvB;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAWlD;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtD;AAED,iBAAS,SAAS,sFAGjB;AAED,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACT,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,OA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,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,SAAS,GAAG,IAAI,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACtC,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,qBAAqB,CAAC,EAAE,YAAY,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC5C,SAAS,EAAE,OAAO,EAAE,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
|
/**
|
|
@@ -97,6 +87,13 @@ export interface ScreenInterpolationProps {
|
|
|
97
87
|
* The `width` and `height` of the screen container.
|
|
98
88
|
*/
|
|
99
89
|
screen: Layout;
|
|
90
|
+
/**
|
|
91
|
+
* The intrinsic measured content wrapper layout when available.
|
|
92
|
+
*
|
|
93
|
+
* This is currently populated for the measured screen-container path used by
|
|
94
|
+
* auto snap-point sizing. It is undefined until a real measurement exists.
|
|
95
|
+
*/
|
|
96
|
+
content?: Layout;
|
|
100
97
|
};
|
|
101
98
|
/**
|
|
102
99
|
* The safe area insets for the screen.
|
|
@@ -144,16 +141,6 @@ export interface ScreenInterpolationProps {
|
|
|
144
141
|
* When focused, this is the previous screen. When not focused, this is the current screen.
|
|
145
142
|
*/
|
|
146
143
|
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
144
|
}
|
|
158
145
|
export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => TransitionInterpolatedStyle;
|
|
159
146
|
/**
|
|
@@ -163,17 +150,11 @@ export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => Trans
|
|
|
163
150
|
* (which has `[key: string]: any`) so TypeScript can provide autocomplete and catch typos.
|
|
164
151
|
*/
|
|
165
152
|
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. */
|
|
153
|
+
type TransitionSlotDefinition = {
|
|
154
|
+
/** Animated styles applied via `useAnimatedStyle`. */
|
|
174
155
|
style?: AnimatedViewStyle;
|
|
175
|
-
/** Animated props applied via useAnimatedProps
|
|
176
|
-
props?: Record<string,
|
|
156
|
+
/** Animated props applied via `useAnimatedProps`. */
|
|
157
|
+
props?: Record<string, unknown>;
|
|
177
158
|
};
|
|
178
159
|
/**
|
|
179
160
|
* A slot in the interpolated style map.
|
|
@@ -182,14 +163,14 @@ export type TransitionSlotExplicit = {
|
|
|
182
163
|
* - **Shorthand**: Write styles directly — `{ opacity: 0.5, transform: [...] }`
|
|
183
164
|
* - **Explicit**: Use `style` and/or `props` buckets — `{ style: { opacity: 0.5 }, props: { intensity: 80 } }`
|
|
184
165
|
*/
|
|
185
|
-
export type TransitionSlotStyle = AnimatedViewStyle |
|
|
166
|
+
export type TransitionSlotStyle = AnimatedViewStyle | TransitionSlotDefinition;
|
|
186
167
|
/**
|
|
187
168
|
* Internal normalized slot format used after the backward-compat shim.
|
|
188
169
|
* Always uses the explicit `{ style, props }` shape (with Reanimated's full StyleProps).
|
|
189
170
|
*/
|
|
190
171
|
export type NormalizedTransitionSlotStyle = {
|
|
191
172
|
style?: StyleProps;
|
|
192
|
-
props?: Record<string,
|
|
173
|
+
props?: Record<string, unknown>;
|
|
193
174
|
};
|
|
194
175
|
/**
|
|
195
176
|
* Normalized interpolated style map used internally after the backward-compat shim.
|
|
@@ -206,10 +187,10 @@ export type NormalizedTransitionInterpolatedStyle = {
|
|
|
206
187
|
[id: string]: NormalizedTransitionSlotStyle | undefined;
|
|
207
188
|
};
|
|
208
189
|
/**
|
|
209
|
-
*
|
|
210
|
-
* Uses
|
|
190
|
+
* The return type of `screenStyleInterpolator`.
|
|
191
|
+
* Uses the nested slot format, while still accepting deprecated flat keys.
|
|
211
192
|
*/
|
|
212
|
-
export type
|
|
193
|
+
export type TransitionInterpolatedStyle = {
|
|
213
194
|
/** Animated style and props for the main screen content view. */
|
|
214
195
|
content?: TransitionSlotStyle;
|
|
215
196
|
/** Animated style and props for the backdrop layer between screens. */
|
|
@@ -218,22 +199,22 @@ export type NewTransitionInterpolatedStyle = {
|
|
|
218
199
|
surface?: TransitionSlotStyle;
|
|
219
200
|
/** Custom styles/props by id for Transition.View components. */
|
|
220
201
|
[id: string]: TransitionSlotStyle | undefined;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
*/
|
|
226
|
-
export type LegacyTransitionInterpolatedStyle = {
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated Use `content` instead.
|
|
204
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
205
|
+
*/
|
|
227
206
|
contentStyle?: AnimatedViewStyle;
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated Use `backdrop` instead.
|
|
209
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
210
|
+
*/
|
|
228
211
|
backdropStyle?: AnimatedViewStyle;
|
|
212
|
+
/**
|
|
213
|
+
* @deprecated Use `backdrop` instead.
|
|
214
|
+
* This flat format is auto-converted via a backward-compat shim.
|
|
215
|
+
*/
|
|
229
216
|
overlayStyle?: AnimatedViewStyle;
|
|
230
|
-
[id: string]: AnimatedViewStyle | undefined;
|
|
231
217
|
};
|
|
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
218
|
/**
|
|
238
219
|
* A Reanimated animation configuration object.
|
|
239
220
|
*/
|
|
@@ -261,4 +242,5 @@ export interface TransitionSpec {
|
|
|
261
242
|
*/
|
|
262
243
|
collapse?: AnimationConfig;
|
|
263
244
|
}
|
|
245
|
+
export {};
|
|
264
246
|
//# 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;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,
|
|
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,OAA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C,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;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"b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G,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,18 @@
|
|
|
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
|
+
export type SheetScrollGestureBehavior = "expand-and-collapse" | "collapse-only";
|
|
11
|
+
/**
|
|
12
|
+
* A single snap point value. Either a fraction of screen height (0–1) or
|
|
13
|
+
* `'auto'` to snap to the intrinsic height of the screen content.
|
|
14
|
+
*/
|
|
15
|
+
export type SnapPoint = number | "auto";
|
|
10
16
|
export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
|
|
11
17
|
/**
|
|
12
18
|
* Connects this component to custom animated styles defined in screenStyleInterpolator.
|
|
@@ -21,10 +27,13 @@ export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
|
|
|
21
27
|
* </Transition.View>
|
|
22
28
|
*
|
|
23
29
|
* // In your screenStyleInterpolator:
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
30
|
+
* screenStyleInterpolator: ({ progress }) => {
|
|
31
|
+
* "worklet";
|
|
32
|
+
* return {
|
|
33
|
+
* 'hero-image': {
|
|
34
|
+
* opacity: interpolate(progress, [0, 1], [0, 1]),
|
|
35
|
+
* transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }]
|
|
36
|
+
* }
|
|
28
37
|
* }
|
|
29
38
|
* }
|
|
30
39
|
*/
|
|
@@ -70,6 +79,12 @@ export type ScreenTransitionConfig = {
|
|
|
70
79
|
* (e.g. `bounds().navigation.zoom()`) is ready from the first frame.
|
|
71
80
|
*
|
|
72
81
|
* Requires `@react-native-masked-view/masked-view` to be installed.
|
|
82
|
+
*
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
navigationMaskEnabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated Use `navigationMaskEnabled` instead.
|
|
73
88
|
*/
|
|
74
89
|
maskEnabled?: boolean;
|
|
75
90
|
/**
|
|
@@ -135,18 +150,8 @@ export type ScreenTransitionConfig = {
|
|
|
135
150
|
meta?: Record<string, unknown>;
|
|
136
151
|
/**
|
|
137
152
|
* Function that returns a React Element to display as an overlay.
|
|
138
|
-
* For container overlays (overlayMode: 'container'), use ContainerOverlayProps which includes children.
|
|
139
153
|
*/
|
|
140
154
|
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
155
|
/**
|
|
151
156
|
* Whether to show the overlay. The overlay is shown by default when `overlay` is provided.
|
|
152
157
|
* Setting this to `false` hides the overlay.
|
|
@@ -164,15 +169,21 @@ export type ScreenTransitionConfig = {
|
|
|
164
169
|
*/
|
|
165
170
|
experimental_enableHighRefreshRate?: boolean;
|
|
166
171
|
/**
|
|
167
|
-
* Describes heights where a screen can rest, as fractions of screen height
|
|
168
|
-
*
|
|
172
|
+
* Describes heights where a screen can rest, as fractions of screen height,
|
|
173
|
+
* or `'auto'` to snap to the intrinsic height of the screen content.
|
|
174
|
+
*
|
|
175
|
+
* Pass an array of ascending values from 0 to 1, or `'auto'`.
|
|
176
|
+
* The `'auto'` value measures the content's natural height after layout and
|
|
177
|
+
* converts it to the equivalent fraction of the screen height.
|
|
169
178
|
*
|
|
170
179
|
* @example
|
|
171
|
-
* snapPoints={[0.5, 1.0]}
|
|
180
|
+
* snapPoints={[0.5, 1.0]} // 50% and 100% of screen height
|
|
181
|
+
* snapPoints={['auto']} // snap to content height
|
|
182
|
+
* snapPoints={['auto', 1.0]} // content height or full screen
|
|
172
183
|
*
|
|
173
184
|
* @default [1.0]
|
|
174
185
|
*/
|
|
175
|
-
snapPoints?:
|
|
186
|
+
snapPoints?: SnapPoint[];
|
|
176
187
|
/**
|
|
177
188
|
* The initial snap point index when the screen opens.
|
|
178
189
|
*
|
|
@@ -180,16 +191,24 @@ export type ScreenTransitionConfig = {
|
|
|
180
191
|
*/
|
|
181
192
|
initialSnapIndex?: number;
|
|
182
193
|
/**
|
|
183
|
-
* Controls
|
|
184
|
-
*
|
|
185
|
-
* - `true` (Apple Maps style): Swiping up at scroll top expands the sheet
|
|
186
|
-
* - `false` (Instagram style): Expand only works via deadspace (non-scrollable areas)
|
|
194
|
+
* Controls how nested scroll content hands gestures off to a snap sheet.
|
|
187
195
|
*
|
|
188
|
-
*
|
|
196
|
+
* - `"expand-and-collapse"` (Apple Maps style): Swiping up at scroll boundary expands the sheet,
|
|
197
|
+
* and swiping down at scroll boundary collapses or dismisses it
|
|
198
|
+
* - `"collapse-only"` (Instagram style): Expand only works via deadspace; collapse/dismiss via
|
|
199
|
+
* nested scroll content still works at boundary
|
|
189
200
|
*
|
|
190
201
|
* Only applies to screens with `snapPoints` configured.
|
|
191
202
|
*
|
|
192
|
-
* @default
|
|
203
|
+
* @default "expand-and-collapse"
|
|
204
|
+
*/
|
|
205
|
+
sheetScrollGestureBehavior?: SheetScrollGestureBehavior;
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated Use `sheetScrollGestureBehavior` instead.
|
|
208
|
+
*
|
|
209
|
+
* Mapping:
|
|
210
|
+
* - `true` -> `"expand-and-collapse"`
|
|
211
|
+
* - `false` -> `"collapse-only"`
|
|
193
212
|
*/
|
|
194
213
|
expandViaScrollView?: boolean;
|
|
195
214
|
/**
|
|
@@ -223,12 +242,15 @@ export type ScreenTransitionConfig = {
|
|
|
223
242
|
*
|
|
224
243
|
* @example
|
|
225
244
|
* backdropComponent: BlurView,
|
|
226
|
-
* screenStyleInterpolator: ({ progress }) =>
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* }
|
|
245
|
+
* screenStyleInterpolator: ({ progress }) => {
|
|
246
|
+
* "worklet";
|
|
247
|
+
* return {
|
|
248
|
+
* backdrop: {
|
|
249
|
+
* style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
|
|
250
|
+
* props: { intensity: interpolate(progress, [0, 1], [0, 80]) },
|
|
251
|
+
* },
|
|
252
|
+
* };
|
|
253
|
+
* }
|
|
232
254
|
*
|
|
233
255
|
* @default undefined
|
|
234
256
|
*/
|
|
@@ -244,12 +266,15 @@ export type ScreenTransitionConfig = {
|
|
|
244
266
|
*
|
|
245
267
|
* @example
|
|
246
268
|
* surfaceComponent: SquircleView,
|
|
247
|
-
* screenStyleInterpolator: ({ progress }) =>
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* }
|
|
269
|
+
* screenStyleInterpolator: ({ progress }) => {
|
|
270
|
+
* "worklet";
|
|
271
|
+
* return {
|
|
272
|
+
* surface: {
|
|
273
|
+
* style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
|
|
274
|
+
* props: { cornerRadius: 24, cornerSmoothing: 0.7 },
|
|
275
|
+
* },
|
|
276
|
+
* };
|
|
277
|
+
* }
|
|
253
278
|
*
|
|
254
279
|
* @default undefined
|
|
255
280
|
*/
|
|
@@ -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,EACX,uBAAuB,EACvB,cAAc,EACd,MAAM,mB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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";
|