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":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_floatingOverlayLayer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMaps","useInterpolatedStylesMap","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_floatingOverlayLayer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMaps","useInterpolatedStylesMap","animatedStyle","animatedProps","shouldBlockVisibility","useMaybeBlockVisibility","stylesMap","useResolvedStylesMap","localStylesMaps","ancestorStylesMap","value","jsx","FloatingOverlayLayer","enabled","View","style","styles","container","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAP,OAAA;AACA,IAAAQ,wBAAA,GAAAR,OAAA;AAA2E,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAYpE,MAAM;EACZG,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAG,IAAAC,uBAAc,EAAC,cAAc,EAAE;EAClCC,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAG,IAAAC,iBAAU,EAACR,mBAAmB,CAAC;EAErD,MAAMS,aAAa,GAAG,IAAAC,kDAAwB,EAAC,CAAC;EAEhD,MAAM;IAAEC,aAAa;IAAEC,aAAa;IAAEC;EAAsB,CAAC,GAC5D,IAAAC,gDAAuB,EAACR,iBAAiB,CAAC;EAE3C,MAAMS,SAAS,GAAG,IAAAC,6CAAoB,EAAC;IACtCC,eAAe,EAAER,aAAa;IAC9BS,iBAAiB,EAAEX,aAAa,EAAEQ;EACnC,CAAC,CAAC;EAEF,OAAO;IACNI,KAAK,EAAE;MACNJ,SAAS;MACTF;IACD,CAAC;IACDR,QAAQ,eACP,IAAAV,WAAA,CAAAyB,GAAA,EAAC7B,qBAAA,CAAA8B,oBAAoB;MAACC,OAAO,EAAEhB,iBAAkB;MAAAD,QAAA,eAChD,IAAAV,WAAA,CAAAyB,GAAA,EAAChC,sBAAA,CAAAU,OAAQ,CAACyB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEf,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAP,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACK;EAExB,CAAC;AACF,CAAC,CAAC;AAACsB,OAAA,CAAAzB,eAAA,GAAAA,eAAA;AAAAyB,OAAA,CAAA3B,mBAAA,GAAAA,mBAAA;AAAA2B,OAAA,CAAA5B,oBAAA,GAAAA,oBAAA;AAEH,MAAM0B,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ function createAnimationBag() {
|
|
|
10
10
|
return {
|
|
11
11
|
transitionProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
12
12
|
visualProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
13
|
+
stackProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
13
14
|
willAnimate: (0, _reactNativeReanimated.makeMutable)(0),
|
|
14
15
|
closing: (0, _reactNativeReanimated.makeMutable)(0),
|
|
15
16
|
progressAnimating: (0, _reactNativeReanimated.makeMutable)(0),
|
|
@@ -28,6 +29,7 @@ const AnimationStore = exports.AnimationStore = (0, _createStore.createStore)({
|
|
|
28
29
|
disposeBag: bag => {
|
|
29
30
|
(0, _reactNativeReanimated.cancelAnimation)(bag.transitionProgress);
|
|
30
31
|
(0, _reactNativeReanimated.cancelAnimation)(bag.visualProgress);
|
|
32
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.stackProgress);
|
|
31
33
|
(0, _reactNativeReanimated.cancelAnimation)(bag.willAnimate);
|
|
32
34
|
(0, _reactNativeReanimated.cancelAnimation)(bag.progressAnimating);
|
|
33
35
|
(0, _reactNativeReanimated.cancelAnimation)(bag.progressSettled);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","transitionProgress","makeMutable","visualProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","transitionProgress","makeMutable","visualProgress","stackProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAaA,SAASE,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,kBAAkB,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IAClCC,cAAc,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IAC9BE,aAAa,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;IAC7BG,WAAW,EAAE,IAAAH,kCAAW,EAAC,CAAC,CAAC;IAC3BI,OAAO,EAAE,IAAAJ,kCAAW,EAAC,CAAC,CAAC;IACvBK,iBAAiB,EAAE,IAAAL,kCAAW,EAAC,CAAC,CAAC;IACjCM,eAAe,EAAE,IAAAN,kCAAW,EAAC,CAAC,CAAC;IAC/BO,QAAQ,EAAE,IAAAP,kCAAW,EAAC,CAAC;EACxB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMQ,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,wBAAW,EAAoB;EAC5DC,SAAS,EAAEb,kBAAkB;EAC7Bc,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACd,kBAAkB,CAAC;IACvC,IAAAe,sCAAe,EAACD,GAAG,CAACZ,cAAc,CAAC;IACnC,IAAAa,sCAAe,EAACD,GAAG,CAACX,aAAa,CAAC;IAClC,IAAAY,sCAAe,EAACD,GAAG,CAACV,WAAW,CAAC;IAChC,IAAAW,sCAAe,EAACD,GAAG,CAACR,iBAAiB,CAAC;IACtC,IAAAS,sCAAe,EAACD,GAAG,CAACP,eAAe,CAAC;IACpC,IAAAQ,sCAAe,EAACD,GAAG,CAACT,OAAO,CAAC;IAC5B,IAAAU,sCAAe,EAACD,GAAG,CAACN,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.
|
|
6
|
+
exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.getDestination = exports.getActiveGroupId = exports.ensurePairLinks = exports.ensurePairGroups = exports.createScreenPairKey = exports.createPendingPairKey = exports.createGroupTag = void 0;
|
|
7
7
|
const PAIR_SEPARATOR = "<>";
|
|
8
8
|
const createScreenPairKey = (sourceScreenKey, destinationScreenKey) => {
|
|
9
9
|
"worklet";
|
|
@@ -25,14 +25,6 @@ const getSourceScreenKeyFromPairKey = pairKey => {
|
|
|
25
25
|
return pairKey.slice(0, separatorIndex);
|
|
26
26
|
};
|
|
27
27
|
exports.getSourceScreenKeyFromPairKey = getSourceScreenKeyFromPairKey;
|
|
28
|
-
const getDestinationScreenKeyFromPairKey = pairKey => {
|
|
29
|
-
"worklet";
|
|
30
|
-
|
|
31
|
-
const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
|
|
32
|
-
if (separatorIndex === -1) return "";
|
|
33
|
-
return pairKey.slice(separatorIndex + PAIR_SEPARATOR.length);
|
|
34
|
-
};
|
|
35
|
-
exports.getDestinationScreenKeyFromPairKey = getDestinationScreenKeyFromPairKey;
|
|
36
28
|
const isScreenPairKeyForScreen = (pairKey, screenKey) => {
|
|
37
29
|
"worklet";
|
|
38
30
|
|
|
@@ -73,7 +65,6 @@ const ensurePairState = (state, pairKey) => {
|
|
|
73
65
|
state[pairKey].groups ??= {};
|
|
74
66
|
return state[pairKey];
|
|
75
67
|
};
|
|
76
|
-
exports.ensurePairState = ensurePairState;
|
|
77
68
|
const ensurePairLinks = (state, pairKey) => {
|
|
78
69
|
"worklet";
|
|
79
70
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","
|
|
1
|
+
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","isScreenPairKeyForScreen","screenKey","startsWith","endsWith","getLinkKeyFromTag","tag","getGroupKeyFromTag","createGroupTag","group","linkKey","ensurePairState","state","links","groups","ensurePairLinks","ensurePairGroups","removePairLink","pair","key","getLink","getSource","source","getDestination","destination","getActiveGroupId","activeId"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link-pairs.helpers.ts"],"mappings":";;;;;;AAWA,MAAMA,cAAc,GAAG,IAAI;AAEpB,MAAMC,mBAAmB,GAAGA,CAClCC,eAA8C,EAC9CC,oBAAwD,KACrC;EACnB,SAAS;;EACT,OAAO,GAAGD,eAAe,GAAGF,cAAc,GAAGG,oBAAoB,EAAE;AACpE,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,oBAAoB,GAChCH,eAA8C,IAC3B;EACnB,SAAS;;EACT,OAAOD,mBAAmB,CAACC,eAAe,EAAE,EAAE,CAAC;AAChD,CAAC;AAACE,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMC,6BAA6B,GACzCC,OAAsB,IACa;EACnC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACT,cAAc,CAAC;EACtD,IAAIQ,cAAc,KAAK,CAAC,CAAC,EAAE,OAAOD,OAAO;EACzC,OAAOA,OAAO,CAACG,KAAK,CAAC,CAAC,EAAEF,cAAc,CAAC;AACxC,CAAC;AAACJ,OAAA,CAAAE,6BAAA,GAAAA,6BAAA;AAEK,MAAMK,wBAAwB,GAAGA,CACvCJ,OAAsB,EACtBK,SAAwC,KAC3B;EACb,SAAS;;EACT,OACCL,OAAO,KAAKF,oBAAoB,CAACO,SAAS,CAAC,IAC3CL,OAAO,CAACM,UAAU,CAAC,GAAGD,SAAS,GAAGZ,cAA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AAAC5B,OAAA,CAAA2B,SAAA,GAAAA,SAAA;AAEK,MAAME,cAAc,GAAGA,CAC7BX,KAAqB,EACrBf,OAAsB,EACtBa,OAAgB,KACmB;EACnC,SAAS;;EACT,OAAOU,OAAO,CAACR,KAAK,EAAEf,OAAO,EAAEa,OAAO,CAAC,EAAEc,WAAW,IAAI,IAAI;AAC7D,CAAC;AAAC9B,OAAA,CAAA6B,cAAA,GAAAA,cAAA;AAEK,MAAME,gBAAgB,GAAGA,CAC/Bb,KAAqB,EACrBf,OAAsB,EACtBY,KAAe,KACK;EACpB,SAAS;;EACT,OAAOG,KAAK,CAACf,OAAO,CAAC,EAAEiB,MAAM,GAAGL,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI;AACzD,CAAC;AAAChC,OAAA,CAAA+B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clear","require","_entries","_links","_resolver","BoundStore","exports","entry","set","setEntry","get","getEntry","remove","removeEntry","link","setSource","setDestination","setActiveGroupId","getLink","getSource","getDestination","getActiveGroupId","getPair","resolveTransitionPair","cleanup","byScreen","clear"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_clear","require","_entries","_links","_resolver","BoundStore","exports","entry","set","setEntry","get","getEntry","remove","removeEntry","link","setSource","setDestination","setActiveGroupId","getLink","getSource","getDestination","getActiveGroupId","getPair","resolveTransitionPair","cleanup","byScreen","clear"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;AAYO,MAAMI,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACzBE,KAAK,EAAE;IACNC,GAAG,EAAEC,iBAAQ;IACbC,GAAG,EAAEC,iBAAQ;IACbC,MAAM,EAAEC;EACT,CAAC;EACDC,IAAI,EAAE;IACLC,SAAS,EAATA,gBAAS;IACTC,cAAc,EAAdA,qBAAc;IACdC,gBAAgB,EAAhBA,uBAAgB;IAChBC,OAAO,EAAPA,cAAO;IACPC,SAAS,EAATA,gBAAS;IACTC,cAAc,EAAdA,qBAAc;IACdC,gBAAgB,EAAhBA,uBAAgB;IAChBC,OAAO,EAAEC;EACV,CAAC;EACDC,OAAO,EAAE;IACRC,QAAQ,EAAEC;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,
|
|
1
|
+
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,KACT;EACX,SAAS;;EACT,MAAMC,QAAQ,GAAGN,mBAAmB,CAACC,KAAK,EAAEC,GAAG,CAAC;EAChD,IAAI,CAACI,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,EAAE;IACjCC,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,GAAG;MAC7BE,MAAM,EAAE,IAAI;MACZC,MAAM,EAAE,CAAC;IACV,CAAC;EACF;EACA,OAAOF,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;AACnC,CAAC;AAED,MAAMI,eAAe,GAAGA,CAACC,KAAY,EAAEC,KAAiB,KAAK;EAC5D,SAAS;;EACT,IAAIA,KAAK,CAACJ,MAAM,KAAKK,SAAS,EAAE;IAC/BF,KAAK,CAACH,MAAM,GAAGI,KAAK,CAACJ,MAAM;EAC5B;EAEA,IAAII,KAAK,CAACH,MAAM,KAAKI,SAAS,EAAE;IAC/BF,KAAK,CAACF,MAAM,GAAGG,KAAK,CAACH,MAAM,IAAI,CAAC,CAAC;EAClC;EAEA,IAAIG,KAAK,CAACE,cAAc,KAAKD,SAAS,EAAE;IACvC;EACD;EAEA,IAAID,KAAK,CAACE,cAAc,KAAK,IAAI,EAAE;IAClC,OAAOH,KAAK,CAACG,cAAc;EAC5B,CAAC,MAAM;IACNH,KAAK,CAACG,cAAc,GAAGF,KAAK,CAACE,cAAc;EAC5C;AACD,CAAC;AAED,SAASC,QAAQA,CAACZ,GAAU,EAAEa,GAAc,EAAgB;EAC3D,SAAS;;EACT,OAAOC,uBAAgB,CAACC,GAAG,CAAC,CAAC,CAACf,GAAG,CAAC,EAAEC,OAAO,CAACY,GAAG,CAAC,IAAI,IAAI;AACzD;AAEA,SAASG,QAAQA,CAAChB,GAAU,EAAEG,SAAoB,EAAEM,KAAiB,EAAE;EACtE,SAAS;;EACTK,uBAAgB,CAACG,MAAM,CAAkClB,KAAQ,IAAQ;IACxE,SAAS;;IACT,MAAMS,KAAK,GAAGN,iBAAiB,CAACH,KAAK,EAAEC,GAAG,EAAEG,SAAS,CAAC;IACtDI,eAAe,CAACC,KAAK,EAAEC,KAAK,CAAC;IAC7B,OAAOV,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASmB,WAAWA,CAAClB,GAAU,EAAEG,SAAoB,EAAE;EACtD,SAAS;;EACTW,uBAAgB,CAACG,MAAM,CAAkClB,KAAQ,IAAQ;IACxE,SAAS;;IACT,MAAMK,QAAQ,GAAGL,KAAK,CAACC,GAAG,CAAC;IAC3B,IAAI,CAACI,QAAQ,EAAEH,OAAO,CAACE,SAAS,CAAC,EAAE;MAClC,OAAOJ,KAAK;IACb;IAEA,OAAOK,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;IAClC,IAAI,CAAC,IAAAgB,gBAAU,EAACf,QAAQ,CAACH,OAAO,CAAC,EAAE;MAClC,OAAOF,KAAK,CAACC,GAAG,CAAC;IAClB;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -13,10 +13,10 @@ exports.setDestination = setDestination;
|
|
|
13
13
|
exports.setSource = setSource;
|
|
14
14
|
var _linkPairs = require("../helpers/link-pairs.helpers");
|
|
15
15
|
var _state = require("./state");
|
|
16
|
-
const
|
|
16
|
+
const syncLinkStatus = link => {
|
|
17
17
|
"worklet";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
link.status = link.source ? link.destination ? "complete" : "destination-incomplete" : "source-incomplete";
|
|
20
20
|
};
|
|
21
21
|
const createLinkSide = (screenKey, bounds, styles) => {
|
|
22
22
|
"worklet";
|
|
@@ -44,12 +44,19 @@ const writeGroup = (state, pairKey, group, activeId, initialId) => {
|
|
|
44
44
|
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group) => {
|
|
45
45
|
"worklet";
|
|
46
46
|
|
|
47
|
-
const
|
|
48
|
-
if (!link) return;
|
|
47
|
+
const existingLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
49
48
|
const destination = createLinkSide(screenKey, bounds, styles);
|
|
49
|
+
const link = existingLink ?? {
|
|
50
|
+
group,
|
|
51
|
+
status: "source-incomplete",
|
|
52
|
+
source: null,
|
|
53
|
+
destination,
|
|
54
|
+
initialDestination: destination
|
|
55
|
+
};
|
|
50
56
|
link.group = group ?? link.group;
|
|
51
57
|
link.destination = destination;
|
|
52
58
|
link.initialDestination ??= destination;
|
|
59
|
+
syncLinkStatus(link);
|
|
53
60
|
writePairLink(state, pairKey, linkKey, link);
|
|
54
61
|
if (link.group) {
|
|
55
62
|
writeGroup(state, pairKey, link.group, linkKey);
|
|
@@ -73,18 +80,26 @@ const promotePendingSource = (state, pairKey, linkKey) => {
|
|
|
73
80
|
}
|
|
74
81
|
(0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
|
|
75
82
|
};
|
|
76
|
-
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
83
|
+
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAttachTarget, sourceHost) {
|
|
77
84
|
"worklet";
|
|
78
85
|
|
|
79
86
|
_state.pairs.modify(state => {
|
|
80
87
|
"worklet";
|
|
81
88
|
|
|
82
|
-
const linkKey =
|
|
83
|
-
const source = createLinkSide(screenKey, bounds, styles);
|
|
89
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
84
90
|
const pairLinks = (0, _linkPairs.ensurePairLinks)(state, pairKey);
|
|
85
91
|
const existingLink = pairLinks[linkKey];
|
|
92
|
+
|
|
93
|
+
// Refresh paths may re-measure the source without portal context;
|
|
94
|
+
// keep the previously recorded host in that case.
|
|
95
|
+
const source = {
|
|
96
|
+
...createLinkSide(screenKey, bounds, styles),
|
|
97
|
+
portalAttachTarget: portalAttachTarget ?? existingLink?.source?.portalAttachTarget,
|
|
98
|
+
sourceHost: sourceHost ?? existingLink?.source?.sourceHost
|
|
99
|
+
};
|
|
86
100
|
const link = existingLink ?? {
|
|
87
101
|
group,
|
|
102
|
+
status: "destination-incomplete",
|
|
88
103
|
source,
|
|
89
104
|
destination: null,
|
|
90
105
|
initialSource: source
|
|
@@ -92,6 +107,7 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
92
107
|
link.group = group ?? link.group;
|
|
93
108
|
link.source = source;
|
|
94
109
|
link.initialSource ??= source;
|
|
110
|
+
syncLinkStatus(link);
|
|
95
111
|
pairLinks[linkKey] = link;
|
|
96
112
|
const pendingPairKey = (0, _linkPairs.createPendingPairKey)(screenKey);
|
|
97
113
|
if (pendingPairKey !== pairKey) {
|
|
@@ -106,7 +122,7 @@ function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
|
106
122
|
_state.pairs.modify(state => {
|
|
107
123
|
"worklet";
|
|
108
124
|
|
|
109
|
-
const linkKey =
|
|
125
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
110
126
|
promotePendingSource(state, pairKey, linkKey);
|
|
111
127
|
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
|
|
112
128
|
return state;
|
|
@@ -118,7 +134,7 @@ function setActiveGroupId(pairKey, group, tag) {
|
|
|
118
134
|
_state.pairs.modify(state => {
|
|
119
135
|
"worklet";
|
|
120
136
|
|
|
121
|
-
writeGroup(state, pairKey, group,
|
|
137
|
+
writeGroup(state, pairKey, group, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
122
138
|
return state;
|
|
123
139
|
});
|
|
124
140
|
}
|
|
@@ -130,12 +146,12 @@ function getActiveGroupId(pairKey, group) {
|
|
|
130
146
|
function getLink(pairKey, tag) {
|
|
131
147
|
"worklet";
|
|
132
148
|
|
|
133
|
-
return (0, _linkPairs.getLink)(_state.pairs.get(), pairKey,
|
|
149
|
+
return (0, _linkPairs.getLink)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
134
150
|
}
|
|
135
|
-
const
|
|
151
|
+
const hasSourceLink = link => {
|
|
136
152
|
"worklet";
|
|
137
153
|
|
|
138
|
-
return !!link?.
|
|
154
|
+
return !!link?.source;
|
|
139
155
|
};
|
|
140
156
|
const getPendingSourceLink = (state, pairKey, linkKey) => {
|
|
141
157
|
"worklet";
|
|
@@ -149,7 +165,7 @@ function getResolvedLink(pairKey, tag) {
|
|
|
149
165
|
"worklet";
|
|
150
166
|
|
|
151
167
|
const state = _state.pairs.get();
|
|
152
|
-
const linkKey =
|
|
168
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
153
169
|
const group = (0, _linkPairs.getGroupKeyFromTag)(tag);
|
|
154
170
|
const requestedLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
155
171
|
|
|
@@ -161,8 +177,9 @@ function getResolvedLink(pairKey, tag) {
|
|
|
161
177
|
const link = requestedLink ?? fallbackPendingLink;
|
|
162
178
|
|
|
163
179
|
// Group active ids can update before the new member has a full source/destination
|
|
164
|
-
// link
|
|
165
|
-
|
|
180
|
+
// link. As soon as the requested member has source bounds, prefer it; only
|
|
181
|
+
// fall back while the requested member has no source yet.
|
|
182
|
+
if (!group || hasSourceLink(link)) {
|
|
166
183
|
return {
|
|
167
184
|
tag,
|
|
168
185
|
link
|
|
@@ -170,8 +187,8 @@ function getResolvedLink(pairKey, tag) {
|
|
|
170
187
|
}
|
|
171
188
|
const initialId = state[pairKey]?.groups?.[group]?.initialId;
|
|
172
189
|
if (initialId) {
|
|
173
|
-
const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId);
|
|
174
|
-
if (
|
|
190
|
+
const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId) ?? getPendingSourceLink(state, pairKey, initialId);
|
|
191
|
+
if (hasSourceLink(initialLink)) {
|
|
175
192
|
return {
|
|
176
193
|
tag: (0, _linkPairs.createGroupTag)(group, initialId),
|
|
177
194
|
link: initialLink
|
|
@@ -186,11 +203,11 @@ function getResolvedLink(pairKey, tag) {
|
|
|
186
203
|
function getSource(pairKey, tag) {
|
|
187
204
|
"worklet";
|
|
188
205
|
|
|
189
|
-
return (0, _linkPairs.getSource)(_state.pairs.get(), pairKey,
|
|
206
|
+
return (0, _linkPairs.getSource)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
190
207
|
}
|
|
191
208
|
function getDestination(pairKey, tag) {
|
|
192
209
|
"worklet";
|
|
193
210
|
|
|
194
|
-
return (0, _linkPairs.getDestination)(_state.pairs.get(), pairKey,
|
|
211
|
+
return (0, _linkPairs.getDestination)(_state.pairs.get(), pairKey, (0, _linkPairs.getLinkKeyFromTag)(tag));
|
|
195
212
|
}
|
|
196
213
|
//# sourceMappingURL=links.js.map
|
|
@@ -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,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAED,MAAMC,cAAc,GAAGA,CACtBC,SAAoB,EACpBC,MAA0B,EAC1BC,MAAkB,KACd;EACJ,SAAS;;EACT,OAAO;IACNF,SAAS;IACTC,MAAM;IACNC;EACD,CAAC;AACF,CAAC;AAED,MAAMC,aAAa,GAAGA,CACrBC,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBX,IAAa,KACT;EACJ,SAAS;;EACT,IAAAY,0BAAe,EAACH,KAAK,EAAEC,OAAO,CAAC,CAACC,OAAO,CAAC,GAAGX,IAAI;AAChD,CAAC;AAED,MAAMa,UAAU,GAAGA,CAClBJ,KAAqB,EACrBC,OAAsB,EACtBI,KAAe,EACfC,QAAiB,EACjBC,SAAmB,KACf;EACJ,SAAS;;EACT,MAAMC,iBAAiB,GAAGR,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAEpE,IAAAG,2BAAgB,EAACV,KAAK,EAAEC,OAAO,CAAC,CAACI,KAAK,CAAC,GAAG;IACzCC,QAAQ;IACRC,SAAS,EAAEC,iBAAiB,IAAID,SAAS,IAAID;EAC9C,CAAC;AAC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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,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MK,WAAW,GAAG,IAAAC,wBAAW,EAAiB;EAC/CC,SAAS,EAAEA,CAAA,MAAO;IACjBC,YAAY,EAAE,IAAAC,kCAAW,EAA4B,IAAI,CAAC;IAC1DC,QAAQ,EAAE,IAAAD,kCAAW,EAA6B,IAAI;EACvD,CAAC,CAAC;EACFE,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACJ,YAAY,CAAC;IACjC,IAAAK,sCAAe,EAACD,GAAG,CAACF,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC;AAEK,MAAMI,WAAW,GAAArB,OAAA,CAAAqB,WAAA,GAAG;EAC1B,GAAGT,WAAW;EACd9B,sBAAsB;EACtBC,mBAAmB;EACnBK,qBAAqB;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,CAAC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