react-native-screen-transitions 3.8.0 → 3.9.0-alpha.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 +2 -1
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +10 -24
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js +115 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +26 -22
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
- package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/index.js +8 -1
- package/lib/commonjs/shared/components/boundary/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/host.js +99 -0
- package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +68 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js +17 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +195 -0
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +74 -0
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/index.js +27 -0
- package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js +47 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +137 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +60 -0
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +40 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +15 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +71 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +16 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.js +26 -25
- package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/types.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +25 -0
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -0
- package/lib/commonjs/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +19 -9
- package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +105 -0
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js +48 -0
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -3
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
- package/lib/commonjs/shared/components/masked-view.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js +9 -5
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +6 -6
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/index.js +4 -4
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -2
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +7 -3
- 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 +8 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +21 -6
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/origin.provider.js +41 -0
- package/lib/commonjs/shared/providers/screen/origin.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +58 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +7 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +7 -5
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -10
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +36 -19
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +6 -4
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +54 -1
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +38 -4
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +40 -87
- 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 +6 -67
- 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 +8 -12
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +235 -68
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +74 -4
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +5 -9
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +5 -10
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/blank-stack/components/stack-view.js +3 -2
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +11 -25
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js +110 -0
- package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
- package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +27 -23
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
- package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/index.js +8 -1
- package/lib/module/shared/components/boundary/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/host.js +94 -0
- package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +63 -0
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/portal-provider.js +13 -0
- package/lib/module/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/portal.js +190 -0
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +69 -0
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/index.js +6 -0
- package/lib/module/shared/components/boundary/portal/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js +40 -0
- package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +126 -0
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +53 -0
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/attachment.js +35 -0
- package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/naming.js +10 -0
- package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js +66 -0
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +11 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +60 -0
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
- package/lib/module/shared/components/boundary/types.js.map +1 -0
- package/lib/module/shared/components/boundary/utils/destination-signals.js +20 -0
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -0
- package/lib/module/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +16 -7
- package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -0
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +100 -0
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -0
- package/lib/module/shared/components/boundary/utils/source-signals.js +43 -0
- package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js +8 -3
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
- package/lib/module/shared/components/masked-view.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/content.js +10 -6
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/configs/presets.js +6 -6
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/index.js +2 -2
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -2
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +8 -4
- 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 +8 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +20 -6
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
- package/lib/module/shared/providers/screen/origin.provider.js +33 -0
- package/lib/module/shared/providers/screen/origin.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/constants.js +2 -0
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +53 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +7 -5
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -8
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +36 -19
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +6 -4
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +50 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/bounds.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +36 -3
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +42 -89
- 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 +6 -67
- 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 +8 -13
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js +236 -69
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +74 -4
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +5 -9
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +5 -10
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-destination-measurement.d.ts +1 -4
- package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.d.ts +0 -2
- package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.d.ts +4 -2
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/index.d.ts +8 -2
- package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +7 -0
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +9 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +4 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +19 -0
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/index.d.ts +4 -0
- package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts +9 -0
- package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +19 -0
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +11 -0
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +21 -0
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +37 -0
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.d.ts +14 -6
- package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/types.d.ts +78 -0
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/destination-signals.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/refresh-signals.d.ts +4 -3
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/source-signals.d.ts +1 -2
- package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/masked-view.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +19 -17
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.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 +6 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +9 -3
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/origin.provider.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/origin.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -3
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/index.d.ts +1 -1
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +2 -2
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +2 -2
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +4 -2
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +47 -12
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +12 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +13 -2
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +10 -40
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +2 -2
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +7 -11
- 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 +0 -3
- 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 +7 -3
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +93 -6
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/blank-stack/components/stack-view.tsx +4 -3
- package/src/shared/components/{create-boundary-component → boundary}/components/boundary-target.tsx +28 -11
- package/src/shared/components/{create-boundary-component → boundary}/create-boundary-component.tsx +20 -31
- package/src/shared/components/boundary/hooks/use-initial-destination-measurement.ts +156 -0
- package/src/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.ts +5 -14
- package/src/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.ts +42 -46
- package/src/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.ts +16 -11
- package/src/shared/components/{create-boundary-component → boundary}/index.tsx +12 -0
- package/src/shared/components/boundary/portal/components/host.tsx +114 -0
- package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +90 -0
- package/src/shared/components/boundary/portal/components/portal-provider.tsx +10 -0
- package/src/shared/components/boundary/portal/components/portal.tsx +278 -0
- package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +102 -0
- package/src/shared/components/boundary/portal/index.ts +3 -0
- package/src/shared/components/boundary/portal/stores/host-bounds.store.ts +45 -0
- package/src/shared/components/boundary/portal/stores/host-registry.store.ts +182 -0
- package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +91 -0
- package/src/shared/components/boundary/portal/utils/attachment.ts +48 -0
- package/src/shared/components/boundary/portal/utils/naming.ts +10 -0
- package/src/shared/components/boundary/portal/utils/offset-style.ts +171 -0
- package/src/shared/components/boundary/portal/utils/teleport-control.ts +13 -0
- package/src/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.tsx +41 -33
- package/src/shared/components/boundary/types.ts +92 -0
- package/src/shared/components/boundary/utils/destination-signals.ts +31 -0
- package/src/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.ts +34 -11
- package/src/shared/components/boundary/utils/refresh-signals.ts +175 -0
- package/src/shared/components/boundary/utils/source-signals.ts +63 -0
- package/src/shared/components/create-transition-aware-component.tsx +8 -3
- package/src/shared/components/{integrations/masked-view.tsx → masked-view.tsx} +2 -2
- package/src/shared/components/screen-container/layers/content.tsx +12 -7
- package/src/shared/configs/presets.ts +2 -6
- package/src/shared/index.ts +13 -5
- package/src/shared/providers/helpers/measured-bounds-writes.ts +11 -1
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +7 -3
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +16 -0
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +31 -6
- package/src/shared/providers/screen/origin.provider.tsx +38 -0
- package/src/shared/providers/screen/styles/constants.ts +2 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts +74 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +1 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +5 -3
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +1 -10
- package/src/shared/stores/bounds/index.ts +2 -4
- package/src/shared/stores/bounds/internals/entries.ts +4 -4
- package/src/shared/stores/bounds/internals/links.ts +52 -18
- package/src/shared/stores/bounds/internals/resolver.ts +5 -3
- package/src/shared/stores/bounds/internals/state.ts +5 -2
- package/src/shared/stores/bounds/types.ts +59 -15
- package/src/shared/stores/scroll.store.ts +68 -0
- package/src/shared/types/animation.types.ts +17 -2
- package/src/shared/types/bounds.types.ts +22 -60
- package/src/shared/types/index.ts +5 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +46 -4
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +65 -116
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +10 -80
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +10 -13
- package/src/shared/utils/bounds/helpers/styles/composers.ts +269 -46
- package/src/shared/utils/bounds/helpers/styles/compute.ts +134 -2
- package/src/shared/utils/bounds/navigation/reveal/build.ts +5 -7
- package/src/shared/utils/bounds/navigation/zoom/build.ts +5 -8
- package/src/shared/utils/bounds/types/options.ts +105 -6
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -99
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/types.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +0 -75
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +0 -103
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +0 -52
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
- package/lib/commonjs/shared/components/integrations/masked-view.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +0 -68
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -30
- package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -94
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/index.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +0 -60
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/types.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +0 -70
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +0 -98
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +0 -47
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
- package/lib/module/shared/components/integrations/masked-view.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +0 -63
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -26
- package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +0 -14
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -37
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts +0 -8
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +0 -1
- package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +0 -14
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts +0 -17
- package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +0 -130
- package/src/shared/components/create-boundary-component/types.ts +0 -48
- package/src/shared/components/create-boundary-component/utils/destination-signals.ts +0 -129
- package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +0 -164
- package/src/shared/components/create-boundary-component/utils/source-signals.ts +0 -72
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +0 -117
- package/src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts +0 -43
- /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
- /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/types.js +0 -0
- /package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
- /package/lib/module/shared/components/{create-boundary-component → boundary}/types.js +0 -0
- /package/lib/typescript/shared/components/{create-boundary-component → boundary}/components/boundary-target.d.ts +0 -0
- /package/lib/typescript/shared/components/{create-boundary-component → boundary}/create-boundary-component.d.ts +0 -0
- /package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.d.ts +0 -0
- /package/lib/typescript/shared/components/{integrations/masked-view.d.ts → masked-view.d.ts} +0 -0
- /package/src/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.ts +0 -0
|
@@ -7,6 +7,7 @@ exports.StackView = void 0;
|
|
|
7
7
|
var _native = require("@react-navigation/native");
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _activity = require("../../shared/components/activity");
|
|
10
|
+
var _portal = require("../../shared/components/boundary/portal");
|
|
10
11
|
var _overlay = require("../../shared/components/overlay");
|
|
11
12
|
var _screenComposer = require("../../shared/providers/screen/screen-composer");
|
|
12
13
|
var _blankStack = require("../../shared/providers/stack/blank-stack.provider");
|
|
@@ -44,7 +45,7 @@ const StackView = exports.StackView = (0, _core.withStackCore)({
|
|
|
44
45
|
scenes,
|
|
45
46
|
shouldShowFloatOverlay
|
|
46
47
|
}) => {
|
|
47
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_portal.PortalProvider, {
|
|
48
49
|
children: [shouldShowFloatOverlay ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_overlay.Overlay.Float, {}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_activity.ActivityContainer, {
|
|
49
50
|
children: scenes.map((scene, index) => {
|
|
50
51
|
const route = scene.route;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_react","_activity","_overlay","_screenComposer","_blankStack","_core","_jsxRuntime","BlankSceneRow","memo","scene","paintDriverRouteKey","descriptor","route","jsx","NavigationContext","Provider","value","navigation","children","NavigationRouteContext","ActivityScreen","activity","inactiveBehavior","options","hasNestedState","ScreenComposer","previous","previousDescriptor","current","next","nextDescriptor","render","StackView","exports","withStackCore","TRANSITIONS_ALWAYS_ON","DISABLE_NATIVE_SCREENS","withBlankStack","scenes","shouldShowFloatOverlay","jsxs","
|
|
1
|
+
{"version":3,"names":["_native","require","_react","_activity","_portal","_overlay","_screenComposer","_blankStack","_core","_jsxRuntime","BlankSceneRow","memo","scene","paintDriverRouteKey","descriptor","route","jsx","NavigationContext","Provider","value","navigation","children","NavigationRouteContext","ActivityScreen","activity","inactiveBehavior","options","hasNestedState","ScreenComposer","previous","previousDescriptor","current","next","nextDescriptor","render","StackView","exports","withStackCore","TRANSITIONS_ALWAYS_ON","DISABLE_NATIVE_SCREENS","withBlankStack","scenes","shouldShowFloatOverlay","jsxs","PortalProvider","Overlay","Float","ActivityContainer","map","index","key"],"sourceRoot":"../../../../src","sources":["blank-stack/components/stack-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAY3E,MAAMS,aAAa,gBAAG,IAAAC,WAAI,EAAC,SAASD,aAAaA,CAAC;EACjDE,KAAK;EACLC;AACmB,CAAC,EAAE;EACtB,MAAMC,UAAU,GAAGF,KAAK,CAACE,UAAU;EACnC,MAAMC,KAAK,GAAGH,KAAK,CAACG,KAAK;EAEzB,oBACC,IAAAN,WAAA,CAAAO,GAAA,EAAChB,OAAA,CAAAiB,iBAAiB,C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AAK,EAAEqC,KAAK,KAAK;QAC7B,MAAMlC,KAAK,GAAGH,KAAK,CAACG,KAAK;QACzB,MAAMF,mBAAmB,GAAG4B,MAAM,CAACQ,KAAK,GAAG,CAAC,CAAC,EAAElC,KAAK,CAACmC,GAAG;QAExD,oBACC,IAAAzC,WAAA,CAAAO,GAAA,EAACN,aAAa;UAEbE,KAAK,EAAEA,KAAM;UACbC,mBAAmB,EAAEA;QAAoB,GAFpCE,KAAK,CAACmC,GAGX,CAAC;MAEJ,CAAC;IAAC,CACgB,CAAC;EAAA,CACL,CAAC;AAEnB,CACD,CACD,CAAC","ignoreList":[]}
|
|
@@ -7,6 +7,8 @@ exports.BoundaryTarget = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
9
|
var _styles = require("../../../utils/bounds/helpers/styles/styles");
|
|
10
|
+
var _logger = require("../../../utils/logger");
|
|
11
|
+
var _portal = require("../portal/components/portal");
|
|
10
12
|
var _boundaryOwner = require("../providers/boundary-owner.provider");
|
|
11
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -16,28 +18,39 @@ const BoundaryTarget = exports.BoundaryTarget = /*#__PURE__*/(0, _react.memo)(fu
|
|
|
16
18
|
...rest
|
|
17
19
|
} = props;
|
|
18
20
|
const targetAnimatedRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
21
|
+
const placeholderAnimatedRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
19
22
|
const ownerContext = (0, _boundaryOwner.useBoundaryOwnerContext)();
|
|
20
23
|
const registerTargetRef = ownerContext?.registerTargetRef;
|
|
21
24
|
const unregisterTargetRef = ownerContext?.unregisterTargetRef;
|
|
22
25
|
const isActiveTarget = ownerContext?.activeTargetRef === targetAnimatedRef;
|
|
23
26
|
const preparedStyles = (0, _react.useMemo)(() => (0, _styles.prepareStyleForBounds)(style), [style]);
|
|
27
|
+
// Portal'd content can be teleported into another screen's host; measuring
|
|
28
|
+
// it there would capture its CURRENT (destination) position as the source
|
|
29
|
+
// bounds. The portal placeholder keeps the layout slot at home, so it is
|
|
30
|
+
// the truthful measurement surface whenever a portal is configured.
|
|
31
|
+
const measurementRef = ownerContext?.portal ? placeholderAnimatedRef : targetAnimatedRef;
|
|
24
32
|
(0, _react.useLayoutEffect)(() => {
|
|
25
33
|
if (!registerTargetRef || !unregisterTargetRef) {
|
|
26
34
|
if (__DEV__) {
|
|
27
|
-
|
|
35
|
+
_logger.logger.warn(_boundaryOwner.TARGET_OUTSIDE_OWNER_WARNING);
|
|
28
36
|
}
|
|
29
37
|
return;
|
|
30
38
|
}
|
|
31
|
-
registerTargetRef(targetAnimatedRef, preparedStyles);
|
|
39
|
+
registerTargetRef(targetAnimatedRef, preparedStyles, measurementRef);
|
|
32
40
|
return () => {
|
|
33
41
|
unregisterTargetRef(targetAnimatedRef);
|
|
34
42
|
};
|
|
35
|
-
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles]);
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
|
|
45
|
+
id: ownerContext?.entryTag,
|
|
46
|
+
mode: ownerContext?.portal,
|
|
47
|
+
placeholderRef: placeholderAnimatedRef,
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
49
|
+
...rest,
|
|
50
|
+
ref: targetAnimatedRef,
|
|
51
|
+
style: [style, isActiveTarget ? ownerContext.associatedTargetStyles : undefined],
|
|
52
|
+
collapsable: false
|
|
53
|
+
})
|
|
41
54
|
});
|
|
42
55
|
});
|
|
43
56
|
//# sourceMappingURL=boundary-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_styles","_logger","_portal","_boundaryOwner","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BoundaryTarget","exports","memo","props","style","rest","targetAnimatedRef","useAnimatedRef","placeholderAnimatedRef","ownerContext","useBoundaryOwnerContext","registerTargetRef","unregisterTargetRef","isActiveTarget","activeTargetRef","preparedStyles","useMemo","prepareStyleForBounds","measurementRef","portal","useLayoutEffect","__DEV__","logger","warn","TARGET_OUTSIDE_OWNER_WARNING","jsx","Portal","id","entryTag","mode","placeholderRef","children","View","ref","associatedTargetStyles","undefined","collapsable"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-target.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAG8C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA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|
@@ -37,23 +37,15 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
37
37
|
method,
|
|
38
38
|
style,
|
|
39
39
|
onPress,
|
|
40
|
+
portal,
|
|
40
41
|
...rest
|
|
41
42
|
} = props;
|
|
42
43
|
const linkId = String(id);
|
|
43
44
|
const entryTag = group ? `${group}:${linkId}` : linkId;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
currentScreenKey,
|
|
47
|
-
nextScreenKey,
|
|
48
|
-
ancestorKeys,
|
|
49
|
-
hasConfiguredInterpolator
|
|
50
|
-
} = (0, _descriptors.useDescriptorDerivations)();
|
|
45
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
46
|
+
const hasConfiguredInterpolator = (0, _descriptors.useDescriptorsStore)(s => s.derivations.hasConfiguredInterpolator);
|
|
51
47
|
const runtimeEnabled = enabled && hasConfiguredInterpolator;
|
|
52
|
-
const hasNextScreen = !!nextScreenKey;
|
|
53
48
|
const boundaryConfig = (0, _react.useMemo)(() => {
|
|
54
|
-
if (anchor === undefined && scaleMode === undefined && target === undefined && method === undefined) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
49
|
return {
|
|
58
50
|
anchor,
|
|
59
51
|
scaleMode,
|
|
@@ -91,9 +83,12 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
91
83
|
targetPreparedStyles
|
|
92
84
|
} = (0, _boundaryOwner.useBoundaryOwner)({
|
|
93
85
|
ownerRef,
|
|
94
|
-
associatedTargetStyles: runtimeEnabled ? associatedStyles : undefined
|
|
86
|
+
associatedTargetStyles: runtimeEnabled ? associatedStyles : undefined,
|
|
87
|
+
entryTag,
|
|
88
|
+
portal
|
|
95
89
|
});
|
|
96
90
|
const preparedStyles = targetPreparedStyles ?? ownerPreparedStyles;
|
|
91
|
+
const portalHost = typeof portal === "object" ? portal.attachTo ?? "current-screen" : portal ? "current-screen" : undefined;
|
|
97
92
|
const measureBoundary = (0, _useMeasurer.useMeasurer)({
|
|
98
93
|
enabled,
|
|
99
94
|
entryTag,
|
|
@@ -101,9 +96,9 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
101
96
|
group,
|
|
102
97
|
currentScreenKey,
|
|
103
98
|
preparedStyles,
|
|
104
|
-
measuredAnimatedRef: measuredRef
|
|
99
|
+
measuredAnimatedRef: measuredRef,
|
|
100
|
+
portalHost
|
|
105
101
|
});
|
|
106
|
-
const shouldRunDestinationEffects = runtimeEnabled && !hasNextScreen;
|
|
107
102
|
|
|
108
103
|
// Register/unregister this boundary in the presence map so source/destination
|
|
109
104
|
// matching can resolve across concrete screen keys.
|
|
@@ -116,29 +111,20 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
116
111
|
const shouldPassivelyMeasureSource = shouldAutoMeasure && typeof onPress !== "function";
|
|
117
112
|
(0, _useInitialSourceMeasurement.useInitialSourceMeasurement)({
|
|
118
113
|
enabled: runtimeEnabled,
|
|
119
|
-
nextScreenKey,
|
|
120
114
|
measureBoundary,
|
|
121
|
-
currentScreenKey,
|
|
122
115
|
linkId,
|
|
123
116
|
group,
|
|
124
117
|
shouldAutoMeasure: shouldPassivelyMeasureSource
|
|
125
118
|
});
|
|
126
119
|
(0, _useInitialDestinationMeasurement.useInitialDestinationMeasurement)({
|
|
127
120
|
linkId,
|
|
128
|
-
enabled:
|
|
129
|
-
currentScreenKey,
|
|
130
|
-
preferredSourceScreenKey,
|
|
131
|
-
ancestorScreenKeys: ancestorKeys,
|
|
121
|
+
enabled: runtimeEnabled,
|
|
132
122
|
measureBoundary
|
|
133
123
|
});
|
|
134
124
|
(0, _useRefreshBoundary.useRefreshBoundary)({
|
|
135
125
|
enabled: runtimeEnabled,
|
|
136
|
-
currentScreenKey,
|
|
137
|
-
preferredSourceScreenKey,
|
|
138
|
-
nextScreenKey,
|
|
139
126
|
linkId,
|
|
140
127
|
group,
|
|
141
|
-
ancestorScreenKeys: ancestorKeys,
|
|
142
128
|
measureBoundary
|
|
143
129
|
});
|
|
144
130
|
const handlePress = (0, _react.useCallback)((...args) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_linkPairs","_styles2","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useMeasurer","_useRefreshBoundary","_boundaryOwner","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createBoundaryComponent","Wrapped","options","alreadyAnimated","shouldAutoMeasure","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","ownerRef","useAnimatedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","portal","rest","linkId","String","entryTag","currentScreenKey","useDescriptorsStore","s","derivations","hasConfiguredInterpolator","runtimeEnabled","boundaryConfig","useMemo","ownerPreparedStyles","prepareStyleForBounds","stylesMap","useScreenStyles","associatedStyles","useAnimatedStyle","NO_STYLES","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","targetPreparedStyles","useBoundaryOwner","associatedTargetStyles","undefined","preparedStyles","portalHost","attachTo","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","shouldPassivelyMeasureSource","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary","handlePress","useCallback","args","runOnUI","type","pairKey","createPendingPairKey","resolvedOnPress","useImperativeHandle","current","jsx","BoundaryOwnerProvider","value","children","ref","collapsable","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;A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,CAAAiG,qBAAqB;MAACC,KAAK,EAAE9B,YAAa;MAAA+B,QAAA,eAC1C,IAAAlG,WAAA,CAAA+F,GAAA,EAACtE,iBAAiB;QAAA,GACbmB,IAAI;QACRuD,GAAG,EAAEnE,QAAS;QACdS,KAAK,EAAE,CACNA,KAAK,EACLY,cAAc,GACXgB,eAAe,GACdN,wBAAwB,GACxBH,gBAAgB,GACjBa,SAAS,CACX;QACF/B,OAAO,EAAEkD,eAAgB;QACzBQ,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAO,IAAAC,WAAI,EACV3E,8BAAQ,CAACC,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_entries","useBoundaryPresence","params","enabled","entryTag","currentScreenKey","boundaryConfig","useLayoutEffect","runOnUI","setEntry","removeEntry","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAMO,MAAMG,mBAAmB,GAAIC,MAKnC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAEC,gBAAgB;IAAEC;EAAe,CAAC,GAAGJ,MAAM;EAEtE,IAAAK,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACJ,OAAO,EAAE;IAEd,IAAAK,8BAAO,EAACC,iBAAQ,CAAC,CAACL,QAAQ,EAAEC,gBAAgB,EAAE;MAC7CC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAE,8BAAO,EAACE,oBAAW,CAAC,CAACN,QAAQ,EAAEC,gBAAgB,CAAC;IACjD,CAAC;EACF,CAAC,EAAE,CAACF,OAAO,EAAEC,QAAQ,EAAEC,gBAAgB,EAAEC,cAAc,CAAC,CAAC;AAC1D,CAAC;AAACK,OAAA,CAAAV,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useInitialDestinationMeasurement = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _descriptors = require("../../../providers/screen/descriptors");
|
|
9
|
+
var _animation = require("../../../stores/animation.store");
|
|
10
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
11
|
+
var _state = require("../../../stores/bounds/internals/state");
|
|
12
|
+
var _system = require("../../../stores/system.store");
|
|
13
|
+
var _logger = require("../../../utils/logger");
|
|
14
|
+
var _destinationSignals = require("../utils/destination-signals");
|
|
15
|
+
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
16
|
+
/**
|
|
17
|
+
* A destination that keeps failing its measurement guards must not hold the
|
|
18
|
+
* transition gate forever — after this budget the block is released with a
|
|
19
|
+
* warning so the open proceeds without that boundary.
|
|
20
|
+
*/
|
|
21
|
+
const MAX_VIEWPORT_RETRIES = 20;
|
|
22
|
+
const useInitialDestinationMeasurement = ({
|
|
23
|
+
linkId,
|
|
24
|
+
enabled,
|
|
25
|
+
measureBoundary
|
|
26
|
+
}) => {
|
|
27
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
28
|
+
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
29
|
+
const destinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.destinationPairKey);
|
|
30
|
+
const ancestorDestinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.ancestorDestinationPairKey);
|
|
31
|
+
const destinationEnabled = enabled && !nextScreenKey;
|
|
32
|
+
const progress = _animation.AnimationStore.getValue(currentScreenKey, "transitionProgress");
|
|
33
|
+
const system = _system.SystemStore.getBag(currentScreenKey);
|
|
34
|
+
const {
|
|
35
|
+
pendingLifecycleRequestKind
|
|
36
|
+
} = system;
|
|
37
|
+
const {
|
|
38
|
+
blockLifecycleStart,
|
|
39
|
+
unblockLifecycleStart
|
|
40
|
+
} = system.actions;
|
|
41
|
+
const isBlockingLifecycleStart = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
42
|
+
const retryToken = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
43
|
+
const viewportRetries = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
44
|
+
const hasGivenUp = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
45
|
+
const releaseLifecycleStartBlock = () => {
|
|
46
|
+
"worklet";
|
|
47
|
+
|
|
48
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
49
|
+
if (!isBlockingLifecycleStart.get()) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
unblockLifecycleStart();
|
|
53
|
+
isBlockingLifecycleStart.set(0);
|
|
54
|
+
};
|
|
55
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
56
|
+
"worklet";
|
|
57
|
+
|
|
58
|
+
const retryTick = retryToken.get();
|
|
59
|
+
const hasPendingOpenRequest = pendingLifecycleRequestKind.get() === _system.LifecycleTransitionRequestKind.Open;
|
|
60
|
+
const isWaitingForOpenToStart = progress.get() <= 0;
|
|
61
|
+
if (!hasPendingOpenRequest || !isWaitingForOpenToStart) {
|
|
62
|
+
return [0, retryTick];
|
|
63
|
+
}
|
|
64
|
+
const measurePairKey = (0, _destinationSignals.getInitialDestinationMeasurePairKey)({
|
|
65
|
+
enabled: destinationEnabled,
|
|
66
|
+
destinationPairKey,
|
|
67
|
+
ancestorDestinationPairKey,
|
|
68
|
+
linkId,
|
|
69
|
+
linkState: destinationEnabled && (destinationPairKey || ancestorDestinationPairKey) ? _state.pairs.get() : undefined
|
|
70
|
+
});
|
|
71
|
+
return [measurePairKey, retryTick];
|
|
72
|
+
}, ([measurePairKey]) => {
|
|
73
|
+
"worklet";
|
|
74
|
+
|
|
75
|
+
if (!measurePairKey) {
|
|
76
|
+
releaseLifecycleStartBlock();
|
|
77
|
+
viewportRetries.set(0);
|
|
78
|
+
hasGivenUp.set(0);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (hasGivenUp.get()) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!isBlockingLifecycleStart.get()) {
|
|
85
|
+
blockLifecycleStart();
|
|
86
|
+
isBlockingLifecycleStart.set(1);
|
|
87
|
+
}
|
|
88
|
+
measureBoundary({
|
|
89
|
+
type: "destination",
|
|
90
|
+
pairKey: measurePairKey
|
|
91
|
+
});
|
|
92
|
+
const destinationAttached = (0, _links.getDestination)(measurePairKey, linkId) !== null;
|
|
93
|
+
if (destinationAttached) {
|
|
94
|
+
releaseLifecycleStartBlock();
|
|
95
|
+
viewportRetries.set(0);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (viewportRetries.get() >= MAX_VIEWPORT_RETRIES) {
|
|
99
|
+
hasGivenUp.set(1);
|
|
100
|
+
releaseLifecycleStartBlock();
|
|
101
|
+
_logger.logger.warn(`Destination boundary "${linkId}" never produced a valid measurement after ${MAX_VIEWPORT_RETRIES} attempts; releasing the transition gate without it. The boundary is likely off-viewport (e.g. an inactive group member on a paged screen) or unmounted.`);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Destination did not attach (malformed off-screen measurement); retry
|
|
106
|
+
// on the next tick while the lifecycle stays blocked.
|
|
107
|
+
viewportRetries.set(viewportRetries.get() + 1);
|
|
108
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
109
|
+
retryToken.set((0, _reactNativeReanimated.withDelay)(VIEWPORT_RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryToken.get() + 1, {
|
|
110
|
+
duration: 0
|
|
111
|
+
})));
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
exports.useInitialDestinationMeasurement = useInitialDestinationMeasurement;
|
|
115
|
+
//# sourceMappingURL=use-initial-destination-measurement.js.map
|
package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_animation","_links","_state","_system","_logger","_destinationSignals","VIEWPORT_RETRY_DELAY_MS","MAX_VIEWPORT_RETRIES","useInitialDestinationMeasurement","linkId","enabled","measureBoundary","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","destinationPairKey","ancestorDestinationPairKey","destinationEnabled","progress","AnimationStore","getValue","system","SystemStore","getBag","pendingLifecycleRequestKind","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","useSharedValue","retryToken","viewportRetries","hasGivenUp","releaseLifecycleStartBlock","cancelAnimation","get","set","useAnimatedReaction","retryTick","hasPendingOpenRequest","LifecycleTransitionRequestKind","Open","isWaitingForOpenToStart","measurePairKey","getInitialDestinationMeasurePairKey","linkState","pairs","undefined","type","pairKey","destinationAttached","getDestination","logger","warn","withDelay","withTiming","duration","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-initial-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAEA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,MAAMQ,uBAAuB,GAAG,EAAE;AAClC;AACA;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,GAAG,EAAE;AAQxB,MAAMC,gCAAgC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AAAC,qBAAc,EAACR,cAAc,EAAEpC,MAAM,CAAC,KAAK,IAAI;IAEhD,IAAI2C,mBAAmB,EAAE;MACxBjB,0BAA0B,CAAC,CAAC;MAC5BF,eAAe,CAACK,GAAG,CAAC,CAAC,CAAC;MACtB;IACD;IAEA,IAAIL,eAAe,CAACI,GAAG,CAAC,CAAC,IAAI9B,oBAAoB,EAAE;MAClD2B,UAAU,CAACI,GAAG,CAAC,CAAC,CAAC;MACjBH,0BAA0B,CAAC,CAAC;MAC5BmB,cAAM,CAACC,IAAI,CACV,yBAAyB9C,MAAM,8CAA8CF,oBAAoB,0JAClG,CAAC;MACD;IACD;;IAEA;IACA;IACA0B,eAAe,CAACK,GAAG,CAACL,eAAe,CAACI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC9C,IAAAD,sCAAe,EAACJ,UAAU,CAAC;IAC3BA,UAAU,CAACM,GAAG,CACb,IAAAkB,gCAAS,EACRlD,uBAAuB,EACvB,IAAAmD,iCAAU,EAACzB,UAAU,CAACK,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;MAAEqB,QAAQ,EAAE;IAAE,CAAC,CACjD,CACD,CAAC;EACF,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAnD,gCAAA,GAAAA,gCAAA","ignoreList":[]}
|
|
@@ -5,30 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useInitialSourceMeasurement = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _descriptors = require("../../../providers/screen/descriptors");
|
|
8
9
|
var _state = require("../../../stores/bounds/internals/state");
|
|
9
10
|
var _sourceSignals = require("../utils/source-signals");
|
|
10
11
|
const useInitialSourceMeasurement = params => {
|
|
11
12
|
const {
|
|
12
13
|
enabled,
|
|
13
|
-
nextScreenKey,
|
|
14
14
|
measureBoundary,
|
|
15
15
|
linkId,
|
|
16
|
-
currentScreenKey,
|
|
17
16
|
group,
|
|
18
17
|
shouldAutoMeasure
|
|
19
18
|
} = params;
|
|
19
|
+
const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
|
|
20
20
|
const lastSourceCaptureSignal = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
21
21
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
22
22
|
"worklet";
|
|
23
23
|
|
|
24
24
|
return (0, _sourceSignals.getInitialSourceCaptureSignal)({
|
|
25
25
|
enabled,
|
|
26
|
-
|
|
27
|
-
currentScreenKey,
|
|
26
|
+
sourcePairKey,
|
|
28
27
|
linkId,
|
|
29
28
|
group,
|
|
30
29
|
shouldAutoMeasure,
|
|
31
|
-
linkState:
|
|
30
|
+
linkState: shouldAutoMeasure && sourcePairKey ? _state.pairs.get() : undefined
|
|
32
31
|
});
|
|
33
32
|
}, captureSignal => {
|
|
34
33
|
"worklet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_state","_sourceSignals","useInitialSourceMeasurement","params","enabled","measureBoundary","linkId","group","shouldAutoMeasure","sourcePairKey","useDescriptorsStore","s","derivations","lastSourceCaptureSignal","useSharedValue","useAnimatedReaction","getInitialSourceCaptureSignal","linkState","pairs","get","undefined","captureSignal","set","signal","type","pairKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-initial-source-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEO,MAAMI,2BAA2B,GAAIC,MAM3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,eAAe;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAkB,CAAC,GAAGL,MAAM;EAC7E,MAAMM,aAAa,GAAG,IAAAC,gCAAmB,EAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,aAAa,CAAC;EAC7E,MAAMI,uBAAuB,GAAG,IAAAC,qCAAc,EAAgB,IAAI,CAAC;EAEnE,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,OAAO,IAAAC,4CAA6B,EAAC;MACpCZ,OAAO;MACPK,aAAa;MACbH,MAAM;MACNC,KAAK;MACLC,iBAAiB;MACjBS,SAAS,EAAET,iBAAiB,IAAIC,aAAa,GAAGS,YAAK,CAACC,GAAG,CAAC,CAAC,GAAGC;IAC/D,CAAC,CAAC;EACH,CAAC,EACAC,aAAa,IAAK;IAClB,SAAS;;IACT,IAAI,CAACjB,OAAO,IAAI,CAACiB,aAAa,EAAE;MAC/BR,uBAAuB,CAACS,GAAG,CAAC,IAAI,CAAC;MACjC;IACD;IAEA,IAAIT,uBAAuB,CAACM,GAAG,CAAC,CAAC,KAAKE,aAAa,CAACE,MAAM,EAAE;MAC3D;IACD;IAEAV,uBAAuB,CAACS,GAAG,CAACD,aAAa,CAACE,MAAM,CAAC;IACjDlB,eAAe,CAAC;MACfmB,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAEJ,aAAa,CAACI;IACxB,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAxB,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js
RENAMED
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useMeasurer = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
+
var _measuredBoundsWrites = require("../../../providers/helpers/measured-bounds-writes");
|
|
11
|
+
var _origin = require("../../../providers/screen/origin.provider");
|
|
11
12
|
var _scroll = require("../../../stores/scroll.store");
|
|
12
13
|
var _system = require("../../../stores/system.store");
|
|
13
|
-
var
|
|
14
|
+
var _hostRegistry = require("../portal/stores/host-registry.store");
|
|
14
15
|
var _measuredBounds = require("../utils/measured-bounds");
|
|
15
16
|
const useMeasurer = ({
|
|
16
17
|
enabled,
|
|
@@ -19,25 +20,27 @@ const useMeasurer = ({
|
|
|
19
20
|
group,
|
|
20
21
|
currentScreenKey,
|
|
21
22
|
preparedStyles,
|
|
22
|
-
measuredAnimatedRef
|
|
23
|
+
measuredAnimatedRef,
|
|
24
|
+
portalHost
|
|
23
25
|
}) => {
|
|
24
26
|
const {
|
|
25
27
|
width: viewportWidth,
|
|
26
28
|
height: viewportHeight
|
|
27
29
|
} = (0, _reactNative.useWindowDimensions)();
|
|
28
30
|
const scrollState = _scroll.ScrollStore.getValue(currentScreenKey, "coordination");
|
|
31
|
+
const scrollMetadata = _scroll.ScrollStore.getValue(currentScreenKey, "metadata");
|
|
29
32
|
const pendingLifecycleStartBlockCount = _system.SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
33
|
+
const {
|
|
34
|
+
originRef
|
|
35
|
+
} = (0, _origin.useOriginContext)();
|
|
30
36
|
return (0, _react.useCallback)(target => {
|
|
31
37
|
"worklet";
|
|
32
38
|
|
|
33
39
|
if (!enabled) return;
|
|
34
40
|
const measured = (0, _measuredBounds.measureWithOverscrollAwareness)(measuredAnimatedRef, scrollState.get());
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// captures can measure while the visibility gate is still blocked.
|
|
39
|
-
const shouldAdjustBlockedDestination = target.type === "destination" && pendingLifecycleStartBlockCount.get() > 0;
|
|
40
|
-
const normalizedMeasured = shouldAdjustBlockedDestination ? (0, _measuredBounds.applyVisibilityBlockOffset)(measured, (0, _visibilityBlockOffset.getVisibilityBlockOffset)(viewportHeight)) : measured;
|
|
41
|
+
const measuredOrigin = (0, _reactNativeReanimated.measure)(originRef);
|
|
42
|
+
if (!measured || !measuredOrigin) return;
|
|
43
|
+
const normalizedMeasured = (0, _measuredBounds.normalizeMeasuredBoundsToOrigin)(measured, measuredOrigin);
|
|
41
44
|
|
|
42
45
|
/**
|
|
43
46
|
* - Destination Pass -
|
|
@@ -49,19 +52,20 @@ const useMeasurer = ({
|
|
|
49
52
|
const shouldGuardDestinationViewport = pendingLifecycleStartBlockCount.get() > 0 || !!group;
|
|
50
53
|
const viewportAllowsDestinationWrite = target.type !== "destination" || !shouldGuardDestinationViewport || (0, _measuredBounds.isMeasurementInViewport)(normalizedMeasured, viewportWidth, viewportHeight);
|
|
51
54
|
if (!viewportAllowsDestinationWrite) return;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
const measuredWithScroll = (0, _measuredBounds.attachScrollSnapshotToMeasuredBounds)(normalizedMeasured, scrollMetadata.get());
|
|
56
|
+
const sourceHost = target.type === "source" ? (0, _hostRegistry.getActiveScrollHost)(currentScreenKey) ?? undefined : undefined;
|
|
57
|
+
(0, _measuredBoundsWrites.applyMeasuredBoundsWrites)({
|
|
58
|
+
entryTag,
|
|
59
|
+
linkId,
|
|
60
|
+
group,
|
|
61
|
+
currentScreenKey,
|
|
62
|
+
measured: measuredWithScroll,
|
|
63
|
+
preparedStyles,
|
|
64
|
+
linkWrite: target,
|
|
65
|
+
portalHost,
|
|
66
|
+
sourceHost
|
|
57
67
|
});
|
|
58
|
-
|
|
59
|
-
(0, _links.setSource)(target.pairKey, linkId, currentScreenKey, normalizedMeasured, preparedStyles, group);
|
|
60
|
-
}
|
|
61
|
-
if (target.type === "destination") {
|
|
62
|
-
(0, _links.setDestination)(target.pairKey, linkId, currentScreenKey, normalizedMeasured, preparedStyles, group);
|
|
63
|
-
}
|
|
64
|
-
}, [enabled, entryTag, linkId, group, currentScreenKey, preparedStyles, measuredAnimatedRef, viewportWidth, viewportHeight, scrollState, pendingLifecycleStartBlockCount]);
|
|
68
|
+
}, [enabled, entryTag, linkId, group, currentScreenKey, preparedStyles, measuredAnimatedRef, portalHost, viewportWidth, viewportHeight, scrollState, scrollMetadata, pendingLifecycleStartBlockCount, originRef]);
|
|
65
69
|
};
|
|
66
70
|
exports.useMeasurer = useMeasurer;
|
|
67
71
|
//# sourceMappingURL=use-measurer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_measuredBoundsWrites","_origin","_scroll","_system","_hostRegistry","_measuredBounds","useMeasurer","enabled","entryTag","linkId","group","currentScreenKey","preparedStyles","measuredAnimatedRef","portalHost","width","viewportWidth","height","viewportHeight","useWindowDimensions","scrollState","ScrollStore","getValue","scrollMetadata","pendingLifecycleStartBlockCount","SystemStore","originRef","useOriginContext","useCallback","target","measured","measureWithOverscrollAwareness","get","measuredOrigin","measure","normalizedMeasured","normalizeMeasuredBoundsToOrigin","shouldGuardDestinationViewport","viewportAllowsDestinationWrite","type","isMeasurementInViewport","measuredWithScroll","attachScrollSnapshotToMeasuredBounds","sourceHost","getActiveScrollHost","undefined","applyMeasuredBoundsWrites","linkWrite","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-measurer.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAKA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAEA,IAAAQ,eAAA,GAAAR,OAAA;AAkBO,MAAMS,WAAW,GAAGA,CAAC;EAC3BC,OAAO;EACPC,QAAQ;EACRC,MAAM;EACNC,KAAK;EACLC,gBAAgB;EAChBC,cAAc;EACdC,mBAAmB;EACnBC;AACkB,CAAC,KAAsB;EACzC,MAAM;IAAEC,KAAK,EAAEC,aAAa;IAAEC,MAAM,EAAEC;EAA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gBAAgB,CAAC,IAAIkC,SAAS,GACnDA,SAAS;IAEb,IAAAC,+CAAyB,EAAC;MACzBtC,QAAQ;MACRC,MAAM;MACNC,KAAK;MACLC,gBAAgB;MAChBmB,QAAQ,EAAEW,kBAAkB;MAC5B7B,cAAc;MACdmC,SAAS,EAAElB,MAAM;MACjBf,UAAU;MACV6B;IACD,CAAC,CAAC;EACH,CAAC,EACD,CACCpC,OAAO,EACPC,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,EACnBC,UAAU,EACVE,aAAa,EACbE,cAAc,EACdE,WAAW,EACXG,cAAc,EACdC,+BAA+B,EAC/BE,SAAS,CAEX,CAAC;AACF,CAAC;AAACsB,OAAA,CAAA1C,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -5,19 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useRefreshBoundary = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _descriptors = require("../../../providers/screen/descriptors");
|
|
8
9
|
var _animation = require("../../../stores/animation.store");
|
|
9
10
|
var _state = require("../../../stores/bounds/internals/state");
|
|
10
11
|
var _refreshSignals = require("../utils/refresh-signals");
|
|
11
12
|
const useRefreshBoundary = ({
|
|
12
13
|
enabled,
|
|
13
|
-
currentScreenKey,
|
|
14
|
-
preferredSourceScreenKey,
|
|
15
|
-
nextScreenKey,
|
|
16
14
|
linkId,
|
|
17
15
|
group,
|
|
18
|
-
ancestorScreenKeys,
|
|
19
16
|
measureBoundary
|
|
20
17
|
}) => {
|
|
18
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
19
|
+
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
20
|
+
const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
|
|
21
|
+
const destinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.destinationPairKey);
|
|
22
|
+
const ancestorDestinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.ancestorDestinationPairKey);
|
|
21
23
|
// Source-side boundaries refresh from the next screen's lifecycle pulse.
|
|
22
24
|
// Destination-side boundaries have no next screen, so they refresh from self.
|
|
23
25
|
const refreshScreenKey = nextScreenKey ?? currentScreenKey;
|
|
@@ -32,17 +34,18 @@ const useRefreshBoundary = ({
|
|
|
32
34
|
return (0, _refreshSignals.getRefreshBoundarySignal)({
|
|
33
35
|
enabled,
|
|
34
36
|
currentScreenKey,
|
|
35
|
-
|
|
37
|
+
sourcePairKey,
|
|
38
|
+
destinationPairKey,
|
|
39
|
+
ancestorDestinationPairKey,
|
|
36
40
|
nextScreenKey,
|
|
37
41
|
linkId,
|
|
38
42
|
group,
|
|
39
|
-
ancestorScreenKeys,
|
|
40
43
|
shouldRefresh: !!refreshWillAnimate.get(),
|
|
41
44
|
closing: !!refreshClosing.get(),
|
|
42
45
|
entering: !!refreshEntering.get(),
|
|
43
46
|
animating: !!refreshAnimating.get(),
|
|
44
47
|
progress: refreshProgress.get(),
|
|
45
|
-
linkState:
|
|
48
|
+
linkState: _state.pairs.get()
|
|
46
49
|
});
|
|
47
50
|
}, (refreshSignal, prevRefreshSignal) => {
|
|
48
51
|
"worklet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_animation","_state","_refreshSignals","useRefreshBoundary","enabled","linkId","group","measureBoundary","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","refreshScreenKey","refreshWillAnimate","AnimationStore","getValue","refreshClosing","refreshEntering","refreshAnimating","refreshProgress","useAnimatedReaction","getRefreshBoundarySignal","shouldRefresh","get","closing","entering","animating","progress","linkState","pairs","refreshSignal","prevRefreshSignal","signal","type","pairKey","exports"],"sourceRoot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AGL,yBAAc,CAACC,QAAQ,CAC9CH,gBAAgB,EAChB,oBACD,CAAC;EAED,IAAAQ,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,OAAO,IAAAC,wCAAwB,EAAC;MAC/BrB,OAAO;MACPI,gBAAgB;MAChBK,aAAa;MACbC,kBAAkB;MAClBC,0BAA0B;MAC1BH,aAAa;MACbP,MAAM;MACNC,KAAK;MACLoB,aAAa,EAAE,CAAC,CAACT,kBAAkB,CAACU,GAAG,CAAC,CAAC;MACzCC,OAAO,EAAE,CAAC,CAACR,cAAc,CAACO,GAAG,CAAC,CAAC;MAC/BE,QAAQ,EAAE,CAAC,CAACR,eAAe,CAACM,GAAG,CAAC,CAAC;MACjCG,SAAS,EAAE,CAAC,CAACR,gBAAgB,CAACK,GAAG,CAAC,CAAC;MACnCI,QAAQ,EAAER,eAAe,CAACI,GAAG,CAAC,CAAC;MAC/BK,SAAS,EAAEC,YAAK,CAACN,GAAG,CAAC;IACtB,CAAC,CAAC;EACH,CAAC,EACD,CAACO,aAAa,EAAEC,iBAAiB,KAAK;IACrC,SAAS;;IAET,IACC,CAACD,aAAa,IACdA,aAAa,CAACE,MAAM,KAAKD,iBAAiB,EAAEC,MAAM,EACjD;MACD;IACD;IAEA7B,eAAe,CAAC;MACf8B,IAAI,EAAEH,aAAa,CAACG,IAAI;MACxBC,OAAO,EAAEJ,aAAa,CAACI;IACxB,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAApC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "createBoundaryComponent", {
|
|
|
13
13
|
var _reactNative = require("react-native");
|
|
14
14
|
var _boundaryTarget = require("./components/boundary-target");
|
|
15
15
|
var _createBoundaryComponent = require("./create-boundary-component");
|
|
16
|
+
var _portal = require("./portal");
|
|
16
17
|
const BoundaryView = (0, _createBoundaryComponent.createBoundaryComponent)(_reactNative.View, {
|
|
17
18
|
shouldAutoMeasure: true
|
|
18
19
|
});
|
|
@@ -20,6 +21,7 @@ const BoundaryTrigger = (0, _createBoundaryComponent.createBoundaryComponent)(_r
|
|
|
20
21
|
BoundaryView.displayName = "Transition.Boundary.View";
|
|
21
22
|
BoundaryTrigger.displayName = "Transition.Boundary.Trigger";
|
|
22
23
|
_boundaryTarget.BoundaryTarget.displayName = "Transition.Boundary.Target";
|
|
24
|
+
_portal.Host.displayName = "Transition.Boundary.Host";
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* Shared-boundary components.
|
|
@@ -38,6 +40,7 @@ _boundaryTarget.BoundaryTarget.displayName = "Transition.Boundary.Target";
|
|
|
38
40
|
* - `Boundary.View` for passive/shared elements.
|
|
39
41
|
* - `Boundary.Trigger` for tappable elements that start navigation.
|
|
40
42
|
* - `Boundary.Target` to measure a nested descendant instead of the owner.
|
|
43
|
+
* - `Boundary.Host` to make nested portal placement explicit.
|
|
41
44
|
*/
|
|
42
45
|
const Boundary = exports.Boundary = {
|
|
43
46
|
/**
|
|
@@ -51,6 +54,10 @@ const Boundary = exports.Boundary = {
|
|
|
51
54
|
/**
|
|
52
55
|
* Optional nested measurement override inside a boundary owner.
|
|
53
56
|
*/
|
|
54
|
-
Target: _boundaryTarget.BoundaryTarget
|
|
57
|
+
Target: _boundaryTarget.BoundaryTarget,
|
|
58
|
+
/**
|
|
59
|
+
* Explicit portal host for scrollable or otherwise clipped coordinate spaces.
|
|
60
|
+
*/
|
|
61
|
+
Host: _portal.Host
|
|
55
62
|
};
|
|
56
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_boundaryTarget","_createBoundaryComponent","_portal","BoundaryView","createBoundaryComponent","View","shouldAutoMeasure","BoundaryTrigger","Pressable","displayName","BoundaryTarget","Host","Boundary","exports","Trigger","Target"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AASA,MAAMI,YAAY,GAAG,IAAAC,gDAAuB,EAACC,iBAAI,EAAE;EAClDC,iBAAiB,EAAE;AACpB,CAAC,CAAC;AACF,MAAMC,eAAe,GAAG,IAAAH,gDAAuB,EAACI,sBAAS,CAAC;AAC1DL,YAAY,CAACM,WAAW,GAAG,0BAA0B;AACrDF,eAAe,CAACE,WAAW,GAAG,6BAA6B;AAC3DC,8BAAc,CAACD,WAAW,GAAG,4BAA4B;AACzDE,YAAI,CAACF,WAAW,GAAG,0BAA0B;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;AACD;AACA;EACCP,IAAI,EAAEF,YAAY;EAClB;AACD;AACA;EACCW,OAAO,EAAEP,eAAe;EACxB;AACD;AACA;EACCQ,MAAM,EAAEL,8BAAc;EACtB;AACD;AACA;EACCC,IAAI,EAAEA;AACP,CAAC","ignoreList":[]}
|