react-native-screen-transitions 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +21 -32
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +5 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +27 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +110 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +40 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +79 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +26 -27
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js +4 -13
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -10
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -5
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +28 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +17 -11
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +140 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +14 -24
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +53 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +17 -14
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +6 -17
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -9
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +26 -44
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +64 -38
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/types.js +4 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +19 -5
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +29 -0
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js +36 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +49 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +137 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +75 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +49 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +31 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +33 -107
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +10 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js +26 -25
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -51
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +27 -0
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +210 -185
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +2 -6
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +2 -3
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +44 -11
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +6 -6
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
- 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 +5 -8
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -8
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +7 -5
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +44 -144
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/create-store.js +13 -4
- package/lib/commonjs/shared/utils/create-store.js.map +1 -1
- package/lib/commonjs/shared/utils/platform.js +1 -0
- package/lib/commonjs/shared/utils/platform.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -32
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +2 -2
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +21 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +105 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +35 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +74 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +24 -25
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js +4 -13
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +8 -11
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +4 -5
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +3 -3
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +24 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +16 -10
- package/lib/module/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +134 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +13 -24
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +48 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/index.js +18 -15
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +5 -16
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +6 -9
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +22 -43
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +65 -39
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/types.js +2 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +19 -5
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +25 -0
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/constants.js +31 -0
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +45 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +132 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +44 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +26 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/styles.provider.js +34 -108
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/keys.js +8 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js +27 -26
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +14 -52
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/groups.js +23 -0
- package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/registry.js +204 -178
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +2 -6
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +1 -2
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +43 -10
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +6 -6
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
- 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 +5 -8
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +3 -9
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +7 -5
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +46 -146
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/create-store.js +13 -4
- package/lib/module/shared/utils/create-store.js.map +1 -1
- package/lib/module/shared/utils/platform.js +1 -0
- package/lib/module/shared/utils/platform.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +4 -4
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +8 -8
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +5 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +13 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/{use-boundary-measure-and-store.d.ts → use-measurer.d.ts} +6 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +14 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +6 -3
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts +7 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts +8 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +1 -14
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +4 -4
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +7 -8
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -8
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +3 -3
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +4 -6
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts +23 -0
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -7
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/index.d.ts +28 -27
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +12 -11
- package/lib/typescript/shared/stores/bounds/internals/registry.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 +1 -2
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +21 -19
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +1 -7
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +33 -8
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +5 -25
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +7 -5
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +20 -0
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +6 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +3 -2
- 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 +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-store.d.ts +13 -8
- package/lib/typescript/shared/utils/create-store.d.ts.map +1 -1
- package/lib/typescript/shared/utils/platform.d.ts +0 -3
- package/lib/typescript/shared/utils/platform.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -39
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +3 -6
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +12 -12
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +43 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -8
- package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +149 -0
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +42 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +144 -0
- package/src/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.ts → use-refresh-boundary.ts} +35 -30
- package/src/shared/components/create-boundary-component/types.ts +7 -3
- package/src/shared/components/create-transition-aware-component.tsx +4 -13
- package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +14 -11
- package/src/shared/components/screen-container/layers/backdrop.tsx +3 -3
- package/src/shared/components/screen-container/layers/content.tsx +4 -7
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +4 -5
- package/src/shared/components/screen-container/layers/surface-container.tsx +3 -3
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +29 -0
- package/src/shared/components/screen-lifecycle/hooks/{use-screen-events.ts → history/use-screen-history.ts} +25 -9
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +160 -0
- package/src/shared/components/screen-lifecycle/hooks/{use-open-transition.ts → use-open-transition-intent.ts} +19 -23
- package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +71 -0
- package/src/shared/components/screen-lifecycle/index.tsx +17 -17
- package/src/shared/constants.ts +3 -11
- package/src/shared/providers/register-bounds.provider.tsx +7 -12
- package/src/shared/providers/screen/animation/animation.provider.tsx +30 -68
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +20 -33
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -69
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +5 -7
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +14 -2
- package/src/shared/providers/screen/animation/types.ts +9 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +25 -7
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +2 -0
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +29 -0
- package/src/shared/providers/screen/styles/constants.ts +34 -0
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +61 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +190 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +85 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +51 -0
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +40 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +42 -146
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +15 -13
- package/src/shared/stores/bounds/helpers/keys.ts +8 -0
- package/src/shared/stores/bounds/index.ts +37 -44
- package/src/shared/stores/bounds/internals/clear.ts +22 -86
- package/src/shared/stores/bounds/internals/groups.ts +20 -0
- package/src/shared/stores/bounds/internals/registry.ts +280 -234
- package/src/shared/stores/bounds/internals/resolver.ts +1 -5
- package/src/shared/stores/bounds/internals/state.ts +2 -3
- package/src/shared/stores/bounds/types.ts +23 -21
- package/src/shared/stores/system.store.ts +77 -9
- package/src/shared/types/animation.types.ts +5 -25
- package/src/shared/types/bounds.types.ts +7 -8
- package/src/shared/types/screen.types.ts +21 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +6 -2
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +10 -7
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +12 -5
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +4 -7
- package/src/shared/utils/bounds/helpers/styles/compute.ts +2 -10
- package/src/shared/utils/bounds/index.ts +7 -6
- package/src/shared/utils/bounds/zoom/build.ts +53 -162
- package/src/shared/utils/bounds/zoom/types.ts +1 -1
- package/src/shared/utils/create-store.ts +39 -13
- package/src/shared/utils/platform.ts +2 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -44
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -84
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -149
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -29
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -47
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -158
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -36
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -144
- package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -28
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -39
- package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -125
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -39
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -78
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -145
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -24
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -42
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -153
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -30
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -139
- package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -23
- package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -34
- package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/presence.js +0 -115
- package/lib/module/shared/stores/bounds/internals/presence.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +0 -27
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +0 -12
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +0 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +0 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +0 -8
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts +0 -13
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts +0 -12
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts +0 -7
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +0 -11
- package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +0 -12
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +0 -56
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +0 -154
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +0 -223
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +0 -29
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +0 -58
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +0 -183
- package/src/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts +0 -34
- package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +0 -185
- package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +0 -31
- package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +0 -44
- package/src/shared/stores/bounds/internals/presence.ts +0 -145
- /package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
- /package/lib/module/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
- /package/lib/typescript/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.d.ts +0 -0
- /package/src/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.ts +0 -0
|
@@ -11,15 +11,6 @@ var _prepareBoundStyles = require("../helpers/prepare-bound-styles");
|
|
|
11
11
|
var _config = require("./config");
|
|
12
12
|
var _math = require("./math");
|
|
13
13
|
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
14
|
-
const presentedZoomTagByRoute = (0, _reactNativeReanimated.makeMutable)({});
|
|
15
|
-
function cachePresentedZoomTag(routeKey, resolvedTag) {
|
|
16
|
-
"worklet";
|
|
17
|
-
|
|
18
|
-
presentedZoomTagByRoute.value = {
|
|
19
|
-
...presentedZoomTagByRoute.value,
|
|
20
|
-
[routeKey]: resolvedTag
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
14
|
|
|
24
15
|
/* -------------------------------------------------------------------------- */
|
|
25
16
|
/* LOCAL HELPERS */
|
|
@@ -88,97 +79,56 @@ function interpolateOpacityRange(params) {
|
|
|
88
79
|
} = params;
|
|
89
80
|
return (0, _reactNativeReanimated.interpolate)(progress, [range.inputStart, range.inputEnd], [range.outputStart, range.outputEnd], "clamp");
|
|
90
81
|
}
|
|
91
|
-
function resolveEffectiveZoomTag(params) {
|
|
92
|
-
"worklet";
|
|
93
|
-
|
|
94
|
-
const {
|
|
95
|
-
resolvedTag,
|
|
96
|
-
activeRouteKey,
|
|
97
|
-
entering,
|
|
98
|
-
animating,
|
|
99
|
-
activeProgress,
|
|
100
|
-
livePairReady
|
|
101
|
-
} = params;
|
|
102
|
-
|
|
103
|
-
// Only grouped ids need retarget stabilization. Plain ids should keep their
|
|
104
|
-
// normal behavior with no route-level caching.
|
|
105
|
-
if (!activeRouteKey || !resolvedTag.includes(":")) {
|
|
106
|
-
return resolvedTag;
|
|
107
|
-
}
|
|
108
|
-
const cachedTag = presentedZoomTagByRoute.value[activeRouteKey];
|
|
109
|
-
const isFreshOpenFrame = entering && activeProgress <= 0.05;
|
|
110
|
-
const shouldFreezeDuringEnter = entering && animating && !isFreshOpenFrame;
|
|
111
|
-
if (!cachedTag || isFreshOpenFrame) {
|
|
112
|
-
cachePresentedZoomTag(activeRouteKey, resolvedTag);
|
|
113
|
-
return resolvedTag;
|
|
114
|
-
}
|
|
115
|
-
if (shouldFreezeDuringEnter) {
|
|
116
|
-
return cachedTag;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// After the enter animation, grouped retargeting can still briefly point at a
|
|
120
|
-
// new active id before that tag has usable bounds. Keep presenting the last
|
|
121
|
-
// good tag until the next one is transition-ready.
|
|
122
|
-
if (cachedTag !== resolvedTag && !livePairReady) {
|
|
123
|
-
return cachedTag;
|
|
124
|
-
}
|
|
125
|
-
if (cachedTag !== resolvedTag) {
|
|
126
|
-
cachePresentedZoomTag(activeRouteKey, resolvedTag);
|
|
127
|
-
}
|
|
128
|
-
return resolvedTag;
|
|
129
|
-
}
|
|
130
82
|
|
|
131
83
|
/* -------------------------------------------------------------------------- */
|
|
132
84
|
/* BUILD ZOOM STYLES */
|
|
133
85
|
/* -------------------------------------------------------------------------- */
|
|
134
86
|
|
|
135
87
|
function buildZoomStyles({
|
|
136
|
-
|
|
88
|
+
tag,
|
|
137
89
|
zoomOptions,
|
|
138
90
|
props
|
|
139
91
|
}) {
|
|
140
92
|
"worklet";
|
|
141
93
|
|
|
142
|
-
if (!
|
|
94
|
+
if (!tag) {
|
|
95
|
+
return {};
|
|
96
|
+
}
|
|
97
|
+
const isGroup = tag.includes(":");
|
|
98
|
+
let buildEffectiveTag = tag;
|
|
99
|
+
if (isGroup) {
|
|
100
|
+
const group = tag.split(":")[0];
|
|
101
|
+
const groupActiveTag = _bounds.BoundStore.group.getActiveId(group)?.split(":")[0];
|
|
102
|
+
buildEffectiveTag = `${group}:${groupActiveTag ?? tag.split(":")[1]}`;
|
|
103
|
+
}
|
|
143
104
|
|
|
144
105
|
/* ------------------------------ Shared Setup ------------------------------ */
|
|
145
106
|
|
|
146
|
-
const
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
107
|
+
const target = zoomOptions?.target;
|
|
108
|
+
const {
|
|
109
|
+
focused,
|
|
110
|
+
progress,
|
|
111
|
+
layouts: {
|
|
112
|
+
screen: screenLayout
|
|
113
|
+
}
|
|
114
|
+
} = props;
|
|
150
115
|
const isEnteringTransition = !props.next;
|
|
151
|
-
const activeRouteKey = props.active.route.key;
|
|
152
116
|
const currentRouteKey = props.current?.route.key;
|
|
153
117
|
const previousRouteKey = props.previous?.route.key;
|
|
154
118
|
const nextRouteKey = props.next?.route.key;
|
|
155
|
-
const
|
|
156
|
-
const liveResolvedPair = _bounds.BoundStore.resolveTransitionPair(resolvedTag, {
|
|
157
|
-
currentScreenKey: currentRouteKey,
|
|
158
|
-
previousScreenKey: previousRouteKey,
|
|
159
|
-
nextScreenKey: nextRouteKey,
|
|
160
|
-
entering: isEnteringTransition
|
|
161
|
-
});
|
|
162
|
-
const effectiveTag = resolveEffectiveZoomTag({
|
|
163
|
-
resolvedTag,
|
|
164
|
-
activeRouteKey,
|
|
165
|
-
entering: !!props.active.entering,
|
|
166
|
-
animating: !!props.active.animating,
|
|
167
|
-
activeProgress: props.active.progress,
|
|
168
|
-
livePairReady: !!liveResolvedPair.sourceBounds
|
|
169
|
-
});
|
|
119
|
+
const zoomAnchor = target === "bound" ? "center" : _config.ZOOM_SHARED_OPTIONS.anchor;
|
|
170
120
|
const baseRawOptions = {
|
|
171
|
-
id:
|
|
121
|
+
id: buildEffectiveTag,
|
|
172
122
|
raw: true,
|
|
173
123
|
scaleMode: _config.ZOOM_SHARED_OPTIONS.scaleMode
|
|
174
124
|
};
|
|
175
|
-
const
|
|
125
|
+
const linkPair = _bounds.BoundStore.link.getPair(buildEffectiveTag, {
|
|
176
126
|
currentScreenKey: currentRouteKey,
|
|
177
127
|
previousScreenKey: previousRouteKey,
|
|
178
128
|
nextScreenKey: nextRouteKey,
|
|
179
129
|
entering: isEnteringTransition
|
|
180
130
|
});
|
|
181
|
-
const sourceBorderRadius = getSourceBorderRadius(
|
|
131
|
+
const sourceBorderRadius = getSourceBorderRadius(linkPair);
|
|
182
132
|
const targetBorderRadius = zoomOptions?.borderRadius ?? sourceBorderRadius;
|
|
183
133
|
const focusedElementOpacity = {
|
|
184
134
|
open: (0, _math.resolveOpacityRangeTuple)({
|
|
@@ -201,9 +151,11 @@ function buildZoomStyles({
|
|
|
201
151
|
})
|
|
202
152
|
};
|
|
203
153
|
const sourceVisibilityStyle = {
|
|
204
|
-
[
|
|
154
|
+
[buildEffectiveTag]: {
|
|
155
|
+
style: _constants.VISIBLE_STYLE
|
|
156
|
+
}
|
|
205
157
|
};
|
|
206
|
-
const focusedContentSlot = props.navigationMaskEnabled ? _constants.NAVIGATION_MASK_CONTAINER_STYLE_ID : "content";
|
|
158
|
+
const focusedContentSlot = props.current.layouts.navigationMaskEnabled ? _constants.NAVIGATION_MASK_CONTAINER_STYLE_ID : "content";
|
|
207
159
|
|
|
208
160
|
/**
|
|
209
161
|
* Local bounds compute helper for navigation zoom.
|
|
@@ -218,60 +170,10 @@ function buildZoomStyles({
|
|
|
218
170
|
return (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
219
171
|
props,
|
|
220
172
|
options,
|
|
221
|
-
resolvedPair
|
|
222
|
-
syncGroupActiveId: false
|
|
173
|
+
resolvedPair: linkPair
|
|
223
174
|
});
|
|
224
175
|
};
|
|
225
176
|
|
|
226
|
-
/* --------------------------- Missing Source Guard -------------------------- */
|
|
227
|
-
|
|
228
|
-
// Only the focused entering route should be hidden when source bounds are
|
|
229
|
-
// missing. During rapid chained pushes, source measurement can briefly race
|
|
230
|
-
// the focused destination. In that case, degrading to a fullscreen destination
|
|
231
|
-
// is safer than blanking the entire screen until another gesture/animation
|
|
232
|
-
// re-runs the pipeline.
|
|
233
|
-
if (focused && !resolvedPair.sourceBounds && props.active.entering) {
|
|
234
|
-
const fallbackStyles = {
|
|
235
|
-
[focusedContentSlot]: {
|
|
236
|
-
style: {
|
|
237
|
-
opacity: zoomOptions?.debug ? 0.5 : 1,
|
|
238
|
-
transform: [{
|
|
239
|
-
translateX: 0
|
|
240
|
-
}, {
|
|
241
|
-
translateY: 0
|
|
242
|
-
}, {
|
|
243
|
-
scale: 1
|
|
244
|
-
}],
|
|
245
|
-
borderRadius: 0,
|
|
246
|
-
overflow: "hidden"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
if (props.navigationMaskEnabled) {
|
|
251
|
-
const {
|
|
252
|
-
top,
|
|
253
|
-
right,
|
|
254
|
-
bottom,
|
|
255
|
-
left
|
|
256
|
-
} = _config.ZOOM_MASK_OUTSET;
|
|
257
|
-
fallbackStyles[_constants.NAVIGATION_MASK_ELEMENT_STYLE_ID] = {
|
|
258
|
-
style: {
|
|
259
|
-
width: Math.max(1, screenLayout.width + left + right),
|
|
260
|
-
height: Math.max(1, screenLayout.height + top + bottom),
|
|
261
|
-
borderRadius: 0,
|
|
262
|
-
transform: [{
|
|
263
|
-
translateX: -left
|
|
264
|
-
}, {
|
|
265
|
-
translateY: -top
|
|
266
|
-
}, {
|
|
267
|
-
scale: 1
|
|
268
|
-
}]
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
return fallbackStyles;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
177
|
/* --------------------------- Gesture / Drag Values ------------------------- */
|
|
276
178
|
|
|
277
179
|
const normX = props.active.gesture.normX;
|
|
@@ -320,14 +222,14 @@ function buildZoomStyles({
|
|
|
320
222
|
|
|
321
223
|
if (focused) {
|
|
322
224
|
const focusedContentTarget = getZoomContentTarget({
|
|
323
|
-
explicitTarget,
|
|
225
|
+
explicitTarget: target,
|
|
324
226
|
screenLayout,
|
|
325
227
|
anchor: _config.ZOOM_SHARED_OPTIONS.anchor,
|
|
326
|
-
resolvedPair
|
|
228
|
+
resolvedPair: linkPair
|
|
327
229
|
});
|
|
328
230
|
const contentRaw = bounds({
|
|
329
231
|
...baseRawOptions,
|
|
330
|
-
anchor:
|
|
232
|
+
anchor: zoomAnchor,
|
|
331
233
|
method: "content",
|
|
332
234
|
target: focusedContentTarget
|
|
333
235
|
});
|
|
@@ -383,7 +285,7 @@ function buildZoomStyles({
|
|
|
383
285
|
},
|
|
384
286
|
...sourceVisibilityStyle
|
|
385
287
|
};
|
|
386
|
-
if (props.navigationMaskEnabled) {
|
|
288
|
+
if (props.current.layouts.navigationMaskEnabled) {
|
|
387
289
|
focusedStyles[_constants.NAVIGATION_MASK_ELEMENT_STYLE_ID] = {
|
|
388
290
|
style: {
|
|
389
291
|
width: maskWidth,
|
|
@@ -412,25 +314,23 @@ function buildZoomStyles({
|
|
|
412
314
|
range: unfocusedElementOpacity.open
|
|
413
315
|
});
|
|
414
316
|
const unfocusedScale = (0, _reactNativeReanimated.interpolate)(progress, [1, 2], [1, backgroundScale], "clamp");
|
|
415
|
-
const isUnfocusedIdle = props.active.settled === 1;
|
|
416
|
-
const shouldHideUnfocusedIdle = isUnfocusedIdle;
|
|
417
317
|
const didSourceComponentVisiblyHide = !props.active.closing && unfocusedFade <= _constants.EPSILON;
|
|
418
|
-
const shouldResetUnfocusedElement = !props.active.closing &&
|
|
318
|
+
const shouldResetUnfocusedElement = !props.active.closing && didSourceComponentVisiblyHide;
|
|
419
319
|
const unfocusedElementTarget = getZoomContentTarget({
|
|
420
|
-
explicitTarget,
|
|
320
|
+
explicitTarget: target,
|
|
421
321
|
screenLayout,
|
|
422
322
|
anchor: _config.ZOOM_SHARED_OPTIONS.anchor,
|
|
423
|
-
resolvedPair
|
|
323
|
+
resolvedPair: linkPair
|
|
424
324
|
});
|
|
425
325
|
const elementRaw = bounds({
|
|
426
326
|
...baseRawOptions,
|
|
427
|
-
anchor:
|
|
327
|
+
anchor: zoomAnchor,
|
|
428
328
|
method: "transform",
|
|
429
329
|
space: "relative",
|
|
430
330
|
target: unfocusedElementTarget
|
|
431
331
|
});
|
|
432
|
-
const boundTargetCenterX =
|
|
433
|
-
const boundTargetCenterY =
|
|
332
|
+
const boundTargetCenterX = target === "bound" && linkPair.destinationBounds ? linkPair.destinationBounds.pageX + linkPair.destinationBounds.width / 2 : undefined;
|
|
333
|
+
const boundTargetCenterY = target === "bound" && linkPair.destinationBounds ? linkPair.destinationBounds.pageY + linkPair.destinationBounds.height / 2 : undefined;
|
|
434
334
|
const elementCenterX = boundTargetCenterX ?? (typeof unfocusedElementTarget === "object" ? unfocusedElementTarget.pageX + unfocusedElementTarget.width / 2 : screenLayout.width / 2);
|
|
435
335
|
const elementCenterY = boundTargetCenterY ?? (typeof unfocusedElementTarget === "object" ? unfocusedElementTarget.pageY + unfocusedElementTarget.height / 2 : screenLayout.height / 2);
|
|
436
336
|
const scaleShiftX = (0, _math.computeCenterScaleShift)({
|
|
@@ -459,7 +359,7 @@ function buildZoomStyles({
|
|
|
459
359
|
const elementTranslateY = (0, _config.toNumber)(elementRaw.translateY) + compensatedGestureY;
|
|
460
360
|
const elementScaleX = (0, _config.toNumber)(elementRaw.scaleX, 1) * dragScale;
|
|
461
361
|
const elementScaleY = (0, _config.toNumber)(elementRaw.scaleY, 1) * dragScale;
|
|
462
|
-
const resolvedElementStyle =
|
|
362
|
+
const resolvedElementStyle = shouldResetUnfocusedElement ? {
|
|
463
363
|
transform: [{
|
|
464
364
|
translateX: 0
|
|
465
365
|
}, {
|
|
@@ -474,13 +374,13 @@ function buildZoomStyles({
|
|
|
474
374
|
elevation: 0
|
|
475
375
|
} : {
|
|
476
376
|
transform: [{
|
|
477
|
-
translateX:
|
|
377
|
+
translateX: elementTranslateX
|
|
478
378
|
}, {
|
|
479
|
-
translateY:
|
|
379
|
+
translateY: elementTranslateY
|
|
480
380
|
}, {
|
|
481
|
-
scaleX:
|
|
381
|
+
scaleX: elementScaleX
|
|
482
382
|
}, {
|
|
483
|
-
scaleY:
|
|
383
|
+
scaleY: elementScaleY
|
|
484
384
|
}],
|
|
485
385
|
opacity: zoomOptions?.debug ? 1 : unfocusedFade,
|
|
486
386
|
zIndex: 9999,
|
|
@@ -494,7 +394,7 @@ function buildZoomStyles({
|
|
|
494
394
|
}]
|
|
495
395
|
}
|
|
496
396
|
},
|
|
497
|
-
[
|
|
397
|
+
[buildEffectiveTag]: {
|
|
498
398
|
style: resolvedElementStyle
|
|
499
399
|
}
|
|
500
400
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_prepareBoundStyles","_config","_math","IDENTITY_DRAG_SCALE_OUTPUT","presentedZoomTagByRoute","makeMutable","cachePresentedZoomTag","routeKey","resolvedTag","value","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","resolveDragScaleTuple","shrinkMin","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","growMax","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","exponent","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","resolveDragTranslationTuple","negativeMax","ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX","positiveMax","ZOOM_DRAG_TRANSLATION_POSITIVE_MAX","ZOOM_DRAG_TRANSLATION_EXPONENT","resolveBackgroundScale","ZOOM_BACKGROUND_SCALE","interpolateOpacityRange","params","progress","range","interpolate","inputStart","inputEnd","outputStart","outputEnd","resolveEffectiveZoomTag","activeRouteKey","entering","animating","activeProgress","livePairReady","includes","cachedTag","isFreshOpenFrame","shouldFreezeDuringEnter","buildZoomStyles","zoomOptions","props","target","focused","layouts","screen","isEnteringTransition","next","active","route","key","currentRouteKey","current","previousRouteKey","previous","nextRouteKey","resolvedZoomAnchor","getZoomAnchor","liveResolvedPair","BoundStore","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","effectiveTag","baseRawOptions","id","raw","scaleMode","ZOOM_SHARED_OPTIONS","sourceBorderRadius","targetBorderRadius","focusedElementOpacity","open","resolveOpacityRangeTuple","fallback","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","close","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","unfocusedElementOpacity","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","sourceVisibilityStyle","VISIBLE_STYLE","focusedContentSlot","navigationMaskEnabled","NAVIGATION_MASK_CONTAINER_STYLE_ID","bounds","options","prepareBoundStyles","syncGroupActiveId","fallbackStyles","style","opacity","debug","transform","translateX","translateY","scale","overflow","top","right","bottom","left","ZOOM_MASK_OUTSET","NAVIGATION_MASK_ELEMENT_STYLE_ID","Math","max","normX","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","horizontalDragTranslation","verticalDragTranslation","dragX","resolveDirectionalDragTranslation","normalized","dimension","resistance","ZOOM_DRAG_RESISTANCE","dragY","horizontalDragScale","verticalDragScale","backgroundScale","dragXScale","resolveDirectionalDragScale","dismissDirection","dragYScale","dragScale","combineScales","focusedContentTarget","contentRaw","method","maskRaw","space","focusedFade","closing","shouldRemoveClipping","focusedMaskBorderRadius","maskWidth","toNumber","maskHeight","contentTranslateX","contentTranslateY","contentScale","maskTranslateX","maskTranslateY","focusedContentStyle","focusedStyles","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","shouldHideUnfocusedIdle","didSourceComponentVisiblyHide","EPSILON","shouldResetUnfocusedElement","logicallySettled","unfocusedElementTarget","elementRaw","boundTargetCenterX","destinationBounds","undefined","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAkBA,IAAAK,KAAA,GAAAL,OAAA;AAUA,MAAMM,0BAA0B,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;AAClD,MAAMC,uBAAuB,GAAG,IAAAC,kCAAW,EAAyB,CAAC,CAAC,CAAC;AAEvE,SAASC,qBAAqBA,CAACC,QAAgB,EAAEC,WAAmB,EAAE;EACrE,SAAS;;EAETJ,uBAAuB,CAACK,KAAK,GAAG;IAC/B,GAAGL,uBAAuB,CAACK,KAAK;IAChC,CAACF,QAAQ,GAAGC;EACb,CAAC;AACF;;AAEA;AACA;AACA;;AAEA,SAASE,qBAAqBA,CAACC,YAAoC,EAAU;EAC5E,SAAS;;EAET,OAAO,OAAOA,YAAY,CAACC,YAAY,EAAEC,YAAY,KAAK,QAAQ,GAC/DF,YAAY,CAACC,YAAY,CAACC,YAAY,GACtC,CAAC;AACL;AAEA,SAASC,oBAAoBA,CAAC;EAC7BC,cAAc;EACdC,YAAY;EACZC,MAAM;EACNN;AAMD,CAAC,EAAE;EACF,SAAS;;EAET,IAAII,cAAc,EAAE,OAAOA,cAAc;EAEzC,MAAMG,YAAY,GAAGP,YAAY,CAACO,YAAY;EAC9C,MAAMC,WAAW,GAAGH,YAAY,CA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,WAAW,EAAEsD,KAAK,GAAG,CAAC,GAAG0D,aAAa;IAC/CmC,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRjG,KAAK,EAAE;QACNG,SAAS,EAAE,CAAC;UAAEG,KAAK,EAAEuD;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAACzF,YAAY,GAAG;MACf4B,KAAK,EAAE8F;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_prepareBoundStyles","_config","_math","IDENTITY_DRAG_SCALE_OUTPUT","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","resolveDragScaleTuple","value","shrinkMin","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","growMax","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","exponent","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","resolveDragTranslationTuple","negativeMax","ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX","positiveMax","ZOOM_DRAG_TRANSLATION_POSITIVE_MAX","ZOOM_DRAG_TRANSLATION_EXPONENT","resolveBackgroundScale","ZOOM_BACKGROUND_SCALE","interpolateOpacityRange","params","progress","range","interpolate","inputStart","inputEnd","outputStart","outputEnd","buildZoomStyles","tag","zoomOptions","props","isGroup","includes","buildEffectiveTag","group","split","groupActiveTag","BoundStore","getActiveId","target","focused","layouts","screen","isEnteringTransition","next","currentRouteKey","current","route","key","previousRouteKey","previous","nextRouteKey","zoomAnchor","ZOOM_SHARED_OPTIONS","baseRawOptions","id","raw","scaleMode","linkPair","link","getPair","currentScreenKey","previousScreenKey","nextScreenKey","entering","sourceBorderRadius","targetBorderRadius","focusedElementOpacity","open","resolveOpacityRangeTuple","fallback","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","close","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","unfocusedElementOpacity","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","sourceVisibilityStyle","style","VISIBLE_STYLE","focusedContentSlot","navigationMaskEnabled","NAVIGATION_MASK_CONTAINER_STYLE_ID","bounds","options","prepareBoundStyles","normX","active","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","horizontalDragTranslation","verticalDragTranslation","dragX","resolveDirectionalDragTranslation","normalized","dimension","resistance","ZOOM_DRAG_RESISTANCE","dragY","horizontalDragScale","verticalDragScale","backgroundScale","dragXScale","resolveDirectionalDragScale","dismissDirection","dragYScale","dragScale","combineScales","focusedContentTarget","contentRaw","method","maskRaw","space","focusedFade","closing","shouldRemoveClipping","animating","focusedMaskBorderRadius","top","right","bottom","left","ZOOM_MASK_OUTSET","maskWidth","Math","max","toNumber","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","focusedContentStyle","opacity","debug","transform","overflow","focusedStyles","NAVIGATION_MASK_ELEMENT_STYLE_ID","unfocusedFade","unfocusedScale","didSourceComponentVisiblyHide","EPSILON","shouldResetUnfocusedElement","unfocusedElementTarget","elementRaw","boundTargetCenterX","destinationBounds","undefined","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,mBAAA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,CAAC,GAAGhE,SAAS;EAChE,MAAMiE,aAAa,GAAG,IAAA7C,gBAAQ,EAACuB,UAAU,CAACuB,MAAM,EAAE,CAAC,CAAC,GAAGlE,SAAS;EAEhE,MAAMmE,oBAAoB,GAAG1B,2BAA2B,GACrD;IACAR,SAAS,EAAE,CACV;MAAEV,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEE,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEuC,MAAM,EAAE;IAAE,CAAC,EACb;MAAEE,MAAM,EAAE;IAAE,CAAC,CACb;IACDnC,OAAO,EAAEhH,WAAW,EAAEiH,KAAK,GAAG,CAAC,GAAG,CAAC;IACnCoC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACZ,CAAC,GACA;IACApC,SAAS,EAAE,CACV;MACCV,UAAU,EAAEsC;IACb,CAAC,EACD;MACCpC,UAAU,EAAEqC;IACb,CAAC,EACD;MACCE,MAAM,EAAED;IACT,CAAC,EACD;MACCG,MAAM,EAAED;IACT,CAAC,CACD;IACDlC,OAAO,EAAEhH,WAAW,EAAEiH,KAAK,GAAG,CAAC,GAAGK,aAAa;IAC/C+B,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRtG,KAAK,EAAE;QACNiE,SAAS,EAAE,CAAC;UAAEN,KAAK,EAAEW;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAACnH,iBAAiB,GAAG;MACpB6C,KAAK,EAAEmG;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -6,17 +6,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createStore = createStore;
|
|
7
7
|
function createStore({
|
|
8
8
|
createBag,
|
|
9
|
-
disposeBag
|
|
9
|
+
disposeBag,
|
|
10
|
+
actions: createActions
|
|
10
11
|
}) {
|
|
11
12
|
const store = {};
|
|
12
13
|
let cachedBag;
|
|
14
|
+
function createFullBag() {
|
|
15
|
+
const bag = createBag();
|
|
16
|
+
const actions = createActions?.(bag);
|
|
17
|
+
return actions ? Object.assign({}, bag, {
|
|
18
|
+
actions
|
|
19
|
+
}) : Object.assign({}, bag);
|
|
20
|
+
}
|
|
13
21
|
function peekBag(routeKey) {
|
|
14
22
|
return store[routeKey];
|
|
15
23
|
}
|
|
16
24
|
function getBag(routeKey) {
|
|
17
25
|
let bag = store[routeKey];
|
|
18
26
|
if (!bag) {
|
|
19
|
-
bag =
|
|
27
|
+
bag = createFullBag();
|
|
20
28
|
store[routeKey] = bag;
|
|
21
29
|
}
|
|
22
30
|
return bag;
|
|
@@ -32,7 +40,7 @@ function createStore({
|
|
|
32
40
|
*/
|
|
33
41
|
function getCachedBag() {
|
|
34
42
|
if (!cachedBag) {
|
|
35
|
-
cachedBag =
|
|
43
|
+
cachedBag = createFullBag();
|
|
36
44
|
}
|
|
37
45
|
return cachedBag;
|
|
38
46
|
}
|
|
@@ -43,12 +51,13 @@ function createStore({
|
|
|
43
51
|
}
|
|
44
52
|
delete store[routeKey];
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
const baseStore = {
|
|
47
55
|
peekBag,
|
|
48
56
|
getBag,
|
|
49
57
|
getValue,
|
|
50
58
|
getCachedBag,
|
|
51
59
|
clearBag
|
|
52
60
|
};
|
|
61
|
+
return baseStore;
|
|
53
62
|
}
|
|
54
63
|
//# sourceMappingURL=create-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createStore","createBag","disposeBag","store","cachedBag","peekBag","routeKey","getBag","
|
|
1
|
+
{"version":3,"names":["createStore","createBag","disposeBag","actions","createActions","store","cachedBag","createFullBag","bag","Object","assign","peekBag","routeKey","getBag","getValue","key","getCachedBag","clearBag","baseStore"],"sourceRoot":"../../../../src","sources":["shared/utils/create-store.ts"],"mappings":";;;;;;AAmBO,SAASA,WAAWA,CAAwC;EAClEC,SAAS;EACTC,UAAU;EACVC,OAAO,EAAEC;AAC0B,CAAC,EAEnC;EACD,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ACZC;EACD,CAAC;EACD,OAAOC,SAAS;AACjB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isFabric","global"],"sourceRoot":"../../../../src","sources":["shared/utils/platform.ts"],"mappings":";;;;;;AAAA;AACA;AACA
|
|
1
|
+
{"version":3,"names":["isFabric","global"],"sourceRoot":"../../../../src","sources":["shared/utils/platform.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAGO,SAASA,QAAQA,CAAA,EAAY;EACnC,OAAO,uBAAuB,IAAIC,MAAM;AACzC","ignoreList":[]}
|
|
@@ -5,14 +5,13 @@ import Animated, { runOnUI, useAnimatedRef, useAnimatedStyle } from "react-nativ
|
|
|
5
5
|
import { NO_STYLES } from "../../constants";
|
|
6
6
|
import { useDescriptorDerivations } from "../../providers/screen/descriptors";
|
|
7
7
|
import { useScreenStyles } from "../../providers/screen/styles";
|
|
8
|
-
import { AnimationStore } from "../../stores/animation.store";
|
|
9
8
|
import { BoundStore } from "../../stores/bounds";
|
|
10
9
|
import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles/styles";
|
|
11
|
-
import { useAutoSourceMeasurement } from "./hooks/use-auto-source-measurement";
|
|
12
|
-
import { useBoundaryMeasureAndStore } from "./hooks/use-boundary-measure-and-store";
|
|
13
10
|
import { useBoundaryPresence } from "./hooks/use-boundary-presence";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { useCaptureDestinationBoundary } from "./hooks/use-capture-destination-boundary";
|
|
12
|
+
import { useCaptureSourceBoundary } from "./hooks/use-capture-source-boundary";
|
|
13
|
+
import { useMeasurer } from "./hooks/use-measurer";
|
|
14
|
+
import { useRefreshBoundary } from "./hooks/use-refresh-boundary";
|
|
16
15
|
import { BoundaryOwnerProvider, useBoundaryOwner } from "./providers/boundary-owner.provider";
|
|
17
16
|
import { buildBoundaryMatchKey } from "./utils/build-boundary-match-key";
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -61,30 +60,22 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
61
60
|
method
|
|
62
61
|
};
|
|
63
62
|
}, [anchor, scaleMode, target, method]);
|
|
64
|
-
const isAnimating = AnimationStore.getValue(currentScreenKey, "animating");
|
|
65
63
|
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
66
64
|
const {
|
|
67
|
-
|
|
65
|
+
stylesMap
|
|
68
66
|
} = useScreenStyles();
|
|
69
67
|
const associatedStyles = useAnimatedStyle(() => {
|
|
70
68
|
"worklet";
|
|
71
69
|
|
|
72
|
-
|
|
73
|
-
if ("opacity" in baseStyle) {
|
|
74
|
-
return baseStyle;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
...baseStyle,
|
|
78
|
-
opacity: 1
|
|
79
|
-
};
|
|
70
|
+
return stylesMap.get()[sharedBoundTag]?.style ?? NO_STYLES;
|
|
80
71
|
});
|
|
81
72
|
const associatedStackingStyles = useAnimatedStyle(() => {
|
|
82
73
|
"worklet";
|
|
83
74
|
|
|
84
|
-
const baseStyle =
|
|
75
|
+
const baseStyle = stylesMap.get()[sharedBoundTag]?.style;
|
|
85
76
|
return {
|
|
86
|
-
zIndex: baseStyle
|
|
87
|
-
elevation: baseStyle
|
|
77
|
+
zIndex: baseStyle?.zIndex ?? 0,
|
|
78
|
+
elevation: baseStyle?.elevation ?? 0
|
|
88
79
|
};
|
|
89
80
|
});
|
|
90
81
|
const {
|
|
@@ -95,7 +86,7 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
95
86
|
ownerRef,
|
|
96
87
|
associatedTargetStyles: runtimeEnabled ? associatedStyles : undefined
|
|
97
88
|
});
|
|
98
|
-
const
|
|
89
|
+
const measureBoundary = useMeasurer({
|
|
99
90
|
enabled,
|
|
100
91
|
sharedBoundTag,
|
|
101
92
|
preferredSourceScreenKey,
|
|
@@ -122,34 +113,32 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
122
113
|
|
|
123
114
|
// On the source screen, capture source bounds when a matching destination
|
|
124
115
|
// appears on the next screen.
|
|
125
|
-
|
|
116
|
+
useCaptureSourceBoundary({
|
|
126
117
|
enabled: runtimeEnabled,
|
|
127
118
|
sharedBoundTag,
|
|
128
119
|
id,
|
|
129
120
|
group,
|
|
130
121
|
nextScreenKey,
|
|
131
|
-
|
|
122
|
+
measureBoundary
|
|
132
123
|
});
|
|
133
124
|
|
|
134
|
-
// Destination completion path:
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
usePendingDestinationMeasurement({
|
|
125
|
+
// Destination completion path: hold lifecycle start until the first valid
|
|
126
|
+
// destination measurement attaches, then release the pending transition.
|
|
127
|
+
useCaptureDestinationBoundary({
|
|
138
128
|
sharedBoundTag,
|
|
139
129
|
enabled: shouldRunDestinationEffects,
|
|
140
130
|
id,
|
|
141
131
|
group,
|
|
142
132
|
currentScreenKey,
|
|
143
133
|
expectedSourceScreenKey: preferredSourceScreenKey,
|
|
144
|
-
|
|
145
|
-
maybeMeasureAndStore
|
|
134
|
+
measureBoundary
|
|
146
135
|
});
|
|
147
136
|
|
|
148
137
|
// Pre-transition measurement path: when this route or its next sibling is
|
|
149
138
|
// about to animate, capture or refresh the measurements needed before
|
|
150
139
|
// progress or transform state mutates. Grouped sources refresh existing
|
|
151
140
|
// links; plain sources only backfill when missing.
|
|
152
|
-
|
|
141
|
+
useRefreshBoundary({
|
|
153
142
|
enabled: runtimeEnabled,
|
|
154
143
|
sharedBoundTag,
|
|
155
144
|
id,
|
|
@@ -157,20 +146,20 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
157
146
|
currentScreenKey,
|
|
158
147
|
nextScreenKey,
|
|
159
148
|
hasNextScreen,
|
|
160
|
-
|
|
149
|
+
measureBoundary
|
|
161
150
|
});
|
|
162
151
|
const handlePress = useCallback((...args) => {
|
|
163
152
|
// Press path has priority: capture source before user onPress/navigation.
|
|
164
153
|
if (group) {
|
|
165
|
-
runOnUI(BoundStore.
|
|
154
|
+
runOnUI(BoundStore.group.setActiveId)(group, String(id));
|
|
166
155
|
}
|
|
167
|
-
runOnUI(
|
|
156
|
+
runOnUI(measureBoundary)({
|
|
168
157
|
intent: "capture-source"
|
|
169
158
|
});
|
|
170
159
|
if (typeof onPress === "function") {
|
|
171
160
|
onPress(...args);
|
|
172
161
|
}
|
|
173
|
-
}, [group, id,
|
|
162
|
+
}, [group, id, measureBoundary, onPress]);
|
|
174
163
|
const resolvedOnPress = typeof onPress === "function" ? handlePress : undefined;
|
|
175
164
|
useImperativeHandle(forwardedRef, () => ownerRef.current, [ownerRef]);
|
|
176
165
|
return /*#__PURE__*/_jsx(BoundaryOwnerProvider, {
|
package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","memo","useCallback","useImperativeHandle","useMemo","Animated","runOnUI","useAnimatedRef","useAnimatedStyle","NO_STYLES","useDescriptorDerivations","useScreenStyles","
|
|
1
|
+
{"version":3,"names":["forwardRef","memo","useCallback","useImperativeHandle","useMemo","Animated","runOnUI","useAnimatedRef","useAnimatedStyle","NO_STYLES","useDescriptorDerivations","useScreenStyles","BoundStore","prepareStyleForBounds","useBoundaryPresence","useCaptureDestinationBoundary","useCaptureSourceBoundary","useMeasurer","useRefreshBoundary","BoundaryOwnerProvider","useBoundaryOwner","buildBoundaryMatchKey","jsx","_jsx","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","ownerRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","runtimeEnabled","hasNextScreen","boundaryConfig","undefined","preparedStyles","stylesMap","associatedStyles","get","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","associatedTargetStyles","measureBoundary","measuredAnimatedRef","shouldRunDestinationEffects","expectedSourceScreenKey","handlePress","args","setActiveId","String","intent","resolvedOnPress","current","value","children","ref","collapsable"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/create-boundary-component.tsx"],"mappings":";;AAAA,SAECA,UAAU,EACVC,IAAI,EACJC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,QACD,OAAO;AAEd,OAAOC,QAAQ,IACdC,OAAO,EACPC,cAAc,EACdC,gBAAgB,QACV,yBAAyB;AAChC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,wBAAwB,QAAQ,oCAAoC;AAC7E,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,qBAAqB,QAAQ,0CAA0C;AAChF,SAASC,mBAAmB,QAAQ,+BAA+B;AACnE,SAASC,6BAA6B,QAAQ,0CAA0C;AACxF,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,WAAW,QAAQ,sBAAsB;AAClD,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SACCC,qBAAqB,EACrBC,gBAAgB,QACV,qCAAqC;AAE5C,SAASC,qBAAqB,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMzE,OAAO,SAASC,uBAAuBA,CACtCC,OAAyB,EACzBC,OAAuC,GAAG,CAAC,CAAC,EAC3C;EACD,MAAM;IAAEC,eAAe,GAAG;EAAM,CAAC,GAAGD,OAAO;EAC3C,MAAME,iBAAiB,GAAGD,eAAe,GACtCF,OAAO,GACPpB,QAAQ,CAACwB,uBAAuB,CAACJ,OAAO,CAAC;EAE5C,MAAMK,KAAK,gBAAG9B,UAAU,CAGtB,CAAC+B,KAAK,EAAEC,YAAY,KAAK;IAC1B,MAAMC,QAAQ,GAAG1B,cAAc,CAAO,CAAC;IACvC,MAAM;MACL2B,OAAO,GAAG,IAAI;MACdC,KAAK;MACLC,EAAE;MACFC,MAAM;MACNC,SAAS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MAAMI,WAAW,GAAGvE,WAAW,CAC9B,CAAC,GAAGwE,IAAe,KAAK;MACvB;MACA,IAAIvC,KAAK,EAAE;QACV7B,OAAO,CAACM,UAAU,CAACuB,KAAK,CAACwC,WAAW,CAAC,CAACxC,KAAK,EAAEyC,MAAM,CAACxC,EAAE,CAAC,CAAC;MACzD;MACA9B,OAAO,CAAC+D,eAAe,CAAC,CAAC;QAAEQ,MAAM,EAAE;MAAiB,CAAC,CAAC;MAEtD,IAAI,OAAOnC,OAAO,KAAK,UAAU,EAAE;QAClCA,OAAO,CAAC,GAAGgC,IAAI,CAAC;MACjB;IACD,CAAC,EACD,CAACvC,KAAK,EAAEC,EAAE,EAAEiC,eAAe,EAAE3B,OAAO,CACrC,CAAC;IAED,MAAMoC,eAAe,GACpB,OAAOpC,OAAO,KAAK,UAAU,GAAG+B,WAAW,GAAGjB,SAAS;IAExDrD,mBAAmB,CAAC6B,YAAY,EAAE,MAAMC,QAAQ,CAAC8C,OAAc,EAAE,CAChE9C,QAAQ,CACR,CAAC;IAEF,oBACCV,IAAA,CAACJ,qBAAqB;MAAC6D,KAAK,EAAEf,YAAa;MAAAgB,QAAA,eAC1C1D,IAAA,CAACK,iBAAiB;QAAA,GACbe,IAAI;QACRuC,GAAG,EAAEjD,QAAS;QACdQ,KAAK,EAAE,CACNA,KAAK,EACLY,cAAc,GACXc,eAAe,GACdN,wBAAwB,GACxBF,gBAAgB,GACjBH,SAAS,CACX;QACFd,OAAO,EAAEoC,eAAgB;QACzBK,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAOlF,IAAI,CACVI,QAAQ,CAACwB,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js
CHANGED
|
@@ -4,9 +4,9 @@ import { BoundStore } from "../../../stores/bounds";
|
|
|
4
4
|
export const resolvePendingSourceKey = (sharedBoundTag, expectedSourceScreenKey) => {
|
|
5
5
|
"worklet";
|
|
6
6
|
|
|
7
|
-
if (expectedSourceScreenKey && (BoundStore.
|
|
7
|
+
if (expectedSourceScreenKey && (BoundStore.link.getPending(sharedBoundTag, expectedSourceScreenKey) || BoundStore.link.hasSource(sharedBoundTag, expectedSourceScreenKey))) {
|
|
8
8
|
return expectedSourceScreenKey;
|
|
9
9
|
}
|
|
10
|
-
return BoundStore.
|
|
10
|
+
return BoundStore.link.getPending(sharedBoundTag)?.source.screenKey ?? null;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=resolve-pending-source-key.js.map
|