react-native-screen-transitions 3.8.0 → 3.9.0-alpha.1
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 +18 -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 +74 -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 +20 -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 +198 -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/teleport.js +23 -0
- package/lib/commonjs/shared/components/boundary/portal/teleport.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/hooks/navigation/use-stack.js +17 -2
- package/lib/commonjs/shared/hooks/navigation/use-stack.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/animation/helpers/pipeline.js +4 -13
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js +23 -12
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.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/animation.store.js +2 -0
- package/lib/commonjs/shared/stores/animation.store.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 +20 -26
- 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 +69 -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 +16 -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 +193 -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/teleport.js +19 -0
- package/lib/module/shared/components/boundary/portal/teleport.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/hooks/navigation/use-stack.js +19 -4
- package/lib/module/shared/hooks/navigation/use-stack.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/animation/helpers/pipeline.js +5 -14
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js +20 -10
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.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/animation.store.js +2 -0
- package/lib/module/shared/stores/animation.store.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/teleport.d.ts +6 -0
- package/lib/typescript/shared/components/boundary/portal/teleport.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/hooks/navigation/use-stack.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/animation/helpers/hydrate-transition-state/types.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.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/animation.store.d.ts +1 -0
- package/lib/typescript/shared/stores/animation.store.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 +8 -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 +33 -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 +97 -0
- package/src/shared/components/boundary/portal/components/portal-provider.tsx +14 -0
- package/src/shared/components/boundary/portal/components/portal.tsx +283 -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/teleport.ts +21 -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/hooks/navigation/use-stack.tsx +32 -1
- package/src/shared/index.ts +13 -5
- package/src/shared/providers/helpers/measured-bounds-writes.ts +11 -1
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +1 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +13 -19
- package/src/shared/providers/screen/animation/helpers/stack-progress.ts +31 -16
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +2 -0
- 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/animation.store.ts +3 -0
- 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":["cancelAnimation","makeMutable","createStore","createAnimationBag","transitionProgress","visualProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","createBag","disposeBag","bag"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAChC,SAASC,WAAW,QAAQ,uBAAuB;
|
|
1
|
+
{"version":3,"names":["cancelAnimation","makeMutable","createStore","createAnimationBag","transitionProgress","visualProgress","stackProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","createBag","disposeBag","bag"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAChC,SAASC,WAAW,QAAQ,uBAAuB;AAanD,SAASC,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,kBAAkB,EAAEH,WAAW,CAAC,CAAC,CAAC;IAClCI,cAAc,EAAEJ,WAAW,CAAC,CAAC,CAAC;IAC9BK,aAAa,EAAEL,WAAW,CAAC,CAAC,CAAC;IAC7BM,WAAW,EAAEN,WAAW,CAAC,CAAC,CAAC;IAC3BO,OAAO,EAAEP,WAAW,CAAC,CAAC,CAAC;IACvBQ,iBAAiB,EAAER,WAAW,CAAC,CAAC,CAAC;IACjCS,eAAe,EAAET,WAAW,CAAC,CAAC,CAAC;IAC/BU,QAAQ,EAAEV,WAAW,CAAC,CAAC;EACxB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMW,cAAc,GAAGV,WAAW,CAAoB;EAC5DW,SAAS,EAAEV,kBAAkB;EAC7BW,UAAU,EAAGC,GAAG,IAAK;IACpBf,eAAe,CAACe,GAAG,CAACX,kBAAkB,CAAC;IACvCJ,eAAe,CAACe,GAAG,CAACV,cAAc,CAAC;IACnCL,eAAe,CAACe,GAAG,CAACT,aAAa,CAAC;IAClCN,eAAe,CAACe,GAAG,CAACR,WAAW,CAAC;IAChCP,eAAe,CAACe,GAAG,CAACN,iBAAiB,CAAC;IACtCT,eAAe,CAACe,GAAG,CAACL,eAAe,CAAC;IACpCV,eAAe,CAACe,GAAG,CAACP,OAAO,CAAC;IAC5BR,eAAe,CAACe,GAAG,CAACJ,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -18,13 +18,6 @@ export const getSourceScreenKeyFromPairKey = pairKey => {
|
|
|
18
18
|
if (separatorIndex === -1) return pairKey;
|
|
19
19
|
return pairKey.slice(0, separatorIndex);
|
|
20
20
|
};
|
|
21
|
-
export const getDestinationScreenKeyFromPairKey = pairKey => {
|
|
22
|
-
"worklet";
|
|
23
|
-
|
|
24
|
-
const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
|
|
25
|
-
if (separatorIndex === -1) return "";
|
|
26
|
-
return pairKey.slice(separatorIndex + PAIR_SEPARATOR.length);
|
|
27
|
-
};
|
|
28
21
|
export const isScreenPairKeyForScreen = (pairKey, screenKey) => {
|
|
29
22
|
"worklet";
|
|
30
23
|
|
|
@@ -49,7 +42,7 @@ export const createGroupTag = (group, linkKey) => {
|
|
|
49
42
|
|
|
50
43
|
return `${group}:${linkKey}`;
|
|
51
44
|
};
|
|
52
|
-
|
|
45
|
+
const ensurePairState = (state, pairKey) => {
|
|
53
46
|
"worklet";
|
|
54
47
|
|
|
55
48
|
if (!state[pairKey]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","
|
|
1
|
+
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","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","active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AAMS,GAAG,IAAID,IAAI,CAACL,KAAK,EAAE;IAC7B,IAAIK,IAAI,CAACL,KAAK,CAACM,GAAG,CAAC,EAAE;EACtB;EAEA,OAAOP,KAAK,CAACf,OAAO,CAAC;AACtB,CAAC;AAED,OAAO,MAAMuB,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;AAED,OAAO,MAAMW,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;AAED,OAAO,MAAMC,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;AAED,OAAO,MAAMC,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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clear","getEntry","removeEntry","setEntry","getActiveGroupId","getDestination","getLink","getSource","setActiveGroupId","setDestination","setSource","resolveTransitionPair","BoundStore","entry","set","get","remove","link","getPair","cleanup","byScreen"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,qBAAqB;AACrE,SACCC,gBAAgB,EAChBC,cAAc,EACdC,OAAO,EACPC,SAAS,EACTC,gBAAgB,EAChBC,cAAc,EACdC,SAAS,QACH,mBAAmB;AAC1B,SAASC,qBAAqB,QAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"names":["clear","getEntry","removeEntry","setEntry","getActiveGroupId","getDestination","getLink","getSource","setActiveGroupId","setDestination","setSource","resolveTransitionPair","BoundStore","entry","set","get","remove","link","getPair","cleanup","byScreen"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,qBAAqB;AACrE,SACCC,gBAAgB,EAChBC,cAAc,EACdC,OAAO,EACPC,SAAS,EACTC,gBAAgB,EAChBC,cAAc,EACdC,SAAS,QACH,mBAAmB;AAC1B,SAASC,qBAAqB,QAAQ,sBAAsB;AAY5D,OAAO,MAAMC,UAAU,GAAG;EACzBC,KAAK,EAAE;IACNC,GAAG,EAAEX,QAAQ;IACbY,GAAG,EAAEd,QAAQ;IACbe,MAAM,EAAEd;EACT,CAAC;EACDe,IAAI,EAAE;IACLP,SAAS;IACTD,cAAc;IACdD,gBAAgB;IAChBF,OAAO;IACPC,SAAS;IACTF,cAAc;IACdD,gBAAgB;IAChBc,OAAO,EAAEP;EACV,CAAC;EACDQ,OAAO,EAAE;IACRC,QAAQ,EAAEpB;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["hasAnyKeys","boundaryRegistry","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","get","setEntry","modify","removeEntry"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAE5C,SAAoCC,gBAAgB,QAAQ,SAAS;AAErE,MAAMC,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":["hasAnyKeys","boundaryRegistry","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","get","setEntry","modify","removeEntry"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAE5C,SAAoCC,gBAAgB,QAAQ,SAAS;AAErE,MAAMC,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;MACZC,MAAM,EAAE,CAAC;IACV,CAAC;EACF;EACA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Q,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,CAACP,UAAU,CAACQ,QAAQ,CAACH,OAAO,CAAC,EAAE;MAClC,OAAOF,KAAK,CAACC,GAAG,CAAC;IAClB;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASa,QAAQ,EAAEK,WAAW,EAAEF,QAAQ","ignoreList":[]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { createGroupTag, createPendingPairKey, ensurePairGroups, ensurePairLinks, getGroupKeyFromTag, getLinkKeyFromTag, getActiveGroupId as getPairActiveGroupId, getDestination as getPairDestination, getLink as getPairLink, getSource as getPairSource, getSourceScreenKeyFromPairKey, removePairLink } from "../helpers/link-pairs.helpers";
|
|
4
4
|
import { pairs } from "./state";
|
|
5
|
-
const
|
|
5
|
+
const syncLinkStatus = link => {
|
|
6
6
|
"worklet";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
link.status = link.source ? link.destination ? "complete" : "destination-incomplete" : "source-incomplete";
|
|
9
9
|
};
|
|
10
10
|
const createLinkSide = (screenKey, bounds, styles) => {
|
|
11
11
|
"worklet";
|
|
@@ -33,12 +33,19 @@ const writeGroup = (state, pairKey, group, activeId, initialId) => {
|
|
|
33
33
|
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group) => {
|
|
34
34
|
"worklet";
|
|
35
35
|
|
|
36
|
-
const
|
|
37
|
-
if (!link) return;
|
|
36
|
+
const existingLink = getPairLink(state, pairKey, linkKey);
|
|
38
37
|
const destination = createLinkSide(screenKey, bounds, styles);
|
|
38
|
+
const link = existingLink ?? {
|
|
39
|
+
group,
|
|
40
|
+
status: "source-incomplete",
|
|
41
|
+
source: null,
|
|
42
|
+
destination,
|
|
43
|
+
initialDestination: destination
|
|
44
|
+
};
|
|
39
45
|
link.group = group ?? link.group;
|
|
40
46
|
link.destination = destination;
|
|
41
47
|
link.initialDestination ??= destination;
|
|
48
|
+
syncLinkStatus(link);
|
|
42
49
|
writePairLink(state, pairKey, linkKey, link);
|
|
43
50
|
if (link.group) {
|
|
44
51
|
writeGroup(state, pairKey, link.group, linkKey);
|
|
@@ -62,18 +69,26 @@ const promotePendingSource = (state, pairKey, linkKey) => {
|
|
|
62
69
|
}
|
|
63
70
|
removePairLink(state, pendingPairKey, linkKey);
|
|
64
71
|
};
|
|
65
|
-
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
72
|
+
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAttachTarget, sourceHost) {
|
|
66
73
|
"worklet";
|
|
67
74
|
|
|
68
75
|
pairs.modify(state => {
|
|
69
76
|
"worklet";
|
|
70
77
|
|
|
71
|
-
const linkKey =
|
|
72
|
-
const source = createLinkSide(screenKey, bounds, styles);
|
|
78
|
+
const linkKey = getLinkKeyFromTag(tag);
|
|
73
79
|
const pairLinks = ensurePairLinks(state, pairKey);
|
|
74
80
|
const existingLink = pairLinks[linkKey];
|
|
81
|
+
|
|
82
|
+
// Refresh paths may re-measure the source without portal context;
|
|
83
|
+
// keep the previously recorded host in that case.
|
|
84
|
+
const source = {
|
|
85
|
+
...createLinkSide(screenKey, bounds, styles),
|
|
86
|
+
portalAttachTarget: portalAttachTarget ?? existingLink?.source?.portalAttachTarget,
|
|
87
|
+
sourceHost: sourceHost ?? existingLink?.source?.sourceHost
|
|
88
|
+
};
|
|
75
89
|
const link = existingLink ?? {
|
|
76
90
|
group,
|
|
91
|
+
status: "destination-incomplete",
|
|
77
92
|
source,
|
|
78
93
|
destination: null,
|
|
79
94
|
initialSource: source
|
|
@@ -81,6 +96,7 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
81
96
|
link.group = group ?? link.group;
|
|
82
97
|
link.source = source;
|
|
83
98
|
link.initialSource ??= source;
|
|
99
|
+
syncLinkStatus(link);
|
|
84
100
|
pairLinks[linkKey] = link;
|
|
85
101
|
const pendingPairKey = createPendingPairKey(screenKey);
|
|
86
102
|
if (pendingPairKey !== pairKey) {
|
|
@@ -95,7 +111,7 @@ function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
95
111
|
pairs.modify(state => {
|
|
96
112
|
"worklet";
|
|
97
113
|
|
|
98
|
-
const linkKey =
|
|
114
|
+
const linkKey = getLinkKeyFromTag(tag);
|
|
99
115
|
promotePendingSource(state, pairKey, linkKey);
|
|
100
116
|
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
|
|
101
117
|
return state;
|
|
@@ -107,7 +123,7 @@ function setActiveGroupId(pairKey, group, tag) {
|
|
|
107
123
|
pairs.modify(state => {
|
|
108
124
|
"worklet";
|
|
109
125
|
|
|
110
|
-
writeGroup(state, pairKey, group,
|
|
126
|
+
writeGroup(state, pairKey, group, getLinkKeyFromTag(tag));
|
|
111
127
|
return state;
|
|
112
128
|
});
|
|
113
129
|
}
|
|
@@ -119,12 +135,12 @@ function getActiveGroupId(pairKey, group) {
|
|
|
119
135
|
function getLink(pairKey, tag) {
|
|
120
136
|
"worklet";
|
|
121
137
|
|
|
122
|
-
return getPairLink(pairs.get(), pairKey,
|
|
138
|
+
return getPairLink(pairs.get(), pairKey, getLinkKeyFromTag(tag));
|
|
123
139
|
}
|
|
124
|
-
const
|
|
140
|
+
const hasSourceLink = link => {
|
|
125
141
|
"worklet";
|
|
126
142
|
|
|
127
|
-
return !!link?.
|
|
143
|
+
return !!link?.source;
|
|
128
144
|
};
|
|
129
145
|
const getPendingSourceLink = (state, pairKey, linkKey) => {
|
|
130
146
|
"worklet";
|
|
@@ -138,7 +154,7 @@ function getResolvedLink(pairKey, tag) {
|
|
|
138
154
|
"worklet";
|
|
139
155
|
|
|
140
156
|
const state = pairs.get();
|
|
141
|
-
const linkKey =
|
|
157
|
+
const linkKey = getLinkKeyFromTag(tag);
|
|
142
158
|
const group = getGroupKeyFromTag(tag);
|
|
143
159
|
const requestedLink = getPairLink(state, pairKey, linkKey);
|
|
144
160
|
|
|
@@ -150,8 +166,9 @@ function getResolvedLink(pairKey, tag) {
|
|
|
150
166
|
const link = requestedLink ?? fallbackPendingLink;
|
|
151
167
|
|
|
152
168
|
// Group active ids can update before the new member has a full source/destination
|
|
153
|
-
// link
|
|
154
|
-
|
|
169
|
+
// link. As soon as the requested member has source bounds, prefer it; only
|
|
170
|
+
// fall back while the requested member has no source yet.
|
|
171
|
+
if (!group || hasSourceLink(link)) {
|
|
155
172
|
return {
|
|
156
173
|
tag,
|
|
157
174
|
link
|
|
@@ -159,8 +176,8 @@ function getResolvedLink(pairKey, tag) {
|
|
|
159
176
|
}
|
|
160
177
|
const initialId = state[pairKey]?.groups?.[group]?.initialId;
|
|
161
178
|
if (initialId) {
|
|
162
|
-
const initialLink = getPairLink(state, pairKey, initialId);
|
|
163
|
-
if (
|
|
179
|
+
const initialLink = getPairLink(state, pairKey, initialId) ?? getPendingSourceLink(state, pairKey, initialId);
|
|
180
|
+
if (hasSourceLink(initialLink)) {
|
|
164
181
|
return {
|
|
165
182
|
tag: createGroupTag(group, initialId),
|
|
166
183
|
link: initialLink
|
|
@@ -175,12 +192,12 @@ function getResolvedLink(pairKey, tag) {
|
|
|
175
192
|
function getSource(pairKey, tag) {
|
|
176
193
|
"worklet";
|
|
177
194
|
|
|
178
|
-
return getPairSource(pairs.get(), pairKey,
|
|
195
|
+
return getPairSource(pairs.get(), pairKey, getLinkKeyFromTag(tag));
|
|
179
196
|
}
|
|
180
197
|
function getDestination(pairKey, tag) {
|
|
181
198
|
"worklet";
|
|
182
199
|
|
|
183
|
-
return getPairDestination(pairs.get(), pairKey,
|
|
200
|
+
return getPairDestination(pairs.get(), pairKey, getLinkKeyFromTag(tag));
|
|
184
201
|
}
|
|
185
202
|
export { getActiveGroupId, getDestination, getLink, getResolvedLink, getSource, setActiveGroupId, setDestination, setSource };
|
|
186
203
|
//# sourceMappingURL=links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createGroupTag","createPendingPairKey","ensurePairGroups","ensurePairLinks","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","getSourceScreenKeyFromPairKey","removePairLink","pairs","
|
|
1
|
+
{"version":3,"names":["createGroupTag","createPendingPairKey","ensurePairGroups","ensurePairLinks","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","getSourceScreenKeyFromPairKey","removePairLink","pairs","syncLinkStatus","link","status","source","destination","createLinkSide","screenKey","bounds","styles","writePairLink","state","pairKey","linkKey","writeGroup","group","activeId","initialId","previousInitialId","groups","writeDestination","existingLink","initialDestination","promotePendingSource","sourceScreenKey","pendingPairKey","pendingLink","pendingGroupState","setSource","tag","portalAttachTarget","sourceHost","modify","pairLinks","initialSource","setDestination","setActiveGroupId","get","hasSourceLink","getPendingSourceLink","getResolvedLink","requestedLink","fallbackPendingLink","initialLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;AACA,SACCA,cAAc,EACdC,oBAAoB,EACpBC,gBAAgB,EAChBC,eAAe,EACfC,kBAAkB,EAClBC,iBAAiB,EACjBC,gBAAgB,IAAIC,oBAAoB,EACxCC,cAAc,IAAIC,kBAAkB,EACpCC,OAAO,IAAIC,WAAW,EACtBC,SAAS,IAAIC,aAAa,EAC1BC,6BAA6B,EAC7BC,cAAc,QACR,+BAA+B;AAatC,SAASC,KAAK,QAAQ,SAAS;AAE/B,MAAMC,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,m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C;IAEhD,IAAIqB,aAAa,CAACK,WAAW,CAAC,EAAE;MAC/B,OAAO;QACNd,GAAG,EAAE7C,cAAc,CAAC+B,KAAK,EAAEE,SAAS,CAAC;QACrCf,IAAI,EAAEyC;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNd,GAAG;IACH3B;EACD,CAAC;AACF;AAEA,SAASN,SAASA,CACjBgB,OAAsB,EACtBiB,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAOhC,aAAa,CAACG,KAAK,CAACqC,GAAG,CAAC,CAAC,EAAEzB,OAAO,EAAEvB,iBAAiB,CAACwC,GAAG,CAAC,CAAC;AACnE;AAEA,SAASrC,cAAcA,CACtBoB,OAAsB,EACtBiB,GAAU,EACsB;EAChC,SAAS;;EACT,OAAOpC,kBAAkB,CAACO,KAAK,CAACqC,GAAG,CAAC,CAAC,EAAEzB,OAAO,EAAEvB,iBAAiB,CAACwC,GAAG,CAAC,CAAC;AACxE;AAEA,SACCvC,gBAAgB,EAChBE,cAAc,EACdE,OAAO,EACP8C,eAAe,EACf5C,SAAS,EACTwC,gBAAgB,EAChBD,cAAc,EACdP,SAAS","ignoreList":[]}
|
|
@@ -18,12 +18,14 @@ function resolveTransitionPair(tag, context) {
|
|
|
18
18
|
const pairKey = resolvePairKey(context);
|
|
19
19
|
const matchedLink = pairKey ? getResolvedLink(pairKey, tag).link : null;
|
|
20
20
|
return {
|
|
21
|
-
sourceBounds: matchedLink?.source
|
|
21
|
+
sourceBounds: matchedLink?.source?.bounds ?? null,
|
|
22
22
|
destinationBounds: matchedLink?.destination?.bounds ?? null,
|
|
23
|
-
sourceStyles: matchedLink?.source
|
|
23
|
+
sourceStyles: matchedLink?.source?.styles ?? null,
|
|
24
24
|
destinationStyles: matchedLink?.destination?.styles ?? null,
|
|
25
|
-
sourceScreenKey: matchedLink?.source
|
|
26
|
-
destinationScreenKey: matchedLink?.destination?.screenKey ?? null
|
|
25
|
+
sourceScreenKey: matchedLink?.source?.screenKey ?? null,
|
|
26
|
+
destinationScreenKey: matchedLink?.destination?.screenKey ?? null,
|
|
27
|
+
sourcePortalAttachTarget: matchedLink?.source?.portalAttachTarget,
|
|
28
|
+
sourceHost: matchedLink?.source?.sourceHost
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
export { resolveTransitionPair };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createScreenPairKey","getResolvedLink","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,+BAA+B;AAOnE,SAASC,eAAe,QAAQ,SAAS;AAEzC,SAASC,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,OAAON,mBAAmB,CACzBG,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACI,aAAa,EAAE,OAAO,IAAI;EACpE,OAAOP,mBAAmB,CAACG,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACI,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVN,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMO,OAAO,GAAGR,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMQ,WAAW,GAAGD,OAAO,GAAGT,eAAe,CAACS,OAAO,EAAED,GAAG,CAAC,CAACG,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEF,WAAW,EAAEG,MAAM,
|
|
1
|
+
{"version":3,"names":["createScreenPairKey","getResolvedLink","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","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,SAASA,mBAAmB,QAAQ,+BAA+B;AAOnE,SAASC,eAAe,QAAQ,SAAS;AAEzC,SAASC,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,OAAON,mBAAmB,CACzBG,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACI,aAAa,EAAE,OAAO,IAAI;EACpE,OAAOP,mBAAmB,CAACG,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACI,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVN,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMO,OAAO,GAAGR,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMQ,WAAW,GAAGD,OAAO,GAAGT,eAAe,CAACS,OAAO,EAAED,GAAG,CAAC,CAACG,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEF,WAAW,EAAEG,MAAM,EAAEC,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEL,WAAW,EAAEM,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAEP,WAAW,EAAEG,MAAM,EAAEK,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAET,WAAW,EAAEM,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEV,WAAW,EAAEG,MAAM,EAAEQ,SAAS,IAAI,IAAI;IACvDC,oBAAoB,EAAEZ,WAAW,EAAEM,WAAW,EAAEK,SAAS,IAAI,IAAI;IACjEE,wBAAwB,EAAEb,WAAW,EAAEG,MAAM,EAAEW,kBAAkB;IACjEC,UAAU,EAAEf,WAAW,EAAEG,MAAM,EAAEY;EAClC,CAAC;AACF;AAEA,SAASlB,qBAAqB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["makeMutable","boundaryRegistry","pairs"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,yBAAyB;
|
|
1
|
+
{"version":3,"names":["makeMutable","boundaryRegistry","pairs"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,yBAAyB;AAQrD,OAAO,MAAMC,gBAAgB,GAAGD,WAAW,CAAuB,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;AACA,OAAO,MAAME,KAAK,GAAGF,WAAW,CAAiB,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -32,6 +32,56 @@ const hasMetadataWriters = routeKey => {
|
|
|
32
32
|
const clearMetadataWriters = routeKey => {
|
|
33
33
|
delete metadataWriters[routeKey];
|
|
34
34
|
};
|
|
35
|
+
export const cloneScrollMetadataState = scroll => {
|
|
36
|
+
"worklet";
|
|
37
|
+
|
|
38
|
+
if (!scroll) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
vertical: scroll.vertical ? {
|
|
43
|
+
offset: scroll.vertical.offset,
|
|
44
|
+
contentSize: scroll.vertical.contentSize,
|
|
45
|
+
layoutSize: scroll.vertical.layoutSize,
|
|
46
|
+
isTouched: scroll.vertical.isTouched
|
|
47
|
+
} : null,
|
|
48
|
+
horizontal: scroll.horizontal ? {
|
|
49
|
+
offset: scroll.horizontal.offset,
|
|
50
|
+
contentSize: scroll.horizontal.contentSize,
|
|
51
|
+
layoutSize: scroll.horizontal.layoutSize,
|
|
52
|
+
isTouched: scroll.horizontal.isTouched
|
|
53
|
+
} : null
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Offset clamped to the axis layout range, so iOS rubber-band overscroll never
|
|
59
|
+
* leaks into coordinate-space deltas. Returns null when the axis is untracked.
|
|
60
|
+
*/
|
|
61
|
+
export const clampScrollAxisOffset = axisState => {
|
|
62
|
+
"worklet";
|
|
63
|
+
|
|
64
|
+
if (!axisState) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
const maxOffset = Math.max(0, axisState.contentSize - axisState.layoutSize);
|
|
68
|
+
return Math.min(Math.max(axisState.offset, 0), maxOffset);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Clamped scroll travel between a captured snapshot and the current state on
|
|
73
|
+
* one axis. Returns 0 when either side does not track the axis.
|
|
74
|
+
*/
|
|
75
|
+
export const getClampedScrollAxisDelta = (current, captured, axis) => {
|
|
76
|
+
"worklet";
|
|
77
|
+
|
|
78
|
+
const currentOffset = clampScrollAxisOffset(current?.[axis]);
|
|
79
|
+
const capturedOffset = clampScrollAxisOffset(captured?.[axis]);
|
|
80
|
+
if (currentOffset === null || capturedOffset === null) {
|
|
81
|
+
return 0;
|
|
82
|
+
}
|
|
83
|
+
return currentOffset - capturedOffset;
|
|
84
|
+
};
|
|
35
85
|
|
|
36
86
|
/**
|
|
37
87
|
* Route-keyed scroll geometry used by gesture activation and bounds measurement.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cancelAnimation","makeMutable","createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","scrollStore","createBag","coordination","metadata","disposeBag","bag","ScrollStore","clearBag"],"sourceRoot":"../../../../src","sources":["shared/stores/scroll.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;
|
|
1
|
+
{"version":3,"names":["cancelAnimation","makeMutable","createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","cloneScrollMetadataState","scroll","offset","contentSize","layoutSize","isTouched","clampScrollAxisOffset","axisState","maxOffset","Math","max","min","getClampedScrollAxisDelta","current","captured","currentOffset","capturedOffset","scrollStore","createBag","coordination","metadata","disposeBag","bag","ScrollStore","clearBag"],"sourceRoot":"../../../../src","sources":["shared/stores/scroll.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAQhC,SAASC,WAAW,QAAQ,uBAAuB;AAOnD,MAAMC,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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e,CAACuC,GAAG,CAACH,YAAY,CAAC;IACjCpC,eAAe,CAACuC,GAAG,CAACF,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC;AAEF,OAAO,MAAMG,WAAW,GAAG;EAC1B,GAAGN,WAAW;EACd7B,sBAAsB;EACtBC,mBAAmB;EACnBK,qBAAqB;EACrBG,kBAAkB;EAClB2B,QAAQA,CAAClC,QAAmB,EAAE;IAC7BS,oBAAoB,CAACT,QAAQ,CAAC;IAC9B2B,WAAW,CAACO,QAAQ,CAAClC,QAAQ,CAAC;EAC/B;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAmQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAmQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AAsBA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/bounds.types.ts"],"mappings":";;AACA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;
|
|
1
|
+
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/bounds.types.ts"],"mappings":";;AACA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAoBrB;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
const splitBoundTag = id => {
|
|
4
|
+
"worklet";
|
|
5
|
+
|
|
6
|
+
const normalizedId = String(id);
|
|
7
|
+
const separatorIndex = normalizedId.indexOf(":");
|
|
8
|
+
if (separatorIndex <= 0 || separatorIndex >= normalizedId.length - 1) {
|
|
9
|
+
return {
|
|
10
|
+
id
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
group: normalizedId.slice(0, separatorIndex),
|
|
15
|
+
id: normalizedId.slice(separatorIndex + 1)
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export const normalizeBoundIdentity = (identity, fallbackGroup) => {
|
|
19
|
+
"worklet";
|
|
20
|
+
|
|
21
|
+
const source = typeof identity === "object" ? identity : {
|
|
22
|
+
id: identity
|
|
23
|
+
};
|
|
24
|
+
const parsed = splitBoundTag(source.id);
|
|
25
|
+
const group = source.group || parsed.group || fallbackGroup;
|
|
26
|
+
return {
|
|
27
|
+
id: parsed.id,
|
|
28
|
+
group
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
3
32
|
/**
|
|
4
33
|
* Creates a bound tag by formatting the given id and optional group
|
|
5
34
|
* into a `group:id` string. If no group is provided, returns just the id.
|
|
@@ -11,10 +40,14 @@ export const createBoundTag = ({
|
|
|
11
40
|
"worklet";
|
|
12
41
|
|
|
13
42
|
if (id == null || id === "") return undefined;
|
|
14
|
-
const
|
|
15
|
-
|
|
43
|
+
const identity = normalizeBoundIdentity({
|
|
44
|
+
id,
|
|
45
|
+
group
|
|
46
|
+
});
|
|
47
|
+
const normalizedId = String(identity.id);
|
|
48
|
+
if (!identity.group) {
|
|
16
49
|
return normalizedId;
|
|
17
50
|
}
|
|
18
|
-
return `${group}:${normalizedId}`;
|
|
51
|
+
return `${identity.group}:${normalizedId}`;
|
|
19
52
|
};
|
|
20
53
|
//# 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","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;AAED,OAAO,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;AACA,OAAO,MAAMO,cAAc,GAAGA,CAAC;EAC9Bb,EAAE;EACFM;AACqB,CAAC,KAAyB;EAC/C,SAAS;;EAET,IAAIN,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOc,SAAS;EAE7C,MAAML,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","ignoreList":[]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { createBoundTag } from "./create-bound-tag";
|
|
4
|
-
import { createInterpolators } from "./create-interpolators";
|
|
3
|
+
import { createBoundTag, normalizeBoundIdentity } from "./create-bound-tag";
|
|
5
4
|
import { createLinkAccessor } from "./create-link-accessor";
|
|
6
|
-
import { prepareBoundStyles } from "./prepare-bound-styles";
|
|
5
|
+
import { prepareBoundStyles, syncActiveGroupId } from "./prepare-bound-styles";
|
|
7
6
|
const createBoundsAccessorParts = ({
|
|
8
7
|
getProps,
|
|
9
8
|
extendResult
|
|
@@ -11,117 +10,71 @@ const createBoundsAccessorParts = ({
|
|
|
11
10
|
"worklet";
|
|
12
11
|
|
|
13
12
|
const {
|
|
14
|
-
getMeasured,
|
|
15
|
-
getSnapshot,
|
|
16
13
|
getLink
|
|
17
14
|
} = createLinkAccessor(getProps);
|
|
18
|
-
const {
|
|
19
|
-
interpolateStyle,
|
|
20
|
-
interpolateBounds
|
|
21
|
-
} = createInterpolators({
|
|
22
|
-
getProps,
|
|
23
|
-
getLink
|
|
24
|
-
});
|
|
25
|
-
const computeBounds = params => {
|
|
15
|
+
const createScopedBounds = identity => {
|
|
26
16
|
"worklet";
|
|
27
17
|
|
|
28
18
|
const props = getProps();
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const tag = createBoundTag({
|
|
33
|
-
id: options.id,
|
|
34
|
-
group: options.group
|
|
35
|
-
});
|
|
36
|
-
const computed = prepareBoundStyles({
|
|
19
|
+
const normalizedIdentity = normalizeBoundIdentity(identity);
|
|
20
|
+
const tag = createBoundTag(normalizedIdentity);
|
|
21
|
+
syncActiveGroupId({
|
|
37
22
|
props,
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
id: normalizedIdentity.id,
|
|
24
|
+
group: normalizedIdentity.group
|
|
40
25
|
});
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperties(target, {
|
|
46
|
-
getMeasured: {
|
|
47
|
-
value: key => {
|
|
48
|
-
"worklet";
|
|
26
|
+
const scoped = {
|
|
27
|
+
styles: options => {
|
|
28
|
+
"worklet";
|
|
49
29
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
return prepareBoundStyles({
|
|
31
|
+
props,
|
|
32
|
+
options: {
|
|
33
|
+
...options,
|
|
34
|
+
id: normalizedIdentity.id,
|
|
35
|
+
group: normalizedIdentity.group
|
|
36
|
+
}
|
|
37
|
+
});
|
|
54
38
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"worklet";
|
|
39
|
+
math: options => {
|
|
40
|
+
"worklet";
|
|
58
41
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
42
|
+
return prepareBoundStyles({
|
|
43
|
+
props,
|
|
44
|
+
options: {
|
|
45
|
+
...options,
|
|
46
|
+
id: normalizedIdentity.id,
|
|
47
|
+
group: normalizedIdentity.group,
|
|
48
|
+
raw: true
|
|
49
|
+
}
|
|
50
|
+
});
|
|
63
51
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"worklet";
|
|
52
|
+
link: id => {
|
|
53
|
+
"worklet";
|
|
67
54
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
configurable: true
|
|
72
|
-
},
|
|
73
|
-
interpolateStyle: {
|
|
74
|
-
value: (property, fallback) => {
|
|
75
|
-
"worklet";
|
|
76
|
-
|
|
77
|
-
return interpolateStyle(scopedTag, property, fallback);
|
|
78
|
-
},
|
|
79
|
-
enumerable: false,
|
|
80
|
-
configurable: true
|
|
81
|
-
},
|
|
82
|
-
interpolateBounds: {
|
|
83
|
-
value: (property, fallbackOrTargetKey, fallback) => {
|
|
84
|
-
"worklet";
|
|
85
|
-
|
|
86
|
-
return interpolateBounds(scopedTag, property, fallbackOrTargetKey, fallback);
|
|
87
|
-
},
|
|
88
|
-
enumerable: false,
|
|
89
|
-
configurable: true
|
|
55
|
+
const linkIdentity = id == null ? normalizedIdentity : normalizeBoundIdentity(id, normalizedIdentity.group);
|
|
56
|
+
const linkTag = createBoundTag(linkIdentity);
|
|
57
|
+
return getLink(linkTag ?? "");
|
|
90
58
|
}
|
|
91
|
-
}
|
|
59
|
+
};
|
|
92
60
|
extendResult?.({
|
|
93
|
-
target:
|
|
61
|
+
target: scoped,
|
|
62
|
+
identity: normalizedIdentity,
|
|
94
63
|
props,
|
|
95
64
|
tag
|
|
96
65
|
});
|
|
97
|
-
return
|
|
66
|
+
return scoped;
|
|
98
67
|
};
|
|
99
68
|
return {
|
|
100
|
-
|
|
101
|
-
getMeasured,
|
|
102
|
-
getSnapshot,
|
|
103
|
-
getLink,
|
|
104
|
-
interpolateStyle,
|
|
105
|
-
interpolateBounds
|
|
69
|
+
createScopedBounds
|
|
106
70
|
};
|
|
107
71
|
};
|
|
108
72
|
export const createBoundsAccessorCore = params => {
|
|
109
73
|
"worklet";
|
|
110
74
|
|
|
111
75
|
const {
|
|
112
|
-
|
|
113
|
-
getMeasured,
|
|
114
|
-
getSnapshot,
|
|
115
|
-
getLink,
|
|
116
|
-
interpolateStyle,
|
|
117
|
-
interpolateBounds
|
|
76
|
+
createScopedBounds
|
|
118
77
|
} = createBoundsAccessorParts(params);
|
|
119
|
-
return
|
|
120
|
-
getMeasured,
|
|
121
|
-
getSnapshot,
|
|
122
|
-
getLink,
|
|
123
|
-
interpolateStyle,
|
|
124
|
-
interpolateBounds
|
|
125
|
-
});
|
|
78
|
+
return createScopedBounds;
|
|
126
79
|
};
|
|
127
80
|
//# sourceMappingURL=create-bounds-accessor-core.js.map
|