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
package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","SystemStore","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","slot","key","route","meta","options","gestureEnabled","snapPoints","shouldUseNeutralNextGestures","length","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","progress","getValue","willAnimate","closing","entering","animating","settled","logicallySettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","hasAutoSnapPoint","includes","gesture","peekBag","getCachedBag","getBag","unwrapped"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,YAAY,QAEN,kCAAkC;AACzC,SAASC,WAAW,QAAQ,iCAAiC;AAO7D,SAASC,YAAY,EAAEC,YAAY,QAAQ,WAAW;AAqBtD,OAAO,MAAMC,uBAAuB,GAAGA,CACtCC,UAAsC,EACtCC,IAAqC,KACT;EAC5B,MAAMC,GAAG,GAAGF,UAAU,EAAEG,KAAK,EAAED,GAAG;EAClC,MAAME,IAAI,GAAGJ,UAAU,EAAEK,OAAO,EAAED,IAAI;EACtC,MAAMD,KAAK,GAAGH,UAAU,EAAEG,KAAK;EAC/B,MAAMG,cAAc,GAAGN,UAAU,EAAEK,OAAO,EAAEC,cAAc;EAC1D,MAAMC,
|
|
1
|
+
{"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","SystemStore","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","slot","key","route","meta","options","gestureEnabled","navigationMaskEnabled","snapPoints","shouldUseNeutralNextGestures","length","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","progress","getValue","willAnimate","closing","entering","animating","settled","logicallySettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","hasAutoSnapPoint","includes","gesture","peekBag","getCachedBag","getBag","unwrapped"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,2BAA2B,QAAQ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@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { useDerivedValue } from "react-native-reanimated";
|
|
3
4
|
import { useScreenAnimationContext } from "./animation.provider";
|
|
4
5
|
import { resolveScreenAnimationTarget } from "./helpers/resolve-screen-animation-target";
|
|
5
6
|
export function useScreenAnimation(target) {
|
|
6
7
|
const {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
screenInterpolatorProps,
|
|
9
|
+
boundsAccessor,
|
|
10
|
+
ancestorScreenAnimationSources
|
|
9
11
|
} = useScreenAnimationContext();
|
|
10
|
-
|
|
12
|
+
const source = resolveScreenAnimationTarget({
|
|
11
13
|
target,
|
|
12
|
-
self:
|
|
13
|
-
|
|
14
|
+
self: {
|
|
15
|
+
screenInterpolatorProps,
|
|
16
|
+
boundsAccessor
|
|
17
|
+
},
|
|
18
|
+
ancestors: ancestorScreenAnimationSources
|
|
19
|
+
});
|
|
20
|
+
return useDerivedValue(() => {
|
|
21
|
+
"worklet";
|
|
22
|
+
|
|
23
|
+
const props = source.screenInterpolatorProps.get();
|
|
24
|
+
return {
|
|
25
|
+
...props,
|
|
26
|
+
bounds: source.boundsAccessor
|
|
27
|
+
};
|
|
14
28
|
});
|
|
15
29
|
}
|
|
16
30
|
//# sourceMappingURL=use-screen-animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useScreenAnimationContext","resolveScreenAnimationTarget","useScreenAnimation","target","
|
|
1
|
+
{"version":3,"names":["useDerivedValue","useScreenAnimationContext","resolveScreenAnimationTarget","useScreenAnimation","target","screenInterpolatorProps","boundsAccessor","ancestorScreenAnimationSources","source","self","ancestors","props","get","bounds"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;AAAA,SAA4BA,eAAe,QAAQ,yBAAyB;AAE5E,SAASC,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,4BAA4B,QAAQ,2CAA2C;AAKxF,OAAO,SAASC,kBAAkBA,CACjCC,MAA8B,EACW;EACzC,MAAM;IACLC,uBAAuB;IACvBC,cAAc;IACdC;EACD,CAAC,GAAGN,yBAAyB,CAAC,CAAC;EAE/B,MAAMO,MAAM,GAAGN,4BAA4B,CAAwB;IAClEE,MAAM;IACNK,IAAI,EAAE;MACLJ,uBAAuB;MACvBC;IACD,CAAC;IACDI,SAAS,EAAEH;EACZ,CAAC,CAAC;EAEF,OAAOP,eAAe,CAA2B,MAAM;IACtD,SAAS;;IAET,MAAMW,KAAK,GAAGH,MAAM,CAACH,uBAAuB,CAACO,GAAG,CAAC,CAAC;IAElD,OAAO;MACN,GAAGD,KAAK;MACRE,MAAM,EAAEL,MAAM,CAACF;IAChB,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
|
package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["deriveDescriptorDerivations","previous","current","next","ancestorKeys","ancestorNavigatorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","navigationState","navigation","getState","navigatorKey","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","currentRoute","find","hasBranchState","nestedState","state","undefined","branchNavigatorKey","isBranchScreen"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["deriveDescriptorDerivations","previous","current","next","ancestorKeys","ancestorNavigatorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","navigationState","navigation","getState","navigatorKey","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","currentRoute","find","hasBranchState","nestedState","state","undefined","branchNavigatorKey","parentScreenKey","isBranchScreen"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;AAyBA,OAAO,SAASA,2BAA2BA,C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C,CAAC,CAAC;IAChCY,UAAU;IACVE,eAAe;IACfd,YAAY;IACZU,YAAY;IACZT,qBAAqB;IACrBc,yBAAyB;IACzBW,cAAc,EAAEN,cAAc;IAC9BI;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { StyleSheet, View } from "react-native";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const MaybeFloatingContainer = /*#__PURE__*/memo(function MaybeFloatingContainer({
|
|
7
|
+
children,
|
|
8
|
+
isFloatingOverlay
|
|
9
|
+
}) {
|
|
10
|
+
if (!isFloatingOverlay) {
|
|
11
|
+
return children;
|
|
12
|
+
}
|
|
13
|
+
return /*#__PURE__*/_jsx(View, {
|
|
14
|
+
style: styles.float,
|
|
15
|
+
pointerEvents: "box-none",
|
|
16
|
+
children: children
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
const styles = StyleSheet.create({
|
|
20
|
+
float: {
|
|
21
|
+
...StyleSheet.absoluteFill,
|
|
22
|
+
zIndex: 999
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=maybe-floating-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","StyleSheet","View","jsx","_jsx","MaybeFloatingContainer","children","isFloatingOverlay","style","styles","float","pointerEvents","create","absoluteFill","zIndex"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/components/maybe-floating-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhD,OAAO,MAAMC,sBAAsB,gBAAGL,IAAI,CAAC,SAASK,sBAAsBA,CAAC;EAC1EC,QAAQ;EACRC;AAC4B,CAAC,EAAE;EAC/B,IAAI,CAACA,iBAAiB,EAAE;IACvB,OAAOD,QAAQ;EAChB;EAEA,oBACCF,IAAA,CAACF,IAAI;IAACM,KAAK,EAAEC,MAAM,CAACC,KAAM;IAACC,aAAa,EAAC,UAAU;IAAAL,QAAA,EACjDA;EAAQ,CACJ,CAAC;AAET,CAAC,CAAC;AAEF,MAAMG,MAAM,GAAGR,UAAU,CAACW,MAAM,CAAC;EAChCF,KAAK,EAAE;IACN,GAAGT,UAAU,CAACY,YAAY;IAC1BC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../constants";
|
|
4
|
+
export const IDENTITY_TRANSFORM = [{
|
|
5
|
+
translateX: 0
|
|
6
|
+
}, {
|
|
7
|
+
translateY: 0
|
|
8
|
+
}, {
|
|
9
|
+
scaleX: 1
|
|
10
|
+
}, {
|
|
11
|
+
scaleY: 1
|
|
12
|
+
}];
|
|
13
|
+
export const ALWAYS_RESET_STYLE_VALUES = {
|
|
14
|
+
opacity: 1,
|
|
15
|
+
zIndex: 0,
|
|
16
|
+
elevation: 0
|
|
17
|
+
};
|
|
18
|
+
export const LOCAL_ONLY_STYLE_SLOT_IDS = {
|
|
19
|
+
content: true,
|
|
20
|
+
backdrop: true,
|
|
21
|
+
surface: true,
|
|
22
|
+
[NAVIGATION_MASK_ELEMENT_STYLE_ID]: true,
|
|
23
|
+
[NAVIGATION_MASK_CONTAINER_STYLE_ID]: true
|
|
24
|
+
};
|
|
25
|
+
export const shouldSlotInherit = slotId => {
|
|
26
|
+
"worklet";
|
|
27
|
+
|
|
28
|
+
// biome-ignore lint/suspicious/noPrototypeBuiltins: <proj issue>
|
|
29
|
+
return !Object.prototype.hasOwnProperty.call(LOCAL_ONLY_STYLE_SLOT_IDS, slotId);
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","IDENTITY_TRANSFORM","translateX","translateY","scaleX","scaleY","ALWAYS_RESET_STYLE_VALUES","opacity","zIndex","elevation","LOCAL_ONLY_STYLE_SLOT_IDS","content","backdrop","surface","shouldSlotInherit","slotId","Object","prototype","hasOwnProperty","call"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/constants.ts"],"mappings":";;AAAA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,oBAAoB;AAE3B,OAAO,MAAMC,kBAAkB,GAAG,CACjC;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,MAAM,EAAE;AAAE,CAAC,EACb;EAAEC,MAAM,EAAE;AAAE,CAAC,CACJ;AAEV,OAAO,MAAMC,yBAAyB,GAAG;EACxCC,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC,SAAS,EAAE;AACZ,CAAU;AAEV,OAAO,MAAMC,yBAAyB,GAAG;EACxCC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,OAAO,EAAE,IAAI;EACb,CAACb,gCAAgC,GAAG,IAAI;EACxC,CAACD,kCAAkC,GAAG;AACvC,CAAU;AAEV,OAAO,MAAMe,iBAAiB,GAAIC,MAAc,IAAK;EACpD,SAAS;;EACT;EACA,OAAO,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAC3CT,yBAAyB,EACzBK,MACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const isExplicitTransitionSlot = value => {
|
|
4
|
+
"worklet";
|
|
5
|
+
|
|
6
|
+
return typeof value === "object" && value != null && ("style" in value || "props" in value);
|
|
7
|
+
};
|
|
8
|
+
const isAlreadyNormalizedStyleMap = raw => {
|
|
9
|
+
"worklet";
|
|
10
|
+
|
|
11
|
+
for (const key in raw) {
|
|
12
|
+
const value = raw[key];
|
|
13
|
+
if (value === undefined) {
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
if (!isExplicitTransitionSlot(value)) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
};
|
|
22
|
+
export function normalizeSlots(raw) {
|
|
23
|
+
"worklet";
|
|
24
|
+
|
|
25
|
+
if (isAlreadyNormalizedStyleMap(raw)) {
|
|
26
|
+
return raw;
|
|
27
|
+
}
|
|
28
|
+
const normalized = {};
|
|
29
|
+
for (const key in raw) {
|
|
30
|
+
const value = raw[key];
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
normalized[key] = undefined;
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
if (isExplicitTransitionSlot(value)) {
|
|
36
|
+
normalized[key] = value;
|
|
37
|
+
} else {
|
|
38
|
+
normalized[key] = {
|
|
39
|
+
style: value
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return normalized;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=normalize-slots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isExplicitTransitionSlot","value","isAlreadyNormalizedStyleMap","raw","key","undefined","normalizeSlots","normalized","style"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;AAKA,MAAMA,wBAAwB,GAAIC,KAAc,IAAK;EACpD,SAAS;;EACT,OACC,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,IAAI,IAAI,KACZ,OAAO,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,CAAC;AAExC,CAAC;AAED,MAAMC,2BAA2B,GAAIC,GAAwB,IAAK;EACjE,SAAS;;EAET,KAAK,MAAMC,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxB;IACD;IAEA,IAAI,CAACL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACrC,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,OAAO,SAASK,cAAcA,CAC7BH,GAAwB,EACgB;EACxC,SAAS;;EAET,IAAID,2BAA2B,CAACC,GAAG,CAAC,EAAE;IACrC,OAAOA,GAAG;EACX;EAEA,MAAMI,UAAqE,GAC1E,CAAC,CAAC;EAEH,KAAK,MAAMH,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxBE,UAAU,CAACH,GAAG,CAAC,GAAGC,SAAS;MAC3B;IACD;IAEA,IAAIL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACpCM,UAAU,CAACH,GAAG,CAAC,GAAGH,KAAsC;IACzD,CAAC,MAAM;MACNM,UAAU,CAACH,GAAG,CAAC,GAAG;QAAEI,KAAK,EAAEP;MAAM,CAAC;IACnC;EACD;EAEA,OAAOM,UAAU;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ALWAYS_RESET_STYLE_VALUES, IDENTITY_TRANSFORM, shouldSlotInherit } from "../constants";
|
|
4
|
+
const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
|
|
5
|
+
hasTransform: false,
|
|
6
|
+
hasOpacity: false,
|
|
7
|
+
hasZIndex: false,
|
|
8
|
+
hasElevation: false
|
|
9
|
+
});
|
|
10
|
+
export const resolveSlotStyles = ({
|
|
11
|
+
currentStylesMap,
|
|
12
|
+
ancestorStylesMap,
|
|
13
|
+
previousStyleStatesBySlot
|
|
14
|
+
}) => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
const resolvedStylesMap = {};
|
|
18
|
+
const nextPreviousStyleStatesBySlot = {};
|
|
19
|
+
const appendResolvedSlot = slotId => {
|
|
20
|
+
"worklet";
|
|
21
|
+
|
|
22
|
+
const slot = currentStylesMap[slotId] ?? (shouldSlotInherit(slotId) ? ancestorStylesMap[slotId] : undefined);
|
|
23
|
+
const baseStyle = slot?.style;
|
|
24
|
+
let hasAnyStyleKeys = false;
|
|
25
|
+
let hasTransform = false;
|
|
26
|
+
let hasOpacity = false;
|
|
27
|
+
let hasZIndex = false;
|
|
28
|
+
let hasElevation = false;
|
|
29
|
+
if (baseStyle) {
|
|
30
|
+
for (const key in baseStyle) {
|
|
31
|
+
hasAnyStyleKeys = true;
|
|
32
|
+
if (key === "transform") {
|
|
33
|
+
hasTransform = true;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if (key === "opacity") {
|
|
37
|
+
hasOpacity = true;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (key === "zIndex") {
|
|
41
|
+
hasZIndex = true;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (key === "elevation") {
|
|
45
|
+
hasElevation = true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const previousState = previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
|
|
50
|
+
const shouldResetTransform = previousState.hasTransform && !hasTransform;
|
|
51
|
+
const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
|
|
52
|
+
const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
|
|
53
|
+
const shouldResetElevation = previousState.hasElevation && !hasElevation;
|
|
54
|
+
const hasResetPatch = shouldResetTransform || shouldResetOpacity || shouldResetZIndex || shouldResetElevation;
|
|
55
|
+
const hasProps = slot?.props !== undefined;
|
|
56
|
+
if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
|
|
57
|
+
nextPreviousStyleStatesBySlot[slotId] = {
|
|
58
|
+
hasTransform,
|
|
59
|
+
hasOpacity,
|
|
60
|
+
hasZIndex,
|
|
61
|
+
hasElevation
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (!slot && !hasResetPatch) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!hasResetPatch && slot) {
|
|
68
|
+
if (hasAnyStyleKeys || hasProps) {
|
|
69
|
+
resolvedStylesMap[slotId] = slot;
|
|
70
|
+
}
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const resolvedSlot = {};
|
|
77
|
+
if (hasAnyStyleKeys || hasResetPatch) {
|
|
78
|
+
const resolvedStyle = {};
|
|
79
|
+
if (shouldResetTransform) {
|
|
80
|
+
resolvedStyle.transform = IDENTITY_TRANSFORM;
|
|
81
|
+
}
|
|
82
|
+
if (shouldResetOpacity) {
|
|
83
|
+
resolvedStyle.opacity = ALWAYS_RESET_STYLE_VALUES.opacity;
|
|
84
|
+
}
|
|
85
|
+
if (shouldResetZIndex) {
|
|
86
|
+
resolvedStyle.zIndex = ALWAYS_RESET_STYLE_VALUES.zIndex;
|
|
87
|
+
}
|
|
88
|
+
if (shouldResetElevation) {
|
|
89
|
+
resolvedStyle.elevation = ALWAYS_RESET_STYLE_VALUES.elevation;
|
|
90
|
+
}
|
|
91
|
+
if (baseStyle) {
|
|
92
|
+
for (const key in baseStyle) {
|
|
93
|
+
resolvedStyle[key] = baseStyle[key];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
resolvedSlot.style = resolvedStyle;
|
|
97
|
+
}
|
|
98
|
+
if (hasProps) {
|
|
99
|
+
resolvedSlot.props = slot?.props;
|
|
100
|
+
}
|
|
101
|
+
if (!resolvedSlot.style && !resolvedSlot.props) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
resolvedStylesMap[slotId] = resolvedSlot;
|
|
105
|
+
};
|
|
106
|
+
for (const slotId in currentStylesMap) {
|
|
107
|
+
appendResolvedSlot(slotId);
|
|
108
|
+
}
|
|
109
|
+
for (const slotId in ancestorStylesMap) {
|
|
110
|
+
if (!shouldSlotInherit(slotId)) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
if (currentStylesMap[slotId] !== undefined) {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
appendResolvedSlot(slotId);
|
|
117
|
+
}
|
|
118
|
+
for (const slotId in previousStyleStatesBySlot) {
|
|
119
|
+
if (currentStylesMap[slotId] !== undefined) {
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
if (shouldSlotInherit(slotId) && ancestorStylesMap[slotId] !== undefined) {
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
appendResolvedSlot(slotId);
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
resolvedStylesMap,
|
|
129
|
+
nextPreviousStyleStatesBySlot
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=resolve-slot-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ALWAYS_RESET_STYLE_VALUES","IDENTITY_TRANSFORM","shouldSlotInherit","EMPTY_RESETTABLE_STYLE_STATE","Object","freeze","hasTransform","hasOpacity","hasZIndex","hasElevation","resolveSlotStyles","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","appendResolvedSlot","slotId","slot","undefined","baseStyle","style","hasAnyStyleKeys","key","previousState","shouldResetTransform","shouldResetOpacity","shouldResetZIndex","shouldResetElevation","hasResetPatch","hasProps","props","resolvedSlot","resolvedStyle","transform","opacity","zIndex","elevation"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles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","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
4
|
+
import { NO_STYLES } from "../../../../constants";
|
|
5
|
+
import { SystemStore } from "../../../../stores/system.store";
|
|
6
|
+
import { logger } from "../../../../utils/logger";
|
|
7
|
+
import { useScreenAnimationContext } from "../../animation";
|
|
8
|
+
import { useDescriptorDerivations } from "../../descriptors";
|
|
9
|
+
import { normalizeSlots } from "../helpers/normalize-slots";
|
|
10
|
+
export const useInterpolatedStylesMap = () => {
|
|
11
|
+
const {
|
|
12
|
+
currentScreenKey
|
|
13
|
+
} = useDescriptorDerivations();
|
|
14
|
+
const {
|
|
15
|
+
screenInterpolatorProps,
|
|
16
|
+
nextInterpolator,
|
|
17
|
+
currentInterpolator,
|
|
18
|
+
boundsAccessor
|
|
19
|
+
} = useScreenAnimationContext();
|
|
20
|
+
const pendingLifecycleStartBlockCount = SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
21
|
+
const isGesturingDuringCloseAnimation = useSharedValue(false);
|
|
22
|
+
return useDerivedValue(() => {
|
|
23
|
+
"worklet";
|
|
24
|
+
|
|
25
|
+
if (pendingLifecycleStartBlockCount.get() > 0) {
|
|
26
|
+
return NO_STYLES;
|
|
27
|
+
}
|
|
28
|
+
const props = screenInterpolatorProps.get();
|
|
29
|
+
const {
|
|
30
|
+
current,
|
|
31
|
+
next,
|
|
32
|
+
progress
|
|
33
|
+
} = props;
|
|
34
|
+
const isDragging = current.gesture.dragging;
|
|
35
|
+
const isNextClosing = !!next?.closing;
|
|
36
|
+
if (isDragging && isNextClosing) {
|
|
37
|
+
isGesturingDuringCloseAnimation.set(true);
|
|
38
|
+
}
|
|
39
|
+
if (!isDragging && !isNextClosing) {
|
|
40
|
+
isGesturingDuringCloseAnimation.set(false);
|
|
41
|
+
}
|
|
42
|
+
const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.get();
|
|
43
|
+
const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
|
|
44
|
+
if (!interpolator) {
|
|
45
|
+
return NO_STYLES;
|
|
46
|
+
}
|
|
47
|
+
let effectiveProgress = progress;
|
|
48
|
+
let effectiveNext = next;
|
|
49
|
+
if (isInGestureMode) {
|
|
50
|
+
effectiveProgress = current.progress;
|
|
51
|
+
effectiveNext = undefined;
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const raw = interpolator({
|
|
55
|
+
...props,
|
|
56
|
+
progress: effectiveProgress,
|
|
57
|
+
next: effectiveNext,
|
|
58
|
+
bounds: boundsAccessor
|
|
59
|
+
});
|
|
60
|
+
const stylesMap = typeof raw !== "object" || raw == null ? NO_STYLES : normalizeSlots(raw);
|
|
61
|
+
return stylesMap;
|
|
62
|
+
} catch (_) {
|
|
63
|
+
if (__DEV__) {
|
|
64
|
+
logger.warn("screenStyleInterpolator must be a worklet");
|
|
65
|
+
}
|
|
66
|
+
return NO_STYLES;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=use-interpolated-style-maps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","SystemStore","logger","useScreenAnimationContext","useDescriptorDerivations","normalizeSlots","useInterpolatedStylesMap","currentScreenKey","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","pendingLifecycleStartBlockCount","getValue","isGesturingDuringCloseAnimation","get","props","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","interpolator","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","_","__DEV__","warn"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ,uBAAu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D,gBAAgB,IAAIC,mBAAoB;IAE5C,IAAI,CAACiB,YAAY,EAAE;MAClB,OAAO3B,SAAS;IACjB;IAEA,IAAI4B,iBAAiB,GAAGT,QAAQ;IAChC,IAAIU,aAAa,GAAGX,IAAI;IAExB,IAAIQ,eAAe,EAAE;MACpBE,iBAAiB,GAAGX,OAAO,CAACE,QAAQ;MACpCU,aAAa,GAAGC,SAAS;IAC1B;IAEA,IAAI;MACH,MAAMC,GAAG,GAAGJ,YAAY,CAAC;QACxB,GAAGX,KAAK;QACRG,QAAQ,EAAES,iBAAiB;QAC3BV,IAAI,EAAEW,aAAa;QACnBG,MAAM,EAAErB;MACT,CAAC,CAAC;MAEF,MAAMsB,SAAS,GACd,OAAOF,GAAG,KAAK,QAAQ,IAAIA,GAAG,IAAI,IAAI,GACnC/B,SAAS,GACTK,cAAc,CAAC0B,GAAG,CAAC;MAEvB,OAAOE,SAAS;IACjB,CAAC,CAAC,OAAOC,CAAC,EAAE;MACX,IAAIC,OAAO,EAAE;QACZjC,MAAM,CAACkC,IAAI,CAAC,2CAA2C,CAAC;MACzD;MAEA,OAAOpC,SAAS;IACjB;EACD,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useAnimatedProps, useAnimatedStyle, useDerivedValue } from "react-native-reanimated";
|
|
4
|
+
import { AnimationStore } from "../../../../stores/animation.store";
|
|
5
|
+
import { SystemStore } from "../../../../stores/system.store";
|
|
6
|
+
import { useDescriptorDerivations } from "../../descriptors";
|
|
7
|
+
export const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
8
|
+
const {
|
|
9
|
+
currentScreenKey
|
|
10
|
+
} = useDescriptorDerivations();
|
|
11
|
+
const progress = AnimationStore.getValue(currentScreenKey, "progress");
|
|
12
|
+
const {
|
|
13
|
+
pendingLifecycleStartBlockCount
|
|
14
|
+
} = SystemStore.getBag(currentScreenKey);
|
|
15
|
+
const shouldBlockVisibility = useDerivedValue(() => {
|
|
16
|
+
"worklet";
|
|
17
|
+
|
|
18
|
+
if (isFloatingOverlay) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount.get() > 0;
|
|
22
|
+
const isWaitingForOpenToStart = progress.get() <= 0;
|
|
23
|
+
return hasPendingLifecycleBlock || isWaitingForOpenToStart;
|
|
24
|
+
});
|
|
25
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
26
|
+
"worklet";
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
opacity: shouldBlockVisibility.get() ? 0 : 1
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
const animatedProps = useAnimatedProps(() => {
|
|
33
|
+
"worklet";
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
pointerEvents: shouldBlockVisibility.get() ? "none" : "box-none"
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
animatedStyle,
|
|
41
|
+
animatedProps
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=use-maybe-block-visibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useAnimatedProps","useAnimatedStyle","useDerivedValue","AnimationStore","SystemStore","useDescriptorDerivations","useMaybeBlockVisibility","isFloatingOverlay","currentScreenKey","progress","getValue","pendingLifecycleStartBlockCount","getBag","shouldBlockVisibility","hasPendingLifecycleBlock","get","isWaitingForOpenToStart","animatedStyle","opacity","animatedProps","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;AAAA,SACCA,gBAAgB,EAChBC,gBAAgB,EAChBC,eAAe,QACT,yBAAyB;AAChC,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,WAAW,QAAQ,iCAAiC;AAC7D,SAASC,wBAAwB,QAAQ,mBAAmB;AAE5D,OAAO,MAAMC,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAiB,CAAC,GAAGH,wBAAwB,CAAC,CAAC;EACvD,MAAMI,QAAQ,GAAGN,cAAc,CAACO,QAAQ,CAACF,gBAAgB,EAAE,UAAU,CAAC;EAEtE,MAAM;IAAEG;EAAgC,CAAC,GACxCP,WAAW,CAACQ,MAAM,CAACJ,gBAAgB,CAAC;EAErC,MAAMK,qBAAqB,GAAGX,eAAe,CAAC,MAAM;IACnD,SAAS;;IAET,IAAIK,iBAAiB,EAAE;MACtB,OAAO,KAAK;IACb;IAEA,MAAMO,wBAAwB,GAAGH,+BAA+B,CAACI,GAAG,CAAC,CAAC,GAAG,CAAC;IAC1E,MAAMC,uBAAuB,GAAGP,QAAQ,CAACM,GAAG,CAAC,CAAC,IAAI,CAAC;IAEnD,OAAOD,wBAAwB,IAAIE,uBAAuB;EAC3D,CAAC,CAAC;EAEF,MAAMC,aAAa,GAAGhB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IAET,OAAO;MACNiB,OAAO,EAAEL,qBAAqB,CAACE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG;IAC5C,CAAC;EACF,CAAC,CAAC;EAEF,MAAMI,aAAa,GAAGnB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNoB,aAAa,EAAEP,qBAAqB,CAACE,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNE,aAAa;IACbE;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
4
|
+
import { NO_STYLES } from "../../../../constants";
|
|
5
|
+
import { resolveSlotStyles } from "../helpers/resolve-slot-styles";
|
|
6
|
+
export const useResolvedStylesMap = ({
|
|
7
|
+
currentStylesMap,
|
|
8
|
+
ancestorStylesMap
|
|
9
|
+
}) => {
|
|
10
|
+
const previousStyleStatesBySlot = useSharedValue({});
|
|
11
|
+
return useDerivedValue(() => {
|
|
12
|
+
"worklet";
|
|
13
|
+
|
|
14
|
+
const {
|
|
15
|
+
resolvedStylesMap,
|
|
16
|
+
nextPreviousStyleStatesBySlot
|
|
17
|
+
} = resolveSlotStyles({
|
|
18
|
+
currentStylesMap: currentStylesMap.get(),
|
|
19
|
+
ancestorStylesMap: ancestorStylesMap?.get() ?? NO_STYLES,
|
|
20
|
+
previousStyleStatesBySlot: previousStyleStatesBySlot.get()
|
|
21
|
+
});
|
|
22
|
+
previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
|
|
23
|
+
return resolvedStylesMap;
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=use-resolved-slot-style-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","resolveSlotStyles","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","get","set"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx"],"mappings":";;AAAA,SAECA,eAAe,EACfC,cAAc,QACR,yBAAyB;AAChC,SAASC,SAAS,QAAQ,uBAAuB;AAEjD,SAECC,iBAAiB,QACX,gCAAgC;AAOvC,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACpCC,gBAAgB;EAChBC;AAC2B,CAAC,KAAK;EACjC,MAAMC,yBAAyB,GAAGN,cAAc,CAC/C,CAAC,CACF,CAAC;EAED,OAAOD,eAAe,CAAC,MAAM;IAC5B,SAAS;;IAET,MAAM;MAAEQ,iBAAiB;MAAEC;IAA8B,CAAC,GACzDN,iBAAiB,CAAC;MACjBE,gBAAgB,EAAEA,gBAAgB,CAACK,GAAG,CAAC,CAAC;MACxCJ,iBAAiB,EAAEA,iBAAiB,EAAEI,GAAG,CAAC,CAAC,IAAIR,SAAS;MACxDK,yBAAyB,EAAEA,yBAAyB,CAACG,GAAG,CAAC;IAC1D,CAAC,CAAC;IAEHH,yBAAyB,CAACI,GAAG,CAACF,6BAA6B,CAAC;IAE5D,OAAOD,iBAAiB;EACzB,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|