react-native-screen-transitions 3.9.0-alpha.2 → 3.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +14 -9
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +66 -28
- 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} +8 -4
- 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} +27 -10
- 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} +5 -7
- 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} +4 -4
- 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 +14 -35
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +5 -6
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/index.js +26 -29
- 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 +78 -27
- 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 +195 -121
- 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/hooks/use-placeholder-styles.js +57 -0
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- 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 -48
- 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 +6 -7
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +1 -22
- 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/masked-view.js +5 -0
- package/lib/commonjs/shared/components/masked-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +18 -8
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +34 -16
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/render-component.js +10 -0
- package/lib/commonjs/shared/components/screen-container/layers/render-component.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +5 -3
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/index.js +4 -0
- 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/register-bounds.provider.js +6 -0
- package/lib/commonjs/shared/providers/register-bounds.provider.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 +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.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/resolve-slot-styles/index.js +9 -3
- 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/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 +16 -3
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/index.js +16 -3
- package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +22 -51
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- 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 +22 -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/module/shared/components/boundary/components/boundary-target.js +12 -7
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +67 -29
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +8 -4
- 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} +27 -10
- 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} +5 -7
- 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} +4 -4
- 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 +15 -36
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +5 -6
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/index.js +26 -29
- 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 +79 -28
- 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 +201 -127
- 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/hooks/use-placeholder-styles.js +52 -0
- package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- 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 -48
- 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 +6 -7
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/destination-signals.js +2 -23
- 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/masked-view.js +5 -0
- package/lib/module/shared/components/masked-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +19 -9
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +35 -17
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/render-component.js +6 -0
- package/lib/module/shared/components/screen-container/layers/render-component.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js +5 -3
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/index.js +4 -0
- 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/register-bounds.provider.js +6 -0
- package/lib/module/shared/providers/register-bounds.provider.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 +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.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/resolve-slot-styles/index.js +9 -3
- 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/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 +16 -3
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.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 +22 -47
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- 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 +19 -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/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +1 -2
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/component-screen.d.ts +1 -1
- package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +1 -2
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/component-stack/types.d.ts +26 -0
- package/lib/typescript/component-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +1 -1
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.d.ts +1 -2
- package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +2 -2
- package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts.map +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/activity/variants/activity-container.d.ts +1 -1
- package/lib/typescript/shared/components/activity/variants/activity-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts +1 -1
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +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/{use-initial-destination-measurement.d.ts → lifecycles/use-initial-destination-measurement.d.ts} +2 -2
- 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/{use-refresh-boundary.d.ts → lifecycles/use-refresh-boundary.d.ts} +2 -2
- 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 +5 -9
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +4 -3
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/index.d.ts +35 -24
- 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 +2 -2
- 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 +2 -2
- 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-provider.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-provider.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/hooks/use-placeholder-styles.d.ts +17 -0
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +1 -0
- 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 +23 -30
- 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 +7 -12
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- 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.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 +6 -5
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/masked-view.d.ts +5 -1
- package/lib/typescript/shared/components/masked-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/index.d.ts +1 -1
- package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +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 +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 +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/render-component.d.ts +3 -0
- package/lib/typescript/shared/components/screen-container/layers/render-component.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +731 -683
- 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/register-bounds.provider.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/descriptors/descriptors.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.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/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/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 -1
- 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 +3 -3
- 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 +5 -10
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- 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 +2 -0
- 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 +9 -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/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +99 -4
- package/lib/typescript/shared/types/screen.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/types/options.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component-stack/types.ts +26 -0
- package/src/shared/components/boundary/components/boundary-target.tsx +21 -7
- package/src/shared/components/boundary/create-boundary-component.tsx +92 -28
- package/src/shared/components/boundary/hooks/{use-boundary-presence.ts → lifecycles/use-boundary-presence.ts} +16 -5
- package/src/shared/components/boundary/hooks/{use-initial-destination-measurement.ts → lifecycles/use-initial-destination-measurement.ts} +40 -13
- package/src/shared/components/boundary/hooks/{use-initial-source-measurement.ts → lifecycles/use-initial-source-measurement.ts} +7 -9
- package/src/shared/components/boundary/hooks/{use-refresh-boundary.ts → lifecycles/use-refresh-boundary.ts} +6 -6
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +15 -45
- package/src/shared/components/boundary/hooks/use-measurer.ts +9 -14
- package/src/shared/components/boundary/index.tsx +55 -29
- 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 +112 -46
- package/src/shared/components/boundary/portal/components/portal.tsx +263 -134
- package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +23 -2
- package/src/shared/components/boundary/portal/hooks/use-placeholder-styles.ts +55 -0
- 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 +42 -137
- 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-root.provider.tsx +9 -18
- package/src/shared/components/boundary/types.ts +9 -39
- package/src/shared/components/boundary/utils/destination-signals.ts +1 -32
- 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/masked-view.tsx +4 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +31 -10
- package/src/shared/components/screen-container/layers/content.tsx +61 -22
- package/src/shared/components/screen-container/layers/render-component.ts +9 -0
- package/src/shared/components/screen-container/layers/surface-container.tsx +5 -4
- package/src/shared/index.ts +9 -5
- package/src/shared/providers/helpers/measured-bounds-writes.ts +6 -11
- package/src/shared/providers/register-bounds.provider.tsx +5 -0
- package/src/shared/providers/screen/animation/helpers/derivations.ts +3 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -0
- 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/resolve-slot-styles/index.ts +14 -2
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +3 -0
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +111 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +21 -3
- package/src/shared/providers/screen/styles/index.tsx +8 -3
- package/src/shared/providers/screen/styles/slot.provider.tsx +36 -54
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +71 -0
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +24 -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 +10 -22
- package/src/shared/stores/system.store.ts +6 -0
- package/src/shared/types/animation.types.ts +8 -1
- package/src/shared/types/index.ts +5 -0
- package/src/shared/types/screen.types.ts +111 -4
- 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/types/options.ts +2 -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/resolve-portal.js +0 -36
- package/lib/commonjs/shared/components/boundary/portal/resolve-portal.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/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/resolve-portal.js +0 -31
- package/lib/module/shared/components/boundary/portal/resolve-portal.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/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts +0 -9
- 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.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.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/resolve-portal.d.ts +0 -14
- package/lib/typescript/shared/components/boundary/portal/resolve-portal.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/src/shared/components/boundary/portal/resolve-portal.ts +0 -40
- package/src/shared/components/boundary/portal/utils/attachment.ts +0 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isExplicitTransitionSlot","value","
|
|
1
|
+
{"version":3,"names":["_localTransform","require","isExplicitTransitionSlot","value","hasBoundsLocalTransformMarker","style","getBoundsLocalTransform","length","isAlreadyNormalizedStyleMapWithoutBoundsMetadata","raw","key","undefined","normalizeSlots","normalized","explicitSlot","boundsLocalTransform","stripBoundsLocalTransform","props"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;;;;;AAIA,IAAAA,eAAA,GAAAC,OAAA;AAKA,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,CAAC,IAAAC,uCAAuB,EAACD,KAAY,CAAC,EAAEE,MAAM;AACvD,CAAC;AAED,MAAMC,gDAAgD,GACrDC,GAAwB,IACpB;EACJ,SAAS;;EAET,KAAK,MAAMC,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMN,KAAK,GAAGM,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIP,KAAK,KAAKQ,SAAS,EAAE;MACxB;IACD;IAEA,IAAI,CAACT,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACrC,OAAO,KAAK;IACb;IAEA,IACCC,6BAA6B,CAC3BD,KAAK,CAAmCE,KAC1C,CAAC,EACA;MACD,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASO,cAAcA,CAC7BH,GAAwB,EACgB;EACxC,SAAS;;EAET,IAAID,gDAAgD,CAACC,GAAG,CAAC,EAAE;IAC1D,OAAOA,GAAG;EACX;EAEA,MAAMI,UAAqE,GAC1E,CAAC,CAAC;EAEH,KAAK,MAAMH,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMN,KAAK,GAAGM,GAAG,CAACC,GAAG,CAAC;;IAEtB;IACA,IAAIP,KAAK,KAAKQ,SAAS,EAAE;MACxBE,UAAU,CAACH,GAAG,CAAC,GAAGC,SAAS;MAC3B;IACD;IAEA,IAAIT,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACpC,MAAMW,YAAY,GAAGX,KAAsC;MAC3D,MAAMY,oBAAoB,GAAG,IAAAT,uCAAuB,EAACQ,YAAY,CAACT,KAAK,CAAC;MAExE,IAAI,CAACU,oBAAoB,EAAER,MAAM,EAAE;QAClCM,UAAU,CAACH,GAAG,CAAC,GAAGI,YAAY;QAC9B;MACD;MAEAD,UAAU,CAACH,GAAG,CAAC,GAAG;QACjBL,KAAK,EAAES,YAAY,CAACT,KAAK,GACtB,IAAAW,yCAAyB,EAACF,YAAY,CAACT,KAAK,CAAC,GAC7CM,SAAS;QACZM,KAAK,EAAEH,YAAY,CAACG,KAAK;QACzBF;MACD,CAAC;IACF,CAAC,MAAM;MACN,MAAMA,oBAAoB,GAAG,IAAAT,uCAAuB,EAACH,KAAK,CAAC;MAC3D,MAAME,KAAK,GACVU,oBAAoB,EAAER,MAAM,IAAIJ,KAAK,GAClC,IAAAa,yCAAyB,EAACb,KAAK,CAAC,GAChCA,KAAK;;MAET;MACAU,UAAU,CAACH,GAAG,CAAC,GAAGK,oBAAoB,EAAER,MAAM,GAC3C;QAAEF,KAAK;QAAEU;MAAqB,CAAC,GAC/B;QAAEV;MAAM,CAAC;IACb;EACD;EAEA,OAAOQ,UAAU;AAClB","ignoreList":[]}
|
|
@@ -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,
|
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","hasDefinedBucketValue","value","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","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.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;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,CAC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,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC+C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAIjD,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACyC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC/C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CuC,kBAAkB,CAACxC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,MAAMiD,iBAAiB,GAAGA,CAAC;EACjC/C,eAAe;EACfa,iBAAiB;EACjByB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMtB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMlB,OAAO,GAAG;IACfG,eAAe;IACfa,iBAAiB;IACjByB,yBAAyB;IACzBtB,iBAAiB;IACjBD;EACD,CAAC;EAEDwB,kBAAkB,CAAC1C,OAAO,CAAC;EAC3B8C,oBAAoB,CAAC9C,OAAO,CAAC;EAC7BiD,mBAAmB,CAACjD,OAAO,CAAC;EAE5B,OAAO;IACNmB,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;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;;EAET,IAAI,CAACF,YAAY,IAAI,CAACC,mBAAmB,EAAE;IAC1C,OAAO,KAAK;EACb;EAEA,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EhD,OAAO,CAAC4B,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC+C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAIjD,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACyC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC/C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CuC,kBAAkB,CAACxC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,MAAMiD,iBAAiB,GAAGA,CAAC;EACjC/C,eAAe;EACfa,iBAAiB;EACjByB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMtB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMlB,OAAO,GAAG;IACfG,eAAe;IACfa,iBAAiB;IACjByB,yBAAyB;IACzBtB,iBAAiB;IACjBD;EACD,CAAC;EAEDwB,kBAAkB,CAAC1C,OAAO,CAAC;EAC3B8C,oBAAoB,CAAC9C,OAAO,CAAC;EAC7BiD,mBAAmB,CAACjD,OAAO,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;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,GA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TQ,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,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,MAAM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MK,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":[]}
|
|
@@ -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,aAAA;AAEK,MAAMc,qBAAqB,GAAGA,CACpCb,MAA0B,EAC1BQ,KAAc,KACV;EACJ,MAAM;IAAEP;EAAS,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EACrC,MAAMY,cAAc,GAAG,IAAAC,cAAO,EAC7B,MAAM,IAAAC,qDAAmC,EAACR,KAAK,CAAC,EAChD,CAACA,KAAK,CACP,CAAC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AAS;IACpE,MAAMgB,KAAK,GAAGJ,SAAS,EAAEI,KAAK;IAC9B,MAAMC,MAAM,GAAGL,SAAS,EAAEK,MAAM;IAChC,MAAMC,QAAQ,GAAGN,SAAS,EAAEM,QAAQ;IACpC,MAAMC,SAAS,GAAGP,SAAS,EAAEO,SAAS;IACtC,MAAMC,QAAQ,GAAGR,SAAS,EAAEQ,QAAQ;IACpC,MAAMC,SAAS,GAAGT,SAAS,EAAES,SAAS;IACtC,MAAMC,WAAW,GAAGV,SAAS,EAAEU,WAAW;IAE1C,IACCN,KAAK,KAAKhB,SAAS,IACnBiB,MAAM,KAAKjB,SAAS,IACpBkB,QAAQ,KAAKlB,SAAS,IACtBmB,SAAS,KAAKnB,SAAS,IACvBoB,QAAQ,KAAKpB,SAAS,IACtBqB,SAAS,KAAKrB,SAAS,IACvBsB,WAAW,KAAKtB,SAAS,EACxB;MACD,OAAOG,oBAAS;IACjB;IAEA,OAAO;MACNa,KAAK;MACLC,MAAM;MACNC,QAAQ;MACRC,SAAS;MACTC,QAAQ;MACRC,SAAS;MACTC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAAChB,OAAA,CAAAS,mBAAA,GAAAA,mBAAA;AAEK,MAAMQ,YAAY,GAAI7B,MAA0B,IAAK;EAC3D,MAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAErC,OAAO,IAAA4B,uCAAgB,EAAC,MAAM;IAC7B,OAAO,CAAC9B,MAAM,GAAGC,QAAQ,CAACI,GAAG,CAAC,CAAC,CAACL,MAAM,CAAC,EAAE+B,KAAK,GAAGzB,SAAS,KAAK0B,mBAAQ;EACxE,CAAC,CAAC;AACH,CAAC;AAACpB,OAAA,CAAAiB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ exports.useInterpolatedStylesMap = void 0;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _constants = require("../../../../constants");
|
|
9
9
|
var _animation = require("../../../../stores/animation.store");
|
|
10
|
+
var _system = require("../../../../stores/system.store");
|
|
10
11
|
var _logger = require("../../../../utils/logger");
|
|
11
12
|
var _animation2 = require("../../animation");
|
|
12
13
|
var _useBuildBoundsAccessor = require("../../animation/helpers/accessors/use-build-bounds-accessor");
|
|
@@ -104,12 +105,17 @@ const useInterpolatedStylesMap = () => {
|
|
|
104
105
|
} = (0, _animation2.useScreenAnimationContext)();
|
|
105
106
|
const boundsAccessor = (0, _useBuildBoundsAccessor.useBuildBoundsAccessor)();
|
|
106
107
|
const transition = (0, _useBuildTransitionAccessor.useBuildTransitionAccessor)();
|
|
108
|
+
const nextInterpolatorReady = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
109
|
+
const activeScreenKey = nextScreenKey ?? currentScreenKey;
|
|
107
110
|
const {
|
|
108
111
|
entering: activeEntering,
|
|
109
112
|
transitionProgress: activeTransitionProgress
|
|
110
|
-
} = _animation.AnimationStore.getBag(
|
|
113
|
+
} = _animation.AnimationStore.getBag(activeScreenKey);
|
|
114
|
+
const {
|
|
115
|
+
pendingLifecycleRequestKind: activePendingLifecycleRequestKind
|
|
116
|
+
} = _system.SystemStore.getBag(activeScreenKey);
|
|
111
117
|
const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
112
|
-
|
|
118
|
+
const localStylesMaps = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
113
119
|
"worklet";
|
|
114
120
|
|
|
115
121
|
(0, _readScreenAnimationRevisions.readScreenAnimationRevisions)(screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources);
|
|
@@ -137,7 +143,10 @@ const useInterpolatedStylesMap = () => {
|
|
|
137
143
|
// genuinely live: never during a gesture-driven close, never before a next
|
|
138
144
|
// interpolator exists, and never in the next screen's pre-start window
|
|
139
145
|
// (entering, but no transformed frame yet). Only then does "next" take over.
|
|
140
|
-
const
|
|
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);
|
|
141
150
|
const interpolatorOptionsOwner = currentOwnsInterpolator ? "current" : "next";
|
|
142
151
|
let selectedProgress = progress;
|
|
143
152
|
let selectedNext = next;
|
|
@@ -179,6 +188,10 @@ const useInterpolatedStylesMap = () => {
|
|
|
179
188
|
}
|
|
180
189
|
return layers;
|
|
181
190
|
});
|
|
191
|
+
return {
|
|
192
|
+
localStylesMaps,
|
|
193
|
+
nextInterpolatorReady
|
|
194
|
+
};
|
|
182
195
|
};
|
|
183
196
|
exports.useInterpolatedStylesMap = useInterpolatedStylesMap;
|
|
184
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","_animation","_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","entering","activeEntering","transitionProgress","activeTransitionProgress","AnimationStore","getBag","isGesturingDuringCloseAnimation","
|
|
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,OAA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F,eAAe;IACvB;IAEA,OAAOqB,MAAM;EACd,CAAC,CAAC;EAEF,OAAO;IACNmC,eAAe;IACfb;EACD,CAAC;AACF,CAAC;AAACwC,OAAA,CAAA3D,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -15,29 +15,42 @@ Object.defineProperty(exports, "ScreenSlotProvider", {
|
|
|
15
15
|
return _slot.ScreenSlotProvider;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "useComposedSlotStyles", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _slotResolvers.useComposedSlotStyles;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "useScreenSlots", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function () {
|
|
21
27
|
return _slot.useScreenSlots;
|
|
22
28
|
}
|
|
23
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "useSlotLayoutStyles", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _slotResolvers.useSlotLayoutStyles;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
24
36
|
Object.defineProperty(exports, "useSlotProps", {
|
|
25
37
|
enumerable: true,
|
|
26
38
|
get: function () {
|
|
27
|
-
return
|
|
39
|
+
return _slotResolvers.useSlotProps;
|
|
28
40
|
}
|
|
29
41
|
});
|
|
30
42
|
Object.defineProperty(exports, "useSlotStackingStyles", {
|
|
31
43
|
enumerable: true,
|
|
32
44
|
get: function () {
|
|
33
|
-
return
|
|
45
|
+
return _slotResolvers.useSlotStackingStyles;
|
|
34
46
|
}
|
|
35
47
|
});
|
|
36
48
|
Object.defineProperty(exports, "useSlotStyles", {
|
|
37
49
|
enumerable: true,
|
|
38
50
|
get: function () {
|
|
39
|
-
return
|
|
51
|
+
return _slotResolvers.useSlotStyles;
|
|
40
52
|
}
|
|
41
53
|
});
|
|
54
|
+
var _slotResolvers = require("./hooks/slot-resolvers");
|
|
42
55
|
var _slot = require("./slot.provider");
|
|
43
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_slotResolvers","require","_slot"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAQA,IAAAC,KAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.useScreenSlots = exports.ScreenSlotProvider = exports.ScreenSlotContext = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeReanimated =
|
|
10
|
-
var _constants = require("../../../constants");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
11
10
|
var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
|
|
11
|
+
var _descriptors = require("../descriptors");
|
|
12
12
|
var _floatingOverlayLayer = require("./components/floating-overlay-layer");
|
|
13
13
|
var _useInterpolatedStyleMaps = require("./hooks/use-interpolated-style-maps");
|
|
14
14
|
var _useMaybeBlockVisibility = require("./hooks/use-maybe-block-visibility");
|
|
15
15
|
var _useResolvedSlotStyleMap = require("./hooks/use-resolved-slot-style-map");
|
|
16
|
+
var _slotReferences = require("./stores/slot-references.store");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
19
|
const {
|
|
20
20
|
ScreenSlotProvider,
|
|
21
21
|
ScreenSlotContext,
|
|
@@ -27,19 +27,32 @@ const {
|
|
|
27
27
|
isFloatingOverlay
|
|
28
28
|
}) => {
|
|
29
29
|
const parentContext = (0, _react.useContext)(ScreenSlotContext);
|
|
30
|
-
const
|
|
30
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
31
|
+
const {
|
|
32
|
+
localStylesMaps,
|
|
33
|
+
nextInterpolatorReady
|
|
34
|
+
} = (0, _useInterpolatedStyleMaps.useInterpolatedStylesMap)();
|
|
31
35
|
const slotsMap = (0, _useResolvedSlotStyleMap.useResolvedStylesMap)({
|
|
32
|
-
localStylesMaps
|
|
36
|
+
localStylesMaps,
|
|
33
37
|
ancestorStylesMap: parentContext?.slotsMap
|
|
34
38
|
});
|
|
35
39
|
const {
|
|
36
40
|
animatedStyle,
|
|
37
41
|
animatedProps
|
|
38
42
|
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(isFloatingOverlay);
|
|
43
|
+
const value = (0, _react.useMemo)(() => ({
|
|
44
|
+
localStylesMaps,
|
|
45
|
+
nextInterpolatorReady,
|
|
46
|
+
slotsMap
|
|
47
|
+
}), [localStylesMaps, nextInterpolatorReady, slotsMap]);
|
|
48
|
+
(0, _react.useLayoutEffect)(() => {
|
|
49
|
+
(0, _slotReferences.registerScreenSlots)(currentScreenKey, value);
|
|
50
|
+
return () => {
|
|
51
|
+
(0, _slotReferences.unregisterScreenSlots)(currentScreenKey, value);
|
|
52
|
+
};
|
|
53
|
+
}, [currentScreenKey, value]);
|
|
39
54
|
return {
|
|
40
|
-
value
|
|
41
|
-
slotsMap
|
|
42
|
-
},
|
|
55
|
+
value,
|
|
43
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingOverlayLayer.FloatingOverlayLayer, {
|
|
44
57
|
enabled: isFloatingOverlay,
|
|
45
58
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
@@ -58,46 +71,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
58
71
|
flex: 1
|
|
59
72
|
}
|
|
60
73
|
});
|
|
61
|
-
const useSlotStyles = slotId => {
|
|
62
|
-
const {
|
|
63
|
-
slotsMap
|
|
64
|
-
} = useScreenSlots();
|
|
65
|
-
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
66
|
-
return (slotId ? slotsMap.get()[slotId]?.style : undefined) ?? _constants.NO_STYLES;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Stacking-only slice (`zIndex`/`elevation`) of a slot's style. Returned
|
|
72
|
-
* separately so an owner can keep just its stacking context while a nested
|
|
73
|
-
* target takes the full associated style. Yields `NO_STYLES` when neither is set.
|
|
74
|
-
*/
|
|
75
|
-
exports.useSlotStyles = useSlotStyles;
|
|
76
|
-
const useSlotStackingStyles = slotId => {
|
|
77
|
-
const {
|
|
78
|
-
slotsMap
|
|
79
|
-
} = useScreenSlots();
|
|
80
|
-
return (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
81
|
-
const baseStyle = slotId ? slotsMap.get()[slotId]?.style : undefined;
|
|
82
|
-
const zIndex = baseStyle?.zIndex ?? 0;
|
|
83
|
-
const elevation = baseStyle?.elevation ?? 0;
|
|
84
|
-
if (zIndex === 0 && elevation === 0) {
|
|
85
|
-
return _constants.NO_STYLES;
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
zIndex,
|
|
89
|
-
elevation
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
exports.useSlotStackingStyles = useSlotStackingStyles;
|
|
94
|
-
const useSlotProps = slotId => {
|
|
95
|
-
const {
|
|
96
|
-
slotsMap
|
|
97
|
-
} = useScreenSlots();
|
|
98
|
-
return (0, _reactNativeReanimated.useAnimatedProps)(() => {
|
|
99
|
-
return (slotId ? slotsMap.get()[slotId]?.props : undefined) ?? _constants.NO_PROPS;
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
exports.useSlotProps = useSlotProps;
|
|
103
74
|
//# sourceMappingURL=slot.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_descriptors","_floatingOverlayLayer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_slotReferences","_jsxRuntime","e","__esModule","default","ScreenSlotProvider","ScreenSlotContext","useScreenSlotContext","useScreenSlots","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","currentScreenKey","useDescriptorsStore","s","derivations","localStylesMaps","nextInterpolatorReady","useInterpolatedStylesMap","slotsMap","useResolvedStylesMap","ancestorStylesMap","animatedStyle","animatedProps","useMaybeBlockVisibility","value","useMemo","useLayoutEffect","registerScreenSlots","unregisterScreenSlots","jsx","FloatingOverlayLayer","enabled","View","style","styles","container","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/slot.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAMA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,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gB,EAAEa,KAAK,CAAC;IAC/C,CAAC;EACF,CAAC,EAAE,CAACb,gBAAgB,EAAEa,KAAK,CAAC,CAAC;EAE7B,OAAO;IACNA,KAAK;IACLjB,QAAQ,eACP,IAAAV,WAAA,CAAAgC,GAAA,EAACrC,qBAAA,CAAAsC,oBAAoB;MAACC,OAAO,EAAEvB,iBAAkB;MAAAD,QAAA,eAChD,IAAAV,WAAA,CAAAgC,GAAA,EAACzC,sBAAA,CAAAY,OAAQ,CAACgC,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEd,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAf,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACK;EAExB,CAAC;AACF,CAAC,CAAC;AAAC6B,OAAA,CAAAhC,cAAA,GAAAA,cAAA;AAAAgC,OAAA,CAAAlC,iBAAA,GAAAA,iBAAA;AAAAkC,OAAA,CAAAnC,kBAAA,GAAAA,kBAAA;AAEH,MAAMiC,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useRegisteredScreenSlots = exports.unregisterScreenSlots = exports.registerScreenSlots = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
* Screen-owned slot reference registry.
|
|
10
|
+
*
|
|
11
|
+
* This is important for portals: a teleported component can render outside the
|
|
12
|
+
* screen provider that owns its active transition, but it still needs references
|
|
13
|
+
* to that provider's shared values. This store does not copy or own styles; it
|
|
14
|
+
* only exposes the existing ScreenSlotProvider value by screen key.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const listeners = new Set();
|
|
18
|
+
const slotsByScreenKey = new Map();
|
|
19
|
+
let snapshot = {};
|
|
20
|
+
const emit = () => {
|
|
21
|
+
snapshot = Object.fromEntries(slotsByScreenKey);
|
|
22
|
+
for (const listener of listeners) {
|
|
23
|
+
listener();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const registerScreenSlots = (screenKey, slots) => {
|
|
27
|
+
const previous = slotsByScreenKey.get(screenKey);
|
|
28
|
+
if (previous?.localStylesMaps === slots.localStylesMaps && previous.nextInterpolatorReady === slots.nextInterpolatorReady && previous.slotsMap === slots.slotsMap) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
slotsByScreenKey.set(screenKey, slots);
|
|
32
|
+
emit();
|
|
33
|
+
};
|
|
34
|
+
exports.registerScreenSlots = registerScreenSlots;
|
|
35
|
+
const unregisterScreenSlots = (screenKey, slots) => {
|
|
36
|
+
if (slotsByScreenKey.get(screenKey) !== slots) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
slotsByScreenKey.delete(screenKey);
|
|
40
|
+
emit();
|
|
41
|
+
};
|
|
42
|
+
exports.unregisterScreenSlots = unregisterScreenSlots;
|
|
43
|
+
const subscribe = listener => {
|
|
44
|
+
listeners.add(listener);
|
|
45
|
+
return () => {
|
|
46
|
+
listeners.delete(listener);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const useRegisteredScreenSlots = screenKey => {
|
|
50
|
+
return (0, _react.useSyncExternalStore)(subscribe, () => screenKey ? snapshot[screenKey] ?? null : null, () => null);
|
|
51
|
+
};
|
|
52
|
+
exports.useRegisteredScreenSlots = useRegisteredScreenSlots;
|
|
53
|
+
//# sourceMappingURL=slot-references.store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","listeners","Set","slotsByScreenKey","Map","snapshot","emit","Object","fromEntries","listener","registerScreenSlots","screenKey","slots","previous","get","localStylesMaps","nextInterpolatorReady","slotsMap","set","exports","unregisterScreenSlots","delete","subscribe","add","useRegisteredScreenSlots","useSyncExternalStore"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/stores/slot-references.store.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAa,CAAC;AACvC,MAAMC,gBAAgB,GAAG,IAAIC,GAAG,CAAoC,CAAC;AAErE,IAAIC,QAA6B,GAAG,CAAC,CAAC;AAEtC,MAAMC,IAAI,GAAGA,CAAA,KAAM;EAClBD,QAAQ,GAAGE,MAAM,CAACC,WAAW,CAACL,gBAAgB,CAAC;EAE/C,KAAK,MAAMM,QAAQ,IAAIR,SAAS,EAAE;IACjCQ,QAAQ,CAAC,CAAC;EACX;AACD,CAAC;AAEM,MAAMC,mBAAmB,GAAGA,CAClCC,SAAoB,EACpBC,KAA6B,KACzB;EACJ,MAAMC,QAAQ,GAAGV,gBAAgB,CAACW,GAAG,CAACH,SAAS,CAAC;EAChD,IACCE,QAAQ,EAAEE,eAAe,KAAKH,KAAK,CAACG,eAAe,IACnDF,QAAQ,CAACG,qBAAqB,KAAKJ,KAAK,CAACI,qBAAqB,IAC9DH,QAAQ,CAACI,QAAQ,KAAKL,KAAK,CAACK,QAAQ,EACnC;IACD;EACD;EAEAd,gBAAgB,CAACe,GAAG,CAACP,SAAS,EAAEC,KAAK,CAAC;EACtCN,IAAI,CAAC,CAAC;AACP,CAAC;AAACa,OAAA,CAAAT,mBAAA,GAAAA,mBAAA;AAEK,MAAMU,qBAAqB,GAAGA,CACpCT,SAAoB,EACpBC,KAA6B,KACzB;EACJ,IAAIT,gBAAgB,CAACW,GAAG,CAACH,SAAS,CAAC,KAAKC,KAAK,EAAE;IAC9C;EACD;EAEAT,gBAAgB,CAACkB,MAAM,CAACV,SAAS,CAAC;EAClCL,IAAI,CAAC,CAAC;AACP,CAAC;AAACa,OAAA,CAAAC,qBAAA,GAAAA,qBAA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