react-native-screen-transitions 3.5.1 → 3.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -1081
- package/lib/commonjs/shared/animation/snap-to.js +4 -6
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +13 -17
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +46 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +3 -147
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +1 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +15 -36
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -32
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +2 -2
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +3 -5
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
- package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +8 -8
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +5 -5
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +2 -2
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +28 -7
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +3 -3
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/commonjs/shared/index.js +1 -1
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +31 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +58 -83
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +18 -9
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js +182 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js +55 -0
- package/lib/commonjs/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +161 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +78 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +147 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +52 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +50 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js +146 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js +204 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js +99 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +4 -24
- package/lib/commonjs/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js +122 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js +89 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +21 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +23 -0
- package/lib/commonjs/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +33 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +105 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +35 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +13 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +44 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -22
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +18 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +95 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js +126 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +183 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +41 -2
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +59 -0
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +15 -98
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +126 -0
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +31 -1
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +22 -0
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js +99 -46
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +6 -6
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/types/ownership.types.js +2 -2
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +49 -34
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/emit.js +22 -0
- package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +34 -59
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +1 -40
- package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +260 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +29 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +49 -147
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -13
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +26 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js +36 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +1 -8
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +4 -6
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +14 -18
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.js +8 -11
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +1 -138
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +13 -34
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -34
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +28 -30
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +12 -7
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +2 -2
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -5
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +2 -2
- package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +8 -8
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +2 -2
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +2 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/configs/presets.js +5 -5
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/configs/specs.js +2 -2
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +27 -6
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +3 -3
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +5 -5
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +3 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +26 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +100 -46
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +60 -85
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +12 -6
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +18 -9
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js +177 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pan-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js +50 -0
- package/lib/module/shared/providers/screen/gestures/activation/use-pinch-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js +157 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js +74 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js +143 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js +48 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js +59 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pan-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js +59 -0
- package/lib/module/shared/providers/screen/gestures/behaviors/use-pinch-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js +45 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pan-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js +38 -0
- package/lib/module/shared/providers/screen/gestures/builders/use-build-pinch-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.js +20 -38
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js +135 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js +189 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js +93 -0
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.js +0 -1
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.js +5 -25
- package/lib/module/shared/providers/screen/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js +115 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pan-phases.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js +82 -0
- package/lib/module/shared/providers/screen/gestures/helpers/pinch-phases.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js +17 -0
- package/lib/module/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js +124 -0
- package/lib/module/shared/providers/screen/gestures/helpers/runtime-options.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/validate-snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js +19 -0
- package/lib/module/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +28 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +101 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +30 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js +4 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js +39 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js +128 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js +41 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.js +14 -21
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +7 -7
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js +14 -0
- package/lib/module/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +91 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/module/shared/providers/screen/options/helpers.js +119 -0
- package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/module/shared/providers/screen/options/index.js +5 -0
- package/lib/module/shared/providers/screen/options/index.js.map +1 -0
- package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
- package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/options/types.js +4 -0
- package/lib/module/shared/providers/screen/options/types.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +9 -6
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +54 -4
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +178 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +42 -2
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +5 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +12 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +52 -0
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +8 -91
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
- package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +118 -0
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -8
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +31 -1
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +18 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -0
- package/lib/module/shared/typecheck/public-api.typecheck.js +100 -47
- package/lib/module/shared/typecheck/public-api.typecheck.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +25 -3
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +6 -5
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/types/ownership.types.js +2 -2
- package/lib/module/shared/utils/animation/animate-to-progress.js +49 -34
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/animation/emit.js +17 -0
- package/lib/module/shared/utils/animation/emit.js.map +1 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +34 -59
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
- package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -37
- package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +256 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +25 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +26 -124
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +0 -10
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +21 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/resolve-chain-target.js +32 -0
- package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js +0 -6
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -64
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +6 -3
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +14 -14
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +6 -3
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +5 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -3
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +3 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pan-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/activation/use-pinch-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pan-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/behaviors/use-pinch-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts +10 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pan-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/builders/use-build-pinch-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.d.ts +9 -11
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts +70 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-physics.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts +20 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/gesture-targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pan-phases.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/pinch-phases.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/runtime-options.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/helpers/validate-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +5 -5
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +154 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +19 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +16 -0
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +7 -29
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/{registry.d.ts → links.d.ts} +4 -9
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +8 -3
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
- package/lib/typescript/shared/types/animation.types.d.ts +51 -34
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +20 -1
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +70 -5
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +3 -3
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
- package/lib/typescript/shared/types/screen.types.d.ts +40 -5
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
- package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -8
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +18 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +0 -3
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -1
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
- package/package.json +2 -38
- package/src/shared/animation/snap-to.ts +8 -6
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -21
- package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -12
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +1 -183
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
- package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +1 -1
- package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +18 -55
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -68
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +54 -46
- package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
- package/src/shared/components/create-boundary-component/types.ts +0 -8
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
- package/src/shared/components/create-transition-aware-component.tsx +24 -10
- package/src/shared/components/native-screen.tsx +2 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +6 -5
- package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +2 -2
- package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
- package/src/shared/components/screen-container/layers/backdrop.tsx +8 -10
- package/src/shared/components/screen-container/layers/content.tsx +2 -2
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +2 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +1 -1
- package/src/shared/configs/presets.ts +5 -5
- package/src/shared/configs/specs.ts +2 -2
- package/src/shared/constants.ts +35 -5
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +2 -5
- package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
- package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
- package/src/shared/hooks/use-stable-callback-value.ts +3 -3
- package/src/shared/index.ts +5 -4
- package/src/shared/providers/register-bounds.provider.tsx +5 -6
- package/src/shared/providers/screen/animation/animation.provider.tsx +4 -0
- package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +47 -0
- package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +222 -56
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +70 -92
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +13 -11
- package/src/shared/providers/screen/animation/types.ts +5 -5
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +29 -10
- package/src/shared/providers/screen/gestures/activation/use-pan-activation.ts +244 -0
- package/src/shared/providers/screen/gestures/activation/use-pinch-activation.ts +72 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan-snap.strategy.ts +195 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pan.strategy.ts +76 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch-snap.strategy.ts +177 -0
- package/src/shared/providers/screen/gestures/behaviors/strategies/pinch.strategy.ts +73 -0
- package/src/shared/providers/screen/gestures/behaviors/use-pan-behavior.ts +100 -0
- package/src/shared/providers/screen/gestures/behaviors/use-pinch-behavior.ts +99 -0
- package/src/shared/providers/screen/gestures/builders/use-build-pan-gesture.ts +65 -0
- package/src/shared/providers/screen/gestures/builders/use-build-pinch-gesture.ts +48 -0
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +84 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-activation.ts +33 -48
- package/src/shared/providers/screen/gestures/helpers/gesture-directions.ts +205 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-physics.ts +125 -51
- package/src/shared/providers/screen/gestures/helpers/gesture-reset.ts +158 -0
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-snap-points.ts +0 -2
- package/src/shared/providers/{gestures → screen/gestures}/helpers/gesture-targets.ts +14 -36
- package/src/shared/providers/screen/gestures/helpers/pan-phases.ts +124 -0
- package/src/shared/providers/screen/gestures/helpers/pinch-phases.ts +98 -0
- package/src/shared/providers/screen/gestures/helpers/resolve-can-track-gesture.ts +23 -0
- package/src/shared/providers/screen/gestures/helpers/runtime-options.ts +159 -0
- package/src/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.ts +1 -1
- package/src/shared/providers/screen/gestures/helpers/walk-gesture-ancestors.ts +27 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +35 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +160 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +37 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/index.ts +1 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/update-scroll-gesture-state.ts +44 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/use-scroll-gesture-coordination.ts +180 -0
- package/src/shared/providers/screen/gestures/hooks/use-scroll-gesture-coordination/walk-up-scroll-gesture-coordination.ts +72 -0
- package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +53 -0
- package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/compute-claimed-directions.ts +24 -28
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +12 -9
- package/src/shared/providers/screen/gestures/ownership/should-defer-to-child-claim.ts +15 -0
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +93 -0
- package/src/shared/providers/screen/gestures/types.ts +222 -0
- package/src/shared/providers/screen/options/helpers.ts +271 -0
- package/src/shared/providers/screen/options/index.ts +6 -0
- package/src/shared/providers/screen/options/options.provider.tsx +43 -0
- package/src/shared/providers/screen/options/types.ts +35 -0
- package/src/shared/providers/screen/screen-composer.tsx +11 -8
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +4 -4
- package/src/shared/providers/screen/styles/constants.ts +50 -4
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +260 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
- package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +54 -7
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +5 -0
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +10 -0
- package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
- package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +74 -0
- package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
- package/src/shared/stores/bounds/helpers/keys.ts +0 -22
- package/src/shared/stores/bounds/helpers/link.helpers.ts +135 -0
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
- package/src/shared/stores/bounds/index.ts +13 -191
- package/src/shared/stores/bounds/internals/entries.ts +42 -0
- package/src/shared/stores/bounds/internals/groups.ts +99 -3
- package/src/shared/stores/bounds/internals/links.ts +183 -0
- package/src/shared/stores/bounds/internals/resolver.ts +40 -77
- package/src/shared/stores/bounds/internals/state.ts +0 -8
- package/src/shared/stores/bounds/types.ts +8 -3
- package/src/shared/stores/gesture.store.ts +54 -6
- package/src/shared/stores/scroll.store.ts +25 -0
- package/src/shared/typecheck/public-api.typecheck.ts +101 -51
- package/src/shared/types/animation.types.ts +71 -35
- package/src/shared/types/bounds.types.ts +28 -1
- package/src/shared/types/gesture.types.ts +89 -5
- package/src/shared/types/index.ts +6 -0
- package/src/shared/types/ownership.types.ts +2 -2
- package/src/shared/types/screen.types.ts +43 -6
- package/src/shared/utils/animation/animate-to-progress.ts +58 -39
- package/src/shared/utils/animation/emit.ts +18 -0
- package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +159 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +6 -6
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +64 -9
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +5 -3
- package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
- package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
- package/src/shared/utils/bounds/index.ts +28 -53
- package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
- package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -56
- package/src/shared/utils/bounds/navigation/reveal/build.ts +351 -0
- package/src/shared/utils/bounds/navigation/reveal/config.ts +26 -0
- package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
- package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +42 -193
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +0 -14
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
- package/src/shared/utils/bounds/navigation/zoom/math.ts +27 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
- package/src/shared/utils/bounds/types/options.ts +8 -1
- package/src/shared/utils/resolve-chain-target.ts +46 -0
- package/src/shared/utils/resolve-screen-transition-options.ts +0 -13
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
- package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/module/shared/hooks/gestures/types.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
- package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/index.js.map +0 -1
- package/lib/module/shared/providers/gestures/types.js.map +0 -1
- package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
- package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
- package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/module/shared/utils/animation/animate-many.js +0 -27
- package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
- package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
- package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
- package/src/shared/hooks/gestures/types.ts +0 -5
- package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
- package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
- package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
- package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
- package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
- package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
- package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
- package/src/shared/providers/gestures/types.ts +0 -45
- package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
- package/src/shared/stores/bounds/internals/registry.ts +0 -473
- package/src/shared/utils/animation/animate-many.ts +0 -40
- /package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +0 -0
- /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/module/shared/{utils/gesture → providers/screen/gestures/helpers}/validate-snap-points.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +0 -0
- /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
- /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
|
@@ -4,24 +4,19 @@ import {
|
|
|
4
4
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
5
5
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
6
6
|
VISIBLE_STYLE,
|
|
7
|
-
} from "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
} from "../../../../constants";
|
|
8
|
+
import type { TransitionInterpolatedStyle } from "../../../../types/animation.types";
|
|
9
|
+
import { createLinkAccessor } from "../../helpers/create-link-accessor";
|
|
10
|
+
import { getSourceBorderRadius, toNumber } from "../helpers";
|
|
11
|
+
import {
|
|
12
|
+
combineScales,
|
|
13
|
+
composeCompensatedTranslation,
|
|
14
|
+
computeCenterScaleShift,
|
|
15
|
+
resolveDirectionalDragScale,
|
|
16
|
+
resolveOpacityRangeTuple,
|
|
17
|
+
} from "../math";
|
|
15
18
|
import {
|
|
16
|
-
toNumber,
|
|
17
|
-
ZOOM_BACKGROUND_SCALE,
|
|
18
|
-
ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT,
|
|
19
|
-
ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
20
|
-
ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
21
19
|
ZOOM_DRAG_RESISTANCE,
|
|
22
|
-
ZOOM_DRAG_TRANSLATION_EXPONENT,
|
|
23
|
-
ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
|
|
24
|
-
ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
|
|
25
20
|
ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE,
|
|
26
21
|
ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
|
|
27
22
|
ZOOM_MASK_OUTSET,
|
|
@@ -30,132 +25,17 @@ import {
|
|
|
30
25
|
ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
|
|
31
26
|
} from "./config";
|
|
32
27
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./math";
|
|
28
|
+
getZoomContentTarget,
|
|
29
|
+
interpolateOpacityRange,
|
|
30
|
+
resolveBackgroundScale,
|
|
31
|
+
resolveDragScaleTuple,
|
|
32
|
+
resolveDragTranslationTuple,
|
|
33
|
+
} from "./helpers";
|
|
34
|
+
import { resolveDirectionalDragTranslation } from "./math";
|
|
40
35
|
import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
|
|
41
36
|
|
|
42
37
|
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1] as const;
|
|
43
38
|
|
|
44
|
-
/* -------------------------------------------------------------------------- */
|
|
45
|
-
/* LOCAL HELPERS */
|
|
46
|
-
/* -------------------------------------------------------------------------- */
|
|
47
|
-
|
|
48
|
-
function getSourceBorderRadius(resolvedPair: ResolvedTransitionPair): number {
|
|
49
|
-
"worklet";
|
|
50
|
-
|
|
51
|
-
return typeof resolvedPair.sourceStyles?.borderRadius === "number"
|
|
52
|
-
? resolvedPair.sourceStyles.borderRadius
|
|
53
|
-
: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function getZoomContentTarget({
|
|
57
|
-
explicitTarget,
|
|
58
|
-
screenLayout,
|
|
59
|
-
anchor,
|
|
60
|
-
resolvedPair,
|
|
61
|
-
}: {
|
|
62
|
-
explicitTarget: BoundsOptions["target"] | undefined;
|
|
63
|
-
screenLayout: Layout;
|
|
64
|
-
anchor: BoundsOptions["anchor"] | undefined;
|
|
65
|
-
resolvedPair: ResolvedTransitionPair;
|
|
66
|
-
}) {
|
|
67
|
-
"worklet";
|
|
68
|
-
|
|
69
|
-
if (explicitTarget) return explicitTarget;
|
|
70
|
-
|
|
71
|
-
const sourceBounds = resolvedPair.sourceBounds;
|
|
72
|
-
const screenWidth = screenLayout.width;
|
|
73
|
-
|
|
74
|
-
if (!sourceBounds || sourceBounds.width <= 0 || screenWidth <= 0) {
|
|
75
|
-
return "fullscreen" as const;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const height = (sourceBounds.height / sourceBounds.width) * screenWidth;
|
|
79
|
-
const verticalAnchor =
|
|
80
|
-
anchor === "bottomLeading" ||
|
|
81
|
-
anchor === "bottom" ||
|
|
82
|
-
anchor === "bottomTrailing"
|
|
83
|
-
? "bottom"
|
|
84
|
-
: anchor === "center" || anchor === "leading" || anchor === "trailing"
|
|
85
|
-
? "center"
|
|
86
|
-
: "top";
|
|
87
|
-
const y =
|
|
88
|
-
verticalAnchor === "top"
|
|
89
|
-
? 0
|
|
90
|
-
: verticalAnchor === "bottom"
|
|
91
|
-
? screenLayout.height - height
|
|
92
|
-
: (screenLayout.height - height) / 2;
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
x: 0,
|
|
96
|
-
y,
|
|
97
|
-
pageX: 0,
|
|
98
|
-
pageY: y,
|
|
99
|
-
width: screenWidth,
|
|
100
|
-
height,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function resolveDragScaleTuple(
|
|
105
|
-
value:
|
|
106
|
-
| readonly [shrinkMin: number, growMax: number, exponent?: number]
|
|
107
|
-
| undefined,
|
|
108
|
-
) {
|
|
109
|
-
"worklet";
|
|
110
|
-
|
|
111
|
-
return {
|
|
112
|
-
shrinkMin: value?.[0] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
113
|
-
growMax: value?.[1] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
114
|
-
exponent: value?.[2] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function resolveDragTranslationTuple(
|
|
119
|
-
value:
|
|
120
|
-
| readonly [negativeMax: number, positiveMax: number, exponent?: number]
|
|
121
|
-
| undefined,
|
|
122
|
-
) {
|
|
123
|
-
"worklet";
|
|
124
|
-
|
|
125
|
-
return {
|
|
126
|
-
negativeMax: value?.[0] ?? ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
|
|
127
|
-
positiveMax: value?.[1] ?? ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
|
|
128
|
-
exponent: value?.[2] ?? ZOOM_DRAG_TRANSLATION_EXPONENT,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function resolveBackgroundScale(value: number | undefined) {
|
|
133
|
-
"worklet";
|
|
134
|
-
|
|
135
|
-
return value ?? ZOOM_BACKGROUND_SCALE;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function interpolateOpacityRange(params: {
|
|
139
|
-
progress: number;
|
|
140
|
-
range: {
|
|
141
|
-
inputStart: number;
|
|
142
|
-
inputEnd: number;
|
|
143
|
-
outputStart: number;
|
|
144
|
-
outputEnd: number;
|
|
145
|
-
};
|
|
146
|
-
}) {
|
|
147
|
-
"worklet";
|
|
148
|
-
|
|
149
|
-
const { progress, range } = params;
|
|
150
|
-
|
|
151
|
-
return interpolate(
|
|
152
|
-
progress,
|
|
153
|
-
[range.inputStart, range.inputEnd],
|
|
154
|
-
[range.outputStart, range.outputEnd],
|
|
155
|
-
"clamp",
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
39
|
/* -------------------------------------------------------------------------- */
|
|
160
40
|
/* BUILD ZOOM STYLES */
|
|
161
41
|
/* -------------------------------------------------------------------------- */
|
|
@@ -171,14 +51,6 @@ export function buildZoomStyles({
|
|
|
171
51
|
return {};
|
|
172
52
|
}
|
|
173
53
|
|
|
174
|
-
const isGroup = tag.includes(":");
|
|
175
|
-
let buildEffectiveTag = tag;
|
|
176
|
-
if (isGroup) {
|
|
177
|
-
const group = tag.split(":")[0];
|
|
178
|
-
const groupActiveTag = getGroupActiveId(group)?.split(":")[0];
|
|
179
|
-
buildEffectiveTag = `${group}:${groupActiveTag ?? tag.split(":")[1]}`;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
54
|
/* ------------------------------ Shared Setup ------------------------------ */
|
|
183
55
|
|
|
184
56
|
const target = zoomOptions?.target;
|
|
@@ -187,27 +59,21 @@ export function buildZoomStyles({
|
|
|
187
59
|
progress,
|
|
188
60
|
layouts: { screen: screenLayout },
|
|
189
61
|
} = props;
|
|
190
|
-
const isEnteringTransition = !props.next;
|
|
191
|
-
const currentRouteKey = props.current?.route.key;
|
|
192
|
-
const previousRouteKey = props.previous?.route.key;
|
|
193
|
-
const nextRouteKey = props.next?.route.key;
|
|
194
62
|
|
|
195
63
|
const zoomAnchor = target === "bound" ? "center" : ZOOM_SHARED_OPTIONS.anchor;
|
|
196
64
|
|
|
65
|
+
const boundsAccessor = createLinkAccessor(() => props);
|
|
66
|
+
const link = boundsAccessor.getLink(tag);
|
|
67
|
+
|
|
68
|
+
if (!link) return {};
|
|
69
|
+
|
|
197
70
|
const baseRawOptions = {
|
|
198
|
-
id: buildEffectiveTag,
|
|
199
71
|
raw: true,
|
|
200
72
|
scaleMode: ZOOM_SHARED_OPTIONS.scaleMode,
|
|
201
73
|
} as const;
|
|
202
74
|
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
previousScreenKey: previousRouteKey,
|
|
206
|
-
nextScreenKey: nextRouteKey,
|
|
207
|
-
entering: isEnteringTransition,
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
const sourceBorderRadius = getSourceBorderRadius(linkPair);
|
|
75
|
+
const buildEffectiveTag = link.id;
|
|
76
|
+
const sourceBorderRadius = getSourceBorderRadius(link);
|
|
211
77
|
const targetBorderRadius = zoomOptions?.borderRadius ?? sourceBorderRadius;
|
|
212
78
|
const focusedElementOpacity = {
|
|
213
79
|
open: resolveOpacityRangeTuple({
|
|
@@ -238,33 +104,16 @@ export function buildZoomStyles({
|
|
|
238
104
|
? NAVIGATION_MASK_CONTAINER_STYLE_ID
|
|
239
105
|
: "content";
|
|
240
106
|
|
|
241
|
-
/**
|
|
242
|
-
* Local bounds compute helper for navigation zoom.
|
|
243
|
-
*
|
|
244
|
-
* If you're building a custom transition, prefer the public `bounds()` helper.
|
|
245
|
-
* We keep a local version here so zoom can share the same low-level compute path
|
|
246
|
-
* without re-entering the decorated public accessor.
|
|
247
|
-
*/
|
|
248
|
-
const bounds = <T extends BoundsOptions>(options: T) => {
|
|
249
|
-
"worklet";
|
|
250
|
-
|
|
251
|
-
return prepareBoundStyles({
|
|
252
|
-
props,
|
|
253
|
-
options,
|
|
254
|
-
resolvedPair: linkPair,
|
|
255
|
-
});
|
|
256
|
-
};
|
|
257
|
-
|
|
258
107
|
/* --------------------------- Gesture / Drag Values ------------------------- */
|
|
259
108
|
|
|
260
109
|
const normX = props.active.gesture.normX;
|
|
261
110
|
const normY = props.active.gesture.normY;
|
|
262
|
-
const
|
|
111
|
+
const initialGesture =
|
|
112
|
+
props.active.gesture.active ?? props.active.gesture.direction;
|
|
263
113
|
const isHorizontalDismiss =
|
|
264
|
-
|
|
265
|
-
initialDirection === "horizontal-inverted";
|
|
114
|
+
initialGesture === "horizontal" || initialGesture === "horizontal-inverted";
|
|
266
115
|
const isVerticalDismiss =
|
|
267
|
-
|
|
116
|
+
initialGesture === "vertical" || initialGesture === "vertical-inverted";
|
|
268
117
|
|
|
269
118
|
const horizontalDragTranslation = resolveDragTranslationTuple(
|
|
270
119
|
zoomOptions?.horizontalDragTranslation,
|
|
@@ -300,7 +149,7 @@ export function buildZoomStyles({
|
|
|
300
149
|
? resolveDirectionalDragScale({
|
|
301
150
|
normalized: normX,
|
|
302
151
|
dismissDirection:
|
|
303
|
-
|
|
152
|
+
initialGesture === "horizontal-inverted" ? "negative" : "positive",
|
|
304
153
|
shrinkMin: horizontalDragScale.shrinkMin,
|
|
305
154
|
growMax: horizontalDragScale.growMax,
|
|
306
155
|
exponent: horizontalDragScale.exponent,
|
|
@@ -310,7 +159,7 @@ export function buildZoomStyles({
|
|
|
310
159
|
? resolveDirectionalDragScale({
|
|
311
160
|
normalized: normY,
|
|
312
161
|
dismissDirection:
|
|
313
|
-
|
|
162
|
+
initialGesture === "vertical-inverted" ? "negative" : "positive",
|
|
314
163
|
shrinkMin: verticalDragScale.shrinkMin,
|
|
315
164
|
growMax: verticalDragScale.growMax,
|
|
316
165
|
exponent: verticalDragScale.exponent,
|
|
@@ -325,17 +174,17 @@ export function buildZoomStyles({
|
|
|
325
174
|
explicitTarget: target,
|
|
326
175
|
screenLayout,
|
|
327
176
|
anchor: ZOOM_SHARED_OPTIONS.anchor,
|
|
328
|
-
|
|
177
|
+
link,
|
|
329
178
|
});
|
|
330
179
|
|
|
331
|
-
const contentRaw =
|
|
180
|
+
const contentRaw = link.compute({
|
|
332
181
|
...baseRawOptions,
|
|
333
182
|
anchor: zoomAnchor,
|
|
334
183
|
method: "content",
|
|
335
184
|
target: focusedContentTarget,
|
|
336
185
|
} as const);
|
|
337
186
|
|
|
338
|
-
const maskRaw =
|
|
187
|
+
const maskRaw = link.compute({
|
|
339
188
|
...baseRawOptions,
|
|
340
189
|
anchor: ZOOM_SHARED_OPTIONS.anchor,
|
|
341
190
|
method: "size",
|
|
@@ -431,17 +280,17 @@ export function buildZoomStyles({
|
|
|
431
280
|
const didSourceComponentVisiblyHide =
|
|
432
281
|
!props.active.closing && unfocusedFade <= EPSILON;
|
|
433
282
|
|
|
434
|
-
const
|
|
283
|
+
const shouldHideUnfocusedElement =
|
|
435
284
|
!props.active.closing && didSourceComponentVisiblyHide;
|
|
436
285
|
|
|
437
286
|
const unfocusedElementTarget = getZoomContentTarget({
|
|
438
287
|
explicitTarget: target,
|
|
439
288
|
screenLayout,
|
|
440
289
|
anchor: ZOOM_SHARED_OPTIONS.anchor,
|
|
441
|
-
|
|
290
|
+
link,
|
|
442
291
|
});
|
|
443
292
|
|
|
444
|
-
const elementRaw =
|
|
293
|
+
const elementRaw = link.compute({
|
|
445
294
|
...baseRawOptions,
|
|
446
295
|
anchor: zoomAnchor,
|
|
447
296
|
method: "transform",
|
|
@@ -450,12 +299,12 @@ export function buildZoomStyles({
|
|
|
450
299
|
} as const);
|
|
451
300
|
|
|
452
301
|
const boundTargetCenterX =
|
|
453
|
-
target === "bound" &&
|
|
454
|
-
?
|
|
302
|
+
target === "bound" && link.destination?.bounds
|
|
303
|
+
? link.destination.bounds.pageX + link.destination.bounds.width / 2
|
|
455
304
|
: undefined;
|
|
456
305
|
const boundTargetCenterY =
|
|
457
|
-
target === "bound" &&
|
|
458
|
-
?
|
|
306
|
+
target === "bound" && link.destination?.bounds
|
|
307
|
+
? link.destination.bounds.pageY + link.destination.bounds.height / 2
|
|
459
308
|
: undefined;
|
|
460
309
|
|
|
461
310
|
const elementCenterX =
|
|
@@ -500,7 +349,7 @@ export function buildZoomStyles({
|
|
|
500
349
|
const elementScaleX = toNumber(elementRaw.scaleX, 1) * dragScale;
|
|
501
350
|
const elementScaleY = toNumber(elementRaw.scaleY, 1) * dragScale;
|
|
502
351
|
|
|
503
|
-
const resolvedElementStyle =
|
|
352
|
+
const resolvedElementStyle = shouldHideUnfocusedElement
|
|
504
353
|
? {
|
|
505
354
|
transform: [
|
|
506
355
|
{ translateX: 0 },
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { BoundsOptions } from "../types/options";
|
|
2
|
-
|
|
3
1
|
export const ZOOM_SHARED_OPTIONS = Object.freeze({
|
|
4
2
|
anchor: "top" as const,
|
|
5
3
|
scaleMode: "uniform" as const,
|
|
@@ -26,15 +24,3 @@ export const ZOOM_MASK_OUTSET = Object.freeze({
|
|
|
26
24
|
bottom: 0,
|
|
27
25
|
left: 0,
|
|
28
26
|
});
|
|
29
|
-
|
|
30
|
-
export const getZoomAnchor = (
|
|
31
|
-
target: BoundsOptions["target"] | undefined,
|
|
32
|
-
): BoundsOptions["anchor"] => {
|
|
33
|
-
"worklet";
|
|
34
|
-
return target === "bound" ? "center" : ZOOM_SHARED_OPTIONS.anchor;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const toNumber = (value: unknown, fallback = 0): number => {
|
|
38
|
-
"worklet";
|
|
39
|
-
return typeof value === "number" ? value : fallback;
|
|
40
|
-
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { interpolate } from "react-native-reanimated";
|
|
2
|
+
import type { BoundsLink } from "../../../../types/bounds.types";
|
|
3
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
+
import type { BoundsOptions } from "../../types/options";
|
|
5
|
+
import {
|
|
6
|
+
ZOOM_BACKGROUND_SCALE,
|
|
7
|
+
ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT,
|
|
8
|
+
ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
9
|
+
ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
10
|
+
ZOOM_DRAG_TRANSLATION_EXPONENT,
|
|
11
|
+
ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
|
|
12
|
+
ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
|
|
13
|
+
} from "./config";
|
|
14
|
+
|
|
15
|
+
export function getZoomContentTarget({
|
|
16
|
+
explicitTarget,
|
|
17
|
+
screenLayout,
|
|
18
|
+
anchor,
|
|
19
|
+
link,
|
|
20
|
+
}: {
|
|
21
|
+
explicitTarget: BoundsOptions["target"] | undefined;
|
|
22
|
+
screenLayout: Layout;
|
|
23
|
+
anchor: BoundsOptions["anchor"] | undefined;
|
|
24
|
+
link: BoundsLink;
|
|
25
|
+
}) {
|
|
26
|
+
"worklet";
|
|
27
|
+
|
|
28
|
+
if (explicitTarget) return explicitTarget;
|
|
29
|
+
|
|
30
|
+
const sourceBounds = link.source?.bounds;
|
|
31
|
+
const screenWidth = screenLayout.width;
|
|
32
|
+
|
|
33
|
+
if (!sourceBounds || sourceBounds.width <= 0 || screenWidth <= 0) {
|
|
34
|
+
return "fullscreen" as const;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const height = (sourceBounds.height / sourceBounds.width) * screenWidth;
|
|
38
|
+
const verticalAnchor =
|
|
39
|
+
anchor === "bottomLeading" ||
|
|
40
|
+
anchor === "bottom" ||
|
|
41
|
+
anchor === "bottomTrailing"
|
|
42
|
+
? "bottom"
|
|
43
|
+
: anchor === "center" || anchor === "leading" || anchor === "trailing"
|
|
44
|
+
? "center"
|
|
45
|
+
: "top";
|
|
46
|
+
const y =
|
|
47
|
+
verticalAnchor === "top"
|
|
48
|
+
? 0
|
|
49
|
+
: verticalAnchor === "bottom"
|
|
50
|
+
? screenLayout.height - height
|
|
51
|
+
: (screenLayout.height - height) / 2;
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
x: 0,
|
|
55
|
+
y,
|
|
56
|
+
pageX: 0,
|
|
57
|
+
pageY: y,
|
|
58
|
+
width: screenWidth,
|
|
59
|
+
height,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function resolveDragScaleTuple(
|
|
64
|
+
value:
|
|
65
|
+
| readonly [shrinkMin: number, growMax: number, exponent?: number]
|
|
66
|
+
| undefined,
|
|
67
|
+
) {
|
|
68
|
+
"worklet";
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
shrinkMin: value?.[0] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
72
|
+
growMax: value?.[1] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
73
|
+
exponent: value?.[2] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function resolveDragTranslationTuple(
|
|
78
|
+
value:
|
|
79
|
+
| readonly [negativeMax: number, positiveMax: number, exponent?: number]
|
|
80
|
+
| undefined,
|
|
81
|
+
) {
|
|
82
|
+
"worklet";
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
negativeMax: value?.[0] ?? ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
|
|
86
|
+
positiveMax: value?.[1] ?? ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
|
|
87
|
+
exponent: value?.[2] ?? ZOOM_DRAG_TRANSLATION_EXPONENT,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function resolveBackgroundScale(value: number | undefined) {
|
|
92
|
+
"worklet";
|
|
93
|
+
|
|
94
|
+
return value ?? ZOOM_BACKGROUND_SCALE;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function interpolateOpacityRange(params: {
|
|
98
|
+
progress: number;
|
|
99
|
+
range: {
|
|
100
|
+
inputStart: number;
|
|
101
|
+
inputEnd: number;
|
|
102
|
+
outputStart: number;
|
|
103
|
+
outputEnd: number;
|
|
104
|
+
};
|
|
105
|
+
}) {
|
|
106
|
+
"worklet";
|
|
107
|
+
|
|
108
|
+
const { progress, range } = params;
|
|
109
|
+
|
|
110
|
+
return interpolate(
|
|
111
|
+
progress,
|
|
112
|
+
[range.inputStart, range.inputEnd],
|
|
113
|
+
[range.outputStart, range.outputEnd],
|
|
114
|
+
"clamp",
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const resolveDirectionalDragTranslation = ({
|
|
2
|
+
normalized,
|
|
3
|
+
dimension,
|
|
4
|
+
resistance,
|
|
5
|
+
negativeMax,
|
|
6
|
+
positiveMax,
|
|
7
|
+
exponent = 1,
|
|
8
|
+
}: {
|
|
9
|
+
normalized: number;
|
|
10
|
+
dimension: number;
|
|
11
|
+
resistance: number;
|
|
12
|
+
negativeMax: number;
|
|
13
|
+
positiveMax: number;
|
|
14
|
+
exponent?: number;
|
|
15
|
+
}) => {
|
|
16
|
+
"worklet";
|
|
17
|
+
|
|
18
|
+
const clampedMagnitude = Math.min(1, Math.abs(normalized));
|
|
19
|
+
const curvedMagnitude = clampedMagnitude ** Math.max(1, exponent);
|
|
20
|
+
const baseDistance = Math.max(0, dimension) * resistance;
|
|
21
|
+
|
|
22
|
+
if (normalized < 0) {
|
|
23
|
+
return -baseDistance * negativeMax * curvedMagnitude;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return baseDistance * positiveMax * curvedMagnitude;
|
|
27
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
3
3
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
4
|
-
} from "
|
|
4
|
+
} from "../../../../constants";
|
|
5
5
|
import type {
|
|
6
6
|
BoundsInterpolationProps,
|
|
7
7
|
BoundsNavigationZoomOptions,
|
|
8
8
|
BoundsNavigationZoomStyle,
|
|
9
|
-
} from "
|
|
9
|
+
} from "../../../../types/bounds.types";
|
|
10
10
|
|
|
11
11
|
export type ZoomInterpolatedStyle = BoundsNavigationZoomStyle & {
|
|
12
12
|
[NAVIGATION_MASK_CONTAINER_STYLE_ID]?: BoundsNavigationZoomStyle[typeof NAVIGATION_MASK_CONTAINER_STYLE_ID];
|
|
@@ -120,7 +120,14 @@ export type BoundsOptions = {
|
|
|
120
120
|
space?: BoundsSpace;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* The
|
|
123
|
+
* The x/y offsets to apply to the bounds.
|
|
124
|
+
*/
|
|
125
|
+
offset?: { x?: number; y?: number };
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The x/y offsets to apply to the bounds.
|
|
129
|
+
*
|
|
130
|
+
* @deprecated Use `offset` instead.
|
|
124
131
|
*/
|
|
125
132
|
gestures?: { x?: number; y?: number };
|
|
126
133
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type ChainTarget = "self" | "parent" | "root" | { ancestor: number };
|
|
2
|
+
|
|
3
|
+
type ResolveChainTargetParams<T> = {
|
|
4
|
+
target: ChainTarget | undefined;
|
|
5
|
+
self: T | null | undefined;
|
|
6
|
+
ancestors: readonly T[];
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const isAncestorTarget = (
|
|
10
|
+
target: ChainTarget,
|
|
11
|
+
): target is { ancestor: number } => {
|
|
12
|
+
return typeof target === "object" && target !== null && "ancestor" in target;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export function resolveChainTarget<T>({
|
|
16
|
+
target,
|
|
17
|
+
self,
|
|
18
|
+
ancestors,
|
|
19
|
+
}: ResolveChainTargetParams<T>): T | null {
|
|
20
|
+
if (!self) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (!target || target === "self") {
|
|
25
|
+
return self;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (target === "parent") {
|
|
29
|
+
return ancestors[0] ?? null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (target === "root") {
|
|
33
|
+
return ancestors[ancestors.length - 1] ?? null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (!isAncestorTarget(target)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const depth = target.ancestor;
|
|
41
|
+
if (!Number.isInteger(depth) || depth < 1) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return ancestors[depth - 1] ?? null;
|
|
46
|
+
}
|
|
@@ -22,16 +22,3 @@ export const resolveSheetScrollGestureBehavior = (
|
|
|
22
22
|
|
|
23
23
|
return DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
export const resolveNavigationMaskEnabled = (
|
|
27
|
-
options: Pick<
|
|
28
|
-
ScreenTransitionConfig,
|
|
29
|
-
"navigationMaskEnabled" | "maskEnabled"
|
|
30
|
-
>,
|
|
31
|
-
): boolean => {
|
|
32
|
-
if (options.navigationMaskEnabled !== undefined) {
|
|
33
|
-
return options.navigationMaskEnabled;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return options.maskEnabled ?? false;
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_groups","_registry","_system","_resolvePendingSourceKey","VIEWPORT_RETRY_DELAY_MS","useCaptureDestinationBoundary","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","measureBoundary","animating","AnimationStore","getValue","closing","system","SystemStore","getBag","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","useSharedValue","retryToken","ensureLifecycleStartBlocked","get","set","releaseLifecycleStartBlock","cancelAnimation","scheduleViewportRetry","withDelay","withTiming","duration","useAnimatedReaction","retryTick","resolvedSourceKey","resolvePendingSourceKey","hasAttachableSourceLink","getPendingLink","hasSourceLink","hasDestination","hasDestinationLink","shouldBlock","getGroupActiveId","String","intent","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAQA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAKA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AAGA,MAAMO,uBAAuB,GAAG,EAAE;AAY3B,MAAMC,6BAA6B,GAAGA,CAAC;EAC7CC,cAAc;EACdC,OAAO;EACPC,EAAE;EACFC,KAAK;EACLC,gBAAgB;EAChBC,uBAAuB;EACvBC;AACoC,CAAC,KAAK;EAC1C,MAAMC,SAAS,GAAGC,yBAAc,CAACC,QAAQ,CAACL,gBAAgB,EAAE,WAAW,CAAC;EACxE,MAAMM,OAAO,GAAGF,yBAAc,CAACC,QAAQ,CAACL,gBAAgB,EAAE,SAAS,CAAC;EACpE,MAAMO,MAAM,GAAGC,mBAAW,CAACC,MAAM,CAACT,gBAAgB,CAAC;EACnD,MAAM;IAAEU,mBAAmB;IAAEC;EAAsB,CAAC,GAAGJ,MAAM,CAACK,OAAO;EACrE,MAAMC,wBAAwB,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAClD,MAAMC,UAAU,GAAG,IAAAD,qCAAc,EAAC,CAAC,CAAC;EAEpC,MAAME,2BAA2B,GAAGA,CAAA,KAAM;IACzC,SAAS;;IACT,IAAIH,wBAAwB,CAACI,GAAG,CAAC,CAAC,EAAE;MACnC;IACD;IAEAP,mBAAmB,CAAC,CAAC;IACrBG,wBAAwB,CAACK,GAAG,CAAC,CAAC,CAAC;EAChC,CAAC;EAED,MAAMC,0BAA0B,GAAGA,CAAA,KAAM;IACxC,SAAS;;IACT,IAAAC,sCAAe,EAACL,UAAU,CAAC;IAE3B,IAAI,CAACF,wBAAwB,CAACI,GAAG,CAAC,CAAC,EAAE;MACpC;IACD;IAEAN,qBAAqB,CAAC,CAAC;IACvBE,wBAAwB,CAACK,GAAG,CAAC,CAAC,CAAC;EAChC,CAAC;EAED,MAAMG,qBAAqB,GAAGA,CAAA,KAAM;IACnC,SAAS;;IACT,IAAAD,sCAAe,EAACL,UAAU,CAAC;IAC3BA,UAAU,CAACG,GAAG,CACb,IAAAI,gCAAS,EACR5B,uBAAuB,EACvB,IAAA6B,iCAAU,EAACR,UAAU,CAACE,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;MAAEO,QAAQ,EAAE;IAAE,CAAC,CACjD,CACD,CAAC;EACF,CAAC;EAED,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,MAAMC,SAAS,GAAGX,UAAU,CAACE,GAAG,CAAC,CAAC;IAElC,IAAIX,OAAO,CAACW,GAAG,CAAC,CAAC,IAAId,SAAS,CAACc,GAAG,CAAC,CAAC,EAAE;MACrC,OAAO,CAAC,CAAC,EAAES,SAAS,CAAC;IACtB;IAEA,MAAMC,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDhC,cAAc,EACdK,uBACD,CAAC;IACD,MAAM4B,uBAAuB,GAAGF,iBAAiB,GAC9C,IAAAG,wBAAc,EAAClC,cAAc,EAAE+B,iBAAiB,CAAC,KAAK,IAAI,IAC3D,IAAAI,uBAAa,EAACnC,cAAc,EAAE+B,iBAAiB,CAAC,GAC/C,KAAK;IACR,MAAMK,cAAc,GAAG,IAAAC,4BAAkB,EACxCrC,cAAc,EACdI,gBACD,CAAC;IAED,MAAMkC,WAAW,GAChBrC,OAAO,IACP,CAAC,CAAC8B,iBAAiB,IACnBE,uBAAuB,IACvB,CAACG,cAAc;IAEhB,IAAI,CAACE,WAAW,EAAE;MACjB,OAAO,CAAC,CAAC,EAAER,SAAS,CAAC;IACtB;IAEA,IAAI3B,KAAK,IAAI,IAAAoC,wBAAgB,EAACpC,KAAK,CAAC,KAAKqC,MAAM,CAACtC,EAAE,CAAC,EAAE;MACpD,OAAO,CAAC,CAAC,EAAE4B,SAAS,CAAC;IACtB;IAEA,OAAO,CAAC,CAAC,EAAEA,SAAS,CAAC;EACtB,CAAC,EACD,CAAC,CAACQ,WAAW,CAAC,KAAK;IAClB,SAAS;;IACT,IAAI,CAACA,WAAW,EAAE;MACjBf,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAH,2BAA2B,CAAC,CAAC;IAC7Bd,eAAe,CAAC;MAAEmC,MAAM,EAAE;IAAuB,CAAC,CAAC;IAEnD,IAAI,IAAAJ,4BAAkB,EAACrC,cAAc,EAAEI,gBAAgB,CAAC,EAAE;MACzDmB,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAE,qBAAqB,CAAC,CAAC;EACxB,CACD,CAAC;EAED,IAAAiB,sBAAe,EAAC,MAAM;IACrB,OAAO,MAAM;MACZ,IAAAC,8BAAO,EAAC,MAAM;QACb,SAAS;;QACT,IAAAnB,sCAAe,EAACL,UAAU,CAAC;QAE3B,IAAI,CAACF,wBAAwB,CAACI,GAAG,CAAC,CAAC,EAAE;UACpC;QACD;QAEAN,qBAAqB,CAAC,CAAC;QACvBE,wBAAwB,CAACK,GAAG,CAAC,CAAC,CAAC;MAChC,CAAC,CAAC,CAAC,CAAC;IACL,CAAC;EACF,CAAC,EAAE,CAACL,wBAAwB,EAAEE,UAAU,EAAEJ,qBAAqB,CAAC,CAAC;AAClE,CAAC;AAAC6B,OAAA,CAAA7C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useCaptureSourceBoundary = void 0;
|
|
7
|
-
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
-
var _groups = require("../../../stores/bounds/internals/groups");
|
|
9
|
-
const useCaptureSourceBoundary = params => {
|
|
10
|
-
const {
|
|
11
|
-
enabled,
|
|
12
|
-
id,
|
|
13
|
-
group,
|
|
14
|
-
nextScreenKey,
|
|
15
|
-
measureBoundary
|
|
16
|
-
} = params;
|
|
17
|
-
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
18
|
-
"worklet";
|
|
19
|
-
|
|
20
|
-
if (!enabled || !nextScreenKey) {
|
|
21
|
-
return 0;
|
|
22
|
-
}
|
|
23
|
-
return nextScreenKey;
|
|
24
|
-
}, (captureSignal, previousCaptureSignal) => {
|
|
25
|
-
"worklet";
|
|
26
|
-
|
|
27
|
-
if (!enabled) return;
|
|
28
|
-
if (!nextScreenKey) return;
|
|
29
|
-
if (!captureSignal || captureSignal === previousCaptureSignal) return;
|
|
30
|
-
const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
|
|
31
|
-
if (group && currentGroupActiveId !== String(id)) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
measureBoundary({
|
|
35
|
-
intent: "capture-source"
|
|
36
|
-
});
|
|
37
|
-
}, [enabled, id, group, nextScreenKey, measureBoundary]);
|
|
38
|
-
};
|
|
39
|
-
exports.useCaptureSourceBoundary = useCaptureSourceBoundary;
|
|
40
|
-
//# sourceMappingURL=use-capture-source-boundary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_groups","useCaptureSourceBoundary","params","enabled","id","group","nextScreenKey","measureBoundary","useAnimatedReaction","captureSignal","previousCaptureSignal","currentGroupActiveId","getGroupActiveId","String","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGO,MAAME,wBAAwB,GAAIC,MAOxC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,EAAE;IAAEC,KAAK;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAAGL,MAAM;EAErE,IAAAM,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACL,OAAO,IAAI,CAACG,aAAa,EAAE;MAC/B,OAAO,CAAC;IACT;IAEA,OAAOA,aAAa;EACrB,CAAC,EACD,CAACG,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACP,OAAO,EAAE;IACd,IAAI,CAACG,aAAa,EAAE;IACpB,IAAI,CAACG,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;IAE/D,MAAMC,oBAAoB,GAAGN,KAAK,GAAG,IAAAO,wBAAgB,EAACP,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIM,oBAAoB,KAAKE,MAAM,CAACT,EAAE,CAAC,EAAE;MACjD;IACD;IAEAG,eAAe,CAAC;MAAEO,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9C,CAAC,EACD,CAACX,OAAO,EAAEC,EAAE,EAAEC,KAAK,EAAEC,aAAa,EAAEC,eAAe,CACpD,CAAC;AACF,CAAC;AAACQ,OAAA,CAAAd,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|