react-native-screen-transitions 3.5.2 → 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 +1 -1
- 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 +5 -5
- 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.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 +1 -1
- 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 +5 -5
- 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.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.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/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/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/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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +5 -5
- 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 +0 -2
- 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,97 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
GestureDirection,
|
|
3
|
-
GestureDirections,
|
|
4
|
-
} from "../../../types/gesture.types";
|
|
5
|
-
import type { Direction } from "../../../types/ownership.types";
|
|
6
|
-
import { logger } from "../../../utils/logger";
|
|
7
|
-
|
|
8
|
-
interface ResolveGestureDirectionsProps {
|
|
9
|
-
gestureDirection: GestureDirection | GestureDirection[];
|
|
10
|
-
hasSnapPoints: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const warnOnSnapDirectionArray = ({
|
|
14
|
-
gestureDirection,
|
|
15
|
-
hasSnapPoints,
|
|
16
|
-
}: ResolveGestureDirectionsProps) => {
|
|
17
|
-
if (!hasSnapPoints || !Array.isArray(gestureDirection)) return;
|
|
18
|
-
|
|
19
|
-
logger.warn(
|
|
20
|
-
`gestureDirection array is not supported with snapPoints. ` +
|
|
21
|
-
`Only the first direction "${gestureDirection[0]}" will be used. ` +
|
|
22
|
-
`Snap points define a single axis of movement, so only one gesture direction is needed.`,
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const resolveGestureDirections = ({
|
|
27
|
-
gestureDirection,
|
|
28
|
-
hasSnapPoints,
|
|
29
|
-
}: ResolveGestureDirectionsProps): GestureDirections => {
|
|
30
|
-
const effectiveDirection = hasSnapPoints
|
|
31
|
-
? Array.isArray(gestureDirection)
|
|
32
|
-
? gestureDirection[0]
|
|
33
|
-
: gestureDirection
|
|
34
|
-
: gestureDirection;
|
|
35
|
-
|
|
36
|
-
const directionsArray = Array.isArray(effectiveDirection)
|
|
37
|
-
? effectiveDirection
|
|
38
|
-
: [effectiveDirection];
|
|
39
|
-
|
|
40
|
-
const isBidirectional = directionsArray.includes("bidirectional");
|
|
41
|
-
|
|
42
|
-
const hasHorizontalDirection =
|
|
43
|
-
directionsArray.includes("horizontal") ||
|
|
44
|
-
directionsArray.includes("horizontal-inverted");
|
|
45
|
-
|
|
46
|
-
const isSnapAxisInverted = hasHorizontalDirection
|
|
47
|
-
? directionsArray.includes("horizontal-inverted") &&
|
|
48
|
-
!directionsArray.includes("horizontal")
|
|
49
|
-
: directionsArray.includes("vertical-inverted") &&
|
|
50
|
-
!directionsArray.includes("vertical");
|
|
51
|
-
|
|
52
|
-
const enableBothVertical =
|
|
53
|
-
isBidirectional || (hasSnapPoints && !hasHorizontalDirection);
|
|
54
|
-
const enableBothHorizontal =
|
|
55
|
-
isBidirectional || (hasSnapPoints && hasHorizontalDirection);
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
vertical: directionsArray.includes("vertical") || enableBothVertical,
|
|
59
|
-
verticalInverted:
|
|
60
|
-
directionsArray.includes("vertical-inverted") || enableBothVertical,
|
|
61
|
-
horizontal: directionsArray.includes("horizontal") || enableBothHorizontal,
|
|
62
|
-
horizontalInverted:
|
|
63
|
-
directionsArray.includes("horizontal-inverted") || enableBothHorizontal,
|
|
64
|
-
snapAxisInverted: hasSnapPoints && isSnapAxisInverted,
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const getSnapAxis = (
|
|
69
|
-
directions: GestureDirections,
|
|
70
|
-
): "horizontal" | "vertical" => {
|
|
71
|
-
return directions.horizontal || directions.horizontalInverted
|
|
72
|
-
? "horizontal"
|
|
73
|
-
: "vertical";
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const isExpandGestureForDirection = (
|
|
77
|
-
swipeDirection: Direction,
|
|
78
|
-
snapAxis: "horizontal" | "vertical",
|
|
79
|
-
snapAxisInverted: boolean,
|
|
80
|
-
): boolean => {
|
|
81
|
-
"worklet";
|
|
82
|
-
if (snapAxis === "horizontal") {
|
|
83
|
-
return snapAxisInverted
|
|
84
|
-
? swipeDirection === "horizontal"
|
|
85
|
-
: swipeDirection === "horizontal-inverted";
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return snapAxisInverted
|
|
89
|
-
? swipeDirection === "vertical"
|
|
90
|
-
: swipeDirection === "vertical-inverted";
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export const clampVelocity = (value: number, maxMagnitude: number) => {
|
|
94
|
-
"worklet";
|
|
95
|
-
const max = Math.max(0, Math.abs(maxMagnitude));
|
|
96
|
-
return Math.max(-max, Math.min(max, value));
|
|
97
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
GestureStateChangeEvent,
|
|
3
|
-
PanGestureHandlerEventPayload,
|
|
4
|
-
} from "react-native-gesture-handler";
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_GESTURE_RELEASE_VELOCITY_MAX,
|
|
7
|
-
DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE,
|
|
8
|
-
FALSE,
|
|
9
|
-
TRUE,
|
|
10
|
-
} from "../../../constants";
|
|
11
|
-
import type { GestureStoreMap } from "../../../stores/gesture.store";
|
|
12
|
-
import type { AnimationConfig } from "../../../types/animation.types";
|
|
13
|
-
import { animateMany } from "../../../utils/animation/animate-many";
|
|
14
|
-
import {
|
|
15
|
-
calculateRestoreVelocityTowardZero,
|
|
16
|
-
normalizeVelocity,
|
|
17
|
-
} from "./gesture-physics";
|
|
18
|
-
|
|
19
|
-
interface ResetGestureValuesProps {
|
|
20
|
-
spec?: AnimationConfig;
|
|
21
|
-
gestures: GestureStoreMap;
|
|
22
|
-
shouldDismiss: boolean;
|
|
23
|
-
event: GestureStateChangeEvent<PanGestureHandlerEventPayload>;
|
|
24
|
-
dimensions: { width: number; height: number };
|
|
25
|
-
gestureReleaseVelocityScale?: number;
|
|
26
|
-
gestureReleaseVelocityMax?: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const resetGestureValues = ({
|
|
30
|
-
spec,
|
|
31
|
-
gestures,
|
|
32
|
-
shouldDismiss,
|
|
33
|
-
event,
|
|
34
|
-
dimensions,
|
|
35
|
-
gestureReleaseVelocityScale,
|
|
36
|
-
gestureReleaseVelocityMax,
|
|
37
|
-
}: ResetGestureValuesProps) => {
|
|
38
|
-
"worklet";
|
|
39
|
-
const resolvedGestureReleaseVelocityScale =
|
|
40
|
-
gestureReleaseVelocityScale ?? DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE;
|
|
41
|
-
const resolvedGestureReleaseVelocityMax =
|
|
42
|
-
gestureReleaseVelocityMax ?? DEFAULT_GESTURE_RELEASE_VELOCITY_MAX;
|
|
43
|
-
|
|
44
|
-
const effectiveReleaseVelocityMax = Math.max(
|
|
45
|
-
0,
|
|
46
|
-
Math.abs(resolvedGestureReleaseVelocityMax),
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
const vxNorm = normalizeVelocity(
|
|
50
|
-
event.velocityX,
|
|
51
|
-
dimensions.width,
|
|
52
|
-
effectiveReleaseVelocityMax,
|
|
53
|
-
);
|
|
54
|
-
const vyNorm = normalizeVelocity(
|
|
55
|
-
event.velocityY,
|
|
56
|
-
dimensions.height,
|
|
57
|
-
effectiveReleaseVelocityMax,
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
// Ensure spring starts moving toward zero using normalized gesture values for direction.
|
|
61
|
-
const nx =
|
|
62
|
-
gestures.normX.value || event.translationX / Math.max(1, dimensions.width);
|
|
63
|
-
|
|
64
|
-
const ny =
|
|
65
|
-
gestures.normY.value || event.translationY / Math.max(1, dimensions.height);
|
|
66
|
-
|
|
67
|
-
const vxTowardZero = calculateRestoreVelocityTowardZero(nx, vxNorm);
|
|
68
|
-
const vyTowardZero = calculateRestoreVelocityTowardZero(ny, vyNorm);
|
|
69
|
-
|
|
70
|
-
// When dismissing, use raw fling velocity (scaled by gestureReleaseVelocityScale)
|
|
71
|
-
// so the spring carries the gesture's momentum. The spec controls the
|
|
72
|
-
// spring character — use an underdamped spec (e.g. FlingSpec) for orbit/fling.
|
|
73
|
-
const resetVX = shouldDismiss
|
|
74
|
-
? vxNorm * resolvedGestureReleaseVelocityScale
|
|
75
|
-
: vxTowardZero;
|
|
76
|
-
|
|
77
|
-
const resetVY = shouldDismiss
|
|
78
|
-
? vyNorm * resolvedGestureReleaseVelocityScale
|
|
79
|
-
: vyTowardZero;
|
|
80
|
-
|
|
81
|
-
animateMany({
|
|
82
|
-
items: [
|
|
83
|
-
{
|
|
84
|
-
value: gestures.x,
|
|
85
|
-
toValue: 0,
|
|
86
|
-
config: { ...spec, velocity: resetVX },
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
value: gestures.y,
|
|
90
|
-
toValue: 0,
|
|
91
|
-
config: { ...spec, velocity: resetVY },
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
value: gestures.normX,
|
|
95
|
-
toValue: 0,
|
|
96
|
-
config: { ...spec, velocity: resetVX },
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
value: gestures.normY,
|
|
100
|
-
toValue: 0,
|
|
101
|
-
config: { ...spec, velocity: resetVY },
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
onAllFinished: () => {
|
|
105
|
-
"worklet";
|
|
106
|
-
gestures.direction.value = null;
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
gestures.dragging.value = FALSE;
|
|
111
|
-
gestures.dismissing.value = shouldDismiss ? TRUE : FALSE;
|
|
112
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
import { GestureStore } from "../../../stores/gesture.store";
|
|
3
|
-
import {
|
|
4
|
-
type ClaimedDirections,
|
|
5
|
-
DIRECTIONS,
|
|
6
|
-
type Direction,
|
|
7
|
-
} from "../../../types/ownership.types";
|
|
8
|
-
import type { GestureContextType } from "../types";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Registers direction claims on ancestors that this screen shadows.
|
|
12
|
-
* Only registers claims when this screen is the current (topmost) route
|
|
13
|
-
* in its navigator, preventing unfocused screens from blocking gestures.
|
|
14
|
-
*/
|
|
15
|
-
export function useRegisterDirectionClaims(
|
|
16
|
-
ancestorContext: GestureContextType | null | undefined,
|
|
17
|
-
claimedDirections: ClaimedDirections,
|
|
18
|
-
routeKey: string,
|
|
19
|
-
isIsolated: boolean,
|
|
20
|
-
isCurrentRoute: boolean,
|
|
21
|
-
) {
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
// Only register claims when this screen is the current route
|
|
24
|
-
if (!isCurrentRoute || !ancestorContext) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const gestureValues = GestureStore.getBag(routeKey);
|
|
29
|
-
const isDismissing = gestureValues.dismissing;
|
|
30
|
-
|
|
31
|
-
const claimedAncestors: Array<{
|
|
32
|
-
ancestor: GestureContextType;
|
|
33
|
-
directions: Direction[];
|
|
34
|
-
}> = [];
|
|
35
|
-
|
|
36
|
-
let ancestor: GestureContextType | null = ancestorContext;
|
|
37
|
-
while (ancestor) {
|
|
38
|
-
if (ancestor.isIsolated !== isIsolated) break;
|
|
39
|
-
|
|
40
|
-
const shadowedDirections: Direction[] = [];
|
|
41
|
-
for (const dir of DIRECTIONS) {
|
|
42
|
-
if (claimedDirections[dir] && ancestor.claimedDirections?.[dir]) {
|
|
43
|
-
shadowedDirections.push(dir);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (shadowedDirections.length > 0) {
|
|
48
|
-
claimedAncestors.push({ ancestor, directions: shadowedDirections });
|
|
49
|
-
const newClaims = { ...ancestor.childDirectionClaims.value };
|
|
50
|
-
for (const dir of shadowedDirections) {
|
|
51
|
-
newClaims[dir] = { routeKey, isDismissing };
|
|
52
|
-
}
|
|
53
|
-
ancestor.childDirectionClaims.value = newClaims;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ancestor = ancestor.ancestorContext;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return () => {
|
|
60
|
-
for (const { ancestor, directions } of claimedAncestors) {
|
|
61
|
-
const currentClaims = ancestor.childDirectionClaims.value;
|
|
62
|
-
const newClaims = { ...currentClaims };
|
|
63
|
-
let needsUpdate = false;
|
|
64
|
-
|
|
65
|
-
for (const dir of directions) {
|
|
66
|
-
if (currentClaims[dir]?.routeKey === routeKey) {
|
|
67
|
-
newClaims[dir] = null;
|
|
68
|
-
needsUpdate = true;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (needsUpdate) {
|
|
73
|
-
ancestor.childDirectionClaims.value = newClaims;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}, [
|
|
78
|
-
ancestorContext,
|
|
79
|
-
claimedDirections,
|
|
80
|
-
routeKey,
|
|
81
|
-
isIsolated,
|
|
82
|
-
isCurrentRoute,
|
|
83
|
-
]);
|
|
84
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { GestureType } from "react-native-gesture-handler";
|
|
2
|
-
import type { SharedValue } from "react-native-reanimated";
|
|
3
|
-
import type { GestureStoreMap } from "../../stores/gesture.store";
|
|
4
|
-
import type { ClaimedDirections } from "../../types/ownership.types";
|
|
5
|
-
|
|
6
|
-
export type ScrollConfig = {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
contentHeight: number;
|
|
10
|
-
contentWidth: number;
|
|
11
|
-
layoutHeight: number;
|
|
12
|
-
layoutWidth: number;
|
|
13
|
-
isTouched: boolean;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type DirectionClaim = {
|
|
17
|
-
routeKey: string;
|
|
18
|
-
isDismissing: SharedValue<number>;
|
|
19
|
-
} | null;
|
|
20
|
-
|
|
21
|
-
export type DirectionClaimMap = {
|
|
22
|
-
vertical: DirectionClaim;
|
|
23
|
-
"vertical-inverted": DirectionClaim;
|
|
24
|
-
horizontal: DirectionClaim;
|
|
25
|
-
"horizontal-inverted": DirectionClaim;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const NO_CLAIMS: DirectionClaimMap = {
|
|
29
|
-
vertical: null,
|
|
30
|
-
"vertical-inverted": null,
|
|
31
|
-
horizontal: null,
|
|
32
|
-
"horizontal-inverted": null,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export interface GestureContextType {
|
|
36
|
-
panGesture: GestureType;
|
|
37
|
-
panGestureRef: React.MutableRefObject<GestureType | undefined>;
|
|
38
|
-
scrollConfig: SharedValue<ScrollConfig | null>;
|
|
39
|
-
gestureAnimationValues: GestureStoreMap;
|
|
40
|
-
ancestorContext: GestureContextType | null;
|
|
41
|
-
gestureEnabled: boolean;
|
|
42
|
-
isIsolated: boolean;
|
|
43
|
-
claimedDirections: ClaimedDirections;
|
|
44
|
-
childDirectionClaims: SharedValue<DirectionClaimMap>;
|
|
45
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { useCallback, useMemo, useRef } from "react";
|
|
2
|
-
import { Gesture, type GestureType } from "react-native-gesture-handler";
|
|
3
|
-
import type { SharedValue } from "react-native-reanimated";
|
|
4
|
-
import { useNavigationHelpers } from "../../hooks/navigation/use-navigation-helpers";
|
|
5
|
-
import { GestureStore, type GestureStoreMap } from "../../stores/gesture.store";
|
|
6
|
-
import {
|
|
7
|
-
type ClaimedDirections,
|
|
8
|
-
DIRECTIONS,
|
|
9
|
-
} from "../../types/ownership.types";
|
|
10
|
-
import { claimsAnyDirection } from "../../utils/gesture/compute-claimed-directions";
|
|
11
|
-
import { resolveOwnership } from "../../utils/gesture/resolve-ownership";
|
|
12
|
-
import { validateSnapPoints } from "../../utils/gesture/validate-snap-points";
|
|
13
|
-
import {
|
|
14
|
-
useDescriptorDerivations,
|
|
15
|
-
useDescriptors,
|
|
16
|
-
} from "../screen/descriptors";
|
|
17
|
-
import { useHandlers } from "./handlers/use-handlers";
|
|
18
|
-
import type {
|
|
19
|
-
DirectionClaimMap,
|
|
20
|
-
GestureContextType,
|
|
21
|
-
ScrollConfig,
|
|
22
|
-
} from "./types";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Finds ancestor pan gestures that we shadow (claim the same direction).
|
|
26
|
-
* Used to block ancestors when child claims priority.
|
|
27
|
-
*/
|
|
28
|
-
function findShadowedAncestorPanGestures(
|
|
29
|
-
selfClaims: ClaimedDirections,
|
|
30
|
-
ancestorContext: GestureContextType | null | undefined,
|
|
31
|
-
isIsolated: boolean,
|
|
32
|
-
): GestureType[] {
|
|
33
|
-
const shadowedGestures: GestureType[] = [];
|
|
34
|
-
let ancestor = ancestorContext;
|
|
35
|
-
|
|
36
|
-
while (ancestor) {
|
|
37
|
-
if (ancestor.isIsolated !== isIsolated) break;
|
|
38
|
-
|
|
39
|
-
const shadowsAncestor = DIRECTIONS.some(
|
|
40
|
-
(dir) => selfClaims[dir] && ancestor?.claimedDirections?.[dir],
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
if (shadowsAncestor && ancestor.panGesture) {
|
|
44
|
-
shadowedGestures.push(ancestor.panGesture);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
ancestor = ancestor.ancestorContext;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return shadowedGestures;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface BuildGesturesHookProps {
|
|
54
|
-
scrollConfig: SharedValue<ScrollConfig | null>;
|
|
55
|
-
ancestorContext?: GestureContextType | null;
|
|
56
|
-
claimedDirections: ClaimedDirections;
|
|
57
|
-
childDirectionClaims: SharedValue<DirectionClaimMap>;
|
|
58
|
-
isIsolated: boolean;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Builds the Pan gesture for screen dismissal.
|
|
63
|
-
*
|
|
64
|
-
* Handles shadowing: when child claims same direction as ancestor,
|
|
65
|
-
* child's pan blocks ancestor's pan via `blocksExternalGesture()`.
|
|
66
|
-
*
|
|
67
|
-
* ScrollView coordination is handled separately by useScrollRegistry,
|
|
68
|
-
* which creates its own Native gesture per ScrollView.
|
|
69
|
-
*/
|
|
70
|
-
export const useBuildGestures = ({
|
|
71
|
-
scrollConfig,
|
|
72
|
-
ancestorContext,
|
|
73
|
-
claimedDirections,
|
|
74
|
-
childDirectionClaims,
|
|
75
|
-
isIsolated,
|
|
76
|
-
}: BuildGesturesHookProps): {
|
|
77
|
-
panGesture: GestureType;
|
|
78
|
-
panGestureRef: React.MutableRefObject<GestureType | undefined>;
|
|
79
|
-
gestureAnimationValues: GestureStoreMap;
|
|
80
|
-
} => {
|
|
81
|
-
const { current } = useDescriptors();
|
|
82
|
-
const { isFirstKey } = useDescriptorDerivations();
|
|
83
|
-
const { dismissScreen } = useNavigationHelpers();
|
|
84
|
-
|
|
85
|
-
const panGestureRef = useRef<GestureType | undefined>(undefined);
|
|
86
|
-
const gestureAnimationValues = GestureStore.getBag(current.route.key);
|
|
87
|
-
|
|
88
|
-
const { snapPoints: rawSnapPoints } = current.options;
|
|
89
|
-
const canDismiss = Boolean(
|
|
90
|
-
isFirstKey ? false : current.options.gestureEnabled,
|
|
91
|
-
);
|
|
92
|
-
const effectiveSnapPoints = useMemo(
|
|
93
|
-
() => validateSnapPoints({ snapPoints: rawSnapPoints, canDismiss }),
|
|
94
|
-
[rawSnapPoints, canDismiss],
|
|
95
|
-
);
|
|
96
|
-
const gestureEnabled = canDismiss || effectiveSnapPoints.hasSnapPoints;
|
|
97
|
-
|
|
98
|
-
const ownershipStatus = useMemo(
|
|
99
|
-
() => resolveOwnership(claimedDirections, ancestorContext ?? null),
|
|
100
|
-
[claimedDirections, ancestorContext],
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
const selfClaimsAny = claimsAnyDirection(claimedDirections);
|
|
104
|
-
|
|
105
|
-
const handleDismiss = useCallback(() => {
|
|
106
|
-
if (ancestorContext?.gestureAnimationValues.dismissing?.value) return;
|
|
107
|
-
dismissScreen();
|
|
108
|
-
}, [ancestorContext, dismissScreen]);
|
|
109
|
-
|
|
110
|
-
const { onTouchesDown, onTouchesMove, onStart, onUpdate, onEnd } =
|
|
111
|
-
useHandlers({
|
|
112
|
-
scrollConfig,
|
|
113
|
-
canDismiss,
|
|
114
|
-
handleDismiss,
|
|
115
|
-
ownershipStatus,
|
|
116
|
-
ancestorIsDismissing: ancestorContext?.gestureAnimationValues.dismissing,
|
|
117
|
-
claimedDirections,
|
|
118
|
-
ancestorContext,
|
|
119
|
-
childDirectionClaims,
|
|
120
|
-
effectiveSnapPoints,
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
return useMemo(() => {
|
|
124
|
-
const panGesture = Gesture.Pan()
|
|
125
|
-
.withRef(panGestureRef)
|
|
126
|
-
.enabled(gestureEnabled)
|
|
127
|
-
.manualActivation(true)
|
|
128
|
-
.onTouchesDown(onTouchesDown)
|
|
129
|
-
.onTouchesMove(onTouchesMove)
|
|
130
|
-
.onStart(onStart)
|
|
131
|
-
.onUpdate(onUpdate)
|
|
132
|
-
.onEnd(onEnd);
|
|
133
|
-
|
|
134
|
-
// Block shadowed ancestor pan gestures when we claim same directions
|
|
135
|
-
if (selfClaimsAny) {
|
|
136
|
-
const shadowedAncestorGestures = findShadowedAncestorPanGestures(
|
|
137
|
-
claimedDirections,
|
|
138
|
-
ancestorContext,
|
|
139
|
-
isIsolated,
|
|
140
|
-
);
|
|
141
|
-
for (const ancestorPan of shadowedAncestorGestures) {
|
|
142
|
-
panGesture.blocksExternalGesture(ancestorPan);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return {
|
|
147
|
-
panGesture,
|
|
148
|
-
panGestureRef,
|
|
149
|
-
gestureAnimationValues,
|
|
150
|
-
};
|
|
151
|
-
}, [
|
|
152
|
-
gestureEnabled,
|
|
153
|
-
selfClaimsAny,
|
|
154
|
-
claimedDirections,
|
|
155
|
-
onTouchesDown,
|
|
156
|
-
onTouchesMove,
|
|
157
|
-
onStart,
|
|
158
|
-
onUpdate,
|
|
159
|
-
onEnd,
|
|
160
|
-
gestureAnimationValues,
|
|
161
|
-
ancestorContext,
|
|
162
|
-
isIsolated,
|
|
163
|
-
]);
|
|
164
|
-
};
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
NormalizedTransitionInterpolatedStyle,
|
|
3
|
-
NormalizedTransitionSlotStyle,
|
|
4
|
-
} from "../../../../types/animation.types";
|
|
5
|
-
import {
|
|
6
|
-
ALWAYS_RESET_STYLE_VALUES,
|
|
7
|
-
IDENTITY_TRANSFORM,
|
|
8
|
-
shouldSlotInherit,
|
|
9
|
-
} from "../constants";
|
|
10
|
-
|
|
11
|
-
export type ResettableStyleState = {
|
|
12
|
-
hasTransform: boolean;
|
|
13
|
-
hasOpacity: boolean;
|
|
14
|
-
hasZIndex: boolean;
|
|
15
|
-
hasElevation: boolean;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type ResettableStyleStatesBySlot = Record<string, ResettableStyleState>;
|
|
19
|
-
|
|
20
|
-
const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
|
|
21
|
-
hasTransform: false,
|
|
22
|
-
hasOpacity: false,
|
|
23
|
-
hasZIndex: false,
|
|
24
|
-
hasElevation: false,
|
|
25
|
-
}) as ResettableStyleState;
|
|
26
|
-
|
|
27
|
-
export const resolveSlotStyles = ({
|
|
28
|
-
currentStylesMap,
|
|
29
|
-
ancestorStylesMap,
|
|
30
|
-
previousStyleStatesBySlot,
|
|
31
|
-
}: {
|
|
32
|
-
currentStylesMap: NormalizedTransitionInterpolatedStyle;
|
|
33
|
-
ancestorStylesMap: NormalizedTransitionInterpolatedStyle;
|
|
34
|
-
previousStyleStatesBySlot: ResettableStyleStatesBySlot;
|
|
35
|
-
}) => {
|
|
36
|
-
"worklet";
|
|
37
|
-
const resolvedStylesMap: NormalizedTransitionInterpolatedStyle = {};
|
|
38
|
-
const nextPreviousStyleStatesBySlot: ResettableStyleStatesBySlot = {};
|
|
39
|
-
|
|
40
|
-
const appendResolvedSlot = (slotId: string) => {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
const slot =
|
|
44
|
-
currentStylesMap[slotId] ??
|
|
45
|
-
(shouldSlotInherit(slotId) ? ancestorStylesMap[slotId] : undefined);
|
|
46
|
-
|
|
47
|
-
const baseStyle = slot?.style as Record<string, unknown> | undefined;
|
|
48
|
-
|
|
49
|
-
let hasAnyStyleKeys = false;
|
|
50
|
-
let hasTransform = false;
|
|
51
|
-
let hasOpacity = false;
|
|
52
|
-
let hasZIndex = false;
|
|
53
|
-
let hasElevation = false;
|
|
54
|
-
|
|
55
|
-
if (baseStyle) {
|
|
56
|
-
for (const key in baseStyle) {
|
|
57
|
-
hasAnyStyleKeys = true;
|
|
58
|
-
|
|
59
|
-
if (key === "transform") {
|
|
60
|
-
hasTransform = true;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (key === "opacity") {
|
|
65
|
-
hasOpacity = true;
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (key === "zIndex") {
|
|
70
|
-
hasZIndex = true;
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (key === "elevation") {
|
|
75
|
-
hasElevation = true;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const previousState =
|
|
81
|
-
previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
|
|
82
|
-
const shouldResetTransform = previousState.hasTransform && !hasTransform;
|
|
83
|
-
const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
|
|
84
|
-
const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
|
|
85
|
-
const shouldResetElevation = previousState.hasElevation && !hasElevation;
|
|
86
|
-
const hasResetPatch =
|
|
87
|
-
shouldResetTransform ||
|
|
88
|
-
shouldResetOpacity ||
|
|
89
|
-
shouldResetZIndex ||
|
|
90
|
-
shouldResetElevation;
|
|
91
|
-
const hasProps = slot?.props !== undefined;
|
|
92
|
-
|
|
93
|
-
if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
|
|
94
|
-
nextPreviousStyleStatesBySlot[slotId] = {
|
|
95
|
-
hasTransform,
|
|
96
|
-
hasOpacity,
|
|
97
|
-
hasZIndex,
|
|
98
|
-
hasElevation,
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (!slot && !hasResetPatch) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (!hasResetPatch && slot) {
|
|
107
|
-
if (hasAnyStyleKeys || hasProps) {
|
|
108
|
-
resolvedStylesMap[slotId] = slot;
|
|
109
|
-
}
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const resolvedSlot = {} as NormalizedTransitionSlotStyle;
|
|
118
|
-
|
|
119
|
-
if (hasAnyStyleKeys || hasResetPatch) {
|
|
120
|
-
const resolvedStyle: Record<string, any> = {};
|
|
121
|
-
|
|
122
|
-
if (shouldResetTransform) {
|
|
123
|
-
resolvedStyle.transform = IDENTITY_TRANSFORM;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (shouldResetOpacity) {
|
|
127
|
-
resolvedStyle.opacity = ALWAYS_RESET_STYLE_VALUES.opacity;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (shouldResetZIndex) {
|
|
131
|
-
resolvedStyle.zIndex = ALWAYS_RESET_STYLE_VALUES.zIndex;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (shouldResetElevation) {
|
|
135
|
-
resolvedStyle.elevation = ALWAYS_RESET_STYLE_VALUES.elevation;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (baseStyle) {
|
|
139
|
-
for (const key in baseStyle) {
|
|
140
|
-
resolvedStyle[key] = baseStyle[key];
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
resolvedSlot.style = resolvedStyle;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (hasProps) {
|
|
148
|
-
resolvedSlot.props = slot?.props;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if (!resolvedSlot.style && !resolvedSlot.props) {
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
resolvedStylesMap[slotId] = resolvedSlot;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
for (const slotId in currentStylesMap) {
|
|
159
|
-
appendResolvedSlot(slotId);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
for (const slotId in ancestorStylesMap) {
|
|
163
|
-
if (!shouldSlotInherit(slotId)) {
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (currentStylesMap[slotId] !== undefined) {
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
appendResolvedSlot(slotId);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
for (const slotId in previousStyleStatesBySlot) {
|
|
175
|
-
if (currentStylesMap[slotId] !== undefined) {
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (shouldSlotInherit(slotId) && ancestorStylesMap[slotId] !== undefined) {
|
|
180
|
-
continue;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
appendResolvedSlot(slotId);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return {
|
|
187
|
-
resolvedStylesMap,
|
|
188
|
-
nextPreviousStyleStatesBySlot,
|
|
189
|
-
};
|
|
190
|
-
};
|