react-native-screen-transitions 3.9.0-alpha.2 → 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 +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 +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 +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/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 +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 +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 +212 -102
- 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 +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/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 +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/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/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 +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 +1 -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/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 +711 -667
- 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/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 +2 -2
- 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/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/package.json +1 -1
- 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 +67 -52
- package/src/shared/components/boundary/portal/components/portal.tsx +280 -119
- 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-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/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 +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/utils/bounds/helpers/styles/compute.ts +22 -124
- package/src/shared/utils/bounds/helpers/styles/local-transform.ts +86 -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
|
@@ -6,149 +6,243 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Portal = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
|
+
var _constants = require("../../../../constants");
|
|
9
10
|
var _descriptors = require("../../../../providers/screen/descriptors");
|
|
10
11
|
var _styles = require("../../../../providers/screen/styles");
|
|
12
|
+
var _slotReferences = require("../../../../providers/screen/styles/stores/slot-references.store");
|
|
11
13
|
var _animation = require("../../../../stores/animation.store");
|
|
12
|
-
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
13
|
-
var _links = require("../../../../stores/bounds/internals/links");
|
|
14
14
|
var _state = require("../../../../stores/bounds/internals/state");
|
|
15
|
-
var
|
|
15
|
+
var _logger = require("../../../../utils/logger");
|
|
16
16
|
var _hostRegistry = require("../stores/host-registry.store");
|
|
17
17
|
var _portalBoundaryHost = require("../stores/portal-boundary-host.store");
|
|
18
18
|
var _teleport = require("../teleport");
|
|
19
|
-
var _attachment = require("../utils/attachment");
|
|
20
19
|
var _naming = require("../utils/naming");
|
|
20
|
+
var _ownership = require("../utils/ownership");
|
|
21
|
+
var _shallowEqual = require("../utils/shallow-equal");
|
|
21
22
|
var _teleportControl = require("../utils/teleport-control");
|
|
23
|
+
var _visibleHost = require("../utils/visible-host");
|
|
22
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
25
|
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); }
|
|
24
|
-
const
|
|
26
|
+
const AnimatedNativePortal = _teleport.NativePortal ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortal) : null;
|
|
25
27
|
const Portal = exports.Portal = /*#__PURE__*/(0, _react.memo)(function Portal({
|
|
26
|
-
id
|
|
28
|
+
id,
|
|
27
29
|
children,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
handoff = false,
|
|
31
|
+
escapeClipping = false,
|
|
32
|
+
placeholderRef,
|
|
33
|
+
placeholderChildren
|
|
30
34
|
}) {
|
|
31
|
-
// Teleporting requires the optional `react-native-teleport` peer
|
|
32
|
-
//
|
|
33
|
-
// children` path below).
|
|
34
|
-
const isPortalEnabled =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
// Teleporting requires the optional `react-native-teleport` peer and a stable
|
|
36
|
+
// `id` to name the boundary host. Missing either degrades to inline rendering
|
|
37
|
+
// (the `return children` path below).
|
|
38
|
+
const isPortalEnabled = (handoff || escapeClipping) && _teleport.isTeleportAvailable && id !== undefined;
|
|
39
|
+
if (__DEV__ && (handoff || escapeClipping) && id === undefined) {
|
|
40
|
+
_logger.logger.warnOnce("portal:missing-id", "A handoff or escapeClipping boundary was rendered without an id; rendering inline.");
|
|
41
|
+
}
|
|
42
|
+
const boundaryId = id ?? "";
|
|
43
|
+
const ownScreenSlots = (0, _styles.useScreenSlots)();
|
|
39
44
|
const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
|
|
40
45
|
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
46
|
+
const [ownership, setOwnership] = (0, _react.useState)(null);
|
|
47
|
+
const styleOwnerScreenKey = ownership?.ownerScreenKey ?? currentScreenKey;
|
|
48
|
+
const ownerScreenSlots = (0, _slotReferences.useRegisteredScreenSlots)(styleOwnerScreenKey);
|
|
49
|
+
const activeScreenSlots = ownerScreenSlots ?? ownScreenSlots;
|
|
50
|
+
const {
|
|
51
|
+
localStylesMaps: activeLocalStylesMaps,
|
|
52
|
+
nextInterpolatorReady: activeNextInterpolatorReady,
|
|
53
|
+
slotsMap: activeSlotsMap
|
|
54
|
+
} = activeScreenSlots;
|
|
55
|
+
const requestedPortalHostName = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
56
|
+
const visiblePortalHostName = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
57
|
+
const canSwitchPortalHostImmediately = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
44
58
|
const placeholderWidth = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
45
59
|
const placeholderHeight = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const progress = _animation.AnimationStore.getValue(progressScreenKey ?? "", "transitionProgress");
|
|
59
|
-
const closing = _animation.AnimationStore.getValue(progressScreenKey ?? "", "closing");
|
|
60
|
-
const updatePortalAttachment = (0, _react.useCallback)((matchedScreenKey, pairKey) => {
|
|
61
|
-
if (matchedScreenKey && pairKey) {
|
|
62
|
-
setAttachment(current => {
|
|
63
|
-
if (current?.matchedScreenKey === matchedScreenKey && current.pairKey === pairKey) {
|
|
60
|
+
const targetScreenKey = ownership ? ownership.hostScreenKey : null;
|
|
61
|
+
const settledHostScreenKey = ownership?.hostScreenKey ?? null;
|
|
62
|
+
const settledHostProgress = _animation.AnimationStore.getValue(settledHostScreenKey ?? currentScreenKey, "progressSettled");
|
|
63
|
+
const settledHostAnimating = _animation.AnimationStore.getValue(settledHostScreenKey ?? currentScreenKey, "progressAnimating");
|
|
64
|
+
const settledHostClosing = _animation.AnimationStore.getValue(settledHostScreenKey ?? currentScreenKey, "closing");
|
|
65
|
+
const settledHostVisualProgress = _animation.AnimationStore.getValue(settledHostScreenKey ?? currentScreenKey, "visualProgress");
|
|
66
|
+
const activeHostKey = (0, _hostRegistry.useActiveHostKey)(escapeClipping ? targetScreenKey : null);
|
|
67
|
+
const boundaryLocalHostName = handoff && !escapeClipping && targetScreenKey ? (0, _naming.createBoundaryLocalPortalHostName)(targetScreenKey, boundaryId) : null;
|
|
68
|
+
const updatePortalOwnership = (0, _react.useCallback)((hostScreenKey, ownerPairKey, ownerScreenKey) => {
|
|
69
|
+
if (hostScreenKey && ownerPairKey && ownerScreenKey) {
|
|
70
|
+
setOwnership(current => {
|
|
71
|
+
if (current?.hostScreenKey === hostScreenKey && current.ownerPairKey === ownerPairKey && current.ownerScreenKey === ownerScreenKey) {
|
|
64
72
|
return current;
|
|
65
73
|
}
|
|
66
74
|
return {
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
hostScreenKey,
|
|
76
|
+
ownerPairKey,
|
|
77
|
+
ownerScreenKey,
|
|
78
|
+
status: "complete"
|
|
69
79
|
};
|
|
70
80
|
});
|
|
71
81
|
return;
|
|
72
82
|
}
|
|
73
|
-
|
|
83
|
+
setOwnership(current => current ? null : current);
|
|
74
84
|
}, []);
|
|
75
85
|
(0, _react.useLayoutEffect)(() => {
|
|
76
|
-
if (!isPortalEnabled || !
|
|
77
|
-
|
|
86
|
+
if (!isPortalEnabled || !ownership || !targetScreenKey) {
|
|
87
|
+
requestedPortalHostName.set(null);
|
|
88
|
+
visiblePortalHostName.set(null);
|
|
89
|
+
(0, _portalBoundaryHost.unmountPortalBoundaryHost)(boundaryId);
|
|
78
90
|
return;
|
|
79
91
|
}
|
|
92
|
+
if (boundaryLocalHostName) {
|
|
93
|
+
requestedPortalHostName.set(boundaryLocalHostName);
|
|
94
|
+
(0, _portalBoundaryHost.unmountPortalBoundaryHost)(boundaryId);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (!escapeClipping || !activeHostKey) {
|
|
98
|
+
requestedPortalHostName.set(null);
|
|
99
|
+
visiblePortalHostName.set(null);
|
|
100
|
+
(0, _portalBoundaryHost.unmountPortalBoundaryHost)(boundaryId);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const portalHostName = (0, _naming.createPortalBoundaryHostName)(activeHostKey, boundaryId, ownership.ownerPairKey);
|
|
80
104
|
(0, _portalBoundaryHost.mountPortalBoundaryHost)({
|
|
81
|
-
boundaryId
|
|
82
|
-
|
|
105
|
+
boundaryId,
|
|
106
|
+
escapeClipping,
|
|
83
107
|
hostKey: activeHostKey,
|
|
84
|
-
|
|
85
|
-
|
|
108
|
+
localStylesMaps: activeLocalStylesMaps,
|
|
109
|
+
pairKey: ownership.ownerPairKey,
|
|
110
|
+
portalHostName,
|
|
111
|
+
screenKey: targetScreenKey,
|
|
112
|
+
slotsMap: activeSlotsMap
|
|
86
113
|
});
|
|
87
114
|
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}, [activeHostKey, activeHostCapturesScroll, attachedHostName, attachment, id, isPortalEnabled, targetScreenKey]);
|
|
115
|
+
// Request the new receiver immediately, but keep the currently visible
|
|
116
|
+
// receiver until the new interpolator is ready. This avoids a no-host gap
|
|
117
|
+
// during A -> B(closing) -> C(opening) spam retargets.
|
|
118
|
+
requestedPortalHostName.set(portalHostName);
|
|
119
|
+
}, [activeHostKey, boundaryId, escapeClipping, isPortalEnabled, activeLocalStylesMaps, activeSlotsMap, ownership, boundaryLocalHostName, requestedPortalHostName, targetScreenKey, visiblePortalHostName]);
|
|
94
120
|
(0, _react.useLayoutEffect)(() => {
|
|
95
121
|
return () => {
|
|
96
|
-
|
|
97
|
-
|
|
122
|
+
requestedPortalHostName.set(null);
|
|
123
|
+
visiblePortalHostName.set(null);
|
|
124
|
+
(0, _portalBoundaryHost.unmountPortalBoundaryHost)(boundaryId);
|
|
98
125
|
};
|
|
99
|
-
}, [
|
|
126
|
+
}, [boundaryId, requestedPortalHostName, visiblePortalHostName]);
|
|
100
127
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
101
128
|
"worklet";
|
|
102
129
|
|
|
103
130
|
if (!isPortalEnabled || !sourcePairKey) {
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// attach. A portal may only teleport on its OWN member's link.
|
|
111
|
-
const link = (0, _links.getLink)(sourcePairKey, id);
|
|
112
|
-
if (link?.status !== "complete") {
|
|
113
|
-
return null;
|
|
131
|
+
return {
|
|
132
|
+
hostScreenKey: null,
|
|
133
|
+
ownerPairKey: sourcePairKey,
|
|
134
|
+
ownerScreenKey: null,
|
|
135
|
+
status: "clear"
|
|
136
|
+
};
|
|
114
137
|
}
|
|
138
|
+
return (0, _ownership.resolveBoundaryPortalOwnership)({
|
|
139
|
+
boundaryId,
|
|
140
|
+
currentScreenKey,
|
|
141
|
+
escapeClipping,
|
|
142
|
+
handoff,
|
|
143
|
+
isSettledHostClosingComplete: !!settledHostClosing.get() && settledHostVisualProgress.get() <= _constants.EPSILON,
|
|
144
|
+
isSettledHostReady: settledHostProgress.get() === 1 && settledHostAnimating.get() === 0,
|
|
145
|
+
pairsState: _state.pairs.get(),
|
|
146
|
+
settledHostScreenKey,
|
|
147
|
+
sourcePairKey
|
|
148
|
+
});
|
|
149
|
+
}, (signal, previousSignal) => {
|
|
150
|
+
"worklet";
|
|
115
151
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
152
|
+
if ((0, _shallowEqual.shallowEqual)(previousSignal, signal)) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (!handoff || escapeClipping) {
|
|
156
|
+
canSwitchPortalHostImmediately.set(0);
|
|
157
|
+
} else if (signal.status === "pending") {
|
|
158
|
+
canSwitchPortalHostImmediately.set(0);
|
|
159
|
+
return;
|
|
160
|
+
} else {
|
|
161
|
+
const hostScreenKey = signal.status === "complete" ? signal.hostScreenKey : null;
|
|
162
|
+
let previousOwnerPairKey;
|
|
163
|
+
if (previousSignal?.status === "complete") {
|
|
164
|
+
previousOwnerPairKey = previousSignal.ownerPairKey ?? undefined;
|
|
165
|
+
}
|
|
166
|
+
const canSwitchImmediately = (0, _ownership.canSwitchBoundaryLocalHandoffImmediately)({
|
|
167
|
+
hostScreenKey,
|
|
168
|
+
ownerPairKey: signal.status === "complete" ? signal.ownerPairKey : undefined,
|
|
169
|
+
previousOwnerPairKey
|
|
170
|
+
});
|
|
171
|
+
canSwitchPortalHostImmediately.set(canSwitchImmediately ? 1 : 0);
|
|
172
|
+
if (canSwitchImmediately && hostScreenKey) {
|
|
173
|
+
const hostName = (0, _naming.createBoundaryLocalPortalHostName)(hostScreenKey, boundaryId);
|
|
174
|
+
requestedPortalHostName.set(hostName);
|
|
175
|
+
visiblePortalHostName.set(hostName);
|
|
124
176
|
}
|
|
125
177
|
}
|
|
126
|
-
|
|
127
|
-
}
|
|
178
|
+
(0, _reactNativeReanimated.runOnJS)(updatePortalOwnership)(signal.hostScreenKey, signal.ownerPairKey, signal.ownerScreenKey ?? undefined);
|
|
179
|
+
});
|
|
180
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
128
181
|
"worklet";
|
|
129
182
|
|
|
130
|
-
|
|
183
|
+
const slot = activeSlotsMap.get()[boundaryId];
|
|
184
|
+
const teleport = slot?.props?.teleport;
|
|
185
|
+
const shouldTeleport = (0, _teleportControl.shouldAttachBoundaryPortal)({
|
|
186
|
+
enabled: isPortalEnabled,
|
|
187
|
+
teleport
|
|
188
|
+
});
|
|
189
|
+
const requestedName = requestedPortalHostName.get();
|
|
190
|
+
const visibleName = visiblePortalHostName.get();
|
|
191
|
+
const isInterpolatorReady = activeNextInterpolatorReady.get();
|
|
192
|
+
const nextVisibleName = (0, _visibleHost.resolveNextVisiblePortalHostName)({
|
|
193
|
+
canSwitchImmediately: canSwitchPortalHostImmediately.get() === 1,
|
|
194
|
+
isInterpolatorReady: isInterpolatorReady === 1,
|
|
195
|
+
requestedName,
|
|
196
|
+
shouldTeleport,
|
|
197
|
+
visibleName
|
|
198
|
+
});
|
|
199
|
+
return {
|
|
200
|
+
isInterpolatorReady,
|
|
201
|
+
nextVisibleName,
|
|
202
|
+
requestedName,
|
|
203
|
+
shouldTeleport,
|
|
204
|
+
teleport,
|
|
205
|
+
visibleName
|
|
206
|
+
};
|
|
207
|
+
}, (state, previousState) => {
|
|
208
|
+
"worklet";
|
|
209
|
+
|
|
210
|
+
if ((0, _shallowEqual.shallowEqual)(previousState, state)) {
|
|
131
211
|
return;
|
|
132
212
|
}
|
|
133
|
-
(
|
|
213
|
+
if (state.nextVisibleName !== state.visibleName) {
|
|
214
|
+
visiblePortalHostName.set(state.nextVisibleName);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Visible receiver has caught up to the request: GC the superseded hosts.
|
|
219
|
+
if (state.visibleName && state.visibleName === state.requestedName) {
|
|
220
|
+
(0, _reactNativeReanimated.runOnJS)(_portalBoundaryHost.dropStalePortalBoundaryHosts)({
|
|
221
|
+
boundaryId,
|
|
222
|
+
keepPortalHostName: state.visibleName
|
|
223
|
+
});
|
|
224
|
+
}
|
|
134
225
|
});
|
|
135
226
|
const teleportProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
|
|
136
227
|
"worklet";
|
|
137
228
|
|
|
138
|
-
|
|
139
|
-
// re-parented before the host is visually ready. Closing stays attached
|
|
140
|
-
// through progress 0 so the final frame can land in the matched host.
|
|
141
|
-
const attachThreshold = closing.get() === 1 ? 0 : 0.001;
|
|
229
|
+
const slot = activeSlotsMap.get()[boundaryId];
|
|
142
230
|
const {
|
|
143
231
|
teleport,
|
|
144
232
|
...slotProps
|
|
145
|
-
} =
|
|
146
|
-
const shouldTeleport = (0, _teleportControl.
|
|
233
|
+
} = slot?.props ?? {};
|
|
234
|
+
const shouldTeleport = (0, _teleportControl.shouldAttachBoundaryPortal)({
|
|
235
|
+
enabled: isPortalEnabled,
|
|
236
|
+
teleport
|
|
237
|
+
});
|
|
238
|
+
const visibleName = visiblePortalHostName.get();
|
|
147
239
|
return {
|
|
148
240
|
// Preserve portal slot props from the interpolator while keeping
|
|
149
|
-
// hostName owned by the attachment gate below.
|
|
241
|
+
// hostName owned by the attachment gate below. Handoff
|
|
242
|
+
// waits until the receiving interpolator owns styles for the same host;
|
|
243
|
+
// after that, it stays attached until teleport is disabled or retargeted.
|
|
150
244
|
...slotProps,
|
|
151
|
-
hostName: shouldTeleport &&
|
|
245
|
+
hostName: shouldTeleport && visibleName ? visibleName : _naming.PORTAL_HOST_NAME_RESET_VALUE
|
|
152
246
|
};
|
|
153
247
|
});
|
|
154
248
|
|
|
@@ -159,8 +253,7 @@ const Portal = exports.Portal = /*#__PURE__*/(0, _react.memo)(function Portal({
|
|
|
159
253
|
const placeholderStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
160
254
|
"worklet";
|
|
161
255
|
|
|
162
|
-
const
|
|
163
|
-
const isAttached = hostName !== null;
|
|
256
|
+
const isAttached = visiblePortalHostName.get() !== null;
|
|
164
257
|
const width = placeholderWidth.get();
|
|
165
258
|
const height = placeholderHeight.get();
|
|
166
259
|
if (!isAttached || width === 0) {
|
|
@@ -174,23 +267,40 @@ const Portal = exports.Portal = /*#__PURE__*/(0, _react.memo)(function Portal({
|
|
|
174
267
|
height
|
|
175
268
|
};
|
|
176
269
|
});
|
|
177
|
-
|
|
178
|
-
|
|
270
|
+
const handleOnLayout = (0, _react.useCallback)(layout => {
|
|
271
|
+
"worklet";
|
|
272
|
+
|
|
273
|
+
const {
|
|
274
|
+
width,
|
|
275
|
+
height
|
|
276
|
+
} = layout;
|
|
277
|
+
if (width === 0 || height === 0) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
const hasValidDimensions = placeholderHeight.get() !== 0 && placeholderWidth.get() !== 0;
|
|
281
|
+
if (!hasValidDimensions) {
|
|
282
|
+
placeholderWidth.set(width);
|
|
283
|
+
placeholderHeight.set(height);
|
|
284
|
+
}
|
|
285
|
+
}, [placeholderHeight, placeholderWidth]);
|
|
286
|
+
if (isPortalEnabled && AnimatedNativePortal) {
|
|
287
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
179
288
|
ref: placeholderRef,
|
|
180
|
-
onLayout:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
289
|
+
onLayout: ({
|
|
290
|
+
nativeEvent: {
|
|
291
|
+
layout
|
|
292
|
+
}
|
|
293
|
+
}) => (0, _reactNativeReanimated.runOnUI)(handleOnLayout)(layout),
|
|
184
294
|
style: placeholderStyle,
|
|
185
295
|
collapsable: false,
|
|
186
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
296
|
+
children: [placeholderChildren, /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedNativePortal, {
|
|
187
297
|
animatedProps: teleportProps,
|
|
188
|
-
name:
|
|
298
|
+
name: boundaryId,
|
|
189
299
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
190
300
|
style: placeholderStyle,
|
|
191
301
|
children: children
|
|
192
302
|
})
|
|
193
|
-
})
|
|
303
|
+
})]
|
|
194
304
|
});
|
|
195
305
|
}
|
|
196
306
|
return children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_descriptors","_styles","_animation","_linkPairs","_links","_state","_createTransitionAwareComponent","_hostRegistry","_portalBoundaryHost","_teleport","_attachment","_naming","_teleportControl","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TransitionAwareTeleport","NativePortal","createTransitionAwareComponent","Portal","exports","memo","id","children","mode","placeholderRef","isPortalEnabled","isTeleportAvailable","portalAttachTarget","attachTo","slotsMap","useScreenSlots","sourcePairKey","useDescriptorsStore","s","derivations","currentScreenKey","nextScreenKey","attachment","setAttachment","useState","PORTAL_HOST_NAME_RESET_VALUE","attachedHostName","useSharedValue","placeholderWidth","placeholderHeight","progressScreenKey","targetScreenKey","resolvePortalAttachmentTargets","activeHostKey","useActiveHostKey","activeHostCapturesScroll","getHostCapturesScroll","progress","AnimationStore","getValue","closing","updatePortalAttachment","useCallback","matchedScreenKey","pairKey","current","useLayoutEffect","mountPortalBoundaryHost","boundaryId","capturesScroll","hostKey","screenKey","createPortalBoundaryHostName","unmountPortalBoundaryHost","useAnimatedReaction","pairs","link","getLink","status","group","activeId","groups","getLinkKeyFromTag","destination","previousMatchedScreenKey","runOnJS","teleportProps","useAnimatedProps","attachThreshold","teleport","slotProps","props","shouldTeleport","isTeleportEnabled","hostName","placeholderStyle","useAnimatedStyle","isAttached","width","height","jsx","View","ref","onLayout","event","nativeEvent","layout","style","collapsable","animatedProps","name"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/components/portal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAQA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,+BAAA,GAAAT,OAAA;AAEA,IAAAU,aAAA,GAAAV,O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Ae;MACpB0E,QAAQ,EAAGC,KAAK,IAAK;QACpBxD,gBAAgB,CAAClC,GAAG,CAAC0F,KAAK,CAACC,WAAW,CAACC,MAAM,CAACR,KAAK,CAAC;QACpDjD,iBAAiB,CAACnC,GAAG,CAAC0F,KAAK,CAACC,WAAW,CAACC,MAAM,CAACP,MAAM,CAAC;MACvD,CAAE;MACFQ,KAAK,EAAEZ,gBAAiB;MACxBa,WAAW,EAAE,KAAM;MAAAjF,QAAA,eAEnB,IAAA3B,WAAA,CAAAoG,GAAA,EAAChF,uBAAuB;QAACyF,aAAa,EAAEvB,aAAc;QAACwB,IAAI,EAAEpF,EAAG;QAAAC,QAAA,eAC/D,IAAA3B,WAAA,CAAAoG,GAAA,EAACnH,sBAAA,CAAA0B,OAAQ,CAAC0F,IAAI;UAACM,KAAK,EAAEZ,gBAAiB;UAAApE,QAAA,EAAEA;QAAQ,CAAgB;MAAC,CAC1C;IAAC,CACZ,CAAC;EAElB;EAEA,OAAOA,QAAQ;AAChB,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_slotReferences","_animation","_state","_logger","_hostRegistry","_portalBoundaryHost","_teleport","_naming","_ownership","_shallowEqual","_teleportControl","_visibleHost","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedNativePortal","NativePortal","Animated","createAnimatedComponent","Portal","exports","memo","id","children","handoff","escapeClipping","placeholderRef","placeholderChildren","isPortalEnabled","isTeleportAvailable","undefined","__DEV__","logger","warnOnce","boundaryId","ownScreenSlots","useScreenSlots","sourcePairKey","useDescriptorsStore","s","derivations","currentScreenKey","ownership","setOwnership","useState","styleOwnerScreenKey","ownerScreenKey","ownerScreenSlots","useRegisteredScreenSlots","activeScreenSlots","localStylesMaps","activeLocalStylesMaps","nextInterpolatorReady","activeNextInterpolatorReady","slotsMap","activeSlotsMap","requestedPortalHostName","useSharedValue","visiblePortalHostName","canSwitchPortalHostImmediately","placeholderWidth","placeholderHeight","targetScreenKey","hostScreenKey","settledHostScreenKey","settledHostProgress","AnimationStore","getValue","settledHostAnimating","settledHostClosing","settledHostVisualProgress","activeHostKey","useActiveHostKey","boundaryLocalHostName","createBoundaryLocalPortalHostName","updatePortalOwnership","useCallback","ownerPairKey","current","status","useLayoutEffect","unmountPortalBoundaryHost","portalHostName","createPortalBoundaryHostName","mountPortalBoundaryHost","hostKey","pairKey","screenKey","useAnimatedReaction","resolveBoundaryPortalOwnership","isSettledHostClosingComplete","EPSILON","isSettledHostReady","pairsState","pairs","signal","previousSignal","shallowEqual","previousOwnerPairKey","canSwitchImmediately","canSwitchBoundaryLocalHandoffImmediately","hostName","runOnJS","slot","teleport","props","shouldTeleport","shouldAttachBoundaryPortal","enabled","requestedName","visibleName","isInterpolatorReady","nextVisibleName","resolveNextVisiblePortalHostName","state","previousState","dropStalePortalBoundaryHosts","keepPortalHostName","teleportProps","useAnimatedProps","slotProps","PORTAL_HOST_NAME_RESET_VALUE","placeholderStyle","useAnimatedStyle","isAttached","width","height","handleOnLayout","layout","hasValidDimensions","jsxs","View","ref","onLayout","nativeEvent","runOnUI","style","collapsable","jsx","animatedProps","name"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/components/portal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AASA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,O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AAGE,MAAM;IAChC,IAAIH,KAAK,KAAK,CAAC,IAAIC,MAAM,KAAK,CAAC,EAAE;MAChC;IACD;IAEA,MAAMG,kBAAkB,GACvBpE,iBAAiB,CAACrD,GAAG,CAAC,CAAC,KAAK,CAAC,IAAIoD,gBAAgB,CAACpD,GAAG,CAAC,CAAC,KAAK,CAAC;IAE9D,IAAI,CAACyH,kBAAkB,EAAE;MACxBrE,gBAAgB,CAACnD,GAAG,CAACoH,KAAK,CAAC;MAC3BhE,iBAAiB,CAACpD,GAAG,CAACqH,MAAM,CAAC;IAC9B;EACD,CAAC,EACD,CAACjE,iBAAiB,EAAED,gBAAgB,CACrC,CAAC;EAED,IAAIhC,eAAe,IAAIb,oBAAoB,EAAE;IAC5C,oBACC,IAAApB,WAAA,CAAAuI,IAAA,EAACxJ,sBAAA,CAAA4B,OAAQ,CAAC6H,IAAI;MACbC,GAAG,EAAE1G,cAAe;MACpB2G,QAAQ,EAAEA,CAAC;QAAEC,WAAW,EAAE;UAAEN;QAAO;MAAE,CAAC,KACrC,IAAAO,8BAAO,EAACR,cAAc,CAAC,CAACC,MAAM,CAC9B;MACDQ,KAAK,EAAEd,gBAAiB;MACxBe,WAAW,EAAE,KAAM;MAAAlH,QAAA,GAElBI,mBAAmB,eACpB,IAAAhC,WAAA,CAAA+I,GAAA,EAAC3H,oBAAoB;QAAC4H,aAAa,EAAErB,aAAc;QAACsB,IAAI,EAAE1G,UAAW;QAAAX,QAAA,eACpE,IAAA5B,WAAA,CAAA+I,GAAA,EAAChK,sBAAA,CAAA4B,OAAQ,CAAC6H,IAAI;UAACK,KAAK,EAAEd,gBAAiB;UAAAnG,QAAA,EAAEA;QAAQ,CAAgB;MAAC,CAC7C,CAAC;IAAA,CACT,CAAC;EAElB;EAEA,OAAOA,QAAQ;AAChB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ var _origin = require("../../../../providers/screen/origin.provider");
|
|
|
10
10
|
var _scroll = require("../../../../stores/scroll.store");
|
|
11
11
|
var _measuredBounds = require("../../utils/measured-bounds");
|
|
12
12
|
var _hostBounds = require("../stores/host-bounds.store");
|
|
13
|
+
const HOST_MEASUREMENT_RETRY_DELAY_MS = 16;
|
|
13
14
|
const useHostMeasurement = ({
|
|
14
15
|
capturesScroll,
|
|
15
16
|
enabled,
|
|
@@ -23,24 +24,35 @@ const useHostMeasurement = ({
|
|
|
23
24
|
originRef
|
|
24
25
|
} = (0, _origin.useOriginContext)();
|
|
25
26
|
const hasMeasuredHost = (0, _reactNativeReanimated.useSharedValue)(false);
|
|
27
|
+
const retryToken = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
26
28
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
27
29
|
"worklet";
|
|
28
30
|
|
|
29
31
|
if (!enabled) {
|
|
30
32
|
return null;
|
|
31
33
|
}
|
|
32
|
-
return hasMeasuredHost.get();
|
|
33
|
-
},
|
|
34
|
+
return [hasMeasuredHost.get(), retryToken.get()];
|
|
35
|
+
}, state => {
|
|
34
36
|
"worklet";
|
|
35
37
|
|
|
38
|
+
if (!state) {
|
|
39
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const [hasAlreadyMeasured] = state;
|
|
36
43
|
if (!enabled || hasAlreadyMeasured) {
|
|
37
44
|
return;
|
|
38
45
|
}
|
|
39
46
|
const measured = (0, _reactNativeReanimated.measure)(hostRef);
|
|
40
47
|
const measuredOrigin = (0, _reactNativeReanimated.measure)(originRef);
|
|
41
48
|
if (!measured || !measuredOrigin) {
|
|
49
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
50
|
+
retryToken.set((0, _reactNativeReanimated.withDelay)(HOST_MEASUREMENT_RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryToken.get() + 1, {
|
|
51
|
+
duration: 0
|
|
52
|
+
})));
|
|
42
53
|
return;
|
|
43
54
|
}
|
|
55
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
44
56
|
hasMeasuredHost.set(true);
|
|
45
57
|
|
|
46
58
|
// A measurement taken mid rubber-band would bake the transient
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_origin","_scroll","_measuredBounds","_hostBounds","useHostMeasurement","capturesScroll","enabled","hostKey","screenKey","hostRef","useAnimatedRef","scrollMetadata","ScrollStore","getValue","canRenderHosts","setCanRenderHosts","useState","originRef","useOriginContext","hasMeasuredHost","useSharedValue","useAnimatedReaction","get","hasAlreadyMeasured","measured","measure","measuredOrigin","set","currentScroll","overscrollNormalized","adjustedMeasuredBoundsForOverscrollDeltas","normalizedMeasured","normalizeMeasuredBoundsToOrigin","setPortalHostBounds","x","y","width","height","pageX","pageY","scroll","runOnJS","useLayoutEffect","runOnUI","clearPortalHostBounds","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/hooks/use-host-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_origin","_scroll","_measuredBounds","_hostBounds","HOST_MEASUREMENT_RETRY_DELAY_MS","useHostMeasurement","capturesScroll","enabled","hostKey","screenKey","hostRef","useAnimatedRef","scrollMetadata","ScrollStore","getValue","canRenderHosts","setCanRenderHosts","useState","originRef","useOriginContext","hasMeasuredHost","useSharedValue","retryToken","useAnimatedReaction","get","state","cancelAnimation","hasAlreadyMeasured","measured","measure","measuredOrigin","set","withDelay","withTiming","duration","currentScroll","overscrollNormalized","adjustedMeasuredBoundsForOverscrollDeltas","normalizedMeasured","normalizeMeasuredBoundsToOrigin","setPortalHostBounds","x","y","width","height","pageX","pageY","scroll","runOnJS","useLayoutEffect","runOnUI","clearPortalHostBounds","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/hooks/use-host-measurement.ts"],"m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,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,OAAO;IACNO,cAAc;IACdL;EACD,CAAC;AACF,CAAC;AAAC0C,OAAA,CAAA/C,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -3,21 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useActiveHostKey = exports.unregisterHost = exports.resetHostRegistry = exports.registerHost = exports.
|
|
6
|
+
exports.useActiveHostKey = exports.unregisterHost = exports.resetHostRegistry = exports.registerHost = exports.getActiveHostKey = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
8
|
const EMPTY_SNAPSHOT = {};
|
|
10
9
|
const listeners = new Set();
|
|
11
10
|
const hostStacks = new Map();
|
|
12
11
|
let snapshot = EMPTY_SNAPSHOT;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* The active host for a screen. Stack ordering is the load-bearing invariant:
|
|
15
|
+
* `registerHost` unshifts fallback hosts to the front and pushes real hosts to
|
|
16
|
+
* the back, so the active host is the last real (non-fallback) host, falling
|
|
17
|
+
* back to the first entry and finally to the screen's own key.
|
|
19
18
|
*/
|
|
20
|
-
const activeScrollHosts = (0, _reactNativeReanimated.makeMutable)({});
|
|
21
19
|
const getActiveHostFromStack = (screenKey, stack) => {
|
|
22
20
|
if (!stack || stack.length === 0) {
|
|
23
21
|
return screenKey;
|
|
@@ -37,23 +35,8 @@ const buildSnapshot = () => {
|
|
|
37
35
|
}
|
|
38
36
|
return nextSnapshot;
|
|
39
37
|
};
|
|
40
|
-
const buildScrollHostSnapshot = () => {
|
|
41
|
-
const nextSnapshot = {};
|
|
42
|
-
for (const [screenKey, stack] of hostStacks) {
|
|
43
|
-
const activeHostKey = getActiveHostFromStack(screenKey, stack);
|
|
44
|
-
const activeHost = stack.find(host => host.hostKey === activeHostKey);
|
|
45
|
-
if (activeHost?.capturesScroll) {
|
|
46
|
-
nextSnapshot[screenKey] = {
|
|
47
|
-
hostKey: activeHost.hostKey,
|
|
48
|
-
capturesScroll: true
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return nextSnapshot;
|
|
53
|
-
};
|
|
54
38
|
const emit = () => {
|
|
55
39
|
snapshot = buildSnapshot();
|
|
56
|
-
activeScrollHosts.set(buildScrollHostSnapshot());
|
|
57
40
|
for (const listener of listeners) {
|
|
58
41
|
listener();
|
|
59
42
|
}
|
|
@@ -101,28 +84,7 @@ exports.unregisterHost = unregisterHost;
|
|
|
101
84
|
const getActiveHostKey = screenKey => {
|
|
102
85
|
return snapshot[screenKey] ?? screenKey;
|
|
103
86
|
};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The screen's active host, if it captures scroll. Worklet-safe: measurement
|
|
107
|
-
* code calls this on the UI thread while writing source bounds.
|
|
108
|
-
*/
|
|
109
87
|
exports.getActiveHostKey = getActiveHostKey;
|
|
110
|
-
const getActiveScrollHost = screenKey => {
|
|
111
|
-
"worklet";
|
|
112
|
-
|
|
113
|
-
return activeScrollHosts.get()[screenKey] ?? null;
|
|
114
|
-
};
|
|
115
|
-
exports.getActiveScrollHost = getActiveScrollHost;
|
|
116
|
-
const getHostCapturesScroll = hostKey => {
|
|
117
|
-
for (const stack of hostStacks.values()) {
|
|
118
|
-
const host = stack.find(registration => registration.hostKey === hostKey);
|
|
119
|
-
if (host) {
|
|
120
|
-
return host.capturesScroll;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return false;
|
|
124
|
-
};
|
|
125
|
-
exports.getHostCapturesScroll = getHostCapturesScroll;
|
|
126
88
|
const useActiveHostKey = screenKey => {
|
|
127
89
|
return (0, _react.useSyncExternalStore)(subscribe, () => screenKey ? getActiveHostKey(screenKey) : undefined, () => undefined);
|
|
128
90
|
};
|
|
@@ -130,7 +92,6 @@ exports.useActiveHostKey = useActiveHostKey;
|
|
|
130
92
|
const resetHostRegistry = () => {
|
|
131
93
|
hostStacks.clear();
|
|
132
94
|
snapshot = EMPTY_SNAPSHOT;
|
|
133
|
-
activeScrollHosts.set({});
|
|
134
95
|
emit();
|
|
135
96
|
};
|
|
136
97
|
exports.resetHostRegistry = resetHostRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","EMPTY_SNAPSHOT","listeners","Set","hostStacks","Map","snapshot","getActiveHostFromStack","screenKey","stack","length","index","host","fallback","hostKey","buildSnapshot","nextSnapshot","emit","listener","subscribe","add","delete","registerHost","registration","get","previousActiveHostKey","nextStack","filter","unshift","push","set","exports","unregisterHost","getActiveHostKey","useActiveHostKey","useSyncExternalStore","undefined","resetHostRegistry","clear"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/stores/host-registry.store.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAWA,MAAMC,cAAoC,GAAG,CAAC,CAAC;AAE/C,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAa,CAAC;AACvC,MAAMC,UAAU,GAAG,IAAIC,GAAG,CAA6B,CAAC;AAExD,IAAIC,QAA8B,GAAGL,cAAc;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,sBAAsB,GAAGA,CAC9BC,SAAiB,EACjBC,KAAqC,KACjC;EACJ,IAAI,CAACA,KAAK,IAAIA,KAAK,CAACC,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOF,SAAS;EACjB;EAEA,KAAK,IAAIG,KAAK,GAAGF,KAAK,CAACC,MAAM,GAAG,CAAC,EAAEC,KAAK,IAAI,CAAC,EAAEA,KAAK,EAAE,EAAE;IACvD,MAAMC,IAAI,GAAGH,KAAK,CAACE,KAAK,CAAC;IACzB,IAAI,CAACC,IAAI,CAACC,QAAQ,EAAE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