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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useContext
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { useContext } from "react";
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import Animated from "react-native-reanimated";
|
|
6
6
|
import createProvider from "../../../utils/create-provider";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { MaybeFloatingContainer } from "./components/maybe-floating-container";
|
|
8
|
+
import { useInterpolatedStylesMap } from "./hooks/use-interpolated-style-maps";
|
|
9
|
+
import { useMaybeBlockVisibility } from "./hooks/use-maybe-block-visibility";
|
|
10
|
+
import { useResolvedStylesMap } from "./hooks/use-resolved-slot-style-map";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
export const {
|
|
13
13
|
ScreenStylesProvider,
|
|
14
14
|
ScreenStylesContext,
|
|
@@ -16,110 +16,36 @@ export const {
|
|
|
16
16
|
} = createProvider("ScreenStyles", {
|
|
17
17
|
guarded: true
|
|
18
18
|
})(({
|
|
19
|
-
children
|
|
19
|
+
children,
|
|
20
|
+
isFloatingOverlay
|
|
20
21
|
}) => {
|
|
21
22
|
const parentContext = useContext(ScreenStylesContext);
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
boundsAccessor
|
|
27
|
-
} = useScreenAnimationContext();
|
|
28
|
-
const isGesturingDuringCloseAnimation = useSharedValue(false);
|
|
29
|
-
const hasWarnedLegacy = useSharedValue(false);
|
|
30
|
-
const previousElementStyleKeysBySlot = useSharedValue({});
|
|
31
|
-
const rawStyleResolution = useDerivedValue(() => {
|
|
32
|
-
"worklet";
|
|
33
|
-
|
|
34
|
-
const props = screenInterpolatorProps.value;
|
|
35
|
-
const {
|
|
36
|
-
current,
|
|
37
|
-
next,
|
|
38
|
-
progress
|
|
39
|
-
} = props;
|
|
40
|
-
const isDragging = current.gesture.dragging;
|
|
41
|
-
const isNextClosing = !!next?.closing;
|
|
42
|
-
if (isDragging && isNextClosing) {
|
|
43
|
-
isGesturingDuringCloseAnimation.value = true;
|
|
44
|
-
}
|
|
45
|
-
if (!isDragging && !isNextClosing) {
|
|
46
|
-
isGesturingDuringCloseAnimation.value = false;
|
|
47
|
-
}
|
|
48
|
-
const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.value;
|
|
49
|
-
const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
|
|
50
|
-
if (!interpolator) {
|
|
51
|
-
return {
|
|
52
|
-
layerStylesMap: NO_STYLES,
|
|
53
|
-
elementStylesMap: NO_STYLES
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
let effectiveProgress = progress;
|
|
57
|
-
let effectiveNext = next;
|
|
58
|
-
if (isInGestureMode) {
|
|
59
|
-
effectiveProgress = current.progress;
|
|
60
|
-
effectiveNext = undefined;
|
|
61
|
-
}
|
|
62
|
-
try {
|
|
63
|
-
const raw = interpolator({
|
|
64
|
-
...props,
|
|
65
|
-
progress: effectiveProgress,
|
|
66
|
-
next: effectiveNext,
|
|
67
|
-
bounds: boundsAccessor
|
|
68
|
-
});
|
|
69
|
-
const {
|
|
70
|
-
stylesMap,
|
|
71
|
-
wasLegacy
|
|
72
|
-
} = resolveInterpolatedStyleOutput(raw);
|
|
73
|
-
const {
|
|
74
|
-
layerStylesMap,
|
|
75
|
-
elementStylesMap
|
|
76
|
-
} = splitNormalizedStyleMaps(stylesMap);
|
|
77
|
-
if (__DEV__ && wasLegacy && !hasWarnedLegacy.value) {
|
|
78
|
-
hasWarnedLegacy.value = true;
|
|
79
|
-
logger.warn("Flat interpolator return shape (contentStyle/backdropStyle) is deprecated. " + "Use the nested format instead: { content: { style }, backdrop: { style } }.");
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
layerStylesMap,
|
|
83
|
-
elementStylesMap
|
|
84
|
-
};
|
|
85
|
-
} catch (err) {
|
|
86
|
-
if (__DEV__) {
|
|
87
|
-
console.warn("[react-native-screen-transitions] screenStyleInterpolator must be a worklet", err);
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
layerStylesMap: NO_STYLES,
|
|
91
|
-
elementStylesMap: NO_STYLES
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
const layerStylesMap = useDerivedValue(() => {
|
|
96
|
-
"worklet";
|
|
97
|
-
|
|
98
|
-
return rawStyleResolution.value.layerStylesMap;
|
|
23
|
+
const rawStylesMap = useInterpolatedStylesMap();
|
|
24
|
+
const stylesMap = useResolvedStylesMap({
|
|
25
|
+
currentStylesMap: rawStylesMap,
|
|
26
|
+
ancestorStylesMap: parentContext?.stylesMap
|
|
99
27
|
});
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
resolvedStylesMap,
|
|
105
|
-
nextPreviousStyleKeysBySlot
|
|
106
|
-
} = buildResolvedStyleMap({
|
|
107
|
-
currentStylesMap: rawStyleResolution.value.elementStylesMap,
|
|
108
|
-
fallbackStylesMap: parentContext?.elementStylesMap.value ?? NO_STYLES,
|
|
109
|
-
previousStyleKeysBySlot: previousElementStyleKeysBySlot.value
|
|
110
|
-
});
|
|
111
|
-
previousElementStyleKeysBySlot.value = nextPreviousStyleKeysBySlot;
|
|
112
|
-
return resolvedStylesMap;
|
|
113
|
-
});
|
|
114
|
-
const value = useMemo(() => {
|
|
115
|
-
return {
|
|
116
|
-
layerStylesMap,
|
|
117
|
-
elementStylesMap
|
|
118
|
-
};
|
|
119
|
-
}, [elementStylesMap, layerStylesMap]);
|
|
28
|
+
const {
|
|
29
|
+
animatedStyle,
|
|
30
|
+
animatedProps
|
|
31
|
+
} = useMaybeBlockVisibility(isFloatingOverlay);
|
|
120
32
|
return {
|
|
121
|
-
value
|
|
122
|
-
|
|
33
|
+
value: {
|
|
34
|
+
stylesMap
|
|
35
|
+
},
|
|
36
|
+
children: /*#__PURE__*/_jsx(MaybeFloatingContainer, {
|
|
37
|
+
isFloatingOverlay: isFloatingOverlay,
|
|
38
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
39
|
+
style: [styles.container, animatedStyle],
|
|
40
|
+
animatedProps: animatedProps,
|
|
41
|
+
children: children
|
|
42
|
+
})
|
|
43
|
+
})
|
|
123
44
|
};
|
|
124
45
|
});
|
|
46
|
+
const styles = StyleSheet.create({
|
|
47
|
+
container: {
|
|
48
|
+
flex: 1
|
|
49
|
+
}
|
|
50
|
+
});
|
|
125
51
|
//# sourceMappingURL=styles.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","
|
|
1
|
+
{"version":3,"names":["useContext","StyleSheet","Animated","createProvider","MaybeFloatingContainer","useInterpolatedStylesMap","useMaybeBlockVisibility","useResolvedStylesMap","jsx","_jsx","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","guarded","children","isFloatingOverlay","parentContext","rawStylesMap","stylesMap","currentStylesMap","ancestorStylesMap","animatedStyle","animatedProps","value","View","style","styles","container","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;AAAA,SAAyBA,UAAU,QAAQ,OAAO;AAClD,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAA4B,yBAAyB;AAEpE,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,SAASC,sBAAsB,QAAQ,uCAAuC;AAC9E,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,oBAAoB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3E,OAAO,MAAM;EACZC,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAGV,cAAc,CAAC,cAAc,EAAE;EAClCW,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAGjB,UAAU,CAACW,mBAAmB,CAAC;EAErD,MAAMO,YAAY,GAAGb,wBAAwB,CAAC,CAAC;EAE/C,MAAMc,SAAS,GAAGZ,oBAAoB,CAAC;IACtCa,gBAAgB,EAAEF,YAAY;IAC9BG,iBAAiB,EAAEJ,aAAa,EAAEE;EACnC,CAAC,CAAC;EAEF,MAAM;IAAEG,aAAa;IAAEC;EAAc,CAAC,GACrCjB,uBAAuB,CAACU,iBAAiB,CAAC;EAE3C,OAAO;IACNQ,KAAK,EAAE;MACNL;IACD,CAAC;IACDJ,QAAQ,eACPN,IAAA,CAACL,sBAAsB;MAACY,iBAAiB,EAAEA,iBAAkB;MAAAD,QAAA,eAC5DN,IAAA,CAACP,QAAQ,CAACuB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEN,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAR,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACO;EAE1B,CAAC;AACF,CAAC,CAAC;AAEF,MAAMY,MAAM,GAAG1B,UAAU,CAAC4B,MAAM,CAAC;EAChCD,SAAS,EAAE;IAAEE,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,27 +12,33 @@ export const applyMeasuredBoundsWrites = params => {
|
|
|
12
12
|
ancestorKeys,
|
|
13
13
|
navigatorKey,
|
|
14
14
|
ancestorNavigatorKeys,
|
|
15
|
-
|
|
15
|
+
shouldWriteEntry,
|
|
16
16
|
shouldSetSource,
|
|
17
17
|
shouldUpdateSource,
|
|
18
18
|
shouldSetDestination,
|
|
19
19
|
shouldUpdateDestination,
|
|
20
20
|
expectedSourceScreenKey
|
|
21
21
|
} = params;
|
|
22
|
-
if (
|
|
23
|
-
BoundStore.
|
|
22
|
+
if (shouldWriteEntry) {
|
|
23
|
+
BoundStore.entry.set(sharedBoundTag, currentScreenKey, {
|
|
24
|
+
bounds: measured,
|
|
25
|
+
styles: preparedStyles,
|
|
26
|
+
ancestorKeys,
|
|
27
|
+
navigatorKey,
|
|
28
|
+
ancestorNavigatorKeys
|
|
29
|
+
});
|
|
24
30
|
}
|
|
25
31
|
if (shouldSetSource) {
|
|
26
|
-
BoundStore.
|
|
32
|
+
BoundStore.link.setSource("capture", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
27
33
|
}
|
|
28
34
|
if (shouldUpdateSource) {
|
|
29
|
-
BoundStore.
|
|
35
|
+
BoundStore.link.setSource("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
30
36
|
}
|
|
31
37
|
if (shouldUpdateDestination) {
|
|
32
|
-
BoundStore.
|
|
38
|
+
BoundStore.link.setDestination("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
33
39
|
}
|
|
34
40
|
if (shouldSetDestination) {
|
|
35
|
-
BoundStore.
|
|
41
|
+
BoundStore.link.setDestination("attach", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
36
42
|
}
|
|
37
43
|
};
|
|
38
44
|
//# sourceMappingURL=apply-measured-bounds-writes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BoundStore","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","
|
|
1
|
+
{"version":3,"names":["BoundStore","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","entry","set","bounds","styles","link","setSource","setDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/apply-measured-bounds-writes.ts"],"mappings":";;AACA,SAASA,UAAU,QAAQ,IAAI;AAkB/B,OAAO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,gBAAgB;IAChBC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGb,MAAM;EAEV,IAAIQ,gBAAgB,EAAE;IACrBV,UAAU,CAACgB,KAAK,CAACC,GAAG,CAACd,cAAc,EAAEC,gBAAgB,EAAE;MACtDc,MAAM,EAAEb,QAAQ;MAChBc,MAAM,EAAEb,cAAc;MACtBC,YAAY;MACZC,YAAY;MACZC;IACD,CAAC,CAAC;EACH;EAEA,IAAIE,eAAe,EAAE;IACpBX,UAAU,CAACoB,IAAI,CAACC,SAAS,CACxB,SAAS,EACTlB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIG,kBAAkB,EAAE;IACvBZ,UAAU,CAACoB,IAAI,CAACC,SAAS,CACxB,SAAS,EACTlB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIK,uBAAuB,EAAE;IAC5Bd,UAAU,CAACoB,IAAI,CAACE,cAAc,CAC7B,SAAS,EACTnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAII,oBAAoB,EAAE;IACzBb,UAAU,CAACoB,IAAI,CAACE,cAAc,CAC7B,QAAQ,EACRnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":";;AAEA,OAAO,SAASA,qBAAqBA,CACpCC,UAA+C,EACjC;EACd,SAAS;;EACT,IAAI,CAACA,UAAU,EAAE,OAAO,EAAE;EAE1B,MAAMC,OAAoB,GAAG,CAACD,UAAU,CAACE,SAAS,CAAC;EACnD,MAAMC,SAAS,GAAGH,UAAU,CAACI,YAAY;EACzC,IAAID,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;IACtC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;MAC1C,MAAMC,GAAG,GAAGJ,SAAS,CAACG,CAAC,CAAC;MACxB,IAAI,CAACL,OAAO,CAACO,QAAQ,CAACD,GAAG,CAAC,EAAE;QAC3BN,OAAO,CAACQ,IAAI,CAACF,GAAG,CAAC;MAClB;IACD;EACD;EAEA,OAAON,OAAO;AACf","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push","hasAnyKeys","record","_key"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":";;AAEA,OAAO,SAASA,qBAAqBA,CACpCC,UAA+C,EACjC;EACd,SAAS;;EACT,IAAI,CAACA,UAAU,EAAE,OAAO,EAAE;EAE1B,MAAMC,OAAoB,GAAG,CAACD,UAAU,CAACE,SAAS,CAAC;EACnD,MAAMC,SAAS,GAAGH,UAAU,CAACI,YAAY;EACzC,IAAID,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;IACtC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;MAC1C,MAAMC,GAAG,GAAGJ,SAAS,CAACG,CAAC,CAAC;MACxB,IAAI,CAACL,OAAO,CAACO,QAAQ,CAACD,GAAG,CAAC,EAAE;QAC3BN,OAAO,CAACQ,IAAI,CAACF,GAAG,CAAC;MAClB;IACD;EACD;EAEA,OAAON,OAAO;AACf;AAEA,OAAO,MAAMS,UAAU,GAAIC,MAA+B,IAAK;EAC9D,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC","ignoreList":[]}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { clear, clearByAncestor, clearByBranch } from "./internals/clear";
|
|
4
|
-
import {
|
|
5
|
-
import { getActiveLink,
|
|
4
|
+
import { getGroupActiveId, setGroupActiveId } from "./internals/groups";
|
|
5
|
+
import { getActiveLink, getEntry, getEntryConfig, getMeasuredEntry, getPendingLink, hasDestinationLink, hasSourceLink, removeEntry, setDestination, setEntry, setSource } from "./internals/registry";
|
|
6
6
|
import { resolveTransitionPair } from "./internals/resolver";
|
|
7
7
|
export const BoundStore = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
8
|
+
entry: {
|
|
9
|
+
set: setEntry,
|
|
10
|
+
get: getEntry,
|
|
11
|
+
getMeasured: getMeasuredEntry,
|
|
12
|
+
getConfig: getEntryConfig,
|
|
13
|
+
remove: removeEntry
|
|
14
|
+
},
|
|
15
|
+
link: {
|
|
16
|
+
setSource,
|
|
17
|
+
setDestination,
|
|
18
|
+
getActive: getActiveLink,
|
|
19
|
+
getPair: resolveTransitionPair,
|
|
20
|
+
getPending: getPendingLink,
|
|
21
|
+
hasSource: hasSourceLink,
|
|
22
|
+
hasDestination: hasDestinationLink
|
|
23
|
+
},
|
|
24
|
+
group: {
|
|
25
|
+
setActiveId: setGroupActiveId,
|
|
26
|
+
getActiveId: getGroupActiveId
|
|
27
|
+
},
|
|
28
|
+
cleanup: {
|
|
29
|
+
byScreen: clear,
|
|
30
|
+
byAncestor: clearByAncestor,
|
|
31
|
+
byBranch: clearByBranch
|
|
32
|
+
}
|
|
32
33
|
};
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clear","clearByAncestor","clearByBranch","
|
|
1
|
+
{"version":3,"names":["clear","clearByAncestor","clearByBranch","getGroupActiveId","setGroupActiveId","getActiveLink","getEntry","getEntryConfig","getMeasuredEntry","getPendingLink","hasDestinationLink","hasSourceLink","removeEntry","setDestination","setEntry","setSource","resolveTransitionPair","BoundStore","entry","set","get","getMeasured","getConfig","remove","link","getActive","getPair","getPending","hasSource","hasDestination","group","setActiveId","getActiveId","cleanup","byScreen","byAncestor","byBranch"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,eAAe,EAAEC,aAAa,QAAQ,mBAAmB;AACzE,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,oBAAoB;AACvE,SACCC,aAAa,EACbC,QAAQ,EACRC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,EACdC,kBAAkB,EAClBC,aAAa,EACbC,WAAW,EACXC,cAAc,EACdC,QAAQ,EACRC,SAAS,QACH,sBAAsB;AAC7B,SAASC,qBAAqB,QAAQ,sBAAsB;AAW5D,OAAO,MAAMC,UAAU,GAAG;EACzBC,KAAK,EAAE;IACNC,GAAG,EAAEL,QAAQ;IACbM,GAAG,EAAEd,QAAQ;IACbe,WAAW,EAAEb,gBAAgB;IAC7Bc,SAAS,EAAEf,cAAc;IACzBgB,MAAM,EAAEX;EACT,CAAC;EACDY,IAAI,EAAE;IACLT,SAAS;IACTF,cAAc;IACdY,SAAS,EAAEpB,aAAa;IACxBqB,OAAO,EAAEV,qBAAqB;IAC9BW,UAAU,EAAElB,cAAc;IAC1BmB,SAAS,EAAEjB,aAAa;IACxBkB,cAAc,EAAEnB;EACjB,CAAC;EACDoB,KAAK,EAAE;IACNC,WAAW,EAAE3B,gBAAgB;IAC7B4B,WAAW,EAAE7B;EACd,CAAC;EACD8B,OAAO,EAAE;IACRC,QAAQ,EAAElC,KAAK;IACfmC,UAAU,EAAElC,eAAe;IAC3BmC,QAAQ,EAAElC;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { hasAnyKeys } from "../helpers/keys";
|
|
3
4
|
import { matchesNavigatorKey, matchesScreenKey } from "../helpers/matching";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
"worklet";
|
|
7
|
-
|
|
8
|
-
for (const _key in record) {
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
return false;
|
|
12
|
-
};
|
|
13
|
-
const clearRegistry = (shouldClearSnapshot, shouldClearLink) => {
|
|
5
|
+
import { registry } from "./state";
|
|
6
|
+
const clearRegistry = (shouldClearScreen, shouldClearLink) => {
|
|
14
7
|
"worklet";
|
|
15
8
|
|
|
16
9
|
registry.modify(state => {
|
|
@@ -18,10 +11,10 @@ const clearRegistry = (shouldClearSnapshot, shouldClearLink) => {
|
|
|
18
11
|
|
|
19
12
|
for (const tag in state) {
|
|
20
13
|
const tagState = state[tag];
|
|
21
|
-
for (const
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
delete tagState.
|
|
14
|
+
for (const entryScreenKey in tagState.screens) {
|
|
15
|
+
const screenEntry = tagState.screens[entryScreenKey];
|
|
16
|
+
if (shouldClearScreen(entryScreenKey, screenEntry)) {
|
|
17
|
+
delete tagState.screens[entryScreenKey];
|
|
25
18
|
}
|
|
26
19
|
}
|
|
27
20
|
for (let i = tagState.linkStack.length - 1; i >= 0; i--) {
|
|
@@ -30,68 +23,37 @@ const clearRegistry = (shouldClearSnapshot, shouldClearLink) => {
|
|
|
30
23
|
tagState.linkStack.splice(i, 1);
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
|
-
if (!hasAnyKeys(tagState.
|
|
34
|
-
delete state[tag];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return state;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const clearPresence = shouldClearPresence => {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
presence.modify(state => {
|
|
44
|
-
"worklet";
|
|
45
|
-
|
|
46
|
-
for (const tag in state) {
|
|
47
|
-
const tagEntries = state[tag];
|
|
48
|
-
for (const entryScreenKey in tagEntries) {
|
|
49
|
-
const entry = tagEntries[entryScreenKey];
|
|
50
|
-
if (shouldClearPresence(entryScreenKey, entry)) {
|
|
51
|
-
delete tagEntries[entryScreenKey];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (!hasAnyKeys(tagEntries)) {
|
|
26
|
+
if (!hasAnyKeys(tagState.screens) && tagState.linkStack.length === 0) {
|
|
55
27
|
delete state[tag];
|
|
56
28
|
}
|
|
57
29
|
}
|
|
58
30
|
return state;
|
|
59
31
|
});
|
|
60
32
|
};
|
|
61
|
-
const performClear = (shouldClearSnapshot, shouldClearLink, shouldClearPresence) => {
|
|
62
|
-
"worklet";
|
|
63
|
-
|
|
64
|
-
clearRegistry(shouldClearSnapshot, shouldClearLink);
|
|
65
|
-
clearPresence(shouldClearPresence);
|
|
66
|
-
};
|
|
67
33
|
function clear(screenKey) {
|
|
68
34
|
"worklet";
|
|
69
35
|
|
|
70
|
-
|
|
36
|
+
clearRegistry(entryScreenKey => entryScreenKey === screenKey, link => {
|
|
71
37
|
return matchesScreenKey(link.source, screenKey) || matchesScreenKey(link.destination, screenKey);
|
|
72
|
-
}
|
|
38
|
+
});
|
|
73
39
|
}
|
|
74
40
|
function clearByAncestor(ancestorKey) {
|
|
75
41
|
"worklet";
|
|
76
42
|
|
|
77
|
-
|
|
78
|
-
return
|
|
43
|
+
clearRegistry((entryScreenKey, screenEntry) => {
|
|
44
|
+
return entryScreenKey === ancestorKey || (screenEntry.ancestorKeys?.includes(ancestorKey) ?? false);
|
|
79
45
|
}, link => {
|
|
80
46
|
return matchesScreenKey(link.source, ancestorKey) || matchesScreenKey(link.destination, ancestorKey);
|
|
81
|
-
}, (entryScreenKey, entry) => {
|
|
82
|
-
return entryScreenKey === ancestorKey || (entry.ancestorKeys?.includes(ancestorKey) ?? false);
|
|
83
47
|
});
|
|
84
48
|
}
|
|
85
49
|
function clearByBranch(branchNavigatorKey) {
|
|
86
50
|
"worklet";
|
|
87
51
|
|
|
88
52
|
if (!branchNavigatorKey) return;
|
|
89
|
-
|
|
90
|
-
return
|
|
53
|
+
clearRegistry((_entryScreenKey, screenEntry) => {
|
|
54
|
+
return screenEntry.navigatorKey === branchNavigatorKey || (screenEntry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
91
55
|
}, link => {
|
|
92
56
|
return matchesNavigatorKey(link.source, branchNavigatorKey) || matchesNavigatorKey(link.destination, branchNavigatorKey);
|
|
93
|
-
}, (_entryScreenKey, entry) => {
|
|
94
|
-
return entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
95
57
|
});
|
|
96
58
|
}
|
|
97
59
|
export { clear, clearByAncestor, clearByBranch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["hasAnyKeys","matchesNavigatorKey","matchesScreenKey","registry","clearRegistry","shouldClearScreen","shouldClearLink","modify","state","tag","tagState","entryScreenKey","screens","screenEntry","i","linkStack","length","link","splice","clear","screenKey","source","destination","clearByAncestor","ancestorKey","ancestorKeys","includes","clearByBranch","branchNavigatorKey","_entryScreenKey","navigatorKey","ancestorNavigatorKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,mBAAmB,EAAEC,gBAAgB,QAAQ,qBAAqB;AAE3E,SAA6BC,QAAQ,QAAQ,SAAS;AAStD,MAAMC,aAAa,GAAGA,CACrBC,iBAAkC,EAClCC,eAA8B,KAC1B;EACJ,SAAS;;EACTH,QAAQ,CAACI,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;MACxB,MAAME,QAAQ,GAAGF,KAAK,CAACC,GAAG,CAAC;MAE3B,KAAK,MAAME,cAAc,IAAID,QAAQ,CAACE,OAAO,EAAE;QAC9C,MAAMC,WAAW,GAAGH,QAAQ,CAACE,OAAO,CAACD,cAAc,CAAC;QACpD,IAAIN,iBAAiB,CAACM,cAAc,EAAEE,WAAW,CAAC,EAAE;UACnD,OAAOH,QAAQ,CAACE,OAAO,CAACD,cAAc,CAAC;QACxC;MACD;MAEA,KAAK,IAAIG,CAAC,GAAGJ,QAAQ,CAACK,SAAS,CAACC,MAAM,GAAG,CAAC,EAAEF,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;QACxD,MAAMG,IAAI,GAAGP,QAAQ,CAACK,SAAS,CAACD,CAAC,CAAC;QAClC,IAAIR,eAAe,CAACW,IAAI,CAAC,EAAE;UAC1BP,QAAQ,CAACK,SAAS,CAACG,MAAM,CAACJ,CAAC,EAAE,CAAC,CAAC;QAChC;MACD;MAEA,IAAI,CAACd,UAAU,CAACU,QAAQ,CAACE,OAAO,CAAC,IAAIF,QAAQ,CAACK,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;QACrE,OAAOR,KAAK,CAACC,GAAG,CAAC;MAClB;IACD;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH,CAAC;AAED,SAASW,KAAKA,CAACC,SAAoB,EAAE;EACpC,SAAS;;EACThB,aAAa,CACXO,cAAc,IAAKA,cAAc,KAAKS,SAAS,EAC/CH,IAAI,IAAK;IACT,OACCf,gBAAgB,CAACe,IAAI,CAACI,MAAM,EAAED,SAAS,CAAC,IACxClB,gBAAgB,CAACe,IAAI,CAACK,WAAW,EAAEF,SAAS,CAAC;EAE/C,CACD,CAAC;AACF;AAEA,SAASG,eAAeA,CAACC,WAAsB,EAAE;EAChD,SAAS;;EACTpB,aAAa,CACZ,CAACO,cAAc,EAAEE,WAAW,KAAK;IAChC,OACCF,cAAc,KAAKa,WAAW,KAC7BX,WAAW,CAACY,YAAY,EAAEC,QAAQ,CAACF,WAAW,CAAC,IAAI,KAAK,CAAC;EAE5D,CAAC,EACAP,IAAI,IAAK;IACT,OACCf,gBAAgB,CAACe,IAAI,CAACI,MAAM,EAAEG,WAAW,CAAC,IAC1CtB,gBAAgB,CAACe,IAAI,CAACK,WAAW,EAAEE,WAAW,CAAC;EAEjD,CACD,CAAC;AACF;AAEA,SAASG,aAAaA,CAACC,kBAAgC,EAAE;EACxD,SAAS;;EACT,IAAI,CAACA,kBAAkB,EAAE;EAEzBxB,aAAa,CACZ,CAACyB,eAAe,EAAEhB,WAAW,KAAK;IACjC,OACCA,WAAW,CAACiB,YAAY,KAAKF,kBAAkB,KAC9Cf,WAAW,CAACkB,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAC/D,KAAK,CAAC;EAET,CAAC,EACAX,IAAI,IAAK;IACT,OACChB,mBAAmB,CAACgB,IAAI,CAACI,MAAM,EAAEO,kBAAkB,CAAC,IACpD3B,mBAAmB,CAACgB,IAAI,CAACK,WAAW,EAAEM,kBAAkB,CAAC;EAE3D,CACD,CAAC;AACF;AAEA,SAAST,KAAK,EAAEI,eAAe,EAAEI,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { groups } from "./state";
|
|
4
|
+
function setGroupActiveId(group, id) {
|
|
5
|
+
"worklet";
|
|
6
|
+
|
|
7
|
+
groups.modify(state => {
|
|
8
|
+
"worklet";
|
|
9
|
+
|
|
10
|
+
const mutableState = state;
|
|
11
|
+
mutableState[group] = {
|
|
12
|
+
activeId: id
|
|
13
|
+
};
|
|
14
|
+
return state;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function getGroupActiveId(group) {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
return groups.get()[group]?.activeId ?? null;
|
|
21
|
+
}
|
|
22
|
+
export { getGroupActiveId, setGroupActiveId };
|
|
23
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["groups","setGroupActiveId","group","id","modify","state","mutableState","activeId","getGroupActiveId","get"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/groups.ts"],"mappings":";;AAAA,SAA2BA,MAAM,QAAQ,SAAS;AAElD,SAASC,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTH,MAAM,CAACI,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACJ,KAAK,CAAC,GAAG;MACrBK,QAAQ,EAAEJ;IACX,CAAC;IACD,OAAOE,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASG,gBAAgBA,CAACN,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOF,MAAM,CAACS,GAAG,CAAC,CAAC,CAACP,KAAK,CAAC,EAAEK,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASC,gBAAgB,EAAEP,gBAAgB","ignoreList":[]}
|