react-native-screen-transitions 3.5.1 → 3.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -1081
- package/lib/commonjs/shared/animation/snap-to.js +4 -6
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +13 -17
- 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 +46 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +3 -147
- 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/helpers/measurement.js +1 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- 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-capture-destination-boundary.js → use-initial-destination-measurement.js} +15 -36
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -32
- 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 +28 -30
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +2 -2
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +3 -5
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
- package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- 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 -8
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
- 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 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +5 -5
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +2 -2
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +28 -7
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +3 -3
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/commonjs/shared/index.js +1 -1
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +31 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +58 -83
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
- 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 +18 -9
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js +182 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js +55 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +161 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +78 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +147 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +52 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +50 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js +146 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js +204 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js +99 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +4 -24
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js +122 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js +89 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +21 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +23 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +33 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +105 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +35 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +13 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +44 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -22
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +18 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +95 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js +126 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +183 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +41 -2
- 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 +5 -0
- 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 +12 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +59 -0
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +15 -98
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +126 -0
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +31 -1
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +22 -0
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js +99 -46
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +6 -6
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/types/ownership.types.js +2 -2
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +49 -34
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/emit.js +22 -0
- package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +34 -59
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +1 -40
- package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +260 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +29 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +49 -147
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -13
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +26 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js +36 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +1 -8
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +4 -6
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +14 -18
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.js +8 -11
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +1 -138
- 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/helpers/measurement.js +0 -6
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +1 -1
- 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-capture-destination-boundary.js → use-initial-destination-measurement.js} +13 -34
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -34
- 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 +28 -30
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +12 -7
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +2 -2
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -5
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
- package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- 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 -8
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +2 -2
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
- 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 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/configs/presets.js +5 -5
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/configs/specs.js +2 -2
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +27 -6
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +3 -3
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +5 -5
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +3 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +26 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +60 -85
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
- 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 +18 -9
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js +177 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js +50 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +157 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +74 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +143 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +48 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +59 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +59 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +45 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +38 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js +135 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js +189 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js +93 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +5 -25
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js +115 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js +82 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +17 -0
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js +124 -0
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +19 -0
- package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +28 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +101 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +30 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +4 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +39 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +128 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +41 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -21
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +14 -0
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +91 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/module/shared/providers/screen/options/helpers.js +119 -0
- package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/module/shared/providers/screen/options/index.js +5 -0
- package/lib/module/shared/providers/screen/options/index.js.map +1 -0
- package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
- package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/options/types.js +4 -0
- package/lib/module/shared/providers/screen/options/types.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +9 -6
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +54 -4
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +178 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +42 -2
- 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 +5 -0
- 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 +12 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +52 -0
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +8 -91
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
- package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +118 -0
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -8
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +31 -1
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +18 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -0
- package/lib/module/shared/typecheck/public-api.typecheck.js +100 -47
- package/lib/module/shared/typecheck/public-api.typecheck.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +25 -3
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +6 -5
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/types/ownership.types.js +2 -2
- package/lib/module/shared/utils/animation/animate-to-progress.js +49 -34
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/animation/emit.js +17 -0
- package/lib/module/shared/utils/animation/emit.js.map +1 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +34 -59
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
- package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -37
- package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +256 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +25 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +26 -124
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +0 -10
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +21 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/resolve-chain-target.js +32 -0
- package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js +0 -6
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -64
- 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/helpers/measurement.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.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-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +6 -3
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +14 -14
- 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.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +6 -3
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +5 -1
- 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 +4 -3
- 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 +3 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts +10 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.d.ts +9 -11
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts +70 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts +20 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +5 -5
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +154 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +19 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
- 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/bounds/helpers/entries.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +16 -0
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +7 -29
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/{registry.d.ts → links.d.ts} +4 -9
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +8 -3
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
- package/lib/typescript/shared/types/animation.types.d.ts +51 -34
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +20 -1
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +70 -5
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +3 -3
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
- package/lib/typescript/shared/types/screen.types.d.ts +40 -5
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
- package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
- 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 +1 -8
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +18 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +0 -3
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
- 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 +2 -38
- package/src/shared/animation/snap-to.ts +8 -6
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -21
- package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -12
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +1 -183
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
- package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +1 -1
- package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +18 -55
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -68
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +54 -46
- package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
- package/src/shared/components/create-boundary-component/types.ts +0 -8
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
- package/src/shared/components/create-transition-aware-component.tsx +24 -10
- package/src/shared/components/native-screen.tsx +2 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +6 -5
- package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +2 -2
- package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
- package/src/shared/components/screen-container/layers/backdrop.tsx +8 -10
- package/src/shared/components/screen-container/layers/content.tsx +2 -2
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +2 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +1 -1
- package/src/shared/configs/presets.ts +5 -5
- package/src/shared/configs/specs.ts +2 -2
- package/src/shared/constants.ts +35 -5
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +2 -5
- package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
- package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
- package/src/shared/hooks/use-stable-callback-value.ts +3 -3
- package/src/shared/index.ts +5 -4
- package/src/shared/providers/register-bounds.provider.tsx +5 -6
- package/src/shared/providers/screen/animation/animation.provider.tsx +4 -0
- package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +47 -0
- package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +222 -56
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +70 -92
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +13 -11
- package/src/shared/providers/screen/animation/types.ts +5 -5
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +29 -10
- package/src/shared/providers/screen/gestures/activation/use-pan-activation.ts +244 -0
- package/src/shared/providers/screen/gestures/activation/use-pinch-activation.ts +72 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.ts +195 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.ts +76 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.ts +177 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.ts +73 -0
- package/src/shared/providers/screen/gestures/behaviors/use-pan-behavior.ts +100 -0
- package/src/shared/providers/screen/gestures/behaviors/use-pinch-behavior.ts +99 -0
- package/src/shared/providers/screen/gestures/builders/use-build-pan-gesture.ts +65 -0
- package/src/shared/providers/screen/gestures/builders/use-build-pinch-gesture.ts +48 -0
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +84 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.ts +33 -48
- package/src/shared/providers/screen/gestures/helpers/gesture-directions.ts +205 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-physics.ts +125 -51
- package/src/shared/providers/screen/gestures/helpers/gesture-reset.ts +158 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.ts +0 -2
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.ts +14 -36
- package/src/shared/providers/screen/gestures/helpers/pan-phases.ts +124 -0
- package/src/shared/providers/screen/gestures/helpers/pinch-phases.ts +98 -0
- package/src/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.ts +23 -0
- package/src/shared/providers/screen/gestures/helpers/runtime-options.ts +159 -0
- package/src/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.ts +1 -1
- package/src/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.ts +27 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +35 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +160 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +37 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.ts +1 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.ts +44 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.ts +180 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.ts +72 -0
- package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +53 -0
- package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.ts +24 -28
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +12 -9
- package/src/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.ts +15 -0
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +93 -0
- package/src/shared/providers/screen/gestures/types.ts +222 -0
- package/src/shared/providers/screen/options/helpers.ts +271 -0
- package/src/shared/providers/screen/options/index.ts +6 -0
- package/src/shared/providers/screen/options/options.provider.tsx +43 -0
- package/src/shared/providers/screen/options/types.ts +35 -0
- package/src/shared/providers/screen/screen-composer.tsx +11 -8
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +4 -4
- package/src/shared/providers/screen/styles/constants.ts +50 -4
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +260 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
- package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +54 -7
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +5 -0
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +10 -0
- package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
- package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +74 -0
- package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
- package/src/shared/stores/bounds/helpers/keys.ts +0 -22
- package/src/shared/stores/bounds/helpers/link.helpers.ts +135 -0
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
- package/src/shared/stores/bounds/index.ts +13 -191
- package/src/shared/stores/bounds/internals/entries.ts +42 -0
- package/src/shared/stores/bounds/internals/groups.ts +99 -3
- package/src/shared/stores/bounds/internals/links.ts +183 -0
- package/src/shared/stores/bounds/internals/resolver.ts +40 -77
- package/src/shared/stores/bounds/internals/state.ts +0 -8
- package/src/shared/stores/bounds/types.ts +8 -3
- package/src/shared/stores/gesture.store.ts +54 -6
- package/src/shared/stores/scroll.store.ts +25 -0
- package/src/shared/typecheck/public-api.typecheck.ts +101 -51
- package/src/shared/types/animation.types.ts +71 -35
- package/src/shared/types/bounds.types.ts +28 -1
- package/src/shared/types/gesture.types.ts +89 -5
- package/src/shared/types/index.ts +6 -0
- package/src/shared/types/ownership.types.ts +2 -2
- package/src/shared/types/screen.types.ts +43 -6
- package/src/shared/utils/animation/animate-to-progress.ts +58 -39
- package/src/shared/utils/animation/emit.ts +18 -0
- package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +159 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +6 -6
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +64 -9
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +5 -3
- package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
- package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
- package/src/shared/utils/bounds/index.ts +28 -53
- package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
- package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -56
- package/src/shared/utils/bounds/navigation/reveal/build.ts +351 -0
- package/src/shared/utils/bounds/navigation/reveal/config.ts +26 -0
- package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
- package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +42 -193
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +0 -14
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
- package/src/shared/utils/bounds/navigation/zoom/math.ts +27 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
- package/src/shared/utils/bounds/types/options.ts +8 -1
- package/src/shared/utils/resolve-chain-target.ts +46 -0
- package/src/shared/utils/resolve-screen-transition-options.ts +0 -13
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
- package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/module/shared/hooks/gestures/types.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
- package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/index.js.map +0 -1
- package/lib/module/shared/providers/gestures/types.js.map +0 -1
- package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
- package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
- package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/module/shared/utils/animation/animate-many.js +0 -27
- package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
- package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
- package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
- package/src/shared/hooks/gestures/types.ts +0 -5
- package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
- package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
- package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
- package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
- package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
- package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
- package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
- package/src/shared/providers/gestures/types.ts +0 -45
- package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
- package/src/shared/stores/bounds/internals/registry.ts +0 -473
- package/src/shared/utils/animation/animate-many.ts +0 -40
- /package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +0 -0
- /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/module/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +0 -0
- /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
- /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
|
@@ -1,598 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { useWindowDimensions } from "react-native";
|
|
3
|
-
import type {
|
|
4
|
-
GestureStateChangeEvent,
|
|
5
|
-
GestureTouchEvent,
|
|
6
|
-
GestureUpdateEvent,
|
|
7
|
-
PanGestureHandlerEventPayload,
|
|
8
|
-
} from "react-native-gesture-handler";
|
|
9
|
-
import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
|
|
10
|
-
import { type SharedValue, useSharedValue } from "react-native-reanimated";
|
|
11
|
-
import { DefaultSnapSpec } from "../../../configs/specs";
|
|
12
|
-
import {
|
|
13
|
-
DEFAULT_GESTURE_ACTIVATION_AREA,
|
|
14
|
-
DEFAULT_GESTURE_DIRECTION,
|
|
15
|
-
DEFAULT_GESTURE_DRIVES_PROGRESS,
|
|
16
|
-
DEFAULT_GESTURE_RELEASE_VELOCITY_MAX,
|
|
17
|
-
DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE,
|
|
18
|
-
DEFAULT_GESTURE_SNAP_LOCKED,
|
|
19
|
-
DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT,
|
|
20
|
-
DEFAULT_GESTURE_VELOCITY_IMPACT,
|
|
21
|
-
EPSILON,
|
|
22
|
-
FALSE,
|
|
23
|
-
TRUE,
|
|
24
|
-
} from "../../../constants";
|
|
25
|
-
import useStableCallbackValue from "../../../hooks/use-stable-callback-value";
|
|
26
|
-
import { AnimationStore } from "../../../stores/animation.store";
|
|
27
|
-
import { GestureStore } from "../../../stores/gesture.store";
|
|
28
|
-
import { SystemStore } from "../../../stores/system.store";
|
|
29
|
-
import { GestureOffsetState } from "../../../types/gesture.types";
|
|
30
|
-
import type {
|
|
31
|
-
ClaimedDirections,
|
|
32
|
-
Direction,
|
|
33
|
-
DirectionOwnership,
|
|
34
|
-
} from "../../../types/ownership.types";
|
|
35
|
-
import { animateToProgress } from "../../../utils/animation/animate-to-progress";
|
|
36
|
-
import type { EffectiveSnapPointsResult } from "../../../utils/gesture/validate-snap-points";
|
|
37
|
-
import { resolveSheetScrollGestureBehavior } from "../../../utils/resolve-screen-transition-options";
|
|
38
|
-
import { useDescriptors } from "../../screen/descriptors";
|
|
39
|
-
import {
|
|
40
|
-
applyOffsetRules,
|
|
41
|
-
checkScrollBoundary,
|
|
42
|
-
} from "../helpers/gesture-activation";
|
|
43
|
-
import { shouldDeferToChildClaim } from "../helpers/gesture-claims";
|
|
44
|
-
import {
|
|
45
|
-
clampVelocity,
|
|
46
|
-
getSnapAxis,
|
|
47
|
-
isExpandGestureForDirection,
|
|
48
|
-
resolveGestureDirections,
|
|
49
|
-
warnOnSnapDirectionArray,
|
|
50
|
-
} from "../helpers/gesture-directions";
|
|
51
|
-
import {
|
|
52
|
-
calculateProgressSpringVelocity,
|
|
53
|
-
mapGestureToProgress,
|
|
54
|
-
normalizeGestureTranslation,
|
|
55
|
-
normalizeVelocity,
|
|
56
|
-
} from "../helpers/gesture-physics";
|
|
57
|
-
import { resetGestureValues } from "../helpers/gesture-reset";
|
|
58
|
-
import {
|
|
59
|
-
findNearestSnapPoint,
|
|
60
|
-
resolveRuntimeSnapPoints,
|
|
61
|
-
} from "../helpers/gesture-snap-points";
|
|
62
|
-
import {
|
|
63
|
-
determineDismissal,
|
|
64
|
-
determineSnapTarget,
|
|
65
|
-
} from "../helpers/gesture-targets";
|
|
66
|
-
import type {
|
|
67
|
-
DirectionClaimMap,
|
|
68
|
-
GestureContextType,
|
|
69
|
-
ScrollConfig,
|
|
70
|
-
} from "../types";
|
|
71
|
-
|
|
72
|
-
interface UseScreenGestureHandlersProps {
|
|
73
|
-
scrollConfig: SharedValue<ScrollConfig | null>;
|
|
74
|
-
ancestorIsDismissing?: SharedValue<number> | null;
|
|
75
|
-
canDismiss: boolean;
|
|
76
|
-
handleDismiss: () => void;
|
|
77
|
-
ownershipStatus: DirectionOwnership;
|
|
78
|
-
claimedDirections: ClaimedDirections;
|
|
79
|
-
ancestorContext: GestureContextType | null | undefined;
|
|
80
|
-
childDirectionClaims: SharedValue<DirectionClaimMap>;
|
|
81
|
-
effectiveSnapPoints: EffectiveSnapPointsResult;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Gesture Handlers for Screen Dismissal and Snap Navigation
|
|
86
|
-
*
|
|
87
|
-
* ## Mental Model
|
|
88
|
-
*
|
|
89
|
-
* This hook implements the touch handling logic for the gesture ownership system.
|
|
90
|
-
* Each screen has a pan gesture handler that runs through this decision flow:
|
|
91
|
-
*
|
|
92
|
-
* ```
|
|
93
|
-
* onTouchesMove (for each touch move event):
|
|
94
|
-
* 1. ANCESTOR CHECK: If ancestor is dismissing → fail (avoid racing)
|
|
95
|
-
* 2. DIRECTION DETECTION: Determine swipe direction from touch delta
|
|
96
|
-
* 3. OWNERSHIP CHECK: Do we own this direction? (ownershipStatus)
|
|
97
|
-
* - "self" → continue
|
|
98
|
-
* - "ancestor" or null → fail (let it bubble up)
|
|
99
|
-
* 4. CHILD CLAIM CHECK: Has a child pre-registered a claim for this direction?
|
|
100
|
-
* - Yes → fail immediately (child shadows us, no delay)
|
|
101
|
-
* - No → continue
|
|
102
|
-
* 5. OFFSET THRESHOLD: Wait for sufficient touch movement
|
|
103
|
-
* 6. SCROLLVIEW CHECK: If touch is on ScrollView, is it at boundary?
|
|
104
|
-
* 7. EXPAND CHECK (snap sheets): If expanding from nested scroll content, does sheetScrollGestureBehavior allow it?
|
|
105
|
-
* 8. ACTIVATE!
|
|
106
|
-
* ```
|
|
107
|
-
*
|
|
108
|
-
* ## Key Concepts
|
|
109
|
-
*
|
|
110
|
-
* **Ownership**: Pre-computed at render time. "self" means this screen handles
|
|
111
|
-
* the direction, "ancestor" means bubble up, null means no handler exists.
|
|
112
|
-
*
|
|
113
|
-
* **Child Claims**: Registered at mount time via useEffect in gestures.provider.tsx.
|
|
114
|
-
* When a child shadows our direction, it pre-registers a claim so we know to defer.
|
|
115
|
-
* IMPORTANT: This check happens BEFORE offset threshold to ensure the parent fails
|
|
116
|
-
* immediately when shadowed, avoiding any perceptible delay.
|
|
117
|
-
* ALSO: Claims from dismissing children are ignored, allowing the parent to handle
|
|
118
|
-
* new gestures while the child is animating out.
|
|
119
|
-
*
|
|
120
|
-
* **ScrollView Boundaries**: Per spec, a ScrollView must be at its boundary before
|
|
121
|
-
* yielding to gestures. The boundary depends on sheet type:
|
|
122
|
-
* - Bottom sheet (vertical): scrollY = 0 (top)
|
|
123
|
-
* - Top sheet (vertical-inverted): scrollY >= maxY (bottom)
|
|
124
|
-
*
|
|
125
|
-
* **Snap Points**: Sheets with snapPoints claim BOTH directions on their axis
|
|
126
|
-
* (e.g., vertical sheet claims vertical AND vertical-inverted). This allows
|
|
127
|
-
* expand (drag up) and collapse/dismiss (drag down) gestures.
|
|
128
|
-
*/
|
|
129
|
-
export const useHandlers = ({
|
|
130
|
-
scrollConfig,
|
|
131
|
-
ancestorIsDismissing,
|
|
132
|
-
canDismiss,
|
|
133
|
-
handleDismiss,
|
|
134
|
-
ownershipStatus,
|
|
135
|
-
childDirectionClaims,
|
|
136
|
-
effectiveSnapPoints,
|
|
137
|
-
}: UseScreenGestureHandlersProps) => {
|
|
138
|
-
const { current } = useDescriptors();
|
|
139
|
-
|
|
140
|
-
const {
|
|
141
|
-
gestureDirection = DEFAULT_GESTURE_DIRECTION,
|
|
142
|
-
gestureDrivesProgress = DEFAULT_GESTURE_DRIVES_PROGRESS,
|
|
143
|
-
gestureVelocityImpact = DEFAULT_GESTURE_VELOCITY_IMPACT,
|
|
144
|
-
snapVelocityImpact = DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT,
|
|
145
|
-
gestureReleaseVelocityScale = DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE,
|
|
146
|
-
gestureReleaseVelocityMax = DEFAULT_GESTURE_RELEASE_VELOCITY_MAX,
|
|
147
|
-
gestureActivationArea = DEFAULT_GESTURE_ACTIVATION_AREA,
|
|
148
|
-
gestureSnapLocked = DEFAULT_GESTURE_SNAP_LOCKED,
|
|
149
|
-
gestureResponseDistance,
|
|
150
|
-
transitionSpec,
|
|
151
|
-
} = current.options;
|
|
152
|
-
const sheetScrollGestureBehavior = resolveSheetScrollGestureBehavior(
|
|
153
|
-
current.options,
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
const dimensions = useWindowDimensions();
|
|
157
|
-
const routeKey = current.route.key;
|
|
158
|
-
const animations = AnimationStore.getBag(routeKey);
|
|
159
|
-
const gestureAnimationValues = GestureStore.getBag(routeKey);
|
|
160
|
-
const targetProgressValue = SystemStore.getValue(routeKey, "targetProgress");
|
|
161
|
-
const {
|
|
162
|
-
hasSnapPoints,
|
|
163
|
-
hasAutoSnapPoint,
|
|
164
|
-
snapPoints,
|
|
165
|
-
minSnapPoint,
|
|
166
|
-
maxSnapPoint,
|
|
167
|
-
} = effectiveSnapPoints;
|
|
168
|
-
|
|
169
|
-
// Read the measured "auto" snap point reactively inside worklets.
|
|
170
|
-
const resolvedAutoSnapPointValue = SystemStore.getValue(
|
|
171
|
-
routeKey,
|
|
172
|
-
"resolvedAutoSnapPoint",
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
const directions = useMemo(() => {
|
|
176
|
-
warnOnSnapDirectionArray({ gestureDirection, hasSnapPoints });
|
|
177
|
-
return resolveGestureDirections({ gestureDirection, hasSnapPoints });
|
|
178
|
-
}, [gestureDirection, hasSnapPoints]);
|
|
179
|
-
|
|
180
|
-
const snapAxis = getSnapAxis(directions);
|
|
181
|
-
|
|
182
|
-
const initialTouch = useSharedValue({ x: 0, y: 0 });
|
|
183
|
-
const gestureOffsetState = useSharedValue<GestureOffsetState>(
|
|
184
|
-
GestureOffsetState.PENDING,
|
|
185
|
-
);
|
|
186
|
-
const gestureStartProgress = useSharedValue(1);
|
|
187
|
-
const lockedSnapPoint = useSharedValue(maxSnapPoint);
|
|
188
|
-
|
|
189
|
-
const onTouchesDown = useStableCallbackValue((e: GestureTouchEvent) => {
|
|
190
|
-
"worklet";
|
|
191
|
-
const firstTouch = e.changedTouches[0];
|
|
192
|
-
initialTouch.value = { x: firstTouch.x, y: firstTouch.y };
|
|
193
|
-
gestureOffsetState.value = GestureOffsetState.PENDING;
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
const onTouchesMove = useStableCallbackValue(
|
|
197
|
-
(e: GestureTouchEvent, manager: GestureStateManagerType) => {
|
|
198
|
-
"worklet";
|
|
199
|
-
|
|
200
|
-
// Step 1: Ancestor dismissing check
|
|
201
|
-
if (ancestorIsDismissing?.value) {
|
|
202
|
-
gestureOffsetState.value = GestureOffsetState.FAILED;
|
|
203
|
-
manager.fail();
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const touch = e.changedTouches[0];
|
|
208
|
-
|
|
209
|
-
const { isSwipingDown, isSwipingUp, isSwipingRight, isSwipingLeft } =
|
|
210
|
-
applyOffsetRules({
|
|
211
|
-
touch,
|
|
212
|
-
directions,
|
|
213
|
-
manager,
|
|
214
|
-
dimensions,
|
|
215
|
-
gestureOffsetState,
|
|
216
|
-
initialTouch: initialTouch.value,
|
|
217
|
-
activationArea: gestureActivationArea,
|
|
218
|
-
responseDistance: gestureResponseDistance,
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
if (gestureOffsetState.value === GestureOffsetState.FAILED) {
|
|
222
|
-
manager.fail();
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (gestureAnimationValues.dragging?.value) {
|
|
227
|
-
manager.activate();
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Step 2: Direction detection
|
|
232
|
-
let swipeDirection: Direction | null = null;
|
|
233
|
-
if (isSwipingDown) swipeDirection = "vertical";
|
|
234
|
-
else if (isSwipingUp) swipeDirection = "vertical-inverted";
|
|
235
|
-
else if (isSwipingRight) swipeDirection = "horizontal";
|
|
236
|
-
else if (isSwipingLeft) swipeDirection = "horizontal-inverted";
|
|
237
|
-
|
|
238
|
-
if (!swipeDirection) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// Step 3: Ownership check - fail if we don't own this direction
|
|
243
|
-
const ownership = ownershipStatus[swipeDirection];
|
|
244
|
-
if (ownership !== "self") {
|
|
245
|
-
manager.fail();
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Step 4: Child claim check - fail EARLY if a child shadows this direction
|
|
250
|
-
// This MUST happen before offset threshold to avoid delay when shadowing
|
|
251
|
-
const childClaim = childDirectionClaims.value[swipeDirection];
|
|
252
|
-
if (shouldDeferToChildClaim(childClaim, routeKey)) {
|
|
253
|
-
manager.fail();
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (gestureOffsetState.value !== GestureOffsetState.PASSED) {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
if (
|
|
262
|
-
hasSnapPoints &&
|
|
263
|
-
gestureSnapLocked &&
|
|
264
|
-
isExpandGestureForDirection(
|
|
265
|
-
swipeDirection,
|
|
266
|
-
snapAxis,
|
|
267
|
-
directions.snapAxisInverted ?? false,
|
|
268
|
-
)
|
|
269
|
-
) {
|
|
270
|
-
manager.fail();
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// Snap sheets can interrupt their own animation; non-snap cannot
|
|
275
|
-
if (!hasSnapPoints && gestureAnimationValues.dismissing?.value) {
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// Step 6: ScrollView boundary check
|
|
280
|
-
const scrollCfg = scrollConfig.value;
|
|
281
|
-
const isTouchingScrollView = scrollCfg?.isTouched ?? false;
|
|
282
|
-
|
|
283
|
-
if (isTouchingScrollView) {
|
|
284
|
-
const atBoundary = checkScrollBoundary(
|
|
285
|
-
scrollCfg,
|
|
286
|
-
swipeDirection,
|
|
287
|
-
hasSnapPoints ? directions.snapAxisInverted : undefined,
|
|
288
|
-
);
|
|
289
|
-
|
|
290
|
-
if (!atBoundary) {
|
|
291
|
-
manager.fail();
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// Step 7: Expand check for snap sheets
|
|
296
|
-
if (hasSnapPoints) {
|
|
297
|
-
if (
|
|
298
|
-
isExpandGestureForDirection(
|
|
299
|
-
swipeDirection,
|
|
300
|
-
snapAxis,
|
|
301
|
-
directions.snapAxisInverted ?? false,
|
|
302
|
-
)
|
|
303
|
-
) {
|
|
304
|
-
if (sheetScrollGestureBehavior === "collapse-only") {
|
|
305
|
-
manager.fail();
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
const { resolvedMaxSnapPoint } = resolveRuntimeSnapPoints({
|
|
310
|
-
snapPoints,
|
|
311
|
-
hasAutoSnapPoint,
|
|
312
|
-
resolvedAutoSnapPoint: resolvedAutoSnapPointValue.value,
|
|
313
|
-
minSnapPoint,
|
|
314
|
-
maxSnapPoint,
|
|
315
|
-
canDismiss,
|
|
316
|
-
});
|
|
317
|
-
const effectiveMaxSnapPoint = gestureSnapLocked
|
|
318
|
-
? lockedSnapPoint.value
|
|
319
|
-
: resolvedMaxSnapPoint;
|
|
320
|
-
|
|
321
|
-
const canExpandMore =
|
|
322
|
-
animations.progress.value < effectiveMaxSnapPoint - EPSILON &&
|
|
323
|
-
targetProgressValue.value < effectiveMaxSnapPoint - EPSILON;
|
|
324
|
-
|
|
325
|
-
if (!canExpandMore) {
|
|
326
|
-
manager.fail();
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
gestureAnimationValues.direction.value = swipeDirection;
|
|
334
|
-
manager.activate();
|
|
335
|
-
},
|
|
336
|
-
);
|
|
337
|
-
|
|
338
|
-
const onStart = useStableCallbackValue(() => {
|
|
339
|
-
"worklet";
|
|
340
|
-
const { resolvedSnapPoints, resolvedMaxSnapPoint } =
|
|
341
|
-
resolveRuntimeSnapPoints({
|
|
342
|
-
snapPoints,
|
|
343
|
-
hasAutoSnapPoint,
|
|
344
|
-
resolvedAutoSnapPoint: resolvedAutoSnapPointValue.value,
|
|
345
|
-
minSnapPoint,
|
|
346
|
-
maxSnapPoint,
|
|
347
|
-
canDismiss,
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
if (hasSnapPoints && gestureSnapLocked) {
|
|
351
|
-
lockedSnapPoint.value = findNearestSnapPoint(
|
|
352
|
-
animations.progress.value,
|
|
353
|
-
resolvedSnapPoints,
|
|
354
|
-
);
|
|
355
|
-
} else {
|
|
356
|
-
lockedSnapPoint.value = resolvedMaxSnapPoint;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
animations.willAnimate.value = TRUE;
|
|
360
|
-
gestureAnimationValues.dragging.value = TRUE;
|
|
361
|
-
gestureAnimationValues.dismissing.value = FALSE;
|
|
362
|
-
gestureStartProgress.value = animations.progress.value;
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
const onUpdate = useStableCallbackValue(
|
|
366
|
-
(event: GestureUpdateEvent<PanGestureHandlerEventPayload>) => {
|
|
367
|
-
"worklet";
|
|
368
|
-
|
|
369
|
-
if (animations.willAnimate.value) {
|
|
370
|
-
animations.willAnimate.value = FALSE;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
const { translationX, translationY } = event;
|
|
374
|
-
const { width, height } = dimensions;
|
|
375
|
-
|
|
376
|
-
gestureAnimationValues.x.value = translationX;
|
|
377
|
-
gestureAnimationValues.y.value = translationY;
|
|
378
|
-
gestureAnimationValues.normX.value = normalizeGestureTranslation(
|
|
379
|
-
translationX,
|
|
380
|
-
width,
|
|
381
|
-
);
|
|
382
|
-
gestureAnimationValues.normY.value = normalizeGestureTranslation(
|
|
383
|
-
translationY,
|
|
384
|
-
height,
|
|
385
|
-
);
|
|
386
|
-
|
|
387
|
-
if (hasSnapPoints && gestureDrivesProgress) {
|
|
388
|
-
const isHorizontal = snapAxis === "horizontal";
|
|
389
|
-
const translation = isHorizontal ? translationX : translationY;
|
|
390
|
-
const dimension = isHorizontal ? width : height;
|
|
391
|
-
|
|
392
|
-
// Map translation to progress: positive = dismiss, negative = expand
|
|
393
|
-
const baseSign = -1;
|
|
394
|
-
const sign = directions.snapAxisInverted ? -baseSign : baseSign;
|
|
395
|
-
const progressDelta = (sign * translation) / dimension;
|
|
396
|
-
|
|
397
|
-
const { resolvedMinSnapPoint, resolvedMaxSnapPoint } =
|
|
398
|
-
resolveRuntimeSnapPoints({
|
|
399
|
-
snapPoints,
|
|
400
|
-
hasAutoSnapPoint,
|
|
401
|
-
resolvedAutoSnapPoint: resolvedAutoSnapPointValue.value,
|
|
402
|
-
minSnapPoint,
|
|
403
|
-
maxSnapPoint,
|
|
404
|
-
canDismiss,
|
|
405
|
-
});
|
|
406
|
-
|
|
407
|
-
const maxProgressForGesture = gestureSnapLocked
|
|
408
|
-
? lockedSnapPoint.value
|
|
409
|
-
: resolvedMaxSnapPoint;
|
|
410
|
-
const minProgressForGesture = gestureSnapLocked
|
|
411
|
-
? canDismiss
|
|
412
|
-
? 0
|
|
413
|
-
: lockedSnapPoint.value
|
|
414
|
-
: resolvedMinSnapPoint;
|
|
415
|
-
|
|
416
|
-
animations.progress.value = Math.max(
|
|
417
|
-
minProgressForGesture,
|
|
418
|
-
Math.min(
|
|
419
|
-
maxProgressForGesture,
|
|
420
|
-
gestureStartProgress.value + progressDelta,
|
|
421
|
-
),
|
|
422
|
-
);
|
|
423
|
-
} else if (gestureDrivesProgress) {
|
|
424
|
-
let maxProgress = 0;
|
|
425
|
-
|
|
426
|
-
// Horizontal swipe right (positive X)
|
|
427
|
-
if (directions.horizontal && translationX > 0) {
|
|
428
|
-
const progress = mapGestureToProgress(translationX, width);
|
|
429
|
-
maxProgress = Math.max(maxProgress, progress);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
// Horizontal inverted swipe left (negative X)
|
|
433
|
-
if (directions.horizontalInverted && translationX < 0) {
|
|
434
|
-
const progress = mapGestureToProgress(-translationX, width);
|
|
435
|
-
maxProgress = Math.max(maxProgress, progress);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
// Vertical swipe down (positive Y)
|
|
439
|
-
if (directions.vertical && translationY > 0) {
|
|
440
|
-
const progress = mapGestureToProgress(translationY, height);
|
|
441
|
-
maxProgress = Math.max(maxProgress, progress);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
// Vertical inverted swipe up (negative Y)
|
|
445
|
-
if (directions.verticalInverted && translationY < 0) {
|
|
446
|
-
const progress = mapGestureToProgress(-translationY, height);
|
|
447
|
-
maxProgress = Math.max(maxProgress, progress);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
animations.progress.value = Math.max(
|
|
451
|
-
0,
|
|
452
|
-
Math.min(1, gestureStartProgress.value - maxProgress),
|
|
453
|
-
);
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
);
|
|
457
|
-
|
|
458
|
-
const onEnd = useStableCallbackValue(
|
|
459
|
-
(event: GestureStateChangeEvent<PanGestureHandlerEventPayload>) => {
|
|
460
|
-
"worklet";
|
|
461
|
-
|
|
462
|
-
animations.willAnimate.value = FALSE;
|
|
463
|
-
|
|
464
|
-
if (hasSnapPoints) {
|
|
465
|
-
const isHorizontal = snapAxis === "horizontal";
|
|
466
|
-
const axisVelocity = isHorizontal ? event.velocityX : event.velocityY;
|
|
467
|
-
const axisDimension = isHorizontal
|
|
468
|
-
? dimensions.width
|
|
469
|
-
: dimensions.height;
|
|
470
|
-
|
|
471
|
-
// Normalize velocity: positive = toward dismiss
|
|
472
|
-
const snapVelocity = directions.snapAxisInverted
|
|
473
|
-
? -axisVelocity
|
|
474
|
-
: axisVelocity;
|
|
475
|
-
|
|
476
|
-
const { resolvedSnapPoints } = resolveRuntimeSnapPoints({
|
|
477
|
-
snapPoints,
|
|
478
|
-
hasAutoSnapPoint,
|
|
479
|
-
resolvedAutoSnapPoint: resolvedAutoSnapPointValue.value,
|
|
480
|
-
minSnapPoint,
|
|
481
|
-
maxSnapPoint,
|
|
482
|
-
canDismiss,
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
const result = determineSnapTarget({
|
|
486
|
-
currentProgress: animations.progress.value,
|
|
487
|
-
snapPoints: gestureSnapLocked
|
|
488
|
-
? [lockedSnapPoint.value]
|
|
489
|
-
: resolvedSnapPoints,
|
|
490
|
-
velocity: snapVelocity,
|
|
491
|
-
dimension: axisDimension,
|
|
492
|
-
velocityFactor: snapVelocityImpact,
|
|
493
|
-
canDismiss: canDismiss,
|
|
494
|
-
});
|
|
495
|
-
|
|
496
|
-
const shouldDismiss = result.shouldDismiss;
|
|
497
|
-
const targetProgress = result.targetProgress;
|
|
498
|
-
const isSnapping = !shouldDismiss;
|
|
499
|
-
|
|
500
|
-
const spec = shouldDismiss
|
|
501
|
-
? transitionSpec?.close
|
|
502
|
-
: transitionSpec?.open;
|
|
503
|
-
|
|
504
|
-
const effectiveSpec = isSnapping
|
|
505
|
-
? {
|
|
506
|
-
open: transitionSpec?.expand ?? DefaultSnapSpec,
|
|
507
|
-
close: transitionSpec?.collapse ?? DefaultSnapSpec,
|
|
508
|
-
}
|
|
509
|
-
: transitionSpec;
|
|
510
|
-
|
|
511
|
-
resetGestureValues({
|
|
512
|
-
spec,
|
|
513
|
-
gestures: gestureAnimationValues,
|
|
514
|
-
shouldDismiss,
|
|
515
|
-
event,
|
|
516
|
-
dimensions,
|
|
517
|
-
gestureReleaseVelocityScale,
|
|
518
|
-
gestureReleaseVelocityMax,
|
|
519
|
-
});
|
|
520
|
-
|
|
521
|
-
const snapDirection = Math.sign(
|
|
522
|
-
targetProgress - animations.progress.value,
|
|
523
|
-
);
|
|
524
|
-
|
|
525
|
-
const normalizedAxisVelocity = Math.abs(
|
|
526
|
-
normalizeVelocity(
|
|
527
|
-
axisVelocity,
|
|
528
|
-
axisDimension,
|
|
529
|
-
gestureReleaseVelocityMax,
|
|
530
|
-
),
|
|
531
|
-
);
|
|
532
|
-
|
|
533
|
-
const signedSnapVelocity =
|
|
534
|
-
snapDirection * normalizedAxisVelocity * gestureReleaseVelocityScale;
|
|
535
|
-
|
|
536
|
-
const initialVelocity =
|
|
537
|
-
snapDirection === 0
|
|
538
|
-
? 0
|
|
539
|
-
: clampVelocity(signedSnapVelocity, gestureReleaseVelocityMax);
|
|
540
|
-
|
|
541
|
-
animateToProgress({
|
|
542
|
-
target: targetProgress,
|
|
543
|
-
onAnimationFinish: shouldDismiss ? handleDismiss : undefined,
|
|
544
|
-
spec: effectiveSpec,
|
|
545
|
-
animations,
|
|
546
|
-
targetProgress: targetProgressValue,
|
|
547
|
-
emitWillAnimate: false,
|
|
548
|
-
initialVelocity,
|
|
549
|
-
});
|
|
550
|
-
} else {
|
|
551
|
-
const result = determineDismissal({
|
|
552
|
-
event,
|
|
553
|
-
directions,
|
|
554
|
-
dimensions,
|
|
555
|
-
gestureVelocityImpact,
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
const shouldDismiss = result.shouldDismiss;
|
|
559
|
-
const targetProgress = shouldDismiss ? 0 : 1;
|
|
560
|
-
|
|
561
|
-
resetGestureValues({
|
|
562
|
-
spec: shouldDismiss ? transitionSpec?.close : transitionSpec?.open,
|
|
563
|
-
gestures: gestureAnimationValues,
|
|
564
|
-
shouldDismiss,
|
|
565
|
-
event,
|
|
566
|
-
dimensions,
|
|
567
|
-
gestureReleaseVelocityScale,
|
|
568
|
-
gestureReleaseVelocityMax,
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
const initialVelocity = calculateProgressSpringVelocity({
|
|
572
|
-
animations,
|
|
573
|
-
shouldDismiss,
|
|
574
|
-
event,
|
|
575
|
-
dimensions,
|
|
576
|
-
directions,
|
|
577
|
-
});
|
|
578
|
-
|
|
579
|
-
const scaledInitialVelocity = clampVelocity(
|
|
580
|
-
initialVelocity * gestureReleaseVelocityScale,
|
|
581
|
-
gestureReleaseVelocityMax,
|
|
582
|
-
);
|
|
583
|
-
|
|
584
|
-
animateToProgress({
|
|
585
|
-
target: targetProgress,
|
|
586
|
-
onAnimationFinish: shouldDismiss ? handleDismiss : undefined,
|
|
587
|
-
spec: transitionSpec,
|
|
588
|
-
animations,
|
|
589
|
-
targetProgress: targetProgressValue,
|
|
590
|
-
emitWillAnimate: false,
|
|
591
|
-
initialVelocity: scaledInitialVelocity,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
);
|
|
596
|
-
|
|
597
|
-
return { onTouchesDown, onTouchesMove, onStart, onUpdate, onEnd };
|
|
598
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { DirectionClaim } from "../types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Determines if the parent gesture should defer to a child's claim on a direction.
|
|
5
|
-
*
|
|
6
|
-
* Returns true if gesture should FAIL (defer to child).
|
|
7
|
-
* Returns false if gesture should CONTINUE.
|
|
8
|
-
*
|
|
9
|
-
* Rules:
|
|
10
|
-
* - No claim exists → don't defer (parent handles it)
|
|
11
|
-
* - Claim is from self → don't defer (it's our own claim)
|
|
12
|
-
* - Child is dismissing → don't defer (parent can take over)
|
|
13
|
-
* - Otherwise → defer to child
|
|
14
|
-
*/
|
|
15
|
-
export function shouldDeferToChildClaim(
|
|
16
|
-
childClaim: DirectionClaim,
|
|
17
|
-
selfRouteKey: string,
|
|
18
|
-
): boolean {
|
|
19
|
-
"worklet";
|
|
20
|
-
if (!childClaim) return false;
|
|
21
|
-
if (childClaim.routeKey === selfRouteKey) return false;
|
|
22
|
-
if (childClaim.isDismissing.value) return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|