react-native-screen-transitions 3.12.0 → 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/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 +26 -8
- 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/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 +4 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.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/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/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 +2 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js +19 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/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 +15 -6
- package/lib/commonjs/shared/providers/screen/styles/slot.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/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 +27 -9
- 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/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 +4 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.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/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/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 +2 -1
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js +14 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-block-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/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 +13 -5
- package/lib/module/shared/providers/screen/styles/slot.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/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/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/hooks/use-overlay-slot.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts +651 -703
- 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.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/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/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/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-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 +1 -0
- package/lib/typescript/shared/providers/screen/styles/slot.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/screen.types.d.ts +9 -0
- 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/package.json +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 +68 -20
- 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/providers/helpers/measured-bounds-writes.ts +5 -0
- package/src/shared/providers/screen/animation/animation.provider.tsx +7 -1
- 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/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/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 +1 -0
- package/src/shared/providers/screen/styles/helpers/visibility-block-ownership.ts +16 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +40 -15
- package/src/shared/providers/screen/styles/slot.provider.tsx +19 -5
- 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/screen.types.ts +10 -0
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +8 -3
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +11 -0
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +3 -2
- package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +0 -1
- package/src/shared/utils/bounds/helpers/styles/compute.ts +12 -5
- package/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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_createBoundTag","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getLink","createLinkAccessor","createScopedBounds","identity","props","normalizedIdentity","normalizeBoundIdentity","tag","createBoundTag","syncActiveGroupId","id","group","getValues","options","prepareBoundStyles","raw","scoped","styles","active","animating","NO_STYLES","values","math","link","linkIdentity","linkTag","target","createBoundsAccessorCore","params","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAaA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAcA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sCAAkB,EAACH,QAAQ,CAAC;EAEhD,MAAMI,kBAAkB,GACvBC,QAA6B,IACH;IAC1B,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMO,kBAAkB,GAAG,IAAAC,sCAAsB,EAACH,QAAQ,CAAC;IAC3D,MAAMI,GAAG,GAAG,IAAAC,8BAAc,EAACH,kBAAkB,CAAC;IAC9C,IAAAI,qCAAiB,EAAC;MACjBL,KAAK;MACLM,EAAE,EAAEL,kBAAkB,CAACK,EAAE;MACzBC,KAAK,EAAEN,kBAAkB,CAACM;IAC3B,CAAC,CAAC;IACF,MAAMC,SAAS,GACdC,OAAW,IACgB;MAC3B,SAAS;;MACT,OAAO,IAAAC,sCAAkB,EAAC;QACzBV,KAAK;QACLS,OAAO,EAAE;UACR,GAAGA,OAAO;UACVH,EAAE,EAAEL,kBAAkB,CAACK,EAAE;UACzBC,KAAK,EAAEN,kBAAkB,CAACM,KAAK;UAC/BI,GAAG,EAAE;QACN;MACD,CAAC,CAAC;IACH,CAAC;IAED,MAAMC,MAA4B,GAAG;MACpCC,MAAM,EAAGJ,OAA8B,IAAwB;QAC9D,SAAS;;QACT;QACA;QACA,
|
|
1
|
+
{"version":3,"names":["_constants","require","_createBoundTag","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getLink","createLinkAccessor","createScopedBounds","identity","props","normalizedIdentity","normalizeBoundIdentity","tag","createBoundTag","syncActiveGroupId","id","group","getValues","options","prepareBoundStyles","raw","scoped","styles","shouldRenderStyles","active","animating","willAnimate","NO_STYLES","preparedStyles","values","math","link","linkIdentity","linkTag","target","createBoundsAccessorCore","params","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAaA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAcA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sCAAkB,EAACH,QAAQ,CAAC;EAEhD,MAAMI,kBAAkB,GACvBC,QAA6B,IACH;IAC1B,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMO,kBAAkB,GAAG,IAAAC,sCAAsB,EAACH,QAAQ,CAAC;IAC3D,MAAMI,GAAG,GAAG,IAAAC,8BAAc,EAACH,kBAAkB,CAAC;IAC9C,IAAAI,qCAAiB,EAAC;MACjBL,KAAK;MACLM,EAAE,EAAEL,kBAAkB,CAACK,EAAE;MACzBC,KAAK,EAAEN,kBAAkB,CAACM;IAC3B,CAAC,CAAC;IACF,MAAMC,SAAS,GACdC,OAAW,IACgB;MAC3B,SAAS;;MACT,OAAO,IAAAC,sCAAkB,EAAC;QACzBV,KAAK;QACLS,OAAO,EAAE;UACR,GAAGA,OAAO;UACVH,EAAE,EAAEL,k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D,CAAC;AACF,CAAC;AAEM,MAAM4B,wBAAwB,GACpCC,MAAsC,IAClB;EACpB,SAAS;;EAET,MAAM;IAAE7B;EAAmB,CAAC,GAAGL,yBAAyB,CAACkC,MAAM,CAAC;EAEhE,OAAO7B,kBAAkB;AAC1B,CAAC;AAAC8B,OAAA,CAAAF,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createLinkAccessor = void 0;
|
|
7
|
+
var _coordinator = require("../../../stores/bounds/internals/coordinator");
|
|
7
8
|
var _links = require("../../../stores/bounds/internals/links");
|
|
9
|
+
var _resolveBoundsPairKey = require("./resolve-bounds-pair-key");
|
|
8
10
|
const createLinkAccessor = getProps => {
|
|
9
11
|
"worklet";
|
|
10
12
|
|
|
@@ -13,6 +15,15 @@ const createLinkAccessor = getProps => {
|
|
|
13
15
|
|
|
14
16
|
const props = getProps();
|
|
15
17
|
const stringTag = String(tag);
|
|
18
|
+
const requestedPairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
19
|
+
if (requestedPairKey) {
|
|
20
|
+
(0, _coordinator.requestBoundaryMeasurements)({
|
|
21
|
+
pairKey: requestedPairKey,
|
|
22
|
+
tag: stringTag,
|
|
23
|
+
destination: true,
|
|
24
|
+
refresh: !!props.active.willAnimate
|
|
25
|
+
});
|
|
26
|
+
}
|
|
16
27
|
const destinationScreenKey = props.next?.route.key ?? props.current?.route.key;
|
|
17
28
|
const pairKey = destinationScreenKey ? (0, _links.getPairKeyForDestination)(stringTag, destinationScreenKey) : null;
|
|
18
29
|
if (!pairKey) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_coordinator","require","_links","_resolveBoundsPairKey","createLinkAccessor","getProps","getLink","tag","props","stringTag","String","requestedPairKey","resolveBoundsPairKey","requestBoundaryMeasurements","pairKey","destination","refresh","active","willAnimate","destinationScreenKey","next","route","key","current","getPairKeyForDestination","resolved","getResolvedLink","link","id","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AASA,IAAAE,qBAAA,GAAAF,OAAA;AAQO,MAAMG,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,OAAO,GAAIC,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;IACxB,MAAMI,SAAS,GAAGC,MAAM,CAACH,GAAG,CAAC;IAC7B,MAAMI,gBAAgB,GAAG,IAAAC,0CAAoB,EAACJ,KAAK,CAAC;IACpD,IAAIG,gBAAgB,EAAE;MACrB,IAAAE,wCAA2B,EAAC;QAC3BC,OAAO,EAAEH,gBAAgB;QACzBJ,GAAG,EAAEE,SAAS;QACdM,WAAW,EAAE,IAAI;QACjBC,OAAO,EAAE,CAAC,CAACR,KAAK,CAACS,MAAM,CAACC;MACzB,CAAC,CAAC;IACH;IACA,MAAMC,oBAAoB,GACzBX,KAAK,CAACY,IAAI,EAAEC,KAAK,CAACC,GAAG,IAAId,KAAK,CAACe,OAAO,EAAEF,KAAK,CAACC,GAAG;IAClD,MAAMR,OAAO,GAAGK,oBAAoB,GACjC,IAAAK,+BAAwB,EAACf,SAAS,EAAEU,oBAAoB,CAAC,GACzD,IAAI;IACP,IAAI,CAACL,OAAO,EAAE,OAAO,IAAI;IAEzB,MAAMW,QAAQ,GAAG,IAAAC,sBAAe,EAACZ,OAAO,EAAEL,SAAS,CAAC;IACpD,OAAOgB,QAAQ,CAACE,IAAI,GACjB;MACAC,EAAE,EAAEH,QAAQ,CAAClB,GAAG;MAChB,GAAGkB,QAAQ,CAACE;IACb,CAAC,GACA,IAAI;EACR,CAAC;EAED,OAAO;IACNrB;EACD,CAAC;AACF,CAAC;AAACuB,OAAA,CAAAzB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -42,10 +42,14 @@ const syncActiveGroupId = params => {
|
|
|
42
42
|
group
|
|
43
43
|
} = params;
|
|
44
44
|
if (id == null || id === "" || !group) return;
|
|
45
|
-
const
|
|
45
|
+
const tag = (0, _createBoundTag.createBoundTag)({
|
|
46
|
+
id,
|
|
47
|
+
group
|
|
48
|
+
});
|
|
49
|
+
const pairKey = tag ? (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props) : null;
|
|
46
50
|
if (!pairKey) return;
|
|
47
51
|
const activeId = String(id);
|
|
48
|
-
if ((0, _links.getActiveGroupId)(pairKey, group)
|
|
52
|
+
if ((0, _links.getActiveGroupId)(pairKey, group) !== null) return;
|
|
49
53
|
(0, _links.setActiveGroupId)(pairKey, group, activeId);
|
|
50
54
|
};
|
|
51
55
|
exports.syncActiveGroupId = syncActiveGroupId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","_links","_constants","_createBoundTag","_resolveBoundsPairKey","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","getEntry","resolved","DEFAULT_BOUNDS_OPTIONS","syncActiveGroupId","params","pairKey","resolveBoundsPairKey","activeId","String","getActiveGroupId","setActiveGroupId","exports","prepareBoundStyles","options","resolvedPair","computeBoundStyles","previous","next","progress","dimensions","layouts","screen","interpolationProps"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AAMA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAiBA,MAAMM,kBAAkB,GAAGA,CAAC;EAC3BC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMI,gBAAgB,GAAGN,KAAK,CAACO,OAAO,EAAEC,KAAK,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBN,GAAG,IAAIE,gBAAgB,GACnB,IAAAK,iBAAQ,EAACP,GAAG,EAAEE,gBAAgB,CAAC,EAAEI,cAAc,IAAI,IAAI,GACxD,IAAI;EAER,MAAME,QAAQ,GAAG;IAChB,GAAGC,iCAAsB;IACzB,IAAIH,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIP,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEG,GAAG,IAAI,EAAE;IACbF;EACD,CAAC;EAED,OAAOU,QAAQ;AAChB,CAAC;AAEM,MAAME,iBAAiB,GAAIC,MAIjC,IAAK;EACL,SAAS;;EACT,MAAM;IAAEf,KAAK;IAAEC,EAAE;IAAEC;EAAM,CAAC,GAAGa,MAAM;EACnC,IAAId,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,IAAI,CAACC,KAAK,EAAE;EAEvC,MAAMc,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","_constants","_createBoundTag","_resolveBoundsPairKey","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","getEntry","resolved","DEFAULT_BOUNDS_OPTIONS","syncActiveGroupId","params","pairKey","resolveBoundsPairKey","activeId","String","getActiveGroupId","setActiveGroupId","exports","prepareBoundStyles","options","resolvedPair","computeBoundStyles","previous","next","progress","dimensions","layouts","screen","interpolationProps"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAA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AE,CAAC;EAC3B,IAAI,IAAAmB,uBAAgB,EAACJ,OAAO,EAAEd,KAAK,CAAC,KAAK,IAAI,EAAE;EAE/C,IAAAmB,uBAAgB,EAACL,OAAO,EAAEd,KAAK,EAAEgB,QAAQ,CAAC;AAC3C,CAAC;AAACI,OAAA,CAAAR,iBAAA,GAAAA,iBAAA;AAEK,MAAMS,kBAAkB,GAAGA,CAA0B;EAC3DvB,KAAK;EACLwB,OAAO;EACPC;AACqC,CAAC,KAA6B;EACnE,SAAS;;EAET,MAAMb,QAAQ,GAAGb,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEuB,OAAO,CAACvB,EAAE;IACdC,KAAK,EAAEsB,OAAO,CAACtB,KAAK;IACpBC,SAAS,EAAEqB;EACZ,CAAC,CAAC;EAEF,OAAO,IAAAE,2BAAkB,EACxB;IACCzB,EAAE,EAAEW,QAAQ,CAACX,EAAE;IACf0B,QAAQ,EAAE3B,KAAK,CAAC2B,QAAQ;IACxBpB,OAAO,EAAEP,KAAK,CAACO,OAAO;IACtBqB,IAAI,EAAE5B,KAAK,CAAC4B,IAAI;IAChBC,QAAQ,EAAEjB,QAAQ,CAACiB,QAAQ,IAAI7B,KAAK,CAAC6B,QAAQ;IAC7CC,UAAU,EAAE9B,KAAK,CAAC+B,OAAO,CAACC,MAAM;IAChCC,kBAAkB,EAAEjC;EACrB,CAAC,EACDY,QAAQ,EACRa,YACD,CAAC;AACF,CAAC;AAACH,OAAA,CAAAC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","resolveBoundsPairKey","props","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","next","createScreenPairKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIO,MAAMC,oBAAoB,GAChCC,KAA+B,IACL;EAC1B,SAAS;;EACT,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,OAAO,EAAEC,KAAK,CAACC,GAAG;EACjD,MAAMC,iBAAiB,GAAGL,KAAK,CAACM,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACnD,MAAMG,aAAa,GAAGP,KAAK,CAACQ,IAAI,EAAEL,KAAK,CAACC,GAAG;
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","resolveBoundsPairKey","props","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","next","createScreenPairKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIO,MAAMC,oBAAoB,GAChCC,KAA+B,IACL;EAC1B,SAAS;;EACT,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,OAAO,EAAEC,KAAK,CAACC,GAAG;EACjD,MAAMC,iBAAiB,GAAGL,KAAK,CAACM,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACnD,MAAMG,aAAa,GAAGP,KAAK,CAACQ,IAAI,EAAEL,KAAK,CAACC,GAAG;EAC3C,IAAIG,aAAa,IAAIN,gBAAgB,EAAE;IACtC,OAAO,IAAAQ,8BAAmB,EAACR,gBAAgB,EAAEM,aAAa,CAAC;EAC5D;EAEA,IAAIF,iBAAiB,IAAIJ,gBAAgB,EAAE;IAC1C,OAAO,IAAAQ,8BAAmB,EAACJ,iBAAiB,EAAEJ,gBAAgB,CAAC;EAChE;EAEA,OAAO,IAAI;AACZ,CAAC;AAACS,OAAA,CAAAX,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.computeBoundStyles = void 0;
|
|
7
7
|
var _constants = require("../../../../constants");
|
|
8
8
|
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
9
|
-
var
|
|
9
|
+
var _coordinator = require("../../../../stores/bounds/internals/coordinator");
|
|
10
10
|
var _resolver = require("../../../../stores/bounds/internals/resolver");
|
|
11
11
|
var _geometry = require("../geometry");
|
|
12
12
|
var _composers = require("./composers");
|
|
@@ -23,6 +23,14 @@ const resolveStartEnd = params => {
|
|
|
23
23
|
const previousScreenKey = params.previous?.route.key;
|
|
24
24
|
const nextScreenKey = params.next?.route.key;
|
|
25
25
|
const sourceMeasurePairKey = entering && previousScreenKey && currentScreenKey ? (0, _linkPairs.createScreenPairKey)(previousScreenKey, currentScreenKey) : !entering && currentScreenKey && nextScreenKey ? (0, _linkPairs.createScreenPairKey)(currentScreenKey, nextScreenKey) : null;
|
|
26
|
+
if (sourceMeasurePairKey) {
|
|
27
|
+
(0, _coordinator.requestBoundaryMeasurements)({
|
|
28
|
+
pairKey: sourceMeasurePairKey,
|
|
29
|
+
tag: String(params.id),
|
|
30
|
+
destination: !hasTargetOverride,
|
|
31
|
+
refresh: params.refresh
|
|
32
|
+
});
|
|
33
|
+
}
|
|
26
34
|
const resolvedPair = params.resolvedPair ?? (0, _resolver.resolveTransitionPair)(String(params.id), {
|
|
27
35
|
currentScreenKey,
|
|
28
36
|
previousScreenKey,
|
|
@@ -32,9 +40,6 @@ const resolveStartEnd = params => {
|
|
|
32
40
|
const sourceBounds = resolvedPair.sourceBounds;
|
|
33
41
|
const destinationBounds = resolvedPair.destinationBounds;
|
|
34
42
|
if (!sourceBounds) {
|
|
35
|
-
if (hasTargetOverride && sourceMeasurePairKey) {
|
|
36
|
-
(0, _links.requestSourceMeasure)(sourceMeasurePairKey, String(params.id));
|
|
37
|
-
}
|
|
38
43
|
return {
|
|
39
44
|
start: null,
|
|
40
45
|
end: null,
|
|
@@ -107,7 +112,8 @@ const computeBoundStyles = ({
|
|
|
107
112
|
next,
|
|
108
113
|
computeOptions,
|
|
109
114
|
dimensions,
|
|
110
|
-
resolvedPair
|
|
115
|
+
resolvedPair,
|
|
116
|
+
refresh: !!interpolationProps?.active?.willAnimate
|
|
111
117
|
});
|
|
112
118
|
if (!start || !end) {
|
|
113
119
|
return _constants.NO_STYLES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_linkPairs","
|
|
1
|
+
{"version":3,"names":["_constants","require","_linkPairs","_coordinator","_resolver","_geometry","_composers","_localTransform","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","sourceMeasurePairKey","createScreenPairKey","requestBoundaryMeasurements","pairKey","tag","String","id","destination","refresh","resolvedPair","resolveTransitionPair","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","interpolationProps","NO_STYLES","active","willAnimate","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","style","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","attachBoundsLocalTransform","destinationStyles","sourceStyles","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AASA,IAAAI,SAAA,GAAAJ,OAAA;AAIA,IAAAK,UAAA,GAAAL,OAAA;AAQA,IAAAM,eAAA,GAAAN,OAAA;AAEA,MAAMO,eAAe,GAAIC,MAUxB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM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AAMG,MAA4B,GAAG;IACpCxB,KAAK;IACLC,GAAG;IACHK,QAAQ;IACRK,MAAM;IACNO,QAAQ;IACR1C,cAAc;IACd+B;EACD,CAAC;EAED,MAAMkB,MAAM,GAAGjD,cAAc,CAACsC,MAAM,KAAK,MAAM;EAC/C,MAAMY,UAAU,GAAGlD,cAAc,CAACmD,KAAK,KAAK,UAAU;EAEtD,MAAMC,KAAK,GAAGH,MAAM,GACjBC,UAAU,GACT,IAAAG,8BAAmB,EAACL,MAAM,CAAC,GAC3B,IAAAM,8BAAmB,EAACN,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAK,mCAAwB,EAACP,MAAM,CAAC,GAChC,IAAAQ,mCAAwB,EAACR,MAAM,CAAC;EAEpC,OAAO,IAAAS,0CAA0B,EAChCL,KAAK,EACL1D,QAAQ,GACJ0B,YAAY,EAAEsC,iBAAiB,IAAI,IAAI,GACvCtC,YAAY,EAAEuC,YAAY,IAAI,IACnC,CAAC;AACF,CAAC;AAACC,OAAA,CAAA/B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -61,7 +61,7 @@ export const ActivityScreen = /*#__PURE__*/memo(function ActivityScreen({
|
|
|
61
61
|
if (!paintDriverAnimations) {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
|
-
return paintDriverAnimations.
|
|
64
|
+
return paintDriverAnimations.visualProgress.get() >= 1;
|
|
65
65
|
});
|
|
66
66
|
const isPaintDriverSettledOnJS = useSharedValueState(isPaintDriverSettled);
|
|
67
67
|
let activityState = ActivityStateByActivity[resolvedActivity];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","StyleSheet","View","useDerivedValue","Screen","IS_WEB","useStack","useSharedValueState","useBlankStackStore","AnimationStore","DEFAULT_INACTIVE_BEHAVIOR","jsx","_jsx","ActivityStateByActivity","active","inert","inactive","closing","PointerEventsByActivity","ActivityScreen","activity","children","inactiveBehavior","paintDriverRouteKey","hasNestedState","routeKey","stackActivity","store","scenesByKey","undefined","stackInactiveBehavior","descriptor","options","stackRoute","route","stackPaintDriverRouteKey","routeIndex","routeKeys","indexOf","resolvedActivity","resolvedInactiveBehavior","resolvedPaintDriverRouteKey","resolvedHasNestedState","nativeScreenDisabled","s","flags","DISABLE_NATIVE_SCREENS","paintDriverAnimations","getBag","isPaintDriverSettled","
|
|
1
|
+
{"version":3,"names":["memo","StyleSheet","View","useDerivedValue","Screen","IS_WEB","useStack","useSharedValueState","useBlankStackStore","AnimationStore","DEFAULT_INACTIVE_BEHAVIOR","jsx","_jsx","ActivityStateByActivity","active","inert","inactive","closing","PointerEventsByActivity","ActivityScreen","activity","children","inactiveBehavior","paintDriverRouteKey","hasNestedState","routeKey","stackActivity","store","scenesByKey","undefined","stackInactiveBehavior","descriptor","options","stackRoute","route","stackPaintDriverRouteKey","routeIndex","routeKeys","indexOf","resolvedActivity","resolvedInactiveBehavior","resolvedPaintDriverRouteKey","resolvedHasNestedState","nativeScreenDisabled","s","flags","DISABLE_NATIVE_SCREENS","paintDriverAnimations","getBag","isPaintDriverSettled","visualProgress","get","isPaintDriverSettledOnJS","activityState","shouldFreeze","visible","shouldWaitForPaintDriver","shouldUnmount","pointerEvents","style","absoluteFill","styles","hidden","collapsable","HIDDEN_SCREEN_OFFSET","create","transform","translateY"],"sourceRoot":"../../../../../../src","sources":["shared/components/activity/variants/activity-screen.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/D,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,QAAQ,QAAQ,qCAAqC;AAC9D,SAASC,mBAAmB,QAAQ,kDAAkD;AACtF,SAASC,kBAAkB,QAAQ,+CAA+C;AAClF,SAASC,cAAc,QAAQ,iCAAiC;AAEhE,SAASC,yBAAyB,QAA+B,YAAY;AAAC,SAAA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
|
import { memo } from "react";
|
|
4
|
-
import { useDescriptorsStore } from "../../../providers/screen/descriptors";
|
|
5
4
|
import { useBoundaryMeasurement } from "../hooks/use-boundary-measurement";
|
|
6
5
|
export const BoundaryLifecycle = /*#__PURE__*/memo(function BoundaryLifecycle({
|
|
7
6
|
boundTag,
|
|
@@ -14,11 +13,9 @@ export const BoundaryLifecycle = /*#__PURE__*/memo(function BoundaryLifecycle({
|
|
|
14
13
|
measuredRef,
|
|
15
14
|
style
|
|
16
15
|
}) {
|
|
17
|
-
const hasConfiguredInterpolator = useDescriptorsStore(s => s.derivations.hasConfiguredInterpolator);
|
|
18
16
|
useBoundaryMeasurement({
|
|
19
17
|
boundTag,
|
|
20
18
|
enabled,
|
|
21
|
-
runtimeEnabled: enabled && hasConfiguredInterpolator,
|
|
22
19
|
currentScreenKey,
|
|
23
20
|
measuredRef,
|
|
24
21
|
style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","
|
|
1
|
+
{"version":3,"names":["memo","useBoundaryMeasurement","BoundaryLifecycle","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAI5B,SAASC,sBAAsB,QAAQ,mCAAmC;AAkB1E,OAAO,MAAMC,iBAAiB,gBAAGF,IAAI,CAAC,SAASE,iBAAiBA,CAAC;EAChEC,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1BV,sBAAsB,CAAC;IACtBE,QAAQ;IACRG,OAAO;IACPD,gBAAgB;IAChBK,WAAW;IACXC,KAAK;IACLH,OAAO;IACPD,cAAc;IACdE,gBAAgB;IAChBL;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect } from "react";
|
|
4
|
+
import { cancelAnimation, useAnimatedReaction, useSharedValue, withDelay, withTiming } from "react-native-reanimated";
|
|
5
|
+
import { abandonBoundaryMeasurement, getBoundaryMeasurementRequest } from "../../../../stores/bounds/internals/coordinator";
|
|
6
|
+
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
7
|
+
import { logger } from "../../../../utils/logger";
|
|
8
|
+
const RETRY_DELAY_MS = 16;
|
|
9
|
+
const MAX_RETRIES = 20;
|
|
10
|
+
export const useBoundaryMeasurementRequest = params => {
|
|
11
|
+
const {
|
|
12
|
+
enabled,
|
|
13
|
+
boundTag,
|
|
14
|
+
currentScreenKey,
|
|
15
|
+
measureBoundary
|
|
16
|
+
} = params;
|
|
17
|
+
const retryClock = useSharedValue(0);
|
|
18
|
+
const fulfillRequest = useCallback(function retry(request, attempt) {
|
|
19
|
+
"worklet";
|
|
20
|
+
|
|
21
|
+
if (!enabled) return;
|
|
22
|
+
const pending = getBoundaryMeasurementRequest(boundTag.tag, currentScreenKey, pairs.get());
|
|
23
|
+
if (pending?.type !== request.type || pending.pairKey !== request.pairKey) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (measureBoundary(request)) return;
|
|
27
|
+
if (attempt >= MAX_RETRIES) {
|
|
28
|
+
abandonBoundaryMeasurement({
|
|
29
|
+
...request,
|
|
30
|
+
tag: boundTag.tag
|
|
31
|
+
});
|
|
32
|
+
logger.warn(`Boundary "${boundTag.tag}" on screen "${currentScreenKey}" could not complete its ${request.type} measurement after ${MAX_RETRIES} attempts; continuing without it.`);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
cancelAnimation(retryClock);
|
|
36
|
+
retryClock.set(withDelay(RETRY_DELAY_MS, withTiming(retryClock.get() + 1, {
|
|
37
|
+
duration: 0
|
|
38
|
+
}, finished => {
|
|
39
|
+
if (finished) retry(request, attempt + 1);
|
|
40
|
+
})));
|
|
41
|
+
}, [boundTag.tag, currentScreenKey, enabled, measureBoundary, retryClock]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
return () => {
|
|
44
|
+
cancelAnimation(retryClock);
|
|
45
|
+
};
|
|
46
|
+
}, [retryClock]);
|
|
47
|
+
useAnimatedReaction(() => {
|
|
48
|
+
"worklet";
|
|
49
|
+
|
|
50
|
+
if (!enabled) return null;
|
|
51
|
+
// Read the mutable in the reaction itself. Hiding this read behind an
|
|
52
|
+
// imported helper prevented the mapper from subscribing to pair changes,
|
|
53
|
+
// so requests were only observed after a React refresh/remount.
|
|
54
|
+
return getBoundaryMeasurementRequest(boundTag.tag, currentScreenKey, pairs.get());
|
|
55
|
+
}, (request, previousRequest) => {
|
|
56
|
+
"worklet";
|
|
57
|
+
|
|
58
|
+
if (!request || request.type === previousRequest?.type && request.pairKey === previousRequest.pairKey) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
fulfillRequest(request, 0);
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=use-boundary-measurement-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","cancelAnimation","useAnimatedReaction","useSharedValue","withDelay","withTiming","abandonBoundaryMeasurement","getBoundaryMeasurementRequest","pairs","logger","RETRY_DELAY_MS","MAX_RETRIES","useBoundaryMeasurementRequest","params","enabled","boundTag","currentScreenKey","measureBoundary","retryClock","fulfillRequest","retry","request","attempt","pending","tag","get","type","pairKey","warn","set","duration","finished","previousRequest"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-boundary-measurement-request.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SACCC,eAAe,EACfC,mBAAmB,EACnB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G,CAAC,CAAC,GAAG,CAAC,EAAE;MAAEK,QAAQ,EAAE;IAAE,CAAC,EAAGC,QAAQ,IAAK;MAC/D,IAAIA,QAAQ,EAAEX,KAAK,CAACC,OAAO,EAAEC,OAAO,GAAG,CAAC,CAAC;IAC1C,CAAC,CACF,CACD,CAAC;EACF,CAAC,EACD,CAACP,QAAQ,CAACS,GAAG,EAAER,gBAAgB,EAAEF,OAAO,EAAEG,eAAe,EAAEC,UAAU,CACtE,CAAC;EAEDlB,SAAS,CAAC,MAAM;IACf,OAAO,MAAM;MACZC,eAAe,CAACiB,UAAU,CAAC;IAC5B,CAAC;EACF,CAAC,EAAE,CAACA,UAAU,CAAC,CAAC;EAEhBhB,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACY,OAAO,EAAE,OAAO,IAAI;IACzB;IACA;IACA;IACA,OAAOP,6BAA6B,CACnCQ,QAAQ,CAACS,GAAG,EACZR,gBAAgB,EAChBR,KAAK,CAACiB,GAAG,CAAC,CACX,CAAC;EACF,CAAC,EACD,CAACJ,OAAO,EAAEW,eAAe,KAAK;IAC7B,SAAS;;IACT,IACC,CAACX,OAAO,IACPA,OAAO,CAACK,IAAI,KAAKM,eAAe,EAAEN,IAAI,IACtCL,OAAO,CAACM,OAAO,KAAKK,eAAe,CAACL,OAAQ,EAC5C;MACD;IACD;IAEAR,cAAc,CAACE,OAAO,EAAE,CAAC,CAAC;EAC3B,CACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useLayoutEffect } from "react";
|
|
4
4
|
import { runOnUI } from "react-native-reanimated";
|
|
5
|
-
import {
|
|
5
|
+
import { registerBoundary, unregisterBoundary } from "../../../../stores/bounds/internals/coordinator";
|
|
6
6
|
export const useBoundaryPresence = params => {
|
|
7
7
|
const {
|
|
8
8
|
enabled,
|
|
@@ -12,19 +12,20 @@ export const useBoundaryPresence = params => {
|
|
|
12
12
|
handoff,
|
|
13
13
|
escapeClipping
|
|
14
14
|
} = params;
|
|
15
|
-
const {
|
|
16
|
-
tag
|
|
17
|
-
} = boundTag;
|
|
18
15
|
useLayoutEffect(() => {
|
|
19
16
|
if (!enabled) return;
|
|
20
|
-
runOnUI(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
runOnUI(registerBoundary)({
|
|
18
|
+
boundTag,
|
|
19
|
+
screenKey: currentScreenKey,
|
|
20
|
+
entry: {
|
|
21
|
+
boundaryConfig,
|
|
22
|
+
handoff: handoff ? true : null,
|
|
23
|
+
escapeClipping: escapeClipping ? true : null
|
|
24
|
+
}
|
|
24
25
|
});
|
|
25
26
|
return () => {
|
|
26
|
-
runOnUI(
|
|
27
|
+
runOnUI(unregisterBoundary)(boundTag, currentScreenKey);
|
|
27
28
|
};
|
|
28
|
-
}, [enabled,
|
|
29
|
+
}, [enabled, boundTag, currentScreenKey, boundaryConfig, handoff, escapeClipping]);
|
|
29
30
|
};
|
|
30
31
|
//# sourceMappingURL=use-boundary-presence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","runOnUI","
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","runOnUI","registerBoundary","unregisterBoundary","useBoundaryPresence","params","enabled","boundTag","currentScreenKey","boundaryConfig","handoff","escapeClipping","screenKey","entry"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AACvC,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SACCC,gBAAgB,EAChBC,kBAAkB,QACZ,iDAAiD;AAIxD,OAAO,MAAMC,mBAAmB,GAAIC,MAOnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,cAAc;IACdC,OAAO;IACPC;EACD,CAAC,GAAGN,MAAM;EACVL,eAAe,CAAC,MAAM;IACrB,IAAI,CAACM,OAAO,EAAE;IAEdL,OAAO,CAACC,gBAAgB,CAAC,CAAC;MACzBK,QAAQ;MACRK,SAAS,EAAEJ,gBAAgB;MAC3BK,KAAK,EAAE;QACNJ,cAAc;QACdC,OAAO,EAAEA,OAAO,GAAG,IAAI,GAAG,IAAI;QAC9BC,cAAc,EAAEA,cAAc,GAAG,IAAI,GAAG;MACzC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZV,OAAO,CAACE,kBAAkB,CAAC,CAACI,QAAQ,EAAEC,gBAAgB,CAAC;IACxD,CAAC;EACF,CAAC,EAAE,CACFF,OAAO,EACPC,QAAQ,EACRC,gBAAgB,EAChBC,cAAc,EACdC,OAAO,EACPC,cAAc,CACd,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
5
|
+
import { useBoundaryMeasurementRequest } from "./lifecycles/use-boundary-measurement-request";
|
|
5
6
|
import { useBoundaryPresence } from "./lifecycles/use-boundary-presence";
|
|
6
|
-
import { useInitialDestinationMeasurement } from "./lifecycles/use-initial-destination-measurement";
|
|
7
|
-
import { useInitialSourceMeasurement } from "./lifecycles/use-initial-source-measurement";
|
|
8
|
-
import { useRefreshBoundary } from "./lifecycles/use-refresh-boundary";
|
|
9
7
|
import { useMeasurer } from "./use-measurer";
|
|
10
8
|
/**
|
|
11
9
|
* Owns the full measurement lifecycle for a boundary: builds the measurer,
|
|
@@ -15,7 +13,6 @@ import { useMeasurer } from "./use-measurer";
|
|
|
15
13
|
export const useBoundaryMeasurement = ({
|
|
16
14
|
boundTag,
|
|
17
15
|
enabled,
|
|
18
|
-
runtimeEnabled,
|
|
19
16
|
currentScreenKey,
|
|
20
17
|
measuredRef,
|
|
21
18
|
style,
|
|
@@ -47,10 +44,6 @@ export const useBoundaryMeasurement = ({
|
|
|
47
44
|
escapeClipping,
|
|
48
45
|
localMeasurement
|
|
49
46
|
});
|
|
50
|
-
|
|
51
|
-
// Presence and source capture must not depend on this screen owning an
|
|
52
|
-
// interpolator: a nested source can participate in a transition owned by a
|
|
53
|
-
// different navigator.
|
|
54
47
|
useBoundaryPresence({
|
|
55
48
|
enabled,
|
|
56
49
|
boundTag,
|
|
@@ -59,19 +52,10 @@ export const useBoundaryMeasurement = ({
|
|
|
59
52
|
handoff,
|
|
60
53
|
escapeClipping
|
|
61
54
|
});
|
|
62
|
-
|
|
55
|
+
useBoundaryMeasurementRequest({
|
|
63
56
|
enabled,
|
|
64
|
-
measureBoundary,
|
|
65
|
-
boundTag
|
|
66
|
-
});
|
|
67
|
-
useInitialDestinationMeasurement({
|
|
68
|
-
boundTag,
|
|
69
|
-
enabled: runtimeEnabled,
|
|
70
|
-
measureBoundary
|
|
71
|
-
});
|
|
72
|
-
useRefreshBoundary({
|
|
73
|
-
enabled: runtimeEnabled,
|
|
74
57
|
boundTag,
|
|
58
|
+
currentScreenKey,
|
|
75
59
|
measureBoundary
|
|
76
60
|
});
|
|
77
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","prepareStyleForBounds","
|
|
1
|
+
{"version":3,"names":["useMemo","prepareStyleForBounds","useBoundaryMeasurementRequest","useBoundaryPresence","useMeasurer","useBoundaryMeasurement","boundTag","enabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","localMeasurement","config","anchor","scaleMode","target","method","boundaryConfig","preparedStyles","measureBoundary","measuredAnimatedRef"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAI/B,SAASC,qBAAqB,QAAQ,6CAA6C;AAKnF,SAASC,6BAA6B,QAAQ,+CAA+C;AAC7F,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,WAAW,QAAQ,gBAAgB;AAiB5C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EACtCC,QAAQ;EACRC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC,KAAK;EACLC,OAAO;EACPC,cAAc;EACdC,gBAAgB;EAChBC;AAC6B,CAAC,KAAK;EACnC,MAAM;IAAEC,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,MAAM;EACpD,MAAMK,cAAc,GAAGnB,OAAO,CAC7B,OAAO;IAAEe,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,CAAC,EAC7C,CAACH,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,CACnC,CAAC;EAED,MAAME,cAAc,GAAGpB,OAAO,CAAC,MAAMC,qBAAqB,CAACS,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMW,eAAe,GAAGjB,WAAW,CAAC;IACnCG,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBY,cAAc;IACdE,mBAAmB,EAAEb,WAAW;IAChCE,OAAO;IACPC,cAAc;IACdC;EACD,CAAC,CAAC;EAEFV,mBAAmB,CAAC;IACnBI,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBW,cAAc;IACdR,OAAO;IACPC;EACD,CAAC,CAAC;EAEFV,6BAA6B,CAAC;IAC7BK,OAAO;IACPD,QAAQ;IACRE,gBAAgB;IAChBa;EACD,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { useWindowDimensions } from "react-native";
|
|
|
5
5
|
import { applyMeasuredBoundsWrites } from "../../../providers/helpers/measured-bounds-writes";
|
|
6
6
|
import { useScreenSlots } from "../../../providers/screen/styles";
|
|
7
7
|
import { ScrollStore } from "../../../stores/scroll.store";
|
|
8
|
-
import { SystemStore } from "../../../stores/system.store";
|
|
9
8
|
import { getVisibilityBlockOffset } from "../../../utils/visibility-block-offset";
|
|
10
9
|
import { attachScrollSnapshotToMeasuredBounds, correctMeasuredBoundsForVisibilityGate, isMeasurementInViewport, measureWithOverscrollAwareness } from "../utils/measured-bounds";
|
|
11
10
|
export const useMeasurer = ({
|
|
@@ -24,16 +23,15 @@ export const useMeasurer = ({
|
|
|
24
23
|
} = useWindowDimensions();
|
|
25
24
|
const scrollState = ScrollStore.getValue(currentScreenKey, "coordination");
|
|
26
25
|
const scrollMetadata = ScrollStore.getValue(currentScreenKey, "metadata");
|
|
27
|
-
const pendingLifecycleStartBlockCount = SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
28
26
|
const {
|
|
29
27
|
visibilityBlocked
|
|
30
28
|
} = useScreenSlots();
|
|
31
29
|
return useCallback(target => {
|
|
32
30
|
"worklet";
|
|
33
31
|
|
|
34
|
-
if (!enabled) return;
|
|
32
|
+
if (!enabled) return false;
|
|
35
33
|
const measured = measureWithOverscrollAwareness(measuredAnimatedRef, scrollState.get());
|
|
36
|
-
if (!measured) return;
|
|
34
|
+
if (!measured) return false;
|
|
37
35
|
const correctedMeasured = correctMeasuredBoundsForVisibilityGate({
|
|
38
36
|
measured,
|
|
39
37
|
visibilityBlocked: visibilityBlocked.get(),
|
|
@@ -47,17 +45,8 @@ export const useMeasurer = ({
|
|
|
47
45
|
pairKey: target.pairKey
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
* - Destination Pass -
|
|
53
|
-
* Be strict while lifecycle start is blocked for destination capture.
|
|
54
|
-
* This is the initial attach window: the transition has not started yet,
|
|
55
|
-
* and malformed off-screen destination measurements should keep the
|
|
56
|
-
* lifecycle blocked until a valid retry lands.
|
|
57
|
-
*/
|
|
58
|
-
const shouldGuardDestinationViewport = pendingLifecycleStartBlockCount.get() > 0 || !!boundTag.group;
|
|
59
|
-
const viewportAllowsDestinationWrite = target.type !== "destination" || !shouldGuardDestinationViewport || isMeasurementInViewport(correctedMeasured, viewportWidth, viewportHeight);
|
|
60
|
-
if (!viewportAllowsDestinationWrite) return;
|
|
48
|
+
const viewportAllowsDestinationWrite = target.type !== "destination" || isMeasurementInViewport(correctedMeasured, viewportWidth, viewportHeight);
|
|
49
|
+
if (!viewportAllowsDestinationWrite) return false;
|
|
61
50
|
const measuredWithScroll = attachScrollSnapshotToMeasuredBounds(correctedMeasured, scrollMetadata.get());
|
|
62
51
|
applyMeasuredBoundsWrites({
|
|
63
52
|
entryTag: boundTag.tag,
|
|
@@ -70,6 +59,7 @@ export const useMeasurer = ({
|
|
|
70
59
|
handoff,
|
|
71
60
|
escapeClipping
|
|
72
61
|
});
|
|
73
|
-
|
|
62
|
+
return true;
|
|
63
|
+
}, [enabled, boundTag, currentScreenKey, preparedStyles, measuredAnimatedRef, handoff, escapeClipping, localMeasurement, viewportWidth, viewportHeight, scrollState, scrollMetadata, visibilityBlocked]);
|
|
74
64
|
};
|
|
75
65
|
//# sourceMappingURL=use-measurer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useWindowDimensions","applyMeasuredBoundsWrites","useScreenSlots","ScrollStore","
|
|
1
|
+
{"version":3,"names":["useCallback","useWindowDimensions","applyMeasuredBoundsWrites","useScreenSlots","ScrollStore","getVisibilityBlockOffset","attachScrollSnapshotToMeasuredBounds","correctMeasuredBoundsForVisibilityGate","isMeasurementInViewport","measureWithOverscrollAwareness","useMeasurer","enabled","boundTag","currentScreenKey","preparedStyles","measuredAnimatedRef","handoff","escapeClipping","localMeasurement","width","viewportWidth","height","viewportHeight","scrollState","getValue","scrollMetadata","visibilityBlocked","target","measured","get","correctedMeasured","visibilityBlockOffset","type","set","bounds","pairKey","viewportAllowsDestinationWrite","measuredWithScroll","entryTag","tag","linkId","linkKey","group","linkWrite"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-measurer.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAEnC,SAASC,mBAAmB,QAAQ,cAAc;AAElD,SAASC,yBAAyB,QAAQ,mDAAmD;AA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,QAAQ;QAChBO,OAAO,EAAER,MAAM,CAACQ;MACjB,CAAC,CAAC;IACH;IAEA,MAAMC,8BAA8B,GACnCT,MAAM,CAACK,IAAI,KAAK,aAAa,IAC7BxB,uBAAuB,CACtBsB,iBAAiB,EACjBV,aAAa,EACbE,cACD,CAAC;IAEF,IAAI,CAACc,8BAA8B,EAAE,OAAO,KAAK;IAEjD,MAAMC,kBAAkB,GAAG/B,oCAAoC,CAC9DwB,iBAAiB,EACjBL,cAAc,CAACI,GAAG,CAAC,CACpB,CAAC;IAED3B,yBAAyB,CAAC;MACzBoC,QAAQ,EAAE1B,QAAQ,CAAC2B,GAAG;MACtBC,MAAM,EAAE5B,QAAQ,CAAC6B,OAAO;MACxBC,KAAK,EAAE9B,QAAQ,CAAC8B,KAAK;MACrB7B,gBAAgB;MAChBe,QAAQ,EAAES,kBAAkB;MAC5BvB,cAAc;MACd6B,SAAS,EAAEhB,MAAM;MACjBX,OAAO;MACPC;IACD,CAAC,CAAC;IAEF,OAAO,IAAI;EACZ,CAAC,EACD,CACCN,OAAO,EACPC,QAAQ,EACRC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,EACnBC,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBE,aAAa,EACbE,cAAc,EACdC,WAAW,EACXE,cAAc,EACdC,iBAAiB,CAEnB,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
export const hasNestedHandoffTopology = ({
|
|
4
|
+
inheritedSourcePair,
|
|
5
|
+
pairDestinationScreenKey,
|
|
6
|
+
transitionDestinationScreenKey
|
|
7
|
+
}) => {
|
|
8
|
+
"worklet";
|
|
9
|
+
|
|
10
|
+
return inheritedSourcePair || !!pairDestinationScreenKey && pairDestinationScreenKey !== transitionDestinationScreenKey;
|
|
11
|
+
};
|
|
3
12
|
export const resolveActiveHandoffReceiver = ({
|
|
4
13
|
focusedIndex,
|
|
5
14
|
routes,
|
|
@@ -57,4 +66,19 @@ export const resolveHandoffAttachmentCandidate = ({
|
|
|
57
66
|
}
|
|
58
67
|
return activeReceiverScreenKey;
|
|
59
68
|
};
|
|
69
|
+
export const resolveNestedHandoffAttachmentCandidate = ({
|
|
70
|
+
attachedReceiverScreenKey,
|
|
71
|
+
currentScreenKey,
|
|
72
|
+
hasActiveCloseFinished,
|
|
73
|
+
interpolatorReady,
|
|
74
|
+
pairDestinationScreenKey
|
|
75
|
+
}) => {
|
|
76
|
+
"worklet";
|
|
77
|
+
|
|
78
|
+
if (hasActiveCloseFinished) return currentScreenKey;
|
|
79
|
+
if (interpolatorReady && pairDestinationScreenKey) {
|
|
80
|
+
return pairDestinationScreenKey;
|
|
81
|
+
}
|
|
82
|
+
return attachedReceiverScreenKey;
|
|
83
|
+
};
|
|
60
84
|
//# sourceMappingURL=active-handoff-receiver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","
|
|
1
|
+
{"version":3,"names":["hasNestedHandoffTopology","inheritedSourcePair","pairDestinationScreenKey","transitionDestinationScreenKey","resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","previousReceiverScreenKey","resolveNestedHandoffAttachmentCandidate","currentScreenKey"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;AAeA,OAAO,MAAMA,wBAAwB,GAAGA,CAAC;EACxCC,m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