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
|
@@ -3,17 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.getAncestorKeyState = getAncestorKeyState;
|
|
6
7
|
exports.getAncestorKeys = getAncestorKeys;
|
|
8
|
+
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
7
9
|
/**
|
|
8
|
-
* Builds
|
|
9
|
-
*
|
|
10
|
-
*
|
|
10
|
+
* Builds nested navigator ancestor keys from immediate parent to root.
|
|
11
|
+
* The nearest ancestor destination pair lets child routes attach measurements
|
|
12
|
+
* to the transition owned by the parent stack.
|
|
11
13
|
*/
|
|
12
|
-
function
|
|
14
|
+
function getAncestorKeyState(current) {
|
|
13
15
|
const ancestors = [];
|
|
16
|
+
let ancestorDestinationPairKey;
|
|
14
17
|
const nav = current.navigation;
|
|
15
18
|
if (typeof nav?.getParent !== "function") {
|
|
16
|
-
return
|
|
19
|
+
return {
|
|
20
|
+
ancestorKeys: ancestors
|
|
21
|
+
};
|
|
17
22
|
}
|
|
18
23
|
let parent = nav.getParent();
|
|
19
24
|
while (parent) {
|
|
@@ -22,10 +27,20 @@ function getAncestorKeys(current) {
|
|
|
22
27
|
const focusedRoute = state.routes[state.index];
|
|
23
28
|
if (focusedRoute?.key) {
|
|
24
29
|
ancestors.push(focusedRoute.key);
|
|
30
|
+
const previousRoute = state.routes[state.index - 1];
|
|
31
|
+
if (!ancestorDestinationPairKey && previousRoute?.key) {
|
|
32
|
+
ancestorDestinationPairKey = (0, _linkPairs.createScreenPairKey)(previousRoute.key, focusedRoute.key);
|
|
33
|
+
}
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
36
|
parent = parent.getParent();
|
|
28
37
|
}
|
|
29
|
-
return
|
|
38
|
+
return {
|
|
39
|
+
ancestorKeys: ancestors,
|
|
40
|
+
ancestorDestinationPairKey
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function getAncestorKeys(current) {
|
|
44
|
+
return getAncestorKeyState(current).ancestorKeys;
|
|
30
45
|
}
|
|
31
46
|
//# sourceMappingURL=get-ancestor-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","getAncestorKeyState","current","ancestors","ancestorDestinationPairKey","nav","navigation","getParent","ancestorKeys","parent","state","getState","routes","index","undefined","focusedRoute","key","push","previousRoute","createScreenPairKey","getAncestorKeys"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AASA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAClCC,OAA4B,EACT;EACnB,MAAMC,SAAmB,GAAG,EAAE;EAC9B,IAAIC,0BAAqD;EACzD,MAAMC,GAAG,GAAGH,OAAO,CAACI,UAAiB;EAErC,IAAI,OAAOD,GAAG,EAAEE,SAAS,KAAK,UAAU,EAAE;IACzC,OAAO;MAAEC,YAAY,EAAEL;IAAU,CAAC;EACnC;EAEA,IAAIM,MAAM,GAAGJ,GAAG,CAACE,SAAS,CAAC,CAAC;EAE5B,OAAOE,MAAM,EAAE;IACd,MAAMC,KAAK,GAAGD,MAAM,CAACE,QAAQ,CAAC,CAAC;IAC/B,IAAID,KAAK,EAAEE,MAAM,IAAIF,KAAK,CAACG,KAAK,KAAKC,SAAS,EAAE;MAC/C,MAAMC,YAAY,GAAGL,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,CAAC;MAC9C,IAAIE,YAAY,EAAEC,GAAG,EAAE;QACtBb,SAAS,CAACc,IAAI,CAACF,YAAY,CAACC,GAAG,CAAC;QAEhC,MAAME,aAAa,GAAGR,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,GAAG,CAAC,CAAC;QACnD,IAAI,CAACT,0BAA0B,IAAIc,aAAa,EAAEF,GAAG,EAAE;UACtDZ,0BAA0B,GAAG,IAAAe,8BAAmB,EAC/CD,aAAa,CAACF,GAAG,EACjBD,YAAY,CAACC,GACd,CAAC;QACF;MACD;IACD;IACAP,MAAM,GAAGA,MAAM,CAACF,SAAS,CAAC,CAAC;EAC5B;EAEA,OAAO;IACNC,YAAY,EAAEL,SAAS;IACvBC;EACD,CAAC;AACF;AAEO,SAASgB,eAAeA,CAAClB,OAA4B,EAAY;EACvE,OAAOD,mBAAmB,CAACC,OAAO,CAAC,CAACM,YAAY;AACjD","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useOriginContext = exports.OriginProvider = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
|
+
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
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); }
|
|
13
|
+
const {
|
|
14
|
+
OriginProvider,
|
|
15
|
+
useOriginContext
|
|
16
|
+
} = (0, _createProvider.default)("Origin", {
|
|
17
|
+
guarded: true
|
|
18
|
+
})(({
|
|
19
|
+
children
|
|
20
|
+
}) => {
|
|
21
|
+
const originRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
22
|
+
return {
|
|
23
|
+
value: {
|
|
24
|
+
originRef
|
|
25
|
+
},
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
27
|
+
style: styles.container,
|
|
28
|
+
collapsable: false,
|
|
29
|
+
ref: originRef,
|
|
30
|
+
children: children
|
|
31
|
+
})
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
exports.useOriginContext = useOriginContext;
|
|
35
|
+
exports.OriginProvider = OriginProvider;
|
|
36
|
+
const styles = _reactNative.StyleSheet.create({
|
|
37
|
+
container: {
|
|
38
|
+
flex: 1
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=origin.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_interopRequireWildcard","_createProvider","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OriginProvider","useOriginContext","createProvider","guarded","children","originRef","useAnimatedRef","value","jsx","View","style","styles","container","collapsable","ref","exports","StyleSheet","create","flex"],"s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CAAA,WAAAM,CAAA,KAAAT,CAAA,EAAAG,CAAA;AASlD,MAAM;EAAEgB,cAAc;EAAEC;AAAiB,CAAC,GAAG,IAAAC,uBAAc,EAAC,QAAQ,EAAE;EAC5EC,OAAO,EAAE;AACV,CAAC,CAAC,CAAsB,CAAC;EAAEC;AAAS,CAAC,KAAK;EACzC,MAAMC,SAAS,GAAG,IAAAC,qCAAc,EAAO,CAAC;EAExC,OAAO;IACNC,KAAK,EAAE;MACNF;IACD,CAAC;IACDD,QAAQ,eACP,IAAAxB,WAAA,CAAA4B,GAAA,EAAChC,sBAAA,CAAAO,OAAQ,CAAC0B,IAAI;MACbC,KAAK,EAAEC,MAAM,CAACC,SAAU;MACxBC,WAAW,EAAE,KAAM;MACnBC,GAAG,EAAET,SAAU;MAAAD,QAAA,EAEdA;IAAQ,CACK;EAEjB,CAAC;AACF,CAAC,CAAC;AAACW,OAAA,CAAAd,gBAAA,GAAAA,gBAAA;AAAAc,OAAA,CAAAf,cAAA,GAAAA,cAAA;AAEH,MAAMW,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAChCL,SAAS,EAAE;IAAEM,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.shouldSlotInherit = exports.STYLE_RESET_VALUES = exports.PROP_RESET_VALUES = void 0;
|
|
7
|
+
var _naming = require("../../../components/boundary/portal/utils/naming");
|
|
7
8
|
var _constants = require("../../../constants");
|
|
8
9
|
const IDENTITY_TRANSFORM = [{
|
|
9
10
|
translateX: 0
|
|
@@ -67,6 +68,7 @@ const STYLE_RESET_VALUES = exports.STYLE_RESET_VALUES = {
|
|
|
67
68
|
shadowRadius: 0
|
|
68
69
|
};
|
|
69
70
|
const PROP_RESET_VALUES = exports.PROP_RESET_VALUES = {
|
|
71
|
+
hostName: _naming.PORTAL_HOST_NAME_RESET_VALUE,
|
|
70
72
|
pointerEvents: "auto"
|
|
71
73
|
};
|
|
72
74
|
const LOCAL_ONLY_STYLE_SLOT_IDS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_naming","require","_constants","IDENTITY_TRANSFORM","translateX","translateY","scale","scaleX","scaleY","STYLE_RESET_VALUES","exports","transform","opacity","zIndex","elevation","overflow","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderStartColor","borderEndColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","PROP_RESET_VALUES","hostName","PORTAL_HOST_NAME_RESET_VALUE","pointerEvents","LOCAL_ONLY_STYLE_SLOT_IDS","content","backdrop","surface","NAVIGATION_MASK_ELEMENT_STYLE_ID","NAVIGATION_MASK_CONTAINER_STYLE_ID","shouldSlotInherit","slotId","Object","prototype","hasOwnProperty","call"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAKA,MAAME,kBAAkB,GAAG,CAC1B;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,KAAK,EAAE;AAAE,CAAC,EACZ;EAAEC,MAAM,EAAE;AAAE,CAAC,EACb;EAAEC,MAAM,EAAE;AAAE,CAAC,CACJ;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,kBAA2C,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAC1DE,SAAS,EAAER,kBAAkB;EAC7BC,UAAU,EAAE,C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MC,iBAAiB,GAAIC,MAAc,IAAK;EACpD,SAAS;;EACT;EACA,OAAO,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAC3CX,yBAAyB,EACzBO,MACD,CAAC;AACF,CAAC;AAAC5C,OAAA,CAAA2C,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.areResettableStatesBySlotEqual = void 0;
|
|
7
|
+
const areRecordsEqual = (left, right) => {
|
|
8
|
+
"worklet";
|
|
9
|
+
|
|
10
|
+
if (left === right) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
if (!left || !right) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
for (const key in left) {
|
|
17
|
+
if (left[key] !== right[key]) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
for (const key in right) {
|
|
22
|
+
if (!(key in left)) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
};
|
|
28
|
+
const areResettableStatesEqual = (left, right) => {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
if (left === right) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (!left || !right) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return areRecordsEqual(left.styleKeys, right.styleKeys) && areRecordsEqual(left.styleResetValues, right.styleResetValues) && areRecordsEqual(left.propKeys, right.propKeys) && areRecordsEqual(left.propResetValues, right.propResetValues);
|
|
38
|
+
};
|
|
39
|
+
const areResettableStatesBySlotEqual = (left, right) => {
|
|
40
|
+
"worklet";
|
|
41
|
+
|
|
42
|
+
if (left === right) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
for (const slotId in left) {
|
|
46
|
+
if (!areResettableStatesEqual(left[slotId], right[slotId])) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
for (const slotId in right) {
|
|
51
|
+
if (!(slotId in left)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
};
|
|
57
|
+
exports.areResettableStatesBySlotEqual = areResettableStatesBySlotEqual;
|
|
58
|
+
//# sourceMappingURL=are-resettable-states-equal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["areRecordsEqual","left","right","key","areResettableStatesEqual","styleKeys","styleResetValues","propKeys","propResetValues","areResettableStatesBySlotEqual","slotId","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts"],"mappings":";;;;;;AAEA,MAAMA,eAAe,GAAGA,CACvBC,IAAyC,EACzCC,KAA0C,KACtC;EACJ,SAAS;;EACT,IAAID,IAAI,KAAKC,KAAK,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,IAAI,CAACD,IAAI,IAAI,CAACC,KAAK,EAAE;IACpB,OAAO,KAAK;EACb;EAEA,KAAK,MAAMC,GAAG,IAAIF,IAAI,EAAE;IACvB,IAAIA,IAAI,CAACE,GAAG,CAAC,KAAKD,KAAK,CAACC,GAAG,CAAC,EAAE;MAC7B,OAAO,KAAK;IACb;EACD;EAEA,KAAK,MAAMA,GAAG,IAAID,KAAK,EAAE;IACxB,IAAI,EAAEC,GAAG,IAAIF,IAAI,CAAC,EAAE;MACnB,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,MAAMG,wBAAwB,GAAGA,CAChCH,IAAqD,EACrDC,KAAsD,KAClD;EACJ,SAAS;;EACT,IAAID,IAAI,KAAKC,KAAK,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,IAAI,CAACD,IAAI,IAAI,CAACC,KAAK,EAAE;IACpB,OAAO,KAAK;EACb;EAEA,OACCF,eAAe,CAACC,IAAI,CAACI,SAAS,EAAEH,KAAK,CAACG,SAAS,CAAC,IAChDL,eAAe,CAACC,IAAI,CAACK,gBAAgB,EAAEJ,KAAK,CAACI,gBAAgB,CAAC,IAC9DN,eAAe,CAACC,IAAI,CAACM,QAAQ,EAAEL,KAAK,CAACK,QAAQ,CAAC,IAC9CP,eAAe,CAACC,IAAI,CAACO,eAAe,EAAEN,KAAK,CAACM,eAAe,CAAC;AAE9D,CAAC;AAEM,MAAMC,8BAA8B,GAAGA,CAC7CR,IAAiC,EACjCC,KAAkC,KAC9B;EACJ,SAAS;;EACT,IAAID,IAAI,KAAKC,KAAK,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,KAAK,MAAMQ,MAAM,IAAIT,IAAI,EAAE;IAC1B,IAAI,CAACG,wBAAwB,CAACH,IAAI,CAACS,MAAM,CAAC,EAAER,KAAK,CAACQ,MAAM,CAAC,CAAC,EAAE;MAC3D,OAAO,KAAK;IACb;EACD;EAEA,KAAK,MAAMA,MAAM,IAAIR,KAAK,EAAE;IAC3B,IAAI,EAAEQ,MAAM,IAAIT,IAAI,CAAC,EAAE;MACtB,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAACU,OAAA,CAAAF,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "areResettableStatesBySlotEqual", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _areResettableStatesEqual.areResettableStatesBySlotEqual;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
exports.reuseEqualResolvedSlots = exports.resolveSlotStyles = void 0;
|
|
7
13
|
var _constants = require("../../constants");
|
|
8
14
|
var _materializeSlot = require("./materialize-slot");
|
|
9
15
|
var _slotState = require("./slot-state");
|
|
16
|
+
var _areResettableStatesEqual = require("./are-resettable-states-equal");
|
|
10
17
|
const getForwardedSlot = (slot, hasAnyKeys) => {
|
|
11
18
|
"worklet";
|
|
12
19
|
|
package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_materializeSlot","_slotState","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","getResolvedSlotState","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","materializeResolvedSlot","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","shouldSlotInherit","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","exports","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts"],"mappings":";;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAiBA,MAAMG,gBAAgB,GAA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CuC,kBAAkB,CAACxC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;AAED,MAAM8C,wBAAwB,GAAGA,CAChC/C,OAAiC,EACjCC,MAAc,KACV;EACJ,SAAS;;EACT,MAAM+C,mBAAmB,GACxB,IAAAjC,4BAAiB,EAACd,MAAM,CAAC,IACzBD,OAAO,CAACgB,iBAAiB,CAACf,MAAM,CAAC,KAAK7B,SAAS;EAEhD,OAAO,CAAC2B,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC+C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAIjD,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACyC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC/C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CuC,kBAAkB,CAACxC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,MAAMiD,iBAAiB,GAAGA,CAAC;EACjC/C,eAAe;EACfa,iBAAiB;EACjByB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMtB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMlB,OAAO,GAAG;IACfG,eAAe;IACfa,iBAAiB;IACjByB,yBAAyB;IACzBtB,iBAAiB;IACjBD;EACD,CAAC;EAEDwB,kBAAkB,CAAC1C,OAAO,CAAC;EAC3B8C,oBAAoB,CAAC9C,OAAO,CAAC;EAC7BiD,mBAAmB,CAACjD,OAAO,CAAC;EAE5B,OAAO;IACNmB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC;AAACqB,OAAA,CAAAW,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_constants","require","_materializeSlot","_slotState","_areResettableStatesEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","getResolvedSlotState","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","materializeResolvedSlot","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","shouldSlotInherit","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","exports","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts"],"mappings":";;;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAOA,IAAAG,yBAAA,GAAAH,OAAA;AAWA,MAAMI,gBAAgB,GAAGA,CACxBC,IAA+C,EAC/CC,UAAmB,KACf;EACJ,SAAS;;EAET,IAAI,CAACA,UAAU,EAAE;IAChB,OAAOC,SAAS;EACjB;EAEA,OAAOF,IAAI;AACZ,CAAC;AAED,MAAMG,mBAAmB,GAAGA,CAC3BC,kBAA2B,EAC3BC,iBAA0B,KACtB;EACJ,SAAS;;EACT,OAAOD,kBAAkB,IAAIC,iBAAiB;AAC/C,CAAC;AAED,MAA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AAO,CAAC2B,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC+C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAIjD,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACyC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC/C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CuC,kBAAkB,CAACxC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,MAAMiD,iBAAiB,GAAGA,CAAC;EACjC/C,eAAe;EACfa,iBAAiB;EACjByB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMtB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMlB,OAAO,GAAG;IACfG,eAAe;IACfa,iBAAiB;IACjByB,yBAAyB;IACzBtB,iBAAiB;IACjBD;EACD,CAAC;EAEDwB,kBAAkB,CAAC1C,OAAO,CAAC;EAC3B8C,oBAAoB,CAAC9C,OAAO,CAAC;EAC7BiD,mBAAmB,CAACjD,OAAO,CAAC;EAE5B,OAAO;IACNmB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC;AAACqB,OAAA,CAAAW,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_animation","_system","_visibilityBlockOffset","_descriptors","_visibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","useWindowDimensions","currentScreenKey","useDescriptorDerivations","entering","transitionProgress","AnimationStore","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","SystemStore","hasVisibilityGateOpened","useSharedValue","shouldBlockVisibility","useAnimatedReaction","resolveScreenVisibilityGate","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","useAnimatedStyle","offset","getVisibilityBlockOffset","transform","translateY","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AAEO,MAAMO,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACxC,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAM;IAAEC,QAAQ;IAAEC;EAAmB,CAAC,GACrCC,yBAAc,CAACC,MAAM,CAACL,gBAAgB,CAAC;EAExC,MAAM;IAAEM,+BAA+B;IAAEC;EAA4B,CAAC,GACrEC,mBAAW,CAACH,MAAM,CAACL,gBAAgB,CAAC;EAErC,MAAMS,uBAAuB,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EACrD,MAAMC,qBAAqB,GAAG,IAAAD,qCAAc,EAAC,CAACb,iBAAiB,CAAC;;EAEhE;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACC,IAAAe,0CAAmB,EAClB,MAAM;IACL,SAAS;;IAET,OAAO,IAAAC,2CAA2B,EAAC;MAClChB,iBAAiB;MACjBY,uBAAuB,EAAEA,uBAAuB,CAACK,GAAG,CAAC,CAAC;MACtDR,+BAA+B,EAAEA,+BAA+B,CAACQ,GAAG,CAAC,CAAC;MACtEP,2BAA2B,EAAEA,2BAA2B,CAACO,GAAG,CAAC,CAAC;MAC9DC,QAAQ,EAAEZ,kBAAkB,CAACW,GAAG,CAAC,CAAC;MAClCZ,QAAQ,EAAEA,QAAQ,CAACY,GAAG,CAAC;IACxB,CAAC,CAAC;EACH,CAAC,EACAE,IAAI,IAAK;IACT,SAAS;;IAET,IAAIA,IAAI,CAACC,cAAc,EAAE;MACxBR,uBAAuB,CAACS,GAAG,CAAC,IAAI,CAAC;IAClC;IAEAP,qBAAqB,CAACO,GAAG,CAACF,IAAI,CAACG,WAAW,CAAC;EAC5C,CACD,CAAC;EAED,MAAMC,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT;AACF;AACA;AACA;AACA;AACA;AACA;IACE,MAAMC,MAAM,GAAG,IAAAC,+CAAwB,EAACzB,MAAM,CAAC;IAE/C,OAAO;MACN0B,SAAS,EAAE,CACV;QACCC,UAAU,EAAEd,qBAAqB,CAACG,GAAG,CAAC,CAAC,GAAGQ,MAAM,GAAG;MACpD,CAAC;IAEH,CAAC;EACF,CAAC,CAAC;EAEF,MAAMI,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNC,aAAa,EAAEjB,qBAAqB,CAACG,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNM,aAAa;IACbM;EACD,CAAC;AACF,CAAC;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_animation","_system","_visibilityBlockOffset","_descriptors","_visibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","useWindowDimensions","currentScreenKey","useDescriptorDerivations","entering","transitionProgress","AnimationStore","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","SystemStore","hasVisibilityGateOpened","useSharedValue","shouldBlockVisibility","useAnimatedReaction","resolveScreenVisibilityGate","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","useAnimatedStyle","offset","getVisibilityBlockOffset","transform","translateY","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/h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AIA,IAAI,CAACC,cAAc,EAAE;MACxBR,uBAAuB,CAACS,GAAG,CAAC,IAAI,CAAC;IAClC;IAEAP,qBAAqB,CAACO,GAAG,CAACF,IAAI,CAACG,WAAW,CAAC;EAC5C,CACD,CAAC;EAED,MAAMC,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT;AACF;AACA;AACA;AACA;AACA;AACA;IACE,MAAMC,MAAM,GAAG,IAAAC,+CAAwB,EAACzB,MAAM,CAAC;IAE/C,OAAO;MACN0B,SAAS,EAAE,CACV;QACCC,UAAU,EAAEd,qBAAqB,CAACG,GAAG,CAAC,CAAC,GAAGQ,MAAM,GAAG;MACpD,CAAC;IAEH,CAAC;EACF,CAAC,CAAC;EAEF,MAAMI,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNC,aAAa,EAAEjB,qBAAqB,CAACG,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNM,aAAa;IACbM,aAAa;IACbf;EACD,CAAC;AACF,CAAC;AAACkB,OAAA,CAAAjC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -26,17 +26,19 @@ const {
|
|
|
26
26
|
}) => {
|
|
27
27
|
const parentContext = (0, _react.useContext)(ScreenStylesContext);
|
|
28
28
|
const rawStylesMaps = (0, _useInterpolatedStyleMaps.useInterpolatedStylesMap)();
|
|
29
|
+
const {
|
|
30
|
+
animatedStyle,
|
|
31
|
+
animatedProps,
|
|
32
|
+
shouldBlockVisibility
|
|
33
|
+
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(isFloatingOverlay);
|
|
29
34
|
const stylesMap = (0, _useResolvedSlotStyleMap.useResolvedStylesMap)({
|
|
30
35
|
localStylesMaps: rawStylesMaps,
|
|
31
36
|
ancestorStylesMap: parentContext?.stylesMap
|
|
32
37
|
});
|
|
33
|
-
const {
|
|
34
|
-
animatedStyle,
|
|
35
|
-
animatedProps
|
|
36
|
-
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(isFloatingOverlay);
|
|
37
38
|
return {
|
|
38
39
|
value: {
|
|
39
|
-
stylesMap
|
|
40
|
+
stylesMap,
|
|
41
|
+
shouldBlockVisibility
|
|
40
42
|
},
|
|
41
43
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingOverlayLayer.FloatingOverlayLayer, {
|
|
42
44
|
enabled: isFloatingOverlay,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_floatingOverlayLayer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMaps","useInterpolatedStylesMap","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_floatingOverlayLayer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMaps","useInterpolatedStylesMap","animatedStyle","animatedProps","shouldBlockVisibility","useMaybeBlockVisibility","stylesMap","useResolvedStylesMap","localStylesMaps","ancestorStylesMap","value","jsx","FloatingOverlayLayer","enabled","View","style","styles","container","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAD,sBAAA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B,CAAC;AACF,CAAC,CAAC;AAACsB,OAAA,CAAAzB,eAAA,GAAAA,eAAA;AAAAyB,OAAA,CAAA3B,mBAAA,GAAAA,mBAAA;AAAA2B,OAAA,CAAA5B,oBAAA,GAAAA,oBAAA;AAEH,MAAM0B,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.
|
|
6
|
+
exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.getDestination = exports.getActiveGroupId = exports.ensurePairLinks = exports.ensurePairGroups = exports.createScreenPairKey = exports.createPendingPairKey = exports.createGroupTag = void 0;
|
|
7
7
|
const PAIR_SEPARATOR = "<>";
|
|
8
8
|
const createScreenPairKey = (sourceScreenKey, destinationScreenKey) => {
|
|
9
9
|
"worklet";
|
|
@@ -25,14 +25,6 @@ const getSourceScreenKeyFromPairKey = pairKey => {
|
|
|
25
25
|
return pairKey.slice(0, separatorIndex);
|
|
26
26
|
};
|
|
27
27
|
exports.getSourceScreenKeyFromPairKey = getSourceScreenKeyFromPairKey;
|
|
28
|
-
const getDestinationScreenKeyFromPairKey = pairKey => {
|
|
29
|
-
"worklet";
|
|
30
|
-
|
|
31
|
-
const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
|
|
32
|
-
if (separatorIndex === -1) return "";
|
|
33
|
-
return pairKey.slice(separatorIndex + PAIR_SEPARATOR.length);
|
|
34
|
-
};
|
|
35
|
-
exports.getDestinationScreenKeyFromPairKey = getDestinationScreenKeyFromPairKey;
|
|
36
28
|
const isScreenPairKeyForScreen = (pairKey, screenKey) => {
|
|
37
29
|
"worklet";
|
|
38
30
|
|
|
@@ -73,7 +65,6 @@ const ensurePairState = (state, pairKey) => {
|
|
|
73
65
|
state[pairKey].groups ??= {};
|
|
74
66
|
return state[pairKey];
|
|
75
67
|
};
|
|
76
|
-
exports.ensurePairState = ensurePairState;
|
|
77
68
|
const ensurePairLinks = (state, pairKey) => {
|
|
78
69
|
"worklet";
|
|
79
70
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","
|
|
1
|
+
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","isScreenPairKeyForScreen","screenKey","startsWith","endsWith","getLinkKeyFromTag","tag","getGroupKeyFromTag","createGroupTag","group","linkKey","ensurePairState","state","links","groups","ensurePairLinks","ensurePairGroups","removePairLink","pair","key","getLink","getSource","source","getDestination","destination","getActiveGroupId","activeId"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link-pairs.helpers.ts"],"mappings":";;;;;;AAWA,MAAMA,cAAc,GAAG,IAAI;AAEpB,MAAMC,mBAAmB,GAAGA,CAClCC,eAA8C,EAC9CC,oBAAwD,KACrC;EACnB,SAAS;;EACT,OAAO,GAAGD,eAAe,GAAGF,cAAc,GAAGG,oBAAoB,EAAE;AACpE,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,oBAAoB,GAChCH,eAA8C,IAC3B;EACnB,SAAS;;EACT,OAAOD,mBAAmB,CAACC,eAAe,EAAE,EAAE,CAAC;AAChD,CAAC;AAACE,OAAA,CAAAC,o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A,OAAOP,KAAK,CAACf,OAAO,CAAC;AACtB,CAAC;AAACH,OAAA,CAAAuB,cAAA,GAAAA,cAAA;AAEK,MAAMG,OAAO,GAAGA,CACtBR,KAAqB,EACrBf,OAAsB,EACtBa,OAAgB,KACI;EACpB,SAAS;;EACT,OAAOE,KAAK,CAACf,OAAO,CAAC,EAAEgB,KAAK,CAACH,OAAO,CAAC,IAAI,IAAI;AAC9C,CAAC;AAAChB,OAAA,CAAA0B,OAAA,GAAAA,OAAA;AAEK,MAAMC,SAAS,GAAGA,CACxBT,KAAqB,EACrBf,OAAsB,EACtBa,OAAgB,KACc;EAC9B,SAAS;;EACT,OAAOU,OAAO,CAACR,KAAK,EAAEf,OAAO,EAAEa,OAAO,CAAC,EAAEY,MAAM,IAAI,IAAI;AACxD,CAAC;AAAC5B,OAAA,CAAA2B,SAAA,GAAAA,SAAA;AAEK,MAAME,cAAc,GAAGA,CAC7BX,KAAqB,EACrBf,OAAsB,EACtBa,OAAgB,KACmB;EACnC,SAAS;;EACT,OAAOU,OAAO,CAACR,KAAK,EAAEf,OAAO,EAAEa,OAAO,CAAC,EAAEc,WAAW,IAAI,IAAI;AAC7D,CAAC;AAAC9B,OAAA,CAAA6B,cAAA,GAAAA,cAAA;AAEK,MAAME,gBAAgB,GAAGA,CAC/Bb,KAAqB,EACrBf,OAAsB,EACtBY,KAAe,KACK;EACpB,SAAS;;EACT,OAAOG,KAAK,CAACf,OAAO,CAAC,EAAEiB,MAAM,GAAGL,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI;AACzD,CAAC;AAAChC,OAAA,CAAA+B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clear","require","_entries","_links","_resolver","BoundStore","exports","entry","set","setEntry","get","getEntry","remove","removeEntry","link","setSource","setDestination","setActiveGroupId","getLink","getSource","getDestination","getActiveGroupId","getPair","resolveTransitionPair","cleanup","byScreen","clear"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_clear","require","_entries","_links","_resolver","BoundStore","exports","entry","set","setEntry","get","getEntry","remove","removeEntry","link","setSource","setDestination","setActiveGroupId","getLink","getSource","getDestination","getActiveGroupId","getPair","resolveTransitionPair","cleanup","byScreen","clear"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;AAYO,MAAMI,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACzBE,KAAK,EAAE;IACNC,GAAG,EAAEC,iBAAQ;IACbC,GAAG,EAAEC,iBAAQ;IACbC,MAAM,EAAEC;EACT,CAAC;EACDC,IAAI,EAAE;IACLC,SAAS,EAATA,gBAAS;IACTC,cAAc,EAAdA,qBAAc;IACdC,gBAAgB,EAAhBA,uBAAgB;IAChBC,OAAO,EAAPA,cAAO;IACPC,SAAS,EAATA,gBAAS;IACTC,cAAc,EAAdA,qBAAc;IACdC,gBAAgB,EAAhBA,uBAAgB;IAChBC,OAAO,EAAEC;EACV,CAAC;EACDC,OAAO,EAAE;IACRC,QAAQ,EAAEC;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,
|
|
1
|
+
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,KACT;EACX,SAAS;;EACT,MAAMC,QAAQ,GAAGN,mBAAmB,CAACC,KAAK,EAAEC,GAAG,CAAC;EAChD,IAAI,CAACI,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,EAAE;IACjCC,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,GAAG;MAC7BE,MAAM,EAAE,IAAI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,IAAQ;IACxE,SAAS;;IACT,MAAMK,QAAQ,GAAGL,KAAK,CAACC,GAAG,CAAC;IAC3B,IAAI,CAACI,QAAQ,EAAEH,OAAO,CAACE,SAAS,CAAC,EAAE;MAClC,OAAOJ,KAAK;IACb;IAEA,OAAOK,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;IAClC,IAAI,CAAC,IAAAgB,gBAAU,EAACf,QAAQ,CAACH,OAAO,CAAC,EAAE;MAClC,OAAOF,KAAK,CAACC,GAAG,CAAC;IAClB;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -13,10 +13,10 @@ exports.setDestination = setDestination;
|
|
|
13
13
|
exports.setSource = setSource;
|
|
14
14
|
var _linkPairs = require("../helpers/link-pairs.helpers");
|
|
15
15
|
var _state = require("./state");
|
|
16
|
-
const
|
|
16
|
+
const syncLinkStatus = link => {
|
|
17
17
|
"worklet";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
link.status = link.source ? link.destination ? "complete" : "destination-incomplete" : "source-incomplete";
|
|
20
20
|
};
|
|
21
21
|
const createLinkSide = (screenKey, bounds, styles) => {
|
|
22
22
|
"worklet";
|
|
@@ -44,12 +44,19 @@ const writeGroup = (state, pairKey, group, activeId, initialId) => {
|
|
|
44
44
|
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group) => {
|
|
45
45
|
"worklet";
|
|
46
46
|
|
|
47
|
-
const
|
|
48
|
-
if (!link) return;
|
|
47
|
+
const existingLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
49
48
|
const destination = createLinkSide(screenKey, bounds, styles);
|
|
49
|
+
const link = existingLink ?? {
|
|
50
|
+
group,
|
|
51
|
+
status: "source-incomplete",
|
|
52
|
+
source: null,
|
|
53
|
+
destination,
|
|
54
|
+
initialDestination: destination
|
|
55
|
+
};
|
|
50
56
|
link.group = group ?? link.group;
|
|
51
57
|
link.destination = destination;
|
|
52
58
|
link.initialDestination ??= destination;
|
|
59
|
+
syncLinkStatus(link);
|
|
53
60
|
writePairLink(state, pairKey, linkKey, link);
|
|
54
61
|
if (link.group) {
|
|
55
62
|
writeGroup(state, pairKey, link.group, linkKey);
|
|
@@ -73,18 +80,26 @@ const promotePendingSource = (state, pairKey, linkKey) => {
|
|
|
73
80
|
}
|
|
74
81
|
(0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
|
|
75
82
|
};
|
|
76
|
-
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
83
|
+
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAttachTarget, sourceHost) {
|
|
77
84
|
"worklet";
|
|
78
85
|
|
|
79
86
|
_state.pairs.modify(state => {
|
|
80
87
|
"worklet";
|
|
81
88
|
|
|
82
|
-
const linkKey =
|
|
83
|
-
const source = createLinkSide(screenKey, bounds, styles);
|
|
89
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
84
90
|
const pairLinks = (0, _linkPairs.ensurePairLinks)(state, pairKey);
|
|
85
91
|
const existingLink = pairLinks[linkKey];
|
|
92
|
+
|
|
93
|
+
// Refresh paths may re-measure the source without portal context;
|
|
94
|
+
// keep the previously recorded host in that case.
|
|
95
|
+
const source = {
|
|
96
|
+
...createLinkSide(screenKey, bounds, styles),
|
|
97
|
+
portalAttachTarget: portalAttachTarget ?? existingLink?.source?.portalAttachTarget,
|
|
98
|
+
sourceHost: sourceHost ?? existingLink?.source?.sourceHost
|
|
99
|
+
};
|
|
86
100
|
const link = existingLink ?? {
|
|
87
101
|
group,
|
|
102
|
+
status: "destination-incomplete",
|
|
88
103
|
source,
|
|
89
104
|
destination: null,
|
|
90
105
|
initialSource: source
|
|
@@ -92,6 +107,7 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
92
107
|
link.group = group ?? link.group;
|
|
93
108
|
link.source = source;
|
|
94
109
|
link.initialSource ??= source;
|
|
110
|
+
syncLinkStatus(link);
|
|
95
111
|
pairLinks[linkKey] = link;
|
|
96
112
|
const pendingPairKey = (0, _linkPairs.createPendingPairKey)(screenKey);
|
|
97
113
|
if (pendingPairKey !== pairKey) {
|
|
@@ -106,7 +122,7 @@ function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
106
122
|
_state.pairs.modify(state => {
|
|
107
123
|
"worklet";
|
|
108
124
|
|
|
109
|
-
const linkKey =
|
|
125
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
110
126
|
promotePendingSource(state, pairKey, linkKey);
|
|
111
127
|
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
|
|
112
128
|
return state;
|
|
@@ -118,7 +134,7 @@ function setActiveGroupId(pairKey, group, tag) {
|
|
|
118
134
|
_state.pairs.modify(state => {
|
|
119
135
|
"worklet";
|
|
120
136
|
|
|
121
|
-
writeGroup(state, pairKey, group,
|
|
137
|
+
writeGroup(state, pairKey, group, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
122
138
|
return state;
|
|
123
139
|
});
|
|
124
140
|
}
|
|
@@ -130,12 +146,12 @@ function getActiveGroupId(pairKey, group) {
|
|
|
130
146
|
function getLink(pairKey, tag) {
|
|
131
147
|
"worklet";
|
|
132
148
|
|
|
133
|
-
return (0, _linkPairs.getLink)(_state.pairs.get(), pairKey,
|
|
149
|
+
return (0, _linkPairs.getLink)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
134
150
|
}
|
|
135
|
-
const
|
|
151
|
+
const hasSourceLink = link => {
|
|
136
152
|
"worklet";
|
|
137
153
|
|
|
138
|
-
return !!link?.
|
|
154
|
+
return !!link?.source;
|
|
139
155
|
};
|
|
140
156
|
const getPendingSourceLink = (state, pairKey, linkKey) => {
|
|
141
157
|
"worklet";
|
|
@@ -149,7 +165,7 @@ function getResolvedLink(pairKey, tag) {
|
|
|
149
165
|
"worklet";
|
|
150
166
|
|
|
151
167
|
const state = _state.pairs.get();
|
|
152
|
-
const linkKey =
|
|
168
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
153
169
|
const group = (0, _linkPairs.getGroupKeyFromTag)(tag);
|
|
154
170
|
const requestedLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
155
171
|
|
|
@@ -161,8 +177,9 @@ function getResolvedLink(pairKey, tag) {
|
|
|
161
177
|
const link = requestedLink ?? fallbackPendingLink;
|
|
162
178
|
|
|
163
179
|
// Group active ids can update before the new member has a full source/destination
|
|
164
|
-
// link
|
|
165
|
-
|
|
180
|
+
// link. As soon as the requested member has source bounds, prefer it; only
|
|
181
|
+
// fall back while the requested member has no source yet.
|
|
182
|
+
if (!group || hasSourceLink(link)) {
|
|
166
183
|
return {
|
|
167
184
|
tag,
|
|
168
185
|
link
|
|
@@ -170,8 +187,8 @@ function getResolvedLink(pairKey, tag) {
|
|
|
170
187
|
}
|
|
171
188
|
const initialId = state[pairKey]?.groups?.[group]?.initialId;
|
|
172
189
|
if (initialId) {
|
|
173
|
-
const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId);
|
|
174
|
-
if (
|
|
190
|
+
const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId) ?? getPendingSourceLink(state, pairKey, initialId);
|
|
191
|
+
if (hasSourceLink(initialLink)) {
|
|
175
192
|
return {
|
|
176
193
|
tag: (0, _linkPairs.createGroupTag)(group, initialId),
|
|
177
194
|
link: initialLink
|
|
@@ -186,11 +203,11 @@ function getResolvedLink(pairKey, tag) {
|
|
|
186
203
|
function getSource(pairKey, tag) {
|
|
187
204
|
"worklet";
|
|
188
205
|
|
|
189
|
-
return (0, _linkPairs.getSource)(_state.pairs.get(), pairKey,
|
|
206
|
+
return (0, _linkPairs.getSource)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
190
207
|
}
|
|
191
208
|
function getDestination(pairKey, tag) {
|
|
192
209
|
"worklet";
|
|
193
210
|
|
|
194
|
-
return (0, _linkPairs.getDestination)(_state.pairs.get(), pairKey,
|
|
211
|
+
return (0, _linkPairs.getDestination)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
195
212
|
}
|
|
196
213
|
//# sourceMappingURL=links.js.map
|