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
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
getDestination as getPairDestination,
|
|
12
12
|
getLink as getPairLink,
|
|
13
13
|
getSource as getPairSource,
|
|
14
|
-
getSourceScreenKeyFromPairKey,
|
|
15
14
|
} from "../helpers/link-pairs.helpers";
|
|
16
15
|
import type {
|
|
17
16
|
BoundaryRuntimeFlags,
|
|
@@ -24,6 +23,7 @@ import type {
|
|
|
24
23
|
TagID,
|
|
25
24
|
TagLink,
|
|
26
25
|
} from "../types";
|
|
26
|
+
import { screenBelongsToScope } from "./screen-graph";
|
|
27
27
|
import { pairs } from "./state";
|
|
28
28
|
|
|
29
29
|
const syncLinkStatus = (link: TagLink) => {
|
|
@@ -315,33 +315,21 @@ function setDestination(
|
|
|
315
315
|
group,
|
|
316
316
|
runtimeFlags,
|
|
317
317
|
);
|
|
318
|
+
delete state[pairKey]?.destinationRequests?.[linkKey];
|
|
318
319
|
|
|
319
320
|
return state;
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
323
|
|
|
323
324
|
function setActiveGroupId(pairKey: ScreenPairKey, group: GroupKey, tag: TagID) {
|
|
324
|
-
"worklet";
|
|
325
|
-
pairs.modify(<T extends LinkPairsState>(state: T): T => {
|
|
326
|
-
"worklet";
|
|
327
|
-
writeGroup(state, pairKey, group, getLinkKeyFromTag(tag));
|
|
328
|
-
return state;
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
function requestSourceMeasure(pairKey: ScreenPairKey, tag: TagID) {
|
|
333
325
|
"worklet";
|
|
334
326
|
pairs.modify(<T extends LinkPairsState>(state: T): T => {
|
|
335
327
|
"worklet";
|
|
336
328
|
const linkKey = getLinkKeyFromTag(tag);
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return state;
|
|
329
|
+
writeGroup(state, pairKey, group, linkKey);
|
|
330
|
+
if (!getPairLink(state, pairKey, linkKey)?.source) {
|
|
331
|
+
ensurePairSourceRequests(state, pairKey)[linkKey] = true;
|
|
341
332
|
}
|
|
342
|
-
|
|
343
|
-
ensurePairSourceRequests(state, pairKey)[linkKey] = true;
|
|
344
|
-
|
|
345
333
|
return state;
|
|
346
334
|
});
|
|
347
335
|
}
|
|
@@ -374,14 +362,18 @@ function getResolvedLink(
|
|
|
374
362
|
const state = pairs.get();
|
|
375
363
|
const linkKey = getLinkKeyFromTag(tag);
|
|
376
364
|
const group = getGroupKeyFromTag(tag);
|
|
377
|
-
const
|
|
365
|
+
const activeId = group
|
|
366
|
+
? state[pairKey]?.groups?.[group]?.activeId
|
|
367
|
+
: undefined;
|
|
368
|
+
const resolvedLinkKey = activeId ?? linkKey;
|
|
369
|
+
const link = getPairLink(state, pairKey, resolvedLinkKey);
|
|
378
370
|
|
|
379
371
|
// Group active ids can update before the new member has a full source/destination
|
|
380
372
|
// link. As soon as the requested member has source bounds, prefer it; only
|
|
381
373
|
// fall back while the requested member has no source yet.
|
|
382
374
|
if (!group || hasSourceLink(link)) {
|
|
383
375
|
return {
|
|
384
|
-
tag,
|
|
376
|
+
tag: group ? createGroupTag(group, resolvedLinkKey) : tag,
|
|
385
377
|
link,
|
|
386
378
|
};
|
|
387
379
|
}
|
|
@@ -404,34 +396,34 @@ function getResolvedLink(
|
|
|
404
396
|
};
|
|
405
397
|
}
|
|
406
398
|
|
|
407
|
-
function
|
|
399
|
+
function getPairKeyForDestination(
|
|
408
400
|
tag: TagID,
|
|
409
401
|
screenKey: ScreenKey,
|
|
410
402
|
): ScreenPairKey | null {
|
|
411
403
|
"worklet";
|
|
412
404
|
const state = pairs.get();
|
|
413
|
-
const
|
|
405
|
+
const group = getGroupKeyFromTag(tag);
|
|
414
406
|
for (const pairKey in state) {
|
|
415
|
-
|
|
407
|
+
const resolvedLink = getResolvedLink(pairKey, tag).link;
|
|
408
|
+
if (!resolvedLink) continue;
|
|
416
409
|
if (
|
|
417
|
-
|
|
418
|
-
|
|
410
|
+
screenBelongsToScope(
|
|
411
|
+
screenKey,
|
|
412
|
+
getDestinationScreenKeyFromPairKey(pairKey),
|
|
413
|
+
) ||
|
|
414
|
+
resolvedLink.destination?.screenKey === screenKey
|
|
419
415
|
) {
|
|
420
416
|
return pairKey;
|
|
421
417
|
}
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
418
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
if (getResolvedLink(pairKey, tag).link) return pairKey;
|
|
419
|
+
if (!group) continue;
|
|
420
|
+
const links = state[pairKey]?.links;
|
|
421
|
+
for (const linkKey in links) {
|
|
422
|
+
const link = links[linkKey];
|
|
423
|
+
if (link?.group === group && link.destination?.screenKey === screenKey) {
|
|
424
|
+
return pairKey;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
435
427
|
}
|
|
436
428
|
return null;
|
|
437
429
|
}
|
|
@@ -457,10 +449,8 @@ export {
|
|
|
457
449
|
getDestination,
|
|
458
450
|
getLink,
|
|
459
451
|
getPairKeyForDestination,
|
|
460
|
-
getPairKeyForSource,
|
|
461
452
|
getResolvedLink,
|
|
462
453
|
getSource,
|
|
463
|
-
requestSourceMeasure,
|
|
464
454
|
setActiveGroupId,
|
|
465
455
|
setDestination,
|
|
466
456
|
setSource,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BoundsScreenNode, BoundsScreenState, ScreenKey } from "../types";
|
|
2
|
+
import { boundsScreens } from "./state";
|
|
3
|
+
|
|
4
|
+
const MAX_PARENT_DEPTH = 100;
|
|
5
|
+
|
|
6
|
+
export function registerBoundsScreen(
|
|
7
|
+
screenKey: ScreenKey,
|
|
8
|
+
node: BoundsScreenNode,
|
|
9
|
+
) {
|
|
10
|
+
"worklet";
|
|
11
|
+
boundsScreens.modify(<T extends BoundsScreenState>(state: T): T => {
|
|
12
|
+
"worklet";
|
|
13
|
+
(state as BoundsScreenState)[screenKey] = node;
|
|
14
|
+
return state;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function unregisterBoundsScreen(screenKey: ScreenKey) {
|
|
19
|
+
"worklet";
|
|
20
|
+
boundsScreens.modify(<T extends BoundsScreenState>(state: T): T => {
|
|
21
|
+
"worklet";
|
|
22
|
+
delete (state as BoundsScreenState)[screenKey];
|
|
23
|
+
return state;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function screenBelongsToScope(
|
|
28
|
+
screenKey: ScreenKey,
|
|
29
|
+
scopeScreenKey: ScreenKey,
|
|
30
|
+
): boolean {
|
|
31
|
+
"worklet";
|
|
32
|
+
if (screenKey === scopeScreenKey) return true;
|
|
33
|
+
|
|
34
|
+
const screens = boundsScreens.get();
|
|
35
|
+
let parentScreenKey = screens[screenKey]?.parentScreenKey;
|
|
36
|
+
let depth = 0;
|
|
37
|
+
|
|
38
|
+
while (parentScreenKey && depth < MAX_PARENT_DEPTH) {
|
|
39
|
+
if (parentScreenKey === scopeScreenKey) return true;
|
|
40
|
+
parentScreenKey = screens[parentScreenKey]?.parentScreenKey;
|
|
41
|
+
depth += 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { makeMutable } from "react-native-reanimated";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
BoundsScreenState,
|
|
4
|
+
Entry,
|
|
5
|
+
LinkPairsState,
|
|
6
|
+
ScreenKey,
|
|
7
|
+
TagID,
|
|
8
|
+
} from "../types";
|
|
3
9
|
|
|
4
10
|
export type BoundaryEntriesState = Record<
|
|
5
11
|
TagID,
|
|
@@ -31,3 +37,6 @@ export const boundaryRegistry = makeMutable<BoundaryEntriesState>({});
|
|
|
31
37
|
* }
|
|
32
38
|
*/
|
|
33
39
|
export const pairs = makeMutable<LinkPairsState>({});
|
|
40
|
+
|
|
41
|
+
/** Stable ownership graph used to match leaf boundaries to transition roots. */
|
|
42
|
+
export const boundsScreens = makeMutable<BoundsScreenState>({});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
MeasuredDimensions,
|
|
3
|
+
SharedValue,
|
|
4
|
+
StyleProps,
|
|
5
|
+
} from "react-native-reanimated";
|
|
2
6
|
import type { BoundsMethod } from "../../types/bounds.types";
|
|
3
7
|
import type { ScreenKey } from "../../types/screen.types";
|
|
4
8
|
import type {
|
|
@@ -128,6 +132,20 @@ export type LinkPairState = {
|
|
|
128
132
|
links: Record<LinkKey, TagLink>;
|
|
129
133
|
groups: Record<GroupKey, LinkGroupState>;
|
|
130
134
|
sourceRequests?: Record<LinkKey, true>;
|
|
135
|
+
destinationRequests?: Record<LinkKey, true>;
|
|
136
|
+
destinationLinkDemands?: Record<LinkKey, true>;
|
|
137
|
+
destinationGroupDemands?: Record<GroupKey, true>;
|
|
138
|
+
refreshingLinks?: Record<LinkKey, true>;
|
|
139
|
+
blockedDestinations?: Record<LinkKey, true>;
|
|
140
|
+
portalReadySources?: Record<LinkKey, true>;
|
|
131
141
|
};
|
|
132
142
|
|
|
133
143
|
export type LinkPairsState = Record<ScreenPairKey, LinkPairState>;
|
|
144
|
+
|
|
145
|
+
export type BoundsScreenNode = {
|
|
146
|
+
parentScreenKey?: ScreenKey;
|
|
147
|
+
animationProgress: SharedValue<number>;
|
|
148
|
+
pendingLifecycleStartBlockCount: SharedValue<number>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export type BoundsScreenState = Record<ScreenKey, BoundsScreenNode>;
|
|
@@ -384,6 +384,14 @@ export type TransitionInterpolatedStyle = {
|
|
|
384
384
|
* This reserved key is stripped before style slot normalization.
|
|
385
385
|
*/
|
|
386
386
|
options?: TransitionInterpolatorOptions;
|
|
387
|
+
/**
|
|
388
|
+
* Animated style and props for the route-owned floating overlay.
|
|
389
|
+
*
|
|
390
|
+
* Visible overlays form their own adjacency chain. A route that returns this
|
|
391
|
+
* slot controls the previous visible overlay and, when it owns an overlay,
|
|
392
|
+
* its entering overlay.
|
|
393
|
+
*/
|
|
394
|
+
overlay?: TransitionSlotStyle;
|
|
387
395
|
/** Animated style and props for the main screen content view. */
|
|
388
396
|
content?: TransitionSlotStyle;
|
|
389
397
|
/** Animated style and props for the backdrop layer between screens. */
|
|
@@ -51,7 +51,7 @@ export type {
|
|
|
51
51
|
ScrollMetadataState,
|
|
52
52
|
SideActivation,
|
|
53
53
|
} from "./gesture.types";
|
|
54
|
-
export type { OverlayProps } from "./overlay.types";
|
|
54
|
+
export type { OverlayComponent, OverlayProps } from "./overlay.types";
|
|
55
55
|
export type {
|
|
56
56
|
GestureTracking,
|
|
57
57
|
InactiveBehavior,
|
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
ParamListBase,
|
|
3
|
+
ParamListRoute,
|
|
4
|
+
RouteProp,
|
|
5
|
+
} from "@react-navigation/native";
|
|
6
|
+
import type { ReactNode } from "react";
|
|
2
7
|
import type { DerivedValue } from "react-native-reanimated";
|
|
3
8
|
import type { ScreenTransitionConfig } from "./screen.types";
|
|
4
9
|
|
|
5
10
|
/**
|
|
6
|
-
*
|
|
7
|
-
* Generic over the navigation type since different stacks have different navigation props.
|
|
11
|
+
* Overlay state without the animated progress value.
|
|
8
12
|
*/
|
|
13
|
+
export type OverlayScreenState<
|
|
14
|
+
TNavigation = unknown,
|
|
15
|
+
TParamList extends ParamListBase = ParamListBase,
|
|
16
|
+
TOwnerRouteName extends keyof TParamList = keyof TParamList,
|
|
17
|
+
> = Omit<OverlayProps<TNavigation, TParamList, TOwnerRouteName>, "progress"> & {
|
|
18
|
+
snapTo: (index: number) => void;
|
|
19
|
+
};
|
|
20
|
+
|
|
9
21
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
22
|
+
* Props passed to a floating overlay component.
|
|
23
|
+
*
|
|
24
|
+
* `route` and `index` identify the screen that owns the overlay. Focused
|
|
25
|
+
* values may describe a later screen while that overlay remains visible.
|
|
12
26
|
*/
|
|
13
|
-
export type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
export type OverlayProps<
|
|
28
|
+
TNavigation = unknown,
|
|
29
|
+
TParamList extends ParamListBase = ParamListBase,
|
|
30
|
+
TOwnerRouteName extends keyof TParamList = keyof TParamList,
|
|
31
|
+
> = {
|
|
32
|
+
/** Route that declared this overlay. */
|
|
33
|
+
route: RouteProp<TParamList, TOwnerRouteName>;
|
|
34
|
+
|
|
35
|
+
/** Index of the route that declared this overlay. */
|
|
17
36
|
index: number;
|
|
18
|
-
snapTo: (index: number) => void;
|
|
19
|
-
};
|
|
20
37
|
|
|
21
|
-
export type OverlayProps<TNavigation = unknown> = {
|
|
22
38
|
/**
|
|
23
39
|
* Route of the currently focused screen in the stack.
|
|
24
40
|
*/
|
|
25
|
-
focusedRoute:
|
|
41
|
+
focusedRoute: ParamListRoute<TParamList>;
|
|
26
42
|
|
|
27
43
|
/**
|
|
28
44
|
* Index of the focused route in the stack.
|
|
@@ -32,7 +48,7 @@ export type OverlayProps<TNavigation = unknown> = {
|
|
|
32
48
|
/**
|
|
33
49
|
* All routes currently in the stack.
|
|
34
50
|
*/
|
|
35
|
-
routes:
|
|
51
|
+
routes: ParamListRoute<TParamList>[];
|
|
36
52
|
|
|
37
53
|
/**
|
|
38
54
|
* Custom metadata from the focused screen's options.
|
|
@@ -55,3 +71,14 @@ export type OverlayProps<TNavigation = unknown> = {
|
|
|
55
71
|
*/
|
|
56
72
|
progress: DerivedValue<number>;
|
|
57
73
|
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Component rendered for a floating screen overlay.
|
|
77
|
+
*
|
|
78
|
+
* The callback is bivariant because React Navigation stores overlay components
|
|
79
|
+
* in navigator-wide screen options while applications annotate them for one
|
|
80
|
+
* specific route.
|
|
81
|
+
*/
|
|
82
|
+
export type OverlayComponent = {
|
|
83
|
+
bivarianceHack(props: OverlayProps): ReactNode;
|
|
84
|
+
}["bivarianceHack"];
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
GestureProgressMode,
|
|
12
12
|
ScrollMetadataState,
|
|
13
13
|
} from "./gesture.types";
|
|
14
|
-
import type {
|
|
14
|
+
import type { OverlayComponent } from "./overlay.types";
|
|
15
15
|
|
|
16
16
|
export type Layout = {
|
|
17
17
|
width: number;
|
|
@@ -180,6 +180,16 @@ export type ScreenTransitionConfig = {
|
|
|
180
180
|
*/
|
|
181
181
|
screenStyleInterpolator?: ScreenStyleInterpolator;
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Allows this screen's interpolator to keep updating while the screen is
|
|
185
|
+
* inactive. This is useful for flows that intentionally animate screens more
|
|
186
|
+
* than one level behind the active route with values such as `stackProgress`.
|
|
187
|
+
*
|
|
188
|
+
* @experimental This API may change in future versions.
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
experimental_updateInactiveInterpolators?: boolean;
|
|
192
|
+
|
|
183
193
|
/**
|
|
184
194
|
* The Reanimated animation config for opening and closing transitions.
|
|
185
195
|
*/
|
|
@@ -336,7 +346,7 @@ export type ScreenTransitionConfig = {
|
|
|
336
346
|
/**
|
|
337
347
|
* Function that returns a React Element to display as an overlay.
|
|
338
348
|
*/
|
|
339
|
-
overlay?:
|
|
349
|
+
overlay?: OverlayComponent;
|
|
340
350
|
|
|
341
351
|
/**
|
|
342
352
|
* Whether to show the overlay. The overlay is shown by default when `overlay` is provided.
|
|
@@ -66,12 +66,15 @@ const createBoundsAccessorParts = ({
|
|
|
66
66
|
styles: (options?: BoundsComputeOptions): BoundsStyleResult => {
|
|
67
67
|
"worklet";
|
|
68
68
|
// Keep the component at its base layout for pre-animation refresh
|
|
69
|
-
// measurement, then remove generated styles again after settlement.
|
|
70
|
-
|
|
69
|
+
// measurement, then remove generated styles again after settlement. The
|
|
70
|
+
// pre-animation pass still has to reach the bounds coordinator so both
|
|
71
|
+
// endpoints are captured before generated transforms attach.
|
|
72
|
+
const shouldRenderStyles = !!props.active.animating;
|
|
73
|
+
if (!shouldRenderStyles && !props.active.willAnimate) {
|
|
71
74
|
return NO_STYLES;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
const preparedStyles = prepareBoundStyles({
|
|
75
78
|
props,
|
|
76
79
|
options: {
|
|
77
80
|
...options,
|
|
@@ -79,6 +82,8 @@ const createBoundsAccessorParts = ({
|
|
|
79
82
|
group: normalizedIdentity.group,
|
|
80
83
|
},
|
|
81
84
|
}) as BoundsStyleResult;
|
|
85
|
+
|
|
86
|
+
return shouldRenderStyles ? preparedStyles : NO_STYLES;
|
|
82
87
|
},
|
|
83
88
|
values: getValues,
|
|
84
89
|
math: <T extends BoundsComputeOptions = BoundsComputeOptions>(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { requestBoundaryMeasurements } from "../../../stores/bounds/internals/coordinator";
|
|
1
2
|
import {
|
|
2
3
|
getPairKeyForDestination,
|
|
3
4
|
getResolvedLink,
|
|
@@ -7,6 +8,7 @@ import type {
|
|
|
7
8
|
BoundsLink,
|
|
8
9
|
} from "../../../types/bounds.types";
|
|
9
10
|
import type { BoundId } from "../types/options";
|
|
11
|
+
import { resolveBoundsPairKey } from "./resolve-bounds-pair-key";
|
|
10
12
|
|
|
11
13
|
type GetProps = () => BoundsInterpolationProps;
|
|
12
14
|
|
|
@@ -21,6 +23,15 @@ export const createLinkAccessor = (getProps: GetProps): LinkAccessor => {
|
|
|
21
23
|
"worklet";
|
|
22
24
|
const props = getProps();
|
|
23
25
|
const stringTag = String(tag);
|
|
26
|
+
const requestedPairKey = resolveBoundsPairKey(props);
|
|
27
|
+
if (requestedPairKey) {
|
|
28
|
+
requestBoundaryMeasurements({
|
|
29
|
+
pairKey: requestedPairKey,
|
|
30
|
+
tag: stringTag,
|
|
31
|
+
destination: true,
|
|
32
|
+
refresh: !!props.active.willAnimate,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
24
35
|
const destinationScreenKey =
|
|
25
36
|
props.next?.route.key ?? props.current?.route.key;
|
|
26
37
|
const pairKey = destinationScreenKey
|
|
@@ -66,11 +66,12 @@ export const syncActiveGroupId = (params: {
|
|
|
66
66
|
const { props, id, group } = params;
|
|
67
67
|
if (id == null || id === "" || !group) return;
|
|
68
68
|
|
|
69
|
-
const
|
|
69
|
+
const tag = createBoundTag({ id, group });
|
|
70
|
+
const pairKey = tag ? resolveBoundsPairKey(props) : null;
|
|
70
71
|
if (!pairKey) return;
|
|
71
72
|
|
|
72
73
|
const activeId = String(id);
|
|
73
|
-
if (getActiveGroupId(pairKey, group)
|
|
74
|
+
if (getActiveGroupId(pairKey, group) !== null) return;
|
|
74
75
|
|
|
75
76
|
setActiveGroupId(pairKey, group, activeId);
|
|
76
77
|
};
|
|
@@ -9,7 +9,6 @@ export const resolveBoundsPairKey = (
|
|
|
9
9
|
const currentScreenKey = props.current?.route.key;
|
|
10
10
|
const previousScreenKey = props.previous?.route.key;
|
|
11
11
|
const nextScreenKey = props.next?.route.key;
|
|
12
|
-
|
|
13
12
|
if (nextScreenKey && currentScreenKey) {
|
|
14
13
|
return createScreenPairKey(currentScreenKey, nextScreenKey);
|
|
15
14
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
NO_STYLES,
|
|
7
7
|
} from "../../../../constants";
|
|
8
8
|
import { createScreenPairKey } from "../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
9
|
-
import {
|
|
9
|
+
import { requestBoundaryMeasurements } from "../../../../stores/bounds/internals/coordinator";
|
|
10
10
|
import { resolveTransitionPair } from "../../../../stores/bounds/internals/resolver";
|
|
11
11
|
import type { ResolvedTransitionPair } from "../../../../stores/bounds/types";
|
|
12
12
|
import type { ScreenTransitionState } from "../../../../types/animation.types";
|
|
@@ -39,6 +39,7 @@ const resolveStartEnd = (params: {
|
|
|
39
39
|
dimensions: Layout;
|
|
40
40
|
computeOptions: BoundsOptions;
|
|
41
41
|
resolvedPair?: ResolvedTransitionPair;
|
|
42
|
+
refresh: boolean;
|
|
42
43
|
}) => {
|
|
43
44
|
"worklet";
|
|
44
45
|
|
|
@@ -59,6 +60,15 @@ const resolveStartEnd = (params: {
|
|
|
59
60
|
? createScreenPairKey(currentScreenKey, nextScreenKey)
|
|
60
61
|
: null;
|
|
61
62
|
|
|
63
|
+
if (sourceMeasurePairKey) {
|
|
64
|
+
requestBoundaryMeasurements({
|
|
65
|
+
pairKey: sourceMeasurePairKey,
|
|
66
|
+
tag: String(params.id),
|
|
67
|
+
destination: !hasTargetOverride,
|
|
68
|
+
refresh: params.refresh,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
const resolvedPair =
|
|
63
73
|
params.resolvedPair ??
|
|
64
74
|
resolveTransitionPair(String(params.id), {
|
|
@@ -72,10 +82,6 @@ const resolveStartEnd = (params: {
|
|
|
72
82
|
const destinationBounds = resolvedPair.destinationBounds;
|
|
73
83
|
|
|
74
84
|
if (!sourceBounds) {
|
|
75
|
-
if (hasTargetOverride && sourceMeasurePairKey) {
|
|
76
|
-
requestSourceMeasure(sourceMeasurePairKey, String(params.id));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
85
|
return {
|
|
80
86
|
start: null,
|
|
81
87
|
end: null,
|
|
@@ -157,6 +163,7 @@ export const computeBoundStyles = (
|
|
|
157
163
|
computeOptions,
|
|
158
164
|
dimensions,
|
|
159
165
|
resolvedPair,
|
|
166
|
+
refresh: !!interpolationProps?.active?.willAnimate,
|
|
160
167
|
});
|
|
161
168
|
|
|
162
169
|
if (!start || !end) {
|