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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isExplicitTransitionSlot","value","
|
|
1
|
+
{"version":3,"names":["getBoundsLocalTransform","stripBoundsLocalTransform","isExplicitTransitionSlot","value","hasBoundsLocalTransformMarker","style","length","isAlreadyNormalizedStyleMapWithoutBoundsMetadata","raw","key","undefined","normalizeSlots","normalized","explicitSlot","boundsLocalTransform","props"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;AAIA,SACCA,uBAAuB,EACvBC,yBAAyB,QACnB,yDAAyD;AAEhE,MAAMC,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,6BAA6B,GAAIC,KAAc,IAAK;EACzD,SAAS;;EACT,OAAO,CAAC,CAACL,uBAAuB,CAACK,KAAY,CAAC,EAAEC,MAAM;AACvD,CAAC;AAED,MAAMC,gDAAgD,GACrDC,GAAwB,IACpB;EACJ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uB,CAACG,KAAK,CAAC;MAC3D,MAAME,KAAK,GACVS,oBAAoB,EAAER,MAAM,IAAIH,KAAK,GAClCF,yBAAyB,CAACE,KAAK,CAAC,GAChCA,KAAK;;MAET;MACAS,UAAU,CAACH,GAAG,CAAC,GAAGK,oBAAoB,EAAER,MAAM,GAC3C;QAAED,KAAK;QAAES;MAAqB,CAAC,GAC/B;QAAET;MAAM,CAAC;IACb;EACD;EAEA,OAAOO,UAAU;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The "pre-start" window of an opening transition: the screen has committed to
|
|
5
|
+
* opening (`entering`) but `transitionProgress` has not yet moved past 0, so no
|
|
6
|
+
* transformed frame has been produced yet.
|
|
7
|
+
*
|
|
8
|
+
* This window is a quarantine, and two source-level guards key off it:
|
|
9
|
+
* - the visibility gate keeps the entering screen hidden (it must not be SEEN), and
|
|
10
|
+
* - interpolator ownership stays on "current" so the entering screen does not
|
|
11
|
+
* DRIVE other screens' styles until its transition is actually live.
|
|
12
|
+
*
|
|
13
|
+
* Both must agree on when the open transition has started, so the threshold
|
|
14
|
+
* lives here in one place rather than being re-derived at each site.
|
|
15
|
+
*/
|
|
16
|
+
export const hasOpenTransitionStarted = transitionProgress => {
|
|
17
|
+
"worklet";
|
|
18
|
+
|
|
19
|
+
return transitionProgress > 0;
|
|
20
|
+
};
|
|
21
|
+
export const isOpeningBeforeStart = (entering, transitionProgress) => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
return !!entering && !hasOpenTransitionStarted(transitionProgress);
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=opening-phase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["hasOpenTransitionStarted","transitionProgress","isOpeningBeforeStart","entering"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/opening-phase.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,wBAAwB,GAAIC,kBAA0B,IAAK;EACvE,SAAS;;EACT,OAAOA,kBAAkB,GAAG,CAAC;AAC9B,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBF,kBAA0B,KACtB;EACJ,SAAS;;EACT,OAAO,CAAC,CAACE,QAAQ,IAAI,CAACH,wBAAwB,CAACC,kBAAkB,CAAC;AACnE,CAAC","ignoreList":[]}
|
|
@@ -12,15 +12,15 @@ const getForwardedSlot = (slot, hasAnyKeys) => {
|
|
|
12
12
|
}
|
|
13
13
|
return slot;
|
|
14
14
|
};
|
|
15
|
-
const
|
|
15
|
+
const hasDefinedBucketValue = value => {
|
|
16
16
|
"worklet";
|
|
17
17
|
|
|
18
|
-
return
|
|
18
|
+
return value !== undefined && value !== null;
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const hasEitherResetPatch = (hasStyleResetPatch, hasPropResetPatch) => {
|
|
21
21
|
"worklet";
|
|
22
22
|
|
|
23
|
-
return
|
|
23
|
+
return hasStyleResetPatch || hasPropResetPatch;
|
|
24
24
|
};
|
|
25
25
|
const hasResettableDisappearedKeys = (previousKeys, previousResetValues, currentKeys) => {
|
|
26
26
|
"worklet";
|
|
@@ -58,6 +58,7 @@ const getResolvedSlotOutput = ({
|
|
|
58
58
|
resolvedSlot: materializeResolvedSlot({
|
|
59
59
|
baseStyle: state.baseStyle,
|
|
60
60
|
baseProps: state.baseProps,
|
|
61
|
+
boundsLocalTransform: slot?.boundsLocalTransform,
|
|
61
62
|
previousState,
|
|
62
63
|
styleKeys: state.styleKeys,
|
|
63
64
|
propKeys: state.propKeys,
|
|
@@ -101,6 +102,7 @@ const getMergedLocalSlot = (context, slotId) => {
|
|
|
101
102
|
|
|
102
103
|
let mergedStyle;
|
|
103
104
|
let mergedProps;
|
|
105
|
+
let boundsLocalTransform;
|
|
104
106
|
for (let index = 0; index < context.localStylesMaps.length; index++) {
|
|
105
107
|
const slot = context.localStylesMaps[index]?.[slotId];
|
|
106
108
|
if (slot === undefined) {
|
|
@@ -108,13 +110,17 @@ const getMergedLocalSlot = (context, slotId) => {
|
|
|
108
110
|
}
|
|
109
111
|
mergedStyle = mergeBucket(mergedStyle, slot.style);
|
|
110
112
|
mergedProps = mergeBucket(mergedProps, slot.props);
|
|
113
|
+
if (slot.boundsLocalTransform?.length) {
|
|
114
|
+
boundsLocalTransform = slot.boundsLocalTransform;
|
|
115
|
+
}
|
|
111
116
|
}
|
|
112
|
-
if (!mergedStyle && !mergedProps) {
|
|
117
|
+
if (!mergedStyle && !mergedProps && !boundsLocalTransform) {
|
|
113
118
|
return undefined;
|
|
114
119
|
}
|
|
115
120
|
return {
|
|
116
121
|
style: mergedStyle,
|
|
117
|
-
props: mergedProps
|
|
122
|
+
props: mergedProps,
|
|
123
|
+
boundsLocalTransform
|
|
118
124
|
};
|
|
119
125
|
};
|
|
120
126
|
const getSlotForId = (context, slotId) => {
|
|
@@ -226,7 +232,7 @@ const areSlotsEqual = (left, right) => {
|
|
|
226
232
|
if (!left || !right) {
|
|
227
233
|
return false;
|
|
228
234
|
}
|
|
229
|
-
return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props);
|
|
235
|
+
return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props) && areTransformArraysEqual(left.boundsLocalTransform, right.boundsLocalTransform);
|
|
230
236
|
};
|
|
231
237
|
export const reuseEqualResolvedSlots = ({
|
|
232
238
|
resolvedStylesMap,
|
|
@@ -317,10 +323,9 @@ const appendPreviousSlots = context => {
|
|
|
317
323
|
};
|
|
318
324
|
|
|
319
325
|
/**
|
|
320
|
-
* Resolves slot styles for the current screen pass and
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
* concrete identity values.
|
|
326
|
+
* Resolves slot styles for the current screen pass and emits reset values for
|
|
327
|
+
* transition-owned keys that existed in the previous resolved map but no longer
|
|
328
|
+
* exist in the current one.
|
|
324
329
|
*/
|
|
325
330
|
export const resolveSlotStyles = ({
|
|
326
331
|
localStylesMaps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["shouldSlotInherit","materializeResolvedSlot","getResolvedSlotState","areResettableStatesBySlotEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","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,SAASA,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,oBAAoB,QAAQ,cAAc;AAOnD,SAASC,8BAA8B,QAAQ,+BAA+B;AAW9E,MAAMC,gBAAgB,GAAGA,CACxBC,IAA+C,EAC/CC,UAAmB,KACf;EACJ,SAAS;;EAET,IAAI,CAACA,UAAU,EA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BAAmB,GACxB/E,iBAAiB,CAACkC,MAAM,CAAC,IACzBD,OAAO,CAACe,iBAAiB,CAACd,MAAM,CAAC,KAAK3B,SAAS;EAEhD,OAAO,CAACyB,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC6C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAI/C,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACuC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC7C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CqC,kBAAkB,CAACtC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM+C,iBAAiB,GAAGA,CAAC;EACjC7C,eAAe;EACfY,iBAAiB;EACjBwB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMrB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMjB,OAAO,GAAG;IACfG,eAAe;IACfY,iBAAiB;IACjBwB,yBAAyB;IACzBrB,iBAAiB;IACjBD;EACD,CAAC;EAEDuB,kBAAkB,CAACxC,OAAO,CAAC;EAC3B4C,oBAAoB,CAAC5C,OAAO,CAAC;EAC7B+C,mBAAmB,CAAC/C,OAAO,CAAC;EAE5B,OAAO;IACNkB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["shouldSlotInherit","materializeResolvedSlot","getResolvedSlotState","areResettableStatesBySlotEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasDefinedBucketValue","value","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","baseStyle","baseProps","boundsLocalTransform","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","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,SAASA,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,oBAAoB,QAAQ,cAAc;AAOnD,SAASC,8BAA8B,QAAQ,+BAA+B;AAW9E,MAAMC,gBAAgB,GAAGA,CACxBC,IAA+C,EAC/CC,UAAmB,KACf;EACJ,SAAS;;EAET,IAAI,CAACA,UAAU,EAAE;IAChB,OAAOC,SAAS;EACjB;EAEA,OAAOF,IAAI;AACZ,CAAC;AAED,MAAMG,qBAAqB,GAAIC,KAAc,IAAK;EACjD,SAAS;;EACT,OAAOA,KAAK,KAAKF,SAAS,IAAIE,KAAK,KAAK,IAAI;AAC7C,CAAC;AAED,MAAMC,mBAAmB,GAAGA,CAC3BC,kBAA2B,EAC3BC,iBAA0B,KACtB;EACJ,SAAS;;EACT,OAAOD,kBAAkB,IAAIC,iBAAiB;AAC/C,CAAC;AAED,MAAMC,4BAA4B,GAAGA,CACpCC,YAA8C,EAC9CC,mBAAwD,EACxDC,WAA6C,KACzC;EACJ,SAAS;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,CAAC0B,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC6C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAI/C,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACuC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC7C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CqC,kBAAkB,CAACtC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM+C,iBAAiB,GAAGA,CAAC;EACjC7C,eAAe;EACfY,iBAAiB;EACjBwB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMrB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMjB,OAAO,GAAG;IACfG,eAAe;IACfY,iBAAiB;IACjBwB,yBAAyB;IACzBrB,iBAAiB;IACjBD;EACD,CAAC;EAEDuB,kBAAkB,CAACxC,OAAO,CAAC;EAC3B4C,oBAAoB,CAAC5C,OAAO,CAAC;EAC7B+C,mBAAmB,CAAC/C,OAAO,CAAC;EAE5B,OAAO;IACNkB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js
CHANGED
|
@@ -79,6 +79,7 @@ const materializeResolvedProps = ({
|
|
|
79
79
|
export const materializeResolvedSlot = ({
|
|
80
80
|
baseStyle,
|
|
81
81
|
baseProps,
|
|
82
|
+
boundsLocalTransform,
|
|
82
83
|
previousState,
|
|
83
84
|
styleKeys,
|
|
84
85
|
propKeys,
|
|
@@ -106,6 +107,7 @@ export const materializeResolvedSlot = ({
|
|
|
106
107
|
});
|
|
107
108
|
resolvedSlot.style = resolvedStyle;
|
|
108
109
|
resolvedSlot.props = resolvedProps;
|
|
110
|
+
resolvedSlot.boundsLocalTransform = boundsLocalTransform;
|
|
109
111
|
if (!resolvedSlot.style && !resolvedSlot.props) {
|
|
110
112
|
return undefined;
|
|
111
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PROP_RESET_VALUES","STYLE_RESET_VALUES","materializeResolvedBucket","source","previousKeys","previousResetValues","currentKeys","hasAnyKeys","hasResetPatch","resetValues","undefined","resolvedBucket","keysToReset","key","previousResetValue","resetValue","value","materializeResolvedStyle","baseStyle","previousState","styleKeys","hasAnyStyleKeys","hasStyleResetPatch","styleResetValues","materializeResolvedProps","baseProps","propKeys","hasAnyPropKeys","hasPropResetPatch","propResetValues","materializeResolvedSlot","resolvedSlot","resolvedStyle","resolvedProps","style","props"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts"],"mappings":";;AACA,SAASA,iBAAiB,EAAEC,kBAAkB,QAAQ,iBAAiB;AAGvE;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,MAAMC,WAAW,GAAGR,YAAY,IAAI,CAAC,CAAC;EAEtC,KAAK,MAAMS,GAAG,IAAID,WAAW,EAAE;IAC9B,IAAIN,WAAW,KAAKI,SAAS,IAAIJ,WAAW,CAACO,GAAG,CAAC,KAAK,IAAI,EAAE;MAC3D;IACD;IAEA,MAAMC,kBAAkB,GAAGT,mBAAmB,GAAGQ,GAAG,CAAC;IACrD,MAAME,UAAU,GACfD,kBAAkB,KAAKJ,SAAS,GAC7BI,kBAAkB,GAClBL,WAAW,GAAGI,GAAG,CAAC;IAEtB,IAAIE,UAAU,KAAKL,SA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P_RESET_VALUES","STYLE_RESET_VALUES","materializeResolvedBucket","source","previousKeys","previousResetValues","currentKeys","hasAnyKeys","hasResetPatch","resetValues","undefined","resolvedBucket","keysToReset","key","previousResetValue","resetValue","value","materializeResolvedStyle","baseStyle","previousState","styleKeys","hasAnyStyleKeys","hasStyleResetPatch","styleResetValues","materializeResolvedProps","baseProps","propKeys","hasAnyPropKeys","hasPropResetPatch","propResetValues","materializeResolvedSlot","boundsLocalTransform","resolvedSlot","resolvedStyle","resolvedProps","style","props"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts"],"mappings":";;AACA,SAASA,iBAAiB,EAAEC,kBAAkB,QAAQ,iBAAiB;AAGvE;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,MAAMC,WAAW,GAAGR,YAAY,IAAI,CAAC,CAAC;EAEtC,KAAK,MAAMS,GAAG,IAAID,WAAW,EAAE;IAC9B,IAAIN,WAAW,KAAKI,SAAS,IAAIJ,WAAW,CAACO,GAAG,CAAC,KAAK,IAAI,EAAE;MAC3D;IACD;IAEA,MAAMC,kBAAkB,GAAGT,mBAAmB,GAAGQ,GAAG,CAAC;IACrD,MAAME,UAAU,GACfD,kBAAkB,KAAKJ,SAAS,GAC7BI,kBAAkB,GAClBL,WAAW,GAAGI,GAAG,CAAC;IAEtB,IAAIE,UAAU,KAAKL,SAAS,EAAE;MAC7BC,cAAc,CAACE,GAAG,CAAC,GAAGE,UAAU;IACjC;EACD;EAEA,IAAIZ,MAAM,EAAE;IACX,KAAK,MAAMU,GAAG,IAAIV,MAAM,EAAE;MACzB,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ExD,MAAMC,aAAa,GAAGhB,wBAAwB,CAAC;IAC9CC,SAAS;IACTC,aAAa;IACbC,SAAS;IACTC,eAAe;IACfC;EACD,CAAC,CAAC;EACF,MAAMY,aAAa,GAAGV,wBAAwB,CAAC;IAC9CC,SAAS;IACTN,aAAa;IACbO,QAAQ;IACRC,cAAc;IACdC;EACD,CAAC,CAAC;EAEFI,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,OAAO1B,SAAS;EACjB;EAEA,OAAOsB,YAAY;AACpB,CAAC","ignoreList":[]}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { getPropResetValue, getStyleResetValue } from "./reset-values";
|
|
4
|
-
const hasTrackedKey = (keys, key) => {
|
|
5
|
-
"worklet";
|
|
6
|
-
|
|
7
|
-
return keys !== undefined && keys[key] === true;
|
|
8
|
-
};
|
|
9
4
|
const isDefinedStyleValue = value => {
|
|
10
5
|
"worklet";
|
|
11
6
|
|
|
@@ -43,19 +38,6 @@ const collectDefinedKeys = ({
|
|
|
43
38
|
hasKeys
|
|
44
39
|
};
|
|
45
40
|
};
|
|
46
|
-
export const hasDisappearedKeys = (previousKeys, currentKeys) => {
|
|
47
|
-
"worklet";
|
|
48
|
-
|
|
49
|
-
if (!previousKeys) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
for (const key in previousKeys) {
|
|
53
|
-
if (!hasTrackedKey(currentKeys, key)) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
};
|
|
59
41
|
const hasEitherKeySet = (styleKeys, propKeys) => {
|
|
60
42
|
"worklet";
|
|
61
43
|
|
package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getPropResetValue","getStyleResetValue","
|
|
1
|
+
{"version":3,"names":["getPropResetValue","getStyleResetValue","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","hasAnyPropKeys","hasAnyKeys","nextState"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts"],"mappings":";;AACA,SAASA,iBAAiB,EAAEC,kBAAkB,QAAQ,gBAAgB;AAGtE,MAAMC,mBAAmB,GAAIC,KAAc,IAAK;EAC/C,SAAS;;EACT,OAAOA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI;AAC7C,CAAC;;AAED;AACA,MAAME,kBAAkB,GAAGA,CAAC;EAC3BC,MAAM;EACNC;AAID,CAAC,KAAK;EACL,SAAS;;EACT,MAAMC,YAAY,GAAGF,MAAM,IAAI,CAAC,CAAC;EACjC,MAAMG,IAA0B,GAAG,CAAC,CAAC;EACrC,MAAMC,WAAoC,GAAG,CAAC,CAAC;EAC/C,IAAIC,OAAO,GAAG,KAAK;EACnB,IAAIC,cAAc,GAAG,KAAK;EAE1B,KAAK,MAAMC,GAAG,IAAIL,YAAY,EAAE;IAC/B,MAAML,KAAK,GAAGK,YAAY,CAACK,GAAG,CAAC;IAE/B,IAAI,CAACX,mBAAmB,CAACC,KAAK,CAAC,EAAE;MAChC;IACD;IAEAM,IAAI,CAACI,GAAG,CAAC,GAAG,IAAI;IAChBF,OAAO,GAAG,IAAI;IAEd,MAAMG,UAAU,GAAGP,aAAa,CAACM,GAAG,EAAEV,KAAK,CAAC;IAE5C,IAAIW,UAAU,KAAKV,SAAS,EAAE;MA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,SAAS;IACTC,QAAQ;IACRU,eAAe;IACfC,cAAc;IACdC,UAAU,EAAEF,eAAe,IAAIC,cAAc;IAC7CE,SAAS,EAAEZ,iBAAiB,CAAC;MAC5BF,SAAS;MACTG,gBAAgB;MAChBF,QAAQ;MACRG;IACD,CAAC;EACF,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -20,10 +20,6 @@ export const resolveScreenVisibilityGate = ({
|
|
|
20
20
|
const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount > 0;
|
|
21
21
|
const isPendingOpen = pendingLifecycleRequestKind === LifecycleTransitionRequestKind.Open;
|
|
22
22
|
const isOpening = isPendingOpen || !!entering;
|
|
23
|
-
|
|
24
|
-
// Keep the screen hidden until the first transformed opening frame exists.
|
|
25
|
-
// The lifecycle request is cleared before the RAF-scheduled progress
|
|
26
|
-
// animation starts, so `entering` carries the gate through that one-frame gap.
|
|
27
23
|
const isWaitingForOpenToStart = progress <= 0;
|
|
28
24
|
const shouldBlock = (hasPendingLifecycleBlock || isWaitingForOpenToStart) && isOpening;
|
|
29
25
|
return {
|
|
@@ -31,9 +27,4 @@ export const resolveScreenVisibilityGate = ({
|
|
|
31
27
|
shouldOpenGate: !shouldBlock && progress > 0
|
|
32
28
|
};
|
|
33
29
|
};
|
|
34
|
-
export const shouldBlockScreenVisibility = state => {
|
|
35
|
-
"worklet";
|
|
36
|
-
|
|
37
|
-
return resolveScreenVisibilityGate(state).shouldBlock;
|
|
38
|
-
};
|
|
39
30
|
//# sourceMappingURL=visibility-gate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LifecycleTransitionRequestKind","resolveScreenVisibilityGate","isFloatingOverlay","hasVisibilityGateOpened","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","progress","entering","shouldBlock","shouldOpenGate","hasPendingLifecycleBlock","isPendingOpen","Open","isOpening","isWaitingForOpenToStart"
|
|
1
|
+
{"version":3,"names":["LifecycleTransitionRequestKind","resolveScreenVisibilityGate","isFloatingOverlay","hasVisibilityGateOpened","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","progress","entering","shouldBlock","shouldOpenGate","hasPendingLifecycleBlock","isPendingOpen","Open","isOpening","isWaitingForOpenToStart"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/visibility-gate.ts"],"mappings":";;AAAA,SAASA,8BAA8B,QAAQ,iCAAiC;AAgBhF,OAAO,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,KAAKL,8BAA8B,CAACY,IAAI;EACpE,MAAMC,SAAS,GAAGF,aAAa,IAAI,CAAC,CAACJ,QAAQ;EAC7C,MAAMO,uBAAuB,GAAGR,QAAQ,IAAI,CAAC;EAC7C,MAAME,WAAW,GAChB,CAACE,wBAAwB,IAAII,uBAAuB,KAAKD,SAAS;EAEnE,OAAO;IACNL,WAAW;IACXC,cAAc,EAAE,CAACD,WAAW,IAAIF,QAAQ,GAAG;EAC5C,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useAnimatedProps, useAnimatedStyle } from "react-native-reanimated";
|
|
5
|
+
import { NO_PROPS, NO_STYLES } from "../../../../constants";
|
|
6
|
+
import { composeSlotStyleWithLocalTransform, getLocalTransformForSlotComposition } from "../helpers/compose-slot-style";
|
|
7
|
+
import { useScreenSlots } from "../slot.provider";
|
|
8
|
+
export const useSlotStyles = slotId => {
|
|
9
|
+
const {
|
|
10
|
+
slotsMap
|
|
11
|
+
} = useScreenSlots();
|
|
12
|
+
return useAnimatedStyle(() => {
|
|
13
|
+
const slot = slotId ? slotsMap.get()[slotId] : undefined;
|
|
14
|
+
const slotStyle = slot?.style ?? NO_STYLES;
|
|
15
|
+
return composeSlotStyleWithLocalTransform(slotStyle, undefined, slot?.boundsLocalTransform);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export const useComposedSlotStyles = (slotId, style) => {
|
|
19
|
+
const {
|
|
20
|
+
slotsMap
|
|
21
|
+
} = useScreenSlots();
|
|
22
|
+
const localTransform = useMemo(() => getLocalTransformForSlotComposition(style), [style]);
|
|
23
|
+
return useAnimatedStyle(() => {
|
|
24
|
+
const slot = slotId ? slotsMap.get()[slotId] : undefined;
|
|
25
|
+
const slotStyle = slot?.style ?? NO_STYLES;
|
|
26
|
+
return composeSlotStyleWithLocalTransform(slotStyle, localTransform, slot?.boundsLocalTransform);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Stacking-only slice (`zIndex`/`elevation`) of a slot's style. Returned
|
|
32
|
+
* separately so an owner can keep just its stacking context while a nested
|
|
33
|
+
* target takes the full associated style. Yields `NO_STYLES` when neither is set.
|
|
34
|
+
*/
|
|
35
|
+
export const useSlotStackingStyles = slotId => {
|
|
36
|
+
const {
|
|
37
|
+
slotsMap
|
|
38
|
+
} = useScreenSlots();
|
|
39
|
+
return useAnimatedStyle(() => {
|
|
40
|
+
const baseStyle = slotId ? slotsMap.get()[slotId]?.style : undefined;
|
|
41
|
+
const zIndex = baseStyle?.zIndex ?? 0;
|
|
42
|
+
const elevation = baseStyle?.elevation ?? 0;
|
|
43
|
+
if (zIndex === 0 && elevation === 0) {
|
|
44
|
+
return NO_STYLES;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
zIndex,
|
|
48
|
+
elevation
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export const useSlotLayoutStyles = slotId => {
|
|
53
|
+
const {
|
|
54
|
+
slotsMap
|
|
55
|
+
} = useScreenSlots();
|
|
56
|
+
return useAnimatedStyle(() => {
|
|
57
|
+
const baseStyle = slotId ? slotsMap.get()[slotId]?.style : undefined;
|
|
58
|
+
const width = baseStyle?.width;
|
|
59
|
+
const height = baseStyle?.height;
|
|
60
|
+
const minWidth = baseStyle?.minWidth;
|
|
61
|
+
const minHeight = baseStyle?.minHeight;
|
|
62
|
+
const maxWidth = baseStyle?.maxWidth;
|
|
63
|
+
const maxHeight = baseStyle?.maxHeight;
|
|
64
|
+
const aspectRatio = baseStyle?.aspectRatio;
|
|
65
|
+
if (width === undefined && height === undefined && minWidth === undefined && minHeight === undefined && maxWidth === undefined && maxHeight === undefined && aspectRatio === undefined) {
|
|
66
|
+
return NO_STYLES;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
width,
|
|
70
|
+
height,
|
|
71
|
+
minWidth,
|
|
72
|
+
minHeight,
|
|
73
|
+
maxWidth,
|
|
74
|
+
maxHeight,
|
|
75
|
+
aspectRatio
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
export const useSlotProps = slotId => {
|
|
80
|
+
const {
|
|
81
|
+
slotsMap
|
|
82
|
+
} = useScreenSlots();
|
|
83
|
+
return useAnimatedProps(() => {
|
|
84
|
+
return (slotId ? slotsMap.get()[slotId]?.props : undefined) ?? NO_PROPS;
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=slot-resolvers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useAnimatedProps","useAnimatedStyle","NO_PROPS","NO_STYLES","composeSlotStyleWithLocalTransform","getLocalTransformForSlotComposition","useScreenSlots","useSlotStyles","slotId","slotsMap","slot","get","undefined","slotStyle","style","boundsLocalTransform","useComposedSlotStyles","localTransform","useSlotStackingStyles","baseStyle","zIndex","elevation","useSlotLayoutStyles","width","height","minWidth","minHeight","maxWidth","maxHeight","aspectRatio","useSlotProps","props"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/slot-resolvers.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yBAAyB;AAC5E,SAASC,QAAQ,EAAEC,SAAS,QAAQ,uBAAuB;AAC3D,SACCC,kCAAkC,EAClCC,mCAAmC,QAC7B,+BAA+B;AACtC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,MAAMC,aAAa,GAAIC,MAA0B,IAAK;EAC5D,MAAM;IAAEC;EAAS,CAAC,GAAGH,cAAc,CAAC,CAAC;EAErC,OAAOL,gBAAgB,CAAC,MAAM;IAC7B,MAAMS,IAAI,GAAGF,MAAM,GAAGC,QAAQ,CAACE,GAAG,CAAC,CAAC,CAACH,MAAM,CAAC,GAAGI,SAAS;IACxD,MAAMC,SAAS,GAAGH,IAAI,EAAEI,KAAK,IAAIX,SAAS;IAE1C,OAAOC,kCAAkC,CACxCS,SAAS,EACTD,SAAS,EACTF,IAAI,EAAEK,oBACP,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGA,CACpCR,MAA0B,EAC1BM,KAAc,KACV;EACJ,MAAM;IAAEL;EAAS,CAAC,GAAGH,cAAc,CAAC,CAAC;EACrC,MAAMW,cAAc,GAAGlB,OAAO,CAC7B,MAAMM,mCAAmC,CAACS,KAAK,CAAC,EAChD,CAACA,KAAK,CACP,CAAC;EAED,OAAOb,gBAAgB,CAAC,MAAM;IAC7B,MAAMS,IAAI,GAAGF,MAAM,GAAGC,QAAQ,CAACE,GAAG,CAAC,CAAC,CAACH,MAAM,CAAC,GAAGI,SAAS;IACxD,MAAMC,SAAS,GAAGH,IAAI,EAAEI,KAAK,IAAIX,SAAS;IAE1C,OAAOC,k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W;IAE1C,IACCN,KAAK,KAAKX,SAAS,IACnBY,MAAM,KAAKZ,SAAS,IACpBa,QAAQ,KAAKb,SAAS,IACtBc,SAAS,KAAKd,SAAS,IACvBe,QAAQ,KAAKf,SAAS,IACtBgB,SAAS,KAAKhB,SAAS,IACvBiB,WAAW,KAAKjB,SAAS,EACxB;MACD,OAAOT,SAAS;IACjB;IAEA,OAAO;MACNoB,KAAK;MACLC,MAAM;MACNC,QAAQ;MACRC,SAAS;MACTC,QAAQ;MACRC,SAAS;MACTC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,YAAY,GAAItB,MAA0B,IAAK;EAC3D,MAAM;IAAEC;EAAS,CAAC,GAAGH,cAAc,CAAC,CAAC;EAErC,OAAON,gBAAgB,CAAC,MAAM;IAC7B,OAAO,CAACQ,MAAM,GAAGC,QAAQ,CAACE,GAAG,CAAC,CAAC,CAACH,MAAM,CAAC,EAAEuB,KAAK,GAAGnB,SAAS,KAAKV,QAAQ;EACxE,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -2,27 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
4
4
|
import { NO_STYLES } from "../../../../constants";
|
|
5
|
-
import {
|
|
5
|
+
import { AnimationStore } from "../../../../stores/animation.store";
|
|
6
|
+
import { LifecycleTransitionRequestKind, SystemStore } from "../../../../stores/system.store";
|
|
6
7
|
import { logger } from "../../../../utils/logger";
|
|
7
8
|
import { useScreenAnimationContext } from "../../animation";
|
|
8
9
|
import { useBuildBoundsAccessor } from "../../animation/helpers/accessors/use-build-bounds-accessor";
|
|
9
10
|
import { useBuildTransitionAccessor } from "../../animation/helpers/accessors/use-build-transition-accessor";
|
|
10
11
|
import { readScreenAnimationRevisions } from "../../animation/helpers/read-screen-animation-revisions";
|
|
11
12
|
import { syncSelectedInterpolatorOptions } from "../../animation/helpers/selected-interpolator-options";
|
|
12
|
-
import {
|
|
13
|
+
import { useDescriptorsStore } from "../../descriptors";
|
|
13
14
|
import { syncScreenOptionsOverrides, useScreenOptionsContext } from "../../options";
|
|
14
15
|
import { normalizeSlots } from "../helpers/normalize-slots";
|
|
15
|
-
import {
|
|
16
|
+
import { isOpeningBeforeStart } from "../helpers/opening-phase";
|
|
16
17
|
import { stripInterpolatorOptions } from "../helpers/strip-interpolator-options";
|
|
17
18
|
const NO_STYLE_LAYERS = [];
|
|
18
|
-
const normalizeRawStyleMap =
|
|
19
|
+
const normalizeRawStyleMap = rawStyleMap => {
|
|
19
20
|
"worklet";
|
|
20
21
|
|
|
21
22
|
if (!rawStyleMap) {
|
|
22
23
|
return NO_STYLES;
|
|
23
24
|
}
|
|
24
25
|
const stylesMap = normalizeSlots(stripInterpolatorOptions(rawStyleMap));
|
|
25
|
-
return
|
|
26
|
+
return stylesMap;
|
|
26
27
|
};
|
|
27
28
|
const runInterpolator = ({
|
|
28
29
|
interpolator,
|
|
@@ -30,8 +31,7 @@ const runInterpolator = ({
|
|
|
30
31
|
progress,
|
|
31
32
|
next,
|
|
32
33
|
bounds,
|
|
33
|
-
transition
|
|
34
|
-
shouldDeferStyleBuckets
|
|
34
|
+
transition
|
|
35
35
|
}) => {
|
|
36
36
|
"worklet";
|
|
37
37
|
|
|
@@ -49,7 +49,7 @@ const runInterpolator = ({
|
|
|
49
49
|
const rawStyleMap = typeof raw === "object" && raw != null ? raw : undefined;
|
|
50
50
|
return {
|
|
51
51
|
rawStyleMap,
|
|
52
|
-
stylesMap: normalizeRawStyleMap(rawStyleMap
|
|
52
|
+
stylesMap: normalizeRawStyleMap(rawStyleMap)
|
|
53
53
|
};
|
|
54
54
|
} catch (_) {
|
|
55
55
|
if (__DEV__) {
|
|
@@ -82,19 +82,13 @@ const appendLayer = (layers, result) => {
|
|
|
82
82
|
* normal interpolator selection once the gesture-driven close is no longer in
|
|
83
83
|
* play.
|
|
84
84
|
*
|
|
85
|
-
* Visibility gating happens downstream while lifecycle start is blocked for
|
|
86
|
-
* pending destination measurement. We still run the interpolator during that
|
|
87
|
-
* hidden window so animated props and runtime options stay warm, but defer style
|
|
88
|
-
* buckets so measurement sees the final untransformed layout.
|
|
89
|
-
*
|
|
90
85
|
* The result is ordered from lowest to highest priority. Resolution happens
|
|
91
86
|
* downstream, where slot ids determine whether slots inherit from ancestors and
|
|
92
87
|
* where higher owner layers override lower owner layers per key.
|
|
93
88
|
*/
|
|
94
89
|
export const useInterpolatedStylesMap = () => {
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
} = useDescriptorDerivations();
|
|
90
|
+
const currentScreenKey = useDescriptorsStore(s => s.derivations.currentScreenKey);
|
|
91
|
+
const nextScreenKey = useDescriptorsStore(s => s.derivations.nextScreenKey);
|
|
98
92
|
const screenOptions = useScreenOptionsContext();
|
|
99
93
|
const {
|
|
100
94
|
screenInterpolatorProps,
|
|
@@ -107,26 +101,21 @@ export const useInterpolatedStylesMap = () => {
|
|
|
107
101
|
} = useScreenAnimationContext();
|
|
108
102
|
const boundsAccessor = useBuildBoundsAccessor();
|
|
109
103
|
const transition = useBuildTransitionAccessor();
|
|
110
|
-
const
|
|
104
|
+
const nextInterpolatorReady = useSharedValue(0);
|
|
105
|
+
const activeScreenKey = nextScreenKey ?? currentScreenKey;
|
|
106
|
+
const {
|
|
107
|
+
entering: activeEntering,
|
|
108
|
+
transitionProgress: activeTransitionProgress
|
|
109
|
+
} = AnimationStore.getBag(activeScreenKey);
|
|
110
|
+
const {
|
|
111
|
+
pendingLifecycleRequestKind: activePendingLifecycleRequestKind
|
|
112
|
+
} = SystemStore.getBag(activeScreenKey);
|
|
111
113
|
const isGesturingDuringCloseAnimation = useSharedValue(false);
|
|
112
|
-
|
|
114
|
+
const localStylesMaps = useDerivedValue(() => {
|
|
113
115
|
"worklet";
|
|
114
116
|
|
|
115
117
|
readScreenAnimationRevisions(screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources);
|
|
116
118
|
const props = screenInterpolatorProps.get();
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* There is a niche case where bounds can be attached to a view that's styles are out of viewport.
|
|
120
|
-
* Due to our blocking mechanism and ensuring accurate measurement, this boundary measurement
|
|
121
|
-
* will be blocked and the screen will never be visible. To mitigate this, we:
|
|
122
|
-
*
|
|
123
|
-
* - Defer the style buckets (props are fine), to ensure we get the correct position of the boundary
|
|
124
|
-
*
|
|
125
|
-
* Again this is very niche, and since we're not marketing ourselves as a proper shared element transition
|
|
126
|
-
* package, we won't spend time finding a better solution for this.
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
const shouldDeferStyleBuckets = pendingLifecycleStartBlockCount.get() > 0;
|
|
130
119
|
const {
|
|
131
120
|
current,
|
|
132
121
|
next,
|
|
@@ -145,7 +134,16 @@ export const useInterpolatedStylesMap = () => {
|
|
|
145
134
|
isGesturingDuringCloseAnimation.set(false);
|
|
146
135
|
}
|
|
147
136
|
const isInGestureMode = !!isDragging || isGesturingDuringCloseAnimation.get();
|
|
148
|
-
|
|
137
|
+
|
|
138
|
+
// The current screen keeps interpolator ownership until the next screen is
|
|
139
|
+
// genuinely live: never during a gesture-driven close, never before a next
|
|
140
|
+
// interpolator exists, and never in the next screen's pre-start window
|
|
141
|
+
// (entering, but no transformed frame yet). Only then does "next" take over.
|
|
142
|
+
const isPendingOpen = activePendingLifecycleRequestKind.get() === LifecycleTransitionRequestKind.Open;
|
|
143
|
+
const activeOpening = isPendingOpen || !!activeEntering.get();
|
|
144
|
+
const currentOwnsInterpolator = isInGestureMode || !nextInterpolator || isOpeningBeforeStart(activeOpening ? 1 : 0, activeTransitionProgress.get());
|
|
145
|
+
nextInterpolatorReady.set(currentOwnsInterpolator ? 0 : 1);
|
|
146
|
+
const interpolatorOptionsOwner = currentOwnsInterpolator ? "current" : "next";
|
|
149
147
|
let selectedProgress = progress;
|
|
150
148
|
let selectedNext = next;
|
|
151
149
|
if (isInGestureMode) {
|
|
@@ -158,8 +156,7 @@ export const useInterpolatedStylesMap = () => {
|
|
|
158
156
|
progress: selectedProgress,
|
|
159
157
|
next: selectedNext,
|
|
160
158
|
bounds: boundsAccessor,
|
|
161
|
-
transition
|
|
162
|
-
shouldDeferStyleBuckets
|
|
159
|
+
transition
|
|
163
160
|
});
|
|
164
161
|
if (interpolatorOptionsOwner === "current") {
|
|
165
162
|
syncSelectedInterpolatorOptions(selectedInterpolatorOptions, "current", currentResult?.rawStyleMap?.options);
|
|
@@ -175,8 +172,7 @@ export const useInterpolatedStylesMap = () => {
|
|
|
175
172
|
progress: selectedProgress,
|
|
176
173
|
next: selectedNext,
|
|
177
174
|
bounds: boundsAccessor,
|
|
178
|
-
transition
|
|
179
|
-
shouldDeferStyleBuckets
|
|
175
|
+
transition
|
|
180
176
|
});
|
|
181
177
|
syncSelectedInterpolatorOptions(selectedInterpolatorOptions, "next", nextResult?.rawStyleMap?.options);
|
|
182
178
|
syncScreenOptionsOverrides(undefined, screenOptions);
|
|
@@ -188,5 +184,9 @@ export const useInterpolatedStylesMap = () => {
|
|
|
188
184
|
}
|
|
189
185
|
return layers;
|
|
190
186
|
});
|
|
187
|
+
return {
|
|
188
|
+
localStylesMaps,
|
|
189
|
+
nextInterpolatorReady
|
|
190
|
+
};
|
|
191
191
|
};
|
|
192
192
|
//# sourceMappingURL=use-interpolated-style-maps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","useBuildTransitionAccessor","readScreenAnimationRevisions","syncSelectedInterpolatorOptions","
|
|
1
|
+
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","AnimationStore","LifecycleTransitionRequestKind","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","useBuildTransitionAccessor","readScreenAnimationRevisions","syncSelectedInterpolatorOptions","useDescriptorsStore","syncScreenOptionsOverrides","useScreenOptionsContext","normalizeSlots","isOpeningBeforeStart","stripInterpolatorOptions","NO_STYLE_LAYERS","normalizeRawStyleMap","rawStyleMap","stylesMap","runInterpolator","interpolator","props","progress","next","bounds","transition","undefined","raw","_","__DEV__","warn","appendLayer","layers","result","push","useInterpolatedStylesMap","currentScreenKey","s","derivations","nextScreenKey","screenOptions","screenInterpolatorProps","screenInterpolatorPropsRevision","selectedInterpolatorOptions","nextInterpolator","currentInterpolator","ancestorScreenAnimationSources","descendantScreenAnimationSources","boundsAccessor","nextInterpolatorReady","activeScreenKey","entering","activeEntering","transitionProgress","activeTransitionProgress","getBag","pendingLifecycleRequestKind","activePendingLifecycleRequestKind","isGesturingDuringCloseAnimation","localStylesMaps","get","current","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","isPendingOpen","Open","activeOpening","currentOwnsInterpolator","interpolatorOptionsOwner","selectedProgress","selectedNext","currentResult","options","nextResult","length"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,8BAA8B,EAC9BC,WAAW,QACL,iCAAiC;AAMxC,SAASC,MAAM,QAAQ,0BAA0B;AACjD,SAASC,yBAAyB,QAAQ,iBAAiB;AAC3D,SAASC,sBAAsB,QAAQ,6DAA6D;AACpG,SAASC,0BAA0B,QAAQ,iEAAiE;AAE5G,SAASC,4BAA4B,QAAQ,yDAAyD;AACtG,SAASC,+BAA+B,QAAQ,uDAAuD;AACvG,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SACCC,0BAA0B,EAC1BC,uBAAuB,QACjB,eAAe;AACtB,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,oBAAoB,QAAQ,0BAA0B;AAE/D,SAASC,wBAAwB,QAAQ,uCAAuC;AAEhF,MAAMC,eAAiC,GAAG,EAAE;AAgB5C,MAAM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aAAa,EAAE3D,WAAW,EAAE4D,OAC7B,CAAC;MACDnE,0BAA0B,CAACkE,aAAa,EAAE3D,WAAW,EAAEuB,aAAa,CAAC;MAErE,IAAI,CAACoC,aAAa,EAAE;QACnB,OAAO7D,eAAe;MACvB;MAEA,OAAO,CAAC6D,aAAa,CAAC1D,SAAS,CAAC;IACjC;IAEA,MAAM4D,UAAU,GAAG3D,eAAe,CAAC;MAClCC,YAAY,EAAEwB,gBAAgB;MAC9BvB,KAAK;MACLC,QAAQ,EAAEoD,gBAAgB;MAC1BnD,IAAI,EAAEoD,YAAY;MAClBnD,MAAM,EAAEwB,cAAc;MACtBvB;IACD,CAAC,CAAC;IAEFjB,+BAA+B,CAC9BmC,2BAA2B,EAC3B,MAAM,EACNmC,UAAU,EAAE7D,WAAW,EAAE4D,OAC1B,CAAC;IACDnE,0BAA0B,CAACgB,SAAS,EAAEc,aAAa,CAAC;IAEpD,MAAMR,MAAwB,GAAG,EAAE;IAEnCD,WAAW,CAACC,MAAM,EAAE4C,aAAa,CAAC;IAClC7C,WAAW,CAACC,MAAM,EAAE8C,UAAU,CAAC;IAE/B,IAAI9C,MAAM,CAAC+C,MAAM,KAAK,CAAC,EAAE;MACxB,OAAOhE,eAAe;IACvB;IAEA,OAAOiB,MAAM;EACd,CAAC,CAAC;EAEF,OAAO;IACN2B,eAAe;IACfV;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -24,16 +24,6 @@ export const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
24
24
|
} = SystemStore.getBag(currentScreenKey);
|
|
25
25
|
const hasVisibilityGateOpened = useSharedValue(false);
|
|
26
26
|
const shouldBlockVisibility = useSharedValue(!isFloatingOverlay);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Visibility has to start blocked before the first animated style pass.
|
|
30
|
-
*
|
|
31
|
-
* `useDerivedValue` can publish its computed value after `useAnimatedStyle`
|
|
32
|
-
* has already read the initial one, which briefly exposes an unhydrated
|
|
33
|
-
* screen. Keep the visible state in an eagerly initialized shared value, then
|
|
34
|
-
* let the reaction open it once the visibility gate allows the first
|
|
35
|
-
* transformed frame to render.
|
|
36
|
-
*/
|
|
37
27
|
useAnimatedReaction(() => {
|
|
38
28
|
"worklet";
|
|
39
29
|
|
|
@@ -56,13 +46,6 @@ export const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
56
46
|
const animatedStyle = useAnimatedStyle(() => {
|
|
57
47
|
"worklet";
|
|
58
48
|
|
|
59
|
-
/**
|
|
60
|
-
* Keep blocked screens physically offscreen. On physical devices,
|
|
61
|
-
* opacity: 0 can break Liquid Glass sampling.
|
|
62
|
-
*
|
|
63
|
-
* See: https://github.com/expo/expo/issues/41024
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
49
|
const offset = getVisibilityBlockOffset(height);
|
|
67
50
|
return {
|
|
68
51
|
transform: [{
|
|
@@ -79,8 +62,7 @@ export const useMaybeBlockVisibility = isFloatingOverlay => {
|
|
|
79
62
|
});
|
|
80
63
|
return {
|
|
81
64
|
animatedStyle,
|
|
82
|
-
animatedProps
|
|
83
|
-
shouldBlockVisibility
|
|
65
|
+
animatedProps
|
|
84
66
|
};
|
|
85
67
|
};
|
|
86
68
|
//# sourceMappingURL=use-maybe-block-visibility.js.map
|