react-native-screen-transitions 3.12.0 → 3.13.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js +1 -2
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/commonjs/shared/components/activity/helpers.js +50 -1
- package/lib/commonjs/shared/components/activity/helpers.js.map +1 -1
- package/lib/commonjs/shared/components/activity/variants/activity-screen.js +17 -68
- package/lib/commonjs/shared/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js +0 -3
- package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js +69 -0
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +11 -10
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +3 -19
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +8 -17
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +27 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +27 -11
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +8 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js +19 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js +18 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +22 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +10 -10
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +19 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +6 -6
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +9 -2
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +16 -4
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js +11 -6
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +5 -4
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +1 -3
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +8 -6
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/factories/screen-topology/create-screen-topology.js +147 -0
- package/lib/commonjs/shared/factories/screen-topology/create-screen-topology.js.map +1 -0
- package/lib/commonjs/shared/factories/screen-topology/index.js +45 -0
- package/lib/commonjs/shared/factories/screen-topology/index.js.map +1 -0
- package/lib/commonjs/shared/factories/screen-topology/types.js +2 -0
- package/lib/commonjs/shared/factories/screen-topology/types.js.map +1 -0
- package/lib/commonjs/shared/factories/screen-topology/use-screen-relationships.js +15 -0
- package/lib/commonjs/shared/factories/screen-topology/use-screen-relationships.js.map +1 -0
- package/lib/commonjs/shared/factories/screen-topology/worklet.js +55 -0
- package/lib/commonjs/shared/factories/screen-topology/worklet.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +16 -16
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -0
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +26 -95
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +6 -52
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +5 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +12 -12
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js +4 -13
- package/lib/commonjs/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js +10 -26
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/index.js +6 -0
- package/lib/commonjs/shared/providers/screen/animation/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +8 -7
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +62 -15
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +3 -4
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +24 -19
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +3 -3
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +2 -3
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/index.js +8 -2
- package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js +11 -18
- package/lib/commonjs/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js +5 -7
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +4 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-release.js +9 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +5 -8
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +5 -4
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +1 -3
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +4 -4
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js +19 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +4 -2
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +5 -8
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -15
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/index.js +8 -2
- package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +23 -16
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/use-current-screen-relationships.js +14 -0
- package/lib/commonjs/shared/providers/screen/use-current-screen-relationships.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.js +13 -5
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/core.provider.js +1 -3
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +2 -5
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +0 -2
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +11 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +6 -0
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/coordinator.js +312 -0
- package/lib/commonjs/shared/stores/bounds/internals/coordinator.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +0 -27
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +22 -32
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +4 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +7 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +11 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +6 -2
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +11 -5
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +51 -100
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js +1 -2
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/module/shared/components/activity/helpers.js +48 -0
- package/lib/module/shared/components/activity/helpers.js.map +1 -1
- package/lib/module/shared/components/activity/variants/activity-screen.js +18 -69
- package/lib/module/shared/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-lifecycle.js +0 -3
- package/lib/module/shared/components/boundary/components/boundary-lifecycle.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-target.js +2 -2
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js +64 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +11 -10
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +3 -19
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +9 -18
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +24 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +29 -13
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +8 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js +14 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js +13 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +19 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +10 -10
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +20 -13
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +5 -6
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +7 -1
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +16 -4
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js +12 -7
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +7 -6
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +2 -3
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +9 -7
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/factories/screen-topology/create-screen-topology.js +142 -0
- package/lib/module/shared/factories/screen-topology/create-screen-topology.js.map +1 -0
- package/lib/module/shared/factories/screen-topology/index.js +6 -0
- package/lib/module/shared/factories/screen-topology/index.js.map +1 -0
- package/lib/module/shared/factories/screen-topology/types.js +2 -0
- package/lib/module/shared/factories/screen-topology/types.js.map +1 -0
- package/lib/module/shared/factories/screen-topology/use-screen-relationships.js +10 -0
- package/lib/module/shared/factories/screen-topology/use-screen-relationships.js.map +1 -0
- package/lib/module/shared/factories/screen-topology/worklet.js +48 -0
- package/lib/module/shared/factories/screen-topology/worklet.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js +17 -18
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -0
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +25 -95
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +6 -52
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +5 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +14 -14
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js +4 -13
- package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js +9 -24
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/index.js +1 -1
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -8
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +66 -18
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +3 -4
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +21 -17
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +3 -3
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +3 -4
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/index.js +1 -1
- package/lib/module/shared/providers/screen/gestures/index.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js +13 -20
- package/lib/module/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js +5 -7
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +4 -1
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-release.js +9 -2
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +4 -8
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +7 -6
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +1 -3
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +4 -4
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +2 -1
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js +14 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +5 -3
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +5 -8
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -15
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/index.js +1 -1
- package/lib/module/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +20 -14
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/use-current-screen-relationships.js +9 -0
- package/lib/module/shared/providers/screen/use-current-screen-relationships.js.map +1 -0
- package/lib/module/shared/providers/stack/blank-stack.provider.js +12 -5
- package/lib/module/shared/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/core.provider.js +1 -3
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +2 -5
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +0 -2
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +9 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +7 -1
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/coordinator.js +300 -0
- package/lib/module/shared/stores/bounds/internals/coordinator.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/entries.js +1 -27
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +24 -32
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +3 -0
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +7 -3
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +11 -0
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +6 -2
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +11 -5
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/create-provider.js +51 -100
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/activity/helpers.d.ts +16 -0
- package/lib/typescript/shared/components/activity/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts +2 -4
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/{use-initial-source-measurement.d.ts → use-boundary-measurement-request.d.ts} +4 -3
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +1 -3
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.d.ts +6 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +4 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/types.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts +1 -0
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts +2 -1
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/factories/screen-topology/create-screen-topology.d.ts +4 -0
- package/lib/typescript/shared/factories/screen-topology/create-screen-topology.d.ts.map +1 -0
- package/lib/typescript/shared/factories/screen-topology/index.d.ts +5 -0
- package/lib/typescript/shared/factories/screen-topology/index.d.ts.map +1 -0
- package/lib/typescript/shared/factories/screen-topology/types.d.ts +20 -0
- package/lib/typescript/shared/factories/screen-topology/types.d.ts.map +1 -0
- package/lib/typescript/shared/factories/screen-topology/use-screen-relationships.d.ts +5 -0
- package/lib/typescript/shared/factories/screen-topology/use-screen-relationships.d.ts.map +1 -0
- package/lib/typescript/shared/factories/screen-topology/worklet.d.ts +5 -0
- package/lib/typescript/shared/factories/screen-topology/worklet.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +2 -0
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +14 -12
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +4 -4
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/read-screen-animation-revisions.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/animation/helpers/read-screen-animation-revisions.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts +5 -2
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +1 -13
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +5 -2
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +5 -4
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +16 -4
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts +2 -3
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.d.ts +5 -3
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +3 -3
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +5 -2
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-block-ownership.d.ts +10 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-block-ownership.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +8 -2
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +9 -3
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/use-current-screen-relationships.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/use-current-screen-relationships.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/blank-stack.provider.d.ts +4 -1
- package/lib/typescript/shared/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +0 -1
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/coordinator.d.ts +36 -0
- package/lib/typescript/shared/stores/bounds/internals/coordinator.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +1 -2
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +1 -3
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +3 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +12 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/providers/blank-stack-provider.types.d.ts +1 -0
- package/lib/typescript/shared/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts +24 -24
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/adapters/with-screen-transitions/stack-layout.tsx +1 -2
- package/src/shared/components/activity/helpers.ts +59 -0
- package/src/shared/components/activity/variants/activity-screen.tsx +29 -94
- package/src/shared/components/boundary/components/boundary-lifecycle.tsx +0 -6
- package/src/shared/components/boundary/components/boundary-target.tsx +2 -2
- package/src/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.ts +102 -0
- package/src/shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts +20 -11
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +3 -22
- package/src/shared/components/boundary/hooks/use-measurer.ts +8 -22
- package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +40 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +73 -22
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +10 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.ts +19 -0
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.ts +14 -0
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +36 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +22 -13
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +28 -15
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +1 -1
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +10 -6
- package/src/shared/components/boundary/types.ts +1 -1
- package/src/shared/components/overlay/helpers/create-overlay-interpolator-frame.ts +14 -1
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +29 -4
- package/src/shared/components/overlay/hooks/use-overlay-slot.ts +26 -8
- package/src/shared/components/overlay/variations/overlay-host.tsx +11 -6
- package/src/shared/components/screen-container/layers/content.tsx +3 -4
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +8 -12
- package/src/shared/factories/screen-topology/create-screen-topology.ts +199 -0
- package/src/shared/factories/screen-topology/index.ts +16 -0
- package/src/shared/factories/screen-topology/types.ts +22 -0
- package/src/shared/factories/screen-topology/use-screen-relationships.ts +15 -0
- package/src/shared/factories/screen-topology/worklet.ts +60 -0
- package/src/shared/hooks/navigation/use-screen-state.ts +2 -7
- package/src/shared/hooks/navigation/use-stack.tsx +28 -31
- package/src/shared/providers/helpers/measured-bounds-writes.ts +5 -0
- package/src/shared/providers/screen/animation/animation.provider.tsx +73 -206
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +10 -81
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +18 -3
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +0 -1
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +19 -22
- package/src/shared/providers/screen/animation/helpers/read-screen-animation-revisions.ts +6 -30
- package/src/shared/providers/screen/animation/helpers/stack-progress.ts +13 -32
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +0 -2
- package/src/shared/providers/screen/animation/index.tsx +1 -0
- package/src/shared/providers/screen/animation/types.ts +1 -23
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +10 -14
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +110 -23
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +6 -6
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +96 -85
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +4 -4
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +3 -4
- package/src/shared/providers/screen/gestures/index.tsx +2 -1
- package/src/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.tsx +16 -29
- package/src/shared/providers/screen/gestures/ownership/resolve-ownership.ts +5 -8
- package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +2 -3
- package/src/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pan/behavior/pan-release.ts +12 -2
- package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +1 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.tsx +6 -9
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +11 -7
- package/src/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +12 -12
- package/src/shared/providers/screen/gestures/shared/policy.ts +7 -7
- package/src/shared/providers/screen/gestures/types.ts +6 -2
- package/src/shared/providers/screen/styles/constants.ts +1 -0
- package/src/shared/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +10 -3
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +7 -17
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +40 -15
- package/src/shared/providers/screen/styles/index.tsx +2 -1
- package/src/shared/providers/screen/styles/slot.provider.tsx +30 -15
- package/src/shared/providers/screen/use-current-screen-relationships.ts +10 -0
- package/src/shared/providers/stack/blank-stack.provider.tsx +19 -6
- package/src/shared/providers/stack/core.provider.tsx +0 -1
- package/src/shared/providers/stack/direct.provider.tsx +2 -4
- package/src/shared/stores/animation.store.ts +0 -3
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +12 -0
- package/src/shared/stores/bounds/internals/clear.ts +12 -1
- package/src/shared/stores/bounds/internals/coordinator.ts +415 -0
- package/src/shared/stores/bounds/internals/entries.ts +1 -38
- package/src/shared/stores/bounds/internals/links.ts +28 -38
- package/src/shared/stores/bounds/internals/state.ts +10 -1
- package/src/shared/stores/bounds/types.ts +18 -1
- package/src/shared/types/providers/blank-stack-provider.types.ts +1 -0
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +8 -3
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +11 -0
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +3 -2
- package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +0 -1
- package/src/shared/utils/bounds/helpers/styles/compute.ts +12 -5
- package/src/shared/utils/create-provider.tsx +135 -200
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +0 -177
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +0 -49
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +0 -69
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +0 -68
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -97
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js +0 -43
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -29
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js +0 -23
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +0 -173
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +0 -44
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +0 -64
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +0 -1
- package/lib/module/shared/components/boundary/utils/destination-signals.js +0 -63
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +0 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -92
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +0 -1
- package/lib/module/shared/components/boundary/utils/source-signals.js +0 -38
- package/lib/module/shared/components/boundary/utils/source-signals.js.map +0 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +0 -25
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js +0 -19
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +0 -16
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts +0 -19
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -14
- package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts +0 -11
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +0 -1
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +0 -267
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts +0 -51
- package/src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +0 -90
- package/src/shared/components/boundary/utils/destination-signals.ts +0 -75
- package/src/shared/components/boundary/utils/refresh-signals.ts +0 -164
- package/src/shared/components/boundary/utils/source-signals.ts +0 -51
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +0 -28
- package/src/shared/providers/screen/gestures/shared/ancestors.ts +0 -27
|
@@ -4,11 +4,13 @@ import {
|
|
|
4
4
|
type SharedValue,
|
|
5
5
|
useAnimatedReaction,
|
|
6
6
|
} from "react-native-reanimated";
|
|
7
|
-
import {
|
|
7
|
+
import { pairs } from "../../../../../../stores/bounds/internals/state";
|
|
8
8
|
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
9
9
|
import type { NormalizedTransitionInterpolatedStyle } from "../../../../../../types/animation.types";
|
|
10
10
|
import type { BoundaryLocalMeasurementValue } from "../../../../types";
|
|
11
11
|
import { createBoundaryPortalHostName } from "../../../utils/naming";
|
|
12
|
+
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
13
|
+
import { resolveActiveBoundaryPortalPairKey } from "../helpers/local-measurement";
|
|
12
14
|
import {
|
|
13
15
|
mountPortalBoundaryHost,
|
|
14
16
|
unmountPortalBoundaryHostByName,
|
|
@@ -16,17 +18,15 @@ import {
|
|
|
16
18
|
|
|
17
19
|
type UseActivePortalBoundaryHostParams = {
|
|
18
20
|
boundaryId: string;
|
|
19
|
-
currentScreenKey: string;
|
|
20
21
|
escapeHostKey?: string;
|
|
21
22
|
localMeasurement: BoundaryLocalMeasurementValue;
|
|
22
23
|
portalHostName: SharedValue<string | null>;
|
|
23
|
-
portalHostReady: SharedValue<
|
|
24
|
+
portalHostReady: SharedValue<string | null>;
|
|
24
25
|
slotsMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export const useActivePortalBoundaryHost = ({
|
|
28
29
|
boundaryId,
|
|
29
|
-
currentScreenKey,
|
|
30
30
|
escapeHostKey,
|
|
31
31
|
localMeasurement,
|
|
32
32
|
portalHostName,
|
|
@@ -44,13 +44,12 @@ export const useActivePortalBoundaryHost = ({
|
|
|
44
44
|
useAnimatedReaction(
|
|
45
45
|
() => {
|
|
46
46
|
"worklet";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return pairKey;
|
|
47
|
+
return resolveActiveBoundaryPortalPairKey(
|
|
48
|
+
localMeasurement.get(),
|
|
49
|
+
slotsMap.get()[boundaryId],
|
|
50
|
+
boundaryId,
|
|
51
|
+
pairs.get(),
|
|
52
|
+
);
|
|
54
53
|
},
|
|
55
54
|
(pairKey, previousPairKey) => {
|
|
56
55
|
"worklet";
|
|
@@ -58,6 +57,16 @@ export const useActivePortalBoundaryHost = ({
|
|
|
58
57
|
return;
|
|
59
58
|
}
|
|
60
59
|
|
|
60
|
+
const slot = slotsMap.get()[boundaryId];
|
|
61
|
+
if (
|
|
62
|
+
pairKey === null &&
|
|
63
|
+
localMeasurement.get() !== null &&
|
|
64
|
+
slot &&
|
|
65
|
+
!isTeleportEnabled(slot.props?.teleport)
|
|
66
|
+
) {
|
|
67
|
+
localMeasurement.set(null);
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
runOnJS(updateActivePairKey)(pairKey);
|
|
62
71
|
},
|
|
63
72
|
);
|
|
@@ -65,7 +74,7 @@ export const useActivePortalBoundaryHost = ({
|
|
|
65
74
|
useLayoutEffect(() => {
|
|
66
75
|
if (!activePairKey || !escapeHostKey) {
|
|
67
76
|
portalHostName.set(null);
|
|
68
|
-
portalHostReady.set(
|
|
77
|
+
portalHostReady.set(null);
|
|
69
78
|
return;
|
|
70
79
|
}
|
|
71
80
|
|
|
@@ -88,7 +97,7 @@ export const useActivePortalBoundaryHost = ({
|
|
|
88
97
|
|
|
89
98
|
return () => {
|
|
90
99
|
portalHostName.set(null);
|
|
91
|
-
portalHostReady.set(
|
|
100
|
+
portalHostReady.set(null);
|
|
92
101
|
unmountPortalBoundaryHostByName(nextPortalHostName);
|
|
93
102
|
};
|
|
94
103
|
}, [
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { useIsFocused } from "@react-navigation/native";
|
|
1
2
|
import { useAnimatedProps, useSharedValue } from "react-native-reanimated";
|
|
2
3
|
import { useDescriptorsStore } from "../../../../../../providers/screen/descriptors";
|
|
3
|
-
import {
|
|
4
|
+
import { useScreenSlotStore } from "../../../../../../providers/screen/styles";
|
|
5
|
+
import { pairs } from "../../../../../../stores/bounds/internals/state";
|
|
4
6
|
import { useBoundaryRootStore } from "../../../../providers/boundary-root.provider";
|
|
5
7
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
6
|
-
import {
|
|
8
|
+
import { shouldAttachBoundaryPortal } from "../helpers/attachment";
|
|
9
|
+
import { resolveActiveBoundaryPortalPairKey } from "../helpers/local-measurement";
|
|
7
10
|
import { useActiveHostKey } from "../stores/host-registry.store";
|
|
8
11
|
import { useActivePortalBoundaryHost } from "./use-active-portal-boundary-host";
|
|
9
12
|
|
|
@@ -15,23 +18,22 @@ export const useBoundaryPortalAttachment = ({
|
|
|
15
18
|
boundaryId,
|
|
16
19
|
}: UseBoundaryPortalAttachmentParams) => {
|
|
17
20
|
const localMeasurement = useBoundaryRootStore((root) => {
|
|
18
|
-
if (!root) {
|
|
19
|
-
throw new Error("Boundary portal attachment requires a boundary root.");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
21
|
return root.localMeasurement;
|
|
23
22
|
});
|
|
24
23
|
const currentScreenKey = useDescriptorsStore(
|
|
25
24
|
(s) => s.derivations.currentScreenKey,
|
|
26
25
|
);
|
|
27
|
-
|
|
26
|
+
// React Navigation resolves focus through the entire parent navigator chain.
|
|
27
|
+
// A leaf that is still selected in its own one-screen stack becomes unfocused
|
|
28
|
+
// when any ancestor route is covered.
|
|
29
|
+
const focused = useIsFocused();
|
|
30
|
+
const slotsMap = useScreenSlotStore((store) => store.slotsMap);
|
|
28
31
|
const portalHostName = useSharedValue<string | null>(null);
|
|
29
|
-
const portalHostReady = useSharedValue(
|
|
32
|
+
const portalHostReady = useSharedValue<string | null>(null);
|
|
30
33
|
const escapeHostKey = useActiveHostKey(currentScreenKey);
|
|
31
34
|
|
|
32
35
|
useActivePortalBoundaryHost({
|
|
33
36
|
boundaryId,
|
|
34
|
-
currentScreenKey,
|
|
35
37
|
escapeHostKey,
|
|
36
38
|
localMeasurement,
|
|
37
39
|
portalHostName,
|
|
@@ -49,20 +51,31 @@ export const useBoundaryPortalAttachment = ({
|
|
|
49
51
|
...slotProps
|
|
50
52
|
} = slot?.props ?? {};
|
|
51
53
|
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
portalHostReady
|
|
54
|
+
const activePortalHostName = portalHostName.get();
|
|
55
|
+
const shouldAttach = shouldAttachBoundaryPortal({
|
|
56
|
+
focused,
|
|
57
|
+
portalHostReady:
|
|
58
|
+
activePortalHostName !== null &&
|
|
59
|
+
portalHostReady.get() === activePortalHostName,
|
|
60
|
+
slotActive:
|
|
61
|
+
resolveActiveBoundaryPortalPairKey(
|
|
62
|
+
localMeasurement.get(),
|
|
63
|
+
slot,
|
|
64
|
+
boundaryId,
|
|
65
|
+
pairs.get(),
|
|
66
|
+
) !== null && slot !== undefined,
|
|
67
|
+
teleport,
|
|
68
|
+
});
|
|
56
69
|
|
|
57
70
|
const hostName = shouldAttach
|
|
58
|
-
?
|
|
71
|
+
? activePortalHostName
|
|
59
72
|
: PORTAL_HOST_NAME_RESET_VALUE;
|
|
60
73
|
|
|
61
74
|
return {
|
|
62
75
|
...slotProps,
|
|
63
76
|
hostName,
|
|
64
77
|
};
|
|
65
|
-
});
|
|
78
|
+
}, [focused]);
|
|
66
79
|
|
|
67
80
|
return { teleportProps };
|
|
68
81
|
};
|
|
@@ -9,7 +9,7 @@ export type ActivePortalBoundaryHost = {
|
|
|
9
9
|
localMeasurement: BoundaryLocalMeasurementValue;
|
|
10
10
|
pairKey: string;
|
|
11
11
|
portalHostName: string;
|
|
12
|
-
portalHostReady: SharedValue<
|
|
12
|
+
portalHostReady: SharedValue<string | null>;
|
|
13
13
|
slotsMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
useComposedSlotStyles,
|
|
15
15
|
useSlotStackingStyles,
|
|
16
16
|
} from "../../../providers/screen/styles";
|
|
17
|
-
import {
|
|
17
|
+
import { useOptionalBlankStackStore } from "../../../providers/stack/blank-stack.provider";
|
|
18
18
|
import { createBoundTag } from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
19
19
|
import type { BoundTag } from "../../../stores/bounds/types";
|
|
20
20
|
import createProvider from "../../../utils/create-provider";
|
|
@@ -68,10 +68,14 @@ type BoundaryRootProviderProps = Pick<
|
|
|
68
68
|
targetStyle?: unknown;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
export const {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
export const {
|
|
72
|
+
BoundaryRootProvider,
|
|
73
|
+
useBoundaryRootStore,
|
|
74
|
+
useOptionalBoundaryRootStore,
|
|
75
|
+
} = createProvider("BoundaryRoot")<
|
|
76
|
+
BoundaryRootProviderProps,
|
|
77
|
+
BoundaryRootContextValue
|
|
78
|
+
>(
|
|
75
79
|
({
|
|
76
80
|
children,
|
|
77
81
|
config,
|
|
@@ -98,7 +102,7 @@ export const { BoundaryRootProvider, useBoundaryRootStore } = createProvider(
|
|
|
98
102
|
const currentScreenKey = useDescriptorsStore(
|
|
99
103
|
(s) => s.derivations.currentScreenKey,
|
|
100
104
|
);
|
|
101
|
-
const isCurrentScreenClosing =
|
|
105
|
+
const isCurrentScreenClosing = useOptionalBlankStackStore(
|
|
102
106
|
(store) =>
|
|
103
107
|
portalRuntime.handoff &&
|
|
104
108
|
store?.scenesByKey[currentScreenKey]?.activity === "closing",
|
|
@@ -60,7 +60,7 @@ export type MeasureTarget =
|
|
|
60
60
|
pairKey: ScreenPairKey;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
export type MeasureBoundary = (target: MeasureTarget) =>
|
|
63
|
+
export type MeasureBoundary = (target: MeasureTarget) => boolean;
|
|
64
64
|
|
|
65
65
|
export type BoundaryLocalMeasurement = {
|
|
66
66
|
bounds: MeasuredDimensions;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { updateDerivations } from "../../../providers/screen/animation/helpers/derivations";
|
|
2
2
|
import type { ScreenInterpolatorFrame } from "../../../providers/screen/animation/helpers/pipeline";
|
|
3
3
|
|
|
4
|
+
export const shouldUseOverlayGestureDriver = (
|
|
5
|
+
overlayFrame: ScreenInterpolatorFrame,
|
|
6
|
+
driverFrame: ScreenInterpolatorFrame,
|
|
7
|
+
): boolean => {
|
|
8
|
+
"worklet";
|
|
9
|
+
const gesture = overlayFrame.current.gesture;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
driverFrame.current.route.key !== overlayFrame.current.route.key &&
|
|
13
|
+
!!(gesture.dragging || gesture.dismissing || gesture.settling)
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
4
17
|
export const createOverlayInterpolatorFrame = ({
|
|
5
18
|
overlayFrame,
|
|
6
19
|
driverFrame,
|
|
@@ -22,7 +35,7 @@ export const createOverlayInterpolatorFrame = ({
|
|
|
22
35
|
};
|
|
23
36
|
|
|
24
37
|
updateDerivations(frame);
|
|
25
|
-
frame.stackProgress =
|
|
38
|
+
frame.stackProgress = overlayFrame.stackProgress;
|
|
26
39
|
frame.logicallySettled = frame.active.settled;
|
|
27
40
|
|
|
28
41
|
return frame;
|
|
@@ -74,8 +74,33 @@ export function getFloatOverlayTransitions(
|
|
|
74
74
|
): FloatOverlayTransitionEntry[] {
|
|
75
75
|
const topScene = scenes[scenes.length - 1];
|
|
76
76
|
|
|
77
|
-
return overlayStack.map((entry, index) =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
return overlayStack.map((entry, index) => {
|
|
78
|
+
const nextEntry = overlayStack[index + 1];
|
|
79
|
+
let nextPresentedEntry: FloatOverlayEntry | undefined;
|
|
80
|
+
|
|
81
|
+
for (
|
|
82
|
+
let nextIndex = index + 1;
|
|
83
|
+
nextIndex < overlayStack.length;
|
|
84
|
+
nextIndex++
|
|
85
|
+
) {
|
|
86
|
+
const candidate = overlayStack[nextIndex];
|
|
87
|
+
if (candidate?.scene.activity !== "closing") {
|
|
88
|
+
nextPresentedEntry = candidate;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const driverScene =
|
|
94
|
+
entry.scene.activity === "closing" && nextEntry
|
|
95
|
+
? entry.scene
|
|
96
|
+
: (nextPresentedEntry?.scene ??
|
|
97
|
+
nextEntry?.scene ??
|
|
98
|
+
topScene ??
|
|
99
|
+
entry.scene);
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
...entry,
|
|
103
|
+
driverScene,
|
|
104
|
+
};
|
|
105
|
+
});
|
|
81
106
|
}
|
|
@@ -15,11 +15,15 @@ import type {
|
|
|
15
15
|
ScreenStyleInterpolator,
|
|
16
16
|
} from "../../../types/animation.types";
|
|
17
17
|
import { getVisibilityBlockOffset } from "../../../utils/visibility-block-offset";
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
createOverlayInterpolatorFrame,
|
|
20
|
+
shouldUseOverlayGestureDriver,
|
|
21
|
+
} from "../helpers/create-overlay-interpolator-frame";
|
|
19
22
|
import { runOverlaySlotInterpolator } from "../helpers/run-overlay-slot-interpolator";
|
|
20
23
|
|
|
21
24
|
export const useOverlaySlot = ({
|
|
22
25
|
overlayAnimationStore,
|
|
26
|
+
overlayInterpolator,
|
|
23
27
|
driverAnimationStore,
|
|
24
28
|
previousOverlayAnimationStore,
|
|
25
29
|
driverInterpolator,
|
|
@@ -27,6 +31,7 @@ export const useOverlaySlot = ({
|
|
|
27
31
|
isIncoming,
|
|
28
32
|
}: {
|
|
29
33
|
overlayAnimationStore: ScreenAnimationContextValue;
|
|
34
|
+
overlayInterpolator: ScreenStyleInterpolator | undefined;
|
|
30
35
|
driverAnimationStore: ScreenAnimationContextValue;
|
|
31
36
|
previousOverlayAnimationStore?: ScreenAnimationContextValue;
|
|
32
37
|
driverInterpolator: ScreenStyleInterpolator | undefined;
|
|
@@ -34,11 +39,16 @@ export const useOverlaySlot = ({
|
|
|
34
39
|
isIncoming: boolean;
|
|
35
40
|
}) => {
|
|
36
41
|
const { height } = useWindowDimensions();
|
|
37
|
-
const
|
|
42
|
+
const overlayTransition = useBuildTransitionAccessor(overlayAnimationStore);
|
|
43
|
+
const driverTransition = useBuildTransitionAccessor(driverAnimationStore);
|
|
38
44
|
|
|
39
45
|
const interpolatorSharedValues = useMemo(
|
|
40
|
-
() =>
|
|
41
|
-
|
|
46
|
+
() =>
|
|
47
|
+
collectInterpolatorSharedValues([
|
|
48
|
+
overlayInterpolator,
|
|
49
|
+
driverInterpolator,
|
|
50
|
+
]),
|
|
51
|
+
[overlayInterpolator, driverInterpolator],
|
|
42
52
|
);
|
|
43
53
|
|
|
44
54
|
const overlaySlot = useDerivedValue<
|
|
@@ -53,17 +63,25 @@ export const useOverlaySlot = ({
|
|
|
53
63
|
interpolatorSharedValues[index]?.get();
|
|
54
64
|
}
|
|
55
65
|
|
|
66
|
+
const overlayFrame = overlayAnimationStore.screenInterpolatorProps.get();
|
|
67
|
+
const driverFrame = driverAnimationStore.screenInterpolatorProps.get();
|
|
68
|
+
const overlayOwnsGesture = shouldUseOverlayGestureDriver(
|
|
69
|
+
overlayFrame,
|
|
70
|
+
driverFrame,
|
|
71
|
+
);
|
|
56
72
|
const frame = createOverlayInterpolatorFrame({
|
|
57
|
-
overlayFrame
|
|
58
|
-
driverFrame:
|
|
73
|
+
overlayFrame,
|
|
74
|
+
driverFrame: overlayOwnsGesture ? overlayFrame : driverFrame,
|
|
59
75
|
previousOverlayFrame:
|
|
60
76
|
previousOverlayAnimationStore?.screenInterpolatorProps.get(),
|
|
61
77
|
});
|
|
62
78
|
|
|
63
79
|
return runOverlaySlotInterpolator({
|
|
64
80
|
frame,
|
|
65
|
-
interpolator:
|
|
66
|
-
|
|
81
|
+
interpolator: overlayOwnsGesture
|
|
82
|
+
? overlayInterpolator
|
|
83
|
+
: driverInterpolator,
|
|
84
|
+
transition: overlayOwnsGesture ? overlayTransition : driverTransition,
|
|
67
85
|
});
|
|
68
86
|
});
|
|
69
87
|
|
|
@@ -7,11 +7,11 @@ import { StyleSheet, View } from "react-native";
|
|
|
7
7
|
import Animated, { useDerivedValue } from "react-native-reanimated";
|
|
8
8
|
import { snapDescriptorToIndex } from "../../../animation/snap-to";
|
|
9
9
|
import { useStack } from "../../../hooks/navigation/use-stack";
|
|
10
|
-
import {
|
|
10
|
+
import { useOptionalScreenAnimationStore } from "../../../providers/screen/animation";
|
|
11
11
|
import type { ScreenAnimationContextValue } from "../../../providers/screen/animation/animation.provider";
|
|
12
12
|
import {
|
|
13
13
|
type ScreenSlotContextValue,
|
|
14
|
-
|
|
14
|
+
useOptionalScreenSlotStore,
|
|
15
15
|
} from "../../../providers/screen/styles/slot.provider";
|
|
16
16
|
import type { OverlayProps } from "../../../types/overlay.types";
|
|
17
17
|
import type {
|
|
@@ -39,12 +39,16 @@ export const OverlayHost = memo(function OverlayHost({
|
|
|
39
39
|
activity,
|
|
40
40
|
layerIndex,
|
|
41
41
|
}: OverlayHostProps) {
|
|
42
|
-
const overlayAnimationStore =
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
const overlayAnimationStore = useOptionalScreenAnimationStore(
|
|
43
|
+
scene.route.key,
|
|
44
|
+
);
|
|
45
|
+
const driverAnimationStore = useOptionalScreenAnimationStore(
|
|
46
|
+
driverScene.route.key,
|
|
47
|
+
);
|
|
48
|
+
const previousOverlayAnimationStore = useOptionalScreenAnimationStore(
|
|
45
49
|
previousOverlayScene?.route.key ?? scene.route.key,
|
|
46
50
|
);
|
|
47
|
-
const driverSlots =
|
|
51
|
+
const driverSlots = useOptionalScreenSlotStore(driverScene.route.key);
|
|
48
52
|
const overlayComponentRef = useRef(scene.descriptor.options.overlay);
|
|
49
53
|
const OverlayComponent = overlayComponentRef.current;
|
|
50
54
|
const readyResourcesRef = useRef<ReadyOverlayResources | null>(null);
|
|
@@ -105,6 +109,7 @@ function ReadyOverlayHost({
|
|
|
105
109
|
const focusedDescriptor = focusedScene?.descriptor;
|
|
106
110
|
const { animatedProps, animatedStyle } = useOverlaySlot({
|
|
107
111
|
overlayAnimationStore,
|
|
112
|
+
overlayInterpolator: scene.descriptor.options.screenStyleInterpolator,
|
|
108
113
|
driverAnimationStore,
|
|
109
114
|
previousOverlayAnimationStore: previousOverlayAnimationStore ?? undefined,
|
|
110
115
|
driverInterpolator: driverScene.descriptor.options.screenStyleInterpolator,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/** biome-ignore-all lint/style/noNonNullAssertion: <Screen gesture is under the gesture context, so this will always exist.> */
|
|
2
1
|
import { type ComponentType, memo, useMemo } from "react";
|
|
3
2
|
import { StyleSheet, View } from "react-native";
|
|
4
3
|
import { GestureDetector } from "react-native-gesture-handler";
|
|
5
4
|
import Animated from "react-native-reanimated";
|
|
6
5
|
import { useDescriptorsStore } from "../../../providers/screen/descriptors";
|
|
7
|
-
import {
|
|
6
|
+
import { useScreenGestureStore } from "../../../providers/screen/gestures";
|
|
8
7
|
import { useSlotProps, useSlotStyles } from "../../../providers/screen/styles";
|
|
9
8
|
import type { ScreenContentComponentProps } from "../../../types";
|
|
10
9
|
import { ScreenFallbackHost } from "../../boundary/portal/components/boundary-portal/components/host";
|
|
@@ -21,7 +20,7 @@ type Props = {
|
|
|
21
20
|
|
|
22
21
|
export const ContentLayer = memo(
|
|
23
22
|
({ children, pointerEvents, isBackdropActive }: Props) => {
|
|
24
|
-
const gestureContext =
|
|
23
|
+
const gestureContext = useScreenGestureStore();
|
|
25
24
|
const ContentComponent = useDescriptorsStore(
|
|
26
25
|
(store) => store.options.contentComponent,
|
|
27
26
|
);
|
|
@@ -71,7 +70,7 @@ export const ContentLayer = memo(
|
|
|
71
70
|
);
|
|
72
71
|
|
|
73
72
|
return (
|
|
74
|
-
<GestureDetector gesture={gestureContext
|
|
73
|
+
<GestureDetector gesture={gestureContext.detectorGesture}>
|
|
75
74
|
{AnimatedContentComponent ? (
|
|
76
75
|
<AnimatedContentComponent
|
|
77
76
|
style={contentStyles}
|
|
@@ -2,11 +2,9 @@ import { useLayoutEffect, useMemo, useRef } from "react";
|
|
|
2
2
|
import { useNavigationHelpers } from "../../../hooks/navigation/use-navigation-helpers";
|
|
3
3
|
import useStableCallback from "../../../hooks/use-stable-callback";
|
|
4
4
|
import { hasTransitionsEnabled } from "../../../providers/screen/animation/helpers/has-transitions-enabled";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../providers/screen/descriptors";
|
|
9
|
-
import { useBlankStackStore } from "../../../providers/stack/blank-stack.provider";
|
|
5
|
+
import type { BaseDescriptor } from "../../../providers/screen/descriptors";
|
|
6
|
+
import { useCurrentScreenRelationships } from "../../../providers/screen/use-current-screen-relationships";
|
|
7
|
+
import { useOptionalBlankStackStore } from "../../../providers/stack/blank-stack.provider";
|
|
10
8
|
import { useStackCoreStore } from "../../../providers/stack/core.provider";
|
|
11
9
|
import { GestureStore } from "../../../stores/gesture.store";
|
|
12
10
|
import { StackType } from "../../../types/stack.types";
|
|
@@ -24,18 +22,16 @@ export function useCloseTransitionIntent(current: BaseDescriptor): {
|
|
|
24
22
|
completeClose: () => void;
|
|
25
23
|
} {
|
|
26
24
|
const routeKey = current.route.key;
|
|
25
|
+
const flags = useStackCoreStore((store) => store.flags);
|
|
27
26
|
const { STACK_TYPE: stackType, TRANSITIONS_ALWAYS_ON: transitionsAlwaysOn } =
|
|
28
|
-
|
|
29
|
-
const handleCloseRoute =
|
|
27
|
+
flags;
|
|
28
|
+
const handleCloseRoute = useOptionalBlankStackStore(
|
|
30
29
|
(store) => store?.handleCloseRoute,
|
|
31
30
|
);
|
|
32
|
-
const isBlankStackClosing =
|
|
31
|
+
const isBlankStackClosing = useOptionalBlankStackStore(
|
|
33
32
|
(store) => store?.scenesByKey[routeKey]?.activity === "closing",
|
|
34
33
|
);
|
|
35
|
-
const
|
|
36
|
-
(store) => store.derivations.ancestorKeys,
|
|
37
|
-
);
|
|
38
|
-
const parentScreenKey = ancestorKeys[0];
|
|
34
|
+
const { parentScreenKey } = useCurrentScreenRelationships();
|
|
39
35
|
const { dismissScreen, requestDismiss } = useNavigationHelpers();
|
|
40
36
|
const pendingActionRef = useRef<any>(null);
|
|
41
37
|
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ActiveScreenRegistration,
|
|
3
|
+
ScreenRelationships,
|
|
4
|
+
ScreenTopology,
|
|
5
|
+
ScreenTopologyRegistration,
|
|
6
|
+
} from "./types";
|
|
7
|
+
|
|
8
|
+
type ScreenNode = {
|
|
9
|
+
parentScreenKey: string | null;
|
|
10
|
+
activeChildScreenKeys: string[];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const EMPTY_RELATIONSHIPS: ScreenRelationships = {
|
|
14
|
+
parentScreenKey: null,
|
|
15
|
+
activeChildScreenKey: null,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const areRelationshipsEqual = (
|
|
19
|
+
left: ScreenRelationships,
|
|
20
|
+
right: ScreenRelationships,
|
|
21
|
+
): boolean =>
|
|
22
|
+
left.parentScreenKey === right.parentScreenKey &&
|
|
23
|
+
left.activeChildScreenKey === right.activeChildScreenKey;
|
|
24
|
+
|
|
25
|
+
export const createScreenTopology = (): ScreenTopology => {
|
|
26
|
+
const nodes = new Map<string, ScreenNode>();
|
|
27
|
+
const listenersByScreenKey = new Map<string, Set<() => void>>();
|
|
28
|
+
const relationshipCache = new Map<string, ScreenRelationships>();
|
|
29
|
+
|
|
30
|
+
const getNode = (screenKey: string) => nodes.get(screenKey);
|
|
31
|
+
const ensureNode = (screenKey: string) => {
|
|
32
|
+
const existing = getNode(screenKey);
|
|
33
|
+
if (existing) return existing;
|
|
34
|
+
|
|
35
|
+
const node: ScreenNode = {
|
|
36
|
+
parentScreenKey: null,
|
|
37
|
+
activeChildScreenKeys: [],
|
|
38
|
+
};
|
|
39
|
+
nodes.set(screenKey, node);
|
|
40
|
+
return node;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const removeNodeIfEmpty = (screenKey: string) => {
|
|
44
|
+
const node = getNode(screenKey);
|
|
45
|
+
if (
|
|
46
|
+
node &&
|
|
47
|
+
!node.parentScreenKey &&
|
|
48
|
+
node.activeChildScreenKeys.length === 0
|
|
49
|
+
) {
|
|
50
|
+
nodes.delete(screenKey);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const getParent = (screenKey: string) =>
|
|
55
|
+
getNode(screenKey)?.parentScreenKey ?? null;
|
|
56
|
+
|
|
57
|
+
const getActiveChild = (screenKey: string) => {
|
|
58
|
+
const activeChildScreenKeys = getNode(screenKey)?.activeChildScreenKeys;
|
|
59
|
+
return activeChildScreenKeys?.[activeChildScreenKeys.length - 1] ?? null;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const materializeRelationships = (screenKey: string): ScreenRelationships => {
|
|
63
|
+
const parentScreenKey = getParent(screenKey);
|
|
64
|
+
const activeChildScreenKey = getActiveChild(screenKey);
|
|
65
|
+
|
|
66
|
+
if (!parentScreenKey && !activeChildScreenKey) {
|
|
67
|
+
return EMPTY_RELATIONSHIPS;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return { parentScreenKey, activeChildScreenKey };
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const getRelationships = (screenKey: string) => {
|
|
74
|
+
const cached = relationshipCache.get(screenKey);
|
|
75
|
+
if (cached) return cached;
|
|
76
|
+
|
|
77
|
+
const relationships = materializeRelationships(screenKey);
|
|
78
|
+
relationshipCache.set(screenKey, relationships);
|
|
79
|
+
return relationships;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const mutate = (affectedScreenKeys: Set<string>, mutation: () => void) => {
|
|
83
|
+
const previousRelationships = new Map<string, ScreenRelationships>();
|
|
84
|
+
for (const screenKey of affectedScreenKeys) {
|
|
85
|
+
if (listenersByScreenKey.has(screenKey)) {
|
|
86
|
+
previousRelationships.set(screenKey, getRelationships(screenKey));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
mutation();
|
|
91
|
+
for (const screenKey of affectedScreenKeys) {
|
|
92
|
+
relationshipCache.delete(screenKey);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
for (const [screenKey, previous] of previousRelationships) {
|
|
96
|
+
const listeners = listenersByScreenKey.get(screenKey);
|
|
97
|
+
if (!listeners) continue;
|
|
98
|
+
|
|
99
|
+
const next = getRelationships(screenKey);
|
|
100
|
+
if (areRelationshipsEqual(previous, next)) {
|
|
101
|
+
relationshipCache.set(screenKey, previous);
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
for (const listener of listeners) listener();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const register = ({
|
|
110
|
+
screenKey,
|
|
111
|
+
parentScreenKey,
|
|
112
|
+
}: ScreenTopologyRegistration) => {
|
|
113
|
+
mutate(new Set([screenKey]), () => {
|
|
114
|
+
ensureNode(screenKey).parentScreenKey = parentScreenKey ?? null;
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const unregister = (screenKey: string) => {
|
|
119
|
+
const node = getNode(screenKey);
|
|
120
|
+
if (!node) return;
|
|
121
|
+
|
|
122
|
+
const affectedScreenKeys = new Set([screenKey]);
|
|
123
|
+
if (node.parentScreenKey) {
|
|
124
|
+
affectedScreenKeys.add(node.parentScreenKey);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
mutate(affectedScreenKeys, () => {
|
|
128
|
+
if (node.parentScreenKey) {
|
|
129
|
+
const parent = getNode(node.parentScreenKey);
|
|
130
|
+
if (parent) {
|
|
131
|
+
parent.activeChildScreenKeys = parent.activeChildScreenKeys.filter(
|
|
132
|
+
(activeScreenKey) => activeScreenKey !== screenKey,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
removeNodeIfEmpty(node.parentScreenKey);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
nodes.delete(screenKey);
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const activate = (registration: ActiveScreenRegistration) => {
|
|
143
|
+
if (getParent(registration.screenKey) !== registration.parentScreenKey) {
|
|
144
|
+
throw new Error(
|
|
145
|
+
"Screen topology can only activate a direct containment child.",
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const affectedScreenKeys = new Set([registration.parentScreenKey]);
|
|
150
|
+
mutate(affectedScreenKeys, () => {
|
|
151
|
+
const parent = ensureNode(registration.parentScreenKey);
|
|
152
|
+
parent.activeChildScreenKeys = [
|
|
153
|
+
...parent.activeChildScreenKeys.filter(
|
|
154
|
+
(screenKey) => screenKey !== registration.screenKey,
|
|
155
|
+
),
|
|
156
|
+
registration.screenKey,
|
|
157
|
+
];
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
return () => {
|
|
161
|
+
const parent = getNode(registration.parentScreenKey);
|
|
162
|
+
if (!parent?.activeChildScreenKeys.includes(registration.screenKey)) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
mutate(affectedScreenKeys, () => {
|
|
167
|
+
parent.activeChildScreenKeys = parent.activeChildScreenKeys.filter(
|
|
168
|
+
(screenKey) => screenKey !== registration.screenKey,
|
|
169
|
+
);
|
|
170
|
+
removeNodeIfEmpty(registration.parentScreenKey);
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
register,
|
|
177
|
+
unregister,
|
|
178
|
+
activate,
|
|
179
|
+
getRelationships,
|
|
180
|
+
subscribe: (screenKey, listener) => {
|
|
181
|
+
const listeners =
|
|
182
|
+
listenersByScreenKey.get(screenKey) ?? new Set<() => void>();
|
|
183
|
+
listeners.add(listener);
|
|
184
|
+
listenersByScreenKey.set(screenKey, listeners);
|
|
185
|
+
|
|
186
|
+
return () => {
|
|
187
|
+
listeners.delete(listener);
|
|
188
|
+
if (listeners.size === 0) {
|
|
189
|
+
listenersByScreenKey.delete(screenKey);
|
|
190
|
+
if (!getNode(screenKey)) {
|
|
191
|
+
relationshipCache.delete(screenKey);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export const screenTopology = createScreenTopology();
|