react-native-screen-transitions 3.5.2 → 3.6.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +22 -29
- 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 +43 -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 +14 -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 +5 -15
- 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} +26 -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 -38
- 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 +29 -31
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +2 -2
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +18 -13
- 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 +12 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -12
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +8 -8
- 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 +40 -9
- package/lib/commonjs/shared/constants.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 +12 -20
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +86 -8
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +23 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +107 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +38 -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/gesture-progress.js +79 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +95 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +29 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +96 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +60 -87
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +51 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
- 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 +57 -18
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +32 -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 +27 -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 +32 -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-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/providers/screen/gestures/ownership/compute-claimed-directions.js +74 -0
- 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 +20 -7
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +108 -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/pan/build-pan-gesture.js +50 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js +210 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js +314 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +94 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +123 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +193 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +52 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +55 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +94 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js +133 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js +13 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +44 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +56 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js +23 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js +146 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +212 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +231 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js +36 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js +65 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js +184 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js +122 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js +176 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +26 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +294 -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/helpers/visibility-gate.js +45 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +69 -10
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +34 -8
- 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 +19 -2
- 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/animation.store.js +3 -7
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +49 -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/matching.js +1 -10
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -1
- 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 +16 -101
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +0 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/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 +120 -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/stores/system.store.js +3 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +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 +52 -36
- 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 +2 -55
- package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +375 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +20 -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 +111 -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 +2 -14
- 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 +25 -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/gesture-progress-mode.js +50 -0
- package/lib/commonjs/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js +29 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +3 -10
- 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 +23 -30
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +38 -0
- 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 +11 -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 +3 -13
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +96 -0
- 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 -40
- 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 +29 -31
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +12 -7
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +2 -2
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +17 -12
- 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 +12 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +2 -2
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +5 -13
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/shared/configs/presets.js +8 -8
- 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 +39 -8
- package/lib/module/shared/constants.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 +9 -17
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +87 -9
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +18 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +101 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +33 -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/gesture-progress.js +74 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +85 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +22 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +89 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +62 -89
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +46 -0
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
- 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 +58 -18
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +27 -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 +23 -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 +27 -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-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/providers/screen/gestures/ownership/compute-claimed-directions.js +70 -0
- 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 +19 -7
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +104 -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/pan/build-pan-gesture.js +45 -0
- package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js +205 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js +304 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +89 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +116 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +185 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +47 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +48 -0
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +38 -0
- package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +50 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +87 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js +126 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js +40 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +48 -0
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js +4 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +39 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +128 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +52 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js +19 -0
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/directions.js +135 -0
- package/lib/module/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js +199 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +218 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js +30 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js +58 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js +37 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js +174 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js +116 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +1 -1
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/module/shared/providers/screen/options/helpers.js +169 -0
- package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/module/shared/providers/screen/options/index.js +5 -0
- package/lib/module/shared/providers/screen/options/index.js.map +1 -0
- package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
- package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/options/types.js +4 -0
- package/lib/module/shared/providers/screen/options/types.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +9 -6
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +54 -4
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +21 -0
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +288 -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/helpers/visibility-gate.js +39 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -10
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -9
- 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 +20 -3
- 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/animation.store.js +3 -7
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +42 -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/matching.js +1 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -1
- 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 +10 -95
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +2 -21
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/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 +112 -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/stores/system.store.js +3 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +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 +52 -36
- 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 -51
- package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +371 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +16 -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 +93 -129
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -11
- 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 +20 -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/gesture-progress-mode.js +42 -0
- package/lib/module/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/module/shared/utils/resolve-chain-target.js +25 -0
- package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js +1 -7
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -4
- 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 +6 -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-boundary-presence.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +11 -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 +2 -5
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +17 -6
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +4 -4
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +4 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +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/gesture-progress.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +35 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +5 -4
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +7 -4
- 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 +17 -1
- 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 +11 -3
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.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-stable-runtime-config.d.ts +6 -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 +10 -5
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.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/pan/build-pan-gesture.d.ts +10 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures/helpers/gesture-activation.d.ts → screen/gestures/pan/pan-activation-rules.d.ts} +19 -20
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-rules.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +64 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +49 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts +37 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures/helpers/gesture-targets.d.ts → screen/gestures/shared/targets.d.ts} +2 -2
- package/lib/typescript/shared/providers/screen/gestures/shared/targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +155 -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 +30 -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/preserve-animated-props-only.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +23 -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/helpers/visibility-gate.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +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/animation.store.d.ts +1 -3
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +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 +14 -0
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +1 -2
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/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 +8 -32
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +2 -4
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/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/links.d.ts +12 -0
- 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 +10 -14
- 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/stores/system.store.d.ts +4 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +75 -34
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +21 -2
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +71 -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 +48 -6
- 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-interpolators.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +3 -10
- 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 +9 -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 +1 -4
- 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 +8 -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/gesture-progress-mode.d.ts +14 -0
- package/lib/typescript/shared/utils/gesture-progress-mode.d.ts.map +1 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts +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 -2
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
- package/package.json +5 -2
- 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 +30 -35
- package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -30
- 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 +11 -182
- 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 +3 -28
- package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +29 -57
- 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 -80
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +55 -47
- package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
- package/src/shared/components/create-boundary-component/types.ts +0 -8
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
- package/src/shared/components/create-transition-aware-component.tsx +24 -10
- package/src/shared/components/native-screen.tsx +2 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +1 -1
- package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +19 -8
- 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 +15 -9
- package/src/shared/components/screen-container/layers/content.tsx +2 -2
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +30 -16
- package/src/shared/components/screen-container/layers/surface-container.tsx +35 -15
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +5 -23
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +2 -5
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition-intent.ts +1 -1
- package/src/shared/configs/presets.ts +8 -8
- package/src/shared/configs/specs.ts +2 -2
- package/src/shared/constants.ts +52 -8
- 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 +8 -4
- package/src/shared/providers/register-bounds.provider.tsx +15 -17
- package/src/shared/providers/screen/animation/animation.provider.tsx +169 -13
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +13 -0
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +158 -0
- package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +63 -0
- package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +164 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +160 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.ts +41 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.ts +188 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +40 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -99
- package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +99 -0
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +20 -17
- package/src/shared/providers/screen/animation/types.ts +31 -1
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +96 -22
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +1 -7
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -19
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +85 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +31 -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 +24 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +33 -0
- package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +45 -0
- package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
- package/src/shared/providers/screen/gestures/ownership/compute-claimed-directions.ts +101 -0
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +27 -9
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +129 -0
- package/src/shared/providers/screen/gestures/pan/build-pan-gesture.ts +65 -0
- package/src/shared/providers/screen/gestures/pan/pan-activation-decision.ts +458 -0
- package/src/shared/providers/{gestures/helpers/gesture-activation.ts → screen/gestures/pan/pan-activation-rules.ts} +219 -173
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +132 -0
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +129 -0
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +246 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +92 -0
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +89 -0
- package/src/shared/providers/screen/gestures/pinch/build-pinch-gesture.ts +48 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +72 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +104 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-release.ts +183 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-reset.ts +65 -0
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +82 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/index.ts +1 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.ts +44 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +180 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +88 -0
- package/src/shared/providers/screen/gestures/shared/ancestors.ts +27 -0
- package/src/shared/providers/screen/gestures/shared/directions.ts +205 -0
- package/src/shared/providers/screen/gestures/shared/physics.ts +323 -0
- package/src/shared/providers/screen/gestures/shared/policy.ts +346 -0
- package/src/shared/providers/screen/gestures/shared/release.ts +43 -0
- package/src/shared/providers/screen/gestures/shared/reset.ts +74 -0
- package/src/shared/providers/screen/gestures/shared/runtime.ts +76 -0
- package/src/shared/providers/screen/gestures/shared/snap-points.ts +250 -0
- package/src/shared/providers/screen/gestures/shared/targets.ts +202 -0
- package/src/shared/providers/screen/gestures/types.ts +216 -0
- package/src/shared/providers/screen/options/helpers.ts +382 -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 +36 -0
- package/src/shared/providers/screen/screen-composer.tsx +11 -8
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +0 -2
- package/src/shared/providers/screen/styles/constants.ts +50 -4
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
- package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +22 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +414 -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/helpers/visibility-gate.ts +57 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +95 -18
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +37 -13
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +19 -1
- 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/animation.store.ts +3 -9
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +55 -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 +131 -0
- package/src/shared/stores/bounds/helpers/matching.ts +2 -16
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
- package/src/shared/stores/bounds/index.ts +14 -194
- package/src/shared/stores/bounds/internals/clear.ts +3 -42
- 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 +171 -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 +10 -14
- package/src/shared/stores/gesture.store.ts +54 -6
- package/src/shared/stores/scroll.store.ts +25 -0
- package/src/shared/stores/system.store.ts +8 -0
- package/src/shared/types/animation.types.ts +102 -35
- package/src/shared/types/bounds.types.ts +32 -2
- package/src/shared/types/gesture.types.ts +91 -5
- package/src/shared/types/index.ts +9 -0
- package/src/shared/types/ownership.types.ts +2 -2
- package/src/shared/types/screen.types.ts +56 -7
- package/src/shared/utils/animation/animate-to-progress.ts +69 -42
- 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 +160 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +8 -8
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +66 -11
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -6
- 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 -72
- package/src/shared/utils/bounds/navigation/reveal/build.ts +590 -0
- package/src/shared/utils/bounds/navigation/reveal/config.ts +15 -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 +144 -191
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +1 -15
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
- package/src/shared/utils/bounds/navigation/zoom/math.ts +25 -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/gesture-progress-mode.ts +67 -0
- package/src/shared/utils/resolve-chain-target.ts +33 -0
- package/src/shared/utils/resolve-screen-transition-options.ts +1 -16
- 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/hooks/reanimated/use-animated-debounce.js +0 -43
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/commonjs/shared/providers/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 +0 -322
- 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 +0 -44
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js +0 -113
- 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/animation/helpers/hydrate-transition-state.js +0 -110
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -33
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -28
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/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/providers/scroll-settle.provider.js +0 -25
- package/lib/commonjs/shared/providers/scroll-settle.provider.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/typecheck/public-api.typecheck.js +0 -174
- package/lib/commonjs/shared/typecheck/public-api.typecheck.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 +0 -81
- 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 +0 -56
- 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 +0 -106
- 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/hooks/reanimated/use-animated-debounce.js +0 -39
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/module/shared/providers/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 +0 -312
- 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 +0 -38
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js +0 -107
- 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/animation/helpers/hydrate-transition-state.js +0 -104
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -29
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -24
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/module/shared/providers/screen/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/providers/scroll-settle.provider.js +0 -19
- package/lib/module/shared/providers/scroll-settle.provider.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -44
- 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/typecheck/public-api.typecheck.js +0 -174
- package/lib/module/shared/typecheck/public-api.typecheck.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 +0 -77
- 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 +0 -50
- 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/hooks/reanimated/use-animated-debounce.d.ts +0 -13
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +0 -1
- package/lib/typescript/shared/providers/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 +0 -18
- 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/animation/helpers/hydrate-transition-state.d.ts +0 -33
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/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/providers/scroll-settle.provider.d.ts +0 -12
- package/lib/typescript/shared/providers/scroll-settle.provider.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 +0 -17
- 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 +0 -20
- 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/hooks/reanimated/use-animated-debounce.ts +0 -56
- 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-physics.ts +0 -214
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +0 -74
- package/src/shared/providers/gestures/helpers/gesture-targets.ts +0 -175
- 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/animation/helpers/hydrate-transition-state.ts +0 -169
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +0 -42
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +0 -29
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
- package/src/shared/providers/scroll-settle.provider.tsx +0 -24
- package/src/shared/stores/bounds/internals/registry.ts +0 -473
- package/src/shared/typecheck/public-api.typecheck.ts +0 -222
- package/src/shared/utils/animation/animate-many.ts +0 -40
- package/src/shared/utils/gesture/compute-claimed-directions.ts +0 -93
- package/src/shared/utils/gesture/validate-snap-points.ts +0 -74
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/index.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
package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.measureWithOverscrollAwareness = exports.adjustedMeasuredBoundsForOverscrollDeltas = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
const SCROLL_MEASUREMENT_EPSILON = 1;
|
|
9
|
+
const getOverscrollDelta = axisState => {
|
|
10
|
+
"worklet";
|
|
11
|
+
|
|
12
|
+
const maxOffset = Math.max(0, axisState.contentSize - axisState.layoutSize);
|
|
13
|
+
const clampedOffset = Math.min(Math.max(axisState.offset, 0), maxOffset);
|
|
14
|
+
const delta = axisState.offset - clampedOffset;
|
|
15
|
+
return Math.abs(delta) > SCROLL_MEASUREMENT_EPSILON ? delta : 0;
|
|
16
|
+
};
|
|
17
|
+
const adjustedMeasuredBoundsForOverscrollDeltas = (measured, scrollState) => {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
if (!scrollState) {
|
|
21
|
+
return measured;
|
|
22
|
+
}
|
|
23
|
+
const deltaX = getOverscrollDelta(scrollState.horizontal);
|
|
24
|
+
const deltaY = getOverscrollDelta(scrollState.vertical);
|
|
25
|
+
if (deltaX === 0 && deltaY === 0) {
|
|
26
|
+
return measured;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
...measured,
|
|
30
|
+
x: measured.x + deltaX,
|
|
31
|
+
y: measured.y + deltaY,
|
|
32
|
+
pageX: measured.pageX + deltaX,
|
|
33
|
+
pageY: measured.pageY + deltaY
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
exports.adjustedMeasuredBoundsForOverscrollDeltas = adjustedMeasuredBoundsForOverscrollDeltas;
|
|
37
|
+
const measureWithOverscrollAwareness = (ref, scrollState) => {
|
|
38
|
+
"worklet";
|
|
39
|
+
|
|
40
|
+
const measured = (0, _reactNativeReanimated.measure)(ref);
|
|
41
|
+
if (!measured) return null;
|
|
42
|
+
return adjustedMeasuredBoundsForOverscrollDeltas(measured, scrollState);
|
|
43
|
+
};
|
|
44
|
+
exports.measureWithOverscrollAwareness = measureWithOverscrollAwareness;
|
|
45
|
+
//# sourceMappingURL=scroll-measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","SCROLL_MEASUREMENT_EPSILON","getOverscrollDelta","axisState","maxOffset","Math","max","contentSize","layoutSize","clampedOffset","min","offset","delta","abs","adjustedMeasuredBoundsForOverscrollDeltas","measured","scrollState","deltaX","horizontal","deltaY","vertical","x","y","pageX","pageY","exports","measureWithOverscrollAwareness","ref","measure"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAUA,MAAMC,0BAA0B,GAAG,CAAC;AAEpC,MAAMC,kBAAkB,GAAIC,SAAiC,IAAa;EACzE,SAAS;;EACT,MAAMC,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,SAAS,CAACI,WAAW,GAAGJ,SAAS,CAACK,UAAU,CAAC;EAC3E,MAAMC,aAAa,GAAGJ,IAAI,CAACK,GAAG,CAACL,IAAI,CAACC,GAAG,CAACH,SAAS,CAACQ,MAAM,EAAE,CAAC,CAAC,EAAEP,SAAS,CAAC;EACxE,MAAMQ,KAAK,GAAGT,SAAS,CAACQ,MAAM,GAAGF,aAAa;EAE9C,OAAOJ,IAAI,CAACQ,GAAG,CAACD,KAAK,CAAC,GAAGX,0BAA0B,GAAGW,KAAK,GAAG,CAAC;AAChE,CAAC;AAEM,MAAME,yCAAyC,GAAGA,CACxDC,QAA4B,EAC5BC,WAAsC,KACd;EACxB,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,OAAOD,QAAQ;EAChB;EAEA,MAAME,MAAM,GAAGf,kBAAkB,CAACc,WAAW,CAACE,UAAU,CAAC;EACzD,MAAMC,MAAM,GAAGjB,kBAAkB,CAACc,WAAW,CAACI,QAAQ,CAAC;EAEvD,IAAIH,MAAM,KAAK,CAAC,IAAIE,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOJ,QAAQ;EAChB;EAEA,OAAO;IACN,GAAGA,QAAQ;IACXM,CAAC,EAAEN,QAAQ,CAACM,CAAC,GAAGJ,MAAM;IACtBK,CAAC,EAAEP,QAAQ,CAACO,CAAC,GAAGH,MAAM;IACtBI,KAAK,EAAER,QAAQ,CAACQ,KAAK,GAAGN,MAAM;IAC9BO,KAAK,EAAET,QAAQ,CAACS,KAAK,GAAGL;EACzB,CAAC;AACF,CAAC;AAACM,OAAA,CAAAX,yCAAA,GAAAA,yCAAA;AAEK,MAAMY,8BAA8B,GAAGA,CAC7CC,GAAsB,EACtBX,WAAsC,KACP;EAC/B,SAAS;;EACT,MAAMD,QAAQ,GAAG,IAAAa,8BAAO,EAACD,GAAG,CAAC;EAC7B,IAAI,CAACZ,QAAQ,EAAE,OAAO,IAAI;EAE1B,OAAOD,yCAAyC,CAACC,QAAQ,EAAEC,WAAW,CAAC;AACxE,CAAC;AAACS,OAAA,CAAAC,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js
CHANGED
|
@@ -6,33 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useBoundaryPresence = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
-
var
|
|
9
|
+
var _entries = require("../../../stores/bounds/internals/entries");
|
|
10
10
|
const useBoundaryPresence = params => {
|
|
11
11
|
const {
|
|
12
12
|
enabled,
|
|
13
13
|
sharedBoundTag,
|
|
14
14
|
currentScreenKey,
|
|
15
|
-
ancestorKeys,
|
|
16
|
-
navigatorKey,
|
|
17
|
-
ancestorNavigatorKeys,
|
|
18
15
|
boundaryConfig
|
|
19
16
|
} = params;
|
|
20
|
-
const ancestorKeysSignature = ancestorKeys.join("|");
|
|
21
|
-
const ancestorNavigatorKeysSignature = ancestorNavigatorKeys?.join("|");
|
|
22
|
-
|
|
23
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: <Depend on the ancestory keys signature>
|
|
24
17
|
(0, _react.useLayoutEffect)(() => {
|
|
25
18
|
if (!enabled) return;
|
|
26
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
27
|
-
|
|
28
|
-
boundaryConfig,
|
|
29
|
-
navigatorKey,
|
|
30
|
-
ancestorNavigatorKeys
|
|
19
|
+
(0, _reactNativeReanimated.runOnUI)(_entries.setEntry)(sharedBoundTag, currentScreenKey, {
|
|
20
|
+
boundaryConfig
|
|
31
21
|
});
|
|
32
22
|
return () => {
|
|
33
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
23
|
+
(0, _reactNativeReanimated.runOnUI)(_entries.removeEntry)(sharedBoundTag, currentScreenKey);
|
|
34
24
|
};
|
|
35
|
-
}, [enabled, sharedBoundTag, currentScreenKey,
|
|
25
|
+
}, [enabled, sharedBoundTag, currentScreenKey, boundaryConfig]);
|
|
36
26
|
};
|
|
37
27
|
exports.useBoundaryPresence = useBoundaryPresence;
|
|
38
28
|
//# sourceMappingURL=use-boundary-presence.js.map
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_entries","useBoundaryPresence","params","enabled","sharedBoundTag","currentScreenKey","boundaryConfig","useLayoutEffect","runOnUI","setEntry","removeEntry","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAMO,MAAMG,mBAAmB,GAAIC,MAKnC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,cAAc;IAAEC,gBAAgB;IAAEC;EAAe,CAAC,GAAGJ,MAAM;EAE5E,IAAAK,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACJ,OAAO,EAAE;IAEd,IAAAK,8BAAO,EAACC,iBAAQ,CAAC,CAACL,cAAc,EAAEC,gBAAgB,EAAE;MACnDC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAE,8BAAO,EAACE,oBAAW,CAAC,CAACN,cAAc,EAAEC,gBAAgB,CAAC;IACvD,CAAC;EACF,CAAC,EAAE,CAACF,OAAO,EAAEC,cAAc,EAAEC,gBAAgB,EAAEC,cAAc,CAAC,CAAC;AAChE,CAAC;AAACK,OAAA,CAAAV,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -3,27 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var _react = require("react");
|
|
6
|
+
exports.useInitialDestinationMeasurement = void 0;
|
|
8
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
8
|
var _animation = require("../../../stores/animation.store");
|
|
10
|
-
var
|
|
11
|
-
var _registry = require("../../../stores/bounds/internals/registry");
|
|
9
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
12
10
|
var _system = require("../../../stores/system.store");
|
|
13
|
-
var
|
|
11
|
+
var _boundaryLinkContext = require("./helpers/boundary-link-context");
|
|
12
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
14
13
|
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
15
|
-
const
|
|
14
|
+
const useInitialDestinationMeasurement = ({
|
|
16
15
|
sharedBoundTag,
|
|
17
16
|
enabled,
|
|
18
|
-
id,
|
|
19
|
-
group,
|
|
20
17
|
currentScreenKey,
|
|
21
|
-
|
|
18
|
+
preferredSourceScreenKey,
|
|
22
19
|
measureBoundary
|
|
23
20
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
const closing = _animation.AnimationStore.getValue(currentScreenKey, "closing");
|
|
21
|
+
const progress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
|
|
26
22
|
const system = _system.SystemStore.getBag(currentScreenKey);
|
|
23
|
+
const {
|
|
24
|
+
pendingLifecycleRequestKind
|
|
25
|
+
} = system;
|
|
27
26
|
const {
|
|
28
27
|
blockLifecycleStart,
|
|
29
28
|
unblockLifecycleStart
|
|
@@ -61,19 +60,24 @@ const useCaptureDestinationBoundary = ({
|
|
|
61
60
|
"worklet";
|
|
62
61
|
|
|
63
62
|
const retryTick = retryToken.get();
|
|
64
|
-
|
|
63
|
+
const hasPendingOpenRequest = pendingLifecycleRequestKind.get() === _system.LifecycleTransitionRequestKind.Open;
|
|
64
|
+
const isWaitingForOpenToStart = progress.get() <= 0;
|
|
65
|
+
if (!hasPendingOpenRequest || !isWaitingForOpenToStart) {
|
|
65
66
|
return [0, retryTick];
|
|
66
67
|
}
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
const linkContext = (0, _boundaryLinkContext.createLinkContext)({
|
|
69
|
+
sharedBoundTag,
|
|
70
|
+
currentScreenKey,
|
|
71
|
+
preferredSourceScreenKey
|
|
72
|
+
});
|
|
73
|
+
const shouldBlock = (0, _measurementRules.shouldBlockInitialDestinationMeasurement)({
|
|
74
|
+
enabled,
|
|
75
|
+
hasDestinationLink: linkContext.hasDestinationLink,
|
|
76
|
+
hasAttachableSourceLink: linkContext.hasAttachableSourceLink
|
|
77
|
+
});
|
|
71
78
|
if (!shouldBlock) {
|
|
72
79
|
return [0, retryTick];
|
|
73
80
|
}
|
|
74
|
-
if (group && (0, _groups.getGroupActiveId)(group) !== String(id)) {
|
|
75
|
-
return [0, retryTick];
|
|
76
|
-
}
|
|
77
81
|
return [1, retryTick];
|
|
78
82
|
}, ([shouldBlock]) => {
|
|
79
83
|
"worklet";
|
|
@@ -86,26 +90,12 @@ const useCaptureDestinationBoundary = ({
|
|
|
86
90
|
measureBoundary({
|
|
87
91
|
intent: "complete-destination"
|
|
88
92
|
});
|
|
89
|
-
if ((0,
|
|
93
|
+
if ((0, _links.hasDestinationLink)(sharedBoundTag, currentScreenKey)) {
|
|
90
94
|
releaseLifecycleStartBlock();
|
|
91
95
|
return;
|
|
92
96
|
}
|
|
93
97
|
scheduleViewportRetry();
|
|
94
98
|
});
|
|
95
|
-
(0, _react.useLayoutEffect)(() => {
|
|
96
|
-
return () => {
|
|
97
|
-
(0, _reactNativeReanimated.runOnUI)(() => {
|
|
98
|
-
"worklet";
|
|
99
|
-
|
|
100
|
-
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
101
|
-
if (!isBlockingLifecycleStart.get()) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
unblockLifecycleStart();
|
|
105
|
-
isBlockingLifecycleStart.set(0);
|
|
106
|
-
})();
|
|
107
|
-
};
|
|
108
|
-
}, [isBlockingLifecycleStart, retryToken, unblockLifecycleStart]);
|
|
109
99
|
};
|
|
110
|
-
exports.
|
|
111
|
-
//# sourceMappingURL=use-
|
|
100
|
+
exports.useInitialDestinationMeasurement = useInitialDestinationMeasurement;
|
|
101
|
+
//# sourceMappingURL=use-initial-destination-measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_animation","_links","_system","_boundaryLinkContext","_measurementRules","VIEWPORT_RETRY_DELAY_MS","useInitialDestinationMeasurement","sharedBoundTag","enabled","currentScreenKey","preferredSourceScreenKey","measureBoundary","progress","AnimationStore","getValue","system","SystemStore","getBag","pendingLifecycleRequestKind","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","useSharedValue","retryToken","ensureLifecycleStartBlocked","get","set","releaseLifecycleStartBlock","cancelAnimation","scheduleViewportRetry","withDelay","withTiming","duration","useAnimatedReaction","retryTick","hasPendingOpenRequest","LifecycleTransitionRequestKind","Open","isWaitingForOpenToStart","linkContext","createLinkContext","shouldBlock","shouldBlockInitialDestinationMeasurement","hasDestinationLink","hasAttachableSourceLink","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useInitialSourceMeasurement = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
const useInitialSourceMeasurement = params => {
|
|
9
|
+
const {
|
|
10
|
+
enabled,
|
|
11
|
+
nextScreenKey,
|
|
12
|
+
measureBoundary
|
|
13
|
+
} = params;
|
|
14
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
if (!enabled || !nextScreenKey) {
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
return nextScreenKey;
|
|
21
|
+
}, captureSignal => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
if (!enabled || !captureSignal) return;
|
|
25
|
+
measureBoundary({
|
|
26
|
+
intent: "capture-source"
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.useInitialSourceMeasurement = useInitialSourceMeasurement;
|
|
31
|
+
//# sourceMappingURL=use-initial-source-measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","useInitialSourceMeasurement","params","enabled","nextScreenKey","measureBoundary","useAnimatedReaction","captureSignal","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGO,MAAMC,2BAA2B,GAAIC,MAI3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAAGH,MAAM;EAE1D,IAAAI,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACH,OAAO,IAAI,CAACC,aAAa,EAAE;MAC/B,OAAO,CAAC;IACT;IAEA,OAAOA,aAAa;EACrB,CAAC,EACAG,aAAa,IAAK;IAClB,SAAS;;IACT,IAAI,CAACJ,OAAO,IAAI,CAACI,aAAa,EAAE;IAEhCF,eAAe,CAAC;MAAEG,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9C,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAR,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -6,20 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useMeasurer = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
9
|
+
var _scroll = require("../../../stores/scroll.store");
|
|
10
|
+
var _system = require("../../../stores/system.store");
|
|
11
|
+
var _applyMeasuredBoundsWrites = require("../helpers/apply-measured-bounds-writes");
|
|
12
|
+
var _boundaryLinkContext = require("./helpers/boundary-link-context");
|
|
13
13
|
var _measurement = require("./helpers/measurement");
|
|
14
14
|
var _measurementRules = require("./helpers/measurement-rules");
|
|
15
|
+
var _scrollMeasurement = require("./helpers/scroll-measurement");
|
|
15
16
|
const useMeasurer = ({
|
|
16
17
|
enabled,
|
|
17
18
|
sharedBoundTag,
|
|
18
19
|
preferredSourceScreenKey,
|
|
19
20
|
currentScreenKey,
|
|
20
|
-
ancestorKeys,
|
|
21
|
-
navigatorKey,
|
|
22
|
-
ancestorNavigatorKeys,
|
|
23
21
|
preparedStyles,
|
|
24
22
|
measuredAnimatedRef
|
|
25
23
|
}) => {
|
|
@@ -27,6 +25,8 @@ const useMeasurer = ({
|
|
|
27
25
|
width: viewportWidth,
|
|
28
26
|
height: viewportHeight
|
|
29
27
|
} = (0, _reactNative.useWindowDimensions)();
|
|
28
|
+
const scrollState = _scroll.ScrollStore.getValue(currentScreenKey, "state");
|
|
29
|
+
const pendingLifecycleStartBlockCount = _system.SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
30
30
|
return (0, _react.useCallback)(({
|
|
31
31
|
intent
|
|
32
32
|
} = {}) => {
|
|
@@ -34,46 +34,56 @@ const useMeasurer = ({
|
|
|
34
34
|
|
|
35
35
|
if (!enabled) return;
|
|
36
36
|
const intents = (0, _measurementRules.getMeasureIntentFlags)(intent);
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
const writePlan = (0, _measurementRules.resolveMeasureWritePlan)({
|
|
37
|
+
const currentLink = (0, _boundaryLinkContext.createLinkContext)({
|
|
38
|
+
sharedBoundTag,
|
|
39
|
+
currentScreenKey,
|
|
40
|
+
preferredSourceScreenKey
|
|
41
|
+
});
|
|
42
|
+
const writePlan = (0, _measurementRules.buildMeasurementWritePlan)({
|
|
44
43
|
intents,
|
|
45
|
-
hasPendingLink,
|
|
46
|
-
hasSourceLink:
|
|
47
|
-
hasDestinationLink:
|
|
48
|
-
hasAttachableSourceLink
|
|
44
|
+
hasPendingLink: currentLink.hasPendingLink,
|
|
45
|
+
hasSourceLink: currentLink.hasSourceLink,
|
|
46
|
+
hasDestinationLink: currentLink.hasDestinationLink,
|
|
47
|
+
hasAttachableSourceLink: currentLink.hasAttachableSourceLink
|
|
49
48
|
});
|
|
50
|
-
if (!writePlan.writesAny)
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
const measured = (0, _reactNativeReanimated.measure)(measuredAnimatedRef);
|
|
49
|
+
if (!writePlan.writesAny) return;
|
|
50
|
+
const measured = (0, _scrollMeasurement.measureWithOverscrollAwareness)(measuredAnimatedRef, scrollState.get());
|
|
54
51
|
if (!measured) return;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Source Pass
|
|
55
|
+
* Source intents are intentionally used & kept unguarded.
|
|
56
|
+
*/
|
|
57
|
+
const sourceWrites = {
|
|
58
|
+
shouldSetSource: writePlan.captureSource,
|
|
59
|
+
shouldUpdateSource: writePlan.refreshSource
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* - Destination Pass -
|
|
64
|
+
* Be strict while lifecycle start is blocked for destination capture.
|
|
65
|
+
* This is the initial attach window: the transition has not started yet,
|
|
66
|
+
* and malformed off-screen destination measurements should keep the
|
|
67
|
+
* lifecycle blocked until a valid retry lands.
|
|
68
|
+
*/
|
|
69
|
+
const shouldGuardDestinationViewport = pendingLifecycleStartBlockCount.get() > 0;
|
|
70
|
+
const viewportAllowsDestinationWrite = !shouldGuardDestinationViewport || (0, _measurement.isMeasurementInViewport)(measured, viewportWidth, viewportHeight);
|
|
71
|
+
const destinationWrites = {
|
|
72
|
+
shouldSetDestination: viewportAllowsDestinationWrite && writePlan.completeDestination,
|
|
73
|
+
shouldUpdateDestination: viewportAllowsDestinationWrite && writePlan.refreshDestination
|
|
74
|
+
};
|
|
75
|
+
const shouldApplyMeasurement = sourceWrites.shouldSetSource || sourceWrites.shouldUpdateSource || destinationWrites.shouldSetDestination || destinationWrites.shouldUpdateDestination;
|
|
76
|
+
if (!shouldApplyMeasurement) return;
|
|
61
77
|
(0, _applyMeasuredBoundsWrites.applyMeasuredBoundsWrites)({
|
|
62
78
|
sharedBoundTag,
|
|
63
79
|
currentScreenKey,
|
|
64
80
|
measured,
|
|
65
81
|
preparedStyles,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
expectedSourceScreenKey,
|
|
70
|
-
shouldWriteEntry: hasMeasuredEntryChanged,
|
|
71
|
-
shouldSetSource: writePlan.captureSource,
|
|
72
|
-
shouldUpdateSource: writePlan.refreshSource && hasMeasuredEntryChanged,
|
|
73
|
-
shouldUpdateDestination: writePlan.refreshDestination && destinationInViewport && hasMeasuredEntryChanged,
|
|
74
|
-
shouldSetDestination: writePlan.completeDestination && destinationInViewport
|
|
82
|
+
expectedSourceScreenKey: currentLink.expectedSourceScreenKey,
|
|
83
|
+
...sourceWrites,
|
|
84
|
+
...destinationWrites
|
|
75
85
|
});
|
|
76
|
-
}, [enabled, sharedBoundTag, preferredSourceScreenKey, currentScreenKey,
|
|
86
|
+
}, [enabled, sharedBoundTag, preferredSourceScreenKey, currentScreenKey, preparedStyles, measuredAnimatedRef, viewportWidth, viewportHeight, scrollState, pendingLifecycleStartBlockCount]);
|
|
77
87
|
};
|
|
78
88
|
exports.useMeasurer = useMeasurer;
|
|
79
89
|
//# sourceMappingURL=use-measurer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_scroll","_system","_applyMeasuredBoundsWrites","_boundaryLinkContext","_measurement","_measurementRules","_scrollMeasurement","useMeasurer","enabled","sharedBoundTag","preferredSourceScreenKey","currentScreenKey","preparedStyles","measuredAnimatedRef","width","viewportWidth","height","viewportHeight","useWindowDimensions","scrollState","ScrollStore","getValue","pendingLifecycleStartBlockCount","SystemStore","useCallback","intent","intents","getMeasureIntentFlags","currentLink","createLinkContext","writePlan","buildMeasurementWritePlan","hasPendingLink","hasSourceLink","hasDestinationLink","hasAttachableSourceLink","writesAny","measured","measureWithOverscrollAwareness","get","sourceWrites","shouldSetSource","captureSource","shouldUpdateSource","refreshSource","shouldGuardDestinationViewport","viewportAllowsDestinationWrite","isMeasurementInViewport","destinationWrites","shouldSetDestination","completeDestination","shouldUpdateDestination","refreshDestination","shouldApplyMeasurement","applyMeasuredBoundsWrites","expectedSourceScreenKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-measurer.ts"],"mappings":"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","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js
CHANGED
|
@@ -7,8 +7,7 @@ exports.useRefreshBoundary = void 0;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _animation = require("../../../stores/animation.store");
|
|
9
9
|
var _groups = require("../../../stores/bounds/internals/groups");
|
|
10
|
-
var
|
|
11
|
-
var _gesture = require("../../../stores/gesture.store");
|
|
10
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
12
11
|
const useRefreshBoundary = ({
|
|
13
12
|
enabled,
|
|
14
13
|
sharedBoundTag,
|
|
@@ -20,48 +19,47 @@ const useRefreshBoundary = ({
|
|
|
20
19
|
measureBoundary
|
|
21
20
|
}) => {
|
|
22
21
|
const currentWillAnimate = _animation.AnimationStore.getValue(currentScreenKey, "willAnimate");
|
|
23
|
-
const
|
|
24
|
-
const
|
|
22
|
+
const currentClosing = _animation.AnimationStore.getValue(currentScreenKey, "closing");
|
|
23
|
+
const currentEntering = _animation.AnimationStore.getValue(currentScreenKey, "entering");
|
|
24
|
+
const currentAnimating = _animation.AnimationStore.getValue(currentScreenKey, "progressAnimating");
|
|
25
|
+
const currentProgress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
|
|
25
26
|
const nextWillAnimate = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "willAnimate") : null;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
(0, _reactNativeReanimated.useAnimatedReaction)(() =>
|
|
27
|
+
const nextClosing = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "closing") : null;
|
|
28
|
+
const nextEntering = nextScreenKey ? _animation.AnimationStore.getValue(nextScreenKey, "entering") : null;
|
|
29
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
29
30
|
"worklet";
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const hasSource = (0, _registry.hasSourceLink)(sharedBoundTag, currentScreenKey);
|
|
42
|
-
const intent = !hasSource ? "capture-source" : group ? "refresh-source" : null;
|
|
43
|
-
if (!intent) {
|
|
44
|
-
return;
|
|
32
|
+
const shouldRefresh = hasNextScreen ? nextWillAnimate?.get() ?? 0 : currentWillAnimate.get();
|
|
33
|
+
const closing = hasNextScreen ? nextClosing?.get() ?? 0 : currentClosing.get();
|
|
34
|
+
const entering = hasNextScreen ? nextEntering?.get() ?? 0 : currentEntering.get();
|
|
35
|
+
|
|
36
|
+
// Programmatic close marks `closing` before pulsing `willAnimate`.
|
|
37
|
+
// This frame is still settled, so destination refresh is valid and
|
|
38
|
+
// reveal can compute initial/current destination delta before progress moves.
|
|
39
|
+
const canRefreshPreCloseDestination = !hasNextScreen && shouldRefresh && closing && !entering && !currentAnimating.get() && currentProgress.get() >= 1;
|
|
40
|
+
if (canRefreshPreCloseDestination || shouldRefresh && !closing && !entering) {
|
|
41
|
+
return 1;
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
(0, _reactNativeReanimated.useAnimatedReaction)(() => !hasNextScreen ? currentWillAnimate.get() : 0, (nextValue, previousValue) => {
|
|
43
|
+
return 0;
|
|
44
|
+
}, (shouldRefresh, prevShouldRefresh) => {
|
|
51
45
|
"worklet";
|
|
52
46
|
|
|
53
|
-
if (!enabled ||
|
|
54
|
-
if (nextValue === 0 || nextValue === previousValue) return;
|
|
47
|
+
if (!enabled || !shouldRefresh || shouldRefresh === prevShouldRefresh) return;
|
|
55
48
|
const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
|
|
56
49
|
if (group && currentGroupActiveId !== String(id)) {
|
|
57
50
|
return;
|
|
58
51
|
}
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
if (hasNextScreen) {
|
|
53
|
+
if (!nextScreenKey || !(0, _links.hasSourceLink)(sharedBoundTag, currentScreenKey) || !(0, _links.hasDestinationLink)(sharedBoundTag, nextScreenKey)) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
measureBoundary({
|
|
57
|
+
intent: "refresh-source"
|
|
58
|
+
});
|
|
61
59
|
return;
|
|
62
60
|
}
|
|
63
61
|
measureBoundary({
|
|
64
|
-
intent:
|
|
62
|
+
intent: "refresh-destination"
|
|
65
63
|
});
|
|
66
64
|
});
|
|
67
65
|
};
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_animation","_groups","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_animation","_groups","_links","useRefreshBoundary","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","measureBoundary","currentWillAnimate","AnimationStore","getValue","currentClosing","currentEntering","currentAnimating","currentProgress","nextWillAnimate","nextClosing","nextEntering","useAnimatedReaction","shouldRefresh","get","closing","entering","canRefreshPreCloseDestination","prevShouldRefresh","currentGroupActiveId","getGroupActiveId","String","hasSourceLink","hasDestinationLink","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAiBO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,cAAc;EACdC,EAAE;EACFC,KAAK;EACLC,gBAAgB;EAChBC,aAAa;EACbC,aAAa;EACbC;AACyB,CAAC,KAAK;EAC/B,MAAMC,kBAAkB,GAAGC,yBAAc,CAACC,QAAQ,CACjDN,gBAAgB,EAChB,aACD,CAAC;EACD,MAAMO,cAAc,GAAGF,yBAAc,CAACC,QAAQ,CAACN,gBAAgB,EAAE,SAAS,CAAC;EAC3E,MAAMQ,eAAe,GAAGH,yBAAc,CAACC,QAAQ,CAACN,gBAAgB,EAAE,UAAU,CAAC;EAC7E,MAAMS,gBAAgB,GAAGJ,yBAAc,CAACC,QAAQ,CAC/CN,gBAAgB,EAChB,mBACD,CAAC;EACD,MAAMU,eAAe,GAAGL,yBAAc,CAACC,QAAQ,CAACN,gBAAgB,EAAE,UAAU,CAAC;EAC7E,MAAMW,eAAe,GAAGV,aAAa,GAClCI,yBAAc,CAACC,QAAQ,CAACL,aAAa,EAAE,aAAa,CAAC,GACrD,IAAI;EAEP,MAAMW,WAAW,GAAGX,aAAa,GAC9BI,yBAAc,CAACC,QAAQ,CAACL,aAAa,EAAE,SAAS,CAAC,GACjD,IAAI;EACP,MAAMY,YAAY,GAAGZ,aAAa,GAC/BI,yBAAc,CAACC,QAAQ,CAACL,aAAa,EAAE,UAAU,CAAC,GAClD,IAAI;EAEP,IAAAa,0CAAmB,EAClB,MAAM;IACL,SAAS;;IAET,MAAMC,aAAa,GAAGb,aAAa,GAC/BS,eAAe,EAAEK,GAAG,CAAC,CAAC,IAAI,CAAC,GAC5BZ,kBAAkB,CAACY,GAAG,CAAC,CAAC;IAC3B,MAAMC,OAAO,GAAGf,aAAa,GACzBU,WAAW,EAAEI,GAAG,CAAC,CAAC,IAAI,CAAC,GACxBT,cAAc,CAACS,GAAG,CAAC,CAAC;IACvB,MAAME,QAAQ,GAAGhB,aAAa,GAC1BW,YAAY,EAAEG,GAAG,CAAC,CAAC,IAAI,CAAC,GACzBR,eAAe,CAACQ,GAAG,CAAC,CAAC;;IAExB;IACA;IACA;IACA,MAAMG,6BAA6B,GAClC,CAACjB,aAAa,IACda,aAAa,IACbE,OAAO,IACP,CAACC,QAAQ,IACT,CAACT,gBAAgB,CAACO,GAAG,CAAC,CAAC,IACvBN,eAAe,CAACM,GAAG,CAAC,CAAC,IAAI,CAAC;IAE3B,IACCG,6BAA6B,IAC5BJ,aAAa,IAAI,CAACE,OAAO,IAAI,CAACC,QAAS,EACvC;MACD,OAAO,CAAC;IACT;IAEA,OAAO,CAAC;EACT,CAAC,EACD,CAACH,aAAa,EAAEK,iBAAiB,KAAK;IACrC,SAAS;;IAET,IAAI,CAACxB,OAAO,IAAI,CAACmB,aAAa,IAAIA,aAAa,KAAKK,iBAAiB,EACpE;IAED,MAAMC,oBAAoB,GAAGtB,KAAK,GAAG,IAAAuB,wBAAgB,EAACvB,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIsB,oBAAoB,KAAKE,MAAM,CAACzB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,IAAII,aAAa,EAAE;MAClB,IACC,CAACD,aAAa,IACd,CAAC,IAAAuB,oBAAa,EAAC3B,cAAc,EAAEG,gBAAgB,CAAC,IAChD,CAAC,IAAAyB,yBAAkB,EAAC5B,cAAc,EAAEI,aAAa,CAAC,EACjD;QACD;MACD;MAEAE,eAAe,CAAC;QAAEuB,MAAM,EAAE;MAAiB,CAAC,CAAC;MAC7C;IACD;IAEAvB,eAAe,CAAC;MACfuB,MAAM,EAAE;IACT,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAhC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -30,33 +30,37 @@ const useBoundaryOwner = params => {
|
|
|
30
30
|
associatedTargetStyles
|
|
31
31
|
} = params;
|
|
32
32
|
const warnedAboutMultipleTargetsRef = (0, _react.useRef)(false);
|
|
33
|
-
const [
|
|
34
|
-
const registerTargetRef = (0, _react.useCallback)(targetRef => {
|
|
35
|
-
|
|
36
|
-
if (prev
|
|
33
|
+
const [targetEntry, setTargetEntry] = (0, _react.useState)(null);
|
|
34
|
+
const registerTargetRef = (0, _react.useCallback)((targetRef, preparedStyles) => {
|
|
35
|
+
setTargetEntry(prev => {
|
|
36
|
+
if (prev?.ref === targetRef) {
|
|
37
37
|
return prev;
|
|
38
38
|
}
|
|
39
|
-
if (__DEV__ && prev
|
|
39
|
+
if (__DEV__ && prev !== null && !warnedAboutMultipleTargetsRef.current) {
|
|
40
40
|
warnedAboutMultipleTargetsRef.current = true;
|
|
41
41
|
console.warn(MULTIPLE_TARGETS_WARNING);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return prev ?? {
|
|
44
|
+
ref: targetRef,
|
|
45
|
+
preparedStyles
|
|
46
|
+
};
|
|
44
47
|
});
|
|
45
48
|
}, []);
|
|
46
49
|
const unregisterTargetRef = (0, _react.useCallback)(targetRef => {
|
|
47
|
-
|
|
50
|
+
setTargetEntry(prev => prev?.ref === targetRef ? null : prev);
|
|
48
51
|
}, []);
|
|
49
52
|
const contextValue = (0, _react.useMemo)(() => ({
|
|
50
53
|
ownerRef,
|
|
51
54
|
registerTargetRef,
|
|
52
55
|
unregisterTargetRef,
|
|
53
|
-
activeTargetRef:
|
|
56
|
+
activeTargetRef: targetEntry?.ref ?? null,
|
|
54
57
|
associatedTargetStyles
|
|
55
|
-
}), [ownerRef, registerTargetRef, unregisterTargetRef,
|
|
58
|
+
}), [ownerRef, registerTargetRef, unregisterTargetRef, targetEntry, associatedTargetStyles]);
|
|
56
59
|
return {
|
|
57
60
|
contextValue,
|
|
58
|
-
hasActiveTarget:
|
|
59
|
-
measuredRef:
|
|
61
|
+
hasActiveTarget: targetEntry !== null,
|
|
62
|
+
measuredRef: targetEntry?.ref ?? ownerRef,
|
|
63
|
+
targetPreparedStyles: targetEntry?.preparedStyles
|
|
60
64
|
};
|
|
61
65
|
};
|
|
62
66
|
exports.useBoundaryOwner = useBoundaryOwner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_jsxRuntime","BoundaryOwnerContext","createContext","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_OWNER_WARNING","exports","BoundaryOwnerProvider","props","value","children","jsx","Provider","useBoundaryOwnerContext","useContext","useBoundaryOwner","params","ownerRef","associatedTargetStyles","warnedAboutMultipleTargetsRef","useRef","
|
|
1
|
+
{"version":3,"names":["_react","require","_jsxRuntime","BoundaryOwnerContext","createContext","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_OWNER_WARNING","exports","BoundaryOwnerProvider","props","value","children","jsx","Provider","useBoundaryOwnerContext","useContext","useBoundaryOwner","params","ownerRef","associatedTargetStyles","warnedAboutMultipleTargetsRef","useRef","targetEntry","setTargetEntry","useState","registerTargetRef","useCallback","targetRef","preparedStyles","prev","ref","__DEV__","current","console","warn","unregisterTargetRef","contextValue","useMemo","activeTargetRef","hasActiveTarget","measuredRef","targetPreparedStyles"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/providers/boundary-owner.provider.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAQe,IAAAC,WAAA,GAAAD,OAAA;AAyBf,MAAME,oBAAoB,gBAAG,IAAAC,oBAAa,EACzC,IACD,CAAC;AAED,MAAMC,wBAAwB,GAC7B,gKAAgK;AAE1J,MAAMC,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GACxC,kLAAkL;AAE5K,MAAME,qBAAqB,GAAIC,KAGrC,IAAK;EACL,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGF,KAAK;EAEjC,oBACC,IAAAP,WAAA,CAAAU,GAAA,EAACT,oBAAoB,CAACU,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAC,QAAA,EAC1CA;EAAQ,CACqB,CAAC;AAElC,CAAC;AAACJ,OAAA,CAAAC,qBAAA,GAAAA,qBAAA;AAEK,MAAMM,uBAAuB,GAAGA,CAAA,KAAM;EAC5C,OAAO,IAAAC,iBAAU,EAACZ,oBAAoB,CAAC;AACxC,CAAC;AAACI,OAAA,CAAAO,uBAAA,GAAAA,uBAAA;AAEK,MAAME,gBAAgB,GAAIC,MAGhC,IAAK;EACL,MAAM;IAAEC,QAAQ;IAAEC;EAAuB,CAAC,GAAGF,MAAM;EACnD,MAAMG,6BAA6B,GAAG,IAAAC,aAAM,EAAC,KAAK,CAAC;EACnD,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAC7C,IACD,CAAC;EAED,MAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EACpC,CAACC,SAA4B,EAAEC,cAA0B,KAAK;IAC7DL,cAAc,CAAEM,IAAI,IAAK;MACxB,IAAIA,IAAI,EAAEC,GAAG,KAAKH,SAAS,EAAE;QAC5B,OAAOE,IAAI;MACZ;MAEA,IACCE,OAAO,IACPF,IAAI,KAAK,IAAI,IACb,CAACT,6BAA6B,CAACY,OAAO,EACrC;QACDZ,6BAA6B,CAACY,OAAO,GAAG,IAAI;QAC5CC,OAAO,CAACC,IAAI,CAAC7B,wBAAwB,CAAC;MACvC;MAEA,OAAOwB,IAAI,IAAI;QAAEC,GAAG,EAAEH,SAAS;QAAEC;MAAe,CAAC;IAClD,CAAC,CAAC;EACH,CAAC,EACD,EACD,CAAC;EAED,MAAMO,mBAAmB,GAAG,IAAAT,kBAAW,EAAEC,SAA4B,IAAK;IACzEJ,cAAc,CAAEM,IAAI,IAAMA,IAAI,EAAEC,GAAG,KAAKH,SAAS,GAAG,IAAI,GAAGE,IAAK,CAAC;EAClE,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMO,YAAY,GAAG,IAAAC,cAAO,EAC3B,OAAO;IACNnB,QAAQ;IACRO,iBAAiB;IACjBU,mBAAmB;IACnBG,eAAe,EAAEhB,WAAW,EAAEQ,GAAG,IAAI,IAAI;IACzCX;EACD,CAAC,CAAC,EACF,CACCD,QAAQ,EACRO,iBAAiB,EACjBU,mBAAmB,EACnBb,WAAW,EACXH,sBAAsB,CAExB,CAAC;EAED,OAAO;IACNiB,YAAY;IACZG,eAAe,EAAEjB,WAAW,KAAK,IAAI;IACrCkB,WAAW,EAAElB,WAAW,EAAEQ,GAAG,IAAIZ,QAAQ;IACzCuB,oBAAoB,EAAEnB,WAAW,EAAEM;EACpC,CAAC;AACF,CAAC;AAACrB,OAAA,CAAAS,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;AAOO,SAASA,qBAAqBA,CACpCC,MAAmC,EAC1B;EACT,SAAS;;EACT,MAAM;IAAEC,KAAK;IAAEC;EAAG,CAAC,GAAGF,MAAM;EAC5B,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
|