react-native-screen-transitions 4.0.0-alpha.0 → 4.0.0-alpha.10
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 +1 -1
- package/lib/commonjs/adapters/with-screen-transitions/context.js.map +1 -1
- package/lib/commonjs/adapters/with-screen-transitions/options.js +1 -12
- package/lib/commonjs/adapters/with-screen-transitions/options.js.map +1 -1
- package/lib/commonjs/adapters/with-screen-transitions/stack-layout.js +30 -23
- package/lib/commonjs/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/commonjs/animation/snap-to.js +3 -0
- package/lib/commonjs/animation/snap-to.js.map +1 -1
- package/lib/commonjs/components/activity/activity-view.js +77 -0
- package/lib/commonjs/components/activity/activity-view.js.map +1 -0
- package/lib/commonjs/components/activity/activity-view.web.js +84 -0
- package/lib/commonjs/components/activity/activity-view.web.js.map +1 -0
- package/lib/commonjs/components/activity/variants/activity-container.js +2 -12
- package/lib/commonjs/components/activity/variants/activity-container.js.map +1 -1
- package/lib/commonjs/components/activity/variants/activity-screen.js +28 -63
- package/lib/commonjs/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/commonjs/components/boundary/components/boundary-lifecycle.js +36 -0
- package/lib/commonjs/components/boundary/components/boundary-lifecycle.js.map +1 -0
- package/lib/commonjs/components/boundary/components/boundary-target.js +20 -21
- package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/components/boundary/create-boundary-component.js +20 -2
- package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +41 -30
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +3 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +15 -12
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +9 -9
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-measurer.js +15 -17
- package/lib/commonjs/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/components/boundary/index.js +4 -9
- package/lib/commonjs/components/boundary/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +67 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +56 -189
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js +8 -26
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +38 -60
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +13 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +8 -32
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +82 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +24 -151
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +20 -58
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js +46 -9
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +2 -29
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/teleport.js +1 -13
- package/lib/commonjs/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/naming.js +8 -1
- package/lib/commonjs/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js +1 -10
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +42 -59
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/destination-signals.js +8 -4
- package/lib/commonjs/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/measured-bounds.js +19 -31
- package/lib/commonjs/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/refresh-signals.js +34 -21
- package/lib/commonjs/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js +29 -0
- package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/commonjs/components/create-transition-aware-component.js +9 -30
- package/lib/commonjs/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/create-overlay-interpolator-frame.js +36 -0
- package/lib/commonjs/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js +52 -22
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js +21 -0
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/commonjs/components/overlay/helpers/run-overlay-slot-interpolator.js +41 -0
- package/lib/commonjs/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js +90 -0
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/commonjs/components/overlay/variations/float-overlay.js +17 -69
- package/lib/commonjs/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/variations/overlay-host.js +90 -16
- package/lib/commonjs/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/components/screen-container/hooks/use-backdrop-pointer-events.js +4 -13
- package/lib/commonjs/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/components/screen-container/hooks/use-content-layout.js +3 -8
- package/lib/commonjs/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/backdrop.js +16 -14
- package/lib/commonjs/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/content.js +14 -21
- package/lib/commonjs/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js +9 -1
- package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/surface.js +50 -0
- package/lib/commonjs/components/screen-container/layers/surface.js.map +1 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/helpers/close-interception-rules.js +31 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/helpers/close-interception-rules.js.map +1 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-completion.js +27 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-completion.js.map +1 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-transition-intent.js +62 -92
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-open-transition-intent.js +2 -3
- package/lib/commonjs/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js +7 -5
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/index.js +11 -10
- package/lib/commonjs/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/components/stack-view.js +59 -34
- package/lib/commonjs/components/stack-view.js.map +1 -1
- package/lib/commonjs/configs/presets.js +14 -18
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/constants.js +4 -19
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/factories/screen-topology/create-screen-topology.js +147 -0
- package/lib/commonjs/factories/screen-topology/create-screen-topology.js.map +1 -0
- package/lib/commonjs/factories/screen-topology/index.js +45 -0
- package/lib/commonjs/factories/screen-topology/index.js.map +1 -0
- package/lib/commonjs/factories/screen-topology/types.js +2 -0
- package/lib/commonjs/factories/screen-topology/types.js.map +1 -0
- package/lib/commonjs/factories/screen-topology/use-screen-relationships.js +15 -0
- package/lib/commonjs/factories/screen-topology/use-screen-relationships.js.map +1 -0
- package/lib/commonjs/factories/screen-topology/worklet.js +55 -0
- package/lib/commonjs/factories/screen-topology/worklet.js.map +1 -0
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js +34 -20
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/hooks/navigation/use-screen-state.js +3 -5
- package/lib/commonjs/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/commonjs/hooks/reanimated/use-shared-value-ref.js +2 -3
- package/lib/commonjs/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/commonjs/index.js +0 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigators/create-blank-stack-navigator.js +1 -5
- package/lib/commonjs/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/navigators/react-navigation/index.js +7 -8
- package/lib/commonjs/navigators/react-navigation/index.js.map +1 -1
- package/lib/commonjs/providers/helpers/measured-bounds-writes.js +3 -1
- package/lib/commonjs/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/providers/navigation/navigation-host.provider.js +17 -4
- package/lib/commonjs/providers/navigation/navigation-host.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/animation.provider.js +34 -97
- package/lib/commonjs/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +8 -56
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/build-screen-transition-options.js +2 -6
- package/lib/commonjs/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +22 -7
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js +20 -23
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/pipeline.js +25 -25
- package/lib/commonjs/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/read-screen-animation-revisions.js +4 -13
- package/lib/commonjs/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/selected-interpolator-options.js +1 -10
- package/lib/commonjs/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/stack-progress.js +10 -26
- package/lib/commonjs/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/use-build-transition-state.js +0 -1
- package/lib/commonjs/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/index.js +8 -2
- package/lib/commonjs/providers/screen/animation/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js +13 -42
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js +61 -52
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -6
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/index.js +0 -12
- package/lib/commonjs/providers/screen/descriptors/index.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js +33 -30
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture-config.js +5 -13
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture.js +2 -3
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-stable-runtime-config.js +1 -3
- package/lib/commonjs/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/index.js +8 -2
- package/lib/commonjs/providers/screen/gestures/index.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +38 -64
- package/lib/commonjs/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- package/lib/commonjs/providers/screen/gestures/ownership/resolve-ownership.js +5 -7
- package/lib/commonjs/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/ownership/shadowing-claims.js +2 -2
- package/lib/commonjs/providers/screen/gestures/ownership/shadowing-claims.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/activation/pan-activation-decision.js +1 -2
- package/lib/commonjs/providers/screen/gestures/pan/activation/pan-activation-decision.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/activation/pan-activation-rules.js +5 -6
- package/lib/commonjs/providers/screen/gestures/pan/activation/pan-activation-rules.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/activation/use-pan-activation.js +3 -2
- package/lib/commonjs/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js +10 -13
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-release.js +30 -8
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-reset.js +11 -2
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-reset.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/use-pan-behavior.js +3 -5
- package/lib/commonjs/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js +37 -3
- package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +15 -14
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js +29 -8
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-reset.js +8 -2
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-reset.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -3
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/use-build-pinch-gesture.js +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/use-build-pinch-gesture.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +5 -8
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +5 -4
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +1 -3
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/shared/policy.js +10 -18
- package/lib/commonjs/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/shared/snap-points.js +71 -1
- package/lib/commonjs/providers/screen/gestures/shared/snap-points.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/shared/snapshot.js +1 -2
- package/lib/commonjs/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/providers/screen/options/helpers.js +7 -31
- package/lib/commonjs/providers/screen/options/helpers.js.map +1 -1
- package/lib/commonjs/providers/screen/options/index.js +2 -2
- package/lib/commonjs/providers/screen/options/options.provider.js +4 -8
- package/lib/commonjs/providers/screen/options/options.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/screen-composer.js +2 -0
- package/lib/commonjs/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/constants.js +15 -5
- package/lib/commonjs/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/create-interpolator-scope.js +40 -0
- package/lib/commonjs/providers/screen/styles/helpers/create-interpolator-scope.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js +94 -0
- package/lib/commonjs/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/resolve-slot-styles/index.js +48 -5
- package/lib/commonjs/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js +30 -0
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js +61 -0
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/visibility-block-ownership.js +19 -0
- package/lib/commonjs/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js +25 -6
- package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js +16 -15
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js +123 -71
- package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js +45 -25
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/index.js +8 -8
- package/lib/commonjs/providers/screen/styles/slot.provider.js +41 -41
- package/lib/commonjs/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/use-current-screen-relationships.js +14 -0
- package/lib/commonjs/providers/screen/use-current-screen-relationships.js.map +1 -0
- package/lib/commonjs/providers/stack/blank-stack-state/blank-stack-controller.js +9 -9
- package/lib/commonjs/providers/stack/blank-stack-state/blank-stack-controller.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +3 -11
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +18 -0
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/index.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack.provider.js +51 -62
- package/lib/commonjs/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/core.provider.js +25 -58
- package/lib/commonjs/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/stores/animation.store.js +19 -3
- package/lib/commonjs/stores/animation.store.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/entries.js +27 -0
- package/lib/commonjs/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/links.js +36 -5
- package/lib/commonjs/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/resolver.js +2 -12
- package/lib/commonjs/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/stores/gesture.store.js +4 -13
- package/lib/commonjs/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/stores/scroll.store.js +20 -2
- package/lib/commonjs/stores/scroll.store.js.map +1 -1
- package/lib/commonjs/stores/system.store.js +3 -2
- package/lib/commonjs/stores/system.store.js.map +1 -1
- package/lib/commonjs/types/gesture.types.js.map +1 -1
- package/lib/commonjs/types/stack.types.js +0 -35
- package/lib/commonjs/types/stack.types.js.map +1 -1
- package/lib/commonjs/utils/animation/animate-to-progress.js +35 -34
- package/lib/commonjs/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/utils/animation/animate.js +14 -2
- package/lib/commonjs/utils/animation/animate.js.map +1 -1
- package/lib/commonjs/utils/animation/spring/spring.js +22 -2
- package/lib/commonjs/utils/animation/spring/spring.js.map +1 -1
- package/lib/commonjs/utils/animation/spring/springUtils.js +96 -0
- package/lib/commonjs/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/commonjs/utils/animation/state.js +4 -0
- package/lib/commonjs/utils/bounds/constants.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/create-bounds-accessor-core.js +6 -5
- package/lib/commonjs/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/create-link-accessor.js +2 -2
- package/lib/commonjs/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/styles/composers.js +2 -2
- package/lib/commonjs/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/build.js +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js +17 -5
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js +44 -20
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js +2 -31
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js +3 -17
- package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/utils/create-provider.js +153 -84
- package/lib/commonjs/utils/create-provider.js.map +1 -1
- package/lib/commonjs/utils/navigation/close-action-replay.js +22 -0
- package/lib/commonjs/utils/navigation/close-action-replay.js.map +1 -0
- package/lib/commonjs/utils/normalize-interpolated-style.js +2 -40
- package/lib/commonjs/utils/normalize-interpolated-style.js.map +1 -1
- package/lib/commonjs/utils/resolve-screen-transition-options.js +1 -7
- package/lib/commonjs/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/module/adapters/with-screen-transitions/context.js.map +1 -1
- package/lib/module/adapters/with-screen-transitions/options.js +1 -12
- package/lib/module/adapters/with-screen-transitions/options.js.map +1 -1
- package/lib/module/adapters/with-screen-transitions/stack-layout.js +30 -23
- package/lib/module/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/module/animation/snap-to.js +3 -0
- package/lib/module/animation/snap-to.js.map +1 -1
- package/lib/module/components/activity/activity-view.js +73 -0
- package/lib/module/components/activity/activity-view.js.map +1 -0
- package/lib/module/components/activity/activity-view.web.js +80 -0
- package/lib/module/components/activity/activity-view.web.js.map +1 -0
- package/lib/module/components/activity/variants/activity-container.js +2 -12
- package/lib/module/components/activity/variants/activity-container.js.map +1 -1
- package/lib/module/components/activity/variants/activity-screen.js +28 -63
- package/lib/module/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/module/components/boundary/components/boundary-lifecycle.js +32 -0
- package/lib/module/components/boundary/components/boundary-lifecycle.js.map +1 -0
- package/lib/module/components/boundary/components/boundary-target.js +20 -21
- package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/components/boundary/create-boundary-component.js +22 -4
- package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +45 -33
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +3 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +15 -12
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js +9 -9
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-measurer.js +17 -19
- package/lib/module/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/components/boundary/index.js +4 -9
- package/lib/module/components/boundary/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +60 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +60 -193
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js +9 -27
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +40 -62
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +8 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +8 -33
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +76 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +27 -154
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +20 -58
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js +45 -9
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -27
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/components/boundary/portal/teleport.js +1 -14
- package/lib/module/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/naming.js +6 -0
- package/lib/module/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/module/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/teleport-control.js +0 -8
- package/lib/module/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/components/boundary/providers/boundary-root.provider.js +42 -59
- package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/components/boundary/utils/destination-signals.js +8 -4
- package/lib/module/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/components/boundary/utils/measured-bounds.js +17 -28
- package/lib/module/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/module/components/boundary/utils/refresh-signals.js +34 -21
- package/lib/module/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/components/boundary/utils/resolve-boundary-target.js +24 -0
- package/lib/module/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/module/components/create-transition-aware-component.js +10 -31
- package/lib/module/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/components/overlay/helpers/create-overlay-interpolator-frame.js +30 -0
- package/lib/module/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/module/components/overlay/helpers/get-active-overlay.js +49 -21
- package/lib/module/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js +17 -0
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/module/components/overlay/helpers/run-overlay-slot-interpolator.js +36 -0
- package/lib/module/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/module/components/overlay/hooks/use-overlay-slot.js +85 -0
- package/lib/module/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/module/components/overlay/variations/float-overlay.js +18 -70
- package/lib/module/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/components/overlay/variations/overlay-host.js +91 -18
- package/lib/module/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/components/screen-container/hooks/use-backdrop-pointer-events.js +6 -15
- package/lib/module/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/components/screen-container/hooks/use-content-layout.js +4 -9
- package/lib/module/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/components/screen-container/layers/backdrop.js +18 -16
- package/lib/module/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/components/screen-container/layers/content.js +16 -22
- package/lib/module/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js +10 -2
- package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/components/screen-container/layers/surface.js +45 -0
- package/lib/module/components/screen-container/layers/surface.js.map +1 -0
- package/lib/module/components/screen-lifecycle/hooks/helpers/close-interception-rules.js +25 -0
- package/lib/module/components/screen-lifecycle/hooks/helpers/close-interception-rules.js.map +1 -0
- package/lib/module/components/screen-lifecycle/hooks/use-close-completion.js +22 -0
- package/lib/module/components/screen-lifecycle/hooks/use-close-completion.js.map +1 -0
- package/lib/module/components/screen-lifecycle/hooks/use-close-transition-intent.js +64 -93
- package/lib/module/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-open-transition-intent.js +3 -4
- package/lib/module/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js +7 -5
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/components/screen-lifecycle/index.js +12 -11
- package/lib/module/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/components/stack-view.js +61 -36
- package/lib/module/components/stack-view.js.map +1 -1
- package/lib/module/configs/presets.js +14 -18
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/constants.js +3 -18
- package/lib/module/constants.js.map +1 -1
- package/lib/module/factories/screen-topology/create-screen-topology.js +142 -0
- package/lib/module/factories/screen-topology/create-screen-topology.js.map +1 -0
- package/lib/module/factories/screen-topology/index.js +6 -0
- package/lib/module/factories/screen-topology/index.js.map +1 -0
- package/lib/module/factories/screen-topology/types.js +2 -0
- package/lib/module/factories/screen-topology/types.js.map +1 -0
- package/lib/module/factories/screen-topology/use-screen-relationships.js +10 -0
- package/lib/module/factories/screen-topology/use-screen-relationships.js.map +1 -0
- package/lib/module/factories/screen-topology/worklet.js +48 -0
- package/lib/module/factories/screen-topology/worklet.js.map +1 -0
- package/lib/module/hooks/navigation/use-navigation-helpers.js +34 -20
- package/lib/module/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/hooks/navigation/use-screen-state.js +4 -6
- package/lib/module/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/module/hooks/reanimated/use-shared-value-ref.js +3 -4
- package/lib/module/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/module/index.js +0 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/create-blank-stack-navigator.js +1 -5
- package/lib/module/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/navigators/react-navigation/index.js +4 -6
- package/lib/module/navigators/react-navigation/index.js.map +1 -1
- package/lib/module/providers/helpers/measured-bounds-writes.js +3 -1
- package/lib/module/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/providers/navigation/navigation-host.provider.js +16 -4
- package/lib/module/providers/navigation/navigation-host.provider.js.map +1 -1
- package/lib/module/providers/screen/animation/animation.provider.js +32 -95
- package/lib/module/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +8 -56
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/build-screen-transition-options.js +2 -6
- package/lib/module/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +22 -7
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js +20 -23
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/pipeline.js +27 -27
- package/lib/module/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/read-screen-animation-revisions.js +4 -13
- package/lib/module/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/selected-interpolator-options.js +1 -10
- package/lib/module/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/stack-progress.js +9 -24
- package/lib/module/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/use-build-transition-state.js +0 -1
- package/lib/module/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/providers/screen/animation/index.js +1 -1
- package/lib/module/providers/screen/animation/index.js.map +1 -1
- package/lib/module/providers/screen/animation/use-screen-animation.js +14 -44
- package/lib/module/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/providers/screen/descriptors/descriptors.provider.js +62 -50
- package/lib/module/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -6
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/providers/screen/descriptors/index.js +1 -1
- package/lib/module/providers/screen/descriptors/index.js.map +1 -1
- package/lib/module/providers/screen/gestures/gestures.provider.js +32 -30
- package/lib/module/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture-config.js +6 -14
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture.js +3 -4
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-stable-runtime-config.js +2 -4
- package/lib/module/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/module/providers/screen/gestures/index.js +1 -1
- package/lib/module/providers/screen/gestures/index.js.map +1 -1
- package/lib/module/providers/screen/gestures/ownership/gesture-ownership-bridge.js +124 -0
- package/lib/module/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- package/lib/module/providers/screen/gestures/ownership/resolve-ownership.js +5 -7
- package/lib/module/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/module/providers/screen/gestures/ownership/shadowing-claims.js +2 -2
- package/lib/module/providers/screen/gestures/ownership/shadowing-claims.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/activation/pan-activation-decision.js +1 -2
- package/lib/module/providers/screen/gestures/pan/activation/pan-activation-decision.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/activation/pan-activation-rules.js +5 -6
- package/lib/module/providers/screen/gestures/pan/activation/pan-activation-rules.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/activation/use-pan-activation.js +4 -3
- package/lib/module/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js +11 -14
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-release.js +31 -9
- package/lib/module/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-reset.js +11 -2
- package/lib/module/providers/screen/gestures/pan/behavior/pan-reset.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/use-pan-behavior.js +3 -5
- package/lib/module/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/use-build-pan-gesture.js +2 -2
- package/lib/module/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js +35 -2
- package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +16 -15
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js +30 -9
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-reset.js +8 -2
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-reset.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -3
- package/lib/module/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/use-build-pinch-gesture.js +2 -2
- package/lib/module/providers/screen/gestures/pinch/use-build-pinch-gesture.js.map +1 -1
- package/lib/module/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +4 -8
- package/lib/module/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/module/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +7 -6
- package/lib/module/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +1 -3
- package/lib/module/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/providers/screen/gestures/shared/policy.js +11 -19
- package/lib/module/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/providers/screen/gestures/shared/snap-points.js +66 -0
- package/lib/module/providers/screen/gestures/shared/snap-points.js.map +1 -1
- package/lib/module/providers/screen/gestures/shared/snapshot.js +1 -2
- package/lib/module/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/module/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/providers/screen/options/helpers.js +8 -32
- package/lib/module/providers/screen/options/helpers.js.map +1 -1
- package/lib/module/providers/screen/options/index.js +1 -1
- package/lib/module/providers/screen/options/index.js.map +1 -1
- package/lib/module/providers/screen/options/options.provider.js +3 -7
- package/lib/module/providers/screen/options/options.provider.js.map +1 -1
- package/lib/module/providers/screen/screen-composer.js +2 -0
- package/lib/module/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/providers/screen/styles/constants.js +13 -4
- package/lib/module/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/create-interpolator-scope.js +35 -0
- package/lib/module/providers/screen/styles/helpers/create-interpolator-scope.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js +89 -0
- package/lib/module/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/resolve-slot-styles/index.js +49 -6
- package/lib/module/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js +25 -0
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js +53 -0
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/visibility-block-ownership.js +14 -0
- package/lib/module/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/visibility-gate.js +23 -5
- package/lib/module/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js +17 -16
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js +126 -74
- package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js +46 -26
- package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/providers/screen/styles/index.js +1 -1
- package/lib/module/providers/screen/styles/index.js.map +1 -1
- package/lib/module/providers/screen/styles/slot.provider.js +39 -39
- package/lib/module/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/providers/screen/use-current-screen-relationships.js +9 -0
- package/lib/module/providers/screen/use-current-screen-relationships.js.map +1 -0
- package/lib/module/providers/stack/blank-stack-state/blank-stack-controller.js +9 -9
- package/lib/module/providers/stack/blank-stack-state/blank-stack-controller.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +3 -11
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +14 -0
- package/lib/module/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/module/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/index.js.map +1 -1
- package/lib/module/providers/stack/blank-stack.provider.js +46 -59
- package/lib/module/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/module/providers/stack/core.provider.js +23 -56
- package/lib/module/providers/stack/core.provider.js.map +1 -1
- package/lib/module/stores/animation.store.js +17 -2
- package/lib/module/stores/animation.store.js.map +1 -1
- package/lib/module/stores/bounds/internals/entries.js +27 -1
- package/lib/module/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/stores/bounds/internals/links.js +36 -7
- package/lib/module/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/stores/bounds/internals/resolver.js +3 -13
- package/lib/module/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/stores/gesture.store.js +4 -13
- package/lib/module/stores/gesture.store.js.map +1 -1
- package/lib/module/stores/scroll.store.js +17 -0
- package/lib/module/stores/scroll.store.js.map +1 -1
- package/lib/module/stores/system.store.js +3 -2
- package/lib/module/stores/system.store.js.map +1 -1
- package/lib/module/types/animation.types.js.map +1 -1
- package/lib/module/types/bounds.types.js +0 -12
- package/lib/module/types/bounds.types.js.map +1 -1
- package/lib/module/types/gesture.types.js.map +1 -1
- package/lib/module/types/stack.types.js +1 -41
- package/lib/module/types/stack.types.js.map +1 -1
- package/lib/module/utils/animation/animate-to-progress.js +33 -33
- package/lib/module/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/utils/animation/animate.js +14 -2
- package/lib/module/utils/animation/animate.js.map +1 -1
- package/lib/module/utils/animation/spring/spring.js +23 -3
- package/lib/module/utils/animation/spring/spring.js.map +1 -1
- package/lib/module/utils/animation/spring/springUtils.js +95 -0
- package/lib/module/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/module/utils/animation/state.js +2 -0
- package/lib/module/utils/bounds/constants.js.map +1 -1
- package/lib/module/utils/bounds/helpers/create-bounds-accessor-core.js +6 -5
- package/lib/module/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/module/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/utils/bounds/helpers/styles/composers.js +2 -2
- package/lib/module/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/module/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/build.js +1 -1
- package/lib/module/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/math.js +16 -5
- package/lib/module/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/build.js +46 -22
- package/lib/module/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/drag.js +2 -30
- package/lib/module/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/helpers.js +4 -18
- package/lib/module/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/utils/create-provider.js +154 -85
- package/lib/module/utils/create-provider.js.map +1 -1
- package/lib/module/utils/navigation/close-action-replay.js +16 -0
- package/lib/module/utils/navigation/close-action-replay.js.map +1 -0
- package/lib/module/utils/normalize-interpolated-style.js +2 -40
- package/lib/module/utils/normalize-interpolated-style.js.map +1 -1
- package/lib/module/utils/resolve-screen-transition-options.js +1 -7
- package/lib/module/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/adapters/with-screen-transitions/context.d.ts +1 -4
- package/lib/typescript/adapters/with-screen-transitions/context.d.ts.map +1 -1
- package/lib/typescript/adapters/with-screen-transitions/options.d.ts.map +1 -1
- package/lib/typescript/adapters/with-screen-transitions/stack-layout.d.ts +1 -1
- package/lib/typescript/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
- package/lib/typescript/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/components/activity/activity-view.d.ts +17 -0
- package/lib/typescript/components/activity/activity-view.d.ts.map +1 -0
- package/lib/typescript/components/activity/activity-view.web.d.ts +14 -0
- package/lib/typescript/components/activity/activity-view.web.d.ts.map +1 -0
- package/lib/typescript/components/activity/variants/activity-container.d.ts.map +1 -1
- package/lib/typescript/components/activity/variants/activity-screen.d.ts +2 -3
- package/lib/typescript/components/activity/variants/activity-screen.d.ts.map +1 -1
- package/lib/typescript/components/boundary/components/boundary-lifecycle.d.ts +18 -0
- package/lib/typescript/components/boundary/components/boundary-lifecycle.d.ts.map +1 -0
- package/lib/typescript/components/boundary/components/boundary-target.d.ts +2 -1
- package/lib/typescript/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +1 -2
- package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +5 -5
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-measurer.d.ts +4 -3
- package/lib/typescript/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/components/boundary/index.d.ts +5 -18
- package/lib/typescript/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +26 -0
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +1 -3
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts +5 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +4 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts +4 -26
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +21 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +1 -3
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts +5 -10
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +2 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts +2 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +3 -13
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/teleport.d.ts +1 -1
- package/lib/typescript/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/naming.d.ts +1 -0
- package/lib/typescript/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -3
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts +0 -4
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +13 -13
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/components/boundary/types.d.ts +6 -0
- package/lib/typescript/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/destination-signals.d.ts +2 -3
- package/lib/typescript/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/measured-bounds.d.ts +1 -3
- package/lib/typescript/components/boundary/utils/measured-bounds.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts +1 -5
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts +12 -0
- package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts.map +1 -0
- package/lib/typescript/components/create-transition-aware-component.d.ts +5 -8
- package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/create-overlay-interpolator-frame.d.ts +8 -0
- package/lib/typescript/components/overlay/helpers/create-overlay-interpolator-frame.d.ts.map +1 -0
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts +20 -8
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts +11 -0
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts.map +1 -0
- package/lib/typescript/components/overlay/helpers/run-overlay-slot-interpolator.d.ts +8 -0
- package/lib/typescript/components/overlay/helpers/run-overlay-slot-interpolator.d.ts.map +1 -0
- package/lib/typescript/components/overlay/hooks/use-overlay-slot.d.ts +16 -0
- package/lib/typescript/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -0
- package/lib/typescript/components/overlay/variations/float-overlay.d.ts +1 -1
- package/lib/typescript/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts +7 -6
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +1 -2
- package/lib/typescript/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/surface.d.ts +7 -0
- package/lib/typescript/components/screen-container/layers/surface.d.ts.map +1 -0
- package/lib/typescript/components/screen-lifecycle/hooks/helpers/close-interception-rules.d.ts +27 -0
- package/lib/typescript/components/screen-lifecycle/hooks/helpers/close-interception-rules.d.ts.map +1 -0
- package/lib/typescript/components/screen-lifecycle/hooks/use-close-completion.d.ts +7 -0
- package/lib/typescript/components/screen-lifecycle/hooks/use-close-completion.d.ts.map +1 -0
- package/lib/typescript/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +3 -8
- package/lib/typescript/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +1 -3
- package/lib/typescript/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/components/stack-view.d.ts +5 -2
- package/lib/typescript/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/configs/index.d.ts +6 -6
- package/lib/typescript/configs/presets.d.ts +6 -6
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts +2 -7
- package/lib/typescript/constants.d.ts.map +1 -1
- package/lib/typescript/factories/screen-topology/create-screen-topology.d.ts +4 -0
- package/lib/typescript/factories/screen-topology/create-screen-topology.d.ts.map +1 -0
- package/lib/typescript/factories/screen-topology/index.d.ts +5 -0
- package/lib/typescript/factories/screen-topology/index.d.ts.map +1 -0
- package/lib/typescript/factories/screen-topology/types.d.ts +20 -0
- package/lib/typescript/factories/screen-topology/types.d.ts.map +1 -0
- package/lib/typescript/factories/screen-topology/use-screen-relationships.d.ts +5 -0
- package/lib/typescript/factories/screen-topology/use-screen-relationships.d.ts.map +1 -0
- package/lib/typescript/factories/screen-topology/worklet.d.ts +5 -0
- package/lib/typescript/factories/screen-topology/worklet.d.ts.map +1 -0
- package/lib/typescript/hooks/navigation/use-navigation-helpers.d.ts.map +1 -1
- package/lib/typescript/hooks/navigation/use-screen-state.d.ts.map +1 -1
- package/lib/typescript/hooks/reanimated/use-shared-value-ref.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +667 -733
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts +6 -17
- package/lib/typescript/navigators/react-navigation/index.d.ts.map +1 -1
- package/lib/typescript/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts +1 -0
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts +17 -8
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -3
- package/lib/typescript/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +2 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +0 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/read-screen-animation-revisions.d.ts +2 -2
- package/lib/typescript/providers/screen/animation/helpers/read-screen-animation-revisions.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/stack-progress.d.ts +5 -2
- package/lib/typescript/providers/screen/animation/helpers/stack-progress.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/use-build-transition-state.d.ts +0 -1
- package/lib/typescript/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/types.d.ts +2 -17
- package/lib/typescript/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/use-screen-animation.d.ts +0 -5
- package/lib/typescript/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/descriptors.provider.d.ts +20 -18
- package/lib/typescript/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
- package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/index.d.ts +1 -1
- package/lib/typescript/providers/screen/descriptors/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts +17 -2
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +2 -2
- package/lib/typescript/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/index.d.ts +1 -1
- package/lib/typescript/providers/screen/gestures/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts +3 -0
- package/lib/typescript/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts.map +1 -0
- package/lib/typescript/providers/screen/gestures/ownership/resolve-ownership.d.ts +2 -3
- package/lib/typescript/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/ownership/shadowing-claims.d.ts +2 -3
- package/lib/typescript/providers/screen/gestures/ownership/shadowing-claims.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/activation/pan-activation-decision.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/activation/pan-activation-rules.d.ts +2 -3
- package/lib/typescript/providers/screen/gestures/pan/activation/pan-activation-rules.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-release.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-reset.d.ts +4 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-reset.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -1
- package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-reset.d.ts +3 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-reset.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.d.ts +5 -3
- package/lib/typescript/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +2 -2
- package/lib/typescript/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/shared/policy.d.ts +6 -8
- package/lib/typescript/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/shared/snap-points.d.ts +11 -0
- package/lib/typescript/providers/screen/gestures/shared/snap-points.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/types.d.ts +7 -12
- package/lib/typescript/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/helpers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/index.d.ts +1 -1
- package/lib/typescript/providers/screen/options/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/options.provider.d.ts +4 -1
- package/lib/typescript/providers/screen/options/options.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/types.d.ts +1 -2
- package/lib/typescript/providers/screen/options/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/screen-composer.d.ts +6 -5
- package/lib/typescript/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/constants.d.ts +1 -0
- package/lib/typescript/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/create-interpolator-scope.d.ts +9 -0
- package/lib/typescript/providers/screen/styles/helpers/create-interpolator-scope.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/resolve-interpolator-style-handoff.d.ts +10 -0
- package/lib/typescript/providers/screen/styles/helpers/resolve-interpolator-style-handoff.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +5 -3
- package/lib/typescript/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts +4 -0
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts +25 -0
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/visibility-block-ownership.d.ts +10 -0
- package/lib/typescript/providers/screen/styles/helpers/visibility-block-ownership.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts +12 -2
- package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts +4 -4
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +10 -5
- package/lib/typescript/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +11 -5
- package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/index.d.ts +1 -1
- package/lib/typescript/providers/screen/styles/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts +15 -6
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/use-current-screen-relationships.d.ts +5 -0
- package/lib/typescript/providers/screen/use-current-screen-relationships.d.ts.map +1 -0
- package/lib/typescript/providers/stack/blank-stack-state/blank-stack-controller.d.ts +1 -2
- package/lib/typescript/providers/stack/blank-stack-state/blank-stack-controller.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts +7 -8
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.d.ts +5 -6
- package/lib/typescript/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts +7 -8
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts +3 -0
- package/lib/typescript/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts.map +1 -0
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts +5 -4
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts +17 -17
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/index.d.ts +2 -3
- package/lib/typescript/providers/stack/blank-stack-state/index.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts +19 -7
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/core.provider.d.ts +10 -15
- package/lib/typescript/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/stores/animation.store.d.ts +1 -1
- package/lib/typescript/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/entries.d.ts +2 -1
- package/lib/typescript/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/links.d.ts +4 -2
- package/lib/typescript/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/stores/gesture.store.d.ts +2 -21
- package/lib/typescript/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/stores/scroll.store.d.ts +7 -0
- package/lib/typescript/stores/scroll.store.d.ts.map +1 -1
- package/lib/typescript/stores/system.store.d.ts +6 -2
- package/lib/typescript/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/types/animation.types.d.ts +9 -19
- package/lib/typescript/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/types/blank-stack.types.d.ts +2 -21
- package/lib/typescript/types/blank-stack.types.d.ts.map +1 -1
- package/lib/typescript/types/bounds.types.d.ts +0 -96
- package/lib/typescript/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/types/gesture.types.d.ts +7 -25
- package/lib/typescript/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +4 -4
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types/overlay.types.d.ts +26 -11
- package/lib/typescript/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts +20 -34
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +46 -116
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/types/stack.types.d.ts +11 -27
- package/lib/typescript/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate-to-progress.d.ts +8 -3
- package/lib/typescript/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate.d.ts +2 -2
- package/lib/typescript/utils/animation/animate.d.ts.map +1 -1
- package/lib/typescript/utils/animation/spring/spring.d.ts +2 -2
- package/lib/typescript/utils/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/utils/animation/spring/springUtils.d.ts +3 -0
- package/lib/typescript/utils/animation/spring/springUtils.d.ts.map +1 -1
- package/lib/typescript/utils/animation/state.d.ts +6 -0
- package/lib/typescript/utils/animation/state.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/constants.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/prepare-bound-styles.d.ts +3 -3
- package/lib/typescript/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/styles/composers.d.ts +3 -3
- package/lib/typescript/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/styles/compute.d.ts +2 -2
- package/lib/typescript/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts +9 -0
- package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts +2 -11
- package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts +7 -4
- package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/types/options.d.ts +4 -21
- package/lib/typescript/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/utils/create-provider.d.ts +54 -20
- package/lib/typescript/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/utils/navigation/close-action-replay.d.ts +4 -0
- package/lib/typescript/utils/navigation/close-action-replay.d.ts.map +1 -0
- package/lib/typescript/utils/normalize-interpolated-style.d.ts +2 -15
- package/lib/typescript/utils/normalize-interpolated-style.d.ts.map +1 -1
- package/lib/typescript/utils/resolve-screen-transition-options.d.ts +1 -1
- package/lib/typescript/utils/resolve-screen-transition-options.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/adapters/with-screen-transitions/context.tsx +1 -5
- package/src/adapters/with-screen-transitions/options.ts +1 -32
- package/src/adapters/with-screen-transitions/stack-layout.tsx +37 -37
- package/src/animation/snap-to.ts +6 -0
- package/src/components/activity/activity-view.tsx +93 -0
- package/src/components/activity/activity-view.web.tsx +79 -0
- package/src/components/activity/variants/activity-container.tsx +2 -14
- package/src/components/activity/variants/activity-screen.tsx +37 -71
- package/src/components/boundary/components/boundary-lifecycle.tsx +53 -0
- package/src/components/boundary/components/boundary-target.tsx +38 -24
- package/src/components/boundary/create-boundary-component.tsx +38 -4
- package/src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +88 -45
- package/src/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts +6 -1
- package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +25 -21
- package/src/components/boundary/hooks/use-boundary-measurement.ts +15 -15
- package/src/components/boundary/hooks/use-measurer.ts +22 -19
- package/src/components/boundary/index.tsx +4 -22
- package/src/components/boundary/portal/components/boundary-content-portal/components/host.tsx +5 -1
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +103 -0
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +108 -272
- package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
- package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +27 -37
- package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +67 -92
- package/src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +10 -0
- package/src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +11 -62
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +118 -0
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +32 -219
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +21 -83
- package/src/components/boundary/portal/components/boundary-portal/index.tsx +74 -12
- package/src/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts +0 -1
- package/src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +5 -44
- package/src/components/boundary/portal/teleport.ts +2 -23
- package/src/components/boundary/portal/utils/naming.ts +11 -0
- package/src/components/boundary/portal/utils/resolve-portal.ts +26 -18
- package/src/components/boundary/portal/utils/teleport-control.ts +0 -12
- package/src/components/boundary/providers/boundary-root.provider.tsx +59 -101
- package/src/components/boundary/types.ts +9 -0
- package/src/components/boundary/utils/destination-signals.ts +8 -8
- package/src/components/boundary/utils/measured-bounds.ts +29 -32
- package/src/components/boundary/utils/refresh-signals.ts +63 -33
- package/src/components/boundary/utils/resolve-boundary-target.tsx +39 -0
- package/src/components/create-transition-aware-component.tsx +11 -36
- package/src/components/overlay/helpers/create-overlay-interpolator-frame.ts +41 -0
- package/src/components/overlay/helpers/get-active-overlay.ts +91 -21
- package/src/components/overlay/helpers/retain-ready-overlay-resources.ts +38 -0
- package/src/components/overlay/helpers/run-overlay-slot-interpolator.ts +48 -0
- package/src/components/overlay/hooks/use-overlay-slot.ts +121 -0
- package/src/components/overlay/variations/float-overlay.tsx +24 -65
- package/src/components/overlay/variations/overlay-host.tsx +140 -28
- package/src/components/screen-container/hooks/use-backdrop-pointer-events.ts +8 -13
- package/src/components/screen-container/hooks/use-content-layout.ts +10 -10
- package/src/components/screen-container/layers/backdrop.tsx +33 -16
- package/src/components/screen-container/layers/content.tsx +26 -26
- package/src/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
- package/src/components/screen-container/layers/surface.tsx +65 -0
- package/src/components/screen-lifecycle/hooks/helpers/close-interception-rules.ts +64 -0
- package/src/components/screen-lifecycle/hooks/use-close-completion.ts +25 -0
- package/src/components/screen-lifecycle/hooks/use-close-transition-intent.ts +78 -111
- package/src/components/screen-lifecycle/hooks/use-open-transition-intent.ts +5 -2
- package/src/components/screen-lifecycle/hooks/use-transition-start-controller.ts +8 -12
- package/src/components/screen-lifecycle/index.tsx +11 -6
- package/src/components/stack-view.tsx +96 -59
- package/src/configs/presets.ts +17 -20
- package/src/constants.ts +3 -18
- package/src/factories/screen-topology/create-screen-topology.ts +199 -0
- package/src/factories/screen-topology/index.ts +16 -0
- package/src/factories/screen-topology/types.ts +22 -0
- package/src/factories/screen-topology/use-screen-relationships.ts +15 -0
- package/src/factories/screen-topology/worklet.ts +60 -0
- package/src/hooks/navigation/use-navigation-helpers.ts +42 -18
- package/src/hooks/navigation/use-screen-state.ts +4 -8
- package/src/hooks/reanimated/use-shared-value-ref.ts +3 -4
- package/src/index.ts +4 -8
- package/src/navigators/create-blank-stack-navigator.tsx +3 -11
- package/src/navigators/react-navigation/index.tsx +4 -48
- package/src/providers/helpers/measured-bounds-writes.ts +1 -0
- package/src/providers/navigation/navigation-host.provider.tsx +18 -3
- package/src/providers/screen/animation/animation.provider.tsx +66 -184
- package/src/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +17 -82
- package/src/providers/screen/animation/helpers/build-screen-transition-options.ts +5 -11
- package/src/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +30 -3
- package/src/providers/screen/animation/helpers/hydrate-transition-state/index.ts +25 -41
- package/src/providers/screen/animation/helpers/hydrate-transition-state/types.ts +0 -1
- package/src/providers/screen/animation/helpers/pipeline.ts +34 -39
- package/src/providers/screen/animation/helpers/read-screen-animation-revisions.ts +6 -30
- package/src/providers/screen/animation/helpers/selected-interpolator-options.ts +1 -31
- package/src/providers/screen/animation/helpers/stack-progress.ts +13 -32
- package/src/providers/screen/animation/helpers/use-build-transition-state.ts +0 -2
- package/src/providers/screen/animation/index.tsx +2 -1
- package/src/providers/screen/animation/types.ts +2 -32
- package/src/providers/screen/animation/use-screen-animation.tsx +19 -60
- package/src/providers/screen/descriptors/descriptors.provider.tsx +107 -83
- package/src/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -10
- package/src/providers/screen/descriptors/index.tsx +0 -2
- package/src/providers/screen/gestures/gestures.provider.tsx +99 -76
- package/src/providers/screen/gestures/hooks/use-screen-gesture-config.ts +11 -13
- package/src/providers/screen/gestures/hooks/use-screen-gesture.ts +3 -4
- package/src/providers/screen/gestures/hooks/use-stable-runtime-config.ts +4 -2
- package/src/providers/screen/gestures/index.tsx +2 -1
- package/src/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.ts → gesture-ownership-bridge.tsx} +48 -65
- package/src/providers/screen/gestures/ownership/resolve-ownership.ts +5 -8
- package/src/providers/screen/gestures/ownership/shadowing-claims.ts +3 -4
- package/src/providers/screen/gestures/pan/activation/pan-activation-decision.ts +0 -1
- package/src/providers/screen/gestures/pan/activation/pan-activation-rules.ts +3 -6
- package/src/providers/screen/gestures/pan/activation/use-pan-activation.ts +6 -2
- package/src/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +13 -22
- package/src/providers/screen/gestures/pan/behavior/pan-release.ts +48 -9
- package/src/providers/screen/gestures/pan/behavior/pan-reset.ts +15 -2
- package/src/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +2 -5
- package/src/providers/screen/gestures/pan/use-build-pan-gesture.ts +2 -2
- package/src/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
- package/src/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +18 -19
- package/src/providers/screen/gestures/pinch/behavior/pinch-release.ts +47 -8
- package/src/providers/screen/gestures/pinch/behavior/pinch-reset.ts +11 -2
- package/src/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +2 -8
- package/src/providers/screen/gestures/pinch/use-build-pinch-gesture.ts +2 -2
- package/src/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.tsx +6 -9
- package/src/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +11 -7
- package/src/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +12 -12
- package/src/providers/screen/gestures/shared/policy.ts +14 -26
- package/src/providers/screen/gestures/shared/snap-points.ts +87 -0
- package/src/providers/screen/gestures/shared/snapshot.ts +1 -2
- package/src/providers/screen/gestures/types.ts +7 -17
- package/src/providers/screen/options/helpers.ts +18 -73
- package/src/providers/screen/options/index.ts +1 -1
- package/src/providers/screen/options/options.provider.tsx +24 -28
- package/src/providers/screen/options/types.ts +1 -2
- package/src/providers/screen/screen-composer.tsx +14 -7
- package/src/providers/screen/styles/constants.ts +11 -7
- package/src/providers/screen/styles/helpers/create-interpolator-scope.ts +45 -0
- package/src/providers/screen/styles/helpers/resolve-interpolator-style-handoff.ts +138 -0
- package/src/providers/screen/styles/helpers/resolve-slot-styles/index.ts +71 -4
- package/src/providers/screen/styles/helpers/select-interpolator-frame.ts +33 -0
- package/src/providers/screen/styles/helpers/transition-visual-state.ts +70 -0
- package/src/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
- package/src/providers/screen/styles/helpers/visibility-gate.ts +42 -7
- package/src/providers/screen/styles/hooks/slot-resolvers.tsx +25 -6
- package/src/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +176 -95
- package/src/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +57 -29
- package/src/providers/screen/styles/index.tsx +2 -2
- package/src/providers/screen/styles/slot.provider.tsx +51 -60
- package/src/providers/screen/use-current-screen-relationships.ts +10 -0
- package/src/providers/stack/blank-stack-state/blank-stack-controller.ts +15 -26
- package/src/providers/stack/blank-stack-state/helpers/build-blank-stack-state.ts +34 -70
- package/src/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.ts +7 -20
- package/src/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.ts +20 -32
- package/src/providers/stack/blank-stack-state/helpers/resolve-presented-index.ts +22 -0
- package/src/providers/stack/blank-stack-state/helpers/state-equality.ts +9 -16
- package/src/providers/stack/blank-stack-state/helpers/types.ts +16 -29
- package/src/providers/stack/blank-stack-state/index.ts +2 -13
- package/src/providers/stack/blank-stack.provider.tsx +59 -101
- package/src/providers/stack/core.provider.tsx +34 -86
- package/src/stores/animation.store.ts +19 -3
- package/src/stores/bounds/internals/entries.ts +38 -1
- package/src/stores/bounds/internals/links.ts +58 -3
- package/src/stores/bounds/internals/resolver.ts +7 -21
- package/src/stores/gesture.store.ts +5 -38
- package/src/stores/scroll.store.ts +23 -0
- package/src/stores/system.store.ts +9 -2
- package/src/types/animation.types.ts +9 -24
- package/src/types/blank-stack.types.ts +9 -24
- package/src/types/bounds.types.ts +0 -100
- package/src/types/gesture.types.ts +7 -26
- package/src/types/index.ts +5 -5
- package/src/types/overlay.types.ts +41 -14
- package/src/types/providers/blank-stack-provider.types.ts +19 -43
- package/src/types/screen.types.ts +50 -125
- package/src/types/stack.types.ts +11 -34
- package/src/utils/animation/animate-to-progress.ts +59 -51
- package/src/utils/animation/animate.ts +18 -2
- package/src/utils/animation/spring/spring.ts +36 -1
- package/src/utils/animation/spring/springUtils.ts +130 -0
- package/src/utils/animation/state.ts +8 -0
- package/src/utils/bounds/constants.ts +2 -2
- package/src/utils/bounds/helpers/create-bounds-accessor-core.ts +7 -6
- package/src/utils/bounds/helpers/create-link-accessor.ts +9 -3
- package/src/utils/bounds/helpers/prepare-bound-styles.ts +5 -5
- package/src/utils/bounds/helpers/styles/composers.ts +6 -6
- package/src/utils/bounds/helpers/styles/compute.ts +3 -3
- package/src/utils/bounds/navigation/reveal/build.ts +1 -1
- package/src/utils/bounds/navigation/reveal/math.ts +21 -5
- package/src/utils/bounds/navigation/zoom/build.ts +77 -23
- package/src/utils/bounds/navigation/zoom/drag.ts +3 -42
- package/src/utils/bounds/navigation/zoom/helpers.ts +9 -23
- package/src/utils/bounds/types/options.ts +15 -34
- package/src/utils/create-provider.tsx +301 -161
- package/src/utils/navigation/close-action-replay.ts +25 -0
- package/src/utils/normalize-interpolated-style.ts +5 -39
- package/src/utils/resolve-screen-transition-options.ts +4 -13
- package/lib/commonjs/components/boundary/hooks/use-register-target.js +0 -32
- package/lib/commonjs/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -52
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js +0 -18
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/host-name.js +0 -14
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js +0 -47
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/ownership.js +0 -220
- package/lib/commonjs/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js +0 -29
- package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/visible-host.js +0 -25
- package/lib/commonjs/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/commonjs/components/masked-view.js +0 -56
- package/lib/commonjs/components/masked-view.js.map +0 -1
- package/lib/commonjs/components/scene-view.js +0 -32
- package/lib/commonjs/components/scene-view.js.map +0 -1
- package/lib/commonjs/components/screen-container/layers/surface-container.js +0 -53
- package/lib/commonjs/components/screen-container/layers/surface-container.js.map +0 -1
- package/lib/commonjs/hooks/navigation/use-previous.js +0 -16
- package/lib/commonjs/hooks/navigation/use-previous.js.map +0 -1
- package/lib/commonjs/hooks/navigation/use-stack.js +0 -90
- package/lib/commonjs/hooks/navigation/use-stack.js.map +0 -1
- package/lib/commonjs/hooks/navigation/use-tab-press-reset.js +0 -31
- package/lib/commonjs/hooks/navigation/use-tab-press-reset.js.map +0 -1
- package/lib/commonjs/hooks/use-stable-callback-value.js +0 -69
- package/lib/commonjs/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/commonjs/providers/register-bounds.provider.js +0 -312
- package/lib/commonjs/providers/register-bounds.provider.js.map +0 -1
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +0 -23
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +0 -1
- package/lib/commonjs/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -46
- package/lib/commonjs/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -64
- package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -21
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -29
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -38
- package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/shared/ancestors.js +0 -23
- package/lib/commonjs/providers/screen/gestures/shared/ancestors.js.map +0 -1
- package/lib/commonjs/providers/screen/origin.provider.js +0 -41
- package/lib/commonjs/providers/screen/origin.provider.js.map +0 -1
- package/lib/commonjs/providers/screen/styles/components/floating-overlay-layer.js +0 -28
- package/lib/commonjs/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js +0 -32
- package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/commonjs/providers/screen/styles/stores/slot-references.store.js +0 -53
- package/lib/commonjs/providers/screen/styles/stores/slot-references.store.js.map +0 -1
- package/lib/commonjs/providers/stack/direct.provider.js +0 -104
- package/lib/commonjs/providers/stack/direct.provider.js.map +0 -1
- package/lib/commonjs/types/providers/direct-stack.types.js +0 -6
- package/lib/commonjs/types/providers/direct-stack.types.js.map +0 -1
- package/lib/commonjs/utils/bounds/navigation/math.js +0 -134
- package/lib/commonjs/utils/bounds/navigation/math.js.map +0 -1
- package/lib/commonjs/utils/platform.js +0 -14
- package/lib/commonjs/utils/platform.js.map +0 -1
- package/lib/module/components/boundary/hooks/use-register-target.js +0 -27
- package/lib/module/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -47
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js +0 -13
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/host-name.js +0 -9
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js +0 -40
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/ownership.js +0 -213
- package/lib/module/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/shallow-equal.js +0 -24
- package/lib/module/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/visible-host.js +0 -20
- package/lib/module/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/module/components/masked-view.js +0 -52
- package/lib/module/components/masked-view.js.map +0 -1
- package/lib/module/components/scene-view.js +0 -27
- package/lib/module/components/scene-view.js.map +0 -1
- package/lib/module/components/screen-container/layers/surface-container.js +0 -48
- package/lib/module/components/screen-container/layers/surface-container.js.map +0 -1
- package/lib/module/hooks/navigation/use-previous.js +0 -11
- package/lib/module/hooks/navigation/use-previous.js.map +0 -1
- package/lib/module/hooks/navigation/use-stack.js +0 -85
- package/lib/module/hooks/navigation/use-stack.js.map +0 -1
- package/lib/module/hooks/navigation/use-tab-press-reset.js +0 -27
- package/lib/module/hooks/navigation/use-tab-press-reset.js.map +0 -1
- package/lib/module/hooks/use-stable-callback-value.js +0 -64
- package/lib/module/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/module/providers/register-bounds.provider.js +0 -308
- package/lib/module/providers/register-bounds.provider.js.map +0 -1
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +0 -18
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +0 -1
- package/lib/module/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -41
- package/lib/module/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
- package/lib/module/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +0 -150
- package/lib/module/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -59
- package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -15
- package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -24
- package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -33
- package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/module/providers/screen/gestures/shared/ancestors.js +0 -19
- package/lib/module/providers/screen/gestures/shared/ancestors.js.map +0 -1
- package/lib/module/providers/screen/origin.provider.js +0 -33
- package/lib/module/providers/screen/origin.provider.js.map +0 -1
- package/lib/module/providers/screen/styles/components/floating-overlay-layer.js +0 -24
- package/lib/module/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/module/providers/screen/styles/helpers/opening-phase.js +0 -26
- package/lib/module/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/module/providers/screen/styles/stores/slot-references.store.js +0 -47
- package/lib/module/providers/screen/styles/stores/slot-references.store.js.map +0 -1
- package/lib/module/providers/stack/direct.provider.js +0 -101
- package/lib/module/providers/stack/direct.provider.js.map +0 -1
- package/lib/module/types/providers/direct-stack.types.js +0 -4
- package/lib/module/types/providers/direct-stack.types.js.map +0 -1
- package/lib/module/utils/bounds/navigation/math.js +0 -125
- package/lib/module/utils/bounds/navigation/math.js.map +0 -1
- package/lib/module/utils/platform.js +0 -10
- package/lib/module/utils/platform.js.map +0 -1
- package/lib/typescript/components/boundary/hooks/use-register-target.d.ts +0 -10
- package/lib/typescript/components/boundary/hooks/use-register-target.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +0 -13
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts +0 -3
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts +0 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts +0 -9
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/ownership.d.ts +0 -34
- package/lib/typescript/components/boundary/portal/utils/ownership.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts +0 -8
- package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts +0 -8
- package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts.map +0 -1
- package/lib/typescript/components/masked-view.d.ts +0 -10
- package/lib/typescript/components/masked-view.d.ts.map +0 -1
- package/lib/typescript/components/scene-view.d.ts +0 -13
- package/lib/typescript/components/scene-view.d.ts.map +0 -1
- package/lib/typescript/components/screen-container/layers/surface-container.d.ts +0 -8
- package/lib/typescript/components/screen-container/layers/surface-container.d.ts.map +0 -1
- package/lib/typescript/hooks/navigation/use-previous.d.ts +0 -2
- package/lib/typescript/hooks/navigation/use-previous.d.ts.map +0 -1
- package/lib/typescript/hooks/navigation/use-stack.d.ts +0 -34
- package/lib/typescript/hooks/navigation/use-stack.d.ts.map +0 -1
- package/lib/typescript/hooks/navigation/use-tab-press-reset.d.ts +0 -10
- package/lib/typescript/hooks/navigation/use-tab-press-reset.d.ts.map +0 -1
- package/lib/typescript/hooks/use-stable-callback-value.d.ts +0 -13
- package/lib/typescript/hooks/use-stable-callback-value.d.ts.map +0 -1
- package/lib/typescript/providers/register-bounds.provider.d.ts +0 -25
- package/lib/typescript/providers/register-bounds.provider.d.ts.map +0 -1
- package/lib/typescript/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +0 -2
- package/lib/typescript/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +0 -1
- package/lib/typescript/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +0 -14
- package/lib/typescript/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +0 -14
- package/lib/typescript/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts +0 -15
- package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts +0 -4
- package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts +0 -5
- package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts +0 -9
- package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/shared/ancestors.d.ts +0 -11
- package/lib/typescript/providers/screen/gestures/shared/ancestors.d.ts.map +0 -1
- package/lib/typescript/providers/screen/origin.provider.d.ts +0 -11
- package/lib/typescript/providers/screen/origin.provider.d.ts.map +0 -1
- package/lib/typescript/providers/screen/styles/components/floating-overlay-layer.d.ts +0 -7
- package/lib/typescript/providers/screen/styles/components/floating-overlay-layer.d.ts.map +0 -1
- package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts +0 -16
- package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts.map +0 -1
- package/lib/typescript/providers/screen/styles/stores/slot-references.store.d.ts +0 -6
- package/lib/typescript/providers/screen/styles/stores/slot-references.store.d.ts.map +0 -1
- package/lib/typescript/providers/stack/direct.provider.d.ts +0 -6
- package/lib/typescript/providers/stack/direct.provider.d.ts.map +0 -1
- package/lib/typescript/types/providers/direct-stack.types.d.ts +0 -31
- package/lib/typescript/types/providers/direct-stack.types.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/navigation/math.d.ts +0 -31
- package/lib/typescript/utils/bounds/navigation/math.d.ts.map +0 -1
- package/lib/typescript/utils/platform.d.ts +0 -2
- package/lib/typescript/utils/platform.d.ts.map +0 -1
- package/src/components/boundary/hooks/use-register-target.ts +0 -43
- package/src/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +0 -80
- package/src/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.ts +0 -16
- package/src/components/boundary/portal/components/boundary-portal/helpers/host-name.ts +0 -10
- package/src/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.ts +0 -45
- package/src/components/boundary/portal/utils/ownership.ts +0 -319
- package/src/components/boundary/portal/utils/shallow-equal.ts +0 -25
- package/src/components/boundary/portal/utils/visible-host.ts +0 -24
- package/src/components/masked-view.tsx +0 -58
- package/src/components/scene-view.tsx +0 -29
- package/src/components/screen-container/layers/surface-container.tsx +0 -63
- package/src/hooks/navigation/use-previous.ts +0 -11
- package/src/hooks/navigation/use-stack.tsx +0 -185
- package/src/hooks/navigation/use-tab-press-reset.ts +0 -36
- package/src/hooks/use-stable-callback-value.ts +0 -72
- package/src/providers/register-bounds.provider.tsx +0 -401
- package/src/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +0 -13
- package/src/providers/screen/descriptors/helpers/get-ancestor-keys.ts +0 -55
- package/src/providers/screen/gestures/rotation/activation/use-rotation-activation.ts +0 -88
- package/src/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts +0 -19
- package/src/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts +0 -47
- package/src/providers/screen/gestures/rotation/use-build-rotation-gesture.ts +0 -50
- package/src/providers/screen/gestures/shared/ancestors.ts +0 -27
- package/src/providers/screen/origin.provider.tsx +0 -38
- package/src/providers/screen/styles/components/floating-overlay-layer.tsx +0 -29
- package/src/providers/screen/styles/helpers/opening-phase.ts +0 -25
- package/src/providers/screen/styles/stores/slot-references.store.ts +0 -72
- package/src/providers/stack/direct.provider.tsx +0 -129
- package/src/types/providers/direct-stack.types.ts +0 -69
- package/src/utils/bounds/navigation/math.ts +0 -188
- package/src/utils/platform.ts +0 -8
|
@@ -8,17 +8,16 @@ import {
|
|
|
8
8
|
} from "../../../../types/ownership.types";
|
|
9
9
|
import {
|
|
10
10
|
type BaseDescriptor,
|
|
11
|
-
|
|
12
|
-
useDescriptors,
|
|
11
|
+
useDescriptorsStore,
|
|
13
12
|
} from "../../../screen/descriptors";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { useBlankStackStore } from "../../../stack/blank-stack.provider";
|
|
14
|
+
import { useScreenGestureStore } from "../gestures.provider";
|
|
16
15
|
import { resolveScreenGestureConfig } from "../shared/policy";
|
|
17
|
-
import type {
|
|
16
|
+
import type { ScreenGestureSource } from "../types";
|
|
18
17
|
import { resolveShadowingClaimDirections } from "./shadowing-claims";
|
|
19
18
|
|
|
20
19
|
type ShadowedAncestor = {
|
|
21
|
-
ancestor:
|
|
20
|
+
ancestor: ScreenGestureSource;
|
|
22
21
|
directions: Direction[];
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -30,9 +29,9 @@ const findShadowedDirections = (
|
|
|
30
29
|
) => {
|
|
31
30
|
const shadowedDirections: Direction[] = [];
|
|
32
31
|
|
|
33
|
-
for (const
|
|
34
|
-
if (claimedDirections[
|
|
35
|
-
shadowedDirections.push(
|
|
32
|
+
for (const direction of DIRECTIONS) {
|
|
33
|
+
if (claimedDirections[direction] && ancestorDirections[direction]) {
|
|
34
|
+
shadowedDirections.push(direction);
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -40,15 +39,15 @@ const findShadowedDirections = (
|
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
const findShadowedAncestors = (
|
|
43
|
-
|
|
42
|
+
ancestorGestures: readonly ScreenGestureSource[],
|
|
44
43
|
claimedDirections: ClaimedDirections,
|
|
45
44
|
) => {
|
|
46
|
-
if (
|
|
45
|
+
if (ancestorGestures.length === 0) {
|
|
47
46
|
return NO_SHADOWED_ANCESTORS;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
const ancestors: ShadowedAncestor[] = [];
|
|
51
|
-
for (const ancestor of
|
|
50
|
+
for (const ancestor of ancestorGestures) {
|
|
52
51
|
const directions = findShadowedDirections(
|
|
53
52
|
claimedDirections,
|
|
54
53
|
ancestor.claimedDirections,
|
|
@@ -70,8 +69,8 @@ const registerShadowingClaims = (
|
|
|
70
69
|
|
|
71
70
|
for (const { ancestor, directions } of shadowedAncestors) {
|
|
72
71
|
const newClaims = { ...ancestor.childDirectionClaims.get() };
|
|
73
|
-
for (const
|
|
74
|
-
newClaims[
|
|
72
|
+
for (const direction of directions) {
|
|
73
|
+
newClaims[direction] = { routeKey: currentScreenKey, isDismissing };
|
|
75
74
|
}
|
|
76
75
|
ancestor.childDirectionClaims.set(newClaims);
|
|
77
76
|
}
|
|
@@ -86,10 +85,9 @@ const clearShadowingClaims = (
|
|
|
86
85
|
const newClaims = { ...currentClaims };
|
|
87
86
|
let needsUpdate = false;
|
|
88
87
|
|
|
89
|
-
for (const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
newClaims[dir] = null;
|
|
88
|
+
for (const direction of directions) {
|
|
89
|
+
if (currentClaims[direction]?.routeKey === currentScreenKey) {
|
|
90
|
+
newClaims[direction] = null;
|
|
93
91
|
needsUpdate = true;
|
|
94
92
|
}
|
|
95
93
|
}
|
|
@@ -108,7 +106,7 @@ const getDescriptorIsFirstKey = (descriptor: BaseDescriptor): boolean => {
|
|
|
108
106
|
|
|
109
107
|
const getDescriptorClaimedDirections = (
|
|
110
108
|
descriptor: BaseDescriptor | undefined,
|
|
111
|
-
|
|
109
|
+
ancestorGestures: readonly ScreenGestureSource[],
|
|
112
110
|
): ClaimedDirections => {
|
|
113
111
|
if (!descriptor) {
|
|
114
112
|
return NO_CLAIMS;
|
|
@@ -117,67 +115,41 @@ const getDescriptorClaimedDirections = (
|
|
|
117
115
|
return resolveScreenGestureConfig({
|
|
118
116
|
options: descriptor.options,
|
|
119
117
|
isFirstKey: getDescriptorIsFirstKey(descriptor),
|
|
120
|
-
|
|
118
|
+
ancestorGestures,
|
|
121
119
|
}).participation.claimedDirections;
|
|
122
120
|
};
|
|
123
121
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
claimedDirections: ClaimedDirections,
|
|
137
|
-
): void {
|
|
138
|
-
const parentContext = useGestureContext();
|
|
139
|
-
const { current, previous } = useDescriptors();
|
|
140
|
-
const { isTopMostScreen, currentScreenKey } = useDescriptorDerivations();
|
|
141
|
-
|
|
142
|
-
/*
|
|
143
|
-
* We want to calculate effective claimed directions as claimedDirections is not enough for us.
|
|
144
|
-
* What this solves is lingering claimed directions when a screen is closing.
|
|
145
|
-
*
|
|
146
|
-
* Overlay claims horizontal
|
|
147
|
-
* └─ A has no local horizontal claim
|
|
148
|
-
* └─ B claims horizontal (closing)
|
|
149
|
-
* └─ C claims horizontal (closing)
|
|
150
|
-
*
|
|
151
|
-
* Closing screens are still mounted, so they can still block parent gestures.
|
|
152
|
-
* But they cannot receive touches anymore.
|
|
153
|
-
*
|
|
154
|
-
* So when B/C are closing and the user is really touching A, B/C should not
|
|
155
|
-
* keep blocking the parent with their own gesture config.
|
|
156
|
-
*
|
|
157
|
-
* A closing screen should act like the visible screen underneath it:
|
|
158
|
-
* - if the screen underneath claims the gesture, keep blocking the parent
|
|
159
|
-
* - if the screen underneath does not claim it, let the parent handle it
|
|
160
|
-
*/
|
|
122
|
+
function ActiveGestureOwnershipBridge() {
|
|
123
|
+
const gestureContext = useScreenGestureStore();
|
|
124
|
+
const previous = useDescriptorsStore((store) => store.previous);
|
|
125
|
+
const isCurrentScreenClosing = useBlankStackStore(
|
|
126
|
+
(store) =>
|
|
127
|
+
store.scenesByKey[gestureContext.routeKey]?.activity === "closing",
|
|
128
|
+
);
|
|
129
|
+
const {
|
|
130
|
+
claimedDirections,
|
|
131
|
+
ancestorGestures,
|
|
132
|
+
routeKey: currentScreenKey,
|
|
133
|
+
} = gestureContext;
|
|
161
134
|
const effectiveClaimedDirections = useMemo(
|
|
162
135
|
() =>
|
|
163
136
|
resolveShadowingClaimDirections({
|
|
164
|
-
|
|
137
|
+
isCurrentScreenClosing,
|
|
165
138
|
currentClaimedDirections: claimedDirections,
|
|
166
139
|
previousClaimedDirections: getDescriptorClaimedDirections(
|
|
167
140
|
previous,
|
|
168
|
-
|
|
141
|
+
ancestorGestures,
|
|
169
142
|
),
|
|
170
143
|
}),
|
|
171
|
-
[
|
|
144
|
+
[isCurrentScreenClosing, claimedDirections, previous, ancestorGestures],
|
|
172
145
|
);
|
|
173
|
-
|
|
174
146
|
const shadowedAncestors = useMemo(
|
|
175
|
-
() => findShadowedAncestors(
|
|
176
|
-
[
|
|
147
|
+
() => findShadowedAncestors(ancestorGestures, effectiveClaimedDirections),
|
|
148
|
+
[ancestorGestures, effectiveClaimedDirections],
|
|
177
149
|
);
|
|
178
150
|
|
|
179
151
|
useLayoutEffect(() => {
|
|
180
|
-
if (!
|
|
152
|
+
if (!shadowedAncestors.length) {
|
|
181
153
|
return;
|
|
182
154
|
}
|
|
183
155
|
|
|
@@ -186,5 +158,16 @@ export function useWalkUpAndRegisterShadowingClaims(
|
|
|
186
158
|
return () => {
|
|
187
159
|
clearShadowingClaims(shadowedAncestors, currentScreenKey);
|
|
188
160
|
};
|
|
189
|
-
}, [shadowedAncestors, currentScreenKey
|
|
161
|
+
}, [shadowedAncestors, currentScreenKey]);
|
|
162
|
+
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** Keeps gesture ownership subscriptions attached only to participating screens. */
|
|
167
|
+
export function GestureOwnershipBridge() {
|
|
168
|
+
const isTopMostScreen = useDescriptorsStore(
|
|
169
|
+
(store) => store.derivations.isTopMostScreen,
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
return isTopMostScreen ? <ActiveGestureOwnershipBridge /> : null;
|
|
190
173
|
}
|
|
@@ -16,7 +16,6 @@ import type { DirectionClaim } from "../types";
|
|
|
16
16
|
*/
|
|
17
17
|
interface AncestorClaimsContext {
|
|
18
18
|
claimedDirections: ClaimedDirections;
|
|
19
|
-
gestureContext: AncestorClaimsContext | null;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
/**
|
|
@@ -31,12 +30,12 @@ interface AncestorClaimsContext {
|
|
|
31
30
|
* used in worklets since it's a plain object.
|
|
32
31
|
*
|
|
33
32
|
* @param selfClaims - The directions claimed by the current screen
|
|
34
|
-
* @param
|
|
33
|
+
* @param ancestors - Nearest-first ancestor gesture values from screen topology.
|
|
35
34
|
* @returns Ownership status for all four directions
|
|
36
35
|
*/
|
|
37
36
|
export function resolveOwnership(
|
|
38
37
|
selfClaims: ClaimedDirections,
|
|
39
|
-
|
|
38
|
+
ancestors: readonly AncestorClaimsContext[],
|
|
40
39
|
): DirectionOwnership {
|
|
41
40
|
const result: DirectionOwnership = { ...NO_OWNERSHIP };
|
|
42
41
|
|
|
@@ -44,7 +43,7 @@ export function resolveOwnership(
|
|
|
44
43
|
result[direction] = resolveDirectionOwnership(
|
|
45
44
|
direction,
|
|
46
45
|
selfClaims,
|
|
47
|
-
|
|
46
|
+
ancestors,
|
|
48
47
|
);
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -57,7 +56,7 @@ export function resolveOwnership(
|
|
|
57
56
|
function resolveDirectionOwnership(
|
|
58
57
|
direction: Direction,
|
|
59
58
|
selfClaims: ClaimedDirections,
|
|
60
|
-
|
|
59
|
+
ancestors: readonly AncestorClaimsContext[],
|
|
61
60
|
): OwnershipStatus {
|
|
62
61
|
// Check self first
|
|
63
62
|
if (selfClaims[direction]) {
|
|
@@ -65,12 +64,10 @@ function resolveDirectionOwnership(
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
// Walk ancestors looking for a claim
|
|
68
|
-
|
|
69
|
-
while (ancestor) {
|
|
67
|
+
for (const ancestor of ancestors) {
|
|
70
68
|
if (ancestor.claimedDirections?.[direction]) {
|
|
71
69
|
return "ancestor";
|
|
72
70
|
}
|
|
73
|
-
ancestor = ancestor.gestureContext;
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
// No one claims this direction
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { ClaimedDirections } from "../../../../types/ownership.types";
|
|
2
|
-
import type { StackSceneActivity } from "../../../../types/stack.types";
|
|
3
2
|
|
|
4
3
|
export const resolveShadowingClaimDirections = ({
|
|
5
|
-
|
|
4
|
+
isCurrentScreenClosing,
|
|
6
5
|
currentClaimedDirections,
|
|
7
6
|
previousClaimedDirections,
|
|
8
7
|
}: {
|
|
9
|
-
|
|
8
|
+
isCurrentScreenClosing: boolean;
|
|
10
9
|
currentClaimedDirections: ClaimedDirections;
|
|
11
10
|
previousClaimedDirections: ClaimedDirections;
|
|
12
11
|
}): ClaimedDirections => {
|
|
13
|
-
if (
|
|
12
|
+
if (isCurrentScreenClosing) {
|
|
14
13
|
return previousClaimedDirections;
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -410,7 +410,6 @@ export const resolvePanActivationMoveDecision = ({
|
|
|
410
410
|
dimensions,
|
|
411
411
|
activationState,
|
|
412
412
|
activationArea: policy.gestureActivationArea,
|
|
413
|
-
responseDistance: policy.gestureResponseDistance,
|
|
414
413
|
});
|
|
415
414
|
|
|
416
415
|
const offsetFailureDecision = resolveOffsetFailureDecision(offset);
|
|
@@ -15,7 +15,6 @@ interface ResolveOffsetRulesProps {
|
|
|
15
15
|
activationState: GestureActivationState;
|
|
16
16
|
activationArea?: ResolvedGestureActivationArea;
|
|
17
17
|
dimensions: Layout;
|
|
18
|
-
responseDistance?: number;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
type NormalizedSides = {
|
|
@@ -137,11 +136,10 @@ export function computeEdgeConstraints(
|
|
|
137
136
|
initialTouch: { x: number; y: number },
|
|
138
137
|
dimensions: Layout,
|
|
139
138
|
sides: NormalizedSides,
|
|
140
|
-
responseDistance?: number,
|
|
141
139
|
) {
|
|
142
140
|
"worklet";
|
|
143
|
-
const xDist =
|
|
144
|
-
const yDist =
|
|
141
|
+
const xDist = DEFAULT_EDGE_DISTANCE_HORIZONTAL;
|
|
142
|
+
const yDist = DEFAULT_EDGE_DISTANCE_VERTICAL;
|
|
145
143
|
|
|
146
144
|
return {
|
|
147
145
|
horizontalRight: canActivateFromStartEdge(
|
|
@@ -293,7 +291,6 @@ export const resolveOffsetRules = ({
|
|
|
293
291
|
activationState,
|
|
294
292
|
activationArea,
|
|
295
293
|
dimensions,
|
|
296
|
-
responseDistance,
|
|
297
294
|
}: ResolveOffsetRulesProps): OffsetRuleResult => {
|
|
298
295
|
"worklet";
|
|
299
296
|
|
|
@@ -331,7 +328,7 @@ export const resolveOffsetRules = ({
|
|
|
331
328
|
horizontalLeft: horizontalGateLeft,
|
|
332
329
|
verticalDown: verticalGateDown,
|
|
333
330
|
verticalUp: verticalGateUp,
|
|
334
|
-
} = computeEdgeConstraints(initialTouch, dimensions, sides
|
|
331
|
+
} = computeEdgeConstraints(initialTouch, dimensions, sides);
|
|
335
332
|
|
|
336
333
|
const { shouldActivate, shouldFail } = shouldActivateOrFail({
|
|
337
334
|
deltaX,
|
|
@@ -7,8 +7,9 @@ import { type SharedValue, useSharedValue } from "react-native-reanimated";
|
|
|
7
7
|
import { GestureStore } from "../../../../../stores/gesture.store";
|
|
8
8
|
import { GestureActivationState } from "../../../../../types/gesture.types";
|
|
9
9
|
import type { Direction } from "../../../../../types/ownership.types";
|
|
10
|
-
import {
|
|
10
|
+
import { useDescriptorsStore } from "../../../descriptors";
|
|
11
11
|
import type { ScreenOptionsContextValue } from "../../../options";
|
|
12
|
+
import { useCurrentScreenRelationships } from "../../../use-current-screen-relationships";
|
|
12
13
|
import { resolvePanRuntime } from "../../shared/runtime";
|
|
13
14
|
import type {
|
|
14
15
|
DirectionClaimMap,
|
|
@@ -36,7 +37,10 @@ export const usePanActivation = ({
|
|
|
36
37
|
dimensions,
|
|
37
38
|
gestureCompositionOwner,
|
|
38
39
|
}: UsePanActivationProps) => {
|
|
39
|
-
const
|
|
40
|
+
const currentScreenKey = useDescriptorsStore(
|
|
41
|
+
(store) => store.derivations.currentScreenKey,
|
|
42
|
+
);
|
|
43
|
+
const { parentScreenKey } = useCurrentScreenRelationships();
|
|
40
44
|
|
|
41
45
|
const ancestorDismissing = useMemo(() => {
|
|
42
46
|
if (!parentScreenKey) return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { clamp, type SharedValue } from "react-native-reanimated";
|
|
2
2
|
import { scheduleOnRN } from "react-native-worklets";
|
|
3
|
-
import { EPSILON,
|
|
3
|
+
import { EPSILON, TRUE } from "../../../../../constants";
|
|
4
|
+
import { emitMotionStart } from "../../../../../stores/animation.store";
|
|
4
5
|
import { animateToProgress } from "../../../../../utils/animation/animate-to-progress";
|
|
5
|
-
import { emit } from "../../../../../utils/animation/emit";
|
|
6
6
|
import {
|
|
7
7
|
normalizeGestureTranslation,
|
|
8
8
|
resolveGestureVelocity,
|
|
@@ -30,16 +30,7 @@ export const startPanBase = (runtime: PanGestureRuntime) => {
|
|
|
30
30
|
stores: { gestures, animations },
|
|
31
31
|
} = runtime;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
const hasResidualGesture =
|
|
35
|
-
Math.abs(gestures.normX.get()) > EPSILON ||
|
|
36
|
-
Math.abs(gestures.normY.get()) > EPSILON ||
|
|
37
|
-
Math.abs(gestures.normScale.get()) > EPSILON ||
|
|
38
|
-
Math.abs(gestures.rotation.get()) > EPSILON;
|
|
39
|
-
|
|
40
|
-
if (!wasSettling || !hasResidualGesture) {
|
|
41
|
-
emit(animations.willAnimate, TRUE, FALSE);
|
|
42
|
-
}
|
|
33
|
+
emitMotionStart(animations);
|
|
43
34
|
|
|
44
35
|
gestures.dragging.set(TRUE);
|
|
45
36
|
gestures.dismissing.set(0);
|
|
@@ -99,7 +90,6 @@ export const trackPanGesture = (
|
|
|
99
90
|
export const finalizePanRelease = (
|
|
100
91
|
release: PanReleaseResult,
|
|
101
92
|
runtime: PanGestureRuntime,
|
|
102
|
-
dismissScreen: ((finished: boolean) => void) | undefined,
|
|
103
93
|
dimensions: GestureDimensions,
|
|
104
94
|
rawEvent: PanGestureEvent,
|
|
105
95
|
requestDismiss?: () => void,
|
|
@@ -134,6 +124,9 @@ export const finalizePanRelease = (
|
|
|
134
124
|
system.targetProgress.set(plan.commitProgress);
|
|
135
125
|
}
|
|
136
126
|
|
|
127
|
+
const progressAlreadyAtTarget =
|
|
128
|
+
Math.abs(animations.transitionProgress.get() - plan.target) <= EPSILON;
|
|
129
|
+
|
|
137
130
|
if (canDriveRelease && plan.shouldDismiss) {
|
|
138
131
|
snapshotGestureHandoff(gestures, {
|
|
139
132
|
velocity: plan.handoffVelocity,
|
|
@@ -143,6 +136,8 @@ export const finalizePanRelease = (
|
|
|
143
136
|
resetPanGestureValues({
|
|
144
137
|
plan,
|
|
145
138
|
gestures,
|
|
139
|
+
animations,
|
|
140
|
+
completeMotion: !plan.shouldDismiss && progressAlreadyAtTarget,
|
|
146
141
|
updateLifecycle: canDriveRelease,
|
|
147
142
|
});
|
|
148
143
|
|
|
@@ -150,27 +145,23 @@ export const finalizePanRelease = (
|
|
|
150
145
|
return;
|
|
151
146
|
}
|
|
152
147
|
|
|
153
|
-
const progressAlreadyAtTarget =
|
|
154
|
-
Math.abs(animations.transitionProgress.get() - plan.target) <= EPSILON;
|
|
155
|
-
|
|
156
148
|
if (!plan.shouldDismiss && progressAlreadyAtTarget) {
|
|
157
149
|
system.targetProgress.set(plan.target);
|
|
158
|
-
animations.progressAnimating.set(FALSE);
|
|
159
150
|
return;
|
|
160
151
|
}
|
|
161
152
|
|
|
162
|
-
if (plan.shouldDismiss && requestDismiss) {
|
|
163
|
-
scheduleOnRN(requestDismiss);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
153
|
animateToProgress({
|
|
167
154
|
target: plan.target,
|
|
168
|
-
onAnimationFinish: plan.shouldDismiss ? dismissScreen : undefined,
|
|
169
155
|
spec: plan.transitionSpec,
|
|
170
156
|
emitWillAnimate: false,
|
|
171
157
|
markEntering: false,
|
|
172
158
|
targetProgress: system.targetProgress,
|
|
159
|
+
animationProgress: system.animationProgress,
|
|
173
160
|
animations,
|
|
174
161
|
initialVelocity: plan.progressVelocity,
|
|
175
162
|
});
|
|
163
|
+
|
|
164
|
+
if (plan.shouldDismiss && requestDismiss) {
|
|
165
|
+
scheduleOnRN(requestDismiss);
|
|
166
|
+
}
|
|
176
167
|
};
|
|
@@ -13,8 +13,12 @@ import {
|
|
|
13
13
|
resolveGestureSnapTransitionSpec,
|
|
14
14
|
} from "../../shared/release";
|
|
15
15
|
import {
|
|
16
|
+
getStepSnapProgressVelocityScale,
|
|
16
17
|
primeRuntimeSnapPoint,
|
|
17
18
|
resolveRuntimeGestureSnapPoints,
|
|
19
|
+
resolveRuntimeGestureSnapTargets,
|
|
20
|
+
resolveStepSnapProgress,
|
|
21
|
+
resolveStepSnapTargets,
|
|
18
22
|
} from "../../shared/snap-points";
|
|
19
23
|
import { determineDismissal, determineSnapTarget } from "../../shared/targets";
|
|
20
24
|
import type {
|
|
@@ -31,7 +35,7 @@ const resolvePanReleaseVelocity = (
|
|
|
31
35
|
velocityNormY: number,
|
|
32
36
|
) => {
|
|
33
37
|
"worklet";
|
|
34
|
-
const activeGesture = runtime.stores.gestures.
|
|
38
|
+
const activeGesture = runtime.stores.gestures.initiator.get();
|
|
35
39
|
|
|
36
40
|
switch (activeGesture) {
|
|
37
41
|
case "horizontal":
|
|
@@ -47,7 +51,7 @@ const resolvePanReleaseVelocity = (
|
|
|
47
51
|
|
|
48
52
|
const resolveActivePanSnapAxis = (runtime: PanGestureRuntime) => {
|
|
49
53
|
"worklet";
|
|
50
|
-
const activeGesture = runtime.stores.gestures.
|
|
54
|
+
const activeGesture = runtime.stores.gestures.initiator.get();
|
|
51
55
|
|
|
52
56
|
return isResolvedPanGestureDirection(activeGesture)
|
|
53
57
|
? getPanSnapAxisConfigForDirection(
|
|
@@ -80,6 +84,8 @@ const getPanSnapReleaseProgress = ({
|
|
|
80
84
|
activeAxis,
|
|
81
85
|
minSnapPoint,
|
|
82
86
|
maxSnapPoint,
|
|
87
|
+
snapPoints,
|
|
88
|
+
sheetSnapBehavior,
|
|
83
89
|
}: {
|
|
84
90
|
runtime: PanGestureRuntime;
|
|
85
91
|
event: PanGestureEvent;
|
|
@@ -87,6 +93,8 @@ const getPanSnapReleaseProgress = ({
|
|
|
87
93
|
activeAxis: NonNullable<ReturnType<typeof resolveActivePanSnapAxis>>;
|
|
88
94
|
minSnapPoint: number;
|
|
89
95
|
maxSnapPoint: number;
|
|
96
|
+
snapPoints: number[];
|
|
97
|
+
sheetSnapBehavior: PanGestureRuntime["policy"]["sheetSnapBehavior"];
|
|
90
98
|
}) => {
|
|
91
99
|
"worklet";
|
|
92
100
|
const isHorizontal = activeAxis.axis === "horizontal";
|
|
@@ -95,9 +103,17 @@ const getPanSnapReleaseProgress = ({
|
|
|
95
103
|
: event.translationY;
|
|
96
104
|
const axisDimension = isHorizontal ? dimensions.width : dimensions.height;
|
|
97
105
|
const axisProgress = axisTranslation / Math.max(1, axisDimension);
|
|
106
|
+
const signedProgressDelta = activeAxis.config.progressSign * axisProgress;
|
|
107
|
+
if (sheetSnapBehavior === "step") {
|
|
108
|
+
return resolveStepSnapProgress({
|
|
109
|
+
baseline: runtime.stores.gestures.internal.progressBaseline.get(),
|
|
110
|
+
normalizedDelta: signedProgressDelta,
|
|
111
|
+
snapPoints,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
98
114
|
const progress =
|
|
99
115
|
runtime.stores.gestures.internal.progressBaseline.get() +
|
|
100
|
-
|
|
116
|
+
signedProgressDelta;
|
|
101
117
|
|
|
102
118
|
return clamp(progress, minSnapPoint, maxSnapPoint);
|
|
103
119
|
};
|
|
@@ -180,6 +196,24 @@ export const resolveSnapPanRelease = (
|
|
|
180
196
|
);
|
|
181
197
|
const { resolvedSnapPoints, resolvedMinSnapPoint, resolvedMaxSnapPoint } =
|
|
182
198
|
resolveRuntimeGestureSnapPoints(runtime);
|
|
199
|
+
const allSnapTargets = resolveRuntimeGestureSnapTargets(runtime);
|
|
200
|
+
const axisTranslation =
|
|
201
|
+
activeAxis.axis === "horizontal" ? event.translationX : event.translationY;
|
|
202
|
+
const progressDirection =
|
|
203
|
+
activeAxis.config.progressSign * axisTranslation || -snapVelocity;
|
|
204
|
+
const releaseSnapPoints =
|
|
205
|
+
policy.sheetSnapBehavior === "step"
|
|
206
|
+
? resolveStepSnapTargets({
|
|
207
|
+
baseline: runtime.stores.gestures.internal.progressBaseline.get(),
|
|
208
|
+
direction: progressDirection,
|
|
209
|
+
snapPoints: allSnapTargets,
|
|
210
|
+
})
|
|
211
|
+
: resolvedSnapPoints;
|
|
212
|
+
const canDismissToReleaseTarget =
|
|
213
|
+
participation.canDismiss &&
|
|
214
|
+
(policy.gestureSnapLocked ||
|
|
215
|
+
policy.sheetSnapBehavior === "continuous" ||
|
|
216
|
+
releaseSnapPoints.includes(0));
|
|
183
217
|
const currentProgress = getPanSnapReleaseProgress({
|
|
184
218
|
runtime,
|
|
185
219
|
event,
|
|
@@ -187,6 +221,8 @@ export const resolveSnapPanRelease = (
|
|
|
187
221
|
activeAxis,
|
|
188
222
|
minSnapPoint: resolvedMinSnapPoint,
|
|
189
223
|
maxSnapPoint: resolvedMaxSnapPoint,
|
|
224
|
+
snapPoints: allSnapTargets,
|
|
225
|
+
sheetSnapBehavior: policy.sheetSnapBehavior,
|
|
190
226
|
});
|
|
191
227
|
const result = determineSnapTarget({
|
|
192
228
|
currentProgress,
|
|
@@ -195,24 +231,27 @@ export const resolveSnapPanRelease = (
|
|
|
195
231
|
runtime.stores.gestures.internal.lockedSnapPoint.get() ??
|
|
196
232
|
resolvedMaxSnapPoint,
|
|
197
233
|
]
|
|
198
|
-
:
|
|
234
|
+
: releaseSnapPoints,
|
|
199
235
|
velocity: snapVelocity,
|
|
200
236
|
dimension: axisDimension,
|
|
201
237
|
velocityFactor: policy.gestureSnapVelocityImpact,
|
|
202
|
-
canDismiss:
|
|
238
|
+
canDismiss: canDismissToReleaseTarget,
|
|
203
239
|
});
|
|
204
240
|
|
|
205
241
|
const shouldDismiss = participation.canDismiss && result.shouldDismiss;
|
|
206
242
|
const target = shouldDismiss ? 0 : result.targetProgress;
|
|
243
|
+
const progressVelocityScale =
|
|
244
|
+
policy.sheetSnapBehavior === "step" && !policy.gestureSnapLocked
|
|
245
|
+
? getStepSnapProgressVelocityScale(releaseSnapPoints)
|
|
246
|
+
: 1;
|
|
207
247
|
|
|
208
248
|
return {
|
|
209
249
|
target,
|
|
210
250
|
shouldDismiss,
|
|
211
251
|
initialVelocity: getProgressVelocityTowardTarget({
|
|
212
|
-
handoffVelocity:
|
|
213
|
-
axisVelocity,
|
|
214
|
-
|
|
215
|
-
),
|
|
252
|
+
handoffVelocity:
|
|
253
|
+
getPanReleaseHandoffVelocity(axisVelocity, axisDimension) *
|
|
254
|
+
progressVelocityScale,
|
|
216
255
|
target,
|
|
217
256
|
currentProgress,
|
|
218
257
|
}),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FALSE, TRUE } from "../../../../../constants";
|
|
2
|
+
import type { AnimationStoreMap } from "../../../../../stores/animation.store";
|
|
2
3
|
import type { GestureStoreMap } from "../../../../../stores/gesture.store";
|
|
3
4
|
import { animateMany } from "../../shared/reset";
|
|
4
5
|
import {
|
|
@@ -10,12 +11,16 @@ import type { PanReleasePlan } from "../../types";
|
|
|
10
11
|
interface ResetPanGestureValuesProps {
|
|
11
12
|
plan: PanReleasePlan;
|
|
12
13
|
gestures: GestureStoreMap;
|
|
14
|
+
animations?: AnimationStoreMap;
|
|
15
|
+
completeMotion?: boolean;
|
|
13
16
|
updateLifecycle?: boolean;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
export const resetPanGestureValues = ({
|
|
17
20
|
plan,
|
|
18
21
|
gestures,
|
|
22
|
+
animations,
|
|
23
|
+
completeMotion = false,
|
|
19
24
|
updateLifecycle = true,
|
|
20
25
|
}: ResetPanGestureValuesProps) => {
|
|
21
26
|
"worklet";
|
|
@@ -25,11 +30,19 @@ export const resetPanGestureValues = ({
|
|
|
25
30
|
return;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
gestures.
|
|
29
|
-
gestures.direction.set(null);
|
|
33
|
+
gestures.initiator.set(null);
|
|
30
34
|
gestures.settling.set(FALSE);
|
|
35
|
+
if (completeMotion) {
|
|
36
|
+
animations?.progressAnimating.set(FALSE);
|
|
37
|
+
animations?.progressSettled.set(TRUE);
|
|
38
|
+
}
|
|
31
39
|
};
|
|
32
40
|
|
|
41
|
+
if (animations && updateLifecycle && !plan.shouldDismiss) {
|
|
42
|
+
animations.progressAnimating.set(TRUE);
|
|
43
|
+
animations.progressSettled.set(FALSE);
|
|
44
|
+
}
|
|
45
|
+
|
|
33
46
|
clearRawPanValues(gestures);
|
|
34
47
|
|
|
35
48
|
if (updateLifecycle) {
|
|
@@ -31,7 +31,7 @@ export const usePanBehavior = (
|
|
|
31
31
|
gestureCompositionOwner: SharedValue<GestureCompositionOwner>,
|
|
32
32
|
pendingDirection: SharedValue<Direction | null>,
|
|
33
33
|
): PanBehavior => {
|
|
34
|
-
const {
|
|
34
|
+
const { requestDismiss } = useNavigationHelpers();
|
|
35
35
|
const { withSensitivity, resetSensitivity } =
|
|
36
36
|
usePanGestureSensitivity(screenOptions);
|
|
37
37
|
|
|
@@ -47,8 +47,7 @@ export const usePanBehavior = (
|
|
|
47
47
|
|
|
48
48
|
const direction = pendingDirection.get();
|
|
49
49
|
if (direction) {
|
|
50
|
-
latestRuntime.stores.gestures.
|
|
51
|
-
latestRuntime.stores.gestures.direction.set(direction);
|
|
50
|
+
latestRuntime.stores.gestures.initiator.set(direction);
|
|
52
51
|
}
|
|
53
52
|
pendingDirection.set(null);
|
|
54
53
|
gestureCompositionOwner.set("pan");
|
|
@@ -109,7 +108,6 @@ export const usePanBehavior = (
|
|
|
109
108
|
finalizePanRelease(
|
|
110
109
|
release,
|
|
111
110
|
latestRuntime,
|
|
112
|
-
dismissScreen,
|
|
113
111
|
dimensions,
|
|
114
112
|
rawEvent,
|
|
115
113
|
requestDismiss,
|
|
@@ -124,7 +122,6 @@ export const usePanBehavior = (
|
|
|
124
122
|
runtime,
|
|
125
123
|
screenOptions,
|
|
126
124
|
dimensions,
|
|
127
|
-
dismissScreen,
|
|
128
125
|
requestDismiss,
|
|
129
126
|
withSensitivity,
|
|
130
127
|
gestureCompositionOwner,
|
|
@@ -2,7 +2,7 @@ import { useMemo } from "react";
|
|
|
2
2
|
import { useWindowDimensions } from "react-native";
|
|
3
3
|
import { Gesture } from "react-native-gesture-handler";
|
|
4
4
|
import type { SharedValue } from "react-native-reanimated";
|
|
5
|
-
import {
|
|
5
|
+
import { useScreenOptionsStore } from "../../options";
|
|
6
6
|
import { useStableRuntimeConfig } from "../hooks/use-stable-runtime-config";
|
|
7
7
|
import type {
|
|
8
8
|
DirectionClaimMap,
|
|
@@ -29,7 +29,7 @@ export const useBuildPanGesture = ({
|
|
|
29
29
|
}: UseBuildPanGestureProps): PanGesture => {
|
|
30
30
|
const dimensions = useWindowDimensions();
|
|
31
31
|
const { participation, pan: policy } = gestureConfig;
|
|
32
|
-
const screenOptions =
|
|
32
|
+
const screenOptions = useScreenOptionsStore();
|
|
33
33
|
|
|
34
34
|
const runtime = useStableRuntimeConfig({
|
|
35
35
|
participation,
|