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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.normalizeSlots = normalizeSlots;
|
|
7
|
+
const isExplicitTransitionSlot = value => {
|
|
8
|
+
"worklet";
|
|
9
|
+
|
|
10
|
+
return typeof value === "object" && value != null && ("style" in value || "props" in value);
|
|
11
|
+
};
|
|
12
|
+
const isAlreadyNormalizedStyleMap = raw => {
|
|
13
|
+
"worklet";
|
|
14
|
+
|
|
15
|
+
for (const key in raw) {
|
|
16
|
+
const value = raw[key];
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (!isExplicitTransitionSlot(value)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
25
|
+
};
|
|
26
|
+
function normalizeSlots(raw) {
|
|
27
|
+
"worklet";
|
|
28
|
+
|
|
29
|
+
if (isAlreadyNormalizedStyleMap(raw)) {
|
|
30
|
+
return raw;
|
|
31
|
+
}
|
|
32
|
+
const normalized = {};
|
|
33
|
+
for (const key in raw) {
|
|
34
|
+
const value = raw[key];
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
normalized[key] = undefined;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (isExplicitTransitionSlot(value)) {
|
|
40
|
+
normalized[key] = value;
|
|
41
|
+
} else {
|
|
42
|
+
normalized[key] = {
|
|
43
|
+
style: value
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return normalized;
|
|
48
|
+
}
|
|
49
|
+
//# 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;AAEM,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,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveSlotStyles = void 0;
|
|
7
|
+
var _constants = require("../constants");
|
|
8
|
+
const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
|
|
9
|
+
hasTransform: false,
|
|
10
|
+
hasOpacity: false,
|
|
11
|
+
hasZIndex: false,
|
|
12
|
+
hasElevation: false
|
|
13
|
+
});
|
|
14
|
+
const resolveSlotStyles = ({
|
|
15
|
+
currentStylesMap,
|
|
16
|
+
ancestorStylesMap,
|
|
17
|
+
previousStyleStatesBySlot
|
|
18
|
+
}) => {
|
|
19
|
+
"worklet";
|
|
20
|
+
|
|
21
|
+
const resolvedStylesMap = {};
|
|
22
|
+
const nextPreviousStyleStatesBySlot = {};
|
|
23
|
+
const appendResolvedSlot = slotId => {
|
|
24
|
+
"worklet";
|
|
25
|
+
|
|
26
|
+
const slot = currentStylesMap[slotId] ?? ((0, _constants.shouldSlotInherit)(slotId) ? ancestorStylesMap[slotId] : undefined);
|
|
27
|
+
const baseStyle = slot?.style;
|
|
28
|
+
let hasAnyStyleKeys = false;
|
|
29
|
+
let hasTransform = false;
|
|
30
|
+
let hasOpacity = false;
|
|
31
|
+
let hasZIndex = false;
|
|
32
|
+
let hasElevation = false;
|
|
33
|
+
if (baseStyle) {
|
|
34
|
+
for (const key in baseStyle) {
|
|
35
|
+
hasAnyStyleKeys = true;
|
|
36
|
+
if (key === "transform") {
|
|
37
|
+
hasTransform = true;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (key === "opacity") {
|
|
41
|
+
hasOpacity = true;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (key === "zIndex") {
|
|
45
|
+
hasZIndex = true;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (key === "elevation") {
|
|
49
|
+
hasElevation = true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const previousState = previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
|
|
54
|
+
const shouldResetTransform = previousState.hasTransform && !hasTransform;
|
|
55
|
+
const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
|
|
56
|
+
const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
|
|
57
|
+
const shouldResetElevation = previousState.hasElevation && !hasElevation;
|
|
58
|
+
const hasResetPatch = shouldResetTransform || shouldResetOpacity || shouldResetZIndex || shouldResetElevation;
|
|
59
|
+
const hasProps = slot?.props !== undefined;
|
|
60
|
+
if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
|
|
61
|
+
nextPreviousStyleStatesBySlot[slotId] = {
|
|
62
|
+
hasTransform,
|
|
63
|
+
hasOpacity,
|
|
64
|
+
hasZIndex,
|
|
65
|
+
hasElevation
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (!slot && !hasResetPatch) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (!hasResetPatch && slot) {
|
|
72
|
+
if (hasAnyStyleKeys || hasProps) {
|
|
73
|
+
resolvedStylesMap[slotId] = slot;
|
|
74
|
+
}
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const resolvedSlot = {};
|
|
81
|
+
if (hasAnyStyleKeys || hasResetPatch) {
|
|
82
|
+
const resolvedStyle = {};
|
|
83
|
+
if (shouldResetTransform) {
|
|
84
|
+
resolvedStyle.transform = _constants.IDENTITY_TRANSFORM;
|
|
85
|
+
}
|
|
86
|
+
if (shouldResetOpacity) {
|
|
87
|
+
resolvedStyle.opacity = _constants.ALWAYS_RESET_STYLE_VALUES.opacity;
|
|
88
|
+
}
|
|
89
|
+
if (shouldResetZIndex) {
|
|
90
|
+
resolvedStyle.zIndex = _constants.ALWAYS_RESET_STYLE_VALUES.zIndex;
|
|
91
|
+
}
|
|
92
|
+
if (shouldResetElevation) {
|
|
93
|
+
resolvedStyle.elevation = _constants.ALWAYS_RESET_STYLE_VALUES.elevation;
|
|
94
|
+
}
|
|
95
|
+
if (baseStyle) {
|
|
96
|
+
for (const key in baseStyle) {
|
|
97
|
+
resolvedStyle[key] = baseStyle[key];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
resolvedSlot.style = resolvedStyle;
|
|
101
|
+
}
|
|
102
|
+
if (hasProps) {
|
|
103
|
+
resolvedSlot.props = slot?.props;
|
|
104
|
+
}
|
|
105
|
+
if (!resolvedSlot.style && !resolvedSlot.props) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
resolvedStylesMap[slotId] = resolvedSlot;
|
|
109
|
+
};
|
|
110
|
+
for (const slotId in currentStylesMap) {
|
|
111
|
+
appendResolvedSlot(slotId);
|
|
112
|
+
}
|
|
113
|
+
for (const slotId in ancestorStylesMap) {
|
|
114
|
+
if (!(0, _constants.shouldSlotInherit)(slotId)) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
if (currentStylesMap[slotId] !== undefined) {
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
appendResolvedSlot(slotId);
|
|
121
|
+
}
|
|
122
|
+
for (const slotId in previousStyleStatesBySlot) {
|
|
123
|
+
if (currentStylesMap[slotId] !== undefined) {
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if ((0, _constants.shouldSlotInherit)(slotId) && ancestorStylesMap[slotId] !== undefined) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
appendResolvedSlot(slotId);
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
resolvedStylesMap,
|
|
133
|
+
nextPreviousStyleStatesBySlot
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
exports.resolveSlotStyles = resolveSlotStyles;
|
|
137
|
+
//# sourceMappingURL=resolve-slot-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_constants","require","EMPTY_RESETTABLE_STYLE_STATE","Object","freeze","hasTransform","hasOpacity","hasZIndex","hasElevation","resolveSlotStyles","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","appendResolvedSlot","slotId","slot","shouldSlotInherit","undefined","baseStyle","style","hasAnyStyleKeys","key","previousState","shouldResetTransform","shouldResetOpacity","shouldResetZIndex","shouldResetElevation","hasResetPatch","hasProps","props","resolvedSlot","resolvedStyle","transform","IDENTITY_TRANSFORM","opacity","ALWAYS_RESET_STYLE_VALUES","zIndex","elevation","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles.ts"],"mappings":";;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAeA,MAAMC,4BAA4B,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClDC,YAAY,EAAE,KAAK;EACnBC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE,KAAK;EAChBC,YAAY,EAAE;AACf,CAAC,CAAyB;AAEnB,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,gBAAgB;EAChBC,iBAAiB;EACjBC;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMC,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMC,6BAA0D,GAAG,CAAC,CAAC;EAErE,MAAMC,kBAAkB,GAAIC,MAAc,IAAK;IAC9C,SAAS;;IAET,MAAMC,IAAI,GACTP,gBAAgB,CAACM,MAAM,CAAC,KACvB,IAAAE,4BAAiB,EAACF,MAAM,CAAC,GAAGL,iBAAiB,CAACK,MAAM,CAAC,GAAGG,SAAS,CAAC;IAEpE,MAAMC,SAAS,GAAGH,IAAI,EAAEI,KAA4C;IAEpE,IAAIC,eAAe,GAAG,KAAK;IAC3B,IAAIjB,YAAY,GAAG,KAAK;IACxB,IAAIC,UAAU,GAAG,KAAK;IACtB,IAAIC,SAAS,GAAG,KAAK;IACrB,IAAIC,YAAY,GAAG,KAAK;IAExB,IAAIY,SAAS,EAAE;MACd,KAAK,MAAMG,GAAG,IAAIH,SAAS,EAAE;QAC5BE,eAAe,GAAG,IAAI;QAEtB,IAAIC,GAAG,KAAK,WAAW,EAAE;UACxBlB,YAAY,GAAG,IAAI;UACnB;QACD;QAEA,IAAIkB,GAAG,KAAK,SAAS,EAAE;UACtBjB,UAAU,GAAG,IAAI;UACjB;QACD;QAEA,IAAIiB,GAAG,KAAK,QAAQ,EAAE;UACrBhB,SAAS,GAAG,IAAI;UAChB;QACD;QAEA,IAAIgB,GAAG,KAAK,WAAW,EAAE;UACxBf,YAAY,GAAG,IAAI;QACpB;MACD;IACD;IAEA,MAAMgB,aAAa,GAClBZ,yBAAyB,CAACI,MAAM,CAAC,IAAId,4BAA4B;IAClE,MAAMuB,oBAAoB,GAAGD,aAAa,CAACnB,YAAY,IAAI,CAACA,YAAY;IACxE,MAAMqB,kBAAkB,GAAGF,aAAa,CAAClB,UAAU,IAAI,CAACA,UAAU;IAClE,MAAMqB,iBAAiB,GAAGH,aAAa,CAACjB,SAAS,IAAI,CAACA,SAAS;IAC/D,MAAMqB,oBAAoB,GAAGJ,aAAa,CAAChB,YAAY,IAAI,CAACA,YAAY;IACxE,MAAMqB,aAAa,GAClBJ,oBAAoB,IACpBC,kBAAkB,IAClBC,iBAAiB,IACjBC,oBAAoB;IACrB,MAAME,QAAQ,GAAGb,IAAI,EAAEc,KAAK,KAAKZ,SAAS;IAE1C,IAAId,YAAY,IAAIC,UAAU,IAAIC,SAAS,IAAIC,YAAY,EAAE;MAC5DM,6BAA6B,CAACE,MAAM,CAAC,GAAG;QACvCX,YAAY;QACZC,UAAU;QACVC,SAAS;QACTC;MACD,CAAC;IACF;IAEA,IAAI,CAACS,IAAI,IAAI,CAACY,aAAa,EAAE;MAC5B;IACD;IAEA,IAAI,CAACA,aAAa,IAAIZ,IAAI,EAAE;MAC3B,IAAIK,eAAe,IAAIQ,QAAQ,EAAE;QAChCjB,iBAAiB,CAACG,MAAM,CAAC,GAAGC,IAAI;MACjC;MACA;IACD;IAEA,IAAI,CAACK,eAAe,IAAI,CAACO,aAAa,IAAI,CAACC,QAAQ,EAAE;MACpD;IACD;IAEA,MAAME,YAAY,GAAG,CAAC,CAAkC;IAExD,IAAIV,eAAe,IAAIO,aAAa,EAAE;MACrC,MAAMI,aAAkC,GAAG,CAAC,CAAC;MAE7C,IAAIR,oBAAoB,EAAE;QACzBQ,aAAa,CAACC,SAAS,GAAGC,6BAAkB;MAC7C;MAEA,IAAIT,kBAAkB,EAAE;QACvBO,aAAa,CAACG,OAAO,GAAGC,oCAAyB,CAACD,OAAO;MAC1D;MAEA,IAAIT,iBAAiB,EAAE;QACtBM,aAAa,CAACK,MAAM,GAAGD,oCAAyB,CAACC,MAAM;MACxD;MAEA,IAAIV,oBAAoB,EAAE;QACzBK,aAAa,CAACM,SAAS,GAAGF,oCAAyB,CAACE,SAAS;MAC9D;MAEA,IAAInB,SAAS,EAAE;QACd,KAAK,MAAMG,GAAG,IAAIH,SAAS,EAAE;UAC5Ba,aAAa,CAACV,GAAG,CAAC,GAAGH,SAAS,CAACG,GAAG,CAAC;QACpC;MACD;MAEAS,YAAY,CAACX,KAAK,GAAGY,aAAa;IACnC;IAEA,IAAIH,QAAQ,EAAE;MACbE,YAAY,CAACD,KAAK,GAAGd,IAAI,EAAEc,KAAK;IACjC;IAEA,IAAI,CAACC,YAAY,CAACX,KAAK,IAAI,CAACW,YAAY,CAACD,KAAK,EAAE;MAC/C;IACD;IAEAlB,iBAAiB,CAACG,MAAM,CAAC,GAAGgB,YAAY;EACzC,CAAC;EAED,KAAK,MAAMhB,MAAM,IAAIN,gBAAgB,EAAE;IACtCK,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,KAAK,MAAMA,MAAM,IAAIL,iBAAiB,EAAE;IACvC,IAAI,CAAC,IAAAO,4BAAiB,EAACF,MAAM,CAAC,EAAE;MAC/B;IACD;IAEA,IAAIN,gBAAgB,CAACM,MAAM,CAAC,KAAKG,SAAS,EAAE;MAC3C;IACD;IAEAJ,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,KAAK,MAAMA,MAAM,IAAIJ,yBAAyB,EAAE;IAC/C,IAAIF,gBAAgB,CAACM,MAAM,CAAC,KAAKG,SAAS,EAAE;MAC3C;IACD;IAEA,IAAI,IAAAD,4BAAiB,EAACF,MAAM,CAAC,IAAIL,iBAAiB,CAACK,MAAM,CAAC,KAAKG,SAAS,EAAE;MACzE;IACD;IAEAJ,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,OAAO;IACNH,iBAAiB;IACjBC;EACD,CAAC;AACF,CAAC;AAAC0B,OAAA,CAAA/B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useInterpolatedStylesMap = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _constants = require("../../../../constants");
|
|
9
|
+
var _system = require("../../../../stores/system.store");
|
|
10
|
+
var _logger = require("../../../../utils/logger");
|
|
11
|
+
var _animation = require("../../animation");
|
|
12
|
+
var _descriptors = require("../../descriptors");
|
|
13
|
+
var _normalizeSlots = require("../helpers/normalize-slots");
|
|
14
|
+
const useInterpolatedStylesMap = () => {
|
|
15
|
+
const {
|
|
16
|
+
currentScreenKey
|
|
17
|
+
} = (0, _descriptors.useDescriptorDerivations)();
|
|
18
|
+
const {
|
|
19
|
+
screenInterpolatorProps,
|
|
20
|
+
nextInterpolator,
|
|
21
|
+
currentInterpolator,
|
|
22
|
+
boundsAccessor
|
|
23
|
+
} = (0, _animation.useScreenAnimationContext)();
|
|
24
|
+
const pendingLifecycleStartBlockCount = _system.SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
25
|
+
const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
26
|
+
return (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
27
|
+
"worklet";
|
|
28
|
+
|
|
29
|
+
if (pendingLifecycleStartBlockCount.get() > 0) {
|
|
30
|
+
return _constants.NO_STYLES;
|
|
31
|
+
}
|
|
32
|
+
const props = screenInterpolatorProps.get();
|
|
33
|
+
const {
|
|
34
|
+
current,
|
|
35
|
+
next,
|
|
36
|
+
progress
|
|
37
|
+
} = props;
|
|
38
|
+
const isDragging = current.gesture.dragging;
|
|
39
|
+
const isNextClosing = !!next?.closing;
|
|
40
|
+
if (isDragging && isNextClosing) {
|
|
41
|
+
isGesturingDuringCloseAnimation.set(true);
|
|
42
|
+
}
|
|
43
|
+
if (!isDragging && !isNextClosing) {
|
|
44
|
+
isGesturingDuringCloseAnimation.set(false);
|
|
45
|
+
}
|
|
46
|
+
const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.get();
|
|
47
|
+
const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
|
|
48
|
+
if (!interpolator) {
|
|
49
|
+
return _constants.NO_STYLES;
|
|
50
|
+
}
|
|
51
|
+
let effectiveProgress = progress;
|
|
52
|
+
let effectiveNext = next;
|
|
53
|
+
if (isInGestureMode) {
|
|
54
|
+
effectiveProgress = current.progress;
|
|
55
|
+
effectiveNext = undefined;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
const raw = interpolator({
|
|
59
|
+
...props,
|
|
60
|
+
progress: effectiveProgress,
|
|
61
|
+
next: effectiveNext,
|
|
62
|
+
bounds: boundsAccessor
|
|
63
|
+
});
|
|
64
|
+
const stylesMap = typeof raw !== "object" || raw == null ? _constants.NO_STYLES : (0, _normalizeSlots.normalizeSlots)(raw);
|
|
65
|
+
return stylesMap;
|
|
66
|
+
} catch (_) {
|
|
67
|
+
if (__DEV__) {
|
|
68
|
+
_logger.logger.warn("screenStyleInterpolator must be a worklet");
|
|
69
|
+
}
|
|
70
|
+
return _constants.NO_STYLES;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
exports.useInterpolatedStylesMap = useInterpolatedStylesMap;
|
|
75
|
+
//# sourceMappingURL=use-interpolated-style-maps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_system","_logger","_animation","_descriptors","_normalizeSlots","useInterpolatedStylesMap","currentScreenKey","useDescriptorDerivations","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","useScreenAnimationContext","pendingLifecycleStartBlockCount","SystemStore","getValue","isGesturingDuringCloseAnimation","useSharedValue","useDerivedValue","get","NO_STYLES","props","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","interpolator","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","normalizeSlots","_","__DEV__","logger","warn","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AAEO,MAAMO,wBAAwB,GAAGA,CAAA,KAAM;EAC7C,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAM;IACLC,uBAAuB;IACvBC,gBAAgB;IAChBC,mBAAmB;IACnBC;EACD,CAAC,GAAG,IAAAC,oCAAyB,EAAC,CAAC;EAE/B,MAAMC,+BAA+B,GAAGC,mBAAW,CAACC,QAAQ,CAC3DT,gBAAgB,EAChB,iCACD,CAAC;EAED,MAAMU,+BAA+B,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAE7D,OAAO,IAAAC,sCAAe,EAAwC,MAAM;IACnE,SAAS;;IACT,IAAIL,+BAA+B,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;MAC9C,OAAOC,oBAAS;IACjB;IAEA,MAAMC,KAAK,GAAGb,uBAAuB,CAACW,GAAG,CAAC,CAAC;IAC3C,MAAM;MAAEG,OAAO;MAAEC,IAAI;MAAEC;IAAS,CAAC,GAAGH,KAAK;IACzC,MAAMI,UAAU,GAAGH,OAAO,CAACI,OAAO,CAACC,QAAQ;IAC3C,MAAMC,aAAa,GAAG,CAAC,CAACL,IAAI,EAAEM,OAAO;IAErC,IAAIJ,UAAU,IAAIG,aAAa,EAAE;MAChCZ,+BAA+B,CAACc,GAAG,CAAC,IAAI,CAAC;IAC1C;IAEA,IAAI,CAACL,UAAU,IAAI,CAACG,aAAa,EAAE;MAClCZ,+BAA+B,CAACc,GAAG,CAAC,KAAK,CAAC;IAC3C;IAEA,MAAMC,eAAe,GAAGN,UAAU,IAAIT,+BAA+B,CAACG,GAAG,CAAC,CAAC;IAE3E,MAAMa,YAAY,GAAGD,eAAe,GACjCrB,mBAAmB,GAClBD,gBAAgB,IAAIC,mBAAoB;IAE5C,IAAI,CAACsB,YAAY,EAAE;MAClB,OAAOZ,oBAAS;IACjB;IAEA,IAAIa,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,EAAE1B;MACT,CAAC,CAAC;MAEF,MAAM2B,SAAS,GACd,OAAOF,GAAG,KAAK,QAAQ,IAAIA,GAAG,IAAI,IAAI,GACnChB,oBAAS,GACT,IAAAmB,8BAAc,EAACH,GAAG,CAAC;MAEvB,OAAOE,SAAS;IACjB,CAAC,CAAC,OAAOE,CAAC,EAAE;MACX,IAAIC,OAAO,EAAE;QACZC,cAAM,CAACC,IAAI,CAAC,2CAA2C,CAAC;MACzD;MAEA,OAAOvB,oBAAS;IACjB;EACD,CAAC,CAAC;AACH,CAAC;AAACwB,OAAA,CAAAvC,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useMaybeBlockVisibility = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _animation = require("../../../../stores/animation.store");
|
|
9
|
+
var _system = require("../../../../stores/system.store");
|
|
10
|
+
var _descriptors = require("../../descriptors");
|
|
11
|
+
const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
12
|
+
const {
|
|
13
|
+
currentScreenKey
|
|
14
|
+
} = (0, _descriptors.useDescriptorDerivations)();
|
|
15
|
+
const progress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
|
|
16
|
+
const {
|
|
17
|
+
pendingLifecycleStartBlockCount
|
|
18
|
+
} = _system.SystemStore.getBag(currentScreenKey);
|
|
19
|
+
const shouldBlockVisibility = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
20
|
+
"worklet";
|
|
21
|
+
|
|
22
|
+
if (isFloatingOverlay) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount.get() > 0;
|
|
26
|
+
const isWaitingForOpenToStart = progress.get() <= 0;
|
|
27
|
+
return hasPendingLifecycleBlock || isWaitingForOpenToStart;
|
|
28
|
+
});
|
|
29
|
+
const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
30
|
+
"worklet";
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
opacity: shouldBlockVisibility.get() ? 0 : 1
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const animatedProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
|
|
37
|
+
"worklet";
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
pointerEvents: shouldBlockVisibility.get() ? "none" : "box-none"
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
animatedStyle,
|
|
45
|
+
animatedProps
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
exports.useMaybeBlockVisibility = useMaybeBlockVisibility;
|
|
49
|
+
//# sourceMappingURL=use-maybe-block-visibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_animation","_system","_descriptors","useMaybeBlockVisibility","isFloatingOverlay","currentScreenKey","useDescriptorDerivations","progress","AnimationStore","getValue","pendingLifecycleStartBlockCount","SystemStore","getBag","shouldBlockVisibility","useDerivedValue","hasPendingLifecycleBlock","get","isWaitingForOpenToStart","animatedStyle","useAnimatedStyle","opacity","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEO,MAAMI,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAMC,QAAQ,GAAGC,yBAAc,CAACC,QAAQ,CAACJ,gBAAgB,EAAE,UAAU,CAAC;EAEtE,MAAM;IAAEK;EAAgC,CAAC,GACxCC,mBAAW,CAACC,MAAM,CAACP,gBAAgB,CAAC;EAErC,MAAMQ,qBAAqB,GAAG,IAAAC,sCAAe,EAAC,MAAM;IACnD,SAAS;;IAET,IAAIV,iBAAiB,EAAE;MACtB,OAAO,KAAK;IACb;IAEA,MAAMW,wBAAwB,GAAGL,+BAA+B,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC;IAC1E,MAAMC,uBAAuB,GAAGV,QAAQ,CAACS,GAAG,CAAC,CAAC,IAAI,CAAC;IAEnD,OAAOD,wBAAwB,IAAIE,uBAAuB;EAC3D,CAAC,CAAC;EAEF,MAAMC,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IAET,OAAO;MACNC,OAAO,EAAEP,qBAAqB,CAACG,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG;IAC5C,CAAC;EACF,CAAC,CAAC;EAEF,MAAMK,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNC,aAAa,EAAEV,qBAAqB,CAACG,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNE,aAAa;IACbG;EACD,CAAC;AACF,CAAC;AAACG,OAAA,CAAArB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useResolvedStylesMap = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _constants = require("../../../../constants");
|
|
9
|
+
var _resolveSlotStyles = require("../helpers/resolve-slot-styles");
|
|
10
|
+
const useResolvedStylesMap = ({
|
|
11
|
+
currentStylesMap,
|
|
12
|
+
ancestorStylesMap
|
|
13
|
+
}) => {
|
|
14
|
+
const previousStyleStatesBySlot = (0, _reactNativeReanimated.useSharedValue)({});
|
|
15
|
+
return (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
16
|
+
"worklet";
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
resolvedStylesMap,
|
|
20
|
+
nextPreviousStyleStatesBySlot
|
|
21
|
+
} = (0, _resolveSlotStyles.resolveSlotStyles)({
|
|
22
|
+
currentStylesMap: currentStylesMap.get(),
|
|
23
|
+
ancestorStylesMap: ancestorStylesMap?.get() ?? _constants.NO_STYLES,
|
|
24
|
+
previousStyleStatesBySlot: previousStyleStatesBySlot.get()
|
|
25
|
+
});
|
|
26
|
+
previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
|
|
27
|
+
return resolvedStylesMap;
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.useResolvedStylesMap = useResolvedStylesMap;
|
|
31
|
+
//# sourceMappingURL=use-resolved-slot-style-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_resolveSlotStyles","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","useSharedValue","useDerivedValue","resolvedStylesMap","nextPreviousStyleStatesBySlot","resolveSlotStyles","get","NO_STYLES","set","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,kBAAA,GAAAF,OAAA;AAUO,MAAMG,oBAAoB,GAAGA,CAAC;EACpCC,gBAAgB;EAChBC;AAC2B,CAAC,KAAK;EACjC,MAAMC,yBAAyB,GAAG,IAAAC,qCAAc,EAC/C,CAAC,CACF,CAAC;EAED,OAAO,IAAAC,sCAAe,EAAC,MAAM;IAC5B,SAAS;;IAET,MAAM;MAAEC,iBAAiB;MAAEC;IAA8B,CAAC,GACzD,IAAAC,oCAAiB,EAAC;MACjBP,gBAAgB,EAAEA,gBAAgB,CAACQ,GAAG,CAAC,CAAC;MACxCP,iBAAiB,EAAEA,iBAAiB,EAAEO,GAAG,CAAC,CAAC,IAAIC,oBAAS;MACxDP,yBAAyB,EAAEA,yBAAyB,CAACM,GAAG,CAAC;IAC1D,CAAC,CAAC;IAEHN,yBAAyB,CAACQ,GAAG,CAACJ,6BAA6B,CAAC;IAE5D,OAAOD,iBAAiB;EACzB,CAAC,CAAC;AACH,CAAC;AAACM,OAAA,CAAAZ,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useScreenStyles = exports.ScreenStylesProvider = exports.ScreenStylesContext = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
10
10
|
var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
11
|
+
var _maybeFloatingContainer = require("./components/maybe-floating-container");
|
|
12
|
+
var _useInterpolatedStyleMaps = require("./hooks/use-interpolated-style-maps");
|
|
13
|
+
var _useMaybeBlockVisibility = require("./hooks/use-maybe-block-visibility");
|
|
14
|
+
var _useResolvedSlotStyleMap = require("./hooks/use-resolved-slot-style-map");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
const {
|
|
18
18
|
ScreenStylesProvider,
|
|
@@ -21,113 +21,39 @@ const {
|
|
|
21
21
|
} = (0, _createProvider.default)("ScreenStyles", {
|
|
22
22
|
guarded: true
|
|
23
23
|
})(({
|
|
24
|
-
children
|
|
24
|
+
children,
|
|
25
|
+
isFloatingOverlay
|
|
25
26
|
}) => {
|
|
26
27
|
const parentContext = (0, _react.useContext)(ScreenStylesContext);
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
boundsAccessor
|
|
32
|
-
} = (0, _animation.useScreenAnimationContext)();
|
|
33
|
-
const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
34
|
-
const hasWarnedLegacy = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
35
|
-
const previousElementStyleKeysBySlot = (0, _reactNativeReanimated.useSharedValue)({});
|
|
36
|
-
const rawStyleResolution = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
const props = screenInterpolatorProps.value;
|
|
40
|
-
const {
|
|
41
|
-
current,
|
|
42
|
-
next,
|
|
43
|
-
progress
|
|
44
|
-
} = props;
|
|
45
|
-
const isDragging = current.gesture.dragging;
|
|
46
|
-
const isNextClosing = !!next?.closing;
|
|
47
|
-
if (isDragging && isNextClosing) {
|
|
48
|
-
isGesturingDuringCloseAnimation.value = true;
|
|
49
|
-
}
|
|
50
|
-
if (!isDragging && !isNextClosing) {
|
|
51
|
-
isGesturingDuringCloseAnimation.value = false;
|
|
52
|
-
}
|
|
53
|
-
const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.value;
|
|
54
|
-
const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
|
|
55
|
-
if (!interpolator) {
|
|
56
|
-
return {
|
|
57
|
-
layerStylesMap: _constants.NO_STYLES,
|
|
58
|
-
elementStylesMap: _constants.NO_STYLES
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
let effectiveProgress = progress;
|
|
62
|
-
let effectiveNext = next;
|
|
63
|
-
if (isInGestureMode) {
|
|
64
|
-
effectiveProgress = current.progress;
|
|
65
|
-
effectiveNext = undefined;
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
const raw = interpolator({
|
|
69
|
-
...props,
|
|
70
|
-
progress: effectiveProgress,
|
|
71
|
-
next: effectiveNext,
|
|
72
|
-
bounds: boundsAccessor
|
|
73
|
-
});
|
|
74
|
-
const {
|
|
75
|
-
stylesMap,
|
|
76
|
-
wasLegacy
|
|
77
|
-
} = (0, _resolveInterpolatedStyleOutput.resolveInterpolatedStyleOutput)(raw);
|
|
78
|
-
const {
|
|
79
|
-
layerStylesMap,
|
|
80
|
-
elementStylesMap
|
|
81
|
-
} = (0, _splitNormalizedStyleMaps.splitNormalizedStyleMaps)(stylesMap);
|
|
82
|
-
if (__DEV__ && wasLegacy && !hasWarnedLegacy.value) {
|
|
83
|
-
hasWarnedLegacy.value = true;
|
|
84
|
-
_logger.logger.warn("Flat interpolator return shape (contentStyle/backdropStyle) is deprecated. " + "Use the nested format instead: { content: { style }, backdrop: { style } }.");
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
layerStylesMap,
|
|
88
|
-
elementStylesMap
|
|
89
|
-
};
|
|
90
|
-
} catch (err) {
|
|
91
|
-
if (__DEV__) {
|
|
92
|
-
console.warn("[react-native-screen-transitions] screenStyleInterpolator must be a worklet", err);
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
layerStylesMap: _constants.NO_STYLES,
|
|
96
|
-
elementStylesMap: _constants.NO_STYLES
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
const layerStylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
101
|
-
"worklet";
|
|
102
|
-
|
|
103
|
-
return rawStyleResolution.value.layerStylesMap;
|
|
28
|
+
const rawStylesMap = (0, _useInterpolatedStyleMaps.useInterpolatedStylesMap)();
|
|
29
|
+
const stylesMap = (0, _useResolvedSlotStyleMap.useResolvedStylesMap)({
|
|
30
|
+
currentStylesMap: rawStylesMap,
|
|
31
|
+
ancestorStylesMap: parentContext?.stylesMap
|
|
104
32
|
});
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
resolvedStylesMap,
|
|
110
|
-
nextPreviousStyleKeysBySlot
|
|
111
|
-
} = (0, _buildResolvedStyleMap.buildResolvedStyleMap)({
|
|
112
|
-
currentStylesMap: rawStyleResolution.value.elementStylesMap,
|
|
113
|
-
fallbackStylesMap: parentContext?.elementStylesMap.value ?? _constants.NO_STYLES,
|
|
114
|
-
previousStyleKeysBySlot: previousElementStyleKeysBySlot.value
|
|
115
|
-
});
|
|
116
|
-
previousElementStyleKeysBySlot.value = nextPreviousStyleKeysBySlot;
|
|
117
|
-
return resolvedStylesMap;
|
|
118
|
-
});
|
|
119
|
-
const value = (0, _react.useMemo)(() => {
|
|
120
|
-
return {
|
|
121
|
-
layerStylesMap,
|
|
122
|
-
elementStylesMap
|
|
123
|
-
};
|
|
124
|
-
}, [elementStylesMap, layerStylesMap]);
|
|
33
|
+
const {
|
|
34
|
+
animatedStyle,
|
|
35
|
+
animatedProps
|
|
36
|
+
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(isFloatingOverlay);
|
|
125
37
|
return {
|
|
126
|
-
value
|
|
127
|
-
|
|
38
|
+
value: {
|
|
39
|
+
stylesMap
|
|
40
|
+
},
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_maybeFloatingContainer.MaybeFloatingContainer, {
|
|
42
|
+
isFloatingOverlay: isFloatingOverlay,
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
44
|
+
style: [styles.container, animatedStyle],
|
|
45
|
+
animatedProps: animatedProps,
|
|
46
|
+
children: children
|
|
47
|
+
})
|
|
48
|
+
})
|
|
128
49
|
};
|
|
129
50
|
});
|
|
130
51
|
exports.useScreenStyles = useScreenStyles;
|
|
131
52
|
exports.ScreenStylesContext = ScreenStylesContext;
|
|
132
53
|
exports.ScreenStylesProvider = ScreenStylesProvider;
|
|
54
|
+
const styles = _reactNative.StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
flex: 1
|
|
57
|
+
}
|
|
58
|
+
});
|
|
133
59
|
//# sourceMappingURL=styles.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_maybeFloatingContainer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMap","useInterpolatedStylesMap","stylesMap","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","animatedStyle","animatedProps","useMaybeBlockVisibility","value","jsx","MaybeFloatingContainer","View","style","styles","container","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAP,OAAA;AACA,IAAAQ,wBAAA,GAAAR,OAAA;AAA2E,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWpE,MAAM;EACZG,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAG,IAAAC,uBAAc,EAAC,cAAc,EAAE;EAClCC,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAG,IAAAC,iBAAU,EAACR,mBAAmB,CAAC;EAErD,MAAMS,YAAY,GAAG,IAAAC,kDAAwB,EAAC,CAAC;EAE/C,MAAMC,SAAS,GAAG,IAAAC,6CAAoB,EAAC;IACtCC,gBAAgB,EAAEJ,YAAY;IAC9BK,iBAAiB,EAAEP,aAAa,EAAEI;EACnC,CAAC,CAAC;EAEF,MAAM;IAAEI,aAAa;IAAEC;EAAc,CAAC,GACrC,IAAAC,gDAAuB,EAACX,iBAAiB,CAAC;EAE3C,OAAO;IACNY,KAAK,EAAE;MACNP;IACD,CAAC;IACDN,QAAQ,eACP,IAAAV,WAAA,CAAAwB,GAAA,EAAC5B,uBAAA,CAAA6B,sBAAsB;MAACd,iBAAiB,EAAEA,iBAAkB;MAAAD,QAAA,eAC5D,IAAAV,WAAA,CAAAwB,GAAA,EAAC/B,sBAAA,CAAAU,OAAQ,CAACuB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAET,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAX,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACO;EAE1B,CAAC;AACF,CAAC,CAAC;AAACoB,OAAA,CAAAvB,eAAA,GAAAA,eAAA;AAAAuB,OAAA,CAAAzB,mBAAA,GAAAA,mBAAA;AAAAyB,OAAA,CAAA1B,oBAAA,GAAAA,oBAAA;AAEH,MAAMwB,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -16,27 +16,33 @@ const applyMeasuredBoundsWrites = params => {
|
|
|
16
16
|
ancestorKeys,
|
|
17
17
|
navigatorKey,
|
|
18
18
|
ancestorNavigatorKeys,
|
|
19
|
-
|
|
19
|
+
shouldWriteEntry,
|
|
20
20
|
shouldSetSource,
|
|
21
21
|
shouldUpdateSource,
|
|
22
22
|
shouldSetDestination,
|
|
23
23
|
shouldUpdateDestination,
|
|
24
24
|
expectedSourceScreenKey
|
|
25
25
|
} = params;
|
|
26
|
-
if (
|
|
27
|
-
_.BoundStore.
|
|
26
|
+
if (shouldWriteEntry) {
|
|
27
|
+
_.BoundStore.entry.set(sharedBoundTag, currentScreenKey, {
|
|
28
|
+
bounds: measured,
|
|
29
|
+
styles: preparedStyles,
|
|
30
|
+
ancestorKeys,
|
|
31
|
+
navigatorKey,
|
|
32
|
+
ancestorNavigatorKeys
|
|
33
|
+
});
|
|
28
34
|
}
|
|
29
35
|
if (shouldSetSource) {
|
|
30
|
-
_.BoundStore.
|
|
36
|
+
_.BoundStore.link.setSource("capture", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
31
37
|
}
|
|
32
38
|
if (shouldUpdateSource) {
|
|
33
|
-
_.BoundStore.
|
|
39
|
+
_.BoundStore.link.setSource("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
34
40
|
}
|
|
35
41
|
if (shouldUpdateDestination) {
|
|
36
|
-
_.BoundStore.
|
|
42
|
+
_.BoundStore.link.setDestination("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
37
43
|
}
|
|
38
44
|
if (shouldSetDestination) {
|
|
39
|
-
_.BoundStore.
|
|
45
|
+
_.BoundStore.link.setDestination("attach", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
40
46
|
}
|
|
41
47
|
};
|
|
42
48
|
exports.applyMeasuredBoundsWrites = applyMeasuredBoundsWrites;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_","require","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","
|
|
1
|
+
{"version":3,"names":["_","require","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","BoundStore","entry","set","bounds","styles","link","setSource","setDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/apply-measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,CAAA,GAAAC,OAAA;AAkBO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,gBAAgB;IAChBC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGb,MAAM;EAEV,IAAIQ,gBAAgB,EAAE;IACrBM,YAAU,CAACC,KAAK,CAACC,GAAG,CAACf,cAAc,EAAEC,gBAAgB,EAAE;MACtDe,MAAM,EAAEd,QAAQ;MAChBe,MAAM,EAAEd,cAAc;MACtBC,YAAY;MACZC,YAAY;MACZC;IACD,CAAC,CAAC;EACH;EAEA,IAAIE,eAAe,EAAE;IACpBK,YAAU,CAACK,IAAI,CAACC,SAAS,CACxB,SAAS,EACTnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIG,kBAAkB,EAAE;IACvBI,YAAU,CAACK,IAAI,CAACC,SAAS,CACxB,SAAS,EACTnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIK,uBAAuB,EAAE;IAC5BE,YAAU,CAACK,IAAI,CAACE,cAAc,CAC7B,SAAS,EACTpB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAII,oBAAoB,EAAE;IACzBG,YAAU,CAACK,IAAI,CAACE,cAAc,CAC7B,QAAQ,EACRpB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;AACD,CAAC;AAACe,OAAA,CAAAvB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.collectIdentifierKeys = collectIdentifierKeys;
|
|
7
|
+
exports.hasAnyKeys = void 0;
|
|
7
8
|
function collectIdentifierKeys(identifier) {
|
|
8
9
|
"worklet";
|
|
9
10
|
|
|
@@ -20,4 +21,13 @@ function collectIdentifierKeys(identifier) {
|
|
|
20
21
|
}
|
|
21
22
|
return allKeys;
|
|
22
23
|
}
|
|
24
|
+
const hasAnyKeys = record => {
|
|
25
|
+
"worklet";
|
|
26
|
+
|
|
27
|
+
for (const _key in record) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
};
|
|
32
|
+
exports.hasAnyKeys = hasAnyKeys;
|
|
23
33
|
//# sourceMappingURL=keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push","hasAnyKeys","record","_key","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":";;;;;;;AAEO,SAASA,qBAAqBA,CACpCC,UAA+C,EACjC;EACd,SAAS;;EACT,IAAI,CAACA,UAAU,EAAE,OAAO,EAAE;EAE1B,MAAMC,OAAoB,GAAG,CAACD,UAAU,CAACE,SAAS,CAAC;EACnD,MAAMC,SAAS,GAAGH,UAAU,CAACI,YAAY;EACzC,IAAID,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;IACtC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;MAC1C,MAAMC,GAAG,GAAGJ,SAAS,CAACG,CAAC,CAAC;MACxB,IAAI,CAACL,OAAO,CAACO,QAAQ,CAACD,GAAG,CAAC,EAAE;QAC3BN,OAAO,CAACQ,IAAI,CAACF,GAAG,CAAC;MAClB;IACD;EACD;EAEA,OAAON,OAAO;AACf;AAEO,MAAMS,UAAU,GAAIC,MAA+B,IAAK;EAC9D,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAACE,OAAA,CAAAH,UAAA,GAAAA,UAAA","ignoreList":[]}
|