react-native-screen-transitions 3.9.0-alpha.1 → 3.9.0-alpha.3
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/lib/commonjs/shared/components/boundary/components/boundary-target.js +21 -16
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +88 -114
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +14 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +51 -24
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +7 -10
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +10 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +82 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +10 -13
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/index.js +27 -30
- package/lib/commonjs/shared/components/boundary/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +58 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/host.js +20 -4
- package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +53 -32
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +206 -96
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +14 -2
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +5 -44
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +37 -5
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +15 -2
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js +18 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +10 -3
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +28 -49
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +254 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +38 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +29 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +10 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +25 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +65 -0
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +12 -2
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -21
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js +4 -9
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +2 -20
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +2 -14
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -16
- 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 -15
- 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 +4 -16
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +6 -3
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +143 -24
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/screen-composer.js +1 -1
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js +95 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js +32 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +16 -11
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +1 -20
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +96 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -36
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +1 -19
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +8 -3
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/index.js +38 -7
- package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/{styles.provider.js → slot.provider.js} +34 -21
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +53 -0
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +37 -2
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +11 -4
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +134 -51
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +1 -3
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +5 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +10 -69
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js +59 -0
- package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +8 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +59 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/logger.js +11 -0
- package/lib/commonjs/shared/utils/logger.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-target.js +19 -14
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +93 -119
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +30 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +51 -24
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +7 -10
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +10 -7
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +77 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +10 -13
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/index.js +27 -30
- package/lib/module/shared/components/boundary/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +53 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/host.js +21 -5
- package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +53 -32
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +213 -103
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +15 -3
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +4 -41
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +35 -4
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +16 -2
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js +13 -0
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/naming.js +8 -2
- package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js +29 -49
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +246 -0
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +33 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +24 -0
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +8 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js +20 -0
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +57 -0
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -0
- package/lib/module/shared/components/boundary/utils/destination-signals.js +12 -2
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -21
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/source-signals.js +4 -9
- package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +4 -22
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +2 -2
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +4 -16
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +4 -16
- 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 +5 -16
- 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 +4 -16
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +6 -3
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +144 -25
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/screen-composer.js +2 -2
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js +89 -0
- package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js +26 -0
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +16 -11
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +0 -18
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +0 -9
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +87 -0
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -36
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +1 -19
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +9 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/index.js +2 -1
- package/lib/module/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +66 -0
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +47 -0
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +33 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +11 -4
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +135 -53
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +1 -3
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +5 -0
- 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/styles/compute.js +10 -69
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js +52 -0
- package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +9 -2
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +58 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/logger.js +11 -0
- package/lib/module/shared/utils/logger.js.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts +11 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +28 -0
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +5 -6
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/index.d.ts +36 -229
- package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +4 -3
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +0 -7
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +16 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +16 -32
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +35 -0
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +4 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +37 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/types.d.ts +9 -36
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/utils/source-signals.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/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +3 -215
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -3
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts +16 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +3 -4
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +4 -6
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +8 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +4 -3
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +22 -20
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +1 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +7 -1
- package/lib/typescript/shared/types/animation.types.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/helpers/styles/local-transform.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/logger.d.ts +6 -0
- package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/boundary/components/boundary-target.tsx +30 -16
- package/src/shared/components/boundary/create-boundary-component.tsx +132 -164
- package/src/shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts +41 -0
- package/src/shared/components/boundary/hooks/{use-initial-destination-measurement.ts → lifecycles/use-initial-destination-measurement.ts} +65 -22
- package/src/shared/components/boundary/hooks/{use-initial-source-measurement.ts → lifecycles/use-initial-source-measurement.ts} +10 -12
- package/src/shared/components/boundary/hooks/{use-refresh-boundary.ts → lifecycles/use-refresh-boundary.ts} +10 -10
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +97 -0
- package/src/shared/components/boundary/hooks/use-measurer.ts +16 -24
- package/src/shared/components/boundary/index.tsx +56 -30
- package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +66 -0
- package/src/shared/components/boundary/portal/components/host.tsx +20 -5
- package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +67 -52
- package/src/shared/components/boundary/portal/components/portal.tsx +281 -120
- package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +23 -2
- package/src/shared/components/boundary/portal/stores/host-registry.store.ts +4 -51
- package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +59 -6
- package/src/shared/components/boundary/portal/teleport.ts +28 -3
- package/src/shared/components/boundary/portal/utils/has-local-slot.ts +16 -0
- package/src/shared/components/boundary/portal/utils/naming.ts +11 -1
- package/src/shared/components/boundary/portal/utils/offset-style.ts +37 -139
- package/src/shared/components/boundary/portal/utils/ownership.ts +371 -0
- package/src/shared/components/boundary/portal/utils/resolve-portal.ts +50 -0
- package/src/shared/components/boundary/portal/utils/shallow-equal.ts +25 -0
- package/src/shared/components/boundary/portal/utils/teleport-control.ts +12 -0
- package/src/shared/components/boundary/portal/utils/visible-host.ts +24 -0
- package/src/shared/components/boundary/providers/{boundary-owner.provider.tsx → boundary-root.provider.tsx} +33 -47
- package/src/shared/components/boundary/types.ts +9 -39
- package/src/shared/components/boundary/utils/destination-signals.ts +22 -2
- package/src/shared/components/boundary/utils/refresh-signals.ts +0 -41
- package/src/shared/components/boundary/utils/source-signals.ts +5 -17
- package/src/shared/components/create-transition-aware-component.tsx +3 -25
- package/src/shared/components/overlay/variations/float-overlay.tsx +3 -3
- package/src/shared/components/screen-container/layers/backdrop.tsx +4 -17
- package/src/shared/components/screen-container/layers/content.tsx +4 -16
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +8 -18
- package/src/shared/components/screen-container/layers/surface-container.tsx +4 -17
- package/src/shared/index.ts +0 -5
- package/src/shared/providers/helpers/measured-bounds-writes.ts +6 -11
- package/src/shared/providers/screen/animation/helpers/derivations.ts +3 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +251 -68
- package/src/shared/providers/screen/screen-composer.tsx +3 -3
- package/src/shared/providers/screen/styles/helpers/compose-slot-style.ts +129 -0
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +45 -8
- package/src/shared/providers/screen/styles/helpers/opening-phase.ts +25 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +22 -12
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +3 -1
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +0 -24
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +0 -12
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +111 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +48 -38
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +0 -18
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +17 -4
- package/src/shared/providers/screen/styles/index.tsx +13 -4
- package/src/shared/providers/screen/styles/slot.provider.tsx +93 -0
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +71 -0
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +41 -1
- package/src/shared/stores/bounds/internals/entries.ts +13 -5
- package/src/shared/stores/bounds/internals/links.ts +167 -85
- package/src/shared/stores/bounds/internals/resolver.ts +0 -2
- package/src/shared/stores/bounds/types.ts +24 -22
- package/src/shared/stores/system.store.ts +6 -0
- package/src/shared/types/animation.types.ts +8 -1
- package/src/shared/utils/bounds/helpers/styles/compute.ts +22 -124
- package/src/shared/utils/bounds/helpers/styles/local-transform.ts +86 -0
- package/src/shared/utils/bounds/navigation/zoom/build.ts +9 -1
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +96 -0
- package/src/shared/utils/logger.ts +12 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +0 -40
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js +0 -68
- package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +0 -26
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js +0 -23
- package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/attachment.js +0 -35
- package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +0 -1
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +0 -60
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +0 -21
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +0 -53
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +0 -21
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts +0 -44
- package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +0 -14
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +0 -1
- package/src/shared/components/boundary/hooks/use-boundary-presence.ts +0 -28
- package/src/shared/components/boundary/portal/utils/attachment.ts +0 -48
- package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +0 -22
- package/src/shared/providers/screen/styles/styles.provider.tsx +0 -60
|
@@ -22,15 +22,15 @@ const getForwardedSlot = (slot, hasAnyKeys) => {
|
|
|
22
22
|
}
|
|
23
23
|
return slot;
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const hasDefinedBucketValue = value => {
|
|
26
26
|
"worklet";
|
|
27
27
|
|
|
28
|
-
return
|
|
28
|
+
return value !== undefined && value !== null;
|
|
29
29
|
};
|
|
30
|
-
const
|
|
30
|
+
const hasEitherResetPatch = (hasStyleResetPatch, hasPropResetPatch) => {
|
|
31
31
|
"worklet";
|
|
32
32
|
|
|
33
|
-
return
|
|
33
|
+
return hasStyleResetPatch || hasPropResetPatch;
|
|
34
34
|
};
|
|
35
35
|
const hasResettableDisappearedKeys = (previousKeys, previousResetValues, currentKeys) => {
|
|
36
36
|
"worklet";
|
|
@@ -68,6 +68,7 @@ const getResolvedSlotOutput = ({
|
|
|
68
68
|
resolvedSlot: (0, _materializeSlot.materializeResolvedSlot)({
|
|
69
69
|
baseStyle: state.baseStyle,
|
|
70
70
|
baseProps: state.baseProps,
|
|
71
|
+
boundsLocalTransform: slot?.boundsLocalTransform,
|
|
71
72
|
previousState,
|
|
72
73
|
styleKeys: state.styleKeys,
|
|
73
74
|
propKeys: state.propKeys,
|
|
@@ -111,6 +112,7 @@ const getMergedLocalSlot = (context, slotId) => {
|
|
|
111
112
|
|
|
112
113
|
let mergedStyle;
|
|
113
114
|
let mergedProps;
|
|
115
|
+
let boundsLocalTransform;
|
|
114
116
|
for (let index = 0; index < context.localStylesMaps.length; index++) {
|
|
115
117
|
const slot = context.localStylesMaps[index]?.[slotId];
|
|
116
118
|
if (slot === undefined) {
|
|
@@ -118,13 +120,17 @@ const getMergedLocalSlot = (context, slotId) => {
|
|
|
118
120
|
}
|
|
119
121
|
mergedStyle = mergeBucket(mergedStyle, slot.style);
|
|
120
122
|
mergedProps = mergeBucket(mergedProps, slot.props);
|
|
123
|
+
if (slot.boundsLocalTransform?.length) {
|
|
124
|
+
boundsLocalTransform = slot.boundsLocalTransform;
|
|
125
|
+
}
|
|
121
126
|
}
|
|
122
|
-
if (!mergedStyle && !mergedProps) {
|
|
127
|
+
if (!mergedStyle && !mergedProps && !boundsLocalTransform) {
|
|
123
128
|
return undefined;
|
|
124
129
|
}
|
|
125
130
|
return {
|
|
126
131
|
style: mergedStyle,
|
|
127
|
-
props: mergedProps
|
|
132
|
+
props: mergedProps,
|
|
133
|
+
boundsLocalTransform
|
|
128
134
|
};
|
|
129
135
|
};
|
|
130
136
|
const getSlotForId = (context, slotId) => {
|
|
@@ -236,7 +242,7 @@ const areSlotsEqual = (left, right) => {
|
|
|
236
242
|
if (!left || !right) {
|
|
237
243
|
return false;
|
|
238
244
|
}
|
|
239
|
-
return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props);
|
|
245
|
+
return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props) && areTransformArraysEqual(left.boundsLocalTransform, right.boundsLocalTransform);
|
|
240
246
|
};
|
|
241
247
|
const reuseEqualResolvedSlots = ({
|
|
242
248
|
resolvedStylesMap,
|
|
@@ -328,10 +334,9 @@ const appendPreviousSlots = context => {
|
|
|
328
334
|
};
|
|
329
335
|
|
|
330
336
|
/**
|
|
331
|
-
* Resolves slot styles for the current screen pass and
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* concrete identity values.
|
|
337
|
+
* Resolves slot styles for the current screen pass and emits reset values for
|
|
338
|
+
* transition-owned keys that existed in the previous resolved map but no longer
|
|
339
|
+
* exist in the current one.
|
|
335
340
|
*/
|
|
336
341
|
const resolveSlotStyles = ({
|
|
337
342
|
localStylesMaps,
|
package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_materializeSlot","_slotState","_areResettableStatesEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","getResolvedSlotState","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","materializeResolvedSlot","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","shouldSlotInherit","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","exports","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.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NmB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC;AAACqB,OAAA,CAAAW,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_constants","require","_materializeSlot","_slotState","_areResettableStatesEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasDefinedBucketValue","value","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","getResolvedSlotState","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","materializeResolvedSlot","baseStyle","baseProps","boundsLocalTransform","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","shouldSlotInherit","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","exports","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts"],"mappings":";;;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAOA,IAAAG,yBAAA,GAAAH,OAAA;AAWA,MAAMI,gBAAgB,GAAGA,CACxBC,IAA+C,EAC/CC,UAAmB,KACf;EACJ,SAAS;;EAET,IAAI,CAACA,UAAU,EAAE;IA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O,CAAC;EAE5B,OAAO;IACNmB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC;AAACqB,OAAA,CAAAW,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js
CHANGED
|
@@ -83,6 +83,7 @@ const materializeResolvedProps = ({
|
|
|
83
83
|
const materializeResolvedSlot = ({
|
|
84
84
|
baseStyle,
|
|
85
85
|
baseProps,
|
|
86
|
+
boundsLocalTransform,
|
|
86
87
|
previousState,
|
|
87
88
|
styleKeys,
|
|
88
89
|
propKeys,
|
|
@@ -110,6 +111,7 @@ const materializeResolvedSlot = ({
|
|
|
110
111
|
});
|
|
111
112
|
resolvedSlot.style = resolvedStyle;
|
|
112
113
|
resolvedSlot.props = resolvedProps;
|
|
114
|
+
resolvedSlot.boundsLocalTransform = boundsLocalTransform;
|
|
113
115
|
if (!resolvedSlot.style && !resolvedSlot.props) {
|
|
114
116
|
return undefined;
|
|
115
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","materializeResolvedBucket","source","previousKeys","previousResetValues","currentKeys","hasAnyKeys","hasResetPatch","resetValues","undefined","resolvedBucket","keysToReset","key","previousResetValue","resetValue","value","materializeResolvedStyle","baseStyle","previousState","styleKeys","hasAnyStyleKeys","hasStyleResetPatch","styleResetValues","STYLE_RESET_VALUES","materializeResolvedProps","baseProps","propKeys","hasAnyPropKeys","hasPropResetPatch","propResetValues","PROP_RESET_VALUES","materializeResolvedSlot","resolvedSlot","resolvedStyle","resolvedProps","style","props","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAGA;AACA,MAAMC,yBAAyB,GAAGA,CAAC;EAClCC,MAAM;EACNC,YAAY;EACZC,mBAAmB;EACnBC,WAAW;EACXC,UAAU;EACVC,aAAa;EAC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CAAC,CAAC;AACH,CAAC;AAED,MAAMC,wBAAwB,GAAGA,CAAC;EACjCC,SAAS;EACTP,aAAa;EACbQ,QAAQ;EACRC,cAAc;EACdC;AAOD,CAAC,KAAK;EACL,SAAS;;EACT,OAAO3B,yBAAyB,CAAC;IAChCC,MAAM,EAAEuB,SAAS;IACjBtB,YAAY,EAAEe,aAAa,EAAEQ,QAAQ;IACrCtB,mBAAmB,EAAEc,aAAa,EAAEW,eAAe;IACnDxB,WAAW,EAAEqB,QAAQ;IACrBpB,UAAU,EAAEqB,cAAc;IAC1BpB,aAAa,EAAEqB,iBAAiB;IAChCpB,WAAW,EAAEsB;EACd,CAAC,CAAC;AACH,CAAC;AAEM,MAAMC,uBAAuB,GAAGA,CAAC;EACvCd,SAAS;EACTQ,SAAS;
|
|
1
|
+
{"version":3,"names":["_constants","require","materializeResolvedBucket","source","previousKeys","previousResetValues","currentKeys","hasAnyKeys","hasResetPatch","resetValues","undefined","resolvedBucket","keysToReset","key","previousResetValue","resetValue","value","materializeResolvedStyle","baseStyle","previousState","styleKeys","hasAnyStyleKeys","hasStyleResetPatch","styleResetValues","STYLE_RESET_VALUES","materializeResolvedProps","baseProps","propKeys","hasAnyPropKeys","hasPropResetPatch","propResetValues","PROP_RESET_VALUES","materializeResolvedSlot","boundsLocalTransform","resolvedSlot","resolvedStyle","resolvedProps","style","props","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAGA;AACA,MAAMC,yBAAyB,GAAGA,CAAC;EAClCC,MAAM;EACNC,YAAY;EACZC,mBAAmB;EACnBC,WAAW;EACXC,UAAU;EACVC,aAAa;EACbC;AASD,CAAC,KAAK;EACL,SAAS;;EAET,IAAI,CAACF,UAAU,IAAI,CAACC,aAAa,EAAE;IAClC,OAAOE,SAAS;EACjB;EAEA,MAAMC,cAAuC,GAAG,CAAC,CAAC;EAClD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,OAAO3B,yBAAyB,CAAC;IAChCC,MAAM,EAAEuB,SAAS;IACjBtB,YAAY,EAAEe,aAAa,EAAEQ,QAAQ;IACrCtB,mBAAmB,EAAEc,aAAa,EAAEW,eAAe;IACnDxB,WAAW,EAAEqB,QAAQ;IACrBpB,UAAU,EAAEqB,cAAc;IAC1BpB,aAAa,EAAEqB,iBAAiB;IAChCpB,WAAW,EAAEsB;EACd,CAAC,CAAC;AACH,CAAC;AAEM,MAAMC,uBAAuB,GAAGA,CAAC;EACvCd,SAAS;EACTQ,SAAS;EACTO,oBAAoB;EACpBd,aAAa;EACbC,SAAS;EACTO,QAAQ;EACRN,eAAe;EACfO,cAAc;EACdN,kBAAkB;EAClBO;AAYD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMK,YAAY,GAAG,CAAC,CAAkC;EAExD,MAAMC,aAAa,GAAGlB,wBAAwB,CAAC;IAC9CC,SAAS;IACTC,aAAa;IACbC,SAAS;IACTC,eAAe;IACfC;EACD,CAAC,CAAC;EACF,MAAMc,aAAa,GAAGX,wBAAwB,CAAC;IAC9CC,SAAS;IACTP,aAAa;IACbQ,QAAQ;IACRC,cAAc;IACdC;EACD,CAAC,CAAC;EAEFK,YAAY,CAACG,KAAK,GAAGF,aAAa;EAClCD,YAAY,CAACI,KAAK,GAAGF,aAAa;EAClCF,YAAY,CAACD,oBAAoB,GAAGA,oBAAoB;EAExD,IAAI,CAACC,YAAY,CAACG,KAAK,IAAI,CAACH,YAAY,CAACI,KAAK,EAAE;IAC/C,OAAO5B,SAAS;EACjB;EAEA,OAAOwB,YAAY;AACpB,CAAC;AAACK,OAAA,CAAAP,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js
CHANGED
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getResolvedSlotState = void 0;
|
|
7
7
|
var _resetValues = require("./reset-values");
|
|
8
|
-
const hasTrackedKey = (keys, key) => {
|
|
9
|
-
"worklet";
|
|
10
|
-
|
|
11
|
-
return keys !== undefined && keys[key] === true;
|
|
12
|
-
};
|
|
13
8
|
const isDefinedStyleValue = value => {
|
|
14
9
|
"worklet";
|
|
15
10
|
|
|
@@ -47,20 +42,6 @@ const collectDefinedKeys = ({
|
|
|
47
42
|
hasKeys
|
|
48
43
|
};
|
|
49
44
|
};
|
|
50
|
-
const hasDisappearedKeys = (previousKeys, currentKeys) => {
|
|
51
|
-
"worklet";
|
|
52
|
-
|
|
53
|
-
if (!previousKeys) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
for (const key in previousKeys) {
|
|
57
|
-
if (!hasTrackedKey(currentKeys, key)) {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
};
|
|
63
|
-
exports.hasDisappearedKeys = hasDisappearedKeys;
|
|
64
45
|
const hasEitherKeySet = (styleKeys, propKeys) => {
|
|
65
46
|
"worklet";
|
|
66
47
|
|
package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_resetValues","require","
|
|
1
|
+
{"version":3,"names":["_resetValues","require","isDefinedStyleValue","value","undefined","collectDefinedKeys","source","getResetValue","sourceValues","keys","resetValues","hasKeys","hasResetValues","key","resetValue","hasEitherKeySet","styleKeys","propKeys","getNextStyleState","styleResetValues","propResetValues","getResolvedSlotState","slot","baseStyle","style","baseProps","props","hasAnyStyleKeys","getStyleResetValue","hasAnyPropKeys","getPropResetValue","hasAnyKeys","nextState","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAGA,MAAMC,mBAAm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,SAAS,EAAEC,QAAQ,CAAC,EAAE;IAC1C,OAAOb,SAAS;EACjB;EAEA,OAAO;IACNY,SAAS;IACTG,gBAAgB;IAChBF,QAAQ;IACRG;EACD,CAAC;AACF,CAAC;AAEM,MAAMC,oBAAoB,GAChCC,IAA+C,IAC3C;EACJ,SAAS;;EACT,MAAMC,SAAS,GAAGD,IAAI,EAAEE,KAA4C;EACpE,MAAMC,SAAS,GAAGH,IAAI,EAAEI,KAA4C;EAEpE,MAAM;IACLjB,IAAI,EAAEO,SAAS;IACfN,WAAW,EAAES,gBAAgB;IAC7BR,OAAO,EAAEgB;EACV,CAAC,GAAGtB,kBAAkB,CAAC;IACtBC,MAAM,EAAEiB,SAAS;IACjBhB,aAAa,EAAEqB;EAChB,CAAC,CAAC;EACF,MAAM;IACLnB,IAAI,EAAEQ,QAAQ;IACdP,WAAW,EAAEU,eAAe;IAC5BT,OAAO,EAAEkB;EACV,CAAC,GAAGxB,kBAAkB,CAAC;IACtBC,MAAM,EAAEmB,SAAS;IACjBlB,aAAa,EAAEuB;EAChB,CAAC,CAAC;EAEF,OAAO;IACNP,SAAS;IACTE,SAAS;IACTT,SAAS;IACTC,QAAQ;IACRU,eAAe;IACfE,cAAc;IACdE,UAAU,EAAEJ,eAAe,IAAIE,cAAc;IAC7CG,SAAS,EAAEd,iBAAiB,CAAC;MAC5BF,SAAS;MACTG,gBAAgB;MAChBF,QAAQ;MACRG;IACD,CAAC;EACF,CAAC;AACF,CAAC;AAACa,OAAA,CAAAZ,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.resolveScreenVisibilityGate = void 0;
|
|
7
7
|
var _system = require("../../../../stores/system.store");
|
|
8
8
|
const resolveScreenVisibilityGate = ({
|
|
9
9
|
isFloatingOverlay,
|
|
@@ -24,10 +24,6 @@ const resolveScreenVisibilityGate = ({
|
|
|
24
24
|
const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount > 0;
|
|
25
25
|
const isPendingOpen = pendingLifecycleRequestKind === _system.LifecycleTransitionRequestKind.Open;
|
|
26
26
|
const isOpening = isPendingOpen || !!entering;
|
|
27
|
-
|
|
28
|
-
// Keep the screen hidden until the first transformed opening frame exists.
|
|
29
|
-
// The lifecycle request is cleared before the RAF-scheduled progress
|
|
30
|
-
// animation starts, so `entering` carries the gate through that one-frame gap.
|
|
31
27
|
const isWaitingForOpenToStart = progress <= 0;
|
|
32
28
|
const shouldBlock = (hasPendingLifecycleBlock || isWaitingForOpenToStart) && isOpening;
|
|
33
29
|
return {
|
|
@@ -36,10 +32,4 @@ const resolveScreenVisibilityGate = ({
|
|
|
36
32
|
};
|
|
37
33
|
};
|
|
38
34
|
exports.resolveScreenVisibilityGate = resolveScreenVisibilityGate;
|
|
39
|
-
const shouldBlockScreenVisibility = state => {
|
|
40
|
-
"worklet";
|
|
41
|
-
|
|
42
|
-
return resolveScreenVisibilityGate(state).shouldBlock;
|
|
43
|
-
};
|
|
44
|
-
exports.shouldBlockScreenVisibility = shouldBlockScreenVisibility;
|
|
45
35
|
//# sourceMappingURL=visibility-gate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_system","require","resolveScreenVisibilityGate","isFloatingOverlay","hasVisibilityGateOpened","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","progress","entering","shouldBlock","shouldOpenGate","hasPendingLifecycleBlock","isPendingOpen","LifecycleTransitionRequestKind","Open","isOpening","isWaitingForOpenToStart","exports"
|
|
1
|
+
{"version":3,"names":["_system","require","resolveScreenVisibilityGate","isFloatingOverlay","hasVisibilityGateOpened","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","progress","entering","shouldBlock","shouldOpenGate","hasPendingLifecycleBlock","isPendingOpen","LifecycleTransitionRequestKind","Open","isOpening","isWaitingForOpenToStart","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/visibility-gate.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAgBO,MAAMC,2BAA2B,GAAGA,CAAC;EAC3CC,iBAAiB;EACjBC,uBAAuB;EACvBC,+BAA+B;EAC/BC,2BAA2B;EAC3BC,QAAQ;EACRC;AAC0B,CAAC,KAAmC;EAC9D,SAAS;;EACT,IAAIL,iBAAiB,IAAIC,uBAAuB,EAAE;IACjD,OAAO;MACNK,WAAW,EAAE,KAAK;MAClBC,cAAc,EAAE;IACjB,CAAC;EACF;EAEA,MAAMC,wBAAwB,GAAGN,+BAA+B,GAAG,CAAC;EACpE,MAAMO,aAAa,GAClBN,2BAA2B,KAAKO,sCAA8B,CAACC,IAAI;EACpE,MAAMC,SAAS,GAAGH,aAAa,IAAI,CAAC,CAACJ,QAAQ;EAC7C,MAAMQ,uBAAuB,GAAGT,QAAQ,IAAI,CAAC;EAC7C,MAAME,WAAW,GAChB,CAACE,wBAAwB,IAAIK,uBAAuB,KAAKD,SAAS;EAEnE,OAAO;IACNN,WAAW;IACXC,cAAc,EAAE,CAACD,WAAW,IAAIF,QAAQ,GAAG;EAC5C,CAAC;AACF,CAAC;AAACU,OAAA,CAAAf,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useSlotStyles = exports.useSlotStackingStyles = exports.useSlotProps = exports.useSlotLayoutStyles = exports.useComposedSlotStyles = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
+
var _constants = require("../../../../constants");
|
|
10
|
+
var _composeSlotStyle = require("../helpers/compose-slot-style");
|
|
11
|
+
var _slot = require("../slot.provider");
|
|
12
|
+
const useSlotStyles = slotId => {
|
|
13
|
+
const {
|
|
14
|
+
slotsMap
|
|
15
|
+
} = (0, _slot.useScreenSlots)();
|
|
16
|
+
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
17
|
+
const slot = slotId ? slotsMap.get()[slotId] : undefined;
|
|
18
|
+
const slotStyle = slot?.style ?? _constants.NO_STYLES;
|
|
19
|
+
return (0, _composeSlotStyle.composeSlotStyleWithLocalTransform)(slotStyle, undefined, slot?.boundsLocalTransform);
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
exports.useSlotStyles = useSlotStyles;
|
|
23
|
+
const useComposedSlotStyles = (slotId, style) => {
|
|
24
|
+
const {
|
|
25
|
+
slotsMap
|
|
26
|
+
} = (0, _slot.useScreenSlots)();
|
|
27
|
+
const localTransform = (0, _react.useMemo)(() => (0, _composeSlotStyle.getLocalTransformForSlotComposition)(style), [style]);
|
|
28
|
+
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
29
|
+
const slot = slotId ? slotsMap.get()[slotId] : undefined;
|
|
30
|
+
const slotStyle = slot?.style ?? _constants.NO_STYLES;
|
|
31
|
+
return (0, _composeSlotStyle.composeSlotStyleWithLocalTransform)(slotStyle, localTransform, slot?.boundsLocalTransform);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Stacking-only slice (`zIndex`/`elevation`) of a slot's style. Returned
|
|
37
|
+
* separately so an owner can keep just its stacking context while a nested
|
|
38
|
+
* target takes the full associated style. Yields `NO_STYLES` when neither is set.
|
|
39
|
+
*/
|
|
40
|
+
exports.useComposedSlotStyles = useComposedSlotStyles;
|
|
41
|
+
const useSlotStackingStyles = slotId => {
|
|
42
|
+
const {
|
|
43
|
+
slotsMap
|
|
44
|
+
} = (0, _slot.useScreenSlots)();
|
|
45
|
+
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
46
|
+
const baseStyle = slotId ? slotsMap.get()[slotId]?.style : undefined;
|
|
47
|
+
const zIndex = baseStyle?.zIndex ?? 0;
|
|
48
|
+
const elevation = baseStyle?.elevation ?? 0;
|
|
49
|
+
if (zIndex === 0 && elevation === 0) {
|
|
50
|
+
return _constants.NO_STYLES;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
zIndex,
|
|
54
|
+
elevation
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.useSlotStackingStyles = useSlotStackingStyles;
|
|
59
|
+
const useSlotLayoutStyles = slotId => {
|
|
60
|
+
const {
|
|
61
|
+
slotsMap
|
|
62
|
+
} = (0, _slot.useScreenSlots)();
|
|
63
|
+
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
64
|
+
const baseStyle = slotId ? slotsMap.get()[slotId]?.style : undefined;
|
|
65
|
+
const width = baseStyle?.width;
|
|
66
|
+
const height = baseStyle?.height;
|
|
67
|
+
const minWidth = baseStyle?.minWidth;
|
|
68
|
+
const minHeight = baseStyle?.minHeight;
|
|
69
|
+
const maxWidth = baseStyle?.maxWidth;
|
|
70
|
+
const maxHeight = baseStyle?.maxHeight;
|
|
71
|
+
const aspectRatio = baseStyle?.aspectRatio;
|
|
72
|
+
if (width === undefined && height === undefined && minWidth === undefined && minHeight === undefined && maxWidth === undefined && maxHeight === undefined && aspectRatio === undefined) {
|
|
73
|
+
return _constants.NO_STYLES;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
width,
|
|
77
|
+
height,
|
|
78
|
+
minWidth,
|
|
79
|
+
minHeight,
|
|
80
|
+
maxWidth,
|
|
81
|
+
maxHeight,
|
|
82
|
+
aspectRatio
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
exports.useSlotLayoutStyles = useSlotLayoutStyles;
|
|
87
|
+
const useSlotProps = slotId => {
|
|
88
|
+
const {
|
|
89
|
+
slotsMap
|
|
90
|
+
} = (0, _slot.useScreenSlots)();
|
|
91
|
+
return (0, _reactNativeReanimated.useAnimatedProps)(() => {
|
|
92
|
+
return (slotId ? slotsMap.get()[slotId]?.props : undefined) ?? _constants.NO_PROPS;
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
exports.useSlotProps = useSlotProps;
|
|
96
|
+
//# sourceMappingURL=slot-resolvers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_composeSlotStyle","_slot","useSlotStyles","slotId","slotsMap","useScreenSlots","useAnimatedStyle","slot","get","undefined","slotStyle","style","NO_STYLES","composeSlotStyleWithLocalTransform","boundsLocalTransform","exports","useComposedSlotStyles","localTransform","useMemo","getLocalTransformForSlotComposition","useSlotStackingStyles","baseStyle","zIndex","elevation","useSlotLayoutStyles","width","height","minWidth","minHeight","maxWidth","maxHeight","aspectRatio","useSlotProps","useAnimatedProps","props","NO_PROPS"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/slot-resolvers.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAIA,IAAAI,KAAA,GAAAJ,OAAA;AAEO,MAAMK,aAAa,GAAIC,MAA0B,IAAK;EAC5D,MAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAErC,OAAO,IAAAC,uCAAgB,EAAC,MAAM;IAC7B,MAAMC,IAAI,GAAGJ,MAAM,GAAGC,QAAQ,CAACI,GAAG,CAAC,CAAC,CAACL,MAAM,CAAC,GAAGM,SAAS;IACxD,MAAMC,SAAS,GAAGH,IAAI,EAAEI,KAAK,IAAIC,oBAAS;IAE1C,OAAO,IAAAC,oDAAkC,EACxCH,SAAS,EACTD,SAAS,EACTF,IAAI,EAAEO,oBACP,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAACC,OAAA,CAAAb,aAAA,GAAAA,a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,KAAK,GAAGzB,SAAS,KAAK0B,mBAAQ;EACxE,CAAC,CAAC;AACH,CAAC;AAACpB,OAAA,CAAAiB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useInterpolatedStylesMap = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _constants = require("../../../../constants");
|
|
9
|
+
var _animation = require("../../../../stores/animation.store");
|
|
9
10
|
var _system = require("../../../../stores/system.store");
|
|
10
11
|
var _logger = require("../../../../utils/logger");
|
|
11
|
-
var
|
|
12
|
+
var _animation2 = require("../../animation");
|
|
12
13
|
var _useBuildBoundsAccessor = require("../../animation/helpers/accessors/use-build-bounds-accessor");
|
|
13
14
|
var _useBuildTransitionAccessor = require("../../animation/helpers/accessors/use-build-transition-accessor");
|
|
14
15
|
var _readScreenAnimationRevisions = require("../../animation/helpers/read-screen-animation-revisions");
|
|
@@ -16,17 +17,17 @@ var _selectedInterpolatorOptions = require("../../animation/helpers/selected-int
|
|
|
16
17
|
var _descriptors = require("../../descriptors");
|
|
17
18
|
var _options = require("../../options");
|
|
18
19
|
var _normalizeSlots = require("../helpers/normalize-slots");
|
|
19
|
-
var
|
|
20
|
+
var _openingPhase = require("../helpers/opening-phase");
|
|
20
21
|
var _stripInterpolatorOptions = require("../helpers/strip-interpolator-options");
|
|
21
22
|
const NO_STYLE_LAYERS = [];
|
|
22
|
-
const normalizeRawStyleMap =
|
|
23
|
+
const normalizeRawStyleMap = rawStyleMap => {
|
|
23
24
|
"worklet";
|
|
24
25
|
|
|
25
26
|
if (!rawStyleMap) {
|
|
26
27
|
return _constants.NO_STYLES;
|
|
27
28
|
}
|
|
28
29
|
const stylesMap = (0, _normalizeSlots.normalizeSlots)((0, _stripInterpolatorOptions.stripInterpolatorOptions)(rawStyleMap));
|
|
29
|
-
return
|
|
30
|
+
return stylesMap;
|
|
30
31
|
};
|
|
31
32
|
const runInterpolator = ({
|
|
32
33
|
interpolator,
|
|
@@ -34,8 +35,7 @@ const runInterpolator = ({
|
|
|
34
35
|
progress,
|
|
35
36
|
next,
|
|
36
37
|
bounds,
|
|
37
|
-
transition
|
|
38
|
-
shouldDeferStyleBuckets
|
|
38
|
+
transition
|
|
39
39
|
}) => {
|
|
40
40
|
"worklet";
|
|
41
41
|
|
|
@@ -53,7 +53,7 @@ const runInterpolator = ({
|
|
|
53
53
|
const rawStyleMap = typeof raw === "object" && raw != null ? raw : undefined;
|
|
54
54
|
return {
|
|
55
55
|
rawStyleMap,
|
|
56
|
-
stylesMap: normalizeRawStyleMap(rawStyleMap
|
|
56
|
+
stylesMap: normalizeRawStyleMap(rawStyleMap)
|
|
57
57
|
};
|
|
58
58
|
} catch (_) {
|
|
59
59
|
if (__DEV__) {
|
|
@@ -86,19 +86,13 @@ const appendLayer = (layers, result) => {
|
|
|
86
86
|
* normal interpolator selection once the gesture-driven close is no longer in
|
|
87
87
|
* play.
|
|
88
88
|
*
|
|
89
|
-
* Visibility gating happens downstream while lifecycle start is blocked for
|
|
90
|
-
* pending destination measurement. We still run the interpolator during that
|
|
91
|
-
* hidden window so animated props and runtime options stay warm, but defer style
|
|
92
|
-
* buckets so measurement sees the final untransformed layout.
|
|
93
|
-
*
|
|
94
89
|
* The result is ordered from lowest to highest priority. Resolution happens
|
|
95
90
|
* downstream, where slot ids determine whether slots inherit from ancestors and
|
|
96
91
|
* where higher owner layers override lower owner layers per key.
|
|
97
92
|
*/
|
|
98
93
|
const useInterpolatedStylesMap = () => {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
} = (0, _descriptors.useDescriptorDerivations)();
|
|
94
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
95
|
+
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
102
96
|
const screenOptions = (0, _options.useScreenOptionsContext)();
|
|
103
97
|
const {
|
|
104
98
|
screenInterpolatorProps,
|
|
@@ -108,29 +102,24 @@ const useInterpolatedStylesMap = () => {
|
|
|
108
102
|
currentInterpolator,
|
|
109
103
|
ancestorScreenAnimationSources,
|
|
110
104
|
descendantScreenAnimationSources
|
|
111
|
-
} = (0,
|
|
105
|
+
} = (0, _animation2.useScreenAnimationContext)();
|
|
112
106
|
const boundsAccessor = (0, _useBuildBoundsAccessor.useBuildBoundsAccessor)();
|
|
113
107
|
const transition = (0, _useBuildTransitionAccessor.useBuildTransitionAccessor)();
|
|
114
|
-
const
|
|
108
|
+
const nextInterpolatorReady = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
109
|
+
const activeScreenKey = nextScreenKey ?? currentScreenKey;
|
|
110
|
+
const {
|
|
111
|
+
entering: activeEntering,
|
|
112
|
+
transitionProgress: activeTransitionProgress
|
|
113
|
+
} = _animation.AnimationStore.getBag(activeScreenKey);
|
|
114
|
+
const {
|
|
115
|
+
pendingLifecycleRequestKind: activePendingLifecycleRequestKind
|
|
116
|
+
} = _system.SystemStore.getBag(activeScreenKey);
|
|
115
117
|
const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
116
|
-
|
|
118
|
+
const localStylesMaps = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
117
119
|
"worklet";
|
|
118
120
|
|
|
119
121
|
(0, _readScreenAnimationRevisions.readScreenAnimationRevisions)(screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources);
|
|
120
122
|
const props = screenInterpolatorProps.get();
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* There is a niche case where bounds can be attached to a view that's styles are out of viewport.
|
|
124
|
-
* Due to our blocking mechanism and ensuring accurate measurement, this boundary measurement
|
|
125
|
-
* will be blocked and the screen will never be visible. To mitigate this, we:
|
|
126
|
-
*
|
|
127
|
-
* - Defer the style buckets (props are fine), to ensure we get the correct position of the boundary
|
|
128
|
-
*
|
|
129
|
-
* Again this is very niche, and since we're not marketing ourselves as a proper shared element transition
|
|
130
|
-
* package, we won't spend time finding a better solution for this.
|
|
131
|
-
*
|
|
132
|
-
*/
|
|
133
|
-
const shouldDeferStyleBuckets = pendingLifecycleStartBlockCount.get() > 0;
|
|
134
123
|
const {
|
|
135
124
|
current,
|
|
136
125
|
next,
|
|
@@ -149,7 +138,16 @@ const useInterpolatedStylesMap = () => {
|
|
|
149
138
|
isGesturingDuringCloseAnimation.set(false);
|
|
150
139
|
}
|
|
151
140
|
const isInGestureMode = !!isDragging || isGesturingDuringCloseAnimation.get();
|
|
152
|
-
|
|
141
|
+
|
|
142
|
+
// The current screen keeps interpolator ownership until the next screen is
|
|
143
|
+
// genuinely live: never during a gesture-driven close, never before a next
|
|
144
|
+
// interpolator exists, and never in the next screen's pre-start window
|
|
145
|
+
// (entering, but no transformed frame yet). Only then does "next" take over.
|
|
146
|
+
const isPendingOpen = activePendingLifecycleRequestKind.get() === _system.LifecycleTransitionRequestKind.Open;
|
|
147
|
+
const activeOpening = isPendingOpen || !!activeEntering.get();
|
|
148
|
+
const currentOwnsInterpolator = isInGestureMode || !nextInterpolator || (0, _openingPhase.isOpeningBeforeStart)(activeOpening ? 1 : 0, activeTransitionProgress.get());
|
|
149
|
+
nextInterpolatorReady.set(currentOwnsInterpolator ? 0 : 1);
|
|
150
|
+
const interpolatorOptionsOwner = currentOwnsInterpolator ? "current" : "next";
|
|
153
151
|
let selectedProgress = progress;
|
|
154
152
|
let selectedNext = next;
|
|
155
153
|
if (isInGestureMode) {
|
|
@@ -162,8 +160,7 @@ const useInterpolatedStylesMap = () => {
|
|
|
162
160
|
progress: selectedProgress,
|
|
163
161
|
next: selectedNext,
|
|
164
162
|
bounds: boundsAccessor,
|
|
165
|
-
transition
|
|
166
|
-
shouldDeferStyleBuckets
|
|
163
|
+
transition
|
|
167
164
|
});
|
|
168
165
|
if (interpolatorOptionsOwner === "current") {
|
|
169
166
|
(0, _selectedInterpolatorOptions.syncSelectedInterpolatorOptions)(selectedInterpolatorOptions, "current", currentResult?.rawStyleMap?.options);
|
|
@@ -179,8 +176,7 @@ const useInterpolatedStylesMap = () => {
|
|
|
179
176
|
progress: selectedProgress,
|
|
180
177
|
next: selectedNext,
|
|
181
178
|
bounds: boundsAccessor,
|
|
182
|
-
transition
|
|
183
|
-
shouldDeferStyleBuckets
|
|
179
|
+
transition
|
|
184
180
|
});
|
|
185
181
|
(0, _selectedInterpolatorOptions.syncSelectedInterpolatorOptions)(selectedInterpolatorOptions, "next", nextResult?.rawStyleMap?.options);
|
|
186
182
|
(0, _options.syncScreenOptionsOverrides)(undefined, screenOptions);
|
|
@@ -192,6 +188,10 @@ const useInterpolatedStylesMap = () => {
|
|
|
192
188
|
}
|
|
193
189
|
return layers;
|
|
194
190
|
});
|
|
191
|
+
return {
|
|
192
|
+
localStylesMaps,
|
|
193
|
+
nextInterpolatorReady
|
|
194
|
+
};
|
|
195
195
|
};
|
|
196
196
|
exports.useInterpolatedStylesMap = useInterpolatedStylesMap;
|
|
197
197
|
//# sourceMappingURL=use-interpolated-style-maps.js.map
|
package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_system","_logger","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animation","_system","_logger","_animation2","_useBuildBoundsAccessor","_useBuildTransitionAccessor","_readScreenAnimationRevisions","_selectedInterpolatorOptions","_descriptors","_options","_normalizeSlots","_openingPhase","_stripInterpolatorOptions","NO_STYLE_LAYERS","normalizeRawStyleMap","rawStyleMap","NO_STYLES","stylesMap","normalizeSlots","stripInterpolatorOptions","runInterpolator","interpolator","props","progress","next","bounds","transition","undefined","raw","_","__DEV__","logger","warn","appendLayer","layers","result","push","useInterpolatedStylesMap","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","screenOptions","useScreenOptionsContext","screenInterpolatorProps","screenInterpolatorPropsRevision","selectedInterpolatorOptions","nextInterpolator","currentInterpolator","ancestorScreenAnimationSources","descendantScreenAnimationSources","useScreenAnimationContext","boundsAccessor","useBuildBoundsAccessor","useBuildTransitionAccessor","nextInterpolatorReady","useSharedValue","activeScreenKey","entering","activeEntering","transitionProgress","activeTransitionProgress","AnimationStore","getBag","pendingLifecycleRequestKind","activePendingLifecycleRequestKind","SystemStore","isGesturingDuringCloseAnimation","localStylesMaps","useDerivedValue","readScreenAnimationRevisions","get","current","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","isPendingOpen","LifecycleTransitionRequestKind","Open","activeOpening","currentOwnsInterpolator","isOpeningBeforeStart","interpolatorOptionsOwner","selectedProgress","selectedNext","currentResult","syncSelectedInterpolatorOptions","options","syncScreenOptionsOverrides","nextResult","length","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,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AASA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,2BAAA,GAAAP,OAAA;AAEA,IAAAQ,6BAAA,GAAAR,OAAA;AACA,IAAAS,4BAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AAIA,IAAAY,eAAA,GAAAZ,OAAA;AACA,IAAAa,aAAA,GAAAb,OAAA;AAEA,IAAAc,yBAAA,GAAAd,OAAA;AAEA,MAAMe,eAAiC,GAAG,EAAE;AAgB5C,MAAMC,oBAAoB,GACzBC,WAAoD,IAChD;EACJ,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,OAAOC,oBAAS;EACjB;EAEA,MAAMC,SAAS,GAAG,IA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,EAAE3E,WAAW,EAAE4B,aAAa,CAAC;MAErE,IAAI,CAAC+C,aAAa,EAAE;QACnB,OAAO7E,eAAe;MACvB;MAEA,OAAO,CAAC6E,aAAa,CAACzE,SAAS,CAAC;IACjC;IAEA,MAAM6E,UAAU,GAAG1E,eAAe,CAAC;MAClCC,YAAY,EAAE2B,gBAAgB;MAC9B1B,KAAK;MACLC,QAAQ,EAAEiE,gBAAgB;MAC1BhE,IAAI,EAAEiE,YAAY;MAClBhE,MAAM,EAAE4B,cAAc;MACtB3B;IACD,CAAC,CAAC;IAEF,IAAAiE,4DAA+B,EAC9B5C,2BAA2B,EAC3B,MAAM,EACN+C,UAAU,EAAE/E,WAAW,EAAE6E,OAC1B,CAAC;IACD,IAAAC,mCAA0B,EAAClE,SAAS,EAAEgB,aAAa,CAAC;IAEpD,MAAMT,MAAwB,GAAG,EAAE;IAEnCD,WAAW,CAACC,MAAM,EAAEwD,aAAa,CAAC;IAClCzD,WAAW,CAACC,MAAM,EAAE4D,UAAU,CAAC;IAE/B,IAAI5D,MAAM,CAAC6D,MAAM,KAAK,CAAC,EAAE;MACxB,OAAOlF,eAAe;IACvB;IAEA,OAAOqB,MAAM;EACd,CAAC,CAAC;EAEF,OAAO;IACNmC,eAAe;IACfb;EACD,CAAC;AACF,CAAC;AAACwC,OAAA,CAAA3D,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -28,16 +28,6 @@ const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
28
28
|
} = _system.SystemStore.getBag(currentScreenKey);
|
|
29
29
|
const hasVisibilityGateOpened = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
30
30
|
const shouldBlockVisibility = (0, _reactNativeReanimated.useSharedValue)(!isFloatingOverlay);
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Visibility has to start blocked before the first animated style pass.
|
|
34
|
-
*
|
|
35
|
-
* `useDerivedValue` can publish its computed value after `useAnimatedStyle`
|
|
36
|
-
* has already read the initial one, which briefly exposes an unhydrated
|
|
37
|
-
* screen. Keep the visible state in an eagerly initialized shared value, then
|
|
38
|
-
* let the reaction open it once the visibility gate allows the first
|
|
39
|
-
* transformed frame to render.
|
|
40
|
-
*/
|
|
41
31
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
42
32
|
"worklet";
|
|
43
33
|
|
|
@@ -60,13 +50,6 @@ const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
60
50
|
const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
61
51
|
"worklet";
|
|
62
52
|
|
|
63
|
-
/**
|
|
64
|
-
* Keep blocked screens physically offscreen. On physical devices,
|
|
65
|
-
* opacity: 0 can break Liquid Glass sampling.
|
|
66
|
-
*
|
|
67
|
-
* See: https://github.com/expo/expo/issues/41024
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
53
|
const offset = (0, _visibilityBlockOffset.getVisibilityBlockOffset)(height);
|
|
71
54
|
return {
|
|
72
55
|
transform: [{
|
|
@@ -83,8 +66,7 @@ const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
83
66
|
});
|
|
84
67
|
return {
|
|
85
68
|
animatedStyle,
|
|
86
|
-
animatedProps
|
|
87
|
-
shouldBlockVisibility
|
|
69
|
+
animatedProps
|
|
88
70
|
};
|
|
89
71
|
};
|
|
90
72
|
exports.useMaybeBlockVisibility = useMaybeBlockVisibility;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_animation","_system","_visibilityBlockOffset","_descriptors","_visibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","useWindowDimensions","currentScreenKey","useDescriptorDerivations","entering","transitionProgress","AnimationStore","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","SystemStore","hasVisibilityGateOpened","useSharedValue","shouldBlockVisibility","useAnimatedReaction","resolveScreenVisibilityGate","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","useAnimatedStyle","offset","getVisibilityBlockOffset","transform","translateY","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AAEO,MAAMO,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACxC,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAM;IAAEC,QAAQ;IAAEC;EAAmB,CAAC,GACrCC,yBAAc,CAACC,MAAM,CAACL,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_animation","_system","_visibilityBlockOffset","_descriptors","_visibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","useWindowDimensions","currentScreenKey","useDescriptorDerivations","entering","transitionProgress","AnimationStore","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","SystemStore","hasVisibilityGateOpened","useSharedValue","shouldBlockVisibility","useAnimatedReaction","resolveScreenVisibilityGate","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","useAnimatedStyle","offset","getVisibilityBlockOffset","transform","translateY","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAA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