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
|
@@ -16,9 +16,26 @@ export type BoundaryConfig = {
|
|
|
16
16
|
method?: BoundsMethod;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export type
|
|
20
|
-
bounds: MeasuredDimensions;
|
|
19
|
+
export type Entry = {
|
|
20
|
+
bounds: MeasuredDimensions | null;
|
|
21
21
|
styles: StyleProps;
|
|
22
|
+
boundaryConfig?: BoundaryConfig;
|
|
23
|
+
ancestorKeys?: ScreenKey[];
|
|
24
|
+
navigatorKey?: NavigatorKey;
|
|
25
|
+
ancestorNavigatorKeys?: NavigatorKey[];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type MeasuredEntry = Entry & {
|
|
29
|
+
bounds: MeasuredDimensions;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type EntryPatch = {
|
|
33
|
+
bounds?: MeasuredDimensions | null;
|
|
34
|
+
styles?: StyleProps | null;
|
|
35
|
+
boundaryConfig?: BoundaryConfig | null;
|
|
36
|
+
ancestorKeys?: ScreenKey[] | null;
|
|
37
|
+
navigatorKey?: NavigatorKey | null;
|
|
38
|
+
ancestorNavigatorKeys?: NavigatorKey[] | null;
|
|
22
39
|
};
|
|
23
40
|
|
|
24
41
|
export type ScreenIdentifier = {
|
|
@@ -29,8 +46,8 @@ export type ScreenIdentifier = {
|
|
|
29
46
|
};
|
|
30
47
|
|
|
31
48
|
export type TagLink = {
|
|
32
|
-
source: ScreenIdentifier &
|
|
33
|
-
destination: (ScreenIdentifier &
|
|
49
|
+
source: ScreenIdentifier & MeasuredEntry;
|
|
50
|
+
destination: (ScreenIdentifier & MeasuredEntry) | null;
|
|
34
51
|
};
|
|
35
52
|
|
|
36
53
|
export type ResolveTransitionContext = {
|
|
@@ -47,30 +64,15 @@ export type ResolvedTransitionPair = {
|
|
|
47
64
|
destinationStyles: StyleProps | null;
|
|
48
65
|
sourceScreenKey: ScreenKey | null;
|
|
49
66
|
destinationScreenKey: ScreenKey | null;
|
|
50
|
-
usedPending: boolean;
|
|
51
67
|
};
|
|
52
68
|
|
|
53
|
-
export type
|
|
54
|
-
ancestorKeys?: ScreenKey[];
|
|
55
|
-
navigatorKey?: NavigatorKey;
|
|
56
|
-
ancestorNavigatorKeys?: NavigatorKey[];
|
|
57
|
-
};
|
|
69
|
+
export type ScreenEntry = Entry;
|
|
58
70
|
|
|
59
71
|
export type TagState = {
|
|
60
|
-
|
|
72
|
+
screens: Record<ScreenKey, ScreenEntry>;
|
|
61
73
|
linkStack: TagLink[];
|
|
62
74
|
};
|
|
63
75
|
|
|
64
|
-
export type PresenceEntry = {
|
|
65
|
-
count: number;
|
|
66
|
-
ancestorKeys?: ScreenKey[];
|
|
67
|
-
navigatorKey?: NavigatorKey;
|
|
68
|
-
ancestorNavigatorKeys?: NavigatorKey[];
|
|
69
|
-
boundaryConfig?: BoundaryConfig;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export type PresenceState = Record<TagID, Record<ScreenKey, PresenceEntry>>;
|
|
73
|
-
|
|
74
76
|
export type GroupState = {
|
|
75
77
|
activeId: string;
|
|
76
78
|
};
|
|
@@ -6,7 +6,14 @@ import {
|
|
|
6
6
|
import type { Layout } from "../types/screen.types";
|
|
7
7
|
import { createStore } from "../utils/create-store";
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export enum LifecycleTransitionRequestKind {
|
|
10
|
+
None = 0,
|
|
11
|
+
Open = 1,
|
|
12
|
+
ManagedClose = 2,
|
|
13
|
+
NativeClose = 3,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type SystemStoreState = {
|
|
10
17
|
targetProgress: SharedValue<number>;
|
|
11
18
|
|
|
12
19
|
/**
|
|
@@ -18,27 +25,88 @@ export type SystemStoreMap = {
|
|
|
18
25
|
* Intrinsic measured content layout from the screen container wrapper.
|
|
19
26
|
*/
|
|
20
27
|
measuredContentLayout: SharedValue<Layout | null>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The currently pending lifecycle transition request.
|
|
31
|
+
*/
|
|
32
|
+
pendingLifecycleRequestKind: SharedValue<LifecycleTransitionRequestKind>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Progress target for the pending lifecycle transition request.
|
|
36
|
+
*/
|
|
37
|
+
pendingLifecycleRequestTarget: SharedValue<number>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Number of active blockers preventing a pending lifecycle request from
|
|
41
|
+
* starting immediately.
|
|
42
|
+
*/
|
|
43
|
+
pendingLifecycleStartBlockCount: SharedValue<number>;
|
|
21
44
|
};
|
|
22
45
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
46
|
+
export interface SystemStoreActions {
|
|
47
|
+
requestLifecycleTransition(
|
|
48
|
+
kind: LifecycleTransitionRequestKind,
|
|
49
|
+
target: number,
|
|
50
|
+
): void;
|
|
51
|
+
clearLifecycleTransitionRequest(): void;
|
|
52
|
+
blockLifecycleStart(): void;
|
|
53
|
+
unblockLifecycleStart(): void;
|
|
29
54
|
}
|
|
30
55
|
|
|
56
|
+
export type SystemStoreMap = SystemStoreState & {
|
|
57
|
+
actions: SystemStoreActions;
|
|
58
|
+
};
|
|
59
|
+
|
|
31
60
|
/**
|
|
32
61
|
* Route-keyed internal engine state that should not be treated as public screen
|
|
33
62
|
* animation data. These values support runtime measurement and orchestration,
|
|
34
63
|
* such as resolved auto snap points, measured content layout, and the current
|
|
35
64
|
* animation target progress. This could possibly grow in the future.
|
|
36
65
|
*/
|
|
37
|
-
export const SystemStore = createStore<
|
|
38
|
-
createBag:
|
|
66
|
+
export const SystemStore = createStore<SystemStoreState, SystemStoreActions>({
|
|
67
|
+
createBag: () => ({
|
|
68
|
+
targetProgress: makeMutable(1),
|
|
69
|
+
resolvedAutoSnapPoint: makeMutable(-1),
|
|
70
|
+
measuredContentLayout: makeMutable<Layout | null>(null),
|
|
71
|
+
pendingLifecycleRequestKind: makeMutable<LifecycleTransitionRequestKind>(
|
|
72
|
+
LifecycleTransitionRequestKind.None,
|
|
73
|
+
),
|
|
74
|
+
pendingLifecycleRequestTarget: makeMutable<number>(0),
|
|
75
|
+
pendingLifecycleStartBlockCount: makeMutable<number>(0),
|
|
76
|
+
}),
|
|
39
77
|
disposeBag: (bag) => {
|
|
40
78
|
cancelAnimation(bag.targetProgress);
|
|
41
79
|
cancelAnimation(bag.resolvedAutoSnapPoint);
|
|
42
80
|
cancelAnimation(bag.measuredContentLayout);
|
|
81
|
+
cancelAnimation(bag.pendingLifecycleRequestKind);
|
|
82
|
+
cancelAnimation(bag.pendingLifecycleRequestTarget);
|
|
83
|
+
cancelAnimation(bag.pendingLifecycleStartBlockCount);
|
|
43
84
|
},
|
|
85
|
+
actions: (bag) => ({
|
|
86
|
+
requestLifecycleTransition(kind, target) {
|
|
87
|
+
"worklet";
|
|
88
|
+
bag.pendingLifecycleRequestTarget.set(target);
|
|
89
|
+
bag.pendingLifecycleRequestKind.set(kind);
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
clearLifecycleTransitionRequest() {
|
|
93
|
+
"worklet";
|
|
94
|
+
bag.pendingLifecycleRequestKind.set(LifecycleTransitionRequestKind.None);
|
|
95
|
+
bag.pendingLifecycleRequestTarget.set(0);
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
blockLifecycleStart() {
|
|
99
|
+
"worklet";
|
|
100
|
+
bag.pendingLifecycleStartBlockCount.set(
|
|
101
|
+
bag.pendingLifecycleStartBlockCount.get() + 1,
|
|
102
|
+
);
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
unblockLifecycleStart() {
|
|
106
|
+
"worklet";
|
|
107
|
+
bag.pendingLifecycleStartBlockCount.set(
|
|
108
|
+
Math.max(0, bag.pendingLifecycleStartBlockCount.get() - 1),
|
|
109
|
+
);
|
|
110
|
+
},
|
|
111
|
+
}),
|
|
44
112
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "../constants";
|
|
12
12
|
import type { BoundsAccessor } from "./bounds.types";
|
|
13
13
|
import type { GestureValues } from "./gesture.types";
|
|
14
|
-
import type {
|
|
14
|
+
import type { ScreenLayouts } from "./screen.types";
|
|
15
15
|
import type { BaseStackRoute } from "./stack.types";
|
|
16
16
|
|
|
17
17
|
export type ScreenTransitionState = {
|
|
@@ -107,19 +107,7 @@ export type ScreenTransitionState = {
|
|
|
107
107
|
/**
|
|
108
108
|
* Layout measurements for this specific screen.
|
|
109
109
|
*/
|
|
110
|
-
layouts:
|
|
111
|
-
/**
|
|
112
|
-
* The `width` and `height` of the screen container.
|
|
113
|
-
*/
|
|
114
|
-
screen: Layout;
|
|
115
|
-
/**
|
|
116
|
-
* The intrinsic measured content wrapper layout when available.
|
|
117
|
-
*
|
|
118
|
-
* This is currently populated for the measured screen-container path used by
|
|
119
|
-
* auto snap-point sizing. It is undefined until a real measurement exists.
|
|
120
|
-
*/
|
|
121
|
-
content?: Layout;
|
|
122
|
-
};
|
|
110
|
+
layouts: ScreenLayouts;
|
|
123
111
|
|
|
124
112
|
/**
|
|
125
113
|
* Animated index of this screen's current snap point.
|
|
@@ -154,17 +142,9 @@ export interface ScreenInterpolationProps {
|
|
|
154
142
|
* @deprecated Use `current.layouts` instead.
|
|
155
143
|
*/
|
|
156
144
|
layouts: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
screen: Layout;
|
|
161
|
-
/**
|
|
162
|
-
* The intrinsic measured content wrapper layout when available.
|
|
163
|
-
*
|
|
164
|
-
* This is currently populated for the measured screen-container path used by
|
|
165
|
-
* auto snap-point sizing. It is undefined until a real measurement exists.
|
|
166
|
-
*/
|
|
167
|
-
content?: Layout;
|
|
145
|
+
screen: ScreenLayouts["screen"];
|
|
146
|
+
content?: ScreenLayouts["content"];
|
|
147
|
+
navigationMaskEnabled: ScreenLayouts["navigationMaskEnabled"];
|
|
168
148
|
};
|
|
169
149
|
|
|
170
150
|
/**
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
4
4
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
5
5
|
} from "../constants";
|
|
6
|
-
import type {
|
|
6
|
+
import type { MeasuredEntry } from "../stores/bounds";
|
|
7
7
|
import type {
|
|
8
8
|
BoundId,
|
|
9
9
|
BoundsOptions,
|
|
@@ -166,7 +166,11 @@ type BoundsCallResult<T extends BoundsOptions> = BoundsOptionsResult<T> &
|
|
|
166
166
|
|
|
167
167
|
export type BoundsAccessor = {
|
|
168
168
|
<T extends BoundsOptions>(options: T): BoundsCallResult<T>;
|
|
169
|
-
|
|
169
|
+
getMeasured: (id: BoundId, key?: string) => MeasuredEntry | null;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated Use `getMeasured` instead. `getSnapshot` will be removed in the next major version.
|
|
172
|
+
*/
|
|
173
|
+
getSnapshot: (id: BoundId, key?: string) => MeasuredEntry | null;
|
|
170
174
|
getLink: (id: BoundId) => BoundsLink | null;
|
|
171
175
|
interpolateStyle: (
|
|
172
176
|
id: BoundId,
|
|
@@ -181,9 +185,4 @@ export type BoundsAccessor = {
|
|
|
181
185
|
) => number;
|
|
182
186
|
};
|
|
183
187
|
|
|
184
|
-
export type BoundsInterpolationProps = Omit<
|
|
185
|
-
ScreenInterpolationProps,
|
|
186
|
-
"bounds"
|
|
187
|
-
> & {
|
|
188
|
-
navigationMaskEnabled?: boolean;
|
|
189
|
-
};
|
|
188
|
+
export type BoundsInterpolationProps = Omit<ScreenInterpolationProps, "bounds">;
|
|
@@ -11,6 +11,27 @@ export type Layout = {
|
|
|
11
11
|
height: number;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
export type ScreenLayouts = {
|
|
15
|
+
/**
|
|
16
|
+
* The `width` and `height` of the screen container.
|
|
17
|
+
*/
|
|
18
|
+
screen: Layout;
|
|
19
|
+
/**
|
|
20
|
+
* The intrinsic measured content wrapper layout when available.
|
|
21
|
+
*
|
|
22
|
+
* This is currently populated for the measured screen-container path used by
|
|
23
|
+
* auto snap-point sizing. It is undefined until a real measurement exists.
|
|
24
|
+
*/
|
|
25
|
+
content?: Layout;
|
|
26
|
+
/**
|
|
27
|
+
* Whether navigation bounds masking is enabled for this screen.
|
|
28
|
+
*
|
|
29
|
+
* When enabled, navigation zoom helpers target the masked container path
|
|
30
|
+
* instead of the plain content slot.
|
|
31
|
+
*/
|
|
32
|
+
navigationMaskEnabled: boolean;
|
|
33
|
+
};
|
|
34
|
+
|
|
14
35
|
export type ScreenKey = string;
|
|
15
36
|
export type SheetScrollGestureBehavior =
|
|
16
37
|
| "expand-and-collapse"
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { BoundId } from "../types/options";
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type CreateBoundTagParams = {
|
|
4
4
|
id?: BoundId;
|
|
5
5
|
group?: string;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Creates a bound tag by formatting the given id and optional group
|
|
10
|
+
* into a `group:id` string. If no group is provided, returns just the id.
|
|
11
|
+
*/
|
|
8
12
|
export const createBoundTag = ({
|
|
9
13
|
id,
|
|
10
14
|
group,
|
|
11
|
-
}:
|
|
15
|
+
}: CreateBoundTagParams): string | undefined => {
|
|
12
16
|
"worklet";
|
|
13
17
|
|
|
14
18
|
if (id == null || id === "") return undefined;
|
|
@@ -35,7 +35,7 @@ export const createInterpolators = ({
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
const
|
|
38
|
+
const interpolateBoundsFromMeasuredEntry = (
|
|
39
39
|
tag: BoundId,
|
|
40
40
|
property: keyof MeasuredDimensions,
|
|
41
41
|
targetKey: string,
|
|
@@ -50,13 +50,16 @@ export const createInterpolators = ({
|
|
|
50
50
|
const fb = fallback ?? 0;
|
|
51
51
|
const normalizedTag = String(tag);
|
|
52
52
|
|
|
53
|
-
const
|
|
54
|
-
? BoundStore.
|
|
53
|
+
const currentMeasuredEntry = currentKey
|
|
54
|
+
? BoundStore.entry.getMeasured(normalizedTag, currentKey)
|
|
55
55
|
: null;
|
|
56
|
-
const
|
|
56
|
+
const targetMeasuredEntry = BoundStore.entry.getMeasured(
|
|
57
|
+
normalizedTag,
|
|
58
|
+
targetKey,
|
|
59
|
+
);
|
|
57
60
|
|
|
58
|
-
const currentValue =
|
|
59
|
-
const targetValue =
|
|
61
|
+
const currentValue = currentMeasuredEntry?.bounds?.[property] ?? fb;
|
|
62
|
+
const targetValue = targetMeasuredEntry?.bounds?.[property] ?? fb;
|
|
60
63
|
|
|
61
64
|
return interpolate(
|
|
62
65
|
props.progress,
|
|
@@ -99,7 +102,7 @@ export const createInterpolators = ({
|
|
|
99
102
|
"worklet";
|
|
100
103
|
|
|
101
104
|
if (typeof fallbackOrTargetKey === "string") {
|
|
102
|
-
return
|
|
105
|
+
return interpolateBoundsFromMeasuredEntry(
|
|
103
106
|
tag,
|
|
104
107
|
property,
|
|
105
108
|
fallbackOrTargetKey,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoundStore, type
|
|
1
|
+
import { BoundStore, type MeasuredEntry } from "../../../stores/bounds";
|
|
2
2
|
import type { ScreenInterpolationProps } from "../../../types/animation.types";
|
|
3
3
|
import type { BoundsLink } from "../../../types/bounds.types";
|
|
4
4
|
import type { BoundId } from "../types/options";
|
|
@@ -6,23 +6,29 @@ import type { BoundId } from "../types/options";
|
|
|
6
6
|
type GetProps = () => Omit<ScreenInterpolationProps, "bounds">;
|
|
7
7
|
|
|
8
8
|
export type LinkAccessor = {
|
|
9
|
-
|
|
9
|
+
getMeasured: (tag: BoundId, key?: string) => MeasuredEntry | null;
|
|
10
|
+
getSnapshot: (tag: BoundId, key?: string) => MeasuredEntry | null;
|
|
10
11
|
getLink: (tag: BoundId) => BoundsLink | null;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const createLinkAccessor = (getProps: GetProps): LinkAccessor => {
|
|
14
15
|
"worklet";
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
+
const getMeasured = (tag: BoundId, key?: string): MeasuredEntry | null => {
|
|
17
18
|
"worklet";
|
|
18
19
|
if (!key) return null;
|
|
19
|
-
return BoundStore.
|
|
20
|
+
return BoundStore.entry.getMeasured(String(tag), key);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const getSnapshot = (tag: BoundId, key?: string): MeasuredEntry | null => {
|
|
24
|
+
"worklet";
|
|
25
|
+
return getMeasured(tag, key);
|
|
20
26
|
};
|
|
21
27
|
|
|
22
28
|
const getLink = (tag: BoundId): BoundsLink | null => {
|
|
23
29
|
"worklet";
|
|
24
30
|
const props = getProps();
|
|
25
|
-
const link = BoundStore.
|
|
31
|
+
const link = BoundStore.link.getActive(
|
|
26
32
|
String(tag),
|
|
27
33
|
props.current?.route.key,
|
|
28
34
|
);
|
|
@@ -38,6 +44,7 @@ export const createLinkAccessor = (getProps: GetProps): LinkAccessor => {
|
|
|
38
44
|
};
|
|
39
45
|
|
|
40
46
|
return {
|
|
47
|
+
getMeasured,
|
|
41
48
|
getSnapshot,
|
|
42
49
|
getLink,
|
|
43
50
|
};
|
|
@@ -41,7 +41,7 @@ export const buildBoundsOptions = ({
|
|
|
41
41
|
|
|
42
42
|
const boundaryConfig =
|
|
43
43
|
tag && currentScreenKey
|
|
44
|
-
? BoundStore.
|
|
44
|
+
? BoundStore.entry.getConfig(tag, currentScreenKey)
|
|
45
45
|
: null;
|
|
46
46
|
|
|
47
47
|
const resolved = {
|
|
@@ -61,22 +61,19 @@ const syncGroupActiveMember = (group?: string, id?: BoundId) => {
|
|
|
61
61
|
|
|
62
62
|
const normalizedId = String(id);
|
|
63
63
|
|
|
64
|
-
if (BoundStore.
|
|
64
|
+
if (BoundStore.group.getActiveId(group) === normalizedId) return;
|
|
65
65
|
|
|
66
|
-
BoundStore.
|
|
66
|
+
BoundStore.group.setActiveId(group, normalizedId);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export const prepareBoundStyles = <T extends BoundsOptions>({
|
|
70
70
|
props,
|
|
71
71
|
options,
|
|
72
72
|
resolvedPair,
|
|
73
|
-
syncGroupActiveId = true,
|
|
74
73
|
}: ComputeResolvedBoundsStylesParams<T>): BoundsOptionsResult<T> => {
|
|
75
74
|
"worklet";
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
syncGroupActiveMember(options.group, options.id);
|
|
79
|
-
}
|
|
76
|
+
syncGroupActiveMember(options.group, options.id);
|
|
80
77
|
|
|
81
78
|
const resolved = buildBoundsOptions({
|
|
82
79
|
props,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
2
|
import {
|
|
3
|
-
EMPTY_BOUND_HELPER_RESULT_RAW,
|
|
4
3
|
ENTER_RANGE,
|
|
5
4
|
EXIT_RANGE,
|
|
6
5
|
FULLSCREEN_DIMENSIONS,
|
|
7
|
-
HIDDEN_STYLE,
|
|
8
6
|
NO_STYLES,
|
|
9
7
|
} from "../../../../constants";
|
|
10
8
|
import {
|
|
@@ -56,7 +54,7 @@ const resolveStartEnd = (params: {
|
|
|
56
54
|
|
|
57
55
|
const resolvedPair =
|
|
58
56
|
params.resolvedPair ??
|
|
59
|
-
BoundStore.
|
|
57
|
+
BoundStore.link.getPair(String(params.id), {
|
|
60
58
|
currentScreenKey,
|
|
61
59
|
previousScreenKey,
|
|
62
60
|
nextScreenKey,
|
|
@@ -122,9 +120,6 @@ export const computeBoundStyles = (
|
|
|
122
120
|
"worklet";
|
|
123
121
|
|
|
124
122
|
if (!id) {
|
|
125
|
-
if (computeOptions.raw) {
|
|
126
|
-
return EMPTY_BOUND_HELPER_RESULT_RAW;
|
|
127
|
-
}
|
|
128
123
|
return NO_STYLES;
|
|
129
124
|
}
|
|
130
125
|
|
|
@@ -146,10 +141,7 @@ export const computeBoundStyles = (
|
|
|
146
141
|
});
|
|
147
142
|
|
|
148
143
|
if (!start || !end) {
|
|
149
|
-
|
|
150
|
-
return EMPTY_BOUND_HELPER_RESULT_RAW;
|
|
151
|
-
}
|
|
152
|
-
return HIDDEN_STYLE;
|
|
144
|
+
return NO_STYLES;
|
|
153
145
|
}
|
|
154
146
|
|
|
155
147
|
const ranges: readonly [number, number] = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
@@ -26,7 +26,7 @@ export const createBoundsAccessor = (
|
|
|
26
26
|
// Navigation helpers are intentionally opinionated. Only the resolved
|
|
27
27
|
// tag from `id`/`group` is allowed to flow into `navigation.zoom()`;
|
|
28
28
|
// base bounds overrides like `target`, `anchor`, or `scaleMode` must not.
|
|
29
|
-
const
|
|
29
|
+
const tag = createBoundTag({
|
|
30
30
|
id: options.id,
|
|
31
31
|
group: options.group,
|
|
32
32
|
});
|
|
@@ -35,12 +35,12 @@ export const createBoundsAccessor = (
|
|
|
35
35
|
|
|
36
36
|
Object.defineProperty(target, "navigation", {
|
|
37
37
|
value: {
|
|
38
|
-
zoom: (
|
|
38
|
+
zoom: (zoomOptions?: BoundsNavigationZoomOptions) => {
|
|
39
39
|
"worklet";
|
|
40
40
|
return buildZoomStyles({
|
|
41
|
-
props
|
|
42
|
-
|
|
43
|
-
zoomOptions
|
|
41
|
+
props,
|
|
42
|
+
tag,
|
|
43
|
+
zoomOptions,
|
|
44
44
|
});
|
|
45
45
|
},
|
|
46
46
|
},
|
|
@@ -51,13 +51,14 @@ export const createBoundsAccessor = (
|
|
|
51
51
|
return target;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
const { getSnapshot, getLink } = createLinkAccessor(getProps);
|
|
54
|
+
const { getMeasured, getSnapshot, getLink } = createLinkAccessor(getProps);
|
|
55
55
|
const { interpolateStyle, interpolateBounds } = createInterpolators({
|
|
56
56
|
getProps,
|
|
57
57
|
getLink,
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
return Object.assign(computeBounds, {
|
|
61
|
+
getMeasured,
|
|
61
62
|
getSnapshot,
|
|
62
63
|
getLink,
|
|
63
64
|
interpolateStyle,
|