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
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Extrapolation, interpolate } from "react-native-reanimated";
|
|
4
|
-
import { ENTER_RANGE, EXIT_RANGE } from "../../../constants";
|
|
5
|
-
import { getEntry } from "../../../stores/bounds/internals/entries";
|
|
6
|
-
import { interpolateLinkStyle } from "./styles/interpolate-link-style";
|
|
7
|
-
export const createInterpolators = ({
|
|
8
|
-
getProps,
|
|
9
|
-
getLink
|
|
10
|
-
}) => {
|
|
11
|
-
"worklet";
|
|
12
|
-
|
|
13
|
-
const interpolateStyle = (tag, property, fallback) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
const props = getProps();
|
|
17
|
-
const link = getLink(tag);
|
|
18
|
-
const entering = !props.next;
|
|
19
|
-
return interpolateLinkStyle(link, property, props.progress, entering, {
|
|
20
|
-
fallback
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const interpolateBoundsFromMeasuredEntry = (tag, property, targetKey, fallback) => {
|
|
24
|
-
"worklet";
|
|
25
|
-
|
|
26
|
-
const props = getProps();
|
|
27
|
-
const entering = !props.next;
|
|
28
|
-
const range = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
29
|
-
const currentKey = props.current?.route?.key;
|
|
30
|
-
const fb = fallback ?? 0;
|
|
31
|
-
const normalizedTag = String(tag);
|
|
32
|
-
const currentEntry = currentKey ? getEntry(normalizedTag, currentKey) : null;
|
|
33
|
-
const targetEntry = getEntry(normalizedTag, targetKey);
|
|
34
|
-
const currentValue = currentEntry?.bounds?.[property] ?? fb;
|
|
35
|
-
const targetValue = targetEntry?.bounds?.[property] ?? fb;
|
|
36
|
-
return interpolate(props.progress, range, [targetValue, currentValue], Extrapolation.CLAMP);
|
|
37
|
-
};
|
|
38
|
-
const interpolateBoundsFromLink = (tag, property, fallback) => {
|
|
39
|
-
"worklet";
|
|
40
|
-
|
|
41
|
-
const props = getProps();
|
|
42
|
-
const entering = !props.next;
|
|
43
|
-
const range = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
44
|
-
const link = getLink(tag);
|
|
45
|
-
const fb = fallback ?? 0;
|
|
46
|
-
const sourceValue = link?.source?.bounds?.[property] ?? fb;
|
|
47
|
-
const destinationValue = link?.destination?.bounds?.[property] ?? fb;
|
|
48
|
-
return interpolate(props.progress, range, [sourceValue, destinationValue], Extrapolation.CLAMP);
|
|
49
|
-
};
|
|
50
|
-
const interpolateBounds = (tag, property, fallbackOrTargetKey, fallback) => {
|
|
51
|
-
"worklet";
|
|
52
|
-
|
|
53
|
-
if (typeof fallbackOrTargetKey === "string") {
|
|
54
|
-
return interpolateBoundsFromMeasuredEntry(tag, property, fallbackOrTargetKey, fallback);
|
|
55
|
-
}
|
|
56
|
-
return interpolateBoundsFromLink(tag, property, fallbackOrTargetKey);
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
interpolateStyle,
|
|
60
|
-
interpolateBounds
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=create-interpolators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Extrapolation","interpolate","ENTER_RANGE","EXIT_RANGE","getEntry","interpolateLinkStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","progress","interpolateBoundsFromMeasuredEntry","targetKey","range","currentKey","current","route","key","fb","normalizedTag","String","currentEntry","targetEntry","currentValue","bounds","targetValue","CLAMP","interpolateBoundsFromLink","sourceValue","source","destinationValue","destination","interpolateBounds","fallbackOrTargetKey"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-interpolators.ts"],"mappings":";;AAAA,SACCA,aAAa,EACbC,WAAW,QAEL,yBAAyB;AAChC,SAASC,WAAW,EAAEC,UAAU,QAAQ,oBAAoB;AAC5D,SAASC,QAAQ,QAAQ,0CAA0C;AAInE,SAASC,oBAAoB,QAAQ,iCAAiC;AAOtE,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EACnCC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,SAAS;;EAET,MAAMC,gBAAgB,GAAGA,CACxBC,GAAY,EACZC,QAAgB,EAChBC,QAAiB,KACL;IACZ,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMO,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMK,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,OAAOX,oBAAoB,CAACS,IAAI,EAAEH,QAAQ,EAAEE,KAAK,CAACI,QAAQ,EAAEF,QAAQ,EAAE;MACrEH;IACD,CAAC,CAAC;EACH,CAAC;EAED,MAAMM,kCAAkC,GAAGA,CAC1CR,GAAY,EACZC,QAAkC,EAClCQ,SAAiB,EACjBP,QAAiB,KACL;IACZ,SAAS;;IAET,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMQ,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,MAAMI,KAAK,GAAGL,QAAQ,GAAGb,WAAW,GAAGC,UAAU;IACjD,MAAMkB,UAAU,GAAGR,KAAK,CAACS,OAAO,EAAEC,KAAK,EAAEC,GAAG;IAC5C,MAAMC,EAAE,GAAGb,QAAQ,IAAI,CAAC;IACxB,MAAMc,aAAa,GAAGC,MAAM,CAACjB,GAAG,CAAC;IAEjC,MAAMkB,YAAY,GAAGP,UAAU,GAC5BjB,QAAQ,CAACsB,aAAa,EAAEL,UAAU,CAAC,GACnC,IAAI;IACP,MAAMQ,WAAW,GAAGzB,QAAQ,CAACsB,aAAa,EAAEP,SAAS,CAAC;IAEtD,MAAMW,YAAY,GAAGF,YAAY,EAAEG,MAAM,GAAGpB,QAAQ,CAAC,IAAIc,EAAE;IAC3D,MAAMO,WAAW,GAAGH,WAAW,EAAEE,MAAM,GAAGpB,QAAQ,CAAC,IAAIc,EAAE;IAEzD,OAAOxB,WAAW,CACjBY,KAAK,CAACI,QAAQ,EACdG,KAAK,EACL,CAACY,WAAW,EAAEF,YAAY,CAAC,EAC3B9B,aAAa,CAACiC,KACf,CAAC;EACF,CAAC;EAED,MAAMC,yBAAyB,GAAGA,CACjCxB,GAAY,EACZC,QAAkC,EAClCC,QAAiB,KACL;IACZ,SAAS;;IAET,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMQ,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,MAAMI,KAAK,GAAGL,QAAQ,GAAGb,WAAW,GAAGC,UAAU;IACjD,MAAMW,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMe,EAAE,GAAGb,QAAQ,IAAI,CAAC;IAExB,MAAMuB,WAAW,GAAGrB,IAAI,EAAEsB,MAAM,EAAEL,MAAM,GAAGpB,QAAQ,CAAC,IAAIc,EAAE;IAC1D,MAAMY,gBAAgB,GAAGvB,IAAI,EAAEwB,WAAW,EAAEP,MAAM,GAAGpB,QAAQ,CAAC,IAAIc,EAAE;IAEpE,OAAOxB,WAAW,CACjBY,KAAK,CAACI,QAAQ,EACdG,KAAK,EACL,CAACe,WAAW,EAAEE,gBAAgB,CAAC,EAC/BrC,aAAa,CAACiC,KACf,CAAC;EACF,CAAC;EAED,MAAMM,iBAAiB,GAAGA,CACzB7B,GAAY,EACZC,QAAkC,EAClC6B,mBAAqC,EACrC5B,QAAiB,KACL;IACZ,SAAS;;IAET,IAAI,OAAO4B,mBAAmB,KAAK,QAAQ,EAAE;MAC5C,OAAOtB,kCAAkC,CACxCR,GAAG,EACHC,QAAQ,EACR6B,mBAAmB,EACnB5B,QACD,CAAC;IACF;IAEA,OAAOsB,yBAAyB,CAACxB,GAAG,EAAEC,QAAQ,EAAE6B,mBAAmB,CAAC;EACrE,CAAC;EAED,OAAO;IACN/B,gBAAgB;IAChB8B;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Extrapolation, interpolate } from "react-native-reanimated";
|
|
4
|
-
import { ENTER_RANGE, EXIT_RANGE } from "../../../../constants";
|
|
5
|
-
/**
|
|
6
|
-
* Interpolates a numeric style property between source and destination bounds.
|
|
7
|
-
*
|
|
8
|
-
* @param link - The bounds link containing source and destination styles
|
|
9
|
-
* @param property - The style property to interpolate (e.g., "borderRadius", "opacity")
|
|
10
|
-
* @param progress - Animation progress value
|
|
11
|
-
* @param entering - Whether the screen is entering (focused) or exiting (unfocused)
|
|
12
|
-
* @param options - Optional configuration
|
|
13
|
-
* @returns The interpolated value
|
|
14
|
-
*/
|
|
15
|
-
export function interpolateLinkStyle(link, property, progress, entering, options = {}) {
|
|
16
|
-
"worklet";
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
fallback = 0
|
|
20
|
-
} = options;
|
|
21
|
-
const sourceValue = link?.source?.styles?.[property] ?? fallback;
|
|
22
|
-
const destValue = link?.destination?.styles?.[property] ?? fallback;
|
|
23
|
-
const range = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
24
|
-
return interpolate(progress, range, [sourceValue, destValue], Extrapolation.CLAMP);
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=interpolate-link-style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Extrapolation","interpolate","ENTER_RANGE","EXIT_RANGE","interpolateLinkStyle","link","property","progress","entering","options","fallback","sourceValue","source","styles","destValue","destination","range","CLAMP"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/interpolate-link-style.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,WAAW,QAAQ,yBAAyB;AACpE,SAASC,WAAW,EAAEC,UAAU,QAAQ,uBAAuB;AAO/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CACnCC,IAAuB,EACvBC,QAAgB,EAChBC,QAAgB,EAChBC,QAAiB,EACjBC,OAAgC,GAAG,CAAC,CAAC,EAC5B;EACT,SAAS;;EAET,MAAM;IAAEC,QAAQ,GAAG;EAAE,CAAC,GAAGD,OAAO;EAEhC,MAAME,WAAW,GACfN,IAAI,EAAEO,MAAM,EAAEC,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EACrE,MAAMI,SAAS,GACbT,IAAI,EAAEU,WAAW,EAAEF,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EAE1E,MAAMM,KAAK,GAAGR,QAAQ,GAAGN,WAAW,GAAGC,UAAU;EAEjD,OAAOF,WAAW,CACjBM,QAAQ,EACRS,KAAK,EACL,CAACL,WAAW,EAAEG,SAAS,CAAC,EACxBd,aAAa,CAACiB,KACf,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-target.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/components/boundary-target.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,QAA4B,MAAM,yBAAyB,CAAC;AAOnE,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc,oCACnB,mBAAmB,6CAwCzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAMlB,MAAM,OAAO,CAAC;AAqBf,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;AAE3E,UAAU,8BAA8B;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACvD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,8BAAmC,GA0L5B,KAAK,CAAC,mBAAmB,CACxC,KAAK,CAAC,yBAAyB,CAC9B,sBAAsB,CAAC,CAAC,CAAC,GACxB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CACxD,CACD,CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,mBAAmB,GAAI,QAAQ;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACrC,SAcA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,UAAU,sCAAsC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,gCAAgC,GAAI,uGAO9C,sCAAsC,SA8FxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,eAAO,MAAM,2BAA2B,GAAI,QAAQ;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;CAC3B,SA2CA,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-measurer.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-measurer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AASvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,UAAU,iBAAiB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,UAAU,CAAC;IAC3B,mBAAmB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,WAAW,GAAI,8FAQzB,iBAAiB,KAAG,eAkGtB,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MeasureBoundary } from "../types";
|
|
2
|
-
interface UseRefreshBoundaryParams {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
currentScreenKey: string;
|
|
5
|
-
preferredSourceScreenKey?: string;
|
|
6
|
-
nextScreenKey?: string;
|
|
7
|
-
linkId: string;
|
|
8
|
-
group?: string;
|
|
9
|
-
ancestorScreenKeys: string[];
|
|
10
|
-
measureBoundary: MeasureBoundary;
|
|
11
|
-
}
|
|
12
|
-
export declare const useRefreshBoundary: ({ enabled, currentScreenKey, preferredSourceScreenKey, nextScreenKey, linkId, group, ancestorScreenKeys, measureBoundary, }: UseRefreshBoundaryParams) => void;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=use-refresh-boundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,UAAU,wBAAwB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,GAAI,6HAShC,wBAAwB,SAsD1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAUnC;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ;IACpB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-owner.provider.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEN,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEvE,KAAK,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAClD,OAAO,QAAQ,CAAC,IAAI,CACpB,CAAC,OAAO,CAAC,CAAC;AAEX,UAAU,yBAAyB;IAClC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,iBAAiB,EAAE,CAClB,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,EAC5B,cAAc,EAAE,UAAU,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC5D,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1C,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CACjD;AAcD,eAAO,MAAM,4BAA4B,qLAC0I,CAAC;AAEpL,eAAO,MAAM,qBAAqB,GAAI,OAAO;IAC5C,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACpB,4CAQA,CAAC;AAEF,eAAO,MAAM,uBAAuB,wCAEnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,QAAQ;IACxC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CACjD;;;uCAQa,WAAW,CAAC,IAAI,CAAC,kBAAkB,UAAU;yCAqBN,WAAW,CAAC,IAAI,CAAC;;;;;;;CA2BrE,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ScreenPairKey } from "../../stores/bounds/types";
|
|
2
|
-
import type { BoundsOptions } from "../../utils/bounds/types/options";
|
|
3
|
-
export type BoundaryId = string | number;
|
|
4
|
-
export type BoundaryConfigProps = Pick<BoundsOptions, "anchor" | "scaleMode" | "target" | "method">;
|
|
5
|
-
/**
|
|
6
|
-
* Boundary-specific props shared across all boundary component variants.
|
|
7
|
-
* These are the props that `createBoundaryComponent` extracts and handles
|
|
8
|
-
* internally, regardless of the underlying wrapped component.
|
|
9
|
-
*/
|
|
10
|
-
export interface BoundaryOwnProps extends BoundaryConfigProps {
|
|
11
|
-
/**
|
|
12
|
-
* Optional group name for collection/list scenarios.
|
|
13
|
-
* When provided, concrete boundary entries use `group:id`, while transition
|
|
14
|
-
* links stay keyed by the member `id` inside the active screen pair.
|
|
15
|
-
*/
|
|
16
|
-
group?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Whether this boundary should participate in matching and measurement.
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
enabled?: boolean;
|
|
22
|
-
id: BoundaryId;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Full props for a boundary component wrapping a component with props `P`.
|
|
26
|
-
* Omits `id` from the wrapped component's props (since boundary uses its own `id`).
|
|
27
|
-
*/
|
|
28
|
-
export type BoundaryComponentProps<P extends object> = Omit<P, "id"> & BoundaryOwnProps;
|
|
29
|
-
export type MeasureTarget = {
|
|
30
|
-
type: "source";
|
|
31
|
-
pairKey: ScreenPairKey;
|
|
32
|
-
} | {
|
|
33
|
-
type: "destination";
|
|
34
|
-
pairKey: ScreenPairKey;
|
|
35
|
-
};
|
|
36
|
-
export type MeasureBoundary = (target: MeasureTarget) => void;
|
|
37
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,aAAa,EACb,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAC5C,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC5D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,EAAE,UAAU,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,GACnE,gBAAgB,CAAC;AAElB,MAAM,MAAM,aAAa,GACtB;IACA,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;CACtB,GACD;IACA,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;CACtB,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destination-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/destination-signals.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AA+CtC,eAAO,MAAM,mCAAmC,GAAI,QAAQ;IAC3D,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,aAAa,GAAG,IA6DnB,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { View } from "react-native";
|
|
2
|
-
import { type AnimatedRef, type MeasuredDimensions } from "react-native-reanimated";
|
|
3
|
-
import type { ScrollGestureState } from "../../../types/gesture.types";
|
|
4
|
-
export declare const adjustedMeasuredBoundsForOverscrollDeltas: (measured: MeasuredDimensions, scrollState: ScrollGestureState | null) => MeasuredDimensions;
|
|
5
|
-
export declare const applyVisibilityBlockOffset: (measured: MeasuredDimensions, offset: number) => MeasuredDimensions;
|
|
6
|
-
export declare const isMeasurementInViewport: (measured: MeasuredDimensions, viewportWidth: number, viewportHeight: number) => boolean;
|
|
7
|
-
export declare const measureWithOverscrollAwareness: (ref: AnimatedRef<View>, scrollState: ScrollGestureState | null) => MeasuredDimensions | null;
|
|
8
|
-
//# sourceMappingURL=measured-bounds.d.ts.map
|
package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measured-bounds.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/measured-bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,kBAAkB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEX,kBAAkB,EAClB,MAAM,8BAA8B,CAAC;AAatC,eAAO,MAAM,yCAAyC,GACrD,UAAU,kBAAkB,EAC5B,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAqBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACtC,UAAU,kBAAkB,EAC5B,QAAQ,MAAM,KACZ,kBAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,UAAU,kBAAkB,EAC5B,eAAe,MAAM,EACrB,gBAAgB,MAAM,KACpB,OAkBF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,KAAK,WAAW,CAAC,IAAI,CAAC,EACtB,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAAkB,GAAG,IAMvB,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/refresh-signals.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,cAAc,EAEd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,KAAK,qBAAqB,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAuCF,eAAO,MAAM,wBAAwB,GAAI,QAAQ;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,qBAAqB,GAAG,IA8F3B,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/source-signals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AAItC,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,6BAA6B,GAAI,QAAQ;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,mBAAmB,GAAG,IAuCzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masked-view.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/integrations/masked-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAchF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAClC,QAAQ,EACR,KAAK,EAAE,UAAe,GACtB,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,2WAqBA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
-
import type { BoundsInterpolationProps } from "../../../types/bounds.types";
|
|
3
|
-
import type { BoundId } from "../types/options";
|
|
4
|
-
import type { LinkAccessor } from "./create-link-accessor";
|
|
5
|
-
type InterpolatorParams = {
|
|
6
|
-
getProps: () => BoundsInterpolationProps;
|
|
7
|
-
getLink: LinkAccessor["getLink"];
|
|
8
|
-
};
|
|
9
|
-
export declare const createInterpolators: ({ getProps, getLink, }: InterpolatorParams) => {
|
|
10
|
-
interpolateStyle: (tag: BoundId, property: string, fallback?: number) => number;
|
|
11
|
-
interpolateBounds: (tag: BoundId, property: keyof MeasuredDimensions, fallbackOrTargetKey?: number | string, fallback?: number) => number;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=create-interpolators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-interpolators.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-interpolators.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,kBAAkB,EACvB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;IACzC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,kBAAkB;4BAId,OAAO,YACF,MAAM,aACL,MAAM,KACf,MAAM;6BAkEH,OAAO,YACF,MAAM,kBAAkB,wBACZ,MAAM,GAAG,MAAM,aAC1B,MAAM,KACf,MAAM;CAmBT,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BoundsLink } from "../../../../types/bounds.types";
|
|
2
|
-
type InterpolateStyleOptions = {
|
|
3
|
-
fallback?: number;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Interpolates a numeric style property between source and destination bounds.
|
|
7
|
-
*
|
|
8
|
-
* @param link - The bounds link containing source and destination styles
|
|
9
|
-
* @param property - The style property to interpolate (e.g., "borderRadius", "opacity")
|
|
10
|
-
* @param progress - Animation progress value
|
|
11
|
-
* @param entering - Whether the screen is entering (focused) or exiting (unfocused)
|
|
12
|
-
* @param options - Optional configuration
|
|
13
|
-
* @returns The interpolated value
|
|
14
|
-
*/
|
|
15
|
-
export declare function interpolateLinkStyle(link: BoundsLink | null, property: string, progress: number, entering: boolean, options?: InterpolateStyleOptions): number;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=interpolate-link-style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interpolate-link-style.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,KAAK,uBAAuB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,uBAA4B,GACnC,MAAM,CAkBR"}
|
package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cancelAnimation,
|
|
3
|
-
useAnimatedReaction,
|
|
4
|
-
useSharedValue,
|
|
5
|
-
withDelay,
|
|
6
|
-
withTiming,
|
|
7
|
-
} from "react-native-reanimated";
|
|
8
|
-
import { AnimationStore } from "../../../stores/animation.store";
|
|
9
|
-
import { getDestination } from "../../../stores/bounds/internals/links";
|
|
10
|
-
import { pairs } from "../../../stores/bounds/internals/state";
|
|
11
|
-
import {
|
|
12
|
-
LifecycleTransitionRequestKind,
|
|
13
|
-
SystemStore,
|
|
14
|
-
} from "../../../stores/system.store";
|
|
15
|
-
import type { MeasureBoundary } from "../types";
|
|
16
|
-
import { getInitialDestinationMeasurePairKey } from "../utils/destination-signals";
|
|
17
|
-
|
|
18
|
-
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
19
|
-
|
|
20
|
-
interface UseInitialDestinationMeasurementParams {
|
|
21
|
-
linkId: string;
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
currentScreenKey: string;
|
|
24
|
-
preferredSourceScreenKey?: string;
|
|
25
|
-
ancestorScreenKeys: string[];
|
|
26
|
-
measureBoundary: MeasureBoundary;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const useInitialDestinationMeasurement = ({
|
|
30
|
-
linkId,
|
|
31
|
-
enabled,
|
|
32
|
-
currentScreenKey,
|
|
33
|
-
preferredSourceScreenKey,
|
|
34
|
-
ancestorScreenKeys,
|
|
35
|
-
measureBoundary,
|
|
36
|
-
}: UseInitialDestinationMeasurementParams) => {
|
|
37
|
-
const transitionProgress = AnimationStore.getValue(
|
|
38
|
-
currentScreenKey,
|
|
39
|
-
"transitionProgress",
|
|
40
|
-
);
|
|
41
|
-
const system = SystemStore.getBag(currentScreenKey);
|
|
42
|
-
const { pendingLifecycleRequestKind } = system;
|
|
43
|
-
const { blockLifecycleStart, unblockLifecycleStart } = system.actions;
|
|
44
|
-
const isBlockingLifecycleStart = useSharedValue(0);
|
|
45
|
-
const retryToken = useSharedValue(0);
|
|
46
|
-
|
|
47
|
-
const ensureLifecycleStartBlocked = () => {
|
|
48
|
-
"worklet";
|
|
49
|
-
if (isBlockingLifecycleStart.get()) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
blockLifecycleStart();
|
|
54
|
-
isBlockingLifecycleStart.set(1);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const releaseLifecycleStartBlock = () => {
|
|
58
|
-
"worklet";
|
|
59
|
-
cancelAnimation(retryToken);
|
|
60
|
-
|
|
61
|
-
if (!isBlockingLifecycleStart.get()) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
unblockLifecycleStart();
|
|
66
|
-
isBlockingLifecycleStart.set(0);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const scheduleViewportRetry = () => {
|
|
70
|
-
"worklet";
|
|
71
|
-
cancelAnimation(retryToken);
|
|
72
|
-
retryToken.set(
|
|
73
|
-
withDelay(
|
|
74
|
-
VIEWPORT_RETRY_DELAY_MS,
|
|
75
|
-
withTiming(retryToken.get() + 1, { duration: 0 }),
|
|
76
|
-
),
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
useAnimatedReaction(
|
|
81
|
-
() => {
|
|
82
|
-
"worklet";
|
|
83
|
-
const retryTick = retryToken.get();
|
|
84
|
-
|
|
85
|
-
const hasPendingOpenRequest =
|
|
86
|
-
pendingLifecycleRequestKind.get() ===
|
|
87
|
-
LifecycleTransitionRequestKind.Open;
|
|
88
|
-
|
|
89
|
-
const isWaitingForOpenToStart = transitionProgress.get() <= 0;
|
|
90
|
-
|
|
91
|
-
if (!hasPendingOpenRequest || !isWaitingForOpenToStart) {
|
|
92
|
-
return [0, retryTick] as const;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const destinationPairKey = getInitialDestinationMeasurePairKey({
|
|
96
|
-
enabled,
|
|
97
|
-
currentScreenKey,
|
|
98
|
-
preferredSourceScreenKey,
|
|
99
|
-
ancestorScreenKeys,
|
|
100
|
-
linkId,
|
|
101
|
-
linkState: ancestorScreenKeys.length ? pairs.get() : undefined,
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
return [destinationPairKey, retryTick] as const;
|
|
105
|
-
},
|
|
106
|
-
([destinationPairKey]) => {
|
|
107
|
-
"worklet";
|
|
108
|
-
if (!destinationPairKey) {
|
|
109
|
-
releaseLifecycleStartBlock();
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
ensureLifecycleStartBlocked();
|
|
114
|
-
measureBoundary({
|
|
115
|
-
type: "destination",
|
|
116
|
-
pairKey: destinationPairKey,
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
const destinationAttached =
|
|
120
|
-
getDestination(destinationPairKey, linkId) !== null;
|
|
121
|
-
|
|
122
|
-
if (destinationAttached) {
|
|
123
|
-
releaseLifecycleStartBlock();
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
scheduleViewportRetry();
|
|
128
|
-
},
|
|
129
|
-
);
|
|
130
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ScreenPairKey } from "../../stores/bounds/types";
|
|
2
|
-
import type { BoundsOptions } from "../../utils/bounds/types/options";
|
|
3
|
-
|
|
4
|
-
export type BoundaryId = string | number;
|
|
5
|
-
|
|
6
|
-
export type BoundaryConfigProps = Pick<
|
|
7
|
-
BoundsOptions,
|
|
8
|
-
"anchor" | "scaleMode" | "target" | "method"
|
|
9
|
-
>;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Boundary-specific props shared across all boundary component variants.
|
|
13
|
-
* These are the props that `createBoundaryComponent` extracts and handles
|
|
14
|
-
* internally, regardless of the underlying wrapped component.
|
|
15
|
-
*/
|
|
16
|
-
export interface BoundaryOwnProps extends BoundaryConfigProps {
|
|
17
|
-
/**
|
|
18
|
-
* Optional group name for collection/list scenarios.
|
|
19
|
-
* When provided, concrete boundary entries use `group:id`, while transition
|
|
20
|
-
* links stay keyed by the member `id` inside the active screen pair.
|
|
21
|
-
*/
|
|
22
|
-
group?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Whether this boundary should participate in matching and measurement.
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
enabled?: boolean;
|
|
28
|
-
id: BoundaryId;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Full props for a boundary component wrapping a component with props `P`.
|
|
33
|
-
* Omits `id` from the wrapped component's props (since boundary uses its own `id`).
|
|
34
|
-
*/
|
|
35
|
-
export type BoundaryComponentProps<P extends object> = Omit<P, "id"> &
|
|
36
|
-
BoundaryOwnProps;
|
|
37
|
-
|
|
38
|
-
export type MeasureTarget =
|
|
39
|
-
| {
|
|
40
|
-
type: "source";
|
|
41
|
-
pairKey: ScreenPairKey;
|
|
42
|
-
}
|
|
43
|
-
| {
|
|
44
|
-
type: "destination";
|
|
45
|
-
pairKey: ScreenPairKey;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type MeasureBoundary = (target: MeasureTarget) => void;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createPendingPairKey,
|
|
3
|
-
createScreenPairKey,
|
|
4
|
-
getDestinationScreenKeyFromPairKey,
|
|
5
|
-
getSourceScreenKeyFromPairKey,
|
|
6
|
-
} from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
7
|
-
import {
|
|
8
|
-
getDestination,
|
|
9
|
-
getSource,
|
|
10
|
-
} from "../../../stores/bounds/internals/links";
|
|
11
|
-
import type {
|
|
12
|
-
LinkPairsState,
|
|
13
|
-
ScreenPairKey,
|
|
14
|
-
} from "../../../stores/bounds/types";
|
|
15
|
-
|
|
16
|
-
const findPendingSourcePairKey = (
|
|
17
|
-
linkState: LinkPairsState | undefined,
|
|
18
|
-
linkId: string,
|
|
19
|
-
): ScreenPairKey | null => {
|
|
20
|
-
"worklet";
|
|
21
|
-
if (!linkState) return null;
|
|
22
|
-
|
|
23
|
-
for (const pairKey in linkState) {
|
|
24
|
-
const sourceScreenKey = getSourceScreenKeyFromPairKey(pairKey);
|
|
25
|
-
|
|
26
|
-
if (pairKey !== createPendingPairKey(sourceScreenKey)) {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (linkState[pairKey]?.links?.[linkId]?.source) {
|
|
31
|
-
return pairKey;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return null;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
// Passive Boundary.View sources in nested routes can already live in the final
|
|
39
|
-
// ancestor pair, even before the destination side has attached.
|
|
40
|
-
const findAncestorSourcePairKey = (
|
|
41
|
-
linkState: LinkPairsState | undefined,
|
|
42
|
-
linkId: string,
|
|
43
|
-
destinationScreenKey: string | undefined,
|
|
44
|
-
): ScreenPairKey | null => {
|
|
45
|
-
"worklet";
|
|
46
|
-
if (!linkState || !destinationScreenKey) return null;
|
|
47
|
-
|
|
48
|
-
for (const pairKey in linkState) {
|
|
49
|
-
if (getDestinationScreenKeyFromPairKey(pairKey) !== destinationScreenKey) {
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (linkState[pairKey]?.links?.[linkId]?.source) {
|
|
54
|
-
return pairKey;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return null;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const getInitialDestinationMeasurePairKey = (params: {
|
|
62
|
-
enabled: boolean;
|
|
63
|
-
currentScreenKey: string;
|
|
64
|
-
preferredSourceScreenKey?: string;
|
|
65
|
-
ancestorScreenKeys?: readonly string[];
|
|
66
|
-
linkId: string;
|
|
67
|
-
linkState?: LinkPairsState;
|
|
68
|
-
}): ScreenPairKey | null => {
|
|
69
|
-
"worklet";
|
|
70
|
-
const {
|
|
71
|
-
enabled,
|
|
72
|
-
currentScreenKey,
|
|
73
|
-
preferredSourceScreenKey,
|
|
74
|
-
ancestorScreenKeys,
|
|
75
|
-
linkId,
|
|
76
|
-
linkState,
|
|
77
|
-
} = params;
|
|
78
|
-
|
|
79
|
-
if (!enabled) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Initial screens inside nested navigators measure concrete child views, but
|
|
84
|
-
// the transition pair belongs to the nearest animated ancestor route.
|
|
85
|
-
const ancestorPairKey = findAncestorSourcePairKey(
|
|
86
|
-
linkState,
|
|
87
|
-
linkId,
|
|
88
|
-
ancestorScreenKeys?.[0],
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
// Trigger sources start as pending screen<> links. Boundary.View sources may
|
|
92
|
-
// already be in the ancestor pair, so only scan pending when needed.
|
|
93
|
-
const pendingSourcePairKey = preferredSourceScreenKey
|
|
94
|
-
? createPendingPairKey(preferredSourceScreenKey)
|
|
95
|
-
: ancestorPairKey
|
|
96
|
-
? null
|
|
97
|
-
: findPendingSourcePairKey(linkState, linkId);
|
|
98
|
-
|
|
99
|
-
const sourceScreenKey = preferredSourceScreenKey
|
|
100
|
-
? preferredSourceScreenKey
|
|
101
|
-
: getSourceScreenKeyFromPairKey(
|
|
102
|
-
ancestorPairKey ?? pendingSourcePairKey ?? "",
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
if (!sourceScreenKey) return null;
|
|
106
|
-
|
|
107
|
-
// Non-nested destinations attach to their own route. Nested initial screens
|
|
108
|
-
// attach to the animated ancestor route unless that pair already exists.
|
|
109
|
-
const destinationScreenKey =
|
|
110
|
-
ancestorPairKey || preferredSourceScreenKey || !ancestorScreenKeys?.[0]
|
|
111
|
-
? currentScreenKey
|
|
112
|
-
: ancestorScreenKeys[0];
|
|
113
|
-
|
|
114
|
-
const destinationPairKey =
|
|
115
|
-
ancestorPairKey ??
|
|
116
|
-
createScreenPairKey(sourceScreenKey, destinationScreenKey);
|
|
117
|
-
|
|
118
|
-
const hasDestinationLink =
|
|
119
|
-
getDestination(destinationPairKey, linkId) !== null;
|
|
120
|
-
|
|
121
|
-
const hasAttachableSourceLink =
|
|
122
|
-
getSource(destinationPairKey, linkId) !== null ||
|
|
123
|
-
(!!pendingSourcePairKey &&
|
|
124
|
-
getSource(pendingSourcePairKey, linkId) !== null);
|
|
125
|
-
|
|
126
|
-
return hasAttachableSourceLink && !hasDestinationLink
|
|
127
|
-
? destinationPairKey
|
|
128
|
-
: null;
|
|
129
|
-
};
|