react-native-screen-transitions 3.11.3 → 3.13.0-beta.0
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/blank-stack/components/stack-view.js +1 -2
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/component-stack/components/stack-view.js +1 -2
- package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +2 -3
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js +1 -1
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/commonjs/shared/components/activity/variants/activity-screen.js +1 -1
- 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/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 +6 -16
- 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 +32 -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 +18 -6
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +30 -0
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +40 -22
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/retain-ready-overlay-resources.js +21 -0
- package/lib/commonjs/shared/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/helpers/run-overlay-slot-interpolator.js +41 -0
- package/lib/commonjs/shared/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js +85 -0
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +14 -65
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +89 -16
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +4 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.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 +14 -8
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +6 -8
- 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/interpolator-participation.js +9 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/interpolator-participation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +13 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +8 -2
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +40 -8
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js +12 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +9 -5
- 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 +1 -3
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +36 -50
- package/lib/commonjs/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- 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/styles/constants.js +3 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js +20 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.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 +14 -15
- 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 +34 -11
- 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/slot.provider.js +31 -33
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +18 -0
- package/lib/commonjs/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.js +2 -1
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.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 +298 -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/screen-graph.js +45 -0
- package/lib/commonjs/shared/stores/bounds/internals/screen-graph.js.map +1 -0
- 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 +119 -10
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/module/blank-stack/components/stack-view.js +1 -2
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/component-stack/components/stack-view.js +1 -2
- package/lib/module/component-stack/components/stack-view.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.native.js +2 -3
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/module/shared/components/activity/variants/activity-screen.js +1 -1
- 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/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 +6 -16
- 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 +33 -12
- 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 +18 -6
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +25 -0
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +37 -21
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/retain-ready-overlay-resources.js +17 -0
- package/lib/module/shared/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/module/shared/components/overlay/helpers/run-overlay-slot-interpolator.js +36 -0
- package/lib/module/shared/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js +80 -0
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js +15 -66
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +90 -18
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +4 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.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 +14 -8
- 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 -8
- 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/interpolator-participation.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/interpolator-participation.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +13 -2
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +8 -2
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +41 -9
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js +7 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +10 -6
- 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 +1 -3
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +35 -49
- package/lib/module/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- 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/styles/constants.js +3 -1
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js +18 -0
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.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 +14 -15
- 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 +35 -12
- 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/slot.provider.js +30 -33
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +14 -0
- package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/module/shared/providers/stack/blank-stack.provider.js +2 -1
- package/lib/module/shared/providers/stack/blank-stack.provider.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 +286 -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/screen-graph.js +39 -0
- package/lib/module/shared/stores/bounds/internals/screen-graph.js.map +1 -0
- 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/types/animation.types.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 +119 -10
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +1 -1
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/component-stack/types.d.ts +1 -1
- package/lib/typescript/component-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/types.d.ts +1 -1
- package/lib/typescript/native-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +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/hooks/use-placeholder-styles.d.ts +2 -2
- 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/types.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +5 -6
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts +7 -0
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +17 -7
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/retain-ready-overlay-resources.d.ts +11 -0
- package/lib/typescript/shared/components/overlay/helpers/retain-ready-overlay-resources.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/helpers/run-overlay-slot-interpolator.d.ts +8 -0
- package/lib/typescript/shared/components/overlay/helpers/run-overlay-slot-interpolator.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts +15 -0
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +7 -6
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +658 -710
- package/lib/typescript/shared/index.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 +4 -0
- 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 -1
- 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/interpolator-participation.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/interpolator-participation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.d.ts.map +1 -0
- 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/ownership/gesture-ownership-bridge.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts.map +1 -0
- 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/types.d.ts +1 -0
- 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/transition-visual-state.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.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 +4 -4
- 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 +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 +10 -4
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +6 -5
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/blank-stack.provider.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/screen-graph.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/internals/screen-graph.d.ts.map +1 -0
- 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 +13 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +8 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +26 -11
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +11 -2
- package/lib/typescript/shared/types/screen.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 +21 -6
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/blank-stack/components/stack-view.tsx +1 -4
- package/src/blank-stack/types.ts +8 -2
- package/src/component-stack/components/stack-view.tsx +1 -4
- package/src/component-stack/types.ts +8 -2
- package/src/native-stack/types.ts +8 -2
- package/src/native-stack/views/NativeStackView.native.tsx +3 -9
- package/src/shared/adapters/with-screen-transitions/stack-layout.tsx +1 -1
- package/src/shared/components/activity/variants/activity-screen.tsx +1 -1
- package/src/shared/components/boundary/components/boundary-lifecycle.tsx +0 -6
- 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 +5 -20
- 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 +75 -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 +26 -9
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +1 -1
- package/src/shared/components/boundary/types.ts +1 -1
- package/src/shared/components/overlay/helpers/create-overlay-interpolator-frame.ts +29 -0
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +62 -20
- package/src/shared/components/overlay/helpers/retain-ready-overlay-resources.ts +38 -0
- package/src/shared/components/overlay/helpers/run-overlay-slot-interpolator.ts +48 -0
- package/src/shared/components/overlay/hooks/use-overlay-slot.ts +103 -0
- package/src/shared/components/overlay/variations/float-overlay.tsx +22 -64
- package/src/shared/components/overlay/variations/overlay-host.tsx +135 -28
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +5 -1
- package/src/shared/index.ts +1 -0
- package/src/shared/providers/helpers/measured-bounds-writes.ts +5 -0
- package/src/shared/providers/screen/animation/animation.provider.tsx +31 -12
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +15 -9
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +18 -3
- package/src/shared/providers/screen/animation/helpers/interpolator-participation.ts +6 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +54 -32
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +12 -2
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +80 -14
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +6 -0
- package/src/shared/providers/screen/descriptors/helpers/derive-structural-ancestor-keys.ts +13 -0
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +18 -7
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +4 -4
- package/src/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.ts → gesture-ownership-bridge.tsx} +44 -54
- 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/types.ts +1 -0
- package/src/shared/providers/screen/styles/constants.ts +2 -0
- package/src/shared/providers/screen/styles/helpers/transition-visual-state.ts +26 -0
- package/src/shared/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +17 -5
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +51 -12
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +40 -15
- package/src/shared/providers/screen/styles/slot.provider.tsx +60 -70
- package/src/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.ts +22 -0
- package/src/shared/providers/stack/blank-stack.provider.tsx +6 -1
- 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 +403 -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/screen-graph.ts +45 -0
- package/src/shared/stores/bounds/internals/state.ts +10 -1
- package/src/shared/stores/bounds/types.ts +19 -1
- package/src/shared/types/animation.types.ts +8 -0
- package/src/shared/types/index.ts +1 -1
- package/src/shared/types/overlay.types.ts +41 -14
- package/src/shared/types/screen.types.ts +12 -2
- 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 +221 -19
- 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/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/components/floating-overlay-layer.js +0 -28
- package/lib/commonjs/shared/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +0 -53
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.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/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/components/floating-overlay-layer.js +0 -24
- package/lib/module/shared/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +0 -47
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.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/ownership/use-walk-up-and-register-shadowing-claims.d.ts +0 -14
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.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/styles/components/floating-overlay-layer.tsx +0 -29
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +0 -72
|
@@ -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
|
};
|
|
@@ -6,7 +6,6 @@ import { applyMeasuredBoundsWrites } from "../../../providers/helpers/measured-b
|
|
|
6
6
|
import { useScreenSlots } 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,19 @@ export const useMeasurer = ({
|
|
|
42
41
|
|
|
43
42
|
const scrollState = ScrollStore.getValue(currentScreenKey, "coordination");
|
|
44
43
|
const scrollMetadata = ScrollStore.getValue(currentScreenKey, "metadata");
|
|
45
|
-
const pendingLifecycleStartBlockCount = SystemStore.getValue(
|
|
46
|
-
currentScreenKey,
|
|
47
|
-
"pendingLifecycleStartBlockCount",
|
|
48
|
-
);
|
|
49
44
|
const { visibilityBlocked } = useScreenSlots();
|
|
50
45
|
|
|
51
46
|
return useCallback(
|
|
52
47
|
(target) => {
|
|
53
48
|
"worklet";
|
|
54
|
-
if (!enabled) return;
|
|
49
|
+
if (!enabled) return false;
|
|
55
50
|
|
|
56
51
|
const measured = measureWithOverscrollAwareness(
|
|
57
52
|
measuredAnimatedRef,
|
|
58
53
|
scrollState.get(),
|
|
59
54
|
);
|
|
60
55
|
|
|
61
|
-
if (!measured) return;
|
|
56
|
+
if (!measured) return false;
|
|
62
57
|
|
|
63
58
|
const correctedMeasured = correctMeasuredBoundsForVisibilityGate({
|
|
64
59
|
measured,
|
|
@@ -75,26 +70,15 @@ export const useMeasurer = ({
|
|
|
75
70
|
});
|
|
76
71
|
}
|
|
77
72
|
|
|
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
73
|
const viewportAllowsDestinationWrite =
|
|
89
74
|
target.type !== "destination" ||
|
|
90
|
-
!shouldGuardDestinationViewport ||
|
|
91
75
|
isMeasurementInViewport(
|
|
92
76
|
correctedMeasured,
|
|
93
77
|
viewportWidth,
|
|
94
78
|
viewportHeight,
|
|
95
79
|
);
|
|
96
80
|
|
|
97
|
-
if (!viewportAllowsDestinationWrite) return;
|
|
81
|
+
if (!viewportAllowsDestinationWrite) return false;
|
|
98
82
|
|
|
99
83
|
const measuredWithScroll = attachScrollSnapshotToMeasuredBounds(
|
|
100
84
|
correctedMeasured,
|
|
@@ -112,6 +96,8 @@ export const useMeasurer = ({
|
|
|
112
96
|
handoff,
|
|
113
97
|
escapeClipping,
|
|
114
98
|
});
|
|
99
|
+
|
|
100
|
+
return true;
|
|
115
101
|
},
|
|
116
102
|
[
|
|
117
103
|
enabled,
|
|
@@ -126,7 +112,6 @@ export const useMeasurer = ({
|
|
|
126
112
|
viewportHeight,
|
|
127
113
|
scrollState,
|
|
128
114
|
scrollMetadata,
|
|
129
|
-
pendingLifecycleStartBlockCount,
|
|
130
115
|
visibilityBlocked,
|
|
131
116
|
],
|
|
132
117
|
);
|
|
@@ -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
|
+
};
|
|
@@ -11,8 +11,10 @@ import { SystemStore } from "../../../../../../stores/system.store";
|
|
|
11
11
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
12
12
|
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
13
13
|
import {
|
|
14
|
+
hasNestedHandoffTopology,
|
|
14
15
|
resolveActiveHandoffReceiver,
|
|
15
16
|
resolveHandoffAttachmentCandidate,
|
|
17
|
+
resolveNestedHandoffAttachmentCandidate,
|
|
16
18
|
resolvePreviousHandoffReceiver,
|
|
17
19
|
} from "../helpers/active-handoff-receiver";
|
|
18
20
|
import { createBoundaryContentPortalHostName } from "../helpers/host-name";
|
|
@@ -24,12 +26,29 @@ interface UseBoundaryContentPortalAttachmentParams {
|
|
|
24
26
|
export const useBoundaryContentPortalAttachment = ({
|
|
25
27
|
boundaryId,
|
|
26
28
|
}: UseBoundaryContentPortalAttachmentParams) => {
|
|
27
|
-
const {
|
|
29
|
+
const { slotsMap } = useScreenSlots();
|
|
28
30
|
|
|
29
31
|
const currentScreenKey = useDescriptorsStore(
|
|
30
32
|
(s) => s.derivations.currentScreenKey,
|
|
31
33
|
);
|
|
34
|
+
const nextScreenKey = useDescriptorsStore((s) => s.derivations.nextScreenKey);
|
|
32
35
|
const sourcePairKey = useDescriptorsStore((s) => s.derivations.sourcePairKey);
|
|
36
|
+
const transitionSourcePairKey = useDescriptorsStore(
|
|
37
|
+
(s) => s.derivations.transitionSourcePairKey,
|
|
38
|
+
);
|
|
39
|
+
const transitionDestinationScreenKey = useDescriptorsStore(
|
|
40
|
+
(s) => s.derivations.transitionDestinationScreenKey,
|
|
41
|
+
);
|
|
42
|
+
const isNestedSource = !sourcePairKey && !!transitionSourcePairKey;
|
|
43
|
+
const resolvedSourcePairKey = sourcePairKey ?? transitionSourcePairKey;
|
|
44
|
+
const resolvedDestinationScreenKey =
|
|
45
|
+
nextScreenKey ?? transitionDestinationScreenKey;
|
|
46
|
+
const destinationSlots = useScreenSlots(
|
|
47
|
+
resolvedDestinationScreenKey ?? currentScreenKey,
|
|
48
|
+
);
|
|
49
|
+
const unavailableInterpolatorReady = useSharedValue(0);
|
|
50
|
+
const interpolatorReady =
|
|
51
|
+
destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
|
|
33
52
|
|
|
34
53
|
const activeReceiverScreenKey = useStack(resolveActiveHandoffReceiver);
|
|
35
54
|
const previousReceiverScreenKey = useStack(resolvePreviousHandoffReceiver);
|
|
@@ -43,6 +62,18 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
43
62
|
activeReceiverScreenKey ?? currentScreenKey,
|
|
44
63
|
"closing",
|
|
45
64
|
);
|
|
65
|
+
const nestedDestinationAnimationProgress = SystemStore.getValue(
|
|
66
|
+
isNestedSource && resolvedDestinationScreenKey
|
|
67
|
+
? resolvedDestinationScreenKey
|
|
68
|
+
: currentScreenKey,
|
|
69
|
+
"animationProgress",
|
|
70
|
+
);
|
|
71
|
+
const nestedDestinationClosing = AnimationStore.getValue(
|
|
72
|
+
isNestedSource && resolvedDestinationScreenKey
|
|
73
|
+
? resolvedDestinationScreenKey
|
|
74
|
+
: currentScreenKey,
|
|
75
|
+
"closing",
|
|
76
|
+
);
|
|
46
77
|
|
|
47
78
|
const attachedReceiverScreenKey = useSharedValue(currentScreenKey);
|
|
48
79
|
const sourcePairBeforeClose = useSharedValue<string | null>(null);
|
|
@@ -58,24 +89,30 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
58
89
|
} = slot?.props ?? {};
|
|
59
90
|
|
|
60
91
|
const shouldTeleport = isTeleportEnabled(teleport);
|
|
61
|
-
const closing =
|
|
62
|
-
|
|
92
|
+
const closing = isNestedSource
|
|
93
|
+
? nestedDestinationClosing.get()
|
|
94
|
+
: activeReceiverClosing.get();
|
|
95
|
+
const animationProgress = isNestedSource
|
|
96
|
+
? nestedDestinationAnimationProgress.get()
|
|
97
|
+
: activeReceiverAnimationProgress.get();
|
|
63
98
|
|
|
64
99
|
if (!closing) {
|
|
65
|
-
sourcePairBeforeClose.set(
|
|
100
|
+
sourcePairBeforeClose.set(resolvedSourcePairKey ?? null);
|
|
66
101
|
}
|
|
67
102
|
|
|
68
103
|
const pairChangedDuringClose =
|
|
69
104
|
!!closing &&
|
|
70
|
-
!!
|
|
71
|
-
|
|
105
|
+
!!resolvedSourcePairKey &&
|
|
106
|
+
resolvedSourcePairKey !== sourcePairBeforeClose.get();
|
|
72
107
|
|
|
73
108
|
const hasActiveCloseFinished = hasCloseTransitionFinished({
|
|
74
109
|
closing,
|
|
75
110
|
animationProgress,
|
|
76
111
|
});
|
|
77
112
|
|
|
78
|
-
const pair =
|
|
113
|
+
const pair = resolvedSourcePairKey
|
|
114
|
+
? pairs.get()[resolvedSourcePairKey]
|
|
115
|
+
: null;
|
|
79
116
|
const link = pair?.links[getLinkKeyFromTag(boundaryId)];
|
|
80
117
|
|
|
81
118
|
const pairDestination =
|
|
@@ -85,20 +122,33 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
85
122
|
? link.destination.screenKey
|
|
86
123
|
: null;
|
|
87
124
|
|
|
88
|
-
const
|
|
125
|
+
const isInterpolatorReady = interpolatorReady.get();
|
|
89
126
|
const attachedScreenKey = attachedReceiverScreenKey.get();
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
activeReceiverClosing: !!closing,
|
|
93
|
-
activeReceiverScreenKey,
|
|
94
|
-
attachedReceiverScreenKey: attachedScreenKey,
|
|
95
|
-
hasActiveCloseFinished,
|
|
96
|
-
interpolatorReady: !!interpolatorReady,
|
|
97
|
-
pairChangedDuringClose,
|
|
127
|
+
const usesNestedReceiver = hasNestedHandoffTopology({
|
|
128
|
+
inheritedSourcePair: isNestedSource,
|
|
98
129
|
pairDestinationScreenKey: pairDestination,
|
|
99
|
-
|
|
130
|
+
transitionDestinationScreenKey: resolvedDestinationScreenKey,
|
|
100
131
|
});
|
|
101
132
|
|
|
133
|
+
const nextReceiverScreenKey = usesNestedReceiver
|
|
134
|
+
? resolveNestedHandoffAttachmentCandidate({
|
|
135
|
+
attachedReceiverScreenKey: attachedScreenKey,
|
|
136
|
+
currentScreenKey,
|
|
137
|
+
hasActiveCloseFinished,
|
|
138
|
+
interpolatorReady: !!isInterpolatorReady,
|
|
139
|
+
pairDestinationScreenKey: pairDestination,
|
|
140
|
+
})
|
|
141
|
+
: resolveHandoffAttachmentCandidate({
|
|
142
|
+
activeReceiverClosing: !!closing,
|
|
143
|
+
activeReceiverScreenKey,
|
|
144
|
+
attachedReceiverScreenKey: attachedScreenKey,
|
|
145
|
+
hasActiveCloseFinished,
|
|
146
|
+
interpolatorReady: !!isInterpolatorReady,
|
|
147
|
+
pairChangedDuringClose,
|
|
148
|
+
pairDestinationScreenKey: pairDestination,
|
|
149
|
+
previousReceiverScreenKey,
|
|
150
|
+
});
|
|
151
|
+
|
|
102
152
|
const receiverEntry = nextReceiverScreenKey
|
|
103
153
|
? getEntry(boundaryId, nextReceiverScreenKey)
|
|
104
154
|
: null;
|
|
@@ -110,13 +160,16 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
110
160
|
|
|
111
161
|
const activatingPairDestination =
|
|
112
162
|
!!pairDestination &&
|
|
113
|
-
!!
|
|
163
|
+
!!isInterpolatorReady &&
|
|
114
164
|
nextReceiverScreenKey === pairDestination;
|
|
115
165
|
|
|
116
|
-
const canActivateReceiver =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
166
|
+
const canActivateReceiver = usesNestedReceiver
|
|
167
|
+
? nextReceiverScreenKey === attachedScreenKey ||
|
|
168
|
+
hasActiveCloseFinished ||
|
|
169
|
+
activatingPairDestination
|
|
170
|
+
: returningFromActiveClose ||
|
|
171
|
+
activatingPairDestination ||
|
|
172
|
+
animationProgress > 0;
|
|
120
173
|
|
|
121
174
|
if (nextReceiverScreenKey && receiverReady && canActivateReceiver) {
|
|
122
175
|
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,
|
|
@@ -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
4
|
import { useScreenSlots } 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
|
|
|
@@ -24,14 +27,17 @@ export const useBoundaryPortalAttachment = ({
|
|
|
24
27
|
const currentScreenKey = useDescriptorsStore(
|
|
25
28
|
(s) => s.derivations.currentScreenKey,
|
|
26
29
|
);
|
|
30
|
+
// React Navigation resolves focus through the entire parent navigator chain.
|
|
31
|
+
// A leaf that is still selected in its own one-screen stack becomes unfocused
|
|
32
|
+
// when any ancestor route is covered.
|
|
33
|
+
const focused = useIsFocused();
|
|
27
34
|
const { slotsMap } = useScreenSlots();
|
|
28
35
|
const portalHostName = useSharedValue<string | null>(null);
|
|
29
|
-
const portalHostReady = useSharedValue(
|
|
36
|
+
const portalHostReady = useSharedValue<string | null>(null);
|
|
30
37
|
const escapeHostKey = useActiveHostKey(currentScreenKey);
|
|
31
38
|
|
|
32
39
|
useActivePortalBoundaryHost({
|
|
33
40
|
boundaryId,
|
|
34
|
-
currentScreenKey,
|
|
35
41
|
escapeHostKey,
|
|
36
42
|
localMeasurement,
|
|
37
43
|
portalHostName,
|
|
@@ -49,20 +55,31 @@ export const useBoundaryPortalAttachment = ({
|
|
|
49
55
|
...slotProps
|
|
50
56
|
} = slot?.props ?? {};
|
|
51
57
|
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
portalHostReady
|
|
58
|
+
const activePortalHostName = portalHostName.get();
|
|
59
|
+
const shouldAttach = shouldAttachBoundaryPortal({
|
|
60
|
+
focused,
|
|
61
|
+
portalHostReady:
|
|
62
|
+
activePortalHostName !== null &&
|
|
63
|
+
portalHostReady.get() === activePortalHostName,
|
|
64
|
+
slotActive:
|
|
65
|
+
resolveActiveBoundaryPortalPairKey(
|
|
66
|
+
localMeasurement.get(),
|
|
67
|
+
slot,
|
|
68
|
+
boundaryId,
|
|
69
|
+
pairs.get(),
|
|
70
|
+
) !== null && slot !== undefined,
|
|
71
|
+
teleport,
|
|
72
|
+
});
|
|
56
73
|
|
|
57
74
|
const hostName = shouldAttach
|
|
58
|
-
?
|
|
75
|
+
? activePortalHostName
|
|
59
76
|
: PORTAL_HOST_NAME_RESET_VALUE;
|
|
60
77
|
|
|
61
78
|
return {
|
|
62
79
|
...slotProps,
|
|
63
80
|
hostName,
|
|
64
81
|
};
|
|
65
|
-
});
|
|
82
|
+
}, [focused]);
|
|
66
83
|
|
|
67
84
|
return { teleportProps };
|
|
68
85
|
};
|
|
@@ -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
|
|