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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","_state","
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","createLinkSide","screenKey","bounds","styles","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","promotePendingSource","sourceScreenKey","getSourceScreenKeyFromPairKey","pendingPairKey","createPendingPairKey","pendingLink","pendingGroupState","removePairLink","setSource","tag","portalAttachTarget","sourceHost","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","setDestination","setActiveGroupId","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getPendingSourceLink","getResolvedLink","getGroupKeyFromTag","requestedLink","fallbackPendingLink","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AA0BA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,G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SAAS;EAC5D,IAAIA,SAAS,EAAE;IACd,MAAMqC,WAAW,GAChB,IAAA/B,kBAAW,EAACb,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC,IACtCgC,oBAAoB,CAACvC,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC;IAEhD,IAAI+B,aAAa,CAACM,WAAW,CAAC,EAAE;MAC/B,OAAO;QACNpB,GAAG,EAAE,IAAAqB,yBAAc,EAACxC,KAAK,EAAEE,SAAS,CAAC;QACrChB,IAAI,EAAEqD;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNpB,GAAG;IACHjC;EACD,CAAC;AACF;AAEA,SAASuD,SAASA,CACjB7C,OAAsB,EACtBuB,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAuB,oBAAa,EAACpB,YAAK,CAACS,GAAG,CAAC,CAAC,EAAEnC,OAAO,EAAE,IAAA4B,4BAAiB,EAACL,GAAG,CAAC,CAAC;AACnE;AAEA,SAASwB,cAAcA,CACtB/C,OAAsB,EACtBuB,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAAyB,yBAAkB,EAACtB,YAAK,CAACS,GAAG,CAAC,CAAC,EAAEnC,OAAO,EAAE,IAAA4B,4BAAiB,EAACL,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
|
|
@@ -22,12 +22,14 @@ function resolveTransitionPair(tag, context) {
|
|
|
22
22
|
const pairKey = resolvePairKey(context);
|
|
23
23
|
const matchedLink = pairKey ? (0, _links.getResolvedLink)(pairKey, tag).link : null;
|
|
24
24
|
return {
|
|
25
|
-
sourceBounds: matchedLink?.source
|
|
25
|
+
sourceBounds: matchedLink?.source?.bounds ?? null,
|
|
26
26
|
destinationBounds: matchedLink?.destination?.bounds ?? null,
|
|
27
|
-
sourceStyles: matchedLink?.source
|
|
27
|
+
sourceStyles: matchedLink?.source?.styles ?? null,
|
|
28
28
|
destinationStyles: matchedLink?.destination?.styles ?? null,
|
|
29
|
-
sourceScreenKey: matchedLink?.source
|
|
30
|
-
destinationScreenKey: matchedLink?.destination?.screenKey ?? null
|
|
29
|
+
sourceScreenKey: matchedLink?.source?.screenKey ?? null,
|
|
30
|
+
destinationScreenKey: matchedLink?.destination?.screenKey ?? null,
|
|
31
|
+
sourcePortalAttachTarget: matchedLink?.source?.portalAttachTarget,
|
|
32
|
+
sourceHost: matchedLink?.source?.sourceHost
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
//# sourceMappingURL=resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","_links","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","createScreenPairKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","getResolvedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,cAAcA,CACtBC,OAAiC,EACV;EACvB,SAAS;;EAET,IAAIA,OAAO,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACD,OAAO,CAACE,iBAAiB,IAAI,CAACF,OAAO,CAACG,gBAAgB,EAAE,OAAO,IAAI;IACxE,OAAO,IAAAC,8BAAmB,EACzBJ,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACK,aAAa,EAAE,OAAO,IAAI;EACpE,OAAO,IAAAD,8BAAmB,EAACJ,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACK,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVP,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMQ,OAAO,GAAGT,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMS,WAAW,GAAGD,OAAO,GAAG,IAAAE,sBAAe,EAACF,OAAO,EAAED,GAAG,CAAC,CAACI,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEH,WAAW,EAAEI,MAAM,
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_links","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","createScreenPairKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","getResolvedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey","sourcePortalAttachTarget","portalAttachTarget","sourceHost"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,cAAcA,CACtBC,OAAiC,EACV;EACvB,SAAS;;EAET,IAAIA,OAAO,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACD,OAAO,CAACE,iBAAiB,IAAI,CAACF,OAAO,CAACG,gBAAgB,EAAE,OAAO,IAAI;IACxE,OAAO,IAAAC,8BAAmB,EACzBJ,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACK,aAAa,EAAE,OAAO,IAAI;EACpE,OAAO,IAAAD,8BAAmB,EAACJ,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACK,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVP,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMQ,OAAO,GAAGT,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMS,WAAW,GAAGD,OAAO,GAAG,IAAAE,sBAAe,EAACF,OAAO,EAAED,GAAG,CAAC,CAACI,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEH,WAAW,EAAEI,MAAM,EAAEC,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEN,WAAW,EAAEO,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAER,WAAW,EAAEI,MAAM,EAAEK,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEV,WAAW,EAAEO,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEX,WAAW,EAAEI,MAAM,EAAEQ,SAAS,IAAI,IAAI;IACvDC,oBAAoB,EAAEb,WAAW,EAAEO,WAAW,EAAEK,SAAS,IAAI,IAAI;IACjEE,wBAAwB,EAAEd,WAAW,EAAEI,MAAM,EAAEW,kBAAkB;IACjEC,UAAU,EAAEhB,WAAW,EAAEI,MAAM,EAAEY;EAClC,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","boundaryRegistry","exports","makeMutable","pairs"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","boundaryRegistry","exports","makeMutable","pairs"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAQO,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,kCAAW,EAAuB,CAAC,CAAC,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAG,IAAAD,kCAAW,EAAiB,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ScrollStore = void 0;
|
|
6
|
+
exports.getClampedScrollAxisDelta = exports.cloneScrollMetadataState = exports.clampScrollAxisOffset = exports.ScrollStore = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _createStore = require("../utils/create-store");
|
|
9
9
|
const metadataWriters = {};
|
|
@@ -36,12 +36,65 @@ const hasMetadataWriters = routeKey => {
|
|
|
36
36
|
const clearMetadataWriters = routeKey => {
|
|
37
37
|
delete metadataWriters[routeKey];
|
|
38
38
|
};
|
|
39
|
+
const cloneScrollMetadataState = scroll => {
|
|
40
|
+
"worklet";
|
|
41
|
+
|
|
42
|
+
if (!scroll) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
vertical: scroll.vertical ? {
|
|
47
|
+
offset: scroll.vertical.offset,
|
|
48
|
+
contentSize: scroll.vertical.contentSize,
|
|
49
|
+
layoutSize: scroll.vertical.layoutSize,
|
|
50
|
+
isTouched: scroll.vertical.isTouched
|
|
51
|
+
} : null,
|
|
52
|
+
horizontal: scroll.horizontal ? {
|
|
53
|
+
offset: scroll.horizontal.offset,
|
|
54
|
+
contentSize: scroll.horizontal.contentSize,
|
|
55
|
+
layoutSize: scroll.horizontal.layoutSize,
|
|
56
|
+
isTouched: scroll.horizontal.isTouched
|
|
57
|
+
} : null
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Offset clamped to the axis layout range, so iOS rubber-band overscroll never
|
|
63
|
+
* leaks into coordinate-space deltas. Returns null when the axis is untracked.
|
|
64
|
+
*/
|
|
65
|
+
exports.cloneScrollMetadataState = cloneScrollMetadataState;
|
|
66
|
+
const clampScrollAxisOffset = axisState => {
|
|
67
|
+
"worklet";
|
|
68
|
+
|
|
69
|
+
if (!axisState) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
const maxOffset = Math.max(0, axisState.contentSize - axisState.layoutSize);
|
|
73
|
+
return Math.min(Math.max(axisState.offset, 0), maxOffset);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Clamped scroll travel between a captured snapshot and the current state on
|
|
78
|
+
* one axis. Returns 0 when either side does not track the axis.
|
|
79
|
+
*/
|
|
80
|
+
exports.clampScrollAxisOffset = clampScrollAxisOffset;
|
|
81
|
+
const getClampedScrollAxisDelta = (current, captured, axis) => {
|
|
82
|
+
"worklet";
|
|
83
|
+
|
|
84
|
+
const currentOffset = clampScrollAxisOffset(current?.[axis]);
|
|
85
|
+
const capturedOffset = clampScrollAxisOffset(captured?.[axis]);
|
|
86
|
+
if (currentOffset === null || capturedOffset === null) {
|
|
87
|
+
return 0;
|
|
88
|
+
}
|
|
89
|
+
return currentOffset - capturedOffset;
|
|
90
|
+
};
|
|
39
91
|
|
|
40
92
|
/**
|
|
41
93
|
* Route-keyed scroll geometry used by gesture activation and bounds measurement.
|
|
42
94
|
* Coordination tracks gesture-owner scoped ScrollView offsets and dimensions;
|
|
43
95
|
* metadata tracks screen-scoped scroll values exposed to animation consumers.
|
|
44
96
|
*/
|
|
97
|
+
exports.getClampedScrollAxisDelta = getClampedScrollAxisDelta;
|
|
45
98
|
const scrollStore = (0, _createStore.createStore)({
|
|
46
99
|
createBag: () => ({
|
|
47
100
|
coordination: (0, _reactNativeReanimated.makeMutable)(null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","scrollStore","createStore","createBag","coordination","makeMutable","metadata","disposeBag","bag","cancelAnimation","ScrollStore","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","cloneScrollMetadataState","scroll","offset","contentSize","layoutSize","isTouched","exports","clampScrollAxisOffset","axisState","maxOffset","Math","max","min","getClampedScrollAxisDelta","current","captured","currentOffset","capturedOffset","scrollStore","createStore","createBag","coordination","makeMutable","metadata","disposeBag","bag","cancelAnimation","ScrollStore","clearBag"],"sourceRoot":"../../../../src","sources":["shared/stores/scroll.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAYA,IAAAC,YAAA,GAAAD,OAAA;AAOA,MAAME,eAGL,GAAG,CAAC,CAAC;AAEN,IAAIC,oBAAoB,GAAG,CAAC;AAE5B,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACpCD,oBAAoB,IAAI,CAAC;EACzB,OAAO,mBAAmBA,oBAAoB,EAAE;AACjD,CAAC;AAED,MAAME,mBAAmB,GAAGA,CAC3BC,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KACH;EACb,MAAMC,OAAO,GAAGP,eAAe,CAACI,QAAQ,CAAC,IAAI,CAAC,CAAC;EAC/CJ,eAAe,CAACI,QAAQ,CAAC,GAAGG,OAAO;EAEnC,IAAI,CAACA,OAAO,CAACF,IAAI,CAAC,EAAE;IACnBE,OAAO,CAACF,IAAI,CAAC,GAAGC,QAAQ;EACzB;EAEA,OAAOC,OAAO,CAACF,IAAI,CAAC,KAAKC,QAAQ;AAClC,CAAC;AAED,MAAME,qBAAqB,GAAGA,CAC7BJ,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KACH;EACb,MAAMC,OAAO,GAAGP,eAAe,CAACI,QAAQ,CAAC;EACzC,IAAI,CAACG,OAAO,IAAIA,OAAO,CAACF,IAAI,CAAC,KAAKC,QAAQ,EAAE,OAAO,KAAK;EAExD,OAAOC,OAAO,CAACF,IAAI,CAAC;EAEpB,IAAI,CAACE,OAAO,CAACE,QAAQ,I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EACrBG,kBAAkB;EAClB+B,QAAQA,CAACtC,QAAmB,EAAE;IAC7BS,oBAAoB,CAACT,QAAQ,CAAC;IAC9B4B,WAAW,CAACU,QAAQ,CAACtC,QAAQ,CAAC;EAC/B;AACD,CAAC","ignoreList":[]}
|
|
@@ -3,11 +3,41 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createBoundTag = void 0;
|
|
6
|
+
exports.normalizeBoundIdentity = exports.createBoundTag = void 0;
|
|
7
|
+
const splitBoundTag = id => {
|
|
8
|
+
"worklet";
|
|
9
|
+
|
|
10
|
+
const normalizedId = String(id);
|
|
11
|
+
const separatorIndex = normalizedId.indexOf(":");
|
|
12
|
+
if (separatorIndex <= 0 || separatorIndex >= normalizedId.length - 1) {
|
|
13
|
+
return {
|
|
14
|
+
id
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
group: normalizedId.slice(0, separatorIndex),
|
|
19
|
+
id: normalizedId.slice(separatorIndex + 1)
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
const normalizeBoundIdentity = (identity, fallbackGroup) => {
|
|
23
|
+
"worklet";
|
|
24
|
+
|
|
25
|
+
const source = typeof identity === "object" ? identity : {
|
|
26
|
+
id: identity
|
|
27
|
+
};
|
|
28
|
+
const parsed = splitBoundTag(source.id);
|
|
29
|
+
const group = source.group || parsed.group || fallbackGroup;
|
|
30
|
+
return {
|
|
31
|
+
id: parsed.id,
|
|
32
|
+
group
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
7
36
|
/**
|
|
8
37
|
* Creates a bound tag by formatting the given id and optional group
|
|
9
38
|
* into a `group:id` string. If no group is provided, returns just the id.
|
|
10
39
|
*/
|
|
40
|
+
exports.normalizeBoundIdentity = normalizeBoundIdentity;
|
|
11
41
|
const createBoundTag = ({
|
|
12
42
|
id,
|
|
13
43
|
group
|
|
@@ -15,11 +45,15 @@ const createBoundTag = ({
|
|
|
15
45
|
"worklet";
|
|
16
46
|
|
|
17
47
|
if (id == null || id === "") return undefined;
|
|
18
|
-
const
|
|
19
|
-
|
|
48
|
+
const identity = normalizeBoundIdentity({
|
|
49
|
+
id,
|
|
50
|
+
group
|
|
51
|
+
});
|
|
52
|
+
const normalizedId = String(identity.id);
|
|
53
|
+
if (!identity.group) {
|
|
20
54
|
return normalizedId;
|
|
21
55
|
}
|
|
22
|
-
return `${group}:${normalizedId}`;
|
|
56
|
+
return `${identity.group}:${normalizedId}`;
|
|
23
57
|
};
|
|
24
58
|
exports.createBoundTag = createBoundTag;
|
|
25
59
|
//# sourceMappingURL=create-bound-tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["splitBoundTag","id","normalizedId","String","separatorIndex","indexOf","length","group","slice","normalizeBoundIdentity","identity","fallbackGroup","source","parsed","exports","createBoundTag","undefined"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;;;;;AAWA,MAAMA,aAAa,GAAIC,EAAW,IAAqB;EACtD,SAAS;;EAET,MAAMC,YAAY,GAAGC,MAAM,CAACF,EAAE,CAAC;EAC/B,MAAMG,cAAc,GAAGF,YAAY,CAACG,OAAO,CAAC,GAAG,CAAC;EAEhD,IAAID,cAAc,IAAI,CAAC,IAAIA,cAAc,IAAIF,YAAY,CAACI,MAAM,GAAG,CAAC,EAAE;IACrE,OAAO;MAAEL;IAAG,CAAC;EACd;EAEA,OAAO;IACNM,KAAK,EAAEL,YAAY,CAACM,KAAK,CAAC,CAAC,EAAEJ,cAAc,CAAC;IAC5CH,EAAE,EAAEC,YAAY,CAACM,KAAK,CAACJ,cAAc,GAAG,CAAC;EAC1C,CAAC;AACF,CAAC;AAEM,MAAMK,sBAAsB,GAAGA,CACrCC,QAA6B,EAC7BC,aAAsB,KACF;EACpB,SAAS;;EAET,MAAMC,MAAM,GACX,OAAOF,QAAQ,KAAK,QAAQ,GACzBA,QAAQ,GACP;IACDT,EAAE,EAAES;EACL,CAA2B;EAC9B,MAAMG,MAAM,GAAGb,aAAa,CAACY,MAAM,CAACX,EAAE,CAAC;EACvC,MAAMM,KAAK,GAAGK,MAAM,CAACL,KAAK,IAAIM,MAAM,CAACN,KAAK,IAAII,aAAa;EAE3D,OAAO;IACNV,EAAE,EAAEY,MAAM,CAACZ,EAAE;IACbM;EACD,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AAHAO,OAAA,CAAAL,sBAAA,GAAAA,sBAAA;AAIO,MAAMM,cAAc,GAAGA,CAAC;EAC9Bd,EAAE;EACFM;AACqB,CAAC,KAAyB;EAC/C,SAAS;;EAET,IAAIN,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOe,SAAS;EAE7C,MAAMN,QAAQ,GAAGD,sBAAsB,CAAC;IAAER,EAAE;IAAEM;EAAM,CAAC,CAAC;EACtD,MAAML,YAAY,GAAGC,MAAM,CAACO,QAAQ,CAACT,EAAE,CAAC;EAExC,IAAI,CAACS,QAAQ,CAACH,KAAK,EAAE;IACpB,OAAOL,YAAY;EACpB;EAEA,OAAO,GAAGQ,QAAQ,CAACH,KAAK,IAAIL,YAAY,EAAE;AAC3C,CAAC;AAACY,OAAA,CAAAC,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createBoundsAccessorCore = void 0;
|
|
7
7
|
var _createBoundTag = require("./create-bound-tag");
|
|
8
|
-
var _createInterpolators = require("./create-interpolators");
|
|
9
8
|
var _createLinkAccessor = require("./create-link-accessor");
|
|
10
9
|
var _prepareBoundStyles = require("./prepare-bound-styles");
|
|
11
10
|
const createBoundsAccessorParts = ({
|
|
@@ -15,118 +14,72 @@ const createBoundsAccessorParts = ({
|
|
|
15
14
|
"worklet";
|
|
16
15
|
|
|
17
16
|
const {
|
|
18
|
-
getMeasured,
|
|
19
|
-
getSnapshot,
|
|
20
17
|
getLink
|
|
21
18
|
} = (0, _createLinkAccessor.createLinkAccessor)(getProps);
|
|
22
|
-
const {
|
|
23
|
-
interpolateStyle,
|
|
24
|
-
interpolateBounds
|
|
25
|
-
} = (0, _createInterpolators.createInterpolators)({
|
|
26
|
-
getProps,
|
|
27
|
-
getLink
|
|
28
|
-
});
|
|
29
|
-
const computeBounds = params => {
|
|
19
|
+
const createScopedBounds = identity => {
|
|
30
20
|
"worklet";
|
|
31
21
|
|
|
32
22
|
const props = getProps();
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const tag = (0, _createBoundTag.createBoundTag)({
|
|
37
|
-
id: options.id,
|
|
38
|
-
group: options.group
|
|
39
|
-
});
|
|
40
|
-
const computed = (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
23
|
+
const normalizedIdentity = (0, _createBoundTag.normalizeBoundIdentity)(identity);
|
|
24
|
+
const tag = (0, _createBoundTag.createBoundTag)(normalizedIdentity);
|
|
25
|
+
(0, _prepareBoundStyles.syncActiveGroupId)({
|
|
41
26
|
props,
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
id: normalizedIdentity.id,
|
|
28
|
+
group: normalizedIdentity.group
|
|
44
29
|
});
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperties(target, {
|
|
50
|
-
getMeasured: {
|
|
51
|
-
value: key => {
|
|
52
|
-
"worklet";
|
|
30
|
+
const scoped = {
|
|
31
|
+
styles: options => {
|
|
32
|
+
"worklet";
|
|
53
33
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
return (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
35
|
+
props,
|
|
36
|
+
options: {
|
|
37
|
+
...options,
|
|
38
|
+
id: normalizedIdentity.id,
|
|
39
|
+
group: normalizedIdentity.group
|
|
40
|
+
}
|
|
41
|
+
});
|
|
58
42
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"worklet";
|
|
43
|
+
math: options => {
|
|
44
|
+
"worklet";
|
|
62
45
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
return (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
47
|
+
props,
|
|
48
|
+
options: {
|
|
49
|
+
...options,
|
|
50
|
+
id: normalizedIdentity.id,
|
|
51
|
+
group: normalizedIdentity.group,
|
|
52
|
+
raw: true
|
|
53
|
+
}
|
|
54
|
+
});
|
|
67
55
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"worklet";
|
|
56
|
+
link: id => {
|
|
57
|
+
"worklet";
|
|
71
58
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
configurable: true
|
|
76
|
-
},
|
|
77
|
-
interpolateStyle: {
|
|
78
|
-
value: (property, fallback) => {
|
|
79
|
-
"worklet";
|
|
80
|
-
|
|
81
|
-
return interpolateStyle(scopedTag, property, fallback);
|
|
82
|
-
},
|
|
83
|
-
enumerable: false,
|
|
84
|
-
configurable: true
|
|
85
|
-
},
|
|
86
|
-
interpolateBounds: {
|
|
87
|
-
value: (property, fallbackOrTargetKey, fallback) => {
|
|
88
|
-
"worklet";
|
|
89
|
-
|
|
90
|
-
return interpolateBounds(scopedTag, property, fallbackOrTargetKey, fallback);
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
59
|
+
const linkIdentity = id == null ? normalizedIdentity : (0, _createBoundTag.normalizeBoundIdentity)(id, normalizedIdentity.group);
|
|
60
|
+
const linkTag = (0, _createBoundTag.createBoundTag)(linkIdentity);
|
|
61
|
+
return getLink(linkTag ?? "");
|
|
94
62
|
}
|
|
95
|
-
}
|
|
63
|
+
};
|
|
96
64
|
extendResult?.({
|
|
97
|
-
target:
|
|
65
|
+
target: scoped,
|
|
66
|
+
identity: normalizedIdentity,
|
|
98
67
|
props,
|
|
99
68
|
tag
|
|
100
69
|
});
|
|
101
|
-
return
|
|
70
|
+
return scoped;
|
|
102
71
|
};
|
|
103
72
|
return {
|
|
104
|
-
|
|
105
|
-
getMeasured,
|
|
106
|
-
getSnapshot,
|
|
107
|
-
getLink,
|
|
108
|
-
interpolateStyle,
|
|
109
|
-
interpolateBounds
|
|
73
|
+
createScopedBounds
|
|
110
74
|
};
|
|
111
75
|
};
|
|
112
76
|
const createBoundsAccessorCore = params => {
|
|
113
77
|
"worklet";
|
|
114
78
|
|
|
115
79
|
const {
|
|
116
|
-
|
|
117
|
-
getMeasured,
|
|
118
|
-
getSnapshot,
|
|
119
|
-
getLink,
|
|
120
|
-
interpolateStyle,
|
|
121
|
-
interpolateBounds
|
|
80
|
+
createScopedBounds
|
|
122
81
|
} = createBoundsAccessorParts(params);
|
|
123
|
-
return
|
|
124
|
-
getMeasured,
|
|
125
|
-
getSnapshot,
|
|
126
|
-
getLink,
|
|
127
|
-
interpolateStyle,
|
|
128
|
-
interpolateBounds
|
|
129
|
-
});
|
|
82
|
+
return createScopedBounds;
|
|
130
83
|
};
|
|
131
84
|
exports.createBoundsAccessorCore = createBoundsAccessorCore;
|
|
132
85
|
//# sourceMappingURL=create-bounds-accessor-core.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_createBoundTag","require","
|
|
1
|
+
{"version":3,"names":["_createBoundTag","require","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getLink","createLinkAccessor","createScopedBounds","identity","props","normalizedIdentity","normalizeBoundIdentity","tag","createBoundTag","syncActiveGroupId","id","group","scoped","styles","options","prepareBoundStyles","math","raw","link","linkIdentity","linkTag","target","createBoundsAccessorCore","params","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAYA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,mBA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E,EAAEL,kBAAkB,CAACM,KAAK,CAAC;QACxD,MAAMS,OAAO,GAAG,IAAAZ,8BAAc,EAACW,YAAY,CAAC;QAC5C,OAAOnB,OAAO,CAACoB,OAAO,IAAI,EAAE,CAAC;MAC9B;IACD,CAAyB;IAEzBrB,YAAY,GAAG;MACdsB,MAAM,EAAET,MAAM;MACdT,QAAQ,EAAEE,kBAAkB;MAC5BD,KAAK;MACLG;IACD,CAAC,CAAC;IAEF,OAAOK,MAAM;EACd,CAAoB;EAEpB,OAAO;IACNV;EACD,CAAC;AACF,CAAC;AAEM,MAAMoB,wBAAwB,GACpCC,MAAsC,IAClB;EACpB,SAAS;;EAET,MAAM;IAAErB;EAAmB,CAAC,GAAGL,yBAAyB,CAAC0B,MAAM,CAAC;EAEhE,OAAOrB,kBAAkB;AAC1B,CAAC;AAACsB,OAAA,CAAAF,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -4,86 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createLinkAccessor = void 0;
|
|
7
|
-
var _entries = require("../../../stores/bounds/internals/entries");
|
|
8
7
|
var _links = require("../../../stores/bounds/internals/links");
|
|
9
|
-
var _prepareBoundStyles = require("./prepare-bound-styles");
|
|
10
8
|
var _resolveBoundsPairKey = require("./resolve-bounds-pair-key");
|
|
11
|
-
const toResolvedPair = link => {
|
|
12
|
-
"worklet";
|
|
13
|
-
|
|
14
|
-
return {
|
|
15
|
-
sourceBounds: link.source.bounds,
|
|
16
|
-
destinationBounds: link.destination?.bounds ?? null,
|
|
17
|
-
sourceStyles: link.source.styles,
|
|
18
|
-
destinationStyles: link.destination?.styles ?? null,
|
|
19
|
-
sourceScreenKey: link.source.screenKey,
|
|
20
|
-
destinationScreenKey: link.destination?.screenKey ?? null
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
9
|
const createLinkAccessor = getProps => {
|
|
24
10
|
"worklet";
|
|
25
11
|
|
|
26
|
-
const getMeasured = (tag, key) => {
|
|
27
|
-
"worklet";
|
|
28
|
-
|
|
29
|
-
if (!key) return null;
|
|
30
|
-
const entry = (0, _entries.getEntry)(String(tag), key);
|
|
31
|
-
return entry?.bounds ? entry : null;
|
|
32
|
-
};
|
|
33
|
-
const getSnapshot = (tag, key) => {
|
|
34
|
-
"worklet";
|
|
35
|
-
|
|
36
|
-
return getMeasured(tag, key);
|
|
37
|
-
};
|
|
38
12
|
const getLink = tag => {
|
|
39
13
|
"worklet";
|
|
40
14
|
|
|
41
15
|
const props = getProps();
|
|
42
16
|
const stringTag = String(tag);
|
|
43
17
|
const pairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (!link) return null;
|
|
51
|
-
const resolvedPair = toResolvedPair(link);
|
|
52
|
-
return {
|
|
53
|
-
id: selectedTag,
|
|
54
|
-
source: link.source ? {
|
|
55
|
-
bounds: link.source.bounds,
|
|
56
|
-
styles: link.source.styles
|
|
57
|
-
} : null,
|
|
58
|
-
destination: link.destination ? {
|
|
59
|
-
bounds: link.destination.bounds,
|
|
60
|
-
styles: link.destination.styles
|
|
61
|
-
} : null,
|
|
62
|
-
initialSource: link.initialSource ? {
|
|
63
|
-
bounds: link.initialSource.bounds,
|
|
64
|
-
styles: link.initialSource.styles
|
|
65
|
-
} : null,
|
|
66
|
-
initialDestination: link.initialDestination ? {
|
|
67
|
-
bounds: link.initialDestination.bounds,
|
|
68
|
-
styles: link.initialDestination.styles
|
|
69
|
-
} : null,
|
|
70
|
-
compute: computeOptions => {
|
|
71
|
-
"worklet";
|
|
72
|
-
|
|
73
|
-
return (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
74
|
-
props,
|
|
75
|
-
options: {
|
|
76
|
-
...computeOptions,
|
|
77
|
-
id: selectedTag
|
|
78
|
-
},
|
|
79
|
-
resolvedPair
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
};
|
|
18
|
+
if (!pairKey) return null;
|
|
19
|
+
const resolved = (0, _links.getResolvedLink)(pairKey, stringTag);
|
|
20
|
+
return resolved.link ? {
|
|
21
|
+
id: resolved.tag,
|
|
22
|
+
...resolved.link
|
|
23
|
+
} : null;
|
|
83
24
|
};
|
|
84
25
|
return {
|
|
85
|
-
getMeasured,
|
|
86
|
-
getSnapshot,
|
|
87
26
|
getLink
|
|
88
27
|
};
|
|
89
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_links","require","_resolveBoundsPairKey","createLinkAccessor","getProps","getLink","tag","props","stringTag","String","pairKey","resolveBoundsPairKey","resolved","getResolvedLink","link","id","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,qBAAA,GAAAD,OAAA;AAQO,MAAME,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,OAAO,GAAIC,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;IACxB,MAAMI,SAAS,GAAGC,MAAM,CAACH,GAAG,CAAC;IAC7B,MAAMI,OAAO,GAAG,IAAAC,0CAAoB,EAACJ,KAAK,CAAC;IAC3C,IAAI,CAACG,OAAO,EAAE,OAAO,IAAI;IAEzB,MAAME,QAAQ,GAAG,IAAAC,sBAAe,EAACH,OAAO,EAAEF,SAAS,CAAC;IACpD,OAAOI,QAAQ,CAACE,IAAI,GACjB;MACAC,EAAE,EAAEH,QAAQ,CAACN,GAAG;MAChB,GAAGM,QAAQ,CAACE;IACb,CAAC,GACA,IAAI;EACR,CAAC;EAED,OAAO;IACNT;EACD,CAAC;AACF,CAAC;AAACW,OAAA,CAAAb,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.prepareBoundStyles = void 0;
|
|
6
|
+
exports.syncActiveGroupId = exports.prepareBoundStyles = void 0;
|
|
7
7
|
var _entries = require("../../../stores/bounds/internals/entries");
|
|
8
8
|
var _links = require("../../../stores/bounds/internals/links");
|
|
9
9
|
var _constants = require("../constants");
|
|
@@ -44,23 +44,18 @@ const syncActiveGroupId = params => {
|
|
|
44
44
|
if (id == null || id === "" || !group) return;
|
|
45
45
|
const pairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
46
46
|
if (!pairKey) return;
|
|
47
|
-
|
|
47
|
+
const activeId = String(id);
|
|
48
|
+
if ((0, _links.getActiveGroupId)(pairKey, group) === activeId) return;
|
|
49
|
+
(0, _links.setActiveGroupId)(pairKey, group, activeId);
|
|
48
50
|
};
|
|
51
|
+
exports.syncActiveGroupId = syncActiveGroupId;
|
|
49
52
|
const prepareBoundStyles = ({
|
|
50
53
|
props,
|
|
51
54
|
options,
|
|
52
|
-
resolvedPair
|
|
53
|
-
syncGroupActiveId = false
|
|
55
|
+
resolvedPair
|
|
54
56
|
}) => {
|
|
55
57
|
"worklet";
|
|
56
58
|
|
|
57
|
-
if (syncGroupActiveId) {
|
|
58
|
-
syncActiveGroupId({
|
|
59
|
-
props,
|
|
60
|
-
id: options.id,
|
|
61
|
-
group: options.group
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
59
|
const resolved = buildBoundsOptions({
|
|
65
60
|
props,
|
|
66
61
|
id: options.id,
|
|
@@ -73,7 +68,8 @@ const prepareBoundStyles = ({
|
|
|
73
68
|
current: props.current,
|
|
74
69
|
next: props.next,
|
|
75
70
|
progress: resolved.progress ?? props.progress,
|
|
76
|
-
dimensions: props.layouts.screen
|
|
71
|
+
dimensions: props.layouts.screen,
|
|
72
|
+
interpolationProps: props
|
|
77
73
|
}, resolved, resolvedPair);
|
|
78
74
|
};
|
|
79
75
|
exports.prepareBoundStyles = prepareBoundStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","_links","_constants","_createBoundTag","_resolveBoundsPairKey","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","getEntry","resolved","DEFAULT_BOUNDS_OPTIONS","syncActiveGroupId","params","pairKey","resolveBoundsPairKey","
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","_constants","_createBoundTag","_resolveBoundsPairKey","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","getEntry","resolved","DEFAULT_BOUNDS_OPTIONS","syncActiveGroupId","params","pairKey","resolveBoundsPairKey","activeId","String","getActiveGroupId","setActiveGroupId","exports","prepareBoundStyles","options","resolvedPair","computeBoundStyles","previous","next","progress","dimensions","layouts","screen","interpolationProps"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AAMA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAiBA,MAAMM,kBAAkB,GAAGA,CAAC;EAC3BC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMI,gBAAgB,GAAGN,KAAK,CAACO,OAAO,EAAEC,KAAK,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBN,GAAG,IAAIE,gBAAgB,GACnB,IAAAK,iBAAQ,EAACP,GAAG,EAAEE,gBAA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