react-native-screen-transitions 3.4.0 → 3.5.0-beta.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/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/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/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/screen-container/hooks/use-content-layout.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/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/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/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
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SystemStore = void 0;
|
|
6
|
+
exports.SystemStore = exports.LifecycleTransitionRequestKind = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _createStore = require("../utils/create-store");
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
9
|
+
let LifecycleTransitionRequestKind = exports.LifecycleTransitionRequestKind = /*#__PURE__*/function (LifecycleTransitionRequestKind) {
|
|
10
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["None"] = 0] = "None";
|
|
11
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["Open"] = 1] = "Open";
|
|
12
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["ManagedClose"] = 2] = "ManagedClose";
|
|
13
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["NativeClose"] = 3] = "NativeClose";
|
|
14
|
+
return LifecycleTransitionRequestKind;
|
|
15
|
+
}({});
|
|
17
16
|
/**
|
|
18
17
|
* Route-keyed internal engine state that should not be treated as public screen
|
|
19
18
|
* animation data. These values support runtime measurement and orchestration,
|
|
@@ -21,11 +20,45 @@ function createSystemBag() {
|
|
|
21
20
|
* animation target progress. This could possibly grow in the future.
|
|
22
21
|
*/
|
|
23
22
|
const SystemStore = exports.SystemStore = (0, _createStore.createStore)({
|
|
24
|
-
createBag:
|
|
23
|
+
createBag: () => ({
|
|
24
|
+
targetProgress: (0, _reactNativeReanimated.makeMutable)(1),
|
|
25
|
+
resolvedAutoSnapPoint: (0, _reactNativeReanimated.makeMutable)(-1),
|
|
26
|
+
measuredContentLayout: (0, _reactNativeReanimated.makeMutable)(null),
|
|
27
|
+
pendingLifecycleRequestKind: (0, _reactNativeReanimated.makeMutable)(LifecycleTransitionRequestKind.None),
|
|
28
|
+
pendingLifecycleRequestTarget: (0, _reactNativeReanimated.makeMutable)(0),
|
|
29
|
+
pendingLifecycleStartBlockCount: (0, _reactNativeReanimated.makeMutable)(0)
|
|
30
|
+
}),
|
|
25
31
|
disposeBag: bag => {
|
|
26
32
|
(0, _reactNativeReanimated.cancelAnimation)(bag.targetProgress);
|
|
27
33
|
(0, _reactNativeReanimated.cancelAnimation)(bag.resolvedAutoSnapPoint);
|
|
28
34
|
(0, _reactNativeReanimated.cancelAnimation)(bag.measuredContentLayout);
|
|
29
|
-
|
|
35
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.pendingLifecycleRequestKind);
|
|
36
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.pendingLifecycleRequestTarget);
|
|
37
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.pendingLifecycleStartBlockCount);
|
|
38
|
+
},
|
|
39
|
+
actions: bag => ({
|
|
40
|
+
requestLifecycleTransition(kind, target) {
|
|
41
|
+
"worklet";
|
|
42
|
+
|
|
43
|
+
bag.pendingLifecycleRequestTarget.set(target);
|
|
44
|
+
bag.pendingLifecycleRequestKind.set(kind);
|
|
45
|
+
},
|
|
46
|
+
clearLifecycleTransitionRequest() {
|
|
47
|
+
"worklet";
|
|
48
|
+
|
|
49
|
+
bag.pendingLifecycleRequestKind.set(LifecycleTransitionRequestKind.None);
|
|
50
|
+
bag.pendingLifecycleRequestTarget.set(0);
|
|
51
|
+
},
|
|
52
|
+
blockLifecycleStart() {
|
|
53
|
+
"worklet";
|
|
54
|
+
|
|
55
|
+
bag.pendingLifecycleStartBlockCount.set(bag.pendingLifecycleStartBlockCount.get() + 1);
|
|
56
|
+
},
|
|
57
|
+
unblockLifecycleStart() {
|
|
58
|
+
"worklet";
|
|
59
|
+
|
|
60
|
+
bag.pendingLifecycleStartBlockCount.set(Math.max(0, bag.pendingLifecycleStartBlockCount.get() - 1));
|
|
61
|
+
}
|
|
62
|
+
})
|
|
30
63
|
});
|
|
31
64
|
//# sourceMappingURL=system.store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","LifecycleTransitionRequestKind","exports","SystemStore","createStore","createBag","targetProgress","makeMutable","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","cancelAnimation","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","get","unblockLifecycleStart","Math","max"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAAoD,IAExCE,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAmD1C;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,WAAW,GAAAD,OAAA,CAAAC,WAAA,GAAG,IAAAC,wBAAW,EAAuC;EAC5EC,SAAS,EAAEA,CAAA,MAAO;IACjBC,cAAc,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IAC9BC,qBAAqB,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC,CAAC;IACtCE,qBAAqB,EAAE,IAAAF,kCAAW,EAAgB,IAAI,CAAC;IACvDG,2BAA2B,EAAE,IAAAH,kCAAW,EACvCN,8BAA8B,CAACU,IAChC,CAAC;IACDC,6BAA6B,EAAE,IAAAL,kCAAW,EAAS,CAAC,CAAC;IACrDM,+BAA+B,EAAE,IAAAN,kCAAW,EAAS,CAAC;EACvD,CAAC,CAAC;EACFO,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACT,cAAc,CAAC;IACnC,IAAAU,sCAAe,EAACD,GAAG,CAACP,qBAAqB,CAAC;IAC1C,IAAAQ,sCAAe,EAACD,GAAG,CAACN,qBAAqB,CAAC;IAC1C,IAAAO,sCAAe,EAACD,GAAG,CAACL,2BAA2B,CAAC;IAChD,IAAAM,sCAAe,EAACD,GAAG,CAACH,6BAA6B,CAAC;IAClD,IAAAI,sCAAe,EAACD,GAAG,CAACF,+BAA+B,CAAC;EACrD,CAAC;EACDI,OAAO,EAAGF,GAAG,KAAM;IAClBG,0BAA0BA,CAACC,IAAI,EAAEC,MAAM,EAAE;MACxC,SAAS;;MACTL,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAACD,MAAM,CAAC;MAC7CL,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACF,IAAI,CAAC;IAC1C,CAAC;IAEDG,+BAA+BA,CAAA,EAAG;MACjC,SAAS;;MACTP,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACpB,8BAA8B,CAACU,IAAI,CAAC;MACxEI,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAEDE,mBAAmBA,CAAA,EAAG;MACrB,SAAS;;MACTR,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCN,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAC7C,CAAC;IACF,CAAC;IAEDC,qBAAqBA,CAAA,EAAG;MACvB,SAAS;;MACTV,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCK,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEZ,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAAC,CAC1D,CAAC;IACF;EACD,CAAC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createBoundTag = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a bound tag by formatting the given id and optional group
|
|
9
|
+
* into a `group:id` string. If no group is provided, returns just the id.
|
|
10
|
+
*/
|
|
7
11
|
const createBoundTag = ({
|
|
8
12
|
id,
|
|
9
13
|
group
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["createBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAGA,CAAC;EAC9BC,EAAE;EACFC;AACqB,CAAC,KAAyB;EAC/C,SAAS;;EAET,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAE7C,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC;AAACE,OAAA,CAAAN,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -24,7 +24,7 @@ const createInterpolators = ({
|
|
|
24
24
|
fallback
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
const
|
|
27
|
+
const interpolateBoundsFromMeasuredEntry = (tag, property, targetKey, fallback) => {
|
|
28
28
|
"worklet";
|
|
29
29
|
|
|
30
30
|
const props = getProps();
|
|
@@ -33,10 +33,10 @@ const createInterpolators = ({
|
|
|
33
33
|
const currentKey = props.current?.route?.key;
|
|
34
34
|
const fb = fallback ?? 0;
|
|
35
35
|
const normalizedTag = String(tag);
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const currentValue =
|
|
39
|
-
const targetValue =
|
|
36
|
+
const currentMeasuredEntry = currentKey ? _bounds.BoundStore.entry.getMeasured(normalizedTag, currentKey) : null;
|
|
37
|
+
const targetMeasuredEntry = _bounds.BoundStore.entry.getMeasured(normalizedTag, targetKey);
|
|
38
|
+
const currentValue = currentMeasuredEntry?.bounds?.[property] ?? fb;
|
|
39
|
+
const targetValue = targetMeasuredEntry?.bounds?.[property] ?? fb;
|
|
40
40
|
return (0, _reactNativeReanimated.interpolate)(props.progress, range, [targetValue, currentValue], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
41
41
|
};
|
|
42
42
|
const interpolateBoundsFromLink = (tag, property, fallback) => {
|
|
@@ -55,7 +55,7 @@ const createInterpolators = ({
|
|
|
55
55
|
"worklet";
|
|
56
56
|
|
|
57
57
|
if (typeof fallbackOrTargetKey === "string") {
|
|
58
|
-
return
|
|
58
|
+
return interpolateBoundsFromMeasuredEntry(tag, property, fallbackOrTargetKey, fallback);
|
|
59
59
|
}
|
|
60
60
|
return interpolateBoundsFromLink(tag, property, fallbackOrTargetKey);
|
|
61
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_interpolateLinkStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","interpolateLinkStyle","progress","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_interpolateLinkStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","interpolateLinkStyle","progress","interpolateBoundsFromMeasuredEntry","targetKey","range","ENTER_RANGE","EXIT_RANGE","currentKey","current","route","key","fb","normalizedTag","String","currentMeasuredEntry","BoundStore","entry","getMeasured","targetMeasuredEntry","currentValue","bounds","targetValue","interpolate","Extrapolation","CLAMP","interpolateBoundsFromLink","sourceValue","source","destinationValue","destination","interpolateBounds","fallbackOrTargetKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-interpolators.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,qBAAA,GAAAH,OAA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AgB;IAChBsC;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAA3C,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -8,17 +8,22 @@ var _bounds = require("../../../stores/bounds");
|
|
|
8
8
|
const createLinkAccessor = getProps => {
|
|
9
9
|
"worklet";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const getMeasured = (tag, key) => {
|
|
12
12
|
"worklet";
|
|
13
13
|
|
|
14
14
|
if (!key) return null;
|
|
15
|
-
return _bounds.BoundStore.
|
|
15
|
+
return _bounds.BoundStore.entry.getMeasured(String(tag), key);
|
|
16
|
+
};
|
|
17
|
+
const getSnapshot = (tag, key) => {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
return getMeasured(tag, key);
|
|
16
21
|
};
|
|
17
22
|
const getLink = tag => {
|
|
18
23
|
"worklet";
|
|
19
24
|
|
|
20
25
|
const props = getProps();
|
|
21
|
-
const link = _bounds.BoundStore.
|
|
26
|
+
const link = _bounds.BoundStore.link.getActive(String(tag), props.current?.route.key);
|
|
22
27
|
if (!link) return null;
|
|
23
28
|
return {
|
|
24
29
|
source: link.source ? {
|
|
@@ -32,6 +37,7 @@ const createLinkAccessor = getProps => {
|
|
|
32
37
|
};
|
|
33
38
|
};
|
|
34
39
|
return {
|
|
40
|
+
getMeasured,
|
|
35
41
|
getSnapshot,
|
|
36
42
|
getLink
|
|
37
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bounds","require","createLinkAccessor","getProps","
|
|
1
|
+
{"version":3,"names":["_bounds","require","createLinkAccessor","getProps","getMeasured","tag","key","BoundStore","entry","String","getSnapshot","getLink","props","link","getActive","current","route","source","bounds","styles","destination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAaO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY,EAAEC,GAAY,KAA2B;IACzE,SAAS;;IACT,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;IACrB,OAAOC,kBAAU,CAACC,KAAK,CAACJ,WAAW,CAACK,MAAM,CAACJ,GAAG,CAAC,EAAEC,GAAG,CAAC;EACtD,CAAC;EAED,MAAMI,WAAW,GAAGA,CAACL,GAAY,EAAEC,GAAY,KAA2B;IACzE,SAAS;;IACT,OAAOF,WAAW,CAACC,GAAG,EAAEC,GAAG,CAAC;EAC7B,CAAC;EAED,MAAMK,OAAO,GAAIN,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMO,KAAK,GAAGT,QAAQ,CAAC,CAAC;IACxB,MAAMU,IAAI,GAAGN,kBAAU,CAACM,IAAI,CAACC,SAAS,CACrCL,MAAM,CAACJ,GAAG,CAAC,EACXO,KAAK,CAACG,OAAO,EAAEC,KAAK,CAACV,GACtB,CAAC;IACD,IAAI,CAACO,IAAI,EAAE,OAAO,IAAI;IACtB,OAAO;MACNI,MAAM,EAAEJ,IAAI,CAACI,MAAM,GAChB;QAAEC,MAAM,EAAEL,IAAI,CAACI,MAAM,CAACC,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACI,MAAM,CAACE;MAAO,CAAC,GAC1D,IAAI;MACPC,WAAW,EAAEP,IAAI,CAACO,WAAW,GAC1B;QAAEF,MAAM,EAAEL,IAAI,CAACO,WAAW,CAACF,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACO,WAAW,CAACD;MAAO,CAAC,GACpE;IACJ,CAAC;EACF,CAAC;EAED,OAAO;IACNf,WAAW;IACXM,WAAW;IACXC;EACD,CAAC;AACF,CAAC;AAACU,OAAA,CAAAnB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ const buildBoundsOptions = ({
|
|
|
21
21
|
group
|
|
22
22
|
});
|
|
23
23
|
const currentScreenKey = props.current?.route.key;
|
|
24
|
-
const boundaryConfig = tag && currentScreenKey ? _bounds.BoundStore.
|
|
24
|
+
const boundaryConfig = tag && currentScreenKey ? _bounds.BoundStore.entry.getConfig(tag, currentScreenKey) : null;
|
|
25
25
|
const resolved = {
|
|
26
26
|
..._constants.DEFAULT_BOUNDS_OPTIONS,
|
|
27
27
|
...(boundaryConfig ?? {}),
|
|
@@ -37,20 +37,17 @@ const syncGroupActiveMember = (group, id) => {
|
|
|
37
37
|
|
|
38
38
|
if (!group || id == null || id === "") return;
|
|
39
39
|
const normalizedId = String(id);
|
|
40
|
-
if (_bounds.BoundStore.
|
|
41
|
-
_bounds.BoundStore.
|
|
40
|
+
if (_bounds.BoundStore.group.getActiveId(group) === normalizedId) return;
|
|
41
|
+
_bounds.BoundStore.group.setActiveId(group, normalizedId);
|
|
42
42
|
};
|
|
43
43
|
const prepareBoundStyles = ({
|
|
44
44
|
props,
|
|
45
45
|
options,
|
|
46
|
-
resolvedPair
|
|
47
|
-
syncGroupActiveId = true
|
|
46
|
+
resolvedPair
|
|
48
47
|
}) => {
|
|
49
48
|
"worklet";
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
syncGroupActiveMember(options.group, options.id);
|
|
53
|
-
}
|
|
50
|
+
syncGroupActiveMember(options.group, options.id);
|
|
54
51
|
const resolved = buildBoundsOptions({
|
|
55
52
|
props,
|
|
56
53
|
id: options.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bounds","require","_constants","_createBoundTag","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","BoundStore","
|
|
1
|
+
{"version":3,"names":["_bounds","require","_constants","_createBoundTag","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","BoundStore","entry","getConfig","resolved","DEFAULT_BOUNDS_OPTIONS","exports","syncGroupActiveMember","normalizedId","String","getActiveId","setActiveId","prepareBoundStyles","options","resolvedPair","computeBoundStyles","previous","next","progress","dimensions","layouts","screen"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAkBO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMI,gBAAgB,GAAGN,KAAK,CAACO,OAAO,EAAEC,KAAK,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBN,GAAG,IAAIE,gBAAgB,GACpBK,kBAAU,CAACC,KAAK,CAACC,SAAS,CAACT,GAAG,EAAEE,gBAAgB,CAAC,GACjD,IAAI;EAER,MAAMQ,QAAQ,GAAG;IAChB,GAAGC,iCAAsB;IACzB,IAAIL,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIP,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEG,GAAG,IAAI,EAAE;IACbF;EACD,CAAC;EAED,OAAOY,QAAQ;AAChB,CAAC;AAACE,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA;AAEF,MAAMkB,qBAAqB,GAAGA,CAACf,KAAc,EAAED,EAAY,KAAK;EAC/D,SAAS;;EACT,IAAI,CAACC,KAAK,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE;EAEvC,MAAMiB,YAAY,GAAGC,MAAM,CAAClB,EAAE,CAAC;EAE/B,IAAIU,kBAAU,CAACT,KAAK,CAACkB,WAAW,CAAClB,KAAK,CAAC,KAAKgB,YAAY,EAAE;EAE1DP,kBAAU,CAACT,KAAK,CAACmB,WAAW,CAACnB,KAAK,EAAEgB,YAAY,CAAC;AAClD,CAAC;AAEM,MAAMI,kBAAkB,GAAGA,CAA0B;EAC3DtB,KAAK;EACLuB,OAAO;EACPC;AACqC,CAAC,KAA6B;EACnE,SAAS;;EAETP,qBAAqB,CAACM,OAAO,CAACrB,KAAK,EAAEqB,OAAO,CAACtB,EAAE,CAAC;EAEhD,MAAMa,QAAQ,GAAGf,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEsB,OAAO,CAACtB,EAAE;IACdC,KAAK,EAAEqB,OAAO,CAACrB,KAAK;IACpBC,SAAS,EAAEoB;EACZ,CAAC,CAAC;EAEF,OAAO,IAAAE,2BAAkB,EACxB;IACCxB,EAAE,EAAEa,QAAQ,CAACb,EAAE;IACfyB,QAAQ,EAAE1B,KAAK,CAAC0B,QAAQ;IACxBnB,OAAO,EAAEP,KAAK,CAACO,OAAO;IACtBoB,IAAI,EAAE3B,KAAK,CAAC2B,IAAI;IAChBC,QAAQ,EAAE5B,KAAK,CAAC4B,QAAQ;IACxBC,UAAU,EAAE7B,KAAK,CAAC8B,OAAO,CAACC;EAC3B,CAAC,EACDjB,QAAQ,EACRU,YACD,CAAC;AACF,CAAC;AAACR,OAAA,CAAAM,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -19,7 +19,7 @@ const resolveStartEnd = params => {
|
|
|
19
19
|
const currentScreenKey = params.current?.route.key;
|
|
20
20
|
const previousScreenKey = params.previous?.route.key;
|
|
21
21
|
const nextScreenKey = params.next?.route.key;
|
|
22
|
-
const resolvedPair = params.resolvedPair ?? _bounds.BoundStore.
|
|
22
|
+
const resolvedPair = params.resolvedPair ?? _bounds.BoundStore.link.getPair(String(params.id), {
|
|
23
23
|
currentScreenKey,
|
|
24
24
|
previousScreenKey,
|
|
25
25
|
nextScreenKey,
|
|
@@ -83,9 +83,6 @@ const computeBoundStyles = ({
|
|
|
83
83
|
"worklet";
|
|
84
84
|
|
|
85
85
|
if (!id) {
|
|
86
|
-
if (computeOptions.raw) {
|
|
87
|
-
return _constants.EMPTY_BOUND_HELPER_RESULT_RAW;
|
|
88
|
-
}
|
|
89
86
|
return _constants.NO_STYLES;
|
|
90
87
|
}
|
|
91
88
|
const {
|
|
@@ -105,10 +102,7 @@ const computeBoundStyles = ({
|
|
|
105
102
|
resolvedPair
|
|
106
103
|
});
|
|
107
104
|
if (!start || !end) {
|
|
108
|
-
|
|
109
|
-
return _constants.EMPTY_BOUND_HELPER_RESULT_RAW;
|
|
110
|
-
}
|
|
111
|
-
return _constants.HIDDEN_STYLE;
|
|
105
|
+
return _constants.NO_STYLES;
|
|
112
106
|
}
|
|
113
107
|
const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
114
108
|
if (computeOptions.method === "content") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_bounds","_geometry","_composers","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","
|
|
1
|
+
{"version":3,"names":["_constants","require","_bounds","_geometry","_composers","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","link","getPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","NO_STYLES","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;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,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,8BAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,8BAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,mCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,mCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -26,7 +26,7 @@ const createBoundsAccessor = getProps => {
|
|
|
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 = (0, _createBoundTag.createBoundTag)({
|
|
30
30
|
id: options.id,
|
|
31
31
|
group: options.group
|
|
32
32
|
});
|
|
@@ -35,13 +35,13 @@ const createBoundsAccessor = getProps => {
|
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(target, "navigation", {
|
|
37
37
|
value: {
|
|
38
|
-
zoom:
|
|
38
|
+
zoom: zoomOptions => {
|
|
39
39
|
"worklet";
|
|
40
40
|
|
|
41
41
|
return (0, _build.buildZoomStyles)({
|
|
42
|
-
props
|
|
43
|
-
|
|
44
|
-
zoomOptions
|
|
42
|
+
props,
|
|
43
|
+
tag,
|
|
44
|
+
zoomOptions
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
},
|
|
@@ -51,6 +51,7 @@ const createBoundsAccessor = getProps => {
|
|
|
51
51
|
return target;
|
|
52
52
|
};
|
|
53
53
|
const {
|
|
54
|
+
getMeasured,
|
|
54
55
|
getSnapshot,
|
|
55
56
|
getLink
|
|
56
57
|
} = (0, _createLinkAccessor.createLinkAccessor)(getProps);
|
|
@@ -62,6 +63,7 @@ const createBoundsAccessor = getProps => {
|
|
|
62
63
|
getLink
|
|
63
64
|
});
|
|
64
65
|
return Object.assign(computeBounds, {
|
|
66
|
+
getMeasured,
|
|
65
67
|
getSnapshot,
|
|
66
68
|
getLink,
|
|
67
69
|
interpolateStyle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","_build","createBoundsAccessor","getProps","computeBounds","params","props","options","id","computed","prepareBoundStyles","
|
|
1
|
+
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","_build","createBoundsAccessor","getProps","computeBounds","params","props","options","id","computed","prepareBoundStyles","tag","createBoundTag","group","target","Object","isExtensible","defineProperty","value","zoom","zoomOptions","buildZoomStyles","enumerable","configurable","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","assign","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/bounds/index.ts"],"mappings":";;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAEO,MAAMK,oBAAoB,GAChCC,QAAwC,IACpB;EACpB,SAAS;;EAET,MAAMC,aAAa,GAAIC,MAAsB,IAAK;IACjD,SAAS;;IACT,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;IACxB,MAAMI,OAAO,GAAIF,MAAM,IAAI;MAAEG,EAAE,EAAE;IAAG,CAAmB;IACvD,MAAMC,QAAQ,GAAG,IAAAC,sCAAkB,EAAC;MACnCJ,KAAK;MACLC;IACD,CAAC,CAAC;IACF;IACA;IACA;IACA,MAAMI,GAAG,GAAG,IAAAC,8BAAc,EAAC;MAC1BJ,EAAE,EAAED,OAAO,CAACC,EAAE;MACdK,KAAK,EAAEN,OAAO,CAACM;IAChB,CAAC,CAAC;IAEF,MAAMC,MAAM,GAAGC,MAAM,CAACC,YAAY,CAACP,QAAQ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