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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { memo } from "react";
|
|
2
2
|
import type { View } from "react-native";
|
|
3
3
|
import type { AnimatedRef } from "react-native-reanimated";
|
|
4
|
-
import { useDescriptorsStore } from "../../../providers/screen/descriptors";
|
|
5
4
|
import type { BoundTag } from "../../../stores/bounds/types";
|
|
6
5
|
import { useBoundaryMeasurement } from "../hooks/use-boundary-measurement";
|
|
7
6
|
import type {
|
|
@@ -32,14 +31,9 @@ export const BoundaryLifecycle = memo(function BoundaryLifecycle({
|
|
|
32
31
|
measuredRef,
|
|
33
32
|
style,
|
|
34
33
|
}: BoundaryLifecycleProps) {
|
|
35
|
-
const hasConfiguredInterpolator = useDescriptorsStore(
|
|
36
|
-
(s) => s.derivations.hasConfiguredInterpolator,
|
|
37
|
-
);
|
|
38
|
-
|
|
39
34
|
useBoundaryMeasurement({
|
|
40
35
|
boundTag,
|
|
41
36
|
enabled,
|
|
42
|
-
runtimeEnabled: enabled && hasConfiguredInterpolator,
|
|
43
37
|
currentScreenKey,
|
|
44
38
|
measuredRef,
|
|
45
39
|
style,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import { BoundaryPortal } from "../portal/components/boundary-portal";
|
|
14
14
|
import {
|
|
15
15
|
TARGET_OUTSIDE_ROOT_WARNING,
|
|
16
|
-
|
|
16
|
+
useOptionalBoundaryRootStore,
|
|
17
17
|
} from "../providers/boundary-root.provider";
|
|
18
18
|
|
|
19
19
|
type BoundaryTargetProps = Omit<
|
|
@@ -36,7 +36,7 @@ const BoundaryTargetInner = (props: InternalBoundaryTargetProps) => {
|
|
|
36
36
|
style,
|
|
37
37
|
...rest
|
|
38
38
|
} = props;
|
|
39
|
-
const rootContext =
|
|
39
|
+
const rootContext = useOptionalBoundaryRootStore();
|
|
40
40
|
const boundaryId = rootContext?.boundTag.tag;
|
|
41
41
|
const isActiveTarget = active === true && rootContext !== null;
|
|
42
42
|
const portalRuntime = rootContext?.portalRuntime;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { useCallback, useEffect } from "react";
|
|
2
|
+
import {
|
|
3
|
+
cancelAnimation,
|
|
4
|
+
useAnimatedReaction,
|
|
5
|
+
useSharedValue,
|
|
6
|
+
withDelay,
|
|
7
|
+
withTiming,
|
|
8
|
+
} from "react-native-reanimated";
|
|
9
|
+
import {
|
|
10
|
+
abandonBoundaryMeasurement,
|
|
11
|
+
getBoundaryMeasurementRequest,
|
|
12
|
+
} from "../../../../stores/bounds/internals/coordinator";
|
|
13
|
+
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
14
|
+
import type { BoundTag } from "../../../../stores/bounds/types";
|
|
15
|
+
import { logger } from "../../../../utils/logger";
|
|
16
|
+
import type { MeasureBoundary, MeasureTarget } from "../../types";
|
|
17
|
+
|
|
18
|
+
const RETRY_DELAY_MS = 16;
|
|
19
|
+
const MAX_RETRIES = 20;
|
|
20
|
+
|
|
21
|
+
export const useBoundaryMeasurementRequest = (params: {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
boundTag: BoundTag;
|
|
24
|
+
currentScreenKey: string;
|
|
25
|
+
measureBoundary: MeasureBoundary;
|
|
26
|
+
}) => {
|
|
27
|
+
const { enabled, boundTag, currentScreenKey, measureBoundary } = params;
|
|
28
|
+
const retryClock = useSharedValue(0);
|
|
29
|
+
|
|
30
|
+
const fulfillRequest = useCallback(
|
|
31
|
+
function retry(request: MeasureTarget, attempt: number) {
|
|
32
|
+
"worklet";
|
|
33
|
+
if (!enabled) return;
|
|
34
|
+
|
|
35
|
+
const pending = getBoundaryMeasurementRequest(
|
|
36
|
+
boundTag.tag,
|
|
37
|
+
currentScreenKey,
|
|
38
|
+
pairs.get(),
|
|
39
|
+
);
|
|
40
|
+
if (
|
|
41
|
+
pending?.type !== request.type ||
|
|
42
|
+
pending.pairKey !== request.pairKey
|
|
43
|
+
) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (measureBoundary(request)) return;
|
|
48
|
+
|
|
49
|
+
if (attempt >= MAX_RETRIES) {
|
|
50
|
+
abandonBoundaryMeasurement({ ...request, tag: boundTag.tag });
|
|
51
|
+
logger.warn(
|
|
52
|
+
`Boundary "${boundTag.tag}" on screen "${currentScreenKey}" could not complete its ${request.type} measurement after ${MAX_RETRIES} attempts; continuing without it.`,
|
|
53
|
+
);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
cancelAnimation(retryClock);
|
|
58
|
+
retryClock.set(
|
|
59
|
+
withDelay(
|
|
60
|
+
RETRY_DELAY_MS,
|
|
61
|
+
withTiming(retryClock.get() + 1, { duration: 0 }, (finished) => {
|
|
62
|
+
if (finished) retry(request, attempt + 1);
|
|
63
|
+
}),
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
},
|
|
67
|
+
[boundTag.tag, currentScreenKey, enabled, measureBoundary, retryClock],
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
return () => {
|
|
72
|
+
cancelAnimation(retryClock);
|
|
73
|
+
};
|
|
74
|
+
}, [retryClock]);
|
|
75
|
+
|
|
76
|
+
useAnimatedReaction(
|
|
77
|
+
() => {
|
|
78
|
+
"worklet";
|
|
79
|
+
if (!enabled) return null;
|
|
80
|
+
// Read the mutable in the reaction itself. Hiding this read behind an
|
|
81
|
+
// imported helper prevented the mapper from subscribing to pair changes,
|
|
82
|
+
// so requests were only observed after a React refresh/remount.
|
|
83
|
+
return getBoundaryMeasurementRequest(
|
|
84
|
+
boundTag.tag,
|
|
85
|
+
currentScreenKey,
|
|
86
|
+
pairs.get(),
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
(request, previousRequest) => {
|
|
90
|
+
"worklet";
|
|
91
|
+
if (
|
|
92
|
+
!request ||
|
|
93
|
+
(request.type === previousRequest?.type &&
|
|
94
|
+
request.pairKey === previousRequest.pairKey)
|
|
95
|
+
) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
fulfillRequest(request, 0);
|
|
100
|
+
},
|
|
101
|
+
);
|
|
102
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useLayoutEffect } from "react";
|
|
2
2
|
import { runOnUI } from "react-native-reanimated";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../../../../stores/bounds/internals/
|
|
4
|
+
registerBoundary,
|
|
5
|
+
unregisterBoundary,
|
|
6
|
+
} from "../../../../stores/bounds/internals/coordinator";
|
|
7
7
|
import type { BoundTag } from "../../../../stores/bounds/types";
|
|
8
8
|
import type { BoundaryConfigProps } from "../../types";
|
|
9
9
|
|
|
@@ -23,19 +23,28 @@ export const useBoundaryPresence = (params: {
|
|
|
23
23
|
handoff,
|
|
24
24
|
escapeClipping,
|
|
25
25
|
} = params;
|
|
26
|
-
const { tag } = boundTag;
|
|
27
|
-
|
|
28
26
|
useLayoutEffect(() => {
|
|
29
27
|
if (!enabled) return;
|
|
30
28
|
|
|
31
|
-
runOnUI(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
runOnUI(registerBoundary)({
|
|
30
|
+
boundTag,
|
|
31
|
+
screenKey: currentScreenKey,
|
|
32
|
+
entry: {
|
|
33
|
+
boundaryConfig,
|
|
34
|
+
handoff: handoff ? true : null,
|
|
35
|
+
escapeClipping: escapeClipping ? true : null,
|
|
36
|
+
},
|
|
35
37
|
});
|
|
36
38
|
|
|
37
39
|
return () => {
|
|
38
|
-
runOnUI(
|
|
40
|
+
runOnUI(unregisterBoundary)(boundTag, currentScreenKey);
|
|
39
41
|
};
|
|
40
|
-
}, [
|
|
42
|
+
}, [
|
|
43
|
+
enabled,
|
|
44
|
+
boundTag,
|
|
45
|
+
currentScreenKey,
|
|
46
|
+
boundaryConfig,
|
|
47
|
+
handoff,
|
|
48
|
+
escapeClipping,
|
|
49
|
+
]);
|
|
41
50
|
};
|
|
@@ -7,18 +7,14 @@ import type {
|
|
|
7
7
|
BoundaryConfigProps,
|
|
8
8
|
BoundaryLocalMeasurementValue,
|
|
9
9
|
} from "../types";
|
|
10
|
+
import { useBoundaryMeasurementRequest } from "./lifecycles/use-boundary-measurement-request";
|
|
10
11
|
import { useBoundaryPresence } from "./lifecycles/use-boundary-presence";
|
|
11
|
-
import { useInitialDestinationMeasurement } from "./lifecycles/use-initial-destination-measurement";
|
|
12
|
-
import { useInitialSourceMeasurement } from "./lifecycles/use-initial-source-measurement";
|
|
13
|
-
import { useRefreshBoundary } from "./lifecycles/use-refresh-boundary";
|
|
14
12
|
import { useMeasurer } from "./use-measurer";
|
|
15
13
|
|
|
16
14
|
interface UseBoundaryMeasurementParams {
|
|
17
15
|
boundTag: BoundTag;
|
|
18
16
|
/** Raw `enabled` prop — drives the measurer and the passive-source gate. */
|
|
19
17
|
enabled: boolean;
|
|
20
|
-
/** `enabled && hasConfiguredInterpolator` — gates presence + lifecycle. */
|
|
21
|
-
runtimeEnabled: boolean;
|
|
22
18
|
currentScreenKey: string;
|
|
23
19
|
/** Surface to measure: a nested target's placeholder, else the root. */
|
|
24
20
|
measuredRef: AnimatedRef<View>;
|
|
@@ -38,7 +34,6 @@ interface UseBoundaryMeasurementParams {
|
|
|
38
34
|
export const useBoundaryMeasurement = ({
|
|
39
35
|
boundTag,
|
|
40
36
|
enabled,
|
|
41
|
-
runtimeEnabled,
|
|
42
37
|
currentScreenKey,
|
|
43
38
|
measuredRef,
|
|
44
39
|
style,
|
|
@@ -66,9 +61,6 @@ export const useBoundaryMeasurement = ({
|
|
|
66
61
|
localMeasurement,
|
|
67
62
|
});
|
|
68
63
|
|
|
69
|
-
// Presence and source capture must not depend on this screen owning an
|
|
70
|
-
// interpolator: a nested source can participate in a transition owned by a
|
|
71
|
-
// different navigator.
|
|
72
64
|
useBoundaryPresence({
|
|
73
65
|
enabled,
|
|
74
66
|
boundTag,
|
|
@@ -78,21 +70,10 @@ export const useBoundaryMeasurement = ({
|
|
|
78
70
|
escapeClipping,
|
|
79
71
|
});
|
|
80
72
|
|
|
81
|
-
|
|
73
|
+
useBoundaryMeasurementRequest({
|
|
82
74
|
enabled,
|
|
83
|
-
measureBoundary,
|
|
84
|
-
boundTag,
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
useInitialDestinationMeasurement({
|
|
88
|
-
boundTag,
|
|
89
|
-
enabled: runtimeEnabled,
|
|
90
|
-
measureBoundary,
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
useRefreshBoundary({
|
|
94
|
-
enabled: runtimeEnabled,
|
|
95
75
|
boundTag,
|
|
76
|
+
currentScreenKey,
|
|
96
77
|
measureBoundary,
|
|
97
78
|
});
|
|
98
79
|
};
|
|
@@ -3,10 +3,9 @@ import type { View } from "react-native";
|
|
|
3
3
|
import { useWindowDimensions } from "react-native";
|
|
4
4
|
import type { AnimatedRef, StyleProps } from "react-native-reanimated";
|
|
5
5
|
import { applyMeasuredBoundsWrites } from "../../../providers/helpers/measured-bounds-writes";
|
|
6
|
-
import {
|
|
6
|
+
import { useScreenSlotStore } from "../../../providers/screen/styles";
|
|
7
7
|
import type { BoundTag } from "../../../stores/bounds/types";
|
|
8
8
|
import { ScrollStore } from "../../../stores/scroll.store";
|
|
9
|
-
import { SystemStore } from "../../../stores/system.store";
|
|
10
9
|
import { getVisibilityBlockOffset } from "../../../utils/visibility-block-offset";
|
|
11
10
|
import type { BoundaryLocalMeasurementValue, MeasureBoundary } from "../types";
|
|
12
11
|
import {
|
|
@@ -42,23 +41,20 @@ export const useMeasurer = ({
|
|
|
42
41
|
|
|
43
42
|
const scrollState = ScrollStore.getValue(currentScreenKey, "coordination");
|
|
44
43
|
const scrollMetadata = ScrollStore.getValue(currentScreenKey, "metadata");
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
"pendingLifecycleStartBlockCount",
|
|
48
|
-
);
|
|
49
|
-
const { visibilityBlocked } = useScreenSlots();
|
|
44
|
+
const screenSlotStore = useScreenSlotStore();
|
|
45
|
+
const { visibilityBlocked } = screenSlotStore;
|
|
50
46
|
|
|
51
47
|
return useCallback(
|
|
52
48
|
(target) => {
|
|
53
49
|
"worklet";
|
|
54
|
-
if (!enabled) return;
|
|
50
|
+
if (!enabled) return false;
|
|
55
51
|
|
|
56
52
|
const measured = measureWithOverscrollAwareness(
|
|
57
53
|
measuredAnimatedRef,
|
|
58
54
|
scrollState.get(),
|
|
59
55
|
);
|
|
60
56
|
|
|
61
|
-
if (!measured) return;
|
|
57
|
+
if (!measured) return false;
|
|
62
58
|
|
|
63
59
|
const correctedMeasured = correctMeasuredBoundsForVisibilityGate({
|
|
64
60
|
measured,
|
|
@@ -75,26 +71,15 @@ export const useMeasurer = ({
|
|
|
75
71
|
});
|
|
76
72
|
}
|
|
77
73
|
|
|
78
|
-
/**
|
|
79
|
-
* - Destination Pass -
|
|
80
|
-
* Be strict while lifecycle start is blocked for destination capture.
|
|
81
|
-
* This is the initial attach window: the transition has not started yet,
|
|
82
|
-
* and malformed off-screen destination measurements should keep the
|
|
83
|
-
* lifecycle blocked until a valid retry lands.
|
|
84
|
-
*/
|
|
85
|
-
const shouldGuardDestinationViewport =
|
|
86
|
-
pendingLifecycleStartBlockCount.get() > 0 || !!boundTag.group;
|
|
87
|
-
|
|
88
74
|
const viewportAllowsDestinationWrite =
|
|
89
75
|
target.type !== "destination" ||
|
|
90
|
-
!shouldGuardDestinationViewport ||
|
|
91
76
|
isMeasurementInViewport(
|
|
92
77
|
correctedMeasured,
|
|
93
78
|
viewportWidth,
|
|
94
79
|
viewportHeight,
|
|
95
80
|
);
|
|
96
81
|
|
|
97
|
-
if (!viewportAllowsDestinationWrite) return;
|
|
82
|
+
if (!viewportAllowsDestinationWrite) return false;
|
|
98
83
|
|
|
99
84
|
const measuredWithScroll = attachScrollSnapshotToMeasuredBounds(
|
|
100
85
|
correctedMeasured,
|
|
@@ -112,6 +97,8 @@ export const useMeasurer = ({
|
|
|
112
97
|
handoff,
|
|
113
98
|
escapeClipping,
|
|
114
99
|
});
|
|
100
|
+
|
|
101
|
+
return true;
|
|
115
102
|
},
|
|
116
103
|
[
|
|
117
104
|
enabled,
|
|
@@ -126,7 +113,6 @@ export const useMeasurer = ({
|
|
|
126
113
|
viewportHeight,
|
|
127
114
|
scrollState,
|
|
128
115
|
scrollMetadata,
|
|
129
|
-
pendingLifecycleStartBlockCount,
|
|
130
116
|
visibilityBlocked,
|
|
131
117
|
],
|
|
132
118
|
);
|
|
@@ -13,6 +13,23 @@ type ResolveActiveHandoffReceiverParams = {
|
|
|
13
13
|
scenes: ReceiverScene[];
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
export const hasNestedHandoffTopology = ({
|
|
17
|
+
inheritedSourcePair,
|
|
18
|
+
pairDestinationScreenKey,
|
|
19
|
+
transitionDestinationScreenKey,
|
|
20
|
+
}: {
|
|
21
|
+
inheritedSourcePair: boolean;
|
|
22
|
+
pairDestinationScreenKey: string | null;
|
|
23
|
+
transitionDestinationScreenKey?: string;
|
|
24
|
+
}) => {
|
|
25
|
+
"worklet";
|
|
26
|
+
return (
|
|
27
|
+
inheritedSourcePair ||
|
|
28
|
+
(!!pairDestinationScreenKey &&
|
|
29
|
+
pairDestinationScreenKey !== transitionDestinationScreenKey)
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
16
33
|
export const resolveActiveHandoffReceiver = ({
|
|
17
34
|
focusedIndex,
|
|
18
35
|
routes,
|
|
@@ -101,3 +118,26 @@ export const resolveHandoffAttachmentCandidate = ({
|
|
|
101
118
|
|
|
102
119
|
return activeReceiverScreenKey;
|
|
103
120
|
};
|
|
121
|
+
|
|
122
|
+
export const resolveNestedHandoffAttachmentCandidate = ({
|
|
123
|
+
attachedReceiverScreenKey,
|
|
124
|
+
currentScreenKey,
|
|
125
|
+
hasActiveCloseFinished,
|
|
126
|
+
interpolatorReady,
|
|
127
|
+
pairDestinationScreenKey,
|
|
128
|
+
}: {
|
|
129
|
+
attachedReceiverScreenKey: string;
|
|
130
|
+
currentScreenKey: string;
|
|
131
|
+
hasActiveCloseFinished: boolean;
|
|
132
|
+
interpolatorReady: boolean;
|
|
133
|
+
pairDestinationScreenKey: string | null;
|
|
134
|
+
}) => {
|
|
135
|
+
"worklet";
|
|
136
|
+
|
|
137
|
+
if (hasActiveCloseFinished) return currentScreenKey;
|
|
138
|
+
if (interpolatorReady && pairDestinationScreenKey) {
|
|
139
|
+
return pairDestinationScreenKey;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return attachedReceiverScreenKey;
|
|
143
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useAnimatedProps, useSharedValue } from "react-native-reanimated";
|
|
2
2
|
import { useStack } from "../../../../../../hooks/navigation/use-stack";
|
|
3
3
|
import { useDescriptorsStore } from "../../../../../../providers/screen/descriptors";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
useOptionalScreenSlotStore,
|
|
6
|
+
useScreenSlotStore,
|
|
7
|
+
} from "../../../../../../providers/screen/styles";
|
|
5
8
|
import { hasCloseTransitionFinished } from "../../../../../../providers/screen/styles/helpers/transition-visual-state";
|
|
6
9
|
import { AnimationStore } from "../../../../../../stores/animation.store";
|
|
7
10
|
import { getLinkKeyFromTag } from "../../../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
@@ -11,8 +14,10 @@ import { SystemStore } from "../../../../../../stores/system.store";
|
|
|
11
14
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
12
15
|
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
13
16
|
import {
|
|
17
|
+
hasNestedHandoffTopology,
|
|
14
18
|
resolveActiveHandoffReceiver,
|
|
15
19
|
resolveHandoffAttachmentCandidate,
|
|
20
|
+
resolveNestedHandoffAttachmentCandidate,
|
|
16
21
|
resolvePreviousHandoffReceiver,
|
|
17
22
|
} from "../helpers/active-handoff-receiver";
|
|
18
23
|
import { createBoundaryContentPortalHostName } from "../helpers/host-name";
|
|
@@ -24,14 +29,26 @@ interface UseBoundaryContentPortalAttachmentParams {
|
|
|
24
29
|
export const useBoundaryContentPortalAttachment = ({
|
|
25
30
|
boundaryId,
|
|
26
31
|
}: UseBoundaryContentPortalAttachmentParams) => {
|
|
27
|
-
const
|
|
32
|
+
const slotsMap = useScreenSlotStore((store) => store.slotsMap);
|
|
28
33
|
|
|
29
34
|
const currentScreenKey = useDescriptorsStore(
|
|
30
35
|
(s) => s.derivations.currentScreenKey,
|
|
31
36
|
);
|
|
32
37
|
const nextScreenKey = useDescriptorsStore((s) => s.derivations.nextScreenKey);
|
|
33
38
|
const sourcePairKey = useDescriptorsStore((s) => s.derivations.sourcePairKey);
|
|
34
|
-
const
|
|
39
|
+
const transitionSourcePairKey = useDescriptorsStore(
|
|
40
|
+
(s) => s.derivations.transitionSourcePairKey,
|
|
41
|
+
);
|
|
42
|
+
const transitionDestinationScreenKey = useDescriptorsStore(
|
|
43
|
+
(s) => s.derivations.transitionDestinationScreenKey,
|
|
44
|
+
);
|
|
45
|
+
const isNestedSource = !sourcePairKey && !!transitionSourcePairKey;
|
|
46
|
+
const resolvedSourcePairKey = sourcePairKey ?? transitionSourcePairKey;
|
|
47
|
+
const resolvedDestinationScreenKey =
|
|
48
|
+
nextScreenKey ?? transitionDestinationScreenKey;
|
|
49
|
+
const destinationSlots = useOptionalScreenSlotStore(
|
|
50
|
+
resolvedDestinationScreenKey ?? currentScreenKey,
|
|
51
|
+
);
|
|
35
52
|
const unavailableInterpolatorReady = useSharedValue(0);
|
|
36
53
|
const interpolatorReady =
|
|
37
54
|
destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
|
|
@@ -48,6 +65,18 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
48
65
|
activeReceiverScreenKey ?? currentScreenKey,
|
|
49
66
|
"closing",
|
|
50
67
|
);
|
|
68
|
+
const nestedDestinationAnimationProgress = SystemStore.getValue(
|
|
69
|
+
isNestedSource && resolvedDestinationScreenKey
|
|
70
|
+
? resolvedDestinationScreenKey
|
|
71
|
+
: currentScreenKey,
|
|
72
|
+
"animationProgress",
|
|
73
|
+
);
|
|
74
|
+
const nestedDestinationClosing = AnimationStore.getValue(
|
|
75
|
+
isNestedSource && resolvedDestinationScreenKey
|
|
76
|
+
? resolvedDestinationScreenKey
|
|
77
|
+
: currentScreenKey,
|
|
78
|
+
"closing",
|
|
79
|
+
);
|
|
51
80
|
|
|
52
81
|
const attachedReceiverScreenKey = useSharedValue(currentScreenKey);
|
|
53
82
|
const sourcePairBeforeClose = useSharedValue<string | null>(null);
|
|
@@ -63,24 +92,30 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
63
92
|
} = slot?.props ?? {};
|
|
64
93
|
|
|
65
94
|
const shouldTeleport = isTeleportEnabled(teleport);
|
|
66
|
-
const closing =
|
|
67
|
-
|
|
95
|
+
const closing = isNestedSource
|
|
96
|
+
? nestedDestinationClosing.get()
|
|
97
|
+
: activeReceiverClosing.get();
|
|
98
|
+
const animationProgress = isNestedSource
|
|
99
|
+
? nestedDestinationAnimationProgress.get()
|
|
100
|
+
: activeReceiverAnimationProgress.get();
|
|
68
101
|
|
|
69
102
|
if (!closing) {
|
|
70
|
-
sourcePairBeforeClose.set(
|
|
103
|
+
sourcePairBeforeClose.set(resolvedSourcePairKey ?? null);
|
|
71
104
|
}
|
|
72
105
|
|
|
73
106
|
const pairChangedDuringClose =
|
|
74
107
|
!!closing &&
|
|
75
|
-
!!
|
|
76
|
-
|
|
108
|
+
!!resolvedSourcePairKey &&
|
|
109
|
+
resolvedSourcePairKey !== sourcePairBeforeClose.get();
|
|
77
110
|
|
|
78
111
|
const hasActiveCloseFinished = hasCloseTransitionFinished({
|
|
79
112
|
closing,
|
|
80
113
|
animationProgress,
|
|
81
114
|
});
|
|
82
115
|
|
|
83
|
-
const pair =
|
|
116
|
+
const pair = resolvedSourcePairKey
|
|
117
|
+
? pairs.get()[resolvedSourcePairKey]
|
|
118
|
+
: null;
|
|
84
119
|
const link = pair?.links[getLinkKeyFromTag(boundaryId)];
|
|
85
120
|
|
|
86
121
|
const pairDestination =
|
|
@@ -92,18 +127,31 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
92
127
|
|
|
93
128
|
const isInterpolatorReady = interpolatorReady.get();
|
|
94
129
|
const attachedScreenKey = attachedReceiverScreenKey.get();
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
activeReceiverClosing: !!closing,
|
|
98
|
-
activeReceiverScreenKey,
|
|
99
|
-
attachedReceiverScreenKey: attachedScreenKey,
|
|
100
|
-
hasActiveCloseFinished,
|
|
101
|
-
interpolatorReady: !!isInterpolatorReady,
|
|
102
|
-
pairChangedDuringClose,
|
|
130
|
+
const usesNestedReceiver = hasNestedHandoffTopology({
|
|
131
|
+
inheritedSourcePair: isNestedSource,
|
|
103
132
|
pairDestinationScreenKey: pairDestination,
|
|
104
|
-
|
|
133
|
+
transitionDestinationScreenKey: resolvedDestinationScreenKey,
|
|
105
134
|
});
|
|
106
135
|
|
|
136
|
+
const nextReceiverScreenKey = usesNestedReceiver
|
|
137
|
+
? resolveNestedHandoffAttachmentCandidate({
|
|
138
|
+
attachedReceiverScreenKey: attachedScreenKey,
|
|
139
|
+
currentScreenKey,
|
|
140
|
+
hasActiveCloseFinished,
|
|
141
|
+
interpolatorReady: !!isInterpolatorReady,
|
|
142
|
+
pairDestinationScreenKey: pairDestination,
|
|
143
|
+
})
|
|
144
|
+
: resolveHandoffAttachmentCandidate({
|
|
145
|
+
activeReceiverClosing: !!closing,
|
|
146
|
+
activeReceiverScreenKey,
|
|
147
|
+
attachedReceiverScreenKey: attachedScreenKey,
|
|
148
|
+
hasActiveCloseFinished,
|
|
149
|
+
interpolatorReady: !!isInterpolatorReady,
|
|
150
|
+
pairChangedDuringClose,
|
|
151
|
+
pairDestinationScreenKey: pairDestination,
|
|
152
|
+
previousReceiverScreenKey,
|
|
153
|
+
});
|
|
154
|
+
|
|
107
155
|
const receiverEntry = nextReceiverScreenKey
|
|
108
156
|
? getEntry(boundaryId, nextReceiverScreenKey)
|
|
109
157
|
: null;
|
|
@@ -118,10 +166,13 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
118
166
|
!!isInterpolatorReady &&
|
|
119
167
|
nextReceiverScreenKey === pairDestination;
|
|
120
168
|
|
|
121
|
-
const canActivateReceiver =
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
169
|
+
const canActivateReceiver = usesNestedReceiver
|
|
170
|
+
? nextReceiverScreenKey === attachedScreenKey ||
|
|
171
|
+
hasActiveCloseFinished ||
|
|
172
|
+
activatingPairDestination
|
|
173
|
+
: returningFromActiveClose ||
|
|
174
|
+
activatingPairDestination ||
|
|
175
|
+
animationProgress > 0;
|
|
125
176
|
|
|
126
177
|
if (nextReceiverScreenKey && receiverReady && canActivateReceiver) {
|
|
127
178
|
attachedReceiverScreenKey.set(nextReceiverScreenKey);
|
|
@@ -13,7 +13,9 @@ import Animated, {
|
|
|
13
13
|
} from "react-native-reanimated";
|
|
14
14
|
import { NO_STYLES } from "../../../../../../constants";
|
|
15
15
|
import { composeSlotStyleWithLocalTransform } from "../../../../../../providers/screen/styles/helpers/compose-slot-style";
|
|
16
|
+
import { markBoundaryPortalReady } from "../../../../../../stores/bounds/internals/coordinator";
|
|
16
17
|
import { NativePortalHost, PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
18
|
+
import { resolveReadyPortalHostName } from "../helpers/host-readiness";
|
|
17
19
|
import { resolveBoundaryLocalMeasurement } from "../helpers/local-measurement";
|
|
18
20
|
import { resolvePortalOffsetStyle } from "../helpers/offset-style";
|
|
19
21
|
import type { ActivePortalBoundaryHost } from "../stores/portal-boundary-host.store";
|
|
@@ -57,8 +59,15 @@ export const PortalBoundaryHost = memo(function PortalBoundaryHost({
|
|
|
57
59
|
},
|
|
58
60
|
(ready) => {
|
|
59
61
|
"worklet";
|
|
62
|
+
host.portalHostReady.set(
|
|
63
|
+
resolveReadyPortalHostName({
|
|
64
|
+
currentReadyHostName: host.portalHostReady.get(),
|
|
65
|
+
hostName: host.portalHostName,
|
|
66
|
+
ready,
|
|
67
|
+
}),
|
|
68
|
+
);
|
|
60
69
|
if (ready) {
|
|
61
|
-
host.
|
|
70
|
+
markBoundaryPortalReady(host.pairKey, host.boundaryId);
|
|
62
71
|
}
|
|
63
72
|
},
|
|
64
73
|
);
|
package/src/shared/components/boundary/portal/components/boundary-portal/helpers/attachment.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BoundaryTeleportControl } from "../../../../../../types/animation.types";
|
|
2
|
+
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
3
|
+
|
|
4
|
+
export const shouldAttachBoundaryPortal = ({
|
|
5
|
+
focused,
|
|
6
|
+
portalHostReady,
|
|
7
|
+
slotActive,
|
|
8
|
+
teleport,
|
|
9
|
+
}: {
|
|
10
|
+
focused: boolean;
|
|
11
|
+
portalHostReady: boolean;
|
|
12
|
+
slotActive: boolean;
|
|
13
|
+
teleport?: BoundaryTeleportControl;
|
|
14
|
+
}) => {
|
|
15
|
+
"worklet";
|
|
16
|
+
return (
|
|
17
|
+
slotActive && !focused && portalHostReady && isTeleportEnabled(teleport)
|
|
18
|
+
);
|
|
19
|
+
};
|
package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-readiness.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const resolveReadyPortalHostName = ({
|
|
2
|
+
currentReadyHostName,
|
|
3
|
+
hostName,
|
|
4
|
+
ready,
|
|
5
|
+
}: {
|
|
6
|
+
currentReadyHostName: string | null;
|
|
7
|
+
hostName: string;
|
|
8
|
+
ready: boolean;
|
|
9
|
+
}) => {
|
|
10
|
+
"worklet";
|
|
11
|
+
|
|
12
|
+
if (ready) return hostName;
|
|
13
|
+
return currentReadyHostName === hostName ? null : currentReadyHostName;
|
|
14
|
+
};
|
|
@@ -1,5 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
getGroupKeyFromTag,
|
|
3
|
+
getLinkKeyFromTag,
|
|
4
|
+
} from "../../../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
5
|
+
import type {
|
|
6
|
+
LinkPairsState,
|
|
7
|
+
ScreenPairKey,
|
|
8
|
+
} from "../../../../../../stores/bounds/types";
|
|
9
|
+
import type { NormalizedTransitionSlotStyle } from "../../../../../../types/animation.types";
|
|
2
10
|
import type { BoundaryLocalMeasurement } from "../../../../types";
|
|
11
|
+
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
12
|
+
|
|
13
|
+
export const resolveBoundaryPortalPairKey = (
|
|
14
|
+
measurement: BoundaryLocalMeasurement | null,
|
|
15
|
+
): ScreenPairKey | null => {
|
|
16
|
+
"worklet";
|
|
17
|
+
return measurement?.pairKey ?? null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const resolveActiveBoundaryPortalPairKey = (
|
|
21
|
+
measurement: BoundaryLocalMeasurement | null,
|
|
22
|
+
slot: NormalizedTransitionSlotStyle | undefined,
|
|
23
|
+
boundaryId: string,
|
|
24
|
+
pairsState: LinkPairsState,
|
|
25
|
+
): ScreenPairKey | null => {
|
|
26
|
+
"worklet";
|
|
27
|
+
if (!measurement) return null;
|
|
28
|
+
|
|
29
|
+
const group = getGroupKeyFromTag(boundaryId);
|
|
30
|
+
if (group) {
|
|
31
|
+
const activeId = pairsState[measurement.pairKey]?.groups[group]?.activeId;
|
|
32
|
+
if (activeId !== getLinkKeyFromTag(boundaryId)) return null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (slot && !isTeleportEnabled(slot.props?.teleport)) return null;
|
|
36
|
+
return measurement.pairKey;
|
|
37
|
+
};
|
|
3
38
|
|
|
4
39
|
export const resolveBoundaryLocalMeasurement = (
|
|
5
40
|
measurement: BoundaryLocalMeasurement | null,
|