react-native-screen-transitions 4.0.0-alpha.6 → 4.0.0-alpha.8
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/lib/commonjs/adapters/with-screen-transitions/context.js +0 -4
- 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 +19 -18
- package/lib/commonjs/adapters/with-screen-transitions/stack-layout.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 +20 -71
- 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 +1 -1
- package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +3 -15
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +9 -2
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +3 -2
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-measurer.js +10 -5
- package/lib/commonjs/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/components/boundary/index.js +1 -7
- package/lib/commonjs/components/boundary/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +11 -10
- 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-portal/components/host.js +5 -12
- 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 +25 -43
- 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 -31
- 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 +31 -22
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +9 -3
- 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 +19 -48
- 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 +4 -3
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +24 -22
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/refresh-signals.js +19 -5
- package/lib/commonjs/components/boundary/utils/refresh-signals.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 +2 -7
- package/lib/commonjs/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/backdrop.js +10 -7
- package/lib/commonjs/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/content.js +7 -13
- package/lib/commonjs/components/screen-container/layers/content.js.map +1 -1
- 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 +64 -92
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js +1 -5
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/index.js +9 -6
- package/lib/commonjs/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/components/stack-view.js +9 -18
- package/lib/commonjs/components/stack-view.js.map +1 -1
- package/lib/commonjs/configs/presets.js +4 -8
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/constants.js +3 -20
- 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 +28 -15
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/hooks/navigation/use-screen-state.js +2 -2
- 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/providers/helpers/measured-bounds-writes.js +1 -2
- 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 +29 -95
- 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 +1 -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 +2 -2
- 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 +2 -14
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/pipeline.js +20 -18
- 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 +6 -0
- 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 +39 -18
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -4
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js +31 -22
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture-config.js +3 -5
- 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/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} +36 -59
- 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/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 +4 -1
- 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 +4 -5
- 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 +2 -2
- 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 +1 -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/pinch/behavior/pinch-lifecycle.js +7 -9
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-reset.js +1 -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/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 +9 -18
- package/lib/commonjs/providers/screen/gestures/shared/policy.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/options/helpers.js +1 -32
- package/lib/commonjs/providers/screen/options/helpers.js.map +1 -1
- package/lib/commonjs/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/constants.js +1 -0
- package/lib/commonjs/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js +2 -4
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js +20 -1
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js.map +1 -1
- 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/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 +35 -15
- 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 +35 -15
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/index.js +8 -2
- package/lib/commonjs/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js +35 -39
- 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.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 +32 -47
- package/lib/commonjs/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/core.provider.js +5 -17
- package/lib/commonjs/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/stores/animation.store.js +0 -2
- package/lib/commonjs/stores/animation.store.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/links.js +10 -4
- package/lib/commonjs/stores/bounds/internals/links.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/system.store.js +1 -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 +0 -22
- package/lib/commonjs/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/utils/bounds/constants.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/create-bounds-accessor-core.js +0 -5
- package/lib/commonjs/utils/bounds/helpers/create-bounds-accessor-core.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/create-provider.js +111 -38
- 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 +0 -3
- 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 +20 -19
- package/lib/module/adapters/with-screen-transitions/stack-layout.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 +20 -71
- 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 +2 -2
- package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +3 -15
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +9 -2
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js +3 -2
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-measurer.js +11 -6
- package/lib/module/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/components/boundary/index.js +1 -7
- package/lib/module/components/boundary/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +12 -11
- 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-portal/components/host.js +5 -12
- 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 +27 -45
- 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 -32
- 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 +30 -22
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +10 -4
- 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 +19 -48
- 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 +3 -2
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/components/boundary/providers/boundary-root.provider.js +23 -22
- package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/components/boundary/utils/refresh-signals.js +19 -5
- package/lib/module/components/boundary/utils/refresh-signals.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 +2 -7
- package/lib/module/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/components/screen-container/layers/backdrop.js +11 -8
- package/lib/module/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/components/screen-container/layers/content.js +8 -13
- package/lib/module/components/screen-container/layers/content.js.map +1 -1
- 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 -91
- package/lib/module/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js +1 -5
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/components/screen-lifecycle/index.js +9 -6
- package/lib/module/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/components/stack-view.js +9 -18
- package/lib/module/components/stack-view.js.map +1 -1
- package/lib/module/configs/presets.js +4 -8
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/constants.js +2 -19
- 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 +28 -15
- package/lib/module/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/hooks/navigation/use-screen-state.js +2 -2
- 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/providers/helpers/measured-bounds-writes.js +1 -2
- 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 +28 -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 +1 -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 +2 -2
- 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 +2 -14
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/pipeline.js +21 -19
- 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 +42 -20
- package/lib/module/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -4
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/providers/screen/gestures/gestures.provider.js +29 -21
- package/lib/module/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture-config.js +3 -5
- 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/index.js +1 -1
- package/lib/module/providers/screen/gestures/index.js.map +1 -1
- package/lib/module/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +36 -59
- 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/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 -1
- 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 +4 -5
- 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 +2 -2
- 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 +1 -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/pinch/behavior/pinch-lifecycle.js +7 -9
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-reset.js +1 -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/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 +9 -18
- package/lib/module/providers/screen/gestures/shared/policy.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/options/helpers.js +2 -33
- package/lib/module/providers/screen/options/helpers.js.map +1 -1
- package/lib/module/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/providers/screen/styles/constants.js +1 -0
- package/lib/module/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js +2 -4
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js +18 -0
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js.map +1 -1
- 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/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 +36 -16
- 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 +35 -15
- 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 +33 -38
- 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.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 +29 -45
- package/lib/module/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/module/providers/stack/core.provider.js +5 -17
- package/lib/module/providers/stack/core.provider.js.map +1 -1
- package/lib/module/stores/animation.store.js +0 -2
- package/lib/module/stores/animation.store.js.map +1 -1
- package/lib/module/stores/bounds/internals/links.js +10 -4
- package/lib/module/stores/bounds/internals/links.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/system.store.js +1 -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 +0 -22
- package/lib/module/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/utils/bounds/constants.js.map +1 -1
- package/lib/module/utils/bounds/helpers/create-bounds-accessor-core.js +0 -5
- package/lib/module/utils/bounds/helpers/create-bounds-accessor-core.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/create-provider.js +111 -38
- 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 -6
- 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.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 -4
- 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/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-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +3 -2
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-measurer.d.ts +3 -2
- package/lib/typescript/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/components/boundary/index.d.ts +0 -10
- package/lib/typescript/components/boundary/index.d.ts.map +1 -1
- 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-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 -17
- 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 +9 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -1
- 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 -9
- 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/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +2 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +5 -1
- 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/refresh-signals.d.ts +1 -0
- package/lib/typescript/components/boundary/utils/refresh-signals.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/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-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-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 +2 -3
- package/lib/typescript/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts +0 -6
- 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 +14 -20
- 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/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 +15 -9
- 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.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 +14 -11
- 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 -4
- package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts +16 -4
- 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/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/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-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/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-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 +4 -7
- package/lib/typescript/providers/screen/gestures/shared/policy.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 +4 -3
- 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/types.d.ts +0 -2
- package/lib/typescript/providers/screen/options/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/screen-composer.d.ts +5 -5
- package/lib/typescript/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts +1 -1
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts +7 -0
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -1
- 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/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +1 -1
- 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 +8 -2
- 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 +12 -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 +12 -7
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/core.provider.d.ts +0 -7
- package/lib/typescript/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/stores/animation.store.d.ts +0 -1
- package/lib/typescript/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/links.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/system.store.d.ts +1 -2
- package/lib/typescript/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/types/animation.types.d.ts +9 -15
- package/lib/typescript/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/types/blank-stack.types.d.ts +1 -17
- 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 +4 -33
- package/lib/typescript/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +3 -3
- 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 +14 -20
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +4 -94
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/types/stack.types.d.ts +10 -24
- package/lib/typescript/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate-to-progress.d.ts +1 -2
- package/lib/typescript/utils/animation/animate-to-progress.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/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/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 +44 -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 -10
- package/src/adapters/with-screen-transitions/options.ts +1 -32
- package/src/adapters/with-screen-transitions/stack-layout.tsx +23 -36
- 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 +24 -91
- package/src/components/boundary/components/boundary-lifecycle.tsx +53 -0
- package/src/components/boundary/components/boundary-target.tsx +2 -2
- package/src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +2 -16
- package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +13 -2
- package/src/components/boundary/hooks/use-boundary-measurement.ts +7 -2
- package/src/components/boundary/hooks/use-measurer.ts +15 -3
- package/src/components/boundary/index.tsx +0 -14
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +22 -8
- package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +13 -11
- package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +44 -55
- 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 -55
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +38 -24
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +13 -2
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +20 -68
- package/src/components/boundary/portal/components/boundary-portal/index.tsx +4 -2
- package/src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +3 -2
- package/src/components/boundary/providers/boundary-root.provider.tsx +37 -24
- package/src/components/boundary/types.ts +9 -0
- package/src/components/boundary/utils/refresh-signals.ts +39 -6
- 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 +2 -9
- package/src/components/screen-container/layers/backdrop.tsx +11 -7
- package/src/components/screen-container/layers/content.tsx +11 -15
- 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 +73 -116
- package/src/components/screen-lifecycle/hooks/use-transition-start-controller.ts +0 -12
- package/src/components/screen-lifecycle/index.tsx +8 -4
- package/src/components/stack-view.tsx +9 -33
- package/src/configs/presets.ts +4 -7
- package/src/constants.ts +0 -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 +36 -13
- package/src/hooks/navigation/use-screen-state.ts +4 -10
- package/src/hooks/reanimated/use-shared-value-ref.ts +3 -4
- package/src/index.ts +1 -8
- package/src/navigators/create-blank-stack-navigator.tsx +3 -11
- package/src/providers/helpers/measured-bounds-writes.ts +1 -1
- package/src/providers/navigation/navigation-host.provider.tsx +18 -3
- package/src/providers/screen/animation/animation.provider.tsx +74 -194
- 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 +4 -11
- package/src/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +4 -3
- package/src/providers/screen/animation/helpers/hydrate-transition-state/index.ts +2 -21
- package/src/providers/screen/animation/helpers/hydrate-transition-state/types.ts +0 -1
- package/src/providers/screen/animation/helpers/pipeline.ts +28 -29
- package/src/providers/screen/animation/helpers/read-screen-animation-revisions.ts +6 -30
- package/src/providers/screen/animation/helpers/selected-interpolator-options.ts +0 -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 +1 -0
- 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 +61 -41
- package/src/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -6
- package/src/providers/screen/gestures/gestures.provider.tsx +97 -75
- package/src/providers/screen/gestures/hooks/use-screen-gesture-config.ts +6 -7
- package/src/providers/screen/gestures/hooks/use-screen-gesture.ts +3 -4
- 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} +42 -67
- package/src/providers/screen/gestures/ownership/resolve-ownership.ts +5 -8
- 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 +2 -3
- package/src/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +4 -6
- package/src/providers/screen/gestures/pan/behavior/pan-release.ts +2 -2
- package/src/providers/screen/gestures/pan/behavior/pan-reset.ts +1 -2
- package/src/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +2 -5
- package/src/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -10
- package/src/providers/screen/gestures/pinch/behavior/pinch-reset.ts +1 -2
- package/src/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +2 -8
- 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 +10 -26
- package/src/providers/screen/gestures/shared/snapshot.ts +1 -2
- package/src/providers/screen/gestures/types.ts +5 -3
- package/src/providers/screen/options/helpers.ts +0 -73
- package/src/providers/screen/options/types.ts +0 -2
- package/src/providers/screen/screen-composer.tsx +6 -6
- package/src/providers/screen/styles/constants.ts +1 -0
- package/src/providers/screen/styles/helpers/select-interpolator-frame.ts +1 -9
- package/src/providers/screen/styles/helpers/transition-visual-state.ts +26 -0
- package/src/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
- package/src/providers/screen/styles/hooks/slot-resolvers.tsx +25 -6
- package/src/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +50 -21
- package/src/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +40 -15
- package/src/providers/screen/styles/index.tsx +2 -1
- package/src/providers/screen/styles/slot.provider.tsx +56 -79
- 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 +31 -54
- 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 +40 -73
- package/src/providers/stack/core.provider.tsx +4 -30
- package/src/stores/animation.store.ts +0 -3
- package/src/stores/bounds/internals/links.ts +15 -7
- package/src/stores/gesture.store.ts +5 -38
- package/src/stores/system.store.ts +1 -2
- package/src/types/animation.types.ts +8 -20
- package/src/types/blank-stack.types.ts +8 -20
- package/src/types/bounds.types.ts +0 -100
- package/src/types/gesture.types.ts +4 -34
- package/src/types/index.ts +2 -5
- package/src/types/overlay.types.ts +41 -14
- package/src/types/providers/blank-stack-provider.types.ts +17 -27
- package/src/types/screen.types.ts +3 -103
- package/src/types/stack.types.ts +10 -31
- package/src/utils/animation/animate-to-progress.ts +0 -23
- package/src/utils/bounds/constants.ts +2 -2
- package/src/utils/bounds/helpers/create-bounds-accessor-core.ts +0 -6
- 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/types/options.ts +15 -34
- package/src/utils/create-provider.tsx +240 -85
- 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/portal/components/boundary-portal/helpers/active-pair.js +0 -30
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/active-pair.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/masked-view.js +0 -64
- 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 -49
- 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/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -29
- 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/shared/ancestors.js +0 -23
- package/lib/commonjs/providers/screen/gestures/shared/ancestors.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/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 -110
- 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/portal/components/boundary-portal/helpers/active-pair.js +0 -25
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/active-pair.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/masked-view.js +0 -60
- 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 -44
- 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/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -25
- 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.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/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/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 -104
- 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/portal/components/boundary-portal/helpers/active-pair.d.ts +0 -9
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/active-pair.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/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/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +0 -6
- 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/shared/ancestors.d.ts +0 -11
- package/lib/typescript/providers/screen/gestures/shared/ancestors.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/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 -13
- package/lib/typescript/providers/stack/direct.provider.d.ts.map +0 -1
- package/lib/typescript/types/providers/direct-stack.types.d.ts +0 -32
- 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/portal/components/boundary-portal/helpers/active-pair.ts +0 -36
- package/src/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.ts +0 -45
- package/src/components/masked-view.tsx +0 -74
- 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/providers/screen/descriptors/helpers/get-ancestor-keys.ts +0 -28
- package/src/providers/screen/gestures/shared/ancestors.ts +0 -27
- package/src/providers/screen/styles/components/floating-overlay-layer.tsx +0 -29
- package/src/providers/screen/styles/stores/slot-references.store.ts +0 -72
- package/src/providers/stack/direct.provider.tsx +0 -148
- package/src/types/providers/direct-stack.types.ts +0 -70
- package/src/utils/bounds/navigation/math.ts +0 -188
- package/src/utils/platform.ts +0 -8
|
@@ -24,11 +24,7 @@ const BoundaryPrimitive = forwardRef<View, BoundaryPrimitiveProps>(
|
|
|
24
24
|
BoundaryPrimitive.displayName = "Transition.Boundary.Primitive";
|
|
25
25
|
|
|
26
26
|
const BoundaryRoot = createBoundaryComponent(BoundaryPrimitive);
|
|
27
|
-
const BoundaryView = createBoundaryComponent(View);
|
|
28
|
-
const BoundaryTrigger = createBoundaryComponent(Pressable);
|
|
29
27
|
BoundaryRoot.displayName = "Transition.Boundary";
|
|
30
|
-
BoundaryView.displayName = "Transition.Boundary.View";
|
|
31
|
-
BoundaryTrigger.displayName = "Transition.Boundary.Trigger";
|
|
32
28
|
BoundaryTarget.displayName = "Transition.Boundary.Target";
|
|
33
29
|
Host.displayName = "Transition.Boundary.Host";
|
|
34
30
|
|
|
@@ -60,14 +56,6 @@ export interface BoundaryComponent extends BoundaryRootComponent {
|
|
|
60
56
|
* Explicit host for clipping-escape placement.
|
|
61
57
|
*/
|
|
62
58
|
Host: typeof Host;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Use `Transition.Boundary` without `onPress`.
|
|
65
|
-
*/
|
|
66
|
-
View: typeof BoundaryView;
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use `Transition.Boundary` with `onPress`.
|
|
69
|
-
*/
|
|
70
|
-
Trigger: typeof BoundaryTrigger;
|
|
71
59
|
}
|
|
72
60
|
|
|
73
61
|
export type BoundaryProps = BoundaryComponentProps<BoundaryPrimitiveProps>;
|
|
@@ -75,6 +63,4 @@ export type BoundaryProps = BoundaryComponentProps<BoundaryPrimitiveProps>;
|
|
|
75
63
|
export const Boundary = Object.assign(BoundaryRoot, {
|
|
76
64
|
Target: BoundaryTarget,
|
|
77
65
|
Host,
|
|
78
|
-
View: BoundaryView,
|
|
79
|
-
Trigger: BoundaryTrigger,
|
|
80
66
|
}) as BoundaryComponent;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { useAnimatedProps, useSharedValue } from "react-native-reanimated";
|
|
2
|
-
import { useStack } from "../../../../../../hooks/navigation/use-stack";
|
|
3
2
|
import { useDescriptorsStore } from "../../../../../../providers/screen/descriptors";
|
|
4
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
useOptionalScreenSlotStore,
|
|
5
|
+
useScreenSlotStore,
|
|
6
|
+
} from "../../../../../../providers/screen/styles";
|
|
5
7
|
import { hasCloseTransitionFinished } from "../../../../../../providers/screen/styles/helpers/transition-visual-state";
|
|
8
|
+
import { useBlankStackStore } from "../../../../../../providers/stack/blank-stack.provider";
|
|
6
9
|
import { AnimationStore } from "../../../../../../stores/animation.store";
|
|
7
10
|
import { getLinkKeyFromTag } from "../../../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
8
11
|
import { getEntry } from "../../../../../../stores/bounds/internals/entries";
|
|
@@ -24,15 +27,26 @@ interface UseBoundaryContentPortalAttachmentParams {
|
|
|
24
27
|
export const useBoundaryContentPortalAttachment = ({
|
|
25
28
|
boundaryId,
|
|
26
29
|
}: UseBoundaryContentPortalAttachmentParams) => {
|
|
27
|
-
const
|
|
30
|
+
const slotsMap = useScreenSlotStore((store) => store.slotsMap);
|
|
28
31
|
|
|
29
32
|
const currentScreenKey = useDescriptorsStore(
|
|
30
33
|
(s) => s.derivations.currentScreenKey,
|
|
31
34
|
);
|
|
35
|
+
const nextScreenKey = useDescriptorsStore((s) => s.derivations.nextScreenKey);
|
|
32
36
|
const sourcePairKey = useDescriptorsStore((s) => s.derivations.sourcePairKey);
|
|
37
|
+
const destinationSlots = useOptionalScreenSlotStore(
|
|
38
|
+
nextScreenKey ?? currentScreenKey,
|
|
39
|
+
);
|
|
40
|
+
const unavailableInterpolatorReady = useSharedValue(0);
|
|
41
|
+
const interpolatorReady =
|
|
42
|
+
destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
|
|
33
43
|
|
|
34
|
-
const activeReceiverScreenKey =
|
|
35
|
-
|
|
44
|
+
const activeReceiverScreenKey = useBlankStackStore(
|
|
45
|
+
resolveActiveHandoffReceiver,
|
|
46
|
+
);
|
|
47
|
+
const previousReceiverScreenKey = useBlankStackStore(
|
|
48
|
+
resolvePreviousHandoffReceiver,
|
|
49
|
+
);
|
|
36
50
|
|
|
37
51
|
const activeReceiverAnimationProgress = SystemStore.getValue(
|
|
38
52
|
activeReceiverScreenKey ?? currentScreenKey,
|
|
@@ -85,7 +99,7 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
85
99
|
? link.destination.screenKey
|
|
86
100
|
: null;
|
|
87
101
|
|
|
88
|
-
const
|
|
102
|
+
const isInterpolatorReady = interpolatorReady.get();
|
|
89
103
|
const attachedScreenKey = attachedReceiverScreenKey.get();
|
|
90
104
|
|
|
91
105
|
const nextReceiverScreenKey = resolveHandoffAttachmentCandidate({
|
|
@@ -93,7 +107,7 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
93
107
|
activeReceiverScreenKey,
|
|
94
108
|
attachedReceiverScreenKey: attachedScreenKey,
|
|
95
109
|
hasActiveCloseFinished,
|
|
96
|
-
interpolatorReady: !!
|
|
110
|
+
interpolatorReady: !!isInterpolatorReady,
|
|
97
111
|
pairChangedDuringClose,
|
|
98
112
|
pairDestinationScreenKey: pairDestination,
|
|
99
113
|
previousReceiverScreenKey,
|
|
@@ -110,7 +124,7 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
110
124
|
|
|
111
125
|
const activatingPairDestination =
|
|
112
126
|
!!pairDestination &&
|
|
113
|
-
!!
|
|
127
|
+
!!isInterpolatorReady &&
|
|
114
128
|
nextReceiverScreenKey === pairDestination;
|
|
115
129
|
|
|
116
130
|
const canActivateReceiver =
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from "react-native";
|
|
9
9
|
import Animated from "react-native-reanimated";
|
|
10
10
|
import { useDescriptorsStore } from "../../../../../../providers/screen/descriptors";
|
|
11
|
-
import { useScreenSlots } from "../../../../../../providers/screen/styles";
|
|
12
11
|
import { PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
13
12
|
import { useHostMeasurement } from "../hooks/use-host-measurement";
|
|
14
13
|
import { registerHost, unregisterHost } from "../stores/host-registry.store";
|
|
@@ -34,20 +33,17 @@ function HostImpl({ fallback = false, style }: HostImplProps) {
|
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
const hostKey = fallback ? screenKey : generatedHostKeyRef.current;
|
|
37
|
-
const capturesScroll = !fallback;
|
|
38
36
|
const activeBoundaryHosts = useActivePortalBoundaryHosts(hostKey);
|
|
39
|
-
|
|
37
|
+
|
|
40
38
|
const { height: viewportHeight, width: viewportWidth } =
|
|
41
39
|
useWindowDimensions();
|
|
42
40
|
|
|
41
|
+
const measurementKey = activeBoundaryHosts.length
|
|
42
|
+
? activeBoundaryHosts.map((host) => host.portalHostName).join("|")
|
|
43
|
+
: null;
|
|
44
|
+
|
|
43
45
|
const measurement = useHostMeasurement({
|
|
44
|
-
|
|
45
|
-
enabled: activeBoundaryHosts.length > 0,
|
|
46
|
-
hostKey,
|
|
47
|
-
screenKey,
|
|
48
|
-
visibilityBlocked,
|
|
49
|
-
viewportHeight,
|
|
50
|
-
viewportWidth,
|
|
46
|
+
measurementKey,
|
|
51
47
|
});
|
|
52
48
|
|
|
53
49
|
useLayoutEffect(() => {
|
|
@@ -71,7 +67,13 @@ function HostImpl({ fallback = false, style }: HostImplProps) {
|
|
|
71
67
|
{ width: viewportWidth, height: viewportHeight },
|
|
72
68
|
]}
|
|
73
69
|
>
|
|
74
|
-
<PortalBoundaryHost
|
|
70
|
+
<PortalBoundaryHost
|
|
71
|
+
host={host}
|
|
72
|
+
hostBounds={measurement.hostBounds}
|
|
73
|
+
hostMeasurementKey={measurementKey}
|
|
74
|
+
measuredHostKey={measurement.measuredKey}
|
|
75
|
+
style={StyleSheet.absoluteFill}
|
|
76
|
+
/>
|
|
75
77
|
</View>
|
|
76
78
|
));
|
|
77
79
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo
|
|
1
|
+
import { memo } from "react";
|
|
2
2
|
import {
|
|
3
3
|
I18nManager,
|
|
4
4
|
type StyleProp,
|
|
@@ -6,97 +6,86 @@ import {
|
|
|
6
6
|
type ViewStyle,
|
|
7
7
|
} from "react-native";
|
|
8
8
|
import Animated, {
|
|
9
|
+
type MeasuredDimensions,
|
|
10
|
+
type SharedValue,
|
|
11
|
+
useAnimatedReaction,
|
|
9
12
|
useAnimatedStyle,
|
|
10
|
-
useFrameCallback,
|
|
11
|
-
useSharedValue,
|
|
12
13
|
} from "react-native-reanimated";
|
|
13
14
|
import { NO_STYLES } from "../../../../../../constants";
|
|
14
15
|
import { composeSlotStyleWithLocalTransform } from "../../../../../../providers/screen/styles/helpers/compose-slot-style";
|
|
15
|
-
import { getLink } from "../../../../../../stores/bounds/internals/links";
|
|
16
|
-
import { SystemStore } from "../../../../../../stores/system.store";
|
|
17
|
-
import type { ScrollMeasuredDimensions } from "../../../../utils/measured-bounds";
|
|
18
16
|
import { NativePortalHost, PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
17
|
+
import { resolveBoundaryLocalMeasurement } from "../helpers/local-measurement";
|
|
19
18
|
import { resolvePortalOffsetStyle } from "../helpers/offset-style";
|
|
20
|
-
import { getPortalHostBounds } from "../stores/host-bounds.store";
|
|
21
19
|
import type { ActivePortalBoundaryHost } from "../stores/portal-boundary-host.store";
|
|
22
20
|
|
|
23
21
|
const AnimatedPortalBoundaryHost = NativePortalHost
|
|
24
22
|
? Animated.createAnimatedComponent(NativePortalHost)
|
|
25
23
|
: null;
|
|
26
24
|
|
|
25
|
+
const getCurrentBoundaryBounds = (host: ActivePortalBoundaryHost) => {
|
|
26
|
+
"worklet";
|
|
27
|
+
return resolveBoundaryLocalMeasurement(
|
|
28
|
+
host.localMeasurement.get(),
|
|
29
|
+
host.pairKey,
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
27
33
|
type PortalBoundaryHostProps = {
|
|
28
34
|
host: ActivePortalBoundaryHost;
|
|
35
|
+
hostBounds: SharedValue<MeasuredDimensions | null>;
|
|
36
|
+
hostMeasurementKey: string | null;
|
|
37
|
+
measuredHostKey: SharedValue<string | null>;
|
|
29
38
|
style?: StyleProp<ViewStyle>;
|
|
30
39
|
};
|
|
31
40
|
|
|
32
41
|
export const PortalBoundaryHost = memo(function PortalBoundaryHost({
|
|
33
42
|
host,
|
|
43
|
+
hostBounds,
|
|
44
|
+
hostMeasurementKey,
|
|
45
|
+
measuredHostKey,
|
|
34
46
|
style,
|
|
35
47
|
}: PortalBoundaryHostProps) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (geometryReadyFrames.get() === 0) {
|
|
57
|
-
// Give the source frame, host offset, and slot style one UI frame to
|
|
58
|
-
// reach native before Teleport targets this receiver.
|
|
59
|
-
geometryReadyFrames.set(1);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
host.portalHostReady.set(true);
|
|
64
|
-
unblockLifecycleStart();
|
|
65
|
-
}, [geometryReadyFrames, host, unblockLifecycleStart]);
|
|
66
|
-
|
|
67
|
-
useFrameCallback(handleFrame, true);
|
|
48
|
+
useAnimatedReaction(
|
|
49
|
+
() => {
|
|
50
|
+
"worklet";
|
|
51
|
+
return (
|
|
52
|
+
getCurrentBoundaryBounds(host) !== null &&
|
|
53
|
+
hostBounds.get() !== null &&
|
|
54
|
+
!!hostMeasurementKey &&
|
|
55
|
+
measuredHostKey.get() === hostMeasurementKey
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
(ready) => {
|
|
59
|
+
"worklet";
|
|
60
|
+
if (ready) {
|
|
61
|
+
host.portalHostReady.set(true);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
);
|
|
68
65
|
|
|
69
66
|
const hostStyle = useAnimatedStyle(() => {
|
|
70
67
|
"worklet";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const link = getLink(host.pairKey, host.boundaryId);
|
|
74
|
-
if (!link?.source) {
|
|
68
|
+
const boundaryBounds = getCurrentBoundaryBounds(host);
|
|
69
|
+
if (!boundaryBounds) {
|
|
75
70
|
return NO_STYLES;
|
|
76
71
|
}
|
|
77
72
|
|
|
78
|
-
const sourceBounds = link.source.bounds as ScrollMeasuredDimensions;
|
|
79
|
-
const isCrossScreenPortal = link.source.screenKey !== host.screenKey;
|
|
80
|
-
|
|
81
73
|
return resolvePortalOffsetStyle({
|
|
82
|
-
bounds:
|
|
83
|
-
|
|
84
|
-
placement: isCrossScreenPortal ? "cross-screen" : "same-screen",
|
|
74
|
+
bounds: boundaryBounds,
|
|
75
|
+
hostBounds: hostBounds.get(),
|
|
85
76
|
});
|
|
86
77
|
});
|
|
87
78
|
|
|
88
79
|
const contentFrameStyle = useAnimatedStyle(() => {
|
|
89
80
|
"worklet";
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
81
|
+
const boundaryBounds = getCurrentBoundaryBounds(host);
|
|
82
|
+
if (!boundaryBounds) {
|
|
92
83
|
return NO_STYLES;
|
|
93
84
|
}
|
|
94
85
|
|
|
95
|
-
const sourceBounds = link.source.bounds as ScrollMeasuredDimensions;
|
|
96
|
-
|
|
97
86
|
return {
|
|
98
|
-
height:
|
|
99
|
-
width:
|
|
87
|
+
height: boundaryBounds.height,
|
|
88
|
+
width: boundaryBounds.width,
|
|
100
89
|
};
|
|
101
90
|
});
|
|
102
91
|
const slotStyle = useAnimatedStyle(() => {
|
package/src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
2
|
+
import type { BoundaryLocalMeasurement } from "../../../../types";
|
|
3
|
+
|
|
4
|
+
export const resolveBoundaryLocalMeasurement = (
|
|
5
|
+
measurement: BoundaryLocalMeasurement | null,
|
|
6
|
+
pairKey: ScreenPairKey,
|
|
7
|
+
) => {
|
|
8
|
+
"worklet";
|
|
9
|
+
return measurement?.pairKey === pairKey ? measurement.bounds : null;
|
|
10
|
+
};
|
|
@@ -1,69 +1,25 @@
|
|
|
1
|
-
import type { StyleProps } from "react-native-reanimated";
|
|
2
|
-
import { getClampedScrollAxisDelta } from "../../../../../../stores/scroll.store";
|
|
3
|
-
import type { ScrollMeasuredDimensions } from "../../../../utils/measured-bounds";
|
|
4
|
-
import { getPortalHostBounds } from "../stores/host-bounds.store";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The two portal coordinate cases we support:
|
|
8
|
-
*
|
|
9
|
-
* - same-screen: source and host live on the same screen; re-base the stored
|
|
10
|
-
* host frame onto the source measurement's scroll snapshot.
|
|
11
|
-
* - cross-screen: source and host live on different screens; the host is the
|
|
12
|
-
* replacement coordinate space, so destination scroll is inherited naturally
|
|
13
|
-
* from host placement instead of manually propagated.
|
|
14
|
-
*/
|
|
15
|
-
export type PortalOffsetPlacement = "same-screen" | "cross-screen";
|
|
1
|
+
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
16
2
|
|
|
17
3
|
type ResolvePortalOffsetStyleParams = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostKey: string;
|
|
21
|
-
placement: PortalOffsetPlacement;
|
|
4
|
+
bounds: MeasuredDimensions;
|
|
5
|
+
hostBounds: MeasuredDimensions | null;
|
|
22
6
|
};
|
|
23
7
|
|
|
24
8
|
export const resolvePortalOffsetStyle = ({
|
|
25
9
|
bounds,
|
|
26
|
-
|
|
27
|
-
placement,
|
|
10
|
+
hostBounds,
|
|
28
11
|
}: ResolvePortalOffsetStyleParams): StyleProps => {
|
|
29
12
|
"worklet";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// Cross-screen hosts are the chosen replacement coordinate space, so their
|
|
36
|
-
// destination scroll is represented by where the host itself is mounted.
|
|
37
|
-
const alignHostToBoundsScroll = placement === "same-screen";
|
|
38
|
-
|
|
39
|
-
const hostSnapshotDeltaX = alignHostToBoundsScroll
|
|
40
|
-
? getClampedScrollAxisDelta(
|
|
41
|
-
boundsScrollSnapshot,
|
|
42
|
-
hostBoundsScrollSnapshot,
|
|
43
|
-
"horizontal",
|
|
44
|
-
)
|
|
45
|
-
: 0;
|
|
46
|
-
const hostSnapshotDeltaY = alignHostToBoundsScroll
|
|
47
|
-
? getClampedScrollAxisDelta(
|
|
48
|
-
boundsScrollSnapshot,
|
|
49
|
-
hostBoundsScrollSnapshot,
|
|
50
|
-
"vertical",
|
|
51
|
-
)
|
|
52
|
-
: 0;
|
|
53
|
-
|
|
54
|
-
// Without registered host bounds the host frame is the origin, so the source
|
|
55
|
-
// page position becomes the offset directly.
|
|
56
|
-
const adjustedHostPageX = hostBounds
|
|
57
|
-
? hostBounds.pageX - hostSnapshotDeltaX
|
|
58
|
-
: 0;
|
|
59
|
-
const adjustedHostPageY = hostBounds
|
|
60
|
-
? hostBounds.pageY - hostSnapshotDeltaY
|
|
61
|
-
: 0;
|
|
13
|
+
// Both values are measured in page coordinates. Subtracting the host origin
|
|
14
|
+
// gives the boundary's local position inside that host, independent of which
|
|
15
|
+
// scroll container owns either view.
|
|
16
|
+
const hostPageX = hostBounds?.pageX ?? 0;
|
|
17
|
+
const hostPageY = hostBounds?.pageY ?? 0;
|
|
62
18
|
|
|
63
19
|
return {
|
|
64
20
|
transform: [
|
|
65
|
-
{ translateY: bounds.pageY -
|
|
66
|
-
{ translateX: bounds.pageX -
|
|
21
|
+
{ translateY: bounds.pageY - hostPageY },
|
|
22
|
+
{ translateX: bounds.pageX - hostPageX },
|
|
67
23
|
],
|
|
68
24
|
};
|
|
69
25
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useCallback, useLayoutEffect,
|
|
1
|
+
import { useCallback, useLayoutEffect, useState } from "react";
|
|
2
2
|
import { type SharedValue, useAnimatedReaction } from "react-native-reanimated";
|
|
3
3
|
import { scheduleOnRN } from "react-native-worklets";
|
|
4
4
|
import { getPairKeyForSource } from "../../../../../../stores/bounds/internals/links";
|
|
5
5
|
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
6
6
|
import type { NormalizedTransitionInterpolatedStyle } from "../../../../../../types/animation.types";
|
|
7
|
+
import type { BoundaryLocalMeasurementValue } from "../../../../types";
|
|
7
8
|
import { createBoundaryPortalHostName } from "../../../utils/naming";
|
|
8
9
|
import {
|
|
9
10
|
mountPortalBoundaryHost,
|
|
@@ -14,44 +15,57 @@ type UseActivePortalBoundaryHostParams = {
|
|
|
14
15
|
boundaryId: string;
|
|
15
16
|
currentScreenKey: string;
|
|
16
17
|
escapeHostKey?: string;
|
|
18
|
+
localMeasurement: BoundaryLocalMeasurementValue;
|
|
17
19
|
portalHostName: SharedValue<string | null>;
|
|
18
20
|
portalHostReady: SharedValue<boolean>;
|
|
19
21
|
slotsMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
pairKey
|
|
24
|
+
export const resolveActivePortalPairKey = ({
|
|
25
|
+
pairKey,
|
|
26
|
+
measurementPairKey,
|
|
27
|
+
hasAnimatedSlot,
|
|
28
|
+
}: {
|
|
29
|
+
pairKey: ScreenPairKey | null;
|
|
30
|
+
measurementPairKey: ScreenPairKey | null | undefined;
|
|
31
|
+
hasAnimatedSlot: boolean;
|
|
32
|
+
}): ScreenPairKey | null => {
|
|
33
|
+
"worklet";
|
|
34
|
+
if (!pairKey || measurementPairKey !== pairKey || !hasAnimatedSlot) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return pairKey;
|
|
24
39
|
};
|
|
25
40
|
|
|
26
41
|
export const useActivePortalBoundaryHost = ({
|
|
27
42
|
boundaryId,
|
|
28
43
|
currentScreenKey,
|
|
29
44
|
escapeHostKey,
|
|
45
|
+
localMeasurement,
|
|
30
46
|
portalHostName,
|
|
31
47
|
portalHostReady,
|
|
32
48
|
slotsMap,
|
|
33
49
|
}: UseActivePortalBoundaryHostParams) => {
|
|
34
|
-
const [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const updateActivePortal = useCallback((pairKey: ScreenPairKey | null) => {
|
|
38
|
-
if (activePairKeyRef.current === pairKey) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
50
|
+
const [activePairKey, setActivePairKey] = useState<ScreenPairKey | null>(
|
|
51
|
+
null,
|
|
52
|
+
);
|
|
41
53
|
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
const updateActivePairKey = useCallback((pairKey: ScreenPairKey | null) => {
|
|
55
|
+
setActivePairKey(pairKey);
|
|
44
56
|
}, []);
|
|
45
57
|
|
|
46
58
|
useAnimatedReaction(
|
|
47
59
|
() => {
|
|
48
60
|
"worklet";
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
61
|
+
const pairKey = getPairKeyForSource(boundaryId, currentScreenKey);
|
|
62
|
+
const measurement = localMeasurement.get();
|
|
53
63
|
|
|
54
|
-
return
|
|
64
|
+
return resolveActivePortalPairKey({
|
|
65
|
+
pairKey,
|
|
66
|
+
measurementPairKey: measurement?.pairKey,
|
|
67
|
+
hasAnimatedSlot: slotsMap.get()[boundaryId] !== undefined,
|
|
68
|
+
});
|
|
55
69
|
},
|
|
56
70
|
(pairKey, previousPairKey) => {
|
|
57
71
|
"worklet";
|
|
@@ -59,12 +73,12 @@ export const useActivePortalBoundaryHost = ({
|
|
|
59
73
|
return;
|
|
60
74
|
}
|
|
61
75
|
|
|
62
|
-
scheduleOnRN(
|
|
76
|
+
scheduleOnRN(updateActivePairKey, pairKey);
|
|
63
77
|
},
|
|
64
78
|
);
|
|
65
79
|
|
|
66
80
|
useLayoutEffect(() => {
|
|
67
|
-
if (!
|
|
81
|
+
if (!activePairKey || !escapeHostKey) {
|
|
68
82
|
portalHostName.set(null);
|
|
69
83
|
portalHostReady.set(false);
|
|
70
84
|
return;
|
|
@@ -73,16 +87,16 @@ export const useActivePortalBoundaryHost = ({
|
|
|
73
87
|
const nextPortalHostName = createBoundaryPortalHostName(
|
|
74
88
|
escapeHostKey,
|
|
75
89
|
boundaryId,
|
|
76
|
-
|
|
90
|
+
activePairKey,
|
|
77
91
|
);
|
|
78
92
|
|
|
79
93
|
mountPortalBoundaryHost({
|
|
80
94
|
boundaryId,
|
|
81
95
|
hostKey: escapeHostKey,
|
|
82
|
-
|
|
96
|
+
localMeasurement,
|
|
97
|
+
pairKey: activePairKey,
|
|
83
98
|
portalHostName: nextPortalHostName,
|
|
84
99
|
portalHostReady,
|
|
85
|
-
screenKey: currentScreenKey,
|
|
86
100
|
slotsMap,
|
|
87
101
|
});
|
|
88
102
|
portalHostName.set(nextPortalHostName);
|
|
@@ -93,10 +107,10 @@ export const useActivePortalBoundaryHost = ({
|
|
|
93
107
|
unmountPortalBoundaryHostByName(nextPortalHostName);
|
|
94
108
|
};
|
|
95
109
|
}, [
|
|
96
|
-
|
|
110
|
+
activePairKey,
|
|
97
111
|
boundaryId,
|
|
98
|
-
currentScreenKey,
|
|
99
112
|
escapeHostKey,
|
|
113
|
+
localMeasurement,
|
|
100
114
|
portalHostName,
|
|
101
115
|
portalHostReady,
|
|
102
116
|
slotsMap,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useAnimatedProps, useSharedValue } from "react-native-reanimated";
|
|
2
2
|
import { useDescriptorsStore } from "../../../../../../providers/screen/descriptors";
|
|
3
|
-
import {
|
|
3
|
+
import { useScreenSlotStore } from "../../../../../../providers/screen/styles";
|
|
4
|
+
import { useBoundaryRootStore } from "../../../../providers/boundary-root.provider";
|
|
4
5
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
5
6
|
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
6
7
|
import { useActiveHostKey } from "../stores/host-registry.store";
|
|
@@ -13,10 +14,17 @@ interface UseBoundaryPortalAttachmentParams {
|
|
|
13
14
|
export const useBoundaryPortalAttachment = ({
|
|
14
15
|
boundaryId,
|
|
15
16
|
}: UseBoundaryPortalAttachmentParams) => {
|
|
17
|
+
const localMeasurement = useBoundaryRootStore((root) => {
|
|
18
|
+
if (!root) {
|
|
19
|
+
throw new Error("Boundary portal attachment requires a boundary root.");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return root.localMeasurement;
|
|
23
|
+
});
|
|
16
24
|
const currentScreenKey = useDescriptorsStore(
|
|
17
25
|
(s) => s.derivations.currentScreenKey,
|
|
18
26
|
);
|
|
19
|
-
const
|
|
27
|
+
const slotsMap = useScreenSlotStore((store) => store.slotsMap);
|
|
20
28
|
const portalHostName = useSharedValue<string | null>(null);
|
|
21
29
|
const portalHostReady = useSharedValue(false);
|
|
22
30
|
const escapeHostKey = useActiveHostKey(currentScreenKey);
|
|
@@ -25,6 +33,7 @@ export const useBoundaryPortalAttachment = ({
|
|
|
25
33
|
boundaryId,
|
|
26
34
|
currentScreenKey,
|
|
27
35
|
escapeHostKey,
|
|
36
|
+
localMeasurement,
|
|
28
37
|
portalHostName,
|
|
29
38
|
portalHostReady,
|
|
30
39
|
slotsMap,
|
|
@@ -39,10 +48,12 @@ export const useBoundaryPortalAttachment = ({
|
|
|
39
48
|
teleport,
|
|
40
49
|
...slotProps
|
|
41
50
|
} = slot?.props ?? {};
|
|
51
|
+
|
|
42
52
|
const shouldAttach =
|
|
43
53
|
slot !== undefined &&
|
|
44
54
|
isTeleportEnabled(teleport) &&
|
|
45
55
|
portalHostReady.get();
|
|
56
|
+
|
|
46
57
|
const hostName = shouldAttach
|
|
47
58
|
? portalHostName.get()
|
|
48
59
|
: PORTAL_HOST_NAME_RESET_VALUE;
|