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
|
@@ -137,6 +137,101 @@ const getAnchorOffset = ({
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
+
const clampUnit = value => {
|
|
141
|
+
"worklet";
|
|
142
|
+
|
|
143
|
+
return Math.min(1, Math.max(0, value));
|
|
144
|
+
};
|
|
145
|
+
const normalizeRangeProgress = (progress, ranges) => {
|
|
146
|
+
"worklet";
|
|
147
|
+
|
|
148
|
+
const distance = ranges[1] - ranges[0];
|
|
149
|
+
if (Math.abs(distance) <= _constants.EPSILON) {
|
|
150
|
+
return 1;
|
|
151
|
+
}
|
|
152
|
+
return clampUnit((progress - ranges[0]) / distance);
|
|
153
|
+
};
|
|
154
|
+
const getUniformScale = (scaleX, scaleY) => {
|
|
155
|
+
"worklet";
|
|
156
|
+
|
|
157
|
+
if (Math.abs(scaleX - scaleY) <= _constants.EPSILON) {
|
|
158
|
+
return scaleX;
|
|
159
|
+
}
|
|
160
|
+
return Math.sqrt(Math.abs(scaleX * scaleY));
|
|
161
|
+
};
|
|
162
|
+
const getScaleRatio = (resolvedScale, currentScale) => {
|
|
163
|
+
"worklet";
|
|
164
|
+
|
|
165
|
+
const safeCurrentScale = Math.abs(currentScale) > _constants.EPSILON ? currentScale : 1;
|
|
166
|
+
return resolvedScale / safeCurrentScale;
|
|
167
|
+
};
|
|
168
|
+
const resolveMotionTransform = ({
|
|
169
|
+
computeOptions,
|
|
170
|
+
interpolationProps,
|
|
171
|
+
progress,
|
|
172
|
+
ranges,
|
|
173
|
+
start,
|
|
174
|
+
end,
|
|
175
|
+
current
|
|
176
|
+
}) => {
|
|
177
|
+
"worklet";
|
|
178
|
+
|
|
179
|
+
if (!computeOptions.motion) {
|
|
180
|
+
return current;
|
|
181
|
+
}
|
|
182
|
+
return computeOptions.motion({
|
|
183
|
+
progress: normalizeRangeProgress(progress, ranges),
|
|
184
|
+
current,
|
|
185
|
+
start,
|
|
186
|
+
end,
|
|
187
|
+
props: interpolationProps
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Builds the rendered transform stack for a resolved motion: optional
|
|
192
|
+
* perspective first (so rotations project in 3D), translates, optional
|
|
193
|
+
* rotations, then the composer's scale entries — rotation happens in
|
|
194
|
+
* unscaled space around the element center.
|
|
195
|
+
*/
|
|
196
|
+
const composeMotionTransform = (motion, scaleTransforms) => {
|
|
197
|
+
"worklet";
|
|
198
|
+
|
|
199
|
+
const transform = [];
|
|
200
|
+
const rotate = motion.rotate ?? 0;
|
|
201
|
+
const rotateX = motion.rotateX ?? 0;
|
|
202
|
+
const rotateY = motion.rotateY ?? 0;
|
|
203
|
+
if (rotate !== 0 || rotateX !== 0 || rotateY !== 0 || motion.perspective !== undefined) {
|
|
204
|
+
transform.push({
|
|
205
|
+
perspective: motion.perspective ?? 1000
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
transform.push({
|
|
209
|
+
translateX: motion.x
|
|
210
|
+
}, {
|
|
211
|
+
translateY: motion.y
|
|
212
|
+
});
|
|
213
|
+
if (rotateX !== 0) {
|
|
214
|
+
transform.push({
|
|
215
|
+
rotateX: `${rotateX}deg`
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
if (rotateY !== 0) {
|
|
219
|
+
transform.push({
|
|
220
|
+
rotateY: `${rotateY}deg`
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
if (rotate !== 0) {
|
|
224
|
+
transform.push({
|
|
225
|
+
rotate: `${rotate}deg`
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
if (scaleTransforms) {
|
|
229
|
+
for (const entry of scaleTransforms) {
|
|
230
|
+
transform.push(entry);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return transform;
|
|
234
|
+
};
|
|
140
235
|
function composeSizeAbsolute(params) {
|
|
141
236
|
"worklet";
|
|
142
237
|
|
|
@@ -161,24 +256,38 @@ function composeSizeAbsolute(params) {
|
|
|
161
256
|
});
|
|
162
257
|
const translateX = anchorX - anchorOffset.x;
|
|
163
258
|
const translateY = anchorY - anchorOffset.y;
|
|
259
|
+
const motion = resolveMotionTransform({
|
|
260
|
+
computeOptions,
|
|
261
|
+
interpolationProps: params.interpolationProps,
|
|
262
|
+
progress,
|
|
263
|
+
ranges,
|
|
264
|
+
start,
|
|
265
|
+
end,
|
|
266
|
+
current: {
|
|
267
|
+
x: translateX,
|
|
268
|
+
y: translateY,
|
|
269
|
+
scale: 1
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
const resolvedWidth = width * motion.scale;
|
|
273
|
+
const resolvedHeight = height * motion.scale;
|
|
164
274
|
if (computeOptions.raw) {
|
|
165
275
|
return {
|
|
166
|
-
width,
|
|
167
|
-
height,
|
|
168
|
-
translateX,
|
|
169
|
-
translateY,
|
|
170
|
-
|
|
276
|
+
width: resolvedWidth,
|
|
277
|
+
height: resolvedHeight,
|
|
278
|
+
translateX: motion.x,
|
|
279
|
+
translateY: motion.y,
|
|
280
|
+
rotate: motion.rotate ?? 0,
|
|
281
|
+
rotateX: motion.rotateX ?? 0,
|
|
282
|
+
rotateY: motion.rotateY ?? 0,
|
|
283
|
+
transformOrigin: motion.transformOrigin
|
|
171
284
|
};
|
|
172
285
|
}
|
|
173
286
|
return {
|
|
174
|
-
width,
|
|
175
|
-
height,
|
|
176
|
-
transform:
|
|
177
|
-
|
|
178
|
-
}, {
|
|
179
|
-
translateY
|
|
180
|
-
}],
|
|
181
|
-
..._constants.VISIBLE_STYLE
|
|
287
|
+
width: resolvedWidth,
|
|
288
|
+
height: resolvedHeight,
|
|
289
|
+
transform: composeMotionTransform(motion),
|
|
290
|
+
transformOrigin: motion.transformOrigin
|
|
182
291
|
};
|
|
183
292
|
}
|
|
184
293
|
function composeSizeRelative(params) {
|
|
@@ -208,24 +317,38 @@ function composeSizeRelative(params) {
|
|
|
208
317
|
});
|
|
209
318
|
const translateX = anchorX - (baseX + anchorOffset.x);
|
|
210
319
|
const translateY = anchorY - (baseY + anchorOffset.y);
|
|
320
|
+
const motion = resolveMotionTransform({
|
|
321
|
+
computeOptions,
|
|
322
|
+
interpolationProps: params.interpolationProps,
|
|
323
|
+
progress,
|
|
324
|
+
ranges,
|
|
325
|
+
start,
|
|
326
|
+
end,
|
|
327
|
+
current: {
|
|
328
|
+
x: translateX,
|
|
329
|
+
y: translateY,
|
|
330
|
+
scale: 1
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
const resolvedWidth = width * motion.scale;
|
|
334
|
+
const resolvedHeight = height * motion.scale;
|
|
211
335
|
if (computeOptions.raw) {
|
|
212
336
|
return {
|
|
213
|
-
translateX,
|
|
214
|
-
translateY,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
337
|
+
translateX: motion.x,
|
|
338
|
+
translateY: motion.y,
|
|
339
|
+
rotate: motion.rotate ?? 0,
|
|
340
|
+
rotateX: motion.rotateX ?? 0,
|
|
341
|
+
rotateY: motion.rotateY ?? 0,
|
|
342
|
+
transformOrigin: motion.transformOrigin,
|
|
343
|
+
width: resolvedWidth,
|
|
344
|
+
height: resolvedHeight
|
|
218
345
|
};
|
|
219
346
|
}
|
|
220
347
|
return {
|
|
221
|
-
transform:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}],
|
|
226
|
-
width,
|
|
227
|
-
height,
|
|
228
|
-
..._constants.VISIBLE_STYLE
|
|
348
|
+
transform: composeMotionTransform(motion),
|
|
349
|
+
transformOrigin: motion.transformOrigin,
|
|
350
|
+
width: resolvedWidth,
|
|
351
|
+
height: resolvedHeight
|
|
229
352
|
};
|
|
230
353
|
}
|
|
231
354
|
function composeTransformAbsolute(params) {
|
|
@@ -243,26 +366,42 @@ function composeTransformAbsolute(params) {
|
|
|
243
366
|
const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageY, end.pageY], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageY, start.pageY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
244
367
|
const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
245
368
|
const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
369
|
+
const currentScale = getUniformScale(scaleX, scaleY);
|
|
370
|
+
const motion = resolveMotionTransform({
|
|
371
|
+
computeOptions,
|
|
372
|
+
interpolationProps: params.interpolationProps,
|
|
373
|
+
progress,
|
|
374
|
+
ranges,
|
|
375
|
+
start,
|
|
376
|
+
end,
|
|
377
|
+
current: {
|
|
378
|
+
x: translateX,
|
|
379
|
+
y: translateY,
|
|
380
|
+
scale: currentScale
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
const scaleRatio = getScaleRatio(motion.scale, currentScale);
|
|
384
|
+
const resolvedScaleX = scaleX * scaleRatio;
|
|
385
|
+
const resolvedScaleY = scaleY * scaleRatio;
|
|
246
386
|
if (computeOptions.raw) {
|
|
247
387
|
return {
|
|
248
|
-
translateX,
|
|
249
|
-
translateY,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
388
|
+
translateX: motion.x,
|
|
389
|
+
translateY: motion.y,
|
|
390
|
+
rotate: motion.rotate ?? 0,
|
|
391
|
+
rotateX: motion.rotateX ?? 0,
|
|
392
|
+
rotateY: motion.rotateY ?? 0,
|
|
393
|
+
transformOrigin: motion.transformOrigin,
|
|
394
|
+
scaleX: resolvedScaleX,
|
|
395
|
+
scaleY: resolvedScaleY
|
|
253
396
|
};
|
|
254
397
|
}
|
|
255
398
|
return {
|
|
256
|
-
transform: [{
|
|
257
|
-
|
|
258
|
-
}, {
|
|
259
|
-
translateY
|
|
260
|
-
}, {
|
|
261
|
-
scaleX
|
|
399
|
+
transform: composeMotionTransform(motion, [{
|
|
400
|
+
scaleX: resolvedScaleX
|
|
262
401
|
}, {
|
|
263
|
-
scaleY
|
|
264
|
-
}],
|
|
265
|
-
|
|
402
|
+
scaleY: resolvedScaleY
|
|
403
|
+
}]),
|
|
404
|
+
transformOrigin: motion.transformOrigin
|
|
266
405
|
};
|
|
267
406
|
}
|
|
268
407
|
function composeTransformRelative(params) {
|
|
@@ -278,32 +417,48 @@ function composeTransformRelative(params) {
|
|
|
278
417
|
const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dy, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dy], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
279
418
|
const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
280
419
|
const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
420
|
+
const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
|
|
421
|
+
const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
|
|
422
|
+
const currentScale = getUniformScale(scaleX, scaleY);
|
|
423
|
+
const motion = resolveMotionTransform({
|
|
424
|
+
computeOptions,
|
|
425
|
+
interpolationProps: params.interpolationProps,
|
|
426
|
+
progress,
|
|
427
|
+
ranges,
|
|
428
|
+
start: params.start,
|
|
429
|
+
end: params.end,
|
|
430
|
+
current: {
|
|
431
|
+
x: translateX,
|
|
432
|
+
y: translateY,
|
|
433
|
+
scale: currentScale
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
const scaleRatio = getScaleRatio(motion.scale, currentScale);
|
|
437
|
+
const resolvedScaleX = scaleX * scaleRatio;
|
|
438
|
+
const resolvedScaleY = scaleY * scaleRatio;
|
|
281
439
|
if (computeOptions.raw) {
|
|
282
440
|
return {
|
|
283
|
-
translateX,
|
|
284
|
-
translateY,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
441
|
+
translateX: motion.x,
|
|
442
|
+
translateY: motion.y,
|
|
443
|
+
rotate: motion.rotate ?? 0,
|
|
444
|
+
rotateX: motion.rotateX ?? 0,
|
|
445
|
+
rotateY: motion.rotateY ?? 0,
|
|
446
|
+
transformOrigin: motion.transformOrigin,
|
|
447
|
+
scaleX: resolvedScaleX,
|
|
448
|
+
scaleY: resolvedScaleY
|
|
288
449
|
};
|
|
289
450
|
}
|
|
290
|
-
const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
|
|
291
|
-
const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
|
|
292
451
|
return {
|
|
293
452
|
transform: [{
|
|
294
453
|
translateX: offsetX
|
|
295
454
|
}, {
|
|
296
455
|
translateY: offsetY
|
|
456
|
+
}, ...composeMotionTransform(motion, [{
|
|
457
|
+
scaleX: resolvedScaleX
|
|
297
458
|
}, {
|
|
298
|
-
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
}, {
|
|
302
|
-
scaleX
|
|
303
|
-
}, {
|
|
304
|
-
scaleY
|
|
305
|
-
}],
|
|
306
|
-
..._constants.VISIBLE_STYLE
|
|
459
|
+
scaleY: resolvedScaleY
|
|
460
|
+
}])],
|
|
461
|
+
transformOrigin: motion.transformOrigin
|
|
307
462
|
};
|
|
308
463
|
}
|
|
309
464
|
function composeContentStyle(params) {
|
|
@@ -326,23 +481,35 @@ function composeContentStyle(params) {
|
|
|
326
481
|
const translateX = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [tx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, tx], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
327
482
|
const translateY = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [ty, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, ty], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
328
483
|
const scale = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [s, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, s], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
484
|
+
const motion = resolveMotionTransform({
|
|
485
|
+
computeOptions: params.computeOptions,
|
|
486
|
+
interpolationProps: params.interpolationProps,
|
|
487
|
+
progress,
|
|
488
|
+
ranges,
|
|
489
|
+
start: params.start,
|
|
490
|
+
end: params.end,
|
|
491
|
+
current: {
|
|
492
|
+
x: translateX,
|
|
493
|
+
y: translateY,
|
|
494
|
+
scale
|
|
495
|
+
}
|
|
496
|
+
});
|
|
329
497
|
if (raw) {
|
|
330
498
|
return {
|
|
331
|
-
translateX,
|
|
332
|
-
translateY,
|
|
333
|
-
|
|
334
|
-
|
|
499
|
+
translateX: motion.x,
|
|
500
|
+
translateY: motion.y,
|
|
501
|
+
rotate: motion.rotate ?? 0,
|
|
502
|
+
rotateX: motion.rotateX ?? 0,
|
|
503
|
+
rotateY: motion.rotateY ?? 0,
|
|
504
|
+
transformOrigin: motion.transformOrigin,
|
|
505
|
+
scale: motion.scale
|
|
335
506
|
};
|
|
336
507
|
}
|
|
337
508
|
return {
|
|
338
|
-
transform: [{
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
}, {
|
|
343
|
-
scale
|
|
344
|
-
}],
|
|
345
|
-
..._constants.VISIBLE_STYLE
|
|
509
|
+
transform: composeMotionTransform(motion, [{
|
|
510
|
+
scale: motion.scale
|
|
511
|
+
}]),
|
|
512
|
+
transformOrigin: motion.transformOrigin
|
|
346
513
|
};
|
|
347
514
|
}
|
|
348
515
|
//# sourceMappingURL=composers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","translateX","translateY","raw","VISIBLE_STYLE","transform","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleX","scaleY","composeTransformRelative","dx","dy","offsetX","offset","gestures","offsetY","composeContentStyle","s","tx","ty","scale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK,GAAG,CAAC;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IAC1C,KAAK,aAAa;MACjB,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IACtC,KAAK,SAAS;MACb,OAAO;QAAEG,CAAC,EAAEJ,KAAK;Q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EAEA,OAAO;IACNC,SAAS,EAAE,CAAC;MAAEJ;IAAW,CAAC,EAAE;MAAEC;IAAW,CAAC,EAAE;MAAEuB;IAAM,CAAC,CAAC;IACtD,GAAGrB;EACJ,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","clampUnit","value","Math","min","max","normalizeRangeProgress","progress","ranges","distance","abs","EPSILON","getUniformScale","scaleX","scaleY","sqrt","getScaleRatio","resolvedScale","currentScale","safeCurrentScale","resolveMotionTransform","computeOptions","interpolationProps","start","end","current","motion","props","composeMotionTransform","scaleTransforms","transform","rotate","rotateX","rotateY","perspective","undefined","push","translateX","translateY","entry","composeSizeAbsolute","params","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","scale","resolvedWidth","resolvedHeight","raw","transformOrigin","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleRatio","resolvedScaleX","resolvedScaleY","composeTransformRelative","dx","dy","offsetX","offset","gestures","offsetY","composeContentStyle","s","tx","ty"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAYA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT,OAAO;Q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,CAACpB,cAAc;IACrCC,kBAAkB,EAAEmB,MAAM,CAACnB,kBAAkB;IAC7Cf,QAAQ;IACRC,MAAM;IACNe,KAAK,EAAEkB,MAAM,CAAClB,KAAK;IACnBC,GAAG,EAAEiB,MAAM,CAACjB,GAAG;IACfC,OAAO,EAAE;MACR3B,CAAC,EAAEuC,UAAU;MACbtC,CAAC,EAAEuC,UAAU;MACbY;IACD;EACD,CAAC,CAAC;EAEF,IAAIG,GAAG,EAAE;IACR,OAAO;MACNhB,UAAU,EAAEX,MAAM,CAAC5B,CAAC;MACpBwC,UAAU,EAAEZ,MAAM,CAAC3B,CAAC;MACpBgC,MAAM,EAAEL,MAAM,CAACK,MAAM,IAAI,CAAC;MAC1BC,OAAO,EAAEN,MAAM,CAACM,OAAO,IAAI,CAAC;MAC5BC,OAAO,EAAEP,MAAM,CAACO,OAAO,IAAI,CAAC;MAC5BqB,eAAe,EAAE5B,MAAM,CAAC4B,eAAe;MACvCJ,KAAK,EAAExB,MAAM,CAACwB;IACf,CAAC;EACF;EAEA,OAAO;IACNpB,SAAS,EAAEF,sBAAsB,CAACF,MAAM,EAAE,CAAC;MAAEwB,KAAK,EAAExB,MAAM,CAACwB;IAAM,CAAC,CAAC,CAAC;IACpEI,eAAe,EAAE5B,MAAM,CAAC4B;EACzB,CAAC;AACF","ignoreList":[]}
|
|
@@ -6,8 +6,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.computeBoundStyles = void 0;
|
|
7
7
|
var _constants = require("../../../../constants");
|
|
8
8
|
var _resolver = require("../../../../stores/bounds/internals/resolver");
|
|
9
|
+
var _scroll = require("../../../../stores/scroll.store");
|
|
9
10
|
var _geometry = require("../geometry");
|
|
10
11
|
var _composers = require("./composers");
|
|
12
|
+
const getBoundsScrollSnapshot = bounds => {
|
|
13
|
+
"worklet";
|
|
14
|
+
|
|
15
|
+
return bounds?.scroll ?? null;
|
|
16
|
+
};
|
|
17
|
+
const getScreenScrollMetadata = (screenKey, previous, current, next) => {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
if (!screenKey) return null;
|
|
21
|
+
if (previous?.route.key === screenKey) return previous.layouts?.scroll ?? null;
|
|
22
|
+
if (current?.route.key === screenKey) return current.layouts?.scroll ?? null;
|
|
23
|
+
if (next?.route.key === screenKey) return next.layouts?.scroll ?? null;
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
const shiftBounds = (bounds, dx, dy) => {
|
|
27
|
+
"worklet";
|
|
28
|
+
|
|
29
|
+
if (dx === 0 && dy === 0) {
|
|
30
|
+
return bounds;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
...bounds,
|
|
34
|
+
x: bounds.x + dx,
|
|
35
|
+
y: bounds.y + dy,
|
|
36
|
+
pageX: bounds.pageX + dx,
|
|
37
|
+
pageY: bounds.pageY + dy
|
|
38
|
+
};
|
|
39
|
+
};
|
|
11
40
|
const resolveStartEnd = params => {
|
|
12
41
|
"worklet";
|
|
13
42
|
|
|
@@ -51,7 +80,42 @@ const resolveStartEnd = params => {
|
|
|
51
80
|
hasTargetOverride
|
|
52
81
|
};
|
|
53
82
|
}
|
|
54
|
-
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Teleport continuity: this screen's source content physically renders
|
|
86
|
+
* inside the matched screen's portal host, which travels with that screen's
|
|
87
|
+
* ScrollView. Screen-fixed rects (the source, fullscreen/custom targets)
|
|
88
|
+
* must be expressed in the host's frame by the clamped scroll travel since
|
|
89
|
+
* the destination capture. The destination rect rides with the host, so it
|
|
90
|
+
* stays untouched. Classic two-component links never set a portal host and
|
|
91
|
+
* skip this entirely.
|
|
92
|
+
*/
|
|
93
|
+
const isTeleportedSourceElement = resolvedPair.sourcePortalAttachTarget === "matched-screen" && !!currentScreenKey && currentScreenKey === resolvedPair.sourceScreenKey && !!resolvedPair.destinationScreenKey && currentScreenKey !== resolvedPair.destinationScreenKey && params.computeOptions.method !== "content";
|
|
94
|
+
let teleportShiftX = 0;
|
|
95
|
+
let teleportShiftY = 0;
|
|
96
|
+
let sourceScrollShiftX = 0;
|
|
97
|
+
let sourceScrollShiftY = 0;
|
|
98
|
+
if (isTeleportedSourceElement) {
|
|
99
|
+
const capturedScroll = getBoundsScrollSnapshot(destinationBounds);
|
|
100
|
+
const liveScroll = getScreenScrollMetadata(resolvedPair.destinationScreenKey, params.previous, params.current, params.next);
|
|
101
|
+
teleportShiftX = (0, _scroll.getClampedScrollAxisDelta)(liveScroll, capturedScroll, "horizontal");
|
|
102
|
+
teleportShiftY = (0, _scroll.getClampedScrollAxisDelta)(liveScroll, capturedScroll, "vertical");
|
|
103
|
+
|
|
104
|
+
// A source that lives inside its own scroll host travels with that
|
|
105
|
+
// ScrollView in page space. Shifting the start rect by the clamped source
|
|
106
|
+
// scroll travel keeps it aligned with the live placeholder; the host
|
|
107
|
+
// placement applies the identical shift, so the shifts cancel at full
|
|
108
|
+
// progress and the open frame is untouched. Screen-fixed rects (the
|
|
109
|
+
// fullscreen/custom end targets below) are not inside the scroll content
|
|
110
|
+
// and keep only the destination shift.
|
|
111
|
+
if (resolvedPair.sourceHost?.capturesScroll) {
|
|
112
|
+
const capturedSourceScroll = getBoundsScrollSnapshot(sourceBounds);
|
|
113
|
+
const liveSourceScroll = getScreenScrollMetadata(resolvedPair.sourceScreenKey, params.previous, params.current, params.next);
|
|
114
|
+
sourceScrollShiftX = (0, _scroll.getClampedScrollAxisDelta)(liveSourceScroll, capturedSourceScroll, "horizontal");
|
|
115
|
+
sourceScrollShiftY = (0, _scroll.getClampedScrollAxisDelta)(liveSourceScroll, capturedSourceScroll, "vertical");
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const start = shiftBounds(sourceBounds, teleportShiftX - sourceScrollShiftX, teleportShiftY - sourceScrollShiftY);
|
|
55
119
|
let end = destinationBounds ?? fullscreen;
|
|
56
120
|
if (isFullscreenTarget) {
|
|
57
121
|
end = fullscreen;
|
|
@@ -60,6 +124,9 @@ const resolveStartEnd = params => {
|
|
|
60
124
|
if (typeof customTarget === "object") {
|
|
61
125
|
end = customTarget;
|
|
62
126
|
}
|
|
127
|
+
if (hasTargetOverride) {
|
|
128
|
+
end = shiftBounds(end, teleportShiftX, teleportShiftY);
|
|
129
|
+
}
|
|
63
130
|
return {
|
|
64
131
|
start,
|
|
65
132
|
end,
|
|
@@ -76,7 +143,8 @@ const computeBoundStyles = ({
|
|
|
76
143
|
current,
|
|
77
144
|
next,
|
|
78
145
|
progress,
|
|
79
|
-
dimensions
|
|
146
|
+
dimensions,
|
|
147
|
+
interpolationProps
|
|
80
148
|
}, computeOptions = {
|
|
81
149
|
id: "bound-id"
|
|
82
150
|
}, resolvedPair) => {
|
|
@@ -123,7 +191,8 @@ const computeBoundStyles = ({
|
|
|
123
191
|
ranges,
|
|
124
192
|
end: contentEnd,
|
|
125
193
|
geometry,
|
|
126
|
-
computeOptions
|
|
194
|
+
computeOptions,
|
|
195
|
+
interpolationProps
|
|
127
196
|
});
|
|
128
197
|
}
|
|
129
198
|
const geometry = (0, _geometry.computeRelativeGeometry)({
|
|
@@ -139,7 +208,8 @@ const computeBoundStyles = ({
|
|
|
139
208
|
progress,
|
|
140
209
|
ranges,
|
|
141
210
|
geometry,
|
|
142
|
-
computeOptions
|
|
211
|
+
computeOptions,
|
|
212
|
+
interpolationProps
|
|
143
213
|
};
|
|
144
214
|
const isSize = computeOptions.method === "size";
|
|
145
215
|
const isAbsolute = computeOptions.space === "absolute";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_resolver","_geometry","_composers","
|
|
1
|
+
{"version":3,"names":["_constants","require","_resolver","_scroll","_geometry","_composers","getBoundsScrollSnapshot","bounds","scroll","getScreenScrollMetadata","screenKey","previous","current","next","route","key","layouts","shiftBounds","dx","dy","x","y","pageX","pageY","resolveStartEnd","params","entering","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","previousScreenKey","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","isTeleportedSourceElement","sourcePortalAttachTarget","method","teleportShiftX","teleportShiftY","sourceScrollShiftX","sourceScrollShiftY","capturedScroll","liveScroll","getClampedScrollAxisDelta","sourceHost","capturesScroll","capturedSourceScroll","liveSourceScroll","customTarget","computeBoundStyles","progress","interpolationProps","NO_STYLES","ranges","ENTER_RANGE","EXIT_RANGE","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;AAIA,IAAAI,UAAA,GAAAJ,OAAA;AASA,MAAMK,uBAAuB,GAC5BC,MAAiC,IACD;EAChC,SAAS;;EACT,OACEA,MAAM,EAAqDC,MAAM,IAAI,IAAI;AAE5E,CAAC;AAED,MAAMC,uBAAuB,GAAGA,CAC/BC,SAAwB,EACxBC,QAA2C,EAC3CC,OAA0C,EAC1CC,IAAuC,KACP;EAChC,SAAS;;EACT,IAAI,CAACH,SAAS,EAAE,OAAO,IAAI;EAC3B,IAAIC,QAAQ,EAAEG,KAAK,CAACC,GAAG,KAAKL,SAAS,EACpC,OAAOC,QAAQ,CAACK,OAAO,EAAER,MAAM,IAAI,IAAI;EACxC,IAAII,OAAO,EAAEE,KAAK,CAACC,GAAG,KAAKL,SAAS,EAAE,OAAOE,OAAO,CAACI,OAAO,EAAER,MAAM,IAAI,IAAI;EAC5E,IAAIK,IAAI,EAAEC,KAAK,CAACC,GAAG,KAAKL,SAAS,E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AAS,EAAE7C,cAAc,CAAC6C;IAC3B,CAAC,CAAC;IAEF,OAAO,IAAAC,8BAAmB,EAAC;MAC1BjC,KAAK,EAAE2B,YAAY;MACnBP,QAAQ;MACRG,MAAM;MACNtB,GAAG,EAAE2B,UAAU;MACfC,QAAQ;MACR1C,cAAc;MACdkC;IACD,CAAC,CAAC;EACH;EAEA,MAAMQ,QAAQ,GAAG,IAAAK,iCAAuB,EAAC;IACxClC,KAAK;IACLC,GAAG;IACHnB,QAAQ;IACRiD,MAAM,EAAE5C,cAAc,CAAC4C,MAAM;IAC7BC,SAAS,EAAE7C,cAAc,CAAC6C;EAC3B,CAAC,CAAC;EAEF,MAAMG,MAA4B,GAAG;IACpCnC,KAAK;IACLC,GAAG;IACHmB,QAAQ;IACRG,MAAM;IACNM,QAAQ;IACR1C,cAAc;IACdkC;EACD,CAAC;EAED,MAAMe,MAAM,GAAGjD,cAAc,CAACmB,MAAM,KAAK,MAAM;EAC/C,MAAM+B,UAAU,GAAGlD,cAAc,CAACmD,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,8BAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,8BAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,mCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,mCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -47,11 +47,9 @@ function buildRevealStyles({
|
|
|
47
47
|
const bounds = (0, _createBoundsAccessorCore.createBoundsAccessorCore)({
|
|
48
48
|
getProps: () => props
|
|
49
49
|
});
|
|
50
|
-
const scopedBounds = bounds(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const link = scopedBounds.getLink();
|
|
54
|
-
if (!link?.source?.bounds || !link.destination?.bounds) {
|
|
50
|
+
const scopedBounds = bounds(tag);
|
|
51
|
+
const link = scopedBounds.link();
|
|
52
|
+
if (link?.status !== "complete") {
|
|
55
53
|
return {};
|
|
56
54
|
}
|
|
57
55
|
const sourceBorderRadius = (0, _helpers.getSourceBorderRadius)(link);
|
|
@@ -74,15 +72,13 @@ function buildRevealStyles({
|
|
|
74
72
|
/* ----------------------------- Focused Screen ----------------------------- */
|
|
75
73
|
|
|
76
74
|
if (focused) {
|
|
77
|
-
const contentRaw =
|
|
78
|
-
raw: true,
|
|
75
|
+
const contentRaw = scopedBounds.math({
|
|
79
76
|
scaleMode: "uniform",
|
|
80
77
|
method: "content",
|
|
81
78
|
target: initialDestinationTarget,
|
|
82
79
|
progress: transitionProgress
|
|
83
80
|
});
|
|
84
|
-
const maskRaw =
|
|
85
|
-
raw: true,
|
|
81
|
+
const maskRaw = scopedBounds.math({
|
|
86
82
|
scaleMode: "uniform",
|
|
87
83
|
method: "size",
|
|
88
84
|
space: "absolute",
|