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
|
@@ -32,17 +32,6 @@ const navigationMaskInterpolatedStyle = {
|
|
|
32
32
|
[_.NAVIGATION_MASK_CONTAINER_STYLE_ID]: slotStyle,
|
|
33
33
|
[_.NAVIGATION_MASK_ELEMENT_STYLE_ID]: slotStyle
|
|
34
34
|
};
|
|
35
|
-
const legacyInterpolatedStyle = {
|
|
36
|
-
contentStyle: {
|
|
37
|
-
opacity: 1
|
|
38
|
-
},
|
|
39
|
-
backdropStyle: {
|
|
40
|
-
opacity: 0.5
|
|
41
|
-
},
|
|
42
|
-
overlayStyle: {
|
|
43
|
-
opacity: 0.25
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
35
|
const zoomOptions = {
|
|
47
36
|
target: "bound",
|
|
48
37
|
debug: true,
|
|
@@ -64,9 +53,41 @@ const zoomOptions = {
|
|
|
64
53
|
const gestureTarget = {
|
|
65
54
|
ancestor: 2
|
|
66
55
|
};
|
|
56
|
+
const animationTarget = {
|
|
57
|
+
ancestor: 2
|
|
58
|
+
};
|
|
59
|
+
function usePublicApiHooksTypecheck() {
|
|
60
|
+
const selfAnimation = (0, _.useScreenAnimation)();
|
|
61
|
+
const selfTargetAnimation = (0, _.useScreenAnimation)("self");
|
|
62
|
+
const ancestorAnimation = (0, _.useScreenAnimation)("parent");
|
|
63
|
+
const inheritedGesture = (0, _.useScreenGesture)();
|
|
64
|
+
const ancestorGesture = (0, _.useScreenGesture)("parent");
|
|
65
|
+
return {
|
|
66
|
+
selfAnimation,
|
|
67
|
+
selfTargetAnimation,
|
|
68
|
+
ancestorAnimation,
|
|
69
|
+
inheritedGesture,
|
|
70
|
+
ancestorGesture
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
void usePublicApiHooksTypecheck;
|
|
67
74
|
const numericBoundsResult = interpolationProps.bounds({
|
|
68
75
|
id: 42
|
|
69
76
|
});
|
|
77
|
+
const offsetBoundsResult = interpolationProps.bounds({
|
|
78
|
+
id: 42,
|
|
79
|
+
offset: {
|
|
80
|
+
x: 10,
|
|
81
|
+
y: -10
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const deprecatedGesturesBoundsResult = interpolationProps.bounds({
|
|
85
|
+
id: 42,
|
|
86
|
+
gestures: {
|
|
87
|
+
x: 10,
|
|
88
|
+
y: -10
|
|
89
|
+
}
|
|
90
|
+
});
|
|
70
91
|
const absoluteRawBoundsResult = interpolationProps.bounds({
|
|
71
92
|
id: 42,
|
|
72
93
|
method: "size",
|
|
@@ -78,34 +99,80 @@ const zoomInterpolatedStyle = interpolationProps.bounds({
|
|
|
78
99
|
}).navigation.zoom({
|
|
79
100
|
target: "bound"
|
|
80
101
|
});
|
|
102
|
+
const revealInterpolatedStyle = interpolationProps.bounds({
|
|
103
|
+
id: 42
|
|
104
|
+
}).navigation.reveal();
|
|
105
|
+
void revealInterpolatedStyle;
|
|
106
|
+
const currentLink = interpolationProps.bounds.getLink(42);
|
|
107
|
+
const initialSource = currentLink?.initialSource;
|
|
108
|
+
const initialDestination = currentLink?.initialDestination;
|
|
109
|
+
const scopedBounds = interpolationProps.bounds({
|
|
110
|
+
id: 42
|
|
111
|
+
});
|
|
112
|
+
const scopedCurrentLink = scopedBounds.getLink();
|
|
113
|
+
const scopedLinkRawSize = scopedCurrentLink?.compute({
|
|
114
|
+
method: "size",
|
|
115
|
+
space: "absolute",
|
|
116
|
+
target: "fullscreen",
|
|
117
|
+
raw: true
|
|
118
|
+
});
|
|
119
|
+
const scopedMeasured = scopedBounds.getMeasured("screen-key");
|
|
120
|
+
const scopedInitialSnapshot = scopedBounds.getSnapshot("screen-key");
|
|
121
|
+
const scopedInterpolatedStyle = scopedBounds.interpolateStyle("opacity");
|
|
122
|
+
const scopedInterpolatedBounds = scopedBounds.interpolateBounds("pageX");
|
|
123
|
+
void currentLink;
|
|
124
|
+
void initialSource;
|
|
125
|
+
void initialDestination;
|
|
126
|
+
void scopedCurrentLink;
|
|
127
|
+
void scopedLinkRawSize;
|
|
128
|
+
void scopedMeasured;
|
|
129
|
+
void scopedInitialSnapshot;
|
|
130
|
+
void scopedInterpolatedStyle;
|
|
131
|
+
void scopedInterpolatedBounds;
|
|
81
132
|
const absoluteRawBoundsWidth = absoluteRawBoundsResult.width;
|
|
82
133
|
const absoluteRawBoundsTranslateX = absoluteRawBoundsResult.translateX;
|
|
83
134
|
const maybeContentHeight = interpolationProps.layouts.content?.height;
|
|
84
135
|
const maybeCurrentContentHeight = interpolationProps.current.layouts.content?.height;
|
|
136
|
+
const currentActiveGesture = interpolationProps.current.gesture.active;
|
|
137
|
+
const currentRawGestureNormX = interpolationProps.current.gesture.raw.normX;
|
|
138
|
+
const currentAnimatedSnapIndex = interpolationProps.current.animatedSnapIndex;
|
|
85
139
|
const currentSnapIndex = interpolationProps.current.snapIndex;
|
|
140
|
+
const optionsInterpolatedStyle = {
|
|
141
|
+
options: {
|
|
142
|
+
gestureSensitivity: 0.5,
|
|
143
|
+
gestureSnapLocked: true,
|
|
144
|
+
gestureReleaseVelocityScale: 1.2
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
void currentRawGestureNormX;
|
|
148
|
+
void currentActiveGesture;
|
|
149
|
+
void currentAnimatedSnapIndex;
|
|
150
|
+
void currentSnapIndex;
|
|
151
|
+
void optionsInterpolatedStyle;
|
|
86
152
|
const nextNameOptions = {
|
|
87
153
|
navigationMaskEnabled: true,
|
|
88
|
-
sheetScrollGestureBehavior: "collapse-only"
|
|
154
|
+
sheetScrollGestureBehavior: "collapse-only",
|
|
155
|
+
gestureSensitivity: 0.75
|
|
156
|
+
};
|
|
157
|
+
const sharedGestureSensitivityOptions = {
|
|
158
|
+
// @ts-expect-error Dynamic gesture sensitivity belongs in screenStyleInterpolator options.
|
|
159
|
+
gestureSensitivity: gestureSensitivitySharedValue
|
|
89
160
|
};
|
|
90
161
|
const initialMountAnimationOptions = {
|
|
91
162
|
experimental_animateOnInitialMount: true
|
|
92
163
|
};
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
const precedenceOptions = {
|
|
98
|
-
navigationMaskEnabled: false,
|
|
99
|
-
maskEnabled: true,
|
|
100
|
-
sheetScrollGestureBehavior: "expand-and-collapse",
|
|
101
|
-
expandViaScrollView: false
|
|
164
|
+
const disabledGestureTrackingOptions = {
|
|
165
|
+
gestureEnabled: false,
|
|
166
|
+
experimental_allowDisabledGestureTracking: true
|
|
102
167
|
};
|
|
103
168
|
const emptyInterpolatorOptions = {
|
|
104
169
|
screenStyleInterpolator: () => null
|
|
105
170
|
};
|
|
106
171
|
const blankStackFactoryOptions = {
|
|
107
|
-
independent: true
|
|
108
|
-
|
|
172
|
+
independent: true
|
|
173
|
+
};
|
|
174
|
+
const blankStackNavigationOptions = {
|
|
175
|
+
freezeOnBlur: true
|
|
109
176
|
};
|
|
110
177
|
function StaticBlankHomeScreen(_props) {
|
|
111
178
|
return null;
|
|
@@ -114,16 +181,9 @@ function StaticBlankDetailsScreen(_props) {
|
|
|
114
181
|
return null;
|
|
115
182
|
}
|
|
116
183
|
const defaultBlankStack = (0, _blankStack.createBlankStackNavigator)();
|
|
117
|
-
const viewBlankStackProps = {
|
|
118
|
-
enableNativeScreens: false
|
|
119
|
-
};
|
|
120
184
|
const independentBlankStackProps = {
|
|
121
185
|
independent: true
|
|
122
186
|
};
|
|
123
|
-
const independentViewBlankStackProps = {
|
|
124
|
-
independent: true,
|
|
125
|
-
enableNativeScreens: false
|
|
126
|
-
};
|
|
127
187
|
const staticBlankStack = (0, _blankStack.createBlankStackNavigator)({
|
|
128
188
|
initialRouteName: "Home",
|
|
129
189
|
screens: {
|
|
@@ -131,14 +191,6 @@ const staticBlankStack = (0, _blankStack.createBlankStackNavigator)({
|
|
|
131
191
|
Details: StaticBlankDetailsScreen
|
|
132
192
|
}
|
|
133
193
|
});
|
|
134
|
-
const staticViewBlankStack = (0, _blankStack.createBlankStackNavigator)({
|
|
135
|
-
initialRouteName: "Home",
|
|
136
|
-
enableNativeScreens: false,
|
|
137
|
-
screens: {
|
|
138
|
-
Home: StaticBlankHomeScreen,
|
|
139
|
-
Details: StaticBlankDetailsScreen
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
194
|
const publicApiTypecheck = {
|
|
143
195
|
navigationSlots: {
|
|
144
196
|
container: _.NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
@@ -146,29 +198,30 @@ const publicApiTypecheck = {
|
|
|
146
198
|
},
|
|
147
199
|
slotStyle,
|
|
148
200
|
nestedInterpolatedStyle,
|
|
149
|
-
navigationMaskInterpolatedStyle,
|
|
150
|
-
legacyInterpolatedStyle,
|
|
151
201
|
gestureTarget,
|
|
202
|
+
animationTarget,
|
|
152
203
|
numericBoundsResult,
|
|
204
|
+
offsetBoundsResult,
|
|
205
|
+
deprecatedGesturesBoundsResult,
|
|
153
206
|
absoluteRawBoundsResult,
|
|
154
207
|
absoluteRawBoundsWidth,
|
|
155
208
|
absoluteRawBoundsTranslateX,
|
|
156
209
|
zoomInterpolatedStyle,
|
|
157
210
|
maybeContentHeight,
|
|
158
211
|
maybeCurrentContentHeight,
|
|
212
|
+
currentActiveGesture,
|
|
159
213
|
currentSnapIndex,
|
|
160
214
|
zoomOptions,
|
|
215
|
+
navigationMaskInterpolatedStyle,
|
|
161
216
|
nextNameOptions,
|
|
217
|
+
sharedGestureSensitivityOptions,
|
|
162
218
|
initialMountAnimationOptions,
|
|
163
|
-
|
|
164
|
-
precedenceOptions,
|
|
219
|
+
disabledGestureTrackingOptions,
|
|
165
220
|
emptyInterpolatorOptions,
|
|
166
221
|
blankStackFactoryOptions,
|
|
167
|
-
|
|
222
|
+
blankStackNavigationOptions,
|
|
168
223
|
independentBlankStackProps,
|
|
169
|
-
|
|
170
|
-
staticBlankStack,
|
|
171
|
-
staticViewBlankStack
|
|
224
|
+
staticBlankStack
|
|
172
225
|
};
|
|
173
226
|
void publicApiTypecheck;
|
|
174
227
|
//# sourceMappingURL=public-api.typecheck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_blankStack","require","_","slotStyle","style","opacity","props","intensity","nestedInterpolatedStyle","content","backdrop","surface","transform","scale","borderRadius","navigationMaskInterpolatedStyle","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","
|
|
1
|
+
{"version":3,"names":["_blankStack","require","_","slotStyle","style","opacity","props","intensity","nestedInterpolatedStyle","content","backdrop","surface","transform","scale","borderRadius","navigationMaskInterpolatedStyle","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","zoomOptions","target","debug","focusedElementOpacity","open","close","unfocusedElementOpacity","backgroundScale","horizontalDragScale","verticalDragScale","horizontalDragTranslation","verticalDragTranslation","gestureTarget","ancestor","animationTarget","usePublicApiHooksTypecheck","selfAnimation","useScreenAnimation","selfTargetAnimation","ancestorAnimation","inheritedGesture","useScreenGesture","ancestorGesture","numericBoundsResult","interpolationProps","bounds","id","offsetBoundsResult","offset","x","y","deprecatedGesturesBoundsResult","gestures","absoluteRawBoundsResult","method","space","raw","zoomInterpolatedStyle","navigation","zoom","revealInterpolatedStyle","reveal","currentLink","getLink","initialSource","initialDestination","scopedBounds","scopedCurrentLink","scopedLinkRawSize","compute","scopedMeasured","getMeasured","scopedInitialSnapshot","getSnapshot","scopedInterpolatedStyle","interpolateStyle","scopedInterpolatedBounds","interpolateBounds","absoluteRawBoundsWidth","width","absoluteRawBoundsTranslateX","translateX","maybeContentHeight","layouts","height","maybeCurrentContentHeight","current","currentActiveGesture","gesture","active","currentRawGestureNormX","normX","currentAnimatedSnapIndex","animatedSnapIndex","currentSnapIndex","snapIndex","optionsInterpolatedStyle","options","gestureSensitivity","gestureSnapLocked","gestureReleaseVelocityScale","nextNameOptions","navigationMaskEnabled","sheetScrollGestureBehavior","sharedGestureSensitivityOptions","gestureSensitivitySharedValue","initialMountAnimationOptions","experimental_animateOnInitialMount","disabledGestureTrackingOptions","gestureEnabled","experimental_allowDisabledGestureTracking","emptyInterpolatorOptions","screenStyleInterpolator","blankStackFactoryOptions","independent","blankStackNavigationOptions","freezeOnBlur","StaticBlankHomeScreen","_props","StaticBlankDetailsScreen","defaultBlankStack","createBlankStackNavigator","independentBlankStackProps","staticBlankStack","initialRouteName","screens","Home","Details","publicApiTypecheck","navigationSlots","container","mask"],"sourceRoot":"../../../../src","sources":["shared/typecheck/public-api.typecheck.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.GestureOffsetState = void 0;
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
6
|
+
exports.GestureOffsetState = exports.GestureActivationState = void 0;
|
|
7
|
+
let GestureActivationState = exports.GestureOffsetState = exports.GestureActivationState = /*#__PURE__*/function (GestureActivationState) {
|
|
8
|
+
GestureActivationState[GestureActivationState["PENDING"] = 0] = "PENDING";
|
|
9
|
+
GestureActivationState[GestureActivationState["PASSED"] = 1] = "PASSED";
|
|
10
|
+
GestureActivationState[GestureActivationState["FAILED"] = 2] = "FAILED";
|
|
11
|
+
return GestureActivationState;
|
|
12
12
|
}({});
|
|
13
13
|
/**
|
|
14
14
|
* Resolved boolean flags for which directions a gesture is active in.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["GestureActivationState","exports","GestureOffsetState"],"sourceRoot":"../../../../src","sources":["shared/types/gesture.types.ts"],"mappings":";;;;;;IA4DYA,sBAAsB,GAAAC,OAAA,CAAAC,kBAAA,GAAAD,OAAA,CAAAD,sBAAA,0BAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;AAUlC;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -30,14 +30,14 @@ const DIRECTIONS = exports.DIRECTIONS = ["vertical", "vertical-inverted", "horiz
|
|
|
30
30
|
/**
|
|
31
31
|
* Map of which directions a screen claims ownership of.
|
|
32
32
|
* A screen claims a direction when:
|
|
33
|
-
* -
|
|
33
|
+
* - direction claiming is enabled AND
|
|
34
34
|
* - gestureDirection includes that direction
|
|
35
35
|
*
|
|
36
36
|
* For snap points, both directions on the axis are claimed automatically.
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Empty claims - used when
|
|
40
|
+
* Empty claims - used when direction claiming is disabled.
|
|
41
41
|
*/
|
|
42
42
|
const NO_CLAIMS = exports.NO_CLAIMS = {
|
|
43
43
|
vertical: false,
|
|
@@ -14,6 +14,7 @@ const animateToProgress = ({
|
|
|
14
14
|
animations,
|
|
15
15
|
targetProgress,
|
|
16
16
|
emitWillAnimate = true,
|
|
17
|
+
markEntering = true,
|
|
17
18
|
initialVelocity
|
|
18
19
|
}) => {
|
|
19
20
|
"worklet";
|
|
@@ -36,49 +37,63 @@ const animateToProgress = ({
|
|
|
36
37
|
closing,
|
|
37
38
|
entering
|
|
38
39
|
} = animations;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
requestAnimationFrame(() => {
|
|
42
|
-
"worklet";
|
|
40
|
+
const startAnimation = () => {
|
|
41
|
+
"worklet";
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (isClosing) {
|
|
49
|
-
closing.set(_constants.TRUE);
|
|
50
|
-
entering.set(_constants.FALSE);
|
|
51
|
-
} else {
|
|
52
|
-
entering.set(_constants.TRUE);
|
|
53
|
-
}
|
|
54
|
-
if (!config) {
|
|
55
|
-
animating.set(_constants.FALSE);
|
|
56
|
-
progress.set(value);
|
|
57
|
-
if (!isClosing) {
|
|
43
|
+
targetProgress.set(value);
|
|
44
|
+
const shouldClearEnteringOnFinish = !isClosing && (markEntering || entering.get());
|
|
45
|
+
if (isClosing) {
|
|
46
|
+
closing.set(_constants.TRUE);
|
|
58
47
|
entering.set(_constants.FALSE);
|
|
48
|
+
} else if (markEntering) {
|
|
49
|
+
entering.set(_constants.TRUE);
|
|
59
50
|
}
|
|
60
|
-
if (
|
|
61
|
-
(
|
|
51
|
+
if (!config) {
|
|
52
|
+
animating.set(_constants.FALSE);
|
|
53
|
+
progress.set(value);
|
|
54
|
+
if (shouldClearEnteringOnFinish) {
|
|
55
|
+
entering.set(_constants.FALSE);
|
|
56
|
+
}
|
|
57
|
+
if (onAnimationFinish) {
|
|
58
|
+
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(true);
|
|
59
|
+
}
|
|
60
|
+
return;
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
animating.set(_constants.TRUE); //<-- Do not move this into the callback
|
|
63
|
+
progress.set((0, _animate.animate)(value, effectiveConfig, finished => {
|
|
64
|
+
"worklet";
|
|
65
|
+
|
|
66
|
+
if (!finished) return;
|
|
67
|
+
if (shouldClearEnteringOnFinish) {
|
|
68
|
+
entering.set(_constants.FALSE);
|
|
69
|
+
}
|
|
70
|
+
if (onAnimationFinish) {
|
|
71
|
+
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(finished);
|
|
72
|
+
}
|
|
68
73
|
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
// Delay setting animating=FALSE by one frame to ensure final frame is painted
|
|
75
|
+
requestAnimationFrame(() => {
|
|
76
|
+
animating.set(_constants.FALSE);
|
|
77
|
+
});
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
80
|
+
if (emitWillAnimate) {
|
|
81
|
+
if (isClosing) {
|
|
82
|
+
closing.set(_constants.TRUE);
|
|
71
83
|
entering.set(_constants.FALSE);
|
|
84
|
+
} else if (markEntering) {
|
|
85
|
+
entering.set(_constants.TRUE);
|
|
72
86
|
}
|
|
73
|
-
|
|
74
|
-
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(finished);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Delay setting animating=FALSE by one frame to ensure final frame is painted
|
|
87
|
+
willAnimate.set(_constants.TRUE);
|
|
78
88
|
requestAnimationFrame(() => {
|
|
79
|
-
|
|
89
|
+
"worklet";
|
|
90
|
+
|
|
91
|
+
willAnimate.set(_constants.FALSE);
|
|
92
|
+
startAnimation();
|
|
80
93
|
});
|
|
81
|
-
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
startAnimation();
|
|
82
97
|
};
|
|
83
98
|
exports.animateToProgress = animateToProgress;
|
|
84
99
|
//# sourceMappingURL=animate-to-progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","set","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","markEntering","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","startAnimation","set","shouldClearEnteringOnFinish","get","TRUE","FALSE","runOnJS","animate","finished","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.emit = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Emits a one-frame pulse on any shared value, then restores the provided
|
|
9
|
+
* resting value on the next frame.
|
|
10
|
+
*/
|
|
11
|
+
const emit = (sharedValue, activeValue, restValue) => {
|
|
12
|
+
"worklet";
|
|
13
|
+
|
|
14
|
+
sharedValue.set(activeValue);
|
|
15
|
+
requestAnimationFrame(() => {
|
|
16
|
+
"worklet";
|
|
17
|
+
|
|
18
|
+
sharedValue.set(restValue);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
exports.emit = emit;
|
|
22
|
+
//# sourceMappingURL=emit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["emit","sharedValue","activeValue","restValue","set","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/emit.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACO,MAAMA,IAAI,GAAGA,CACnBC,WAA2B,EAC3BC,WAAc,EACdC,SAAY,KACR;EACJ,SAAS;;EACTF,WAAW,CAACG,GAAG,CAACF,WAAW,CAAC;EAC5BG,qBAAqB,CAAC,MAAM;IAC3B,SAAS;;IACTJ,WAAW,CAACG,GAAG,CAACD,SAAS,CAAC;EAC3B,CAAC,CAAC;AACH,CAAC;AAACG,OAAA,CAAAN,IAAA,GAAAA,IAAA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveSnapTransitionSpec = void 0;
|
|
7
|
+
var _specs = require("../../configs/specs");
|
|
8
|
+
const resolveSnapTransitionSpec = (spec, direction) => {
|
|
9
|
+
"worklet";
|
|
10
|
+
|
|
11
|
+
const config = direction === "collapse" ? spec?.collapse ?? _specs.DefaultSnapSpec : spec?.expand ?? _specs.DefaultSnapSpec;
|
|
12
|
+
|
|
13
|
+
// Numeric snap targets are not lifecycle closes. Keep both slots pointed at the
|
|
14
|
+
// selected snap config so animateToProgress can pick a config without toggling
|
|
15
|
+
// the route-level closing flag for non-dismiss snap changes.
|
|
16
|
+
return {
|
|
17
|
+
open: config,
|
|
18
|
+
close: config
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.resolveSnapTransitionSpec = resolveSnapTransitionSpec;
|
|
22
|
+
//# sourceMappingURL=resolve-snap-transition-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_specs","require","resolveSnapTransitionSpec","spec","direction","config","collapse","DefaultSnapSpec","expand","open","close","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/resolve-snap-transition-spec.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKO,MAAMC,yBAAyB,GAAGA,CACxCC,IAAgC,EAChCC,SAAkC,KACd;EACpB,SAAS;;EACT,MAAMC,MAAM,GACXD,SAAS,KAAK,UAAU,GACpBD,IAAI,EAAEG,QAAQ,IAAIC,sBAAe,GACjCJ,IAAI,EAAEK,MAAM,IAAID,sBAAgB;;EAErC;EACA;EACA;EACA,OAAO;IACNE,IAAI,EAAEJ,MAAM;IACZK,KAAK,EAAEL;EACR,CAAC;AACF,CAAC;AAACM,OAAA,CAAAT,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createBoundsAccessorCore = void 0;
|
|
7
|
+
var _createBoundTag = require("./create-bound-tag");
|
|
8
|
+
var _createInterpolators = require("./create-interpolators");
|
|
9
|
+
var _createLinkAccessor = require("./create-link-accessor");
|
|
10
|
+
var _prepareBoundStyles = require("./prepare-bound-styles");
|
|
11
|
+
const createBoundsAccessorParts = ({
|
|
12
|
+
getProps,
|
|
13
|
+
extendResult
|
|
14
|
+
}) => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
getMeasured,
|
|
19
|
+
getSnapshot,
|
|
20
|
+
getLink
|
|
21
|
+
} = (0, _createLinkAccessor.createLinkAccessor)(getProps);
|
|
22
|
+
const {
|
|
23
|
+
interpolateStyle,
|
|
24
|
+
interpolateBounds
|
|
25
|
+
} = (0, _createInterpolators.createInterpolators)({
|
|
26
|
+
getProps,
|
|
27
|
+
getLink
|
|
28
|
+
});
|
|
29
|
+
const computeBounds = params => {
|
|
30
|
+
"worklet";
|
|
31
|
+
|
|
32
|
+
const props = getProps();
|
|
33
|
+
const options = params ?? {
|
|
34
|
+
id: ""
|
|
35
|
+
};
|
|
36
|
+
const tag = (0, _createBoundTag.createBoundTag)({
|
|
37
|
+
id: options.id,
|
|
38
|
+
group: options.group
|
|
39
|
+
});
|
|
40
|
+
const computed = (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
41
|
+
props,
|
|
42
|
+
options
|
|
43
|
+
});
|
|
44
|
+
const scopedTag = tag ?? "";
|
|
45
|
+
const target = Object.isExtensible(computed) ? computed : {
|
|
46
|
+
...computed
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperties(target, {
|
|
49
|
+
getMeasured: {
|
|
50
|
+
value: key => {
|
|
51
|
+
"worklet";
|
|
52
|
+
|
|
53
|
+
return getMeasured(scopedTag, key);
|
|
54
|
+
},
|
|
55
|
+
enumerable: false,
|
|
56
|
+
configurable: true
|
|
57
|
+
},
|
|
58
|
+
getSnapshot: {
|
|
59
|
+
value: key => {
|
|
60
|
+
"worklet";
|
|
61
|
+
|
|
62
|
+
return getSnapshot(scopedTag, key);
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
},
|
|
67
|
+
getLink: {
|
|
68
|
+
value: () => {
|
|
69
|
+
"worklet";
|
|
70
|
+
|
|
71
|
+
return getLink(scopedTag);
|
|
72
|
+
},
|
|
73
|
+
enumerable: false,
|
|
74
|
+
configurable: true
|
|
75
|
+
},
|
|
76
|
+
interpolateStyle: {
|
|
77
|
+
value: (property, fallback) => {
|
|
78
|
+
"worklet";
|
|
79
|
+
|
|
80
|
+
return interpolateStyle(scopedTag, property, fallback);
|
|
81
|
+
},
|
|
82
|
+
enumerable: false,
|
|
83
|
+
configurable: true
|
|
84
|
+
},
|
|
85
|
+
interpolateBounds: {
|
|
86
|
+
value: (property, fallbackOrTargetKey, fallback) => {
|
|
87
|
+
"worklet";
|
|
88
|
+
|
|
89
|
+
return interpolateBounds(scopedTag, property, fallbackOrTargetKey, fallback);
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
extendResult?.({
|
|
96
|
+
target: target,
|
|
97
|
+
props,
|
|
98
|
+
tag
|
|
99
|
+
});
|
|
100
|
+
return target;
|
|
101
|
+
};
|
|
102
|
+
return {
|
|
103
|
+
computeBounds,
|
|
104
|
+
getMeasured,
|
|
105
|
+
getSnapshot,
|
|
106
|
+
getLink,
|
|
107
|
+
interpolateStyle,
|
|
108
|
+
interpolateBounds
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
const createBoundsAccessorCore = params => {
|
|
112
|
+
"worklet";
|
|
113
|
+
|
|
114
|
+
const {
|
|
115
|
+
computeBounds,
|
|
116
|
+
getMeasured,
|
|
117
|
+
getSnapshot,
|
|
118
|
+
getLink,
|
|
119
|
+
interpolateStyle,
|
|
120
|
+
interpolateBounds
|
|
121
|
+
} = createBoundsAccessorParts(params);
|
|
122
|
+
return Object.assign(computeBounds, {
|
|
123
|
+
getMeasured,
|
|
124
|
+
getSnapshot,
|
|
125
|
+
getLink,
|
|
126
|
+
interpolateStyle,
|
|
127
|
+
interpolateBounds
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
exports.createBoundsAccessorCore = createBoundsAccessorCore;
|
|
131
|
+
//# sourceMappingURL=create-bounds-accessor-core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","computeBounds","params","props","options","id","tag","createBoundTag","group","computed","prepareBoundStyles","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createInterpolators = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _constants = require("../../../constants");
|
|
9
|
-
var
|
|
9
|
+
var _entries = require("../../../stores/bounds/internals/entries");
|
|
10
10
|
var _interpolateLinkStyle = require("./styles/interpolate-link-style");
|
|
11
11
|
const createInterpolators = ({
|
|
12
12
|
getProps,
|
|
@@ -33,10 +33,10 @@ const createInterpolators = ({
|
|
|
33
33
|
const currentKey = props.current?.route?.key;
|
|
34
34
|
const fb = fallback ?? 0;
|
|
35
35
|
const normalizedTag = String(tag);
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const currentValue =
|
|
39
|
-
const targetValue =
|
|
36
|
+
const currentEntry = currentKey ? (0, _entries.getEntry)(normalizedTag, currentKey) : null;
|
|
37
|
+
const targetEntry = (0, _entries.getEntry)(normalizedTag, targetKey);
|
|
38
|
+
const currentValue = currentEntry?.bounds?.[property] ?? fb;
|
|
39
|
+
const targetValue = targetEntry?.bounds?.[property] ?? fb;
|
|
40
40
|
return (0, _reactNativeReanimated.interpolate)(props.progress, range, [targetValue, currentValue], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
41
41
|
};
|
|
42
42
|
const interpolateBoundsFromLink = (tag, property, fallback) => {
|