react-native-screen-transitions 4.1.0-beta.0 → 4.1.0-beta.1
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/components/boundary/components/boundary-lifecycle.js +40 -8
- package/lib/commonjs/components/boundary/components/boundary-lifecycle.js.map +1 -1
- package/lib/commonjs/components/boundary/components/boundary-target.js +10 -17
- package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/components/boundary/create-boundary-component.js +13 -16
- package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/components/boundary/helpers/presentation.js +56 -0
- package/lib/commonjs/components/boundary/helpers/presentation.js.map +1 -0
- package/lib/commonjs/components/boundary/hooks/use-boundary-presentation.js +65 -0
- package/lib/commonjs/components/boundary/hooks/use-boundary-presentation.js.map +1 -0
- package/lib/commonjs/components/boundary/hooks/use-composed-boundary-style.js +43 -0
- package/lib/commonjs/components/boundary/hooks/use-composed-boundary-style.js.map +1 -0
- package/lib/commonjs/components/boundary/index.js +2 -3
- package/lib/commonjs/components/boundary/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/portal-host.js +39 -0
- package/lib/commonjs/components/boundary/portal/components/portal-host.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/portal-overlay.js +170 -0
- package/lib/commonjs/components/boundary/portal/components/portal-overlay.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/portal.js +88 -0
- package/lib/commonjs/components/boundary/portal/components/portal.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/helpers/offset-style.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-active-portal-boundary-host.js +35 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-host-measurement.js +83 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-portal-destination.js +58 -0
- package/lib/commonjs/components/boundary/portal/hooks/use-portal-destination.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/index.js +0 -7
- package/lib/commonjs/components/boundary/portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.js +1 -12
- package/lib/commonjs/components/boundary/portal/stores/host-registry.store.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.js +17 -17
- package/lib/commonjs/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/utils/naming.js +8 -1
- package/lib/commonjs/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +7 -27
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +13 -7
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/components/screen/container/helpers/layer-component.js +39 -0
- package/lib/commonjs/components/screen/container/helpers/layer-component.js.map +1 -0
- package/lib/commonjs/components/screen/container/{layers/render-component.js → helpers/uses-layer-render-props.js} +1 -1
- package/lib/commonjs/components/screen/container/helpers/uses-layer-render-props.js.map +1 -0
- package/lib/commonjs/components/screen/container/layers/backdrop.js +4 -13
- package/lib/commonjs/components/screen/container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/components/screen/container/layers/clip.js +117 -0
- package/lib/commonjs/components/screen/container/layers/clip.js.map +1 -0
- package/lib/commonjs/components/screen/container/layers/content.js +17 -33
- package/lib/commonjs/components/screen/container/layers/content.js.map +1 -1
- package/lib/commonjs/components/screen/container/layers/surface.js +3 -15
- package/lib/commonjs/components/screen/container/layers/surface.js.map +1 -1
- package/lib/commonjs/components/screen/lifecycle/hooks/use-open-transition-intent.js +15 -0
- package/lib/commonjs/components/screen/lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/constants.js +3 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js +16 -4
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/providers/screen/motion/animation/helpers/build-screen-transition-options.js +0 -1
- package/lib/commonjs/providers/screen/motion/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/commonjs/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js +3 -2
- package/lib/commonjs/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/providers/screen/motion/options/helpers.js +1 -3
- package/lib/commonjs/providers/screen/motion/options/helpers.js.map +1 -1
- package/lib/commonjs/providers/screen/orchestrator/helpers/use-interpolator-state.js +4 -2
- package/lib/commonjs/providers/screen/orchestrator/helpers/use-interpolator-state.js.map +1 -1
- package/lib/commonjs/providers/screen/orchestrator/helpers/use-pair-presentation.js +79 -0
- package/lib/commonjs/providers/screen/orchestrator/helpers/use-pair-presentation.js.map +1 -0
- package/lib/commonjs/providers/screen/orchestrator/orchestrator.provider.js +3 -0
- package/lib/commonjs/providers/screen/orchestrator/orchestrator.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/orchestrator/styles/constants.js +1 -0
- package/lib/commonjs/providers/screen/orchestrator/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/orchestrator/styles/hooks/slot-resolvers.js +5 -8
- package/lib/commonjs/providers/screen/orchestrator/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/build.js +28 -61
- package/lib/commonjs/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/config.js +3 -4
- package/lib/commonjs/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js +8 -8
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/types.js +3 -1
- package/lib/commonjs/utils/bounds/navigation/reveal/types.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js +4 -6
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/clip.js +64 -0
- package/lib/commonjs/utils/bounds/navigation/zoom/clip.js.map +1 -0
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/types.js +3 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/types.js.map +1 -1
- package/lib/module/components/boundary/components/boundary-lifecycle.js +41 -9
- package/lib/module/components/boundary/components/boundary-lifecycle.js.map +1 -1
- package/lib/module/components/boundary/components/boundary-target.js +10 -17
- package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/components/boundary/create-boundary-component.js +13 -16
- package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/components/boundary/helpers/presentation.js +50 -0
- package/lib/module/components/boundary/helpers/presentation.js.map +1 -0
- package/lib/module/components/boundary/hooks/use-boundary-presentation.js +62 -0
- package/lib/module/components/boundary/hooks/use-boundary-presentation.js.map +1 -0
- package/lib/module/components/boundary/hooks/use-composed-boundary-style.js +39 -0
- package/lib/module/components/boundary/hooks/use-composed-boundary-style.js.map +1 -0
- package/lib/module/components/boundary/index.js +2 -3
- package/lib/module/components/boundary/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/portal-host.js +34 -0
- package/lib/module/components/boundary/portal/components/portal-host.js.map +1 -0
- package/lib/module/components/boundary/portal/components/portal-overlay.js +165 -0
- package/lib/module/components/boundary/portal/components/portal-overlay.js.map +1 -0
- package/lib/module/components/boundary/portal/components/portal.js +83 -0
- package/lib/module/components/boundary/portal/components/portal.js.map +1 -0
- package/lib/module/components/boundary/portal/helpers/offset-style.js.map +1 -0
- package/lib/module/components/boundary/portal/hooks/use-active-portal-boundary-host.js +31 -0
- package/lib/module/components/boundary/portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/module/components/boundary/portal/hooks/use-host-measurement.js +78 -0
- package/lib/module/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/module/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/module/components/boundary/portal/hooks/use-portal-destination.js +54 -0
- package/lib/module/components/boundary/portal/hooks/use-portal-destination.js.map +1 -0
- package/lib/module/components/boundary/portal/index.js +0 -1
- package/lib/module/components/boundary/portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.js +1 -12
- package/lib/module/components/boundary/portal/stores/host-registry.store.js.map +1 -0
- package/lib/module/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.js +17 -17
- package/lib/module/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/module/components/boundary/portal/utils/naming.js +6 -0
- package/lib/module/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/resolve-portal.js +7 -27
- package/lib/module/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/module/components/boundary/providers/boundary-root.provider.js +13 -7
- package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/components/screen/container/helpers/layer-component.js +35 -0
- package/lib/module/components/screen/container/helpers/layer-component.js.map +1 -0
- package/lib/module/components/screen/container/{layers/render-component.js → helpers/uses-layer-render-props.js} +1 -1
- package/lib/module/components/screen/container/helpers/uses-layer-render-props.js.map +1 -0
- package/lib/module/components/screen/container/layers/backdrop.js +5 -13
- package/lib/module/components/screen/container/layers/backdrop.js.map +1 -1
- package/lib/module/components/screen/container/layers/clip.js +112 -0
- package/lib/module/components/screen/container/layers/clip.js.map +1 -0
- package/lib/module/components/screen/container/layers/content.js +18 -33
- package/lib/module/components/screen/container/layers/content.js.map +1 -1
- package/lib/module/components/screen/container/layers/surface.js +4 -15
- package/lib/module/components/screen/container/layers/surface.js.map +1 -1
- package/lib/module/components/screen/lifecycle/hooks/use-open-transition-intent.js +17 -2
- package/lib/module/components/screen/lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/constants.js +3 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/hooks/navigation/use-navigation-helpers.js +16 -4
- package/lib/module/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/providers/screen/motion/animation/helpers/build-screen-transition-options.js +0 -1
- package/lib/module/providers/screen/motion/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/module/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js +3 -2
- package/lib/module/providers/screen/motion/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/providers/screen/motion/options/helpers.js +1 -3
- package/lib/module/providers/screen/motion/options/helpers.js.map +1 -1
- package/lib/module/providers/screen/orchestrator/helpers/use-interpolator-state.js +6 -4
- package/lib/module/providers/screen/orchestrator/helpers/use-interpolator-state.js.map +1 -1
- package/lib/module/providers/screen/orchestrator/helpers/use-pair-presentation.js +73 -0
- package/lib/module/providers/screen/orchestrator/helpers/use-pair-presentation.js.map +1 -0
- package/lib/module/providers/screen/orchestrator/orchestrator.provider.js +3 -0
- package/lib/module/providers/screen/orchestrator/orchestrator.provider.js.map +1 -1
- package/lib/module/providers/screen/orchestrator/styles/constants.js +1 -0
- package/lib/module/providers/screen/orchestrator/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/orchestrator/styles/hooks/slot-resolvers.js +5 -8
- package/lib/module/providers/screen/orchestrator/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/types/animation.types.js +3 -1
- package/lib/module/types/animation.types.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/build.js +30 -63
- package/lib/module/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/config.js +2 -3
- package/lib/module/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/math.js +7 -7
- package/lib/module/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/utils/bounds/navigation/reveal/types.js +1 -1
- package/lib/module/utils/bounds/navigation/reveal/types.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/build.js +5 -7
- package/lib/module/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/clip.js +59 -0
- package/lib/module/utils/bounds/navigation/zoom/clip.js.map +1 -0
- package/lib/module/utils/bounds/navigation/zoom/drag.js +1 -1
- package/lib/module/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/types.js +1 -1
- package/lib/module/utils/bounds/navigation/zoom/types.js.map +1 -1
- package/lib/typescript/components/boundary/components/boundary-lifecycle.d.ts.map +1 -1
- package/lib/typescript/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/components/boundary/helpers/presentation.d.ts +14 -0
- package/lib/typescript/components/boundary/helpers/presentation.d.ts.map +1 -0
- package/lib/typescript/components/boundary/hooks/use-boundary-presentation.d.ts +9 -0
- package/lib/typescript/components/boundary/hooks/use-boundary-presentation.d.ts.map +1 -0
- package/lib/typescript/components/boundary/hooks/use-composed-boundary-style.d.ts +4 -0
- package/lib/typescript/components/boundary/hooks/use-composed-boundary-style.d.ts.map +1 -0
- package/lib/typescript/components/boundary/index.d.ts +3 -2
- package/lib/typescript/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/portal-host.d.ts +15 -0
- package/lib/typescript/components/boundary/portal/components/portal-host.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/components/portal-overlay.d.ts +20 -0
- package/lib/typescript/components/boundary/portal/components/portal-overlay.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/components/portal.d.ts +23 -0
- package/lib/typescript/components/boundary/portal/components/portal.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/helpers/offset-style.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/hooks/use-active-portal-boundary-host.d.ts +11 -0
- package/lib/typescript/components/boundary/portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
- package/lib/typescript/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/hooks/use-portal-destination.d.ts +8 -0
- package/lib/typescript/components/boundary/portal/hooks/use-portal-destination.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/index.d.ts +0 -1
- package/lib/typescript/components/boundary/portal/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.d.ts +2 -3
- package/lib/typescript/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/utils/naming.d.ts +1 -0
- package/lib/typescript/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -7
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +5 -2
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/components/screen/container/helpers/layer-component.d.ts +10 -0
- package/lib/typescript/components/screen/container/helpers/layer-component.d.ts.map +1 -0
- package/lib/typescript/components/screen/container/{layers/render-component.d.ts → helpers/uses-layer-render-props.d.ts} +1 -1
- package/lib/typescript/components/screen/container/helpers/uses-layer-render-props.d.ts.map +1 -0
- package/lib/typescript/components/screen/container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/components/screen/container/layers/clip.d.ts +7 -0
- package/lib/typescript/components/screen/container/layers/clip.d.ts.map +1 -0
- package/lib/typescript/components/screen/container/layers/content.d.ts.map +1 -1
- package/lib/typescript/components/screen/container/layers/surface.d.ts.map +1 -1
- package/lib/typescript/components/screen/lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts +3 -1
- package/lib/typescript/constants.d.ts.map +1 -1
- package/lib/typescript/hooks/navigation/use-navigation-helpers.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/motion/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
- package/lib/typescript/providers/screen/motion/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/motion/options/helpers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/motion/options/types.d.ts +0 -1
- package/lib/typescript/providers/screen/motion/options/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/orchestrator/helpers/use-interpolator-state.d.ts.map +1 -1
- package/lib/typescript/providers/screen/orchestrator/helpers/use-pair-presentation.d.ts +21 -0
- package/lib/typescript/providers/screen/orchestrator/helpers/use-pair-presentation.d.ts.map +1 -0
- package/lib/typescript/providers/screen/orchestrator/orchestrator.provider.d.ts +2 -0
- package/lib/typescript/providers/screen/orchestrator/orchestrator.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/orchestrator/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/orchestrator/styles/hooks/slot-resolvers.d.ts +1 -1
- package/lib/typescript/providers/screen/orchestrator/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/orchestrator/styles/types.d.ts +1 -1
- package/lib/typescript/providers/screen/orchestrator/styles/types.d.ts.map +1 -1
- package/lib/typescript/types/animation.types.d.ts +16 -4
- package/lib/typescript/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/types/bounds.types.d.ts +7 -15
- package/lib/typescript/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +1 -1
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +1 -8
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/reveal/config.d.ts +2 -3
- package/lib/typescript/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts +3 -3
- package/lib/typescript/utils/bounds/navigation/reveal/types.d.ts +1 -5
- package/lib/typescript/utils/bounds/navigation/reveal/types.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/{mask.d.ts → clip.d.ts} +5 -5
- package/lib/typescript/utils/bounds/navigation/zoom/clip.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/types.d.ts +1 -5
- package/lib/typescript/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/boundary/components/boundary-lifecycle.tsx +44 -8
- package/src/components/boundary/components/boundary-target.tsx +14 -36
- package/src/components/boundary/create-boundary-component.tsx +16 -17
- package/src/components/boundary/helpers/presentation.ts +88 -0
- package/src/components/boundary/hooks/use-boundary-presentation.ts +82 -0
- package/src/components/boundary/hooks/use-composed-boundary-style.ts +58 -0
- package/src/components/boundary/index.tsx +10 -5
- package/src/components/boundary/portal/components/portal-host.tsx +36 -0
- package/src/components/boundary/portal/components/portal-overlay.tsx +223 -0
- package/src/components/boundary/portal/components/portal.tsx +124 -0
- package/src/components/boundary/portal/hooks/use-active-portal-boundary-host.ts +52 -0
- package/src/components/boundary/portal/hooks/use-host-measurement.ts +101 -0
- package/src/components/boundary/portal/hooks/use-portal-destination.ts +53 -0
- package/src/components/boundary/portal/index.ts +0 -1
- package/src/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.ts +1 -20
- package/src/components/boundary/portal/{components/boundary-portal/stores → stores}/portal-boundary-host.store.ts +19 -26
- package/src/components/boundary/portal/utils/naming.ts +10 -0
- package/src/components/boundary/portal/utils/resolve-portal.ts +9 -48
- package/src/components/boundary/providers/boundary-root.provider.tsx +34 -22
- package/src/components/screen/container/helpers/layer-component.tsx +38 -0
- package/src/components/screen/container/layers/backdrop.tsx +8 -31
- package/src/components/screen/container/layers/clip.tsx +124 -0
- package/src/components/screen/container/layers/content.tsx +21 -62
- package/src/components/screen/container/layers/surface.tsx +5 -23
- package/src/components/screen/lifecycle/hooks/use-open-transition-intent.ts +26 -2
- package/src/constants.ts +3 -1
- package/src/hooks/navigation/use-navigation-helpers.ts +13 -7
- package/src/index.ts +1 -0
- package/src/providers/screen/motion/animation/helpers/build-screen-transition-options.ts +0 -1
- package/src/providers/screen/motion/animation/helpers/hydrate-transition-state/index.ts +3 -2
- package/src/providers/screen/motion/options/helpers.ts +0 -6
- package/src/providers/screen/motion/options/types.ts +0 -1
- package/src/providers/screen/orchestrator/helpers/use-interpolator-state.ts +13 -8
- package/src/providers/screen/orchestrator/helpers/use-pair-presentation.ts +103 -0
- package/src/providers/screen/orchestrator/orchestrator.provider.tsx +4 -0
- package/src/providers/screen/orchestrator/styles/constants.ts +1 -0
- package/src/providers/screen/orchestrator/styles/hooks/slot-resolvers.tsx +8 -11
- package/src/providers/screen/orchestrator/styles/types.ts +1 -0
- package/src/types/animation.types.ts +35 -4
- package/src/types/bounds.types.ts +7 -15
- package/src/types/index.ts +1 -0
- package/src/types/screen.types.ts +1 -8
- package/src/utils/bounds/navigation/reveal/build.ts +46 -80
- package/src/utils/bounds/navigation/reveal/config.ts +2 -4
- package/src/utils/bounds/navigation/reveal/math.ts +9 -9
- package/src/utils/bounds/navigation/reveal/types.ts +1 -8
- package/src/utils/bounds/navigation/zoom/build.ts +16 -26
- package/src/utils/bounds/navigation/zoom/{mask.ts → clip.ts} +42 -48
- package/src/utils/bounds/navigation/zoom/drag.ts +2 -2
- package/src/utils/bounds/navigation/zoom/types.ts +1 -8
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +0 -83
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js +0 -45
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +0 -119
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js +0 -20
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +0 -14
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +0 -136
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js +0 -53
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js +0 -99
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +0 -104
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +0 -13
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +0 -82
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +0 -58
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +0 -67
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js +0 -68
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/commonjs/components/screen/container/layers/maybe-masked-navigation-container.js +0 -83
- package/lib/commonjs/components/screen/container/layers/maybe-masked-navigation-container.js.map +0 -1
- package/lib/commonjs/components/screen/container/layers/render-component.js.map +0 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/mask.js +0 -73
- package/lib/commonjs/utils/bounds/navigation/zoom/mask.js.map +0 -1
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js +0 -78
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js +0 -40
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +0 -110
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js +0 -16
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +0 -9
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +0 -131
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js +0 -42
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js +0 -94
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +0 -99
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +0 -8
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +0 -76
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +0 -53
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +0 -62
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js +0 -63
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/module/components/screen/container/layers/maybe-masked-navigation-container.js +0 -78
- package/lib/module/components/screen/container/layers/maybe-masked-navigation-container.js.map +0 -1
- package/lib/module/components/screen/container/layers/render-component.js.map +0 -1
- package/lib/module/utils/bounds/navigation/zoom/mask.js +0 -68
- package/lib/module/utils/bounds/navigation/zoom/mask.js.map +0 -1
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +0 -28
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +0 -10
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +0 -45
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.d.ts +0 -8
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +0 -2
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +0 -10
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts +0 -9
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts +0 -7
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts +0 -13
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +0 -4
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +0 -21
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +0 -10
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts +0 -12
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts +0 -12
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +0 -1
- package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts +0 -9
- package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts.map +0 -1
- package/lib/typescript/components/screen/container/layers/render-component.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/navigation/zoom/mask.d.ts.map +0 -1
- package/src/components/boundary/hooks/use-boundary-measurement.ts +0 -98
- package/src/components/boundary/portal/components/boundary-content-portal/components/host.tsx +0 -56
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +0 -192
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.ts +0 -23
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +0 -9
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +0 -252
- package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +0 -81
- package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +0 -119
- package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +0 -139
- package/src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +0 -10
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +0 -118
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +0 -64
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +0 -90
- package/src/components/boundary/portal/components/boundary-portal/index.tsx +0 -97
- package/src/components/screen/container/layers/maybe-masked-navigation-container.tsx +0 -113
- /package/lib/commonjs/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.js +0 -0
- /package/lib/commonjs/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.js +0 -0
- /package/lib/module/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.js +0 -0
- /package/lib/module/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.js +0 -0
- /package/lib/typescript/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.d.ts +0 -0
- /package/lib/typescript/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.d.ts +0 -0
- /package/lib/typescript/components/boundary/portal/{components/boundary-portal/stores → stores}/host-registry.store.d.ts +0 -0
- /package/src/components/boundary/portal/{components/boundary-portal/helpers → helpers}/offset-style.ts +0 -0
- /package/src/components/boundary/portal/{components/boundary-portal/hooks → hooks}/use-placeholder-styles.ts +0 -0
- /package/src/components/screen/container/{layers/render-component.ts → helpers/uses-layer-render-props.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedProps","useSharedValue","useBuilderStore","useMotionStore","useOptionalMotionStore","hasCloseTransitionFinished","useOrchestratorStore","useBlankStackStore","getLinkKeyFromTag","getEntry","getPairKeyForDestination","getPairKeyForSource","pairs","PORTAL_HOST_NAME_RESET_VALUE","resolveActiveHandoffReceiver","resolveHandoffAttachmentCandidate","resolvePreviousHandoffReceiver","resolveRequestedHandoffPairKey","resolveRequestedHandoffReceiver","canActivateHandoffReceiver","createBoundaryContentPortalHostName","isCompleteActiveLink","pair","link","boundaryLinkKey","status","group","groups","activeId","useBoundaryContentPortalAttachment","boundaryId","slotsMap","store","currentScreenKey","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","destinationIsScreenReady","isScreenReady","unavailableIsScreenReady","screenReadiness","activeReceiverScreenKey","previousReceiverScreenKey","localAnimationProgress","state","animationProgress","receiverAnimationProgress","activeReceiverAnimationProgress","activeReceiverClosing","closing","activeReceiverIsScreenReady","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","slotProps","props","set","pairChangedDuringClose","hasActiveCloseFinished","automaticPair","automaticLink","links","requestedSourcePairKey","requestedSourcePair","requestedSourceLink","pairDestination","destination","screenKey","requestedDestinationPairKey","destinationPair","destinationLink","retainedSourcePairKey","undefined","retainedSourcePair","retainedSourceLink","requestedPairKey","destinationPairHasCompleteLink","retainedSourcePairHasCompleteLink","sourcePairHasCompleteLink","requestedPair","requestedLink","attachedScreenKey","automaticReceiverScreenKey","pairDestinationScreenKey","pairHasBoundaryLink","requestedDestinationScreenKey","nextReceiverScreenKey","automaticScreenKey","destinationReady","destinationScreenKey","sourceScreenKey","source","receiverEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","receiverIsActiveDestination","targetScreenKey","targetHostName","hostName"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,cAAc,QAAQ,yBAAyB;AAC1E,SAASC,eAAe,QAAQ,4CAA4C;AAC5E,SACCC,cAAc,EACdC,sBAAsB,QAChB,2CAA2C;AAClD,SAASC,0BAA0B,QAAQ,2EAA2E;AACtH,SAASC,oBAAoB,QAAQ,iDAAiD;AACtF,SAASC,kBAAkB,QAAQ,wDAAwD;AAC3F,SAASC,iBAAiB,QAAQ,4DAA4D;AAC9F,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SACCC,wBAAwB,EACxBC,mBAAmB,QACb,iDAAiD;AACxD,SAASC,KAAK,QAAQ,iDAAiD;AAKvE,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SACCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,8BAA8B,EAC9BC,8BAA8B,EAC9BC,+BAA+B,QACzB,oCAAoC;AAC3C,SAASC,0BAA0B,QAAQ,+BAA+B;AAC1E,SAASC,mCAAmC,QAAQ,sBAAsB;AAM1E,MAAMC,oBAAoB,GAAGA,CAC5BC,IAAsC,EACtCC,IAAyB,EACzBC,eAAuB,KACnB;EACJ,SAAS;;EAET,OACCD,IAAI,EAAEE,MAAM,KAAK,UAAU,KAC1B,CAACF,IAAI,CAACG,KAAK,IAAIJ,IAAI,EAAEK,MAAM,CAACJ,IAAI,CAACG,KAAK,CAAC,EAAEE,QAAQ,KAAKJ,eAAe,CAAC;AAEzE,CAAC;AAED,OAAO,MAAMK,kCAAkC,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AI;IAEP,MAAMO,aAAa,GAAGD,aAAa,EAAEE,OAAO,KAAK,IAAI;IAErD,MAAMC,wBAAwB,GAC7BrC,sBAAsB,IAAIuB,iBAAiB,KAAK7C,uBAAuB;IAExE,MAAM4D,yBAAyB,GAC9B,CAAC,CAAC/B,eAAe,IACjBhC,aAAa,IACbqD,qBAAqB,KAAKrB,eAAe;IAE1C,MAAMgC,mBAAmB,GAAGrF,0BAA0B,CAAC;MACtDmF,wBAAwB;MACxBC,yBAAyB;MACzBxD,iBAAiB;MACjB0D,2BAA2B,EAC1B,CAACH,wBAAwB,IACzBT,qBAAqB,KAAKlD,uBAAuB;MAClDJ,wBAAwB,EAAEa,2BAA2B,EAAEK,GAAG,CAAC;IAC5D,CAAC,CAAC;IAEF,IAAIoC,qBAAqB,IAAIO,aAAa,IAAII,mBAAmB,EAAE;MAClEnD,yBAAyB,CAACU,GAAG,CAAC8B,qBAAqB,CAAC;IACrD;IAEA,MAAMa,eAAe,GAAGrD,yBAAyB,CAACI,GAAG,CAAC,CAAC;IAEvD,MAAMkD,cAAc,GAAGD,eAAe,GACnCtF,mCAAmC,CAACsF,eAAe,EAAE5E,UAAU,CAAC,GAChEjB,4BAA4B;IAE/B,OAAO;MACN,GAAGgD,SAAS;MACZ+C,QAAQ,EAAED;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEpD;EAAc,CAAC;AACzB,CAAC","ignoreList":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo } from "react";
|
|
4
|
-
import { StyleSheet } from "react-native";
|
|
5
|
-
import Animated from "react-native-reanimated";
|
|
6
|
-
import { isTeleportAvailable, NativePortal, PORTAL_POINTER_EVENTS } from "../../teleport";
|
|
7
|
-
import { useBoundaryContentPortalAttachment } from "./hooks/use-boundary-content-portal-attachment";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export { BoundaryContentPortalHost } from "./components/host";
|
|
10
|
-
const AnimatedNativePortal = NativePortal ? Animated.createAnimatedComponent(NativePortal) : null;
|
|
11
|
-
const EnabledNativePortal = AnimatedNativePortal;
|
|
12
|
-
export const BoundaryContentPortal = /*#__PURE__*/memo(function BoundaryContentPortal({
|
|
13
|
-
boundaryId,
|
|
14
|
-
children,
|
|
15
|
-
enabled
|
|
16
|
-
}) {
|
|
17
|
-
if (!enabled || boundaryId === undefined || !isTeleportAvailable || !AnimatedNativePortal) {
|
|
18
|
-
return children;
|
|
19
|
-
}
|
|
20
|
-
return /*#__PURE__*/_jsx(EnabledBoundaryContentPortal, {
|
|
21
|
-
boundaryId: boundaryId,
|
|
22
|
-
children: children
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const EnabledBoundaryContentPortal = /*#__PURE__*/memo(function EnabledBoundaryContentPortal({
|
|
26
|
-
boundaryId,
|
|
27
|
-
children
|
|
28
|
-
}) {
|
|
29
|
-
const {
|
|
30
|
-
teleportProps
|
|
31
|
-
} = useBoundaryContentPortalAttachment({
|
|
32
|
-
boundaryId
|
|
33
|
-
});
|
|
34
|
-
return /*#__PURE__*/_jsx(EnabledNativePortal, {
|
|
35
|
-
animatedProps: teleportProps,
|
|
36
|
-
name: boundaryId,
|
|
37
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
38
|
-
style: StyleSheet.absoluteFill,
|
|
39
|
-
children: children
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","StyleSheet","Animated","isTeleportAvailable","NativePortal","PORTAL_POINTER_EVENTS","useBoundaryContentPortalAttachment","jsx","_jsx","BoundaryContentPortalHost","AnimatedNativePortal","createAnimatedComponent","EnabledNativePortal","BoundaryContentPortal","boundaryId","children","enabled","undefined","EnabledBoundaryContentPortal","teleportProps","animatedProps","name","pointerEvents","style","absoluteFill"],"sourceRoot":"../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/index.tsx"],"mappings":";;AAAA,SAGCA,IAAI,QAEE,OAAO;AACd,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SACCC,mBAAmB,EACnBC,YAAY,EACZC,qBAAqB,QACf,gBAAgB;AACvB,SAASC,kCAAkC,QAAQ,gDAAgD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpG,SAASC,yBAAyB,QAAQ,mBAAmB;AAe7D,MAAMC,oBAAoB,GAAGN,YAAY,GACtCF,QAAQ,CAACS,uBAAuB,CAChCP,YACD,CAAC,GACA,IAAI;AACP,MAAMQ,mBAAmB,GAAGF,oBAE3B;AAED,OAAO,MAAMG,qBAAqB,gBAAGb,IAAI,CAAC,SAASa,qBAAqBA,CAAC;EACxEC,UAAU;EACVC,QAAQ;EACRC;AAC2B,CAAC,EAAE;EAC9B,IACC,CAACA,OAAO,IACRF,UAAU,KAAKG,SAAS,IACxB,CAACd,mBAAmB,IACpB,CAACO,oBAAoB,EACpB;IACD,OAAOK,QAAQ;EAChB;EAEA,oBACCP,IAAA,CAACU,4BAA4B;IAACJ,UAAU,EAAEA,UAAW;IAAAC,QAAA,EACnDA;EAAQ,CACoB,CAAC;AAEjC,CAAC,CAAC;AAEF,MAAMG,4BAA4B,gBAAGlB,IAAI,CACxC,SAASkB,4BAA4BA,CAAC;EACrCJ,UAAU;EACVC;AACqE,CAAC,EAAE;EACxE,MAAM;IAAEI;EAAc,CAAC,GAAGb,kCAAkC,CAAC;IAC5DQ;EACD,CAAC,CAAC;EAEF,oBACCN,IAAA,CAACI,mBAAmB;IACnBQ,aAAa,EAAED,aAAc;IAC7BE,IAAI,EAAEP,UAAW;IACjBQ,aAAa,EAAEjB,qBAAsB;IACrCkB,KAAK,EAAEtB,UAAU,CAACuB,YAAa;IAAAT,QAAA,EAE9BA;EAAQ,CACW,CAAC;AAExB,CACD,CAAC","ignoreList":[]}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo, useLayoutEffect, useRef } from "react";
|
|
4
|
-
import { StyleSheet, useWindowDimensions, View } from "react-native";
|
|
5
|
-
import Animated from "react-native-reanimated";
|
|
6
|
-
import { useBuilderStore } from "../../../../../../providers/screen/builder";
|
|
7
|
-
import { PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
8
|
-
import { useHostMeasurement } from "../hooks/use-host-measurement";
|
|
9
|
-
import { registerHost, unregisterHost } from "../stores/host-registry.store";
|
|
10
|
-
import { useActivePortalBoundaryHosts } from "../stores/portal-boundary-host.store";
|
|
11
|
-
import { PortalBoundaryHost } from "./portal-boundary-host";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
let nextHostId = 0;
|
|
14
|
-
function HostImpl({
|
|
15
|
-
fallback = false,
|
|
16
|
-
style
|
|
17
|
-
}) {
|
|
18
|
-
const screenKey = useBuilderStore(s => s.derivations.currentScreenKey);
|
|
19
|
-
const generatedHostKeyRef = useRef(null);
|
|
20
|
-
if (generatedHostKeyRef.current === null) {
|
|
21
|
-
generatedHostKeyRef.current = `${screenKey}-host-${nextHostId++}`;
|
|
22
|
-
}
|
|
23
|
-
const hostKey = fallback ? screenKey : generatedHostKeyRef.current;
|
|
24
|
-
const activeBoundaryHosts = useActivePortalBoundaryHosts(hostKey);
|
|
25
|
-
const {
|
|
26
|
-
height: viewportHeight,
|
|
27
|
-
width: viewportWidth
|
|
28
|
-
} = useWindowDimensions();
|
|
29
|
-
const measurementKey = activeBoundaryHosts.length ? activeBoundaryHosts.map(host => host.portalHostName).join("|") : null;
|
|
30
|
-
const measurement = useHostMeasurement({
|
|
31
|
-
measurementKey
|
|
32
|
-
});
|
|
33
|
-
useLayoutEffect(() => {
|
|
34
|
-
registerHost({
|
|
35
|
-
fallback,
|
|
36
|
-
hostKey,
|
|
37
|
-
screenKey
|
|
38
|
-
});
|
|
39
|
-
return () => {
|
|
40
|
-
unregisterHost(screenKey, hostKey);
|
|
41
|
-
};
|
|
42
|
-
}, [fallback, hostKey, screenKey]);
|
|
43
|
-
const boundaryHosts = activeBoundaryHosts.map(host => /*#__PURE__*/_jsx(View, {
|
|
44
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
45
|
-
style: [styles.boundaryHostViewport, {
|
|
46
|
-
width: viewportWidth,
|
|
47
|
-
height: viewportHeight
|
|
48
|
-
}],
|
|
49
|
-
children: /*#__PURE__*/_jsx(PortalBoundaryHost, {
|
|
50
|
-
host: host,
|
|
51
|
-
hostBounds: measurement.hostBounds,
|
|
52
|
-
hostMeasurementKey: measurementKey,
|
|
53
|
-
measuredHostKey: measurement.measuredKey,
|
|
54
|
-
style: StyleSheet.absoluteFill
|
|
55
|
-
})
|
|
56
|
-
}, host.portalHostName));
|
|
57
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
58
|
-
ref: measurement.hostRef,
|
|
59
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
60
|
-
style: [styles.host, {
|
|
61
|
-
width: viewportWidth,
|
|
62
|
-
height: viewportHeight
|
|
63
|
-
}, style],
|
|
64
|
-
collapsable: false,
|
|
65
|
-
children: boundaryHosts
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
export const Host = /*#__PURE__*/memo(function Host(props) {
|
|
69
|
-
return /*#__PURE__*/_jsx(HostImpl, {
|
|
70
|
-
...props
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
export const ScreenFallbackHost = /*#__PURE__*/memo(function ScreenFallbackHost() {
|
|
74
|
-
return /*#__PURE__*/_jsx(HostImpl, {
|
|
75
|
-
fallback: true
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
const styles = StyleSheet.create({
|
|
79
|
-
host: {
|
|
80
|
-
elevation: 999999,
|
|
81
|
-
left: 0,
|
|
82
|
-
overflow: "visible",
|
|
83
|
-
position: "absolute",
|
|
84
|
-
top: 0,
|
|
85
|
-
zIndex: 999999
|
|
86
|
-
},
|
|
87
|
-
boundaryHostViewport: {
|
|
88
|
-
left: 0,
|
|
89
|
-
overflow: "visible",
|
|
90
|
-
position: "absolute",
|
|
91
|
-
top: 0
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=host.js.map
|
package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useLayoutEffect","useRef","StyleSheet","useWindowDimensions","View","Animated","useBuilderStore","PORTAL_POINTER_EVENTS","useHostMeasurement","registerHost","unregisterHost","useActivePortalBoundaryHosts","PortalBoundaryHost","jsx","_jsx","nextHostId","HostImpl","fallback","style","screenKey","s","derivations","currentScreenKey","generatedHostKeyRef","current","hostKey","activeBoundaryHosts","height","viewportHeight","width","viewportWidth","measurementKey","length","map","host","portalHostName","join","measurement","boundaryHosts","pointerEvents","styles","boundaryHostViewport","children","hostBounds","hostMeasurementKey","measuredHostKey","measuredKey","absoluteFill","ref","hostRef","collapsable","Host","props","ScreenFallbackHost","create","elevation","left","overflow","position","top","zIndex"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/host.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,eAAe,EAAEC,MAAM,QAAQ,OAAO;AACrD,SAECC,UAAU,EACVC,mBAAmB,EACnBC,IAAI,QAEE,cAAc;AACrB,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,eAAe,QAAQ,4CAA4C;AAC5E,SAASC,qBAAqB,QAAQ,mBAAmB;AACzD,SAASC,kBAAkB,QAAQ,+BAA+B;AAClE,SAASC,YAAY,EAAEC,cAAc,QAAQ,+BAA+B;AAC5E,SAASC,4BAA4B,QAAQ,sCAAsC;AACnF,SAASC,kBAAkB,QAAQ,wBAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,IAAI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C;EACDnB,oBAAoB,EAAE;IACrBe,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,SAAS;IACnBC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo } from "react";
|
|
4
|
-
import { I18nManager, StyleSheet } from "react-native";
|
|
5
|
-
import Animated, { useAnimatedReaction, useAnimatedStyle } from "react-native-reanimated";
|
|
6
|
-
import { NO_STYLES } from "../../../../../../constants";
|
|
7
|
-
import { composeSlotStyleWithLocalTransform } from "../../../../../../providers/screen/orchestrator/styles/helpers/compose-slot-style";
|
|
8
|
-
import { NativePortalHost, PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
9
|
-
import { resolveBoundaryLocalMeasurement } from "../helpers/local-measurement";
|
|
10
|
-
import { resolvePortalOffsetStyle } from "../helpers/offset-style";
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
const AnimatedPortalBoundaryHost = NativePortalHost ? Animated.createAnimatedComponent(NativePortalHost) : null;
|
|
13
|
-
const getCurrentBoundaryBounds = host => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
return resolveBoundaryLocalMeasurement(host.localMeasurement.get(), host.pairKey);
|
|
17
|
-
};
|
|
18
|
-
export const PortalBoundaryHost = /*#__PURE__*/memo(function PortalBoundaryHost({
|
|
19
|
-
host,
|
|
20
|
-
hostBounds,
|
|
21
|
-
hostMeasurementKey,
|
|
22
|
-
measuredHostKey,
|
|
23
|
-
style
|
|
24
|
-
}) {
|
|
25
|
-
useAnimatedReaction(() => {
|
|
26
|
-
"worklet";
|
|
27
|
-
|
|
28
|
-
return getCurrentBoundaryBounds(host) !== null && hostBounds.get() !== null && !!hostMeasurementKey && measuredHostKey.get() === hostMeasurementKey;
|
|
29
|
-
}, ready => {
|
|
30
|
-
"worklet";
|
|
31
|
-
|
|
32
|
-
if (ready) {
|
|
33
|
-
host.portalHostReady.set(true);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const hostStyle = useAnimatedStyle(() => {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
const boundaryBounds = getCurrentBoundaryBounds(host);
|
|
40
|
-
if (!boundaryBounds) {
|
|
41
|
-
return NO_STYLES;
|
|
42
|
-
}
|
|
43
|
-
return resolvePortalOffsetStyle({
|
|
44
|
-
bounds: boundaryBounds,
|
|
45
|
-
hostBounds: hostBounds.get()
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
const contentFrameStyle = useAnimatedStyle(() => {
|
|
49
|
-
"worklet";
|
|
50
|
-
|
|
51
|
-
const boundaryBounds = getCurrentBoundaryBounds(host);
|
|
52
|
-
if (!boundaryBounds) {
|
|
53
|
-
return NO_STYLES;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
height: boundaryBounds.height,
|
|
57
|
-
width: boundaryBounds.width
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
const slotStyle = useAnimatedStyle(() => {
|
|
61
|
-
"worklet";
|
|
62
|
-
|
|
63
|
-
const slot = host.slotsMap.get()[host.boundaryId];
|
|
64
|
-
return composeSlotStyleWithLocalTransform(slot?.style ?? NO_STYLES, undefined, slot?.boundsLocalTransform);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Without `react-native-teleport` no portal ever mounts a boundary host, so
|
|
68
|
-
// this never renders - the guard just narrows the nullable animated host.
|
|
69
|
-
if (!AnimatedPortalBoundaryHost) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
73
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
74
|
-
style: [style, hostStyle],
|
|
75
|
-
collapsable: false,
|
|
76
|
-
children: /*#__PURE__*/_jsx(AnimatedPortalBoundaryHost, {
|
|
77
|
-
name: host.portalHostName,
|
|
78
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
79
|
-
style: [styles.content, contentFrameStyle, slotStyle]
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
// The teleport offset is a physical page delta measured from the screen's
|
|
85
|
-
// left edge, so the content box must anchor there too. Under native RTL,
|
|
86
|
-
// `left: 0` swaps to a right-edge anchor; `end: 0` is the physical left edge
|
|
87
|
-
// in RTL regardless of the swap setting.
|
|
88
|
-
const styles = StyleSheet.create({
|
|
89
|
-
content: I18nManager.isRTL ? {
|
|
90
|
-
end: 0,
|
|
91
|
-
position: "absolute",
|
|
92
|
-
top: 0
|
|
93
|
-
} : {
|
|
94
|
-
left: 0,
|
|
95
|
-
position: "absolute",
|
|
96
|
-
top: 0
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
//# sourceMappingURL=portal-boundary-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","I18nManager","StyleSheet","Animated","useAnimatedReaction","useAnimatedStyle","NO_STYLES","composeSlotStyleWithLocalTransform","NativePortalHost","PORTAL_POINTER_EVENTS","resolveBoundaryLocalMeasurement","resolvePortalOffsetStyle","jsx","_jsx","AnimatedPortalBoundaryHost","createAnimatedComponent","getCurrentBoundaryBounds","host","localMeasurement","get","pairKey","PortalBoundaryHost","hostBounds","hostMeasurementKey","measuredHostKey","style","ready","portalHostReady","set","hostStyle","boundaryBounds","bounds","contentFrameStyle","height","width","slotStyle","slot","slotsMap","boundaryId","undefined","boundsLocalTransform","View","pointerEvents","collapsable","children","name","portalHostName","styles","content","create","isRTL","end","position","top","left"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SACCC,WAAW,EAEXC,UAAU,QAEJ,cAAc;AACrB,OAAOC,QAAQ,IAGdC,mBAAmB,EACnBC,g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ChCD,OAAO,EAAE/C,WAAW,CAACiD,KAAK,GACvB;IACAC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAC,IAAI,EAAE,CAAC;IACPF,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["resolveBoundaryLocalMeasurement","measurement","pairKey","bounds"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts"],"mappings":";;AAGA,OAAO,MAAMA,+BAA+B,GAAGA,CAC9CC,WAA4C,EAC5CC,OAAsB,KAClB;EACJ,SAAS;;EACT,OAAOD,WAAW,EAAEC,OAAO,KAAKA,OAAO,GAAGD,WAAW,CAACE,MAAM,GAAG,IAAI;AACpE,CAAC","ignoreList":[]}
|
package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["resolvePortalOffsetStyle","bounds","hostBounds","hostPageX","pageX","hostPageY","pageY","transform","translateY","translateX"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/helpers/offset-style.ts"],"mappings":";;AAOA,OAAO,MAAMA,wBAAwB,GAAGA,CAAC;EACxCC,MAAM;EACNC;AAC+B,CAAC,KAAiB;EACjD,SAAS;;EACT;EACA;EACA;EACA,MAAMC,SAAS,GAAGD,UAAU,EAAEE,KAAK,IAAI,CAAC;EACxC,MAAMC,SAAS,GAAGH,UAAU,EAAEI,KAAK,IAAI,CAAC;EAExC,OAAO;IACNC,SAAS,EAAE,CACV;MAAEC,UAAU,EAAEP,MAAM,CAACK,KAAK,GAAGD;IAAU,CAAC,EACxC;MAAEI,UAAU,EAAER,MAAM,CAACG,KAAK,GAAGD;IAAU,CAAC;EAE1C,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useCallback, useLayoutEffect, useState } from "react";
|
|
4
|
-
import { useAnimatedReaction } from "react-native-reanimated";
|
|
5
|
-
import { scheduleOnRN } from "react-native-worklets";
|
|
6
|
-
import { getPairKeyForSource } from "../../../../../../stores/bounds/internals/links";
|
|
7
|
-
import { createBoundaryPortalHostName } from "../../../utils/naming";
|
|
8
|
-
import { mountPortalBoundaryHost, unmountPortalBoundaryHostByName } from "../stores/portal-boundary-host.store";
|
|
9
|
-
export const resolveActivePortalPairKey = ({
|
|
10
|
-
pairKey,
|
|
11
|
-
measurementPairKey,
|
|
12
|
-
hasAnimatedSlot
|
|
13
|
-
}) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
if (!pairKey || measurementPairKey !== pairKey || !hasAnimatedSlot) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
return pairKey;
|
|
20
|
-
};
|
|
21
|
-
export const useActivePortalBoundaryHost = ({
|
|
22
|
-
boundaryId,
|
|
23
|
-
currentScreenKey,
|
|
24
|
-
escapeHostKey,
|
|
25
|
-
localMeasurement,
|
|
26
|
-
portalHostName,
|
|
27
|
-
portalHostReady,
|
|
28
|
-
slotsMap
|
|
29
|
-
}) => {
|
|
30
|
-
const [activePairKey, setActivePairKey] = useState(null);
|
|
31
|
-
const updateActivePairKey = useCallback(pairKey => {
|
|
32
|
-
setActivePairKey(pairKey);
|
|
33
|
-
}, []);
|
|
34
|
-
useAnimatedReaction(() => {
|
|
35
|
-
"worklet";
|
|
36
|
-
|
|
37
|
-
const pairKey = getPairKeyForSource(boundaryId, currentScreenKey);
|
|
38
|
-
const measurement = localMeasurement.get();
|
|
39
|
-
return resolveActivePortalPairKey({
|
|
40
|
-
pairKey,
|
|
41
|
-
measurementPairKey: measurement?.pairKey,
|
|
42
|
-
hasAnimatedSlot: slotsMap.get()[boundaryId] !== undefined
|
|
43
|
-
});
|
|
44
|
-
}, (pairKey, previousPairKey) => {
|
|
45
|
-
"worklet";
|
|
46
|
-
|
|
47
|
-
if (pairKey === previousPairKey) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
scheduleOnRN(updateActivePairKey, pairKey);
|
|
51
|
-
});
|
|
52
|
-
useLayoutEffect(() => {
|
|
53
|
-
if (!activePairKey || !escapeHostKey) {
|
|
54
|
-
portalHostName.set(null);
|
|
55
|
-
portalHostReady.set(false);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const nextPortalHostName = createBoundaryPortalHostName(escapeHostKey, boundaryId, activePairKey);
|
|
59
|
-
mountPortalBoundaryHost({
|
|
60
|
-
boundaryId,
|
|
61
|
-
hostKey: escapeHostKey,
|
|
62
|
-
localMeasurement,
|
|
63
|
-
pairKey: activePairKey,
|
|
64
|
-
portalHostName: nextPortalHostName,
|
|
65
|
-
portalHostReady,
|
|
66
|
-
slotsMap
|
|
67
|
-
});
|
|
68
|
-
portalHostName.set(nextPortalHostName);
|
|
69
|
-
return () => {
|
|
70
|
-
portalHostName.set(null);
|
|
71
|
-
portalHostReady.set(false);
|
|
72
|
-
unmountPortalBoundaryHostByName(nextPortalHostName);
|
|
73
|
-
};
|
|
74
|
-
}, [activePairKey, boundaryId, escapeHostKey, localMeasurement, portalHostName, portalHostReady, slotsMap]);
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=use-active-portal-boundary-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useLayoutEffect","useState","useAnimatedReaction","scheduleOnRN","getPairKeyForSource","createBoundaryPortalHostName","mountPortalBoundaryHost","unmountPortalBoundaryHostByName","resolveActivePortalPairKey","pairKey","measurementPairKey","hasAnimatedSlot","useActivePortalBoundaryHost","boundaryId","currentScreenKey","escapeHostKey","localMeasurement","portalHostName","portalHostReady","slotsMap","activePairKey","setActivePairKey","updateActivePairKey","measurement","get","undefined","previousPairKey","set","nextPortalHostName","hostKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,OAAO;AAC9D,SAA2BC,mBAAmB,QAAQ,yBAAyB;AAC/E,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,mBAAmB,QAAQ,iDAAiD;AAIrF,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SACCC,uBAAuB,EACvBC,+BAA+B,QACzB,sCAAsC;AAY7C,OAAO,MAAMC,0BAA0B,GAAGA,CAAC;EAC1CC,OAAO;EACPC,kBAAkB;EAClBC;AAKD,CAAC,KAA2B;EAC3B,SAAS;;EACT,IAAI,CAACF,OAAO,IAAIC,kBAAkB,KAAKD,OAAO,IAAI,CAACE,eAAe,EAAE;IACnE,OAAO,IAAI;EACZ;EAEA,OAAOF,OAAO;AACf,CAAC;AAED,OAAO,MAAMG,2BAA2B,GAAGA,CAAC;EAC3CC,UAAU;EACVC,gBAAgB;EAChBC,aAAa;EACbC,gBAAgB;EAChBC,cAAc;EACdC,eAAe;EACfC;AACkC,CAAC,KAAK;EACxC,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGpB,QAAQ,CACjD,IACD,CAAC;EAED,MAAMqB,mBAAmB,GAAGvB,WAAW,CAAEU,OAA6B,IAAK;IAC1EY,gBAAgB,CAACZ,OAAO,CAAC;EAC1B,CAAC,EAAE,EAAE,CAAC;EAENP,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,MAAMO,OAAO,GAAGL,mBAAmB,CAACS,UAAU,EAAEC,gBAAgB,CAAC;IACjE,MAAMS,WAAW,GAAGP,gBAAgB,CAACQ,GAAG,CAAC,CAAC;IAE1C,OAAOhB,0BAA0B,CAAC;MACjCC,OAAO;MACPC,kBAAkB,EAAEa,WAAW,EAAEd,OAAO;MACxCE,eAAe,EAAEQ,QAAQ,CAACK,GAAG,CAAC,CAAC,CAACX,UAAU,CAAC,KAAKY;IACjD,CAAC,CAAC;EACH,CAAC,EACD,CAAChB,OAAO,EAAEiB,eAAe,KAAK;IAC7B,SAAS;;IACT,IAAIjB,OAAO,KAAKiB,eAAe,EAAE;MAChC;IACD;IAEAvB,YAAY,CAACmB,mBAAmB,EAAEb,OAAO,CAAC;EAC3C,CACD,CAAC;EAEDT,eAAe,CAAC,MAAM;IACrB,IAAI,CAACoB,aAAa,IAAI,CAACL,aAAa,EAAE;MACrCE,cAAc,CAACU,GAAG,CAAC,IAAI,CAAC;MACxBT,eAAe,CAACS,GAAG,CAAC,KAAK,CAAC;MAC1B;IACD;IAEA,MAAMC,kBAAkB,GAAGvB,4BAA4B,CACtDU,aAAa,EACbF,UAAU,EACVO,aACD,CAAC;IAEDd,uBAAuB,CAAC;MACvBO,UAAU;MACVgB,OAAO,EAAEd,aAAa;MACtBC,gBAAgB;MAChBP,OAAO,EAAEW,aAAa;MACtBH,cAAc,EAAEW,kBAAkB;MAClCV,eAAe;MACfC;IACD,CAAC,CAAC;IACFF,cAAc,CAACU,GAAG,CAACC,kBAAkB,CAAC;IAEtC,OAAO,MAAM;MACZX,cAAc,CAACU,GAAG,CAAC,IAAI,CAAC;MACxBT,eAAe,CAACS,GAAG,CAAC,KAAK,CAAC;MAC1BpB,+BAA+B,CAACqB,kBAAkB,CAAC;IACpD,CAAC;EACF,CAAC,EAAE,CACFR,aAAa,EACbP,UAAU,EACVE,aAAa,EACbC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC,QAAQ,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useAnimatedProps, useSharedValue } from "react-native-reanimated";
|
|
4
|
-
import { useBuilderStore } from "../../../../../../providers/screen/builder";
|
|
5
|
-
import { useOrchestratorStore } from "../../../../../../providers/screen/orchestrator";
|
|
6
|
-
import { useBoundaryRootStore } from "../../../../providers/boundary-root.provider";
|
|
7
|
-
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
8
|
-
import { useActiveHostKey } from "../stores/host-registry.store";
|
|
9
|
-
import { useActivePortalBoundaryHost } from "./use-active-portal-boundary-host";
|
|
10
|
-
export const useBoundaryPortalAttachment = ({
|
|
11
|
-
boundaryId
|
|
12
|
-
}) => {
|
|
13
|
-
const localMeasurement = useBoundaryRootStore(root => {
|
|
14
|
-
if (!root) {
|
|
15
|
-
throw new Error("Boundary portal attachment requires a boundary root.");
|
|
16
|
-
}
|
|
17
|
-
return root.localMeasurement;
|
|
18
|
-
});
|
|
19
|
-
const currentScreenKey = useBuilderStore(s => s.derivations.currentScreenKey);
|
|
20
|
-
const slotsMap = useOrchestratorStore(store => store.slotsMap);
|
|
21
|
-
const portalHostName = useSharedValue(null);
|
|
22
|
-
const portalHostReady = useSharedValue(false);
|
|
23
|
-
const escapeHostKey = useActiveHostKey(currentScreenKey);
|
|
24
|
-
useActivePortalBoundaryHost({
|
|
25
|
-
boundaryId,
|
|
26
|
-
currentScreenKey,
|
|
27
|
-
escapeHostKey,
|
|
28
|
-
localMeasurement,
|
|
29
|
-
portalHostName,
|
|
30
|
-
portalHostReady,
|
|
31
|
-
slotsMap
|
|
32
|
-
});
|
|
33
|
-
const teleportProps = useAnimatedProps(() => {
|
|
34
|
-
"worklet";
|
|
35
|
-
|
|
36
|
-
const slot = slotsMap.get()[boundaryId];
|
|
37
|
-
const {
|
|
38
|
-
pointerEvents: _pointerEvents,
|
|
39
|
-
handoffTarget: _handoffTarget,
|
|
40
|
-
...slotProps
|
|
41
|
-
} = slot?.props ?? {};
|
|
42
|
-
const shouldAttach = slot !== undefined && portalHostReady.get();
|
|
43
|
-
const hostName = shouldAttach ? portalHostName.get() : PORTAL_HOST_NAME_RESET_VALUE;
|
|
44
|
-
return {
|
|
45
|
-
...slotProps,
|
|
46
|
-
hostName
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
return {
|
|
50
|
-
teleportProps
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=use-boundary-portal-attachment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedProps","useSharedValue","useBuilderStore","useOrchestratorStore","useBoundaryRootStore","PORTAL_HOST_NAME_RESET_VALUE","useActiveHostKey","useActivePortalBoundaryHost","useBoundaryPortalAttachment","boundaryId","localMeasurement","root","Error","currentScreenKey","s","derivations","slotsMap","store","portalHostName","portalHostReady","escapeHostKey","teleportProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","_handoffTarget","slotProps","props","shouldAttach","undefined","hostName"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,cAAc,QAAQ,yBAAyB;AAC1E,SAASC,eAAe,QAAQ,4CAA4C;AAC5E,SAASC,oBAAoB,QAAQ,iDAAiD;AACtF,SAASC,oBAAoB,QAAQ,8CAA8C;AACnF,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,2BAA2B,QAAQ,mCAAmC;AAM/E,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC3CC;AACkC,CAAC,KAAK;EACxC,MAAMC,gBAAgB,GAAGN,oBAAoB,CAAEO,IAAI,IAAK;IACvD,IAAI,CAACA,IAAI,EAAE;MACV,MAAM,IAAIC,KAAK,CAAC,sDAAsD,CAAC;IACxE;IAEA,OAAOD,IAAI,CAACD,gBAAgB;EAC7B,CAAC,CAAC;EACF,MAAMG,gBAAgB,GAAGX,eAAe,CACtCY,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACF,gBACtB,CAAC;EACD,MAAMG,QAAQ,GAAGb,oBAAoB,CAAEc,KAAK,IAAKA,KAAK,CAACD,QAAQ,CAAC;EAChE,MAAME,cAAc,GAAGjB,cAAc,CAAgB,IAAI,CAAC;EAC1D,MAAMkB,eAAe,GAAGlB,cAAc,CAAC,KAAK,CAAC;EAC7C,MAAMmB,aAAa,GAAGd,gBAAgB,CAACO,gBAAgB,CAAC;EAExDN,2BAA2B,CAAC;IAC3BE,UAAU;IACVI,gBAAgB;IAChBO,aAAa;IACbV,gBAAgB;IAChBQ,cAAc;IACdC,eAAe;IACfH;EACD,CAAC,CAAC;EAEF,MAAMK,aAAa,GAAGrB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IAET,MAAMsB,IAAI,GAAGN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAACd,UAAU,CAAC;IACvC,MAAM;MACLe,aAAa,EAAEC,cAAc;MAC7BC,aAAa,EAAEC,cAAc;MAC7B,GAAGC;IACJ,CAAC,GAAGN,IAAI,EAAEO,KAAK,IAAI,CAAC,CAAC;IAErB,MAAMC,YAAY,GAAGR,IAAI,KAAKS,SAAS,IAAIZ,eAAe,CAACI,GAAG,CAAC,CAAC;IAEhE,MAAMS,QAAQ,GAAGF,YAAY,GAC1BZ,cAAc,CAACK,GAAG,CAAC,CAAC,GACpBlB,4BAA4B;IAE/B,OAAO;MACN,GAAGuB,SAAS;MACZI;IACD,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEX;EAAc,CAAC;AACzB,CAAC","ignoreList":[]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { cancelAnimation, measure, useAnimatedReaction, useAnimatedRef, useSharedValue, withDelay, withTiming } from "react-native-reanimated";
|
|
4
|
-
const HOST_MEASUREMENT_RETRY_DELAY_MS = 16;
|
|
5
|
-
export const useHostMeasurement = ({
|
|
6
|
-
measurementKey
|
|
7
|
-
}) => {
|
|
8
|
-
const hostRef = useAnimatedRef();
|
|
9
|
-
const hostBounds = useSharedValue(null);
|
|
10
|
-
const measuredKey = useSharedValue(null);
|
|
11
|
-
const retryToken = useSharedValue(0);
|
|
12
|
-
useAnimatedReaction(() => {
|
|
13
|
-
"worklet";
|
|
14
|
-
|
|
15
|
-
if (!measurementKey) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return [measurementKey, measuredKey.get(), retryToken.get()];
|
|
19
|
-
}, state => {
|
|
20
|
-
"worklet";
|
|
21
|
-
|
|
22
|
-
if (!state) {
|
|
23
|
-
cancelAnimation(retryToken);
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const [requestedKey, completedKey] = state;
|
|
27
|
-
if (requestedKey === completedKey) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const measured = measure(hostRef);
|
|
31
|
-
if (!measured) {
|
|
32
|
-
cancelAnimation(retryToken);
|
|
33
|
-
retryToken.set(withDelay(HOST_MEASUREMENT_RETRY_DELAY_MS, withTiming(retryToken.get() + 1, {
|
|
34
|
-
duration: 0
|
|
35
|
-
})));
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
cancelAnimation(retryToken);
|
|
39
|
-
if (measured.width <= 0 || measured.height <= 0) {
|
|
40
|
-
cancelAnimation(retryToken);
|
|
41
|
-
retryToken.set(withDelay(HOST_MEASUREMENT_RETRY_DELAY_MS, withTiming(retryToken.get() + 1, {
|
|
42
|
-
duration: 0
|
|
43
|
-
})));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
hostBounds.set({
|
|
47
|
-
x: measured.x,
|
|
48
|
-
y: measured.y,
|
|
49
|
-
width: measured.width,
|
|
50
|
-
height: measured.height,
|
|
51
|
-
pageX: measured.pageX,
|
|
52
|
-
pageY: measured.pageY
|
|
53
|
-
});
|
|
54
|
-
measuredKey.set(requestedKey);
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
hostBounds,
|
|
58
|
-
hostRef,
|
|
59
|
-
measuredKey
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=use-host-measurement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["cancelAnimation","measure","useAnimatedReaction","useAnimatedRef","useSharedValue","withDelay","withTiming","HOST_MEASUREMENT_RETRY_DELAY_MS","useHostMeasurement","measurementKey","hostRef","hostBounds","measuredKey","retryToken","get","state","requestedKey","completedKey","measured","set","duration","width","height","x","y","pageX","pageY"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts"],"mappings":";;AACA,SACCA,eAAe,EAEfC,OAAO,EACPC,mBAAmB,EACnBC,cAAc,EACdC,cAAc,EACdC,SAAS,EACTC,UAAU,QACJ,yBAAyB;AAEhC,MAAMC,+BAA+B,GAAG,EAAE;AAM1C,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAClCC;AACyB,CAAC,KAAK;EAC/B,MAAMC,OAAO,GAAGP,cAAc,CAAO,CAAC;EACtC,MAAMQ,UAAU,GAAGP,cAAc,CAA4B,IAAI,CAAC;EAClE,MAAMQ,WAAW,GAAGR,cAAc,CAAgB,IAAI,CAAC;EACvD,MAAMS,UAAU,GAAGT,cAAc,CAAC,CAAC,CAAC;EAEpCF,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACO,cAAc,EAAE;MACpB,OAAO,IAAI;IACZ;IAEA,OAAO,CAACA,cAAc,EAAEG,WAAW,CAACE,GAAG,CAAC,CAAC,EAAED,UAAU,CAACC,GAAG,CAAC,CAAC,CAAC;EAC7D,CAAC,EACAC,KAAK,IAAK;IACV,SAAS;;IACT,IAAI,CAACA,KAAK,EAAE;MACXf,eAAe,CAACa,UAAU,CAAC;MAC3B;IACD;IAEA,MAAM,CAACG,YAAY,EAAEC,YAAY,CAAC,GAAGF,KAAK;IAC1C,IAAIC,YAAY,KAAKC,YAAY,EAAE;MAClC;IACD;IAEA,MAAMC,QAAQ,GAAGjB,OAAO,CAACS,OAAO,CAAC;IAEjC,IAAI,CAACQ,QAAQ,EAAE;MACdlB,eAAe,CAACa,UAAU,CAAC;MAC3BA,UAAU,CAACM,GAAG,CACbd,SAAS,CACRE,+BAA+B,EAC/BD,UAAU,CAACO,UAAU,CAACC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;QAAEM,QAAQ,EAAE;MAAE,CAAC,CACjD,CACD,CAAC;MACD;IACD;IAEApB,eAAe,CAACa,UAAU,CAAC;IAE3B,IAAIK,QAAQ,CAACG,KAAK,IAAI,CAAC,IAAIH,QAAQ,CAACI,MAAM,IAAI,CAAC,EAAE;MAChDtB,eAAe,CAACa,UAAU,CAAC;MAC3BA,UAAU,CAACM,GAAG,CACbd,SAAS,CACRE,+BAA+B,EAC/BD,UAAU,CAACO,UAAU,CAACC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;QAAEM,QAAQ,EAAE;MAAE,CAAC,CACjD,CACD,CAAC;MACD;IACD;IAEAT,UAAU,CAACQ,GAAG,CAAC;MACdI,CAAC,EAAEL,QAAQ,CAACK,CAAC;MACbC,CAAC,EAAEN,QAAQ,CAACM,CAAC;MACbH,KAAK,EAAEH,QAAQ,CAACG,KAAK;MACrBC,MAAM,EAAEJ,QAAQ,CAACI,MAAM;MACvBG,KAAK,EAAEP,QAAQ,CAACO,KAAK;MACrBC,KAAK,EAAER,QAAQ,CAACQ;IACjB,CAAC,CAAC;IACFd,WAAW,CAACO,GAAG,CAACH,YAAY,CAAC;EAC9B,CACD,CAAC;EACD,OAAO;IACNL,UAAU;IACVD,OAAO;IACPE;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useAnimatedStyle","useSharedValue","usePlaceholderStyles","placeholderWidth","placeholderHeight","placeholderStyle","width","get","height","handleOnLayout","layout","hasValidDimensions","set"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAEnC,SAASC,gBAAgB,EAAEC,cAAc,QAAQ,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react-native-reanimated";
|
|
5
|
-
import { scheduleOnUI } from "react-native-worklets";
|
|
6
|
-
import { logger } from "../../../../../utils/logger";
|
|
7
|
-
import { isTeleportAvailable, PORTAL_POINTER_EVENTS, NativePortal as TeleportPortal } from "../../teleport";
|
|
8
|
-
import { useBoundaryPortalAttachment } from "./hooks/use-boundary-portal-attachment";
|
|
9
|
-
import { usePlaceholderStyles } from "./hooks/use-placeholder-styles";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const AnimatedNativePortal = TeleportPortal ? Animated.createAnimatedComponent(TeleportPortal) : null;
|
|
12
|
-
const EnabledNativePortal = AnimatedNativePortal;
|
|
13
|
-
export const BoundaryPortal = /*#__PURE__*/memo(function BoundaryPortal({
|
|
14
|
-
boundaryId,
|
|
15
|
-
children,
|
|
16
|
-
enabled,
|
|
17
|
-
placeholderRef
|
|
18
|
-
}) {
|
|
19
|
-
if (!enabled || !isTeleportAvailable || !AnimatedNativePortal) {
|
|
20
|
-
return children;
|
|
21
|
-
}
|
|
22
|
-
return /*#__PURE__*/_jsx(EnabledBoundaryPortal, {
|
|
23
|
-
boundaryId: boundaryId,
|
|
24
|
-
placeholderRef: placeholderRef,
|
|
25
|
-
children: children
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
const EnabledBoundaryPortal = /*#__PURE__*/memo(function EnabledBoundaryPortal({
|
|
29
|
-
boundaryId,
|
|
30
|
-
children,
|
|
31
|
-
placeholderRef
|
|
32
|
-
}) {
|
|
33
|
-
if (__DEV__ && !boundaryId) {
|
|
34
|
-
logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
|
|
35
|
-
}
|
|
36
|
-
const {
|
|
37
|
-
teleportProps
|
|
38
|
-
} = useBoundaryPortalAttachment({
|
|
39
|
-
boundaryId
|
|
40
|
-
});
|
|
41
|
-
const {
|
|
42
|
-
handleOnLayout,
|
|
43
|
-
placeholderStyle
|
|
44
|
-
} = usePlaceholderStyles();
|
|
45
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
46
|
-
ref: placeholderRef,
|
|
47
|
-
onLayout: ({
|
|
48
|
-
nativeEvent: {
|
|
49
|
-
layout
|
|
50
|
-
}
|
|
51
|
-
}) => scheduleOnUI(handleOnLayout, layout),
|
|
52
|
-
style: placeholderStyle,
|
|
53
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
54
|
-
collapsable: false,
|
|
55
|
-
children: /*#__PURE__*/_jsx(EnabledNativePortal, {
|
|
56
|
-
animatedProps: teleportProps,
|
|
57
|
-
name: boundaryId,
|
|
58
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
59
|
-
children: children
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","Animated","scheduleOnUI","logger","isTeleportAvailable","PORTAL_POINTER_EVENTS","NativePortal","TeleportPortal","useBoundaryPortalAttachment","usePlaceholderStyles","jsx","_jsx","AnimatedNativePortal","createAnimatedComponent","EnabledNativePortal","BoundaryPortal","boundaryId","children","enabled","placeholderRef","EnabledBoundaryPortal","__DEV__","warnOnce","teleportProps","handleOnLayout","placeholderStyle","View","ref","onLayout","nativeEvent","layout","style","pointerEvents","collapsable","animatedProps","name"],"sourceRoot":"../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/index.tsx"],"mappings":";;AAAA,SAGCA,IAAI,QAEE,OAAO;AAEd,OAAOC,QAAQ,MAA4B,yBAAyB;AACpE,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SACCC,mBAAmB,EACnBC,qBAAqB,EACrBC,YAAY,IAAIC,cAAc,QACxB,gBAAgB;AACvB,SAASC,2BAA2B,QAAQ,wCAAwC;AACpF,SAASC,oBAAoB,QAAQ,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAStE,MAA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AI,EAAEnB,UAAW;MACjBgB,aAAa,EAAE3B,qBAAsB;MAAAY,QAAA,EAEpCA;IAAQ,CACW;EAAC,CACR,CAAC;AAElB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useSyncExternalStore","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","unregisterHost","getActiveHostKey","useActiveHostKey","undefined","resetHostRegistry","clear"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,OAAO;AAU5C,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;MACnB,OAAOD,IAAI,CAACE,OAAO;IACpB;EACD;EAEA,OAAOL,KAAK,CAAC,CAAC,CAAC,EAAEK,OAAO,IAAIN,SAAS;AACtC,CAAC;AAED,MAAMO,aAAa,GAAGA,C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_HOSTS","listeners","Set","activeBoundaryHosts","Map","snapshot","hostsByScope","buildSnapshot","host","values","hosts","hostKey","push","emit","listener","isSameHost","a","b","boundaryId","localMeasurement","pairKey","portalHostName","portalHostReady","slotsMap","mountPortalBoundaryHost","previous","get","set","unmountPortalBoundaryHostByName","delete","subscribe","add","useActivePortalBoundaryHosts"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,OAAO;AAmB5C,MAAMC,WAAuC,GAAG,EAAE;AAElD,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAa,CAAC;AACvC,MAAMC,mBAAmB,GAAG,IAAIC,GAAG,CAAmC,CAAC;AAEvE,IAAIC,QAAwB,GAAG;EAC9BC,YAAY,EAAE,CAAC;AAChB,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAA,KAAsB;EAC3C,MAAMD,YAAwD,GAAG,CAAC,CAAC;EAEnE,KAAK,MAAME,IAAI,IAAIL,mBAAmB,CAACM,MAAM,CAAC,CAAC,EAAE;IAChD,MAAMC,KAAK,GAAGJ,YAAY,CAACE,IAAI,CAACG,OAAO,CAAC,IAAI,EAAE;IAC9CD,KAAK,CAACE,IAAI,CAACJ,IAAI,CAAC;IAChBF,YAAY,CAACE,IAAI,CAACG,OAAO,CAAC,GAAGD,KAAK;EACnC;EAEA,OAAO;IACNJ;EACD,CAAC;AACF,CAAC;AAED,MAAMO,IAAI,GAAGA,CAAA,KAAM;EAClBR,QAAQ,GAAGE,aAAa,CAAC,CAAC;EAE1B,KAAK,MAAMO,QAAQ,IAAIb,SAAS,EAAE;IACjCa,QAAQ,CAAC,CAAC;EACX;AACD,CAAC;AAED,MAAMC,UAAU,GAAGA,CAClBC,CAA2B,EAC3BC,CAA2B,KACvB;EACJ,OACCD,CAAC,CAACE,UAAU,KAAKD,CAAC,CAACC,UAAU,IAC7BF,CAAC,CAACL,OAAO,KAAKM,CAAC,CA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