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,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getActiveGroupId,
|
|
3
|
+
getLinkKeyFromTag,
|
|
4
|
+
} from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
1
5
|
import type {
|
|
2
6
|
LinkPairsState,
|
|
3
7
|
ScreenPairKey,
|
|
@@ -8,6 +12,7 @@ export const getInitialDestinationMeasurePairKey = (params: {
|
|
|
8
12
|
destinationPairKey?: ScreenPairKey;
|
|
9
13
|
ancestorDestinationPairKey?: ScreenPairKey;
|
|
10
14
|
linkId: string;
|
|
15
|
+
group?: string;
|
|
11
16
|
linkState?: LinkPairsState;
|
|
12
17
|
}): ScreenPairKey | null => {
|
|
13
18
|
"worklet";
|
|
@@ -16,6 +21,7 @@ export const getInitialDestinationMeasurePairKey = (params: {
|
|
|
16
21
|
destinationPairKey,
|
|
17
22
|
ancestorDestinationPairKey,
|
|
18
23
|
linkId,
|
|
24
|
+
group,
|
|
19
25
|
linkState,
|
|
20
26
|
} = params;
|
|
21
27
|
const measurePairKey = destinationPairKey ?? ancestorDestinationPairKey;
|
|
@@ -24,8 +30,22 @@ export const getInitialDestinationMeasurePairKey = (params: {
|
|
|
24
30
|
return null;
|
|
25
31
|
}
|
|
26
32
|
|
|
33
|
+
const linkKey = getLinkKeyFromTag(linkId);
|
|
27
34
|
const hasDestination =
|
|
28
|
-
linkState?.[measurePairKey]?.links?.[
|
|
35
|
+
linkState?.[measurePairKey]?.links?.[linkKey]?.destination;
|
|
29
36
|
|
|
30
|
-
|
|
37
|
+
if (hasDestination) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const activeGroupId =
|
|
42
|
+
group && linkState
|
|
43
|
+
? getActiveGroupId(linkState, measurePairKey, group)
|
|
44
|
+
: null;
|
|
45
|
+
|
|
46
|
+
if (activeGroupId && activeGroupId !== linkKey) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return measurePairKey;
|
|
31
51
|
};
|
|
@@ -26,19 +26,6 @@ const buildRefreshSignal = (
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const isMatchedScreenPortalDestinationRefresh = (
|
|
30
|
-
linkState: LinkPairsState | undefined,
|
|
31
|
-
pairKey: ScreenPairKey,
|
|
32
|
-
linkId: string,
|
|
33
|
-
) => {
|
|
34
|
-
"worklet";
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
linkState?.[pairKey]?.links?.[linkId]?.source?.portalAttachTarget ===
|
|
38
|
-
"matched-screen"
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
29
|
export const getRefreshBoundarySignal = (params: {
|
|
43
30
|
enabled: boolean;
|
|
44
31
|
currentScreenKey: string;
|
|
@@ -99,22 +86,6 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
99
86
|
return null;
|
|
100
87
|
}
|
|
101
88
|
|
|
102
|
-
// NOTE:
|
|
103
|
-
// Matched-screen portals use the destination as the initial host/anchor.
|
|
104
|
-
// Once attached, the teleported source is the thing being animated, so a
|
|
105
|
-
// fresh destination measure would mix in a second coordinate basis. Signals were introduced for scroll view cases + group
|
|
106
|
-
// cases, but I can't find a case for where a live component ( matched-screen ) would need this complexity. I would just assume
|
|
107
|
-
// you would want this for a->b | b->a transitions.
|
|
108
|
-
if (
|
|
109
|
-
isMatchedScreenPortalDestinationRefresh(
|
|
110
|
-
linkState,
|
|
111
|
-
refreshDestinationPairKey,
|
|
112
|
-
linkId,
|
|
113
|
-
)
|
|
114
|
-
) {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
89
|
return buildRefreshSignal(
|
|
119
90
|
"destination",
|
|
120
91
|
refreshDestinationPairKey,
|
|
@@ -155,18 +126,6 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
155
126
|
return null;
|
|
156
127
|
}
|
|
157
128
|
|
|
158
|
-
// NOTE:
|
|
159
|
-
// see above for explanation
|
|
160
|
-
if (
|
|
161
|
-
isMatchedScreenPortalDestinationRefresh(
|
|
162
|
-
linkState,
|
|
163
|
-
refreshDestinationPairKey,
|
|
164
|
-
linkId,
|
|
165
|
-
)
|
|
166
|
-
) {
|
|
167
|
-
return null;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
129
|
return buildRefreshSignal(
|
|
171
130
|
"destination",
|
|
172
131
|
refreshDestinationPairKey,
|
|
@@ -15,32 +15,20 @@ export const getInitialSourceCaptureSignal = (params: {
|
|
|
15
15
|
sourcePairKey?: ScreenPairKey;
|
|
16
16
|
linkId: string;
|
|
17
17
|
group?: string;
|
|
18
|
-
shouldAutoMeasure: boolean;
|
|
19
18
|
linkState?: LinkPairsState;
|
|
20
19
|
}): SourceCaptureSignal | null => {
|
|
21
20
|
"worklet";
|
|
22
|
-
const {
|
|
23
|
-
enabled,
|
|
24
|
-
sourcePairKey,
|
|
25
|
-
linkId,
|
|
26
|
-
group,
|
|
27
|
-
shouldAutoMeasure,
|
|
28
|
-
linkState,
|
|
29
|
-
} = params;
|
|
21
|
+
const { enabled, sourcePairKey, linkId, group, linkState } = params;
|
|
30
22
|
|
|
31
23
|
if (!enabled || !sourcePairKey) {
|
|
32
24
|
return null;
|
|
33
25
|
}
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const link = linkState?.[sourcePairKey]?.links?.[linkId];
|
|
27
|
+
const pair = linkState?.[sourcePairKey];
|
|
28
|
+
const link = pair?.links?.[linkId];
|
|
29
|
+
const hasSourceRequest = pair?.sourceRequests?.[linkId];
|
|
42
30
|
|
|
43
|
-
if (!link?.destination || link
|
|
31
|
+
if ((!link?.destination && !hasSourceRequest) || link?.source) {
|
|
44
32
|
return null;
|
|
45
33
|
}
|
|
46
34
|
|
|
@@ -5,18 +5,15 @@ import type { View } from "react-native";
|
|
|
5
5
|
import { GestureDetector } from "react-native-gesture-handler";
|
|
6
6
|
import Animated, {
|
|
7
7
|
runOnUI,
|
|
8
|
-
useAnimatedProps,
|
|
9
8
|
useAnimatedRef,
|
|
10
|
-
useAnimatedStyle,
|
|
11
9
|
useComposedEventHandler,
|
|
12
10
|
} from "react-native-reanimated";
|
|
13
|
-
import { NO_PROPS, NO_STYLES } from "../constants";
|
|
14
11
|
import { RegisterBoundsProvider } from "../providers/register-bounds.provider";
|
|
15
12
|
import {
|
|
16
13
|
ScrollMetadataOwnerProvider,
|
|
17
14
|
useScrollGestureCoordination,
|
|
18
15
|
} from "../providers/screen/gestures/scroll-coordination";
|
|
19
|
-
import {
|
|
16
|
+
import { useSlotProps, useSlotStyles } from "../providers/screen/styles";
|
|
20
17
|
import type { TransitionAwareProps } from "../types/screen.types";
|
|
21
18
|
|
|
22
19
|
interface CreateTransitionAwareComponentOptions {
|
|
@@ -128,28 +125,9 @@ export function createTransitionAwareComponent<P extends object>(
|
|
|
128
125
|
} = props as any;
|
|
129
126
|
|
|
130
127
|
const animatedRef = useAnimatedRef<View>();
|
|
131
|
-
const { stylesMap } = useScreenStyles();
|
|
132
128
|
const associatedId = sharedBoundTag || styleId;
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
"worklet";
|
|
136
|
-
|
|
137
|
-
if (!associatedId) {
|
|
138
|
-
return NO_STYLES;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return stylesMap.get()[associatedId]?.style ?? NO_STYLES;
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
const associatedProps = useAnimatedProps(() => {
|
|
145
|
-
"worklet";
|
|
146
|
-
|
|
147
|
-
if (!associatedId) {
|
|
148
|
-
return NO_PROPS;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return stylesMap.get()[associatedId]?.props ?? NO_PROPS;
|
|
152
|
-
});
|
|
129
|
+
const associatedStyles = useSlotStyles(associatedId);
|
|
130
|
+
const associatedProps = useSlotProps(associatedId);
|
|
153
131
|
|
|
154
132
|
return (
|
|
155
133
|
<RegisterBoundsProvider
|
|
@@ -5,7 +5,7 @@ import { ScreenAnimationProvider } from "../../../providers/screen/animation";
|
|
|
5
5
|
import type { BaseDescriptor } from "../../../providers/screen/descriptors";
|
|
6
6
|
import { DescriptorsProvider } from "../../../providers/screen/descriptors";
|
|
7
7
|
import { ScreenOptionsProvider } from "../../../providers/screen/options";
|
|
8
|
-
import {
|
|
8
|
+
import { ScreenSlotProvider } from "../../../providers/screen/styles";
|
|
9
9
|
import type { OverlayScreenState } from "../../../types/overlay.types";
|
|
10
10
|
|
|
11
11
|
import { getActiveFloatOverlay } from "../helpers/get-active-overlay";
|
|
@@ -67,12 +67,12 @@ export function FloatOverlay() {
|
|
|
67
67
|
<DescriptorsProvider current={current} previous={previous} next={next}>
|
|
68
68
|
<ScreenOptionsProvider>
|
|
69
69
|
<ScreenAnimationProvider>
|
|
70
|
-
<
|
|
70
|
+
<ScreenSlotProvider isFloatingOverlay>
|
|
71
71
|
<OverlayHost
|
|
72
72
|
scene={scene}
|
|
73
73
|
overlayScreenState={overlayScreenState}
|
|
74
74
|
/>
|
|
75
|
-
</
|
|
75
|
+
</ScreenSlotProvider>
|
|
76
76
|
</ScreenAnimationProvider>
|
|
77
77
|
</ScreenOptionsProvider>
|
|
78
78
|
</DescriptorsProvider>
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { memo, useCallback, useMemo } from "react";
|
|
2
2
|
import { Pressable, StyleSheet } from "react-native";
|
|
3
|
-
import Animated, {
|
|
4
|
-
runOnUI,
|
|
5
|
-
useAnimatedProps,
|
|
6
|
-
useAnimatedStyle,
|
|
7
|
-
} from "react-native-reanimated";
|
|
3
|
+
import Animated, { runOnUI } from "react-native-reanimated";
|
|
8
4
|
import { DefaultSnapSpec } from "../../../configs/specs";
|
|
9
|
-
import { NO_PROPS, NO_STYLES } from "../../../constants";
|
|
10
5
|
import { useNavigationHelpers } from "../../../hooks/navigation/use-navigation-helpers";
|
|
11
6
|
import { useDescriptors } from "../../../providers/screen/descriptors";
|
|
12
|
-
import {
|
|
7
|
+
import { useSlotProps, useSlotStyles } from "../../../providers/screen/styles";
|
|
13
8
|
import { AnimationStore } from "../../../stores/animation.store";
|
|
14
9
|
import { GestureStore } from "../../../stores/gesture.store";
|
|
15
10
|
import { SystemStore } from "../../../stores/system.store";
|
|
@@ -24,7 +19,6 @@ export const BackdropLayer = memo(function BackdropLayer({
|
|
|
24
19
|
backdropBehavior: BackdropBehavior;
|
|
25
20
|
isBackdropActive: boolean;
|
|
26
21
|
}) {
|
|
27
|
-
const { stylesMap } = useScreenStyles();
|
|
28
22
|
const { current } = useDescriptors();
|
|
29
23
|
const { dismissScreen } = useNavigationHelpers();
|
|
30
24
|
|
|
@@ -112,15 +106,8 @@ export const BackdropLayer = memo(function BackdropLayer({
|
|
|
112
106
|
routeKey,
|
|
113
107
|
]);
|
|
114
108
|
|
|
115
|
-
const animatedBackdropStyle =
|
|
116
|
-
|
|
117
|
-
return stylesMap.get().backdrop?.style ?? NO_STYLES;
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
const animatedBackdropProps = useAnimatedProps(() => {
|
|
121
|
-
"worklet";
|
|
122
|
-
return stylesMap.get().backdrop?.props ?? NO_PROPS;
|
|
123
|
-
});
|
|
109
|
+
const animatedBackdropStyle = useSlotStyles("backdrop");
|
|
110
|
+
const animatedBackdropProps = useSlotProps("backdrop");
|
|
124
111
|
|
|
125
112
|
return (
|
|
126
113
|
<Pressable
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
import { memo } from "react";
|
|
3
3
|
import { StyleSheet, View } from "react-native";
|
|
4
4
|
import { GestureDetector } from "react-native-gesture-handler";
|
|
5
|
-
import Animated
|
|
6
|
-
useAnimatedProps,
|
|
7
|
-
useAnimatedStyle,
|
|
8
|
-
} from "react-native-reanimated";
|
|
9
|
-
import { NO_PROPS, NO_STYLES } from "../../../constants";
|
|
5
|
+
import Animated from "react-native-reanimated";
|
|
10
6
|
import { useDescriptors } from "../../../providers/screen/descriptors";
|
|
11
7
|
import { useGestureContext } from "../../../providers/screen/gestures";
|
|
12
8
|
import { OriginProvider } from "../../../providers/screen/origin.provider";
|
|
13
|
-
import {
|
|
9
|
+
import { useSlotProps, useSlotStyles } from "../../../providers/screen/styles";
|
|
14
10
|
import { ScreenFallbackHost } from "../../boundary/portal/components/host";
|
|
15
11
|
import { useContentLayout } from "../hooks/use-content-layout";
|
|
16
12
|
import { MaybeMaskedNavigationContainer } from "./maybe-masked-navigation-container";
|
|
@@ -24,7 +20,6 @@ type Props = {
|
|
|
24
20
|
|
|
25
21
|
export const ContentLayer = memo(
|
|
26
22
|
({ children, pointerEvents, isBackdropActive }: Props) => {
|
|
27
|
-
const { stylesMap } = useScreenStyles();
|
|
28
23
|
const { current } = useDescriptors();
|
|
29
24
|
|
|
30
25
|
const gestureContext = useGestureContext();
|
|
@@ -36,15 +31,8 @@ export const ContentLayer = memo(
|
|
|
36
31
|
|
|
37
32
|
const handleContentLayout = useContentLayout();
|
|
38
33
|
|
|
39
|
-
const animatedContentStyle =
|
|
40
|
-
|
|
41
|
-
return stylesMap.get().content?.style || NO_STYLES;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const animatedContentProps = useAnimatedProps(() => {
|
|
45
|
-
"worklet";
|
|
46
|
-
return stylesMap.get().content?.props ?? NO_PROPS;
|
|
47
|
-
});
|
|
34
|
+
const animatedContentStyle = useSlotStyles("content");
|
|
35
|
+
const animatedContentProps = useSlotProps("content");
|
|
48
36
|
|
|
49
37
|
return (
|
|
50
38
|
<GestureDetector gesture={gestureContext!.detectorGesture}>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { memo, useCallback } from "react";
|
|
2
2
|
import { StyleSheet, View, type ViewProps } from "react-native";
|
|
3
|
-
import Animated
|
|
3
|
+
import Animated from "react-native-reanimated";
|
|
4
4
|
import {
|
|
5
5
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
6
6
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
7
|
-
NO_STYLES,
|
|
8
7
|
} from "../../../constants";
|
|
9
|
-
import {
|
|
8
|
+
import { useSlotStyles } from "../../../providers/screen/styles";
|
|
10
9
|
import { logger } from "../../../utils/logger";
|
|
11
10
|
|
|
12
11
|
type Props = {
|
|
@@ -47,8 +46,6 @@ const MaskedNavigationContainer = memo(
|
|
|
47
46
|
children: React.ReactNode;
|
|
48
47
|
pointerEvents: ViewProps["pointerEvents"];
|
|
49
48
|
}) => {
|
|
50
|
-
const { stylesMap } = useScreenStyles();
|
|
51
|
-
|
|
52
49
|
const maybeLogWarning = useCallback(() => {
|
|
53
50
|
if (LazyMaskedView !== View) return;
|
|
54
51
|
if (hasWarnedMissingMaskedView) return;
|
|
@@ -59,19 +56,12 @@ const MaskedNavigationContainer = memo(
|
|
|
59
56
|
);
|
|
60
57
|
}, []);
|
|
61
58
|
|
|
62
|
-
const animatedNavigationMaskStyle =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const animatedNavigationMaskContainerStyle = useAnimatedStyle(() => {
|
|
70
|
-
"worklet";
|
|
71
|
-
return (
|
|
72
|
-
stylesMap.get()[NAVIGATION_MASK_CONTAINER_STYLE_ID]?.style || NO_STYLES
|
|
73
|
-
);
|
|
74
|
-
});
|
|
59
|
+
const animatedNavigationMaskStyle = useSlotStyles(
|
|
60
|
+
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
61
|
+
);
|
|
62
|
+
const animatedNavigationMaskContainerStyle = useSlotStyles(
|
|
63
|
+
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
64
|
+
);
|
|
75
65
|
|
|
76
66
|
return (
|
|
77
67
|
<LazyMaskedView
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { type ComponentType, memo, useMemo } from "react";
|
|
2
2
|
import { StyleSheet, type ViewProps } from "react-native";
|
|
3
|
-
import Animated
|
|
4
|
-
useAnimatedProps,
|
|
5
|
-
useAnimatedStyle,
|
|
6
|
-
} from "react-native-reanimated";
|
|
7
|
-
import { NO_PROPS, NO_STYLES } from "../../../constants";
|
|
3
|
+
import Animated from "react-native-reanimated";
|
|
8
4
|
import { useDescriptors } from "../../../providers/screen/descriptors";
|
|
9
|
-
import {
|
|
5
|
+
import { useSlotProps, useSlotStyles } from "../../../providers/screen/styles";
|
|
10
6
|
|
|
11
7
|
type Props = {
|
|
12
8
|
children: React.ReactNode;
|
|
@@ -44,17 +40,8 @@ type AnimatedSurfaceProps = {
|
|
|
44
40
|
|
|
45
41
|
const AnimatedSurface = memo(
|
|
46
42
|
({ children, pointerEvents, SurfaceComponent }: AnimatedSurfaceProps) => {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const animatedSurfaceStyle = useAnimatedStyle(() => {
|
|
50
|
-
"worklet";
|
|
51
|
-
return stylesMap.get().surface?.style ?? NO_STYLES;
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const animatedSurfaceProps = useAnimatedProps(() => {
|
|
55
|
-
"worklet";
|
|
56
|
-
return stylesMap.get().surface?.props ?? NO_PROPS;
|
|
57
|
-
});
|
|
43
|
+
const animatedSurfaceStyle = useSlotStyles("surface");
|
|
44
|
+
const animatedSurfaceProps = useSlotProps("surface");
|
|
58
45
|
|
|
59
46
|
return (
|
|
60
47
|
<SurfaceComponent
|
package/src/shared/index.ts
CHANGED
|
@@ -26,11 +26,6 @@ export default {
|
|
|
26
26
|
export type { NativeStackAdapterOptions } from "./adapters/with-screen-transitions";
|
|
27
27
|
export { withScreenTransitions } from "./adapters/with-screen-transitions";
|
|
28
28
|
export { snapTo } from "./animation/snap-to";
|
|
29
|
-
export type {
|
|
30
|
-
BoundaryPortal,
|
|
31
|
-
BoundaryPortalAttachTarget,
|
|
32
|
-
BoundaryPortalOptions,
|
|
33
|
-
} from "./components/boundary";
|
|
34
29
|
export {
|
|
35
30
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
36
31
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
2
|
import { setEntry } from "../../stores/bounds/internals/entries";
|
|
3
3
|
import { setDestination, setSource } from "../../stores/bounds/internals/links";
|
|
4
|
-
import type {
|
|
5
|
-
BoundsPortalAttachTarget,
|
|
6
|
-
ScreenPairKey,
|
|
7
|
-
SourceHostRef,
|
|
8
|
-
} from "../../stores/bounds/types";
|
|
4
|
+
import type { ScreenPairKey } from "../../stores/bounds/types";
|
|
9
5
|
|
|
10
6
|
type LinkWrite =
|
|
11
7
|
| {
|
|
@@ -25,8 +21,8 @@ type ApplyMeasuredBoundsWritesParams = {
|
|
|
25
21
|
measured: MeasuredDimensions;
|
|
26
22
|
preparedStyles: StyleProps;
|
|
27
23
|
linkWrite?: LinkWrite;
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
handoff?: boolean;
|
|
25
|
+
escapeClipping?: boolean;
|
|
30
26
|
};
|
|
31
27
|
|
|
32
28
|
export const applyMeasuredBoundsWrites = (
|
|
@@ -41,8 +37,8 @@ export const applyMeasuredBoundsWrites = (
|
|
|
41
37
|
measured,
|
|
42
38
|
preparedStyles,
|
|
43
39
|
linkWrite,
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
handoff,
|
|
41
|
+
escapeClipping,
|
|
46
42
|
} = params;
|
|
47
43
|
|
|
48
44
|
// Set the bounds entry on every measure to avoid any stale measurements
|
|
@@ -59,8 +55,7 @@ export const applyMeasuredBoundsWrites = (
|
|
|
59
55
|
measured,
|
|
60
56
|
preparedStyles,
|
|
61
57
|
group,
|
|
62
|
-
|
|
63
|
-
sourceHost,
|
|
58
|
+
{ handoff, escapeClipping },
|
|
64
59
|
);
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -5,6 +5,7 @@ interface DerivationsTarget {
|
|
|
5
5
|
current: ScreenTransitionState;
|
|
6
6
|
next?: ScreenTransitionState;
|
|
7
7
|
progress: number;
|
|
8
|
+
transitionProgress: number;
|
|
8
9
|
focused: boolean;
|
|
9
10
|
active: ScreenTransitionState;
|
|
10
11
|
inactive: ScreenTransitionState | undefined;
|
|
@@ -14,6 +15,8 @@ export const updateDerivations = (frame: DerivationsTarget) => {
|
|
|
14
15
|
"worklet";
|
|
15
16
|
|
|
16
17
|
frame.progress = frame.current.progress + (frame.next?.progress ?? 0);
|
|
18
|
+
frame.transitionProgress =
|
|
19
|
+
frame.current.transitionProgress + (frame.next?.transitionProgress ?? 0);
|
|
17
20
|
frame.focused = !frame.next;
|
|
18
21
|
frame.active = frame.focused ? frame.current : (frame.next ?? frame.current);
|
|
19
22
|
frame.inactive = frame.focused ? frame.previous : frame.current;
|