react-native-screen-transitions 3.6.0-alpha.0 → 3.6.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/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +9 -12
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +4 -7
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +12 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +2 -12
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +13 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +1 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +2 -2
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js +17 -12
- package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +8 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -10
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -12
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -7
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +3 -3
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/constants.js +13 -3
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +4 -12
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +86 -11
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +23 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +107 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +8 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +79 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +95 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +29 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +96 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +20 -22
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +51 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +2 -3
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +55 -25
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +5 -5
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +4 -5
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +3 -3
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +6 -84
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +2 -5
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +37 -36
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js +13 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +69 -56
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/{builders/use-build-pan-gesture.js → pan/build-pan-gesture.js} +4 -4
- package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js +210 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/gesture-activation.js → pan/pan-activation-rules.js} +131 -121
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +94 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/pan-phases.js → pan/pan-lifecycle.js} +31 -30
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +193 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +52 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{builders/use-build-pinch-gesture.js → pinch/build-pinch-gesture.js} +4 -4
- package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{activation/use-pinch-activation.js → pinch/pinch-activation.js} +4 -4
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/pinch-phases.js → pinch/pinch-lifecycle.js} +12 -7
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js +133 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/use-scroll-gesture-coordination.js +4 -4
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/walk-up-scroll-gesture-coordination.js +20 -9
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/walk-gesture-ancestors.js → shared/ancestors.js} +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/gesture-directions.js → shared/directions.js} +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/{helpers/gesture-physics.js → shared/physics.js} +80 -72
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +231 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js +36 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js +65 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js +184 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js +122 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/types.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/options/helpers.js +69 -19
- package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +26 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +112 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +45 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -16
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +34 -13
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +9 -3
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +3 -7
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +2 -12
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +1 -10
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js +1 -3
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +0 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +2 -8
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +3 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +19 -18
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/math.js +1 -15
- package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +190 -75
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +8 -17
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +80 -18
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +2 -2
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +4 -5
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture-progress-mode.js +50 -0
- package/lib/commonjs/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js +9 -16
- package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -1
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +3 -3
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +9 -12
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +4 -7
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +10 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +2 -12
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +13 -2
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +1 -7
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js +16 -11
- package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +8 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -10
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +3 -13
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -7
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/shared/configs/presets.js +3 -3
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/constants.js +12 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +4 -12
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +87 -12
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +18 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +101 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +8 -1
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +74 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +85 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +22 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +89 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +20 -22
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +46 -0
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +2 -3
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +56 -25
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +4 -4
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +4 -5
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +6 -84
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +1 -4
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +36 -36
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js +12 -0
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +69 -56
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/{builders/use-build-pan-gesture.js → pan/build-pan-gesture.js} +3 -3
- package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js +205 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/gesture-activation.js → pan/pan-activation-rules.js} +129 -119
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +89 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/pan-phases.js → pan/pan-lifecycle.js} +27 -26
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +185 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +47 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{behaviors → pan}/use-pan-behavior.js +8 -19
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{builders/use-build-pinch-gesture.js → pinch/build-pinch-gesture.js} +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{activation/use-pinch-activation.js → pinch/pinch-activation.js} +2 -2
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/pinch-phases.js → pinch/pinch-lifecycle.js} +9 -4
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js +126 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js +40 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{behaviors → pinch}/use-pinch-behavior.js +8 -19
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/use-scroll-gesture-coordination.js +4 -4
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/walk-up-scroll-gesture-coordination.js +20 -9
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/walk-gesture-ancestors.js → shared/ancestors.js} +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/gesture-directions.js → shared/directions.js} +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/{helpers/gesture-physics.js → shared/physics.js} +76 -66
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +218 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js +30 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js +58 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js +37 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js +174 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js +116 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/types.js +1 -1
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/shared/providers/screen/options/helpers.js +70 -20
- package/lib/module/shared/providers/screen/options/helpers.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +21 -0
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +110 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +39 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -16
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -14
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +10 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +3 -7
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +2 -12
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +1 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/matching.js +1 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js +2 -4
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +2 -21
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +2 -8
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +3 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +19 -18
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/math.js +2 -16
- package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +192 -77
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +7 -16
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +81 -19
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +4 -5
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -1
- package/lib/module/shared/utils/gesture-progress-mode.js +42 -0
- package/lib/module/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/module/shared/utils/resolve-chain-target.js +9 -16
- package/lib/module/shared/utils/resolve-chain-target.js.map +1 -1
- package/lib/module/shared/utils/resolve-screen-transition-options.js +1 -1
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +5 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +2 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +1 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.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/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +11 -3
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +3 -3
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +4 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/{hydrate-transition-state.d.ts → hydrate-transition-state/types.d.ts} +15 -16
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +4 -4
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +2 -3
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +19 -4
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +9 -3
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +3 -5
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/{builders/use-build-pan-gesture.d.ts → pan/build-pan-gesture.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/gesture-activation.d.ts → pan/pan-activation-rules.d.ts} +12 -11
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-rules.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{activation/use-pan-activation.d.ts → pan/pan-activation.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/pan-phases.d.ts → pan/pan-lifecycle.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{builders/use-build-pinch-gesture.d.ts → pinch/build-pinch-gesture.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{activation/use-pinch-activation.d.ts → pinch/pinch-activation.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/pinch-phases.d.ts → pinch/pinch-lifecycle.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/update-scroll-gesture-state.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/use-scroll-gesture-coordination.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/walk-up-scroll-gesture-coordination.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/walk-gesture-ancestors.d.ts → shared/ancestors.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/gesture-directions.d.ts → shared/directions.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/gesture-physics.d.ts → shared/physics.d.ts} +4 -10
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +49 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts +37 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/{helpers/gesture-targets.d.ts → shared/targets.d.ts} +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +30 -29
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/options/types.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +4 -4
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -3
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +1 -2
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/index.d.ts +1 -3
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +2 -4
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +3 -3
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +2 -11
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +4 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +25 -1
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +1 -0
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +8 -1
- 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/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +7 -16
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture-progress-mode.d.ts +14 -0
- package/lib/typescript/shared/utils/gesture-progress-mode.d.ts.map +1 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts +2 -2
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -1
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -1
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +9 -14
- package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -18
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +11 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +2 -27
- package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +13 -4
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +0 -12
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +1 -1
- package/src/shared/components/create-transition-aware-component.tsx +1 -1
- package/src/shared/components/screen-container/helpers/find-collapse-target.ts +18 -7
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +1 -1
- package/src/shared/components/screen-container/layers/backdrop.tsx +11 -5
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +30 -15
- package/src/shared/components/screen-container/layers/surface-container.tsx +35 -15
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +3 -23
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +1 -4
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition-intent.ts +1 -1
- package/src/shared/configs/presets.ts +3 -3
- package/src/shared/constants.ts +17 -3
- package/src/shared/index.ts +3 -0
- package/src/shared/providers/register-bounds.provider.tsx +10 -11
- package/src/shared/providers/screen/animation/animation.provider.tsx +169 -17
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +13 -0
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +158 -0
- package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +17 -1
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +164 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +160 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.ts +41 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.ts +188 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +40 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +44 -25
- package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +99 -0
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +7 -6
- package/src/shared/providers/screen/animation/types.ts +34 -4
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +88 -33
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +1 -7
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -19
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +5 -4
- package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +6 -10
- package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +1 -1
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +11 -147
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +1 -5
- package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +11 -19
- package/src/shared/providers/screen/gestures/ownership/compute-claimed-directions.ts +52 -40
- package/src/shared/providers/screen/gestures/ownership/resolve-ownership.ts +15 -0
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +83 -47
- package/src/shared/providers/screen/gestures/{builders/use-build-pan-gesture.ts → pan/build-pan-gesture.ts} +2 -2
- package/src/shared/providers/screen/gestures/pan/pan-activation-decision.ts +458 -0
- package/src/shared/providers/screen/gestures/{helpers/gesture-activation.ts → pan/pan-activation-rules.ts} +208 -147
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +132 -0
- package/src/shared/providers/screen/gestures/{helpers/pan-phases.ts → pan/pan-lifecycle.ts} +27 -22
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +246 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +92 -0
- package/src/shared/providers/screen/gestures/{behaviors → pan}/use-pan-behavior.ts +19 -30
- package/src/shared/providers/screen/gestures/{builders/use-build-pinch-gesture.ts → pinch/build-pinch-gesture.ts} +2 -2
- package/src/shared/providers/screen/gestures/{activation/use-pinch-activation.ts → pinch/pinch-activation.ts} +1 -1
- package/src/shared/providers/screen/gestures/{helpers/pinch-phases.ts → pinch/pinch-lifecycle.ts} +8 -2
- package/src/shared/providers/screen/gestures/pinch/pinch-release.ts +183 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-reset.ts +65 -0
- package/src/shared/providers/screen/gestures/{behaviors → pinch}/use-pinch-behavior.ts +19 -36
- package/src/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/update-scroll-gesture-state.ts +1 -1
- package/src/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/use-scroll-gesture-coordination.ts +5 -5
- package/src/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/walk-up-scroll-gesture-coordination.ts +42 -26
- package/src/shared/providers/screen/gestures/{helpers/gesture-physics.ts → shared/physics.ts} +147 -112
- package/src/shared/providers/screen/gestures/shared/policy.ts +346 -0
- package/src/shared/providers/screen/gestures/shared/release.ts +43 -0
- package/src/shared/providers/screen/gestures/shared/reset.ts +74 -0
- package/src/shared/providers/screen/gestures/shared/runtime.ts +76 -0
- package/src/shared/providers/screen/gestures/shared/snap-points.ts +250 -0
- package/src/shared/providers/screen/gestures/shared/targets.ts +202 -0
- package/src/shared/providers/screen/gestures/types.ts +38 -44
- package/src/shared/providers/screen/options/helpers.ts +169 -58
- package/src/shared/providers/screen/options/types.ts +1 -0
- package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +22 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +154 -0
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +57 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +48 -18
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +36 -17
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +11 -3
- package/src/shared/stores/animation.store.ts +3 -9
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +2 -21
- package/src/shared/stores/bounds/helpers/link.helpers.ts +3 -7
- package/src/shared/stores/bounds/helpers/matching.ts +2 -16
- package/src/shared/stores/bounds/index.ts +1 -3
- package/src/shared/stores/bounds/internals/clear.ts +3 -42
- package/src/shared/stores/bounds/internals/links.ts +1 -13
- package/src/shared/stores/bounds/types.ts +2 -11
- package/src/shared/stores/system.store.ts +8 -0
- package/src/shared/types/animation.types.ts +31 -0
- package/src/shared/types/bounds.types.ts +4 -1
- package/src/shared/types/gesture.types.ts +2 -0
- package/src/shared/types/index.ts +3 -0
- package/src/shared/types/screen.types.ts +13 -1
- package/src/shared/utils/animation/animate-to-progress.ts +25 -17
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +2 -2
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +2 -2
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +3 -3
- package/src/shared/utils/bounds/navigation/math.ts +2 -18
- package/src/shared/utils/bounds/navigation/reveal/build.ts +357 -118
- package/src/shared/utils/bounds/navigation/reveal/config.ts +7 -18
- package/src/shared/utils/bounds/navigation/zoom/build.ts +124 -20
- package/src/shared/utils/bounds/navigation/zoom/config.ts +1 -1
- package/src/shared/utils/bounds/navigation/zoom/math.ts +5 -7
- package/src/shared/utils/gesture-progress-mode.ts +67 -0
- package/src/shared/utils/resolve-chain-target.ts +9 -22
- package/src/shared/utils/resolve-screen-transition-options.ts +1 -3
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +0 -43
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -164
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -33
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -28
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js +0 -182
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +0 -161
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +0 -78
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +0 -147
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +0 -52
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +0 -64
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +0 -64
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js +0 -99
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js +0 -43
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js +0 -93
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +0 -21
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js +0 -134
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js +0 -56
- package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +0 -18
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +0 -1
- package/lib/commonjs/shared/providers/scroll-settle.provider.js +0 -25
- package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +0 -1
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js +0 -227
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +0 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +0 -39
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -158
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -29
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -24
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js +0 -177
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +0 -157
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +0 -74
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +0 -143
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +0 -48
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js +0 -93
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js +0 -37
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js +0 -87
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +0 -17
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js +0 -124
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js +0 -50
- package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +0 -14
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +0 -1
- package/lib/module/shared/providers/scroll-settle.provider.js +0 -19
- package/lib/module/shared/providers/scroll-settle.provider.js.map +0 -1
- package/lib/module/shared/typecheck/public-api.typecheck.js +0 -227
- package/lib/module/shared/typecheck/public-api.typecheck.js.map +0 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +0 -13
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts +0 -20
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts +0 -17
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-targets.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts +0 -8
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts +0 -20
- package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts.map +0 -1
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +0 -12
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +0 -1
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +0 -53
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +0 -335
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +0 -42
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +0 -29
- package/src/shared/providers/screen/gestures/activation/use-pan-activation.ts +0 -244
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.ts +0 -195
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.ts +0 -76
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.ts +0 -177
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.ts +0 -73
- package/src/shared/providers/screen/gestures/helpers/gesture-reset.ts +0 -158
- package/src/shared/providers/screen/gestures/helpers/gesture-snap-points.ts +0 -72
- package/src/shared/providers/screen/gestures/helpers/gesture-targets.ts +0 -153
- package/src/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.ts +0 -23
- package/src/shared/providers/screen/gestures/helpers/runtime-options.ts +0 -159
- package/src/shared/providers/screen/gestures/helpers/validate-snap-points.ts +0 -74
- package/src/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.ts +0 -15
- package/src/shared/providers/scroll-settle.provider.tsx +0 -24
- package/src/shared/typecheck/public-api.typecheck.ts +0 -272
- /package/lib/commonjs/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/index.js +0 -0
- /package/lib/commonjs/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/update-scroll-gesture-state.js +0 -0
- /package/lib/module/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/index.js +0 -0
- /package/lib/module/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/update-scroll-gesture-state.js +0 -0
- /package/lib/typescript/shared/providers/screen/gestures/{behaviors → pan}/use-pan-behavior.d.ts +0 -0
- /package/lib/typescript/shared/providers/screen/gestures/{behaviors → pinch}/use-pinch-behavior.d.ts +0 -0
- /package/lib/typescript/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/index.d.ts +0 -0
- /package/src/shared/providers/screen/gestures/{hooks/use-scroll-gesture-coordination → scroll-coordination}/index.ts +0 -0
- /package/src/shared/providers/screen/gestures/{helpers/walk-gesture-ancestors.ts → shared/ancestors.ts} +0 -0
- /package/src/shared/providers/screen/gestures/{helpers/gesture-directions.ts → shared/directions.ts} +0 -0
|
@@ -1,40 +1,59 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAnimatedProps,
|
|
3
|
+
useAnimatedReaction,
|
|
3
4
|
useAnimatedStyle,
|
|
4
|
-
|
|
5
|
+
useSharedValue,
|
|
5
6
|
} from "react-native-reanimated";
|
|
6
7
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
7
8
|
import { SystemStore } from "../../../../stores/system.store";
|
|
8
9
|
import { useDescriptorDerivations } from "../../descriptors";
|
|
10
|
+
import { resolveScreenVisibilityGate } from "../helpers/visibility-gate";
|
|
9
11
|
|
|
10
12
|
export const useMaybeBlockVisibility = (isFloatingOverlay?: boolean) => {
|
|
11
13
|
const { currentScreenKey } = useDescriptorDerivations();
|
|
12
|
-
const progress = AnimationStore.
|
|
14
|
+
const { entering, progress } = AnimationStore.getBag(currentScreenKey);
|
|
13
15
|
|
|
14
|
-
const { pendingLifecycleStartBlockCount } =
|
|
16
|
+
const { pendingLifecycleStartBlockCount, pendingLifecycleRequestKind } =
|
|
15
17
|
SystemStore.getBag(currentScreenKey);
|
|
16
18
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
+
const hasVisibilityGateOpened = useSharedValue(false);
|
|
20
|
+
const shouldBlockVisibility = useSharedValue(!isFloatingOverlay);
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Visibility has to start blocked before the first animated style pass.
|
|
24
|
+
*
|
|
25
|
+
* `useDerivedValue` can publish its computed value after `useAnimatedStyle`
|
|
26
|
+
* has already read the initial one, which briefly exposes an unhydrated
|
|
27
|
+
* screen. Keep the visible state in an eagerly initialized shared value, then
|
|
28
|
+
* let the reaction open it once the visibility gate allows the first
|
|
29
|
+
* transformed frame to render.
|
|
30
|
+
*/
|
|
31
|
+
useAnimatedReaction(
|
|
32
|
+
() => {
|
|
33
|
+
"worklet";
|
|
23
34
|
|
|
24
|
-
|
|
35
|
+
return resolveScreenVisibilityGate({
|
|
36
|
+
isFloatingOverlay,
|
|
37
|
+
hasVisibilityGateOpened: hasVisibilityGateOpened.get(),
|
|
38
|
+
pendingLifecycleStartBlockCount: pendingLifecycleStartBlockCount.get(),
|
|
39
|
+
pendingLifecycleRequestKind: pendingLifecycleRequestKind.get(),
|
|
40
|
+
progress: progress.get(),
|
|
41
|
+
entering: entering.get(),
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
(gate) => {
|
|
45
|
+
"worklet";
|
|
25
46
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// count turns visible to this provider.
|
|
30
|
-
const isWaitingForOpenToStart = progress.get() <= 0;
|
|
47
|
+
if (gate.shouldOpenGate) {
|
|
48
|
+
hasVisibilityGateOpened.set(true);
|
|
49
|
+
}
|
|
31
50
|
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
shouldBlockVisibility.set(gate.shouldBlock);
|
|
52
|
+
},
|
|
53
|
+
);
|
|
34
54
|
|
|
35
55
|
const animatedStyle = useAnimatedStyle(() => {
|
|
36
56
|
"worklet";
|
|
37
|
-
|
|
38
57
|
return {
|
|
39
58
|
opacity: shouldBlockVisibility.get() ? 0 : 1,
|
|
40
59
|
};
|
|
@@ -9,6 +9,7 @@ import { useScreenAnimationContext } from "../../animation";
|
|
|
9
9
|
import {
|
|
10
10
|
type ResettableStyleStatesBySlot,
|
|
11
11
|
resolveSlotStyles,
|
|
12
|
+
reuseEqualResolvedSlots,
|
|
12
13
|
} from "../helpers/resolve-slot-styles";
|
|
13
14
|
|
|
14
15
|
interface UseResolvedStylesMapParams {
|
|
@@ -20,15 +21,17 @@ export const useResolvedStylesMap = ({
|
|
|
20
21
|
currentStylesMap,
|
|
21
22
|
ancestorStylesMap,
|
|
22
23
|
}: UseResolvedStylesMapParams) => {
|
|
23
|
-
const { screenInterpolatorProps,
|
|
24
|
+
const { screenInterpolatorProps, screenInterpolatorPropsRevision } =
|
|
24
25
|
useScreenAnimationContext();
|
|
25
26
|
const previousStyleStatesBySlot = useSharedValue<ResettableStyleStatesBySlot>(
|
|
26
27
|
{},
|
|
27
28
|
);
|
|
29
|
+
const previousResolvedStylesMap =
|
|
30
|
+
useSharedValue<NormalizedTransitionInterpolatedStyle>(NO_STYLES);
|
|
28
31
|
|
|
29
32
|
return useDerivedValue(() => {
|
|
30
33
|
"worklet";
|
|
31
|
-
|
|
34
|
+
screenInterpolatorPropsRevision.get();
|
|
32
35
|
|
|
33
36
|
const props = screenInterpolatorProps.get();
|
|
34
37
|
// Keep missing local slots alive while another route drives this screen.
|
|
@@ -44,7 +47,12 @@ export const useResolvedStylesMap = ({
|
|
|
44
47
|
});
|
|
45
48
|
|
|
46
49
|
previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
|
|
50
|
+
const stableResolvedStylesMap = reuseEqualResolvedSlots({
|
|
51
|
+
resolvedStylesMap,
|
|
52
|
+
previousResolvedStylesMap: previousResolvedStylesMap.get(),
|
|
53
|
+
});
|
|
54
|
+
previousResolvedStylesMap.set(stableResolvedStylesMap);
|
|
47
55
|
|
|
48
|
-
return
|
|
56
|
+
return stableResolvedStylesMap;
|
|
49
57
|
});
|
|
50
58
|
};
|
|
@@ -8,11 +8,9 @@ import { createStore } from "../utils/create-store";
|
|
|
8
8
|
export type AnimationStoreMap = {
|
|
9
9
|
progress: SharedValue<number>;
|
|
10
10
|
willAnimate: SharedValue<number>;
|
|
11
|
-
|
|
11
|
+
progressAnimating: SharedValue<number>;
|
|
12
12
|
closing: SharedValue<number>;
|
|
13
13
|
entering: SharedValue<number>;
|
|
14
|
-
settled: SharedValue<number>;
|
|
15
|
-
logicallySettled: SharedValue<number>;
|
|
16
14
|
};
|
|
17
15
|
|
|
18
16
|
function createAnimationBag(): AnimationStoreMap {
|
|
@@ -20,10 +18,8 @@ function createAnimationBag(): AnimationStoreMap {
|
|
|
20
18
|
progress: makeMutable(0),
|
|
21
19
|
willAnimate: makeMutable(0),
|
|
22
20
|
closing: makeMutable(0),
|
|
23
|
-
|
|
21
|
+
progressAnimating: makeMutable(0),
|
|
24
22
|
entering: makeMutable(0),
|
|
25
|
-
settled: makeMutable(1),
|
|
26
|
-
logicallySettled: makeMutable(1),
|
|
27
23
|
};
|
|
28
24
|
}
|
|
29
25
|
|
|
@@ -37,10 +33,8 @@ export const AnimationStore = createStore<AnimationStoreMap>({
|
|
|
37
33
|
disposeBag: (bag) => {
|
|
38
34
|
cancelAnimation(bag.progress);
|
|
39
35
|
cancelAnimation(bag.willAnimate);
|
|
40
|
-
cancelAnimation(bag.
|
|
36
|
+
cancelAnimation(bag.progressAnimating);
|
|
41
37
|
cancelAnimation(bag.closing);
|
|
42
38
|
cancelAnimation(bag.entering);
|
|
43
|
-
cancelAnimation(bag.settled);
|
|
44
|
-
cancelAnimation(bag.logicallySettled);
|
|
45
39
|
},
|
|
46
40
|
});
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import type { EntryPatch, ScreenEntry, ScreenKey, TagState } from "../types";
|
|
2
2
|
|
|
3
|
-
type EntryPatchOptionalField =
|
|
4
|
-
| "boundaryConfig"
|
|
5
|
-
| "ancestorKeys"
|
|
6
|
-
| "navigatorKey"
|
|
7
|
-
| "ancestorNavigatorKeys";
|
|
3
|
+
type EntryPatchOptionalField = "boundaryConfig";
|
|
8
4
|
|
|
9
5
|
const ENTRY_PATCH_OPTIONAL_FIELDS = [
|
|
10
6
|
"boundaryConfig",
|
|
11
|
-
"ancestorKeys",
|
|
12
|
-
"navigatorKey",
|
|
13
|
-
"ancestorNavigatorKeys",
|
|
14
7
|
] as const satisfies readonly EntryPatchOptionalField[];
|
|
15
8
|
|
|
16
9
|
export const ensureScreenEntry = (
|
|
@@ -58,17 +51,5 @@ export const findMatchingScreenEntry = (
|
|
|
58
51
|
"worklet";
|
|
59
52
|
if (!tagState) return null;
|
|
60
53
|
|
|
61
|
-
|
|
62
|
-
if (direct) {
|
|
63
|
-
return direct;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
for (const entryScreenKey in tagState.screens) {
|
|
67
|
-
const entry = tagState.screens[entryScreenKey];
|
|
68
|
-
if (entry.ancestorKeys?.includes(screenKey)) {
|
|
69
|
-
return entry;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return null;
|
|
54
|
+
return tagState.screens[screenKey] ?? null;
|
|
74
55
|
};
|
|
@@ -5,15 +5,11 @@ import { matchesScreenKey } from "./matching";
|
|
|
5
5
|
type LinkSide = "source" | "destination";
|
|
6
6
|
|
|
7
7
|
export const isSameScreenFamily = (
|
|
8
|
-
a: { screenKey: ScreenKey
|
|
9
|
-
b: { screenKey: ScreenKey
|
|
8
|
+
a: { screenKey: ScreenKey },
|
|
9
|
+
b: { screenKey: ScreenKey },
|
|
10
10
|
): boolean => {
|
|
11
11
|
"worklet";
|
|
12
|
-
return
|
|
13
|
-
a.screenKey === b.screenKey ||
|
|
14
|
-
(a.ancestorKeys?.includes(b.screenKey) ?? false) ||
|
|
15
|
-
(b.ancestorKeys?.includes(a.screenKey) ?? false)
|
|
16
|
-
);
|
|
12
|
+
return a.screenKey === b.screenKey;
|
|
17
13
|
};
|
|
18
14
|
|
|
19
15
|
export function findLatestPendingSourceLinkIndex(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScreenIdentifier, ScreenKey } from "../types";
|
|
2
2
|
|
|
3
3
|
export function matchesScreenKey(
|
|
4
4
|
identifier: ScreenIdentifier | null | undefined,
|
|
@@ -7,19 +7,5 @@ export function matchesScreenKey(
|
|
|
7
7
|
"worklet";
|
|
8
8
|
if (!identifier) return false;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return identifier.ancestorKeys?.includes(key) ?? false;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function matchesNavigatorKey(
|
|
16
|
-
identifier: ScreenIdentifier | null | undefined,
|
|
17
|
-
key: NavigatorKey,
|
|
18
|
-
): boolean {
|
|
19
|
-
"worklet";
|
|
20
|
-
if (!identifier) return false;
|
|
21
|
-
|
|
22
|
-
if (identifier.navigatorKey === key) return true;
|
|
23
|
-
|
|
24
|
-
return identifier.ancestorNavigatorKeys?.includes(key) ?? false;
|
|
10
|
+
return identifier.screenKey === key;
|
|
25
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clear
|
|
1
|
+
import { clear } from "./internals/clear";
|
|
2
2
|
import { getEntry, removeEntry, setEntry } from "./internals/entries";
|
|
3
3
|
import {
|
|
4
4
|
getGroupActiveId,
|
|
@@ -51,7 +51,5 @@ export const BoundStore = {
|
|
|
51
51
|
},
|
|
52
52
|
cleanup: {
|
|
53
53
|
byScreen: clear,
|
|
54
|
-
byAncestor: clearByAncestor,
|
|
55
|
-
byBranch: clearByBranch,
|
|
56
54
|
},
|
|
57
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hasAnyKeys } from "../helpers/keys";
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
2
|
+
import { matchesScreenKey } from "../helpers/matching";
|
|
3
|
+
import type { ScreenEntry, ScreenKey, TagLink } from "../types";
|
|
4
4
|
import { type RegistryState, registry } from "./state";
|
|
5
5
|
|
|
6
6
|
type LinkPredicate = (link: TagLink) => boolean;
|
|
@@ -56,43 +56,4 @@ function clear(screenKey: ScreenKey) {
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
"worklet";
|
|
61
|
-
clearRegistry(
|
|
62
|
-
(entryScreenKey, screenEntry) => {
|
|
63
|
-
return (
|
|
64
|
-
entryScreenKey === ancestorKey ||
|
|
65
|
-
(screenEntry.ancestorKeys?.includes(ancestorKey) ?? false)
|
|
66
|
-
);
|
|
67
|
-
},
|
|
68
|
-
(link) => {
|
|
69
|
-
return (
|
|
70
|
-
matchesScreenKey(link.source, ancestorKey) ||
|
|
71
|
-
matchesScreenKey(link.destination, ancestorKey)
|
|
72
|
-
);
|
|
73
|
-
},
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function clearByBranch(branchNavigatorKey: NavigatorKey) {
|
|
78
|
-
"worklet";
|
|
79
|
-
if (!branchNavigatorKey) return;
|
|
80
|
-
|
|
81
|
-
clearRegistry(
|
|
82
|
-
(_entryScreenKey, screenEntry) => {
|
|
83
|
-
return (
|
|
84
|
-
screenEntry.navigatorKey === branchNavigatorKey ||
|
|
85
|
-
(screenEntry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ??
|
|
86
|
-
false)
|
|
87
|
-
);
|
|
88
|
-
},
|
|
89
|
-
(link) => {
|
|
90
|
-
return (
|
|
91
|
-
matchesNavigatorKey(link.source, branchNavigatorKey) ||
|
|
92
|
-
matchesNavigatorKey(link.destination, branchNavigatorKey)
|
|
93
|
-
);
|
|
94
|
-
},
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export { clear, clearByAncestor, clearByBranch };
|
|
59
|
+
export { clear };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
selectSourceUpdateTargetIndex,
|
|
9
9
|
} from "../helpers/link.helpers";
|
|
10
10
|
import { ensureTagState } from "../helpers/tag-state.helpers";
|
|
11
|
-
import type {
|
|
11
|
+
import type { ScreenKey, TagID, TagLink } from "../types";
|
|
12
12
|
import { type RegistryState, registry } from "./state";
|
|
13
13
|
|
|
14
14
|
type LinkSourceWriteMode = "capture" | "refresh";
|
|
@@ -20,18 +20,12 @@ function setSource(
|
|
|
20
20
|
screenKey: ScreenKey,
|
|
21
21
|
bounds: MeasuredDimensions,
|
|
22
22
|
styles: StyleProps = {},
|
|
23
|
-
ancestorKeys?: ScreenKey[],
|
|
24
|
-
navigatorKey?: NavigatorKey,
|
|
25
|
-
ancestorNavigatorKeys?: NavigatorKey[],
|
|
26
23
|
) {
|
|
27
24
|
"worklet";
|
|
28
25
|
registry.modify(<T extends RegistryState>(state: T): T => {
|
|
29
26
|
"worklet";
|
|
30
27
|
const source = {
|
|
31
28
|
screenKey,
|
|
32
|
-
ancestorKeys,
|
|
33
|
-
navigatorKey,
|
|
34
|
-
ancestorNavigatorKeys,
|
|
35
29
|
bounds,
|
|
36
30
|
styles,
|
|
37
31
|
};
|
|
@@ -85,10 +79,7 @@ function setDestination(
|
|
|
85
79
|
screenKey: ScreenKey,
|
|
86
80
|
bounds: MeasuredDimensions,
|
|
87
81
|
styles: StyleProps = {},
|
|
88
|
-
ancestorKeys?: ScreenKey[],
|
|
89
82
|
expectedSourceScreenKey?: ScreenKey,
|
|
90
|
-
navigatorKey?: NavigatorKey,
|
|
91
|
-
ancestorNavigatorKeys?: NavigatorKey[],
|
|
92
83
|
) {
|
|
93
84
|
"worklet";
|
|
94
85
|
registry.modify(<T extends RegistryState>(state: T): T => {
|
|
@@ -107,9 +98,6 @@ function setDestination(
|
|
|
107
98
|
const link = stack[targetIndex];
|
|
108
99
|
const destination = {
|
|
109
100
|
screenKey,
|
|
110
|
-
ancestorKeys,
|
|
111
|
-
navigatorKey,
|
|
112
|
-
ancestorNavigatorKeys,
|
|
113
101
|
bounds,
|
|
114
102
|
styles,
|
|
115
103
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
2
|
import type { BoundsMethod } from "../../types/bounds.types";
|
|
3
|
+
import type { ScreenKey } from "../../types/screen.types";
|
|
3
4
|
import type {
|
|
4
5
|
BoundsAnchor,
|
|
5
6
|
BoundsScaleMode,
|
|
6
7
|
} from "../../utils/bounds/types/options";
|
|
7
8
|
|
|
8
9
|
export type TagID = string;
|
|
9
|
-
export type ScreenKey
|
|
10
|
-
export type NavigatorKey = string;
|
|
10
|
+
export type { ScreenKey } from "../../types/screen.types";
|
|
11
11
|
|
|
12
12
|
export type BoundaryConfig = {
|
|
13
13
|
anchor?: BoundsAnchor;
|
|
@@ -20,9 +20,6 @@ export type Entry = {
|
|
|
20
20
|
bounds: MeasuredDimensions | null;
|
|
21
21
|
styles: StyleProps;
|
|
22
22
|
boundaryConfig?: BoundaryConfig;
|
|
23
|
-
ancestorKeys?: ScreenKey[];
|
|
24
|
-
navigatorKey?: NavigatorKey;
|
|
25
|
-
ancestorNavigatorKeys?: NavigatorKey[];
|
|
26
23
|
};
|
|
27
24
|
|
|
28
25
|
export type MeasuredEntry = Entry & {
|
|
@@ -33,16 +30,10 @@ export type EntryPatch = {
|
|
|
33
30
|
bounds?: MeasuredDimensions | null;
|
|
34
31
|
styles?: StyleProps | null;
|
|
35
32
|
boundaryConfig?: BoundaryConfig | null;
|
|
36
|
-
ancestorKeys?: ScreenKey[] | null;
|
|
37
|
-
navigatorKey?: NavigatorKey | null;
|
|
38
|
-
ancestorNavigatorKeys?: NavigatorKey[] | null;
|
|
39
33
|
};
|
|
40
34
|
|
|
41
35
|
export type ScreenIdentifier = {
|
|
42
36
|
screenKey: ScreenKey;
|
|
43
|
-
ancestorKeys?: ScreenKey[];
|
|
44
|
-
navigatorKey?: NavigatorKey;
|
|
45
|
-
ancestorNavigatorKeys?: NavigatorKey[];
|
|
46
37
|
};
|
|
47
38
|
|
|
48
39
|
export type TagLink = {
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
makeMutable,
|
|
4
4
|
type SharedValue,
|
|
5
5
|
} from "react-native-reanimated";
|
|
6
|
+
import { LOGICAL_SETTLE_REQUIRED_FRAMES } from "../constants";
|
|
6
7
|
import type { Layout } from "../types/screen.types";
|
|
7
8
|
import { createStore } from "../utils/create-store";
|
|
8
9
|
|
|
@@ -36,6 +37,11 @@ type SystemStoreState = {
|
|
|
36
37
|
*/
|
|
37
38
|
pendingLifecycleRequestTarget: SharedValue<number>;
|
|
38
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Number of consecutive frames progress has stayed near its target.
|
|
42
|
+
*/
|
|
43
|
+
logicalSettleFrameCount: SharedValue<number>;
|
|
44
|
+
|
|
39
45
|
/**
|
|
40
46
|
* Number of active blockers preventing a pending lifecycle request from
|
|
41
47
|
* starting immediately.
|
|
@@ -72,6 +78,7 @@ export const SystemStore = createStore<SystemStoreState, SystemStoreActions>({
|
|
|
72
78
|
LifecycleTransitionRequestKind.None,
|
|
73
79
|
),
|
|
74
80
|
pendingLifecycleRequestTarget: makeMutable<number>(0),
|
|
81
|
+
logicalSettleFrameCount: makeMutable(LOGICAL_SETTLE_REQUIRED_FRAMES),
|
|
75
82
|
pendingLifecycleStartBlockCount: makeMutable<number>(0),
|
|
76
83
|
}),
|
|
77
84
|
disposeBag: (bag) => {
|
|
@@ -80,6 +87,7 @@ export const SystemStore = createStore<SystemStoreState, SystemStoreActions>({
|
|
|
80
87
|
cancelAnimation(bag.measuredContentLayout);
|
|
81
88
|
cancelAnimation(bag.pendingLifecycleRequestKind);
|
|
82
89
|
cancelAnimation(bag.pendingLifecycleRequestTarget);
|
|
90
|
+
cancelAnimation(bag.logicalSettleFrameCount);
|
|
83
91
|
cancelAnimation(bag.pendingLifecycleStartBlockCount);
|
|
84
92
|
},
|
|
85
93
|
actions: (bag) => ({
|
|
@@ -31,6 +31,7 @@ export type ScreenTransitionOptions = Pick<
|
|
|
31
31
|
| "gestureSnapVelocityImpact"
|
|
32
32
|
| "gestureReleaseVelocityScale"
|
|
33
33
|
| "gestureResponseDistance"
|
|
34
|
+
| "gestureProgressMode"
|
|
34
35
|
| "gestureDrivesProgress"
|
|
35
36
|
| "gestureActivationArea"
|
|
36
37
|
| "gestureSnapLocked"
|
|
@@ -162,6 +163,22 @@ export type ScreenTransitionState = {
|
|
|
162
163
|
snapIndex: number;
|
|
163
164
|
};
|
|
164
165
|
|
|
166
|
+
export type ScreenTransitionDepthTarget = {
|
|
167
|
+
/**
|
|
168
|
+
* Relative transition depth.
|
|
169
|
+
*
|
|
170
|
+
* `0` resolves the current transition, negative values resolve ancestors, and
|
|
171
|
+
* positive values resolve descendants.
|
|
172
|
+
*/
|
|
173
|
+
depth: number;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export type ScreenTransitionTarget = ScreenTransitionDepthTarget;
|
|
177
|
+
|
|
178
|
+
export type ScreenTransitionAccessor = (
|
|
179
|
+
target?: ScreenTransitionTarget,
|
|
180
|
+
) => ScreenInterpolationProps | null;
|
|
181
|
+
|
|
165
182
|
export interface ScreenInterpolationProps {
|
|
166
183
|
/**
|
|
167
184
|
* Values for the screen that came before the current one in the navigation stack.
|
|
@@ -222,6 +239,20 @@ export interface ScreenInterpolationProps {
|
|
|
222
239
|
*/
|
|
223
240
|
bounds: BoundsAccessor;
|
|
224
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Resolves interpolation props for this screen's transition timeline or an
|
|
244
|
+
* ancestor transition timeline.
|
|
245
|
+
*
|
|
246
|
+
* Calling without a target returns the current transition.
|
|
247
|
+
* `transition({ depth: -1 })` returns the immediate parent transition.
|
|
248
|
+
* `transition({ depth: 1 })` returns the immediate child transition.
|
|
249
|
+
* `transition({ depth: 0 })` returns the current transition.
|
|
250
|
+
*
|
|
251
|
+
* When called from a returned transition scope, targets are resolved relative
|
|
252
|
+
* to that scope.
|
|
253
|
+
*/
|
|
254
|
+
transition: ScreenTransitionAccessor;
|
|
255
|
+
|
|
225
256
|
/**
|
|
226
257
|
* The screen state that is currently driving the transition (either current or next, whichever is focused).
|
|
227
258
|
*/
|
|
@@ -16,6 +16,8 @@ export type GestureDirection = PanGestureDirection | PinchGestureDirection;
|
|
|
16
16
|
|
|
17
17
|
export type ActiveGesture = ResolvedPanGestureDirection | PinchGestureDirection;
|
|
18
18
|
|
|
19
|
+
export type GestureProgressMode = "progress-driven" | "freeform";
|
|
20
|
+
|
|
19
21
|
export type SnapPanAxis = "horizontal" | "vertical";
|
|
20
22
|
|
|
21
23
|
export type ScrollGestureAxis = "vertical" | "horizontal";
|
|
@@ -4,8 +4,11 @@ export type {
|
|
|
4
4
|
AnimationConfig,
|
|
5
5
|
ScreenInterpolationProps,
|
|
6
6
|
ScreenStyleInterpolator,
|
|
7
|
+
ScreenTransitionAccessor,
|
|
8
|
+
ScreenTransitionDepthTarget,
|
|
7
9
|
ScreenTransitionOptions,
|
|
8
10
|
ScreenTransitionState,
|
|
11
|
+
ScreenTransitionTarget,
|
|
9
12
|
TransitionInterpolatedStyle,
|
|
10
13
|
TransitionInterpolatorConfig,
|
|
11
14
|
TransitionInterpolatorOptions,
|
|
@@ -3,7 +3,11 @@ import type {
|
|
|
3
3
|
ScreenStyleInterpolator,
|
|
4
4
|
TransitionSpec,
|
|
5
5
|
} from "./animation.types";
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
GestureActivationArea,
|
|
8
|
+
GestureDirection,
|
|
9
|
+
GestureProgressMode,
|
|
10
|
+
} from "./gesture.types";
|
|
7
11
|
import type { OverlayProps } from "./overlay.types";
|
|
8
12
|
|
|
9
13
|
export type Layout = {
|
|
@@ -219,8 +223,16 @@ export type ScreenTransitionConfig = {
|
|
|
219
223
|
*/
|
|
220
224
|
gestureResponseDistance?: number;
|
|
221
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Controls whether live gesture displacement drives transition progress or
|
|
228
|
+
* stays available as freeform gesture values for custom interpolators.
|
|
229
|
+
*/
|
|
230
|
+
gestureProgressMode?: GestureProgressMode;
|
|
231
|
+
|
|
222
232
|
/**
|
|
223
233
|
* Whether the gesture drives the progress.
|
|
234
|
+
*
|
|
235
|
+
* @deprecated Use `gestureProgressMode` instead.
|
|
224
236
|
*/
|
|
225
237
|
gestureDrivesProgress?: boolean;
|
|
226
238
|
|
|
@@ -22,6 +22,24 @@ interface AnimateToProgressProps {
|
|
|
22
22
|
initialVelocity?: number;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
const setTransitionLifecycleFlags = (
|
|
26
|
+
animations: AnimationStoreMap,
|
|
27
|
+
isClosing: boolean,
|
|
28
|
+
markEntering: boolean,
|
|
29
|
+
) => {
|
|
30
|
+
"worklet";
|
|
31
|
+
|
|
32
|
+
if (isClosing) {
|
|
33
|
+
animations.closing.set(TRUE);
|
|
34
|
+
animations.entering.set(FALSE);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (markEntering) {
|
|
39
|
+
animations.entering.set(TRUE);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
25
43
|
export const animateToProgress = ({
|
|
26
44
|
target,
|
|
27
45
|
spec,
|
|
@@ -50,7 +68,7 @@ export const animateToProgress = ({
|
|
|
50
68
|
? { ...config, velocity: initialVelocity }
|
|
51
69
|
: config;
|
|
52
70
|
|
|
53
|
-
const { progress, willAnimate,
|
|
71
|
+
const { progress, willAnimate, progressAnimating, entering } = animations;
|
|
54
72
|
|
|
55
73
|
const startAnimation = () => {
|
|
56
74
|
"worklet";
|
|
@@ -59,15 +77,10 @@ export const animateToProgress = ({
|
|
|
59
77
|
const shouldClearEnteringOnFinish =
|
|
60
78
|
!isClosing && (markEntering || entering.get());
|
|
61
79
|
|
|
62
|
-
|
|
63
|
-
closing.set(TRUE);
|
|
64
|
-
entering.set(FALSE);
|
|
65
|
-
} else if (markEntering) {
|
|
66
|
-
entering.set(TRUE);
|
|
67
|
-
}
|
|
80
|
+
setTransitionLifecycleFlags(animations, isClosing, markEntering);
|
|
68
81
|
|
|
69
82
|
if (!config) {
|
|
70
|
-
|
|
83
|
+
progressAnimating.set(FALSE);
|
|
71
84
|
progress.set(value);
|
|
72
85
|
if (shouldClearEnteringOnFinish) {
|
|
73
86
|
entering.set(FALSE);
|
|
@@ -79,7 +92,7 @@ export const animateToProgress = ({
|
|
|
79
92
|
return;
|
|
80
93
|
}
|
|
81
94
|
|
|
82
|
-
|
|
95
|
+
progressAnimating.set(TRUE); //<-- Do not move this into the callback
|
|
83
96
|
progress.set(
|
|
84
97
|
animate(value, effectiveConfig, (finished) => {
|
|
85
98
|
"worklet";
|
|
@@ -93,21 +106,16 @@ export const animateToProgress = ({
|
|
|
93
106
|
runOnJS(onAnimationFinish)(finished);
|
|
94
107
|
}
|
|
95
108
|
|
|
96
|
-
// Delay
|
|
109
|
+
// Delay clearing progress animation by one frame to ensure final frame is painted
|
|
97
110
|
requestAnimationFrame(() => {
|
|
98
|
-
|
|
111
|
+
progressAnimating.set(FALSE);
|
|
99
112
|
});
|
|
100
113
|
}),
|
|
101
114
|
);
|
|
102
115
|
};
|
|
103
116
|
|
|
104
117
|
if (emitWillAnimate) {
|
|
105
|
-
|
|
106
|
-
closing.set(TRUE);
|
|
107
|
-
entering.set(FALSE);
|
|
108
|
-
} else if (markEntering) {
|
|
109
|
-
entering.set(TRUE);
|
|
110
|
-
}
|
|
118
|
+
setTransitionLifecycleFlags(animations, isClosing, markEntering);
|
|
111
119
|
|
|
112
120
|
willAnimate.set(TRUE);
|
|
113
121
|
requestAnimationFrame(() => {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "react-native-reanimated";
|
|
6
6
|
import { ENTER_RANGE, EXIT_RANGE } from "../../../constants";
|
|
7
7
|
import { getEntry } from "../../../stores/bounds/internals/entries";
|
|
8
|
-
import type {
|
|
8
|
+
import type { BoundsInterpolationProps } from "../../../types/bounds.types";
|
|
9
9
|
import type { BoundId } from "../types/options";
|
|
10
10
|
import type { LinkAccessor } from "./create-link-accessor";
|
|
11
11
|
import { interpolateLinkStyle } from "./styles/interpolate-link-style";
|
|
12
12
|
|
|
13
13
|
type InterpolatorParams = {
|
|
14
|
-
getProps: () =>
|
|
14
|
+
getProps: () => BoundsInterpolationProps;
|
|
15
15
|
getLink: LinkAccessor["getLink"];
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -5,15 +5,15 @@ import type {
|
|
|
5
5
|
ResolvedTransitionPair,
|
|
6
6
|
TagLink,
|
|
7
7
|
} from "../../../stores/bounds/types";
|
|
8
|
-
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
9
8
|
import type {
|
|
9
|
+
BoundsInterpolationProps,
|
|
10
10
|
BoundsLink,
|
|
11
11
|
BoundsLinkComputeOptions,
|
|
12
12
|
} from "../../../types/bounds.types";
|
|
13
13
|
import type { BoundId, BoundsOptionsResult } from "../types/options";
|
|
14
14
|
import { prepareBoundStyles } from "./prepare-bound-styles";
|
|
15
15
|
|
|
16
|
-
type GetProps = () =>
|
|
16
|
+
type GetProps = () => BoundsInterpolationProps;
|
|
17
17
|
|
|
18
18
|
export type LinkAccessor = {
|
|
19
19
|
getMeasured: (tag: BoundId, key?: string) => MeasuredEntry | null;
|