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,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { memo } from "react";
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
4
4
|
import { useBuilderStore } from "../../../providers/screen/builder";
|
|
5
|
-
import {
|
|
5
|
+
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
6
|
+
import { useBoundaryPresence } from "../hooks/lifecycles/use-boundary-presence";
|
|
7
|
+
import { useInitialDestinationMeasurement } from "../hooks/lifecycles/use-initial-destination-measurement";
|
|
8
|
+
import { useInitialSourceMeasurement } from "../hooks/lifecycles/use-initial-source-measurement";
|
|
9
|
+
import { useRefreshBoundary } from "../hooks/lifecycles/use-refresh-boundary";
|
|
10
|
+
import { useMeasurer } from "../hooks/use-measurer";
|
|
6
11
|
export const BoundaryLifecycle = /*#__PURE__*/memo(function BoundaryLifecycle({
|
|
7
12
|
boundTag,
|
|
8
13
|
config,
|
|
@@ -15,17 +20,44 @@ export const BoundaryLifecycle = /*#__PURE__*/memo(function BoundaryLifecycle({
|
|
|
15
20
|
style
|
|
16
21
|
}) {
|
|
17
22
|
const hasConfiguredInterpolator = useBuilderStore(s => s.derivations.hasConfiguredInterpolator);
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
const runtimeEnabled = enabled && hasConfiguredInterpolator;
|
|
24
|
+
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
25
|
+
const measureBoundary = useMeasurer({
|
|
20
26
|
enabled,
|
|
21
|
-
|
|
27
|
+
boundTag,
|
|
22
28
|
currentScreenKey,
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
preparedStyles,
|
|
30
|
+
measuredAnimatedRef: measuredRef,
|
|
25
31
|
handoff,
|
|
26
32
|
escapeClipping,
|
|
27
|
-
localMeasurement
|
|
28
|
-
|
|
33
|
+
localMeasurement
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Presence and source capture must not depend on this screen owning an
|
|
37
|
+
// interpolator: a nested source can participate in a transition owned by a
|
|
38
|
+
// different navigator.
|
|
39
|
+
useBoundaryPresence({
|
|
40
|
+
enabled,
|
|
41
|
+
boundTag,
|
|
42
|
+
currentScreenKey,
|
|
43
|
+
boundaryConfig: config,
|
|
44
|
+
handoff,
|
|
45
|
+
escapeClipping
|
|
46
|
+
});
|
|
47
|
+
useInitialSourceMeasurement({
|
|
48
|
+
enabled,
|
|
49
|
+
measureBoundary,
|
|
50
|
+
boundTag
|
|
51
|
+
});
|
|
52
|
+
useInitialDestinationMeasurement({
|
|
53
|
+
boundTag,
|
|
54
|
+
enabled: runtimeEnabled,
|
|
55
|
+
measureBoundary
|
|
56
|
+
});
|
|
57
|
+
useRefreshBoundary({
|
|
58
|
+
enabled: runtimeEnabled,
|
|
59
|
+
boundTag,
|
|
60
|
+
measureBoundary
|
|
29
61
|
});
|
|
30
62
|
return null;
|
|
31
63
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useBuilderStore","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","useBuilderStore","prepareStyleForBounds","useBoundaryPresence","useInitialDestinationMeasurement","useInitialSourceMeasurement","useRefreshBoundary","useMeasurer","BoundaryLifecycle","boundTag","config","currentScreenKey","enabled","escapeClipping","handoff","localMeasurement","measuredRef","style","hasConfiguredInterpolator","s","derivations","runtimeEnabled","preparedStyles","measureBoundary","measuredAnimatedRef","boundaryConfig"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-lifecycle.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAGrC,SAASC,eAAe,QAAQ,mCAAmC;AAEnE,SAASC,qBAAqB,QAAQ,6CAA6C;AACnF,SAASC,mBAAmB,QAAQ,2CAA2C;AAC/E,SAASC,gCAAgC,QAAQ,yDAAyD;AAC1G,SAASC,2BAA2B,QAAQ,oDAAoD;AAChG,SAASC,kBAAkB,QAAQ,0CAA0C;AAC7E,SAASC,WAAW,QAAQ,uBAAuB;AAkBnD,OAAO,MAAMC,iBAAiB,gBAAGT,IAAI,CAAC,SAASS,iBAAiBA,CAAC;EAChEC,QAAQ;EACRC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,cAAc;EACdC,OAAO;EACPC,gBAAgB;EAChBC,WAAW;EACXC;AACuB,CAAC,EAAE;EAC1B,MAAMC,yBAAyB,GAAGjB,eAAe,CAC/CkB,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACF,yBACtB,CAAC;EAED,MAAMG,cAAc,GAAGT,OAAO,IAAIM,yBAAyB;EAC3D,MAAMI,cAAc,GAAGtB,OAAO,CAAC,MAAME,qBAAqB,CAACe,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMM,eAAe,GAAGhB,WAAW,CAAC;IACnCK,OAAO;IACPH,QAAQ;IACRE,gBAAgB;IAChBW,cAAc;IACdE,mBAAmB,EAAER,WAAW;IAChCF,OAAO;IACPD,cAAc;IACdE;EACD,CAAC,CAAC;;EAEF;EACA;EACA;EACAZ,mBAAmB,CAAC;IACnBS,OAAO;IACPH,QAAQ;IACRE,gBAAgB;IAChBc,cAAc,EAAEf,MAAM;IACtBI,OAAO;IACPD;EACD,CAAC,CAAC;EAEFR,2BAA2B,CAAC;IAC3BO,OAAO;IACPW,eAAe;IACfd;EACD,CAAC,CAAC;EAEFL,gCAAgC,CAAC;IAChCK,QAAQ;IACRG,OAAO,EAAES,cAAc;IACvBE;EACD,CAAC,CAAC;EAEFjB,kBAAkB,CAAC;IAClBM,OAAO,EAAES,cAAc;IACvBZ,QAAQ;IACRc;EACD,CAAC,CAAC;EAEF,OAAO,IAAI;AACZ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { memo, useLayoutEffect } from "react";
|
|
4
4
|
import Animated from "react-native-reanimated";
|
|
5
|
-
import { useComposedSlotStyles, useSlotLayoutStyles } from "../../../providers/screen/orchestrator/styles";
|
|
6
5
|
import { logger } from "../../../utils/logger";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { useComposedBoundaryStyle } from "../hooks/use-composed-boundary-style";
|
|
7
|
+
import { Portal } from "../portal/components/portal";
|
|
9
8
|
import { TARGET_OUTSIDE_ROOT_WARNING, useOptionalBoundaryRootStore } from "../providers/boundary-root.provider";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
export const BOUNDARY_TARGET_ACTIVE_PROP = "__boundaryTargetActive";
|
|
@@ -23,17 +22,15 @@ const BoundaryTargetInner = props => {
|
|
|
23
22
|
const portalRuntime = rootContext?.portalRuntime;
|
|
24
23
|
const handoffEnabled = isActiveTarget && rootContext?.handoffEnabled === true;
|
|
25
24
|
const shouldEscapeTargetToScreenHost = isActiveTarget && portalRuntime?.escapeClipping === true;
|
|
26
|
-
const
|
|
27
|
-
const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.escapeClipping === true;
|
|
28
|
-
const associatedTargetStyles = useComposedSlotStyles(rootContext?.boundTag.tag, style);
|
|
29
|
-
const portalLayoutStyle = useSlotLayoutStyles(rootContext?.boundTag.tag);
|
|
25
|
+
const associatedTargetStyles = useComposedBoundaryStyle(rootContext?.slotsMap, boundaryId, style, shouldEscapeTargetToScreenHost ? "layout" : "full");
|
|
30
26
|
const measurementRef = isActiveTarget ? rootContext.measurementRef : undefined;
|
|
31
27
|
useLayoutEffect(() => {
|
|
32
28
|
if (__DEV__ && rootContext === null) {
|
|
33
29
|
logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
|
|
34
30
|
}
|
|
35
31
|
}, [rootContext]);
|
|
36
|
-
return /*#__PURE__*/_jsx(
|
|
32
|
+
return /*#__PURE__*/_jsx(Portal, {
|
|
33
|
+
mode: "escapeClipping",
|
|
37
34
|
boundaryId: boundaryId ?? "",
|
|
38
35
|
enabled: shouldEscapeTargetToScreenHost,
|
|
39
36
|
placeholderRef: measurementRef,
|
|
@@ -41,17 +38,13 @@ const BoundaryTargetInner = props => {
|
|
|
41
38
|
...rest,
|
|
42
39
|
pointerEvents: pointerEvents,
|
|
43
40
|
ref: shouldEscapeTargetToScreenHost ? undefined : measurementRef,
|
|
44
|
-
style: [style,
|
|
41
|
+
style: [style, isActiveTarget ? associatedTargetStyles : undefined],
|
|
45
42
|
collapsable: false,
|
|
46
|
-
children: /*#__PURE__*/_jsx(
|
|
47
|
-
|
|
43
|
+
children: /*#__PURE__*/_jsx(Portal, {
|
|
44
|
+
mode: "handoff",
|
|
45
|
+
boundaryId: boundaryId,
|
|
48
46
|
enabled: handoffEnabled,
|
|
49
|
-
|
|
50
|
-
children: /*#__PURE__*/_jsx(BoundaryContentPortal, {
|
|
51
|
-
boundaryId: boundaryId,
|
|
52
|
-
enabled: handoffEnabled,
|
|
53
|
-
children: children
|
|
54
|
-
})
|
|
47
|
+
children: children
|
|
55
48
|
})
|
|
56
49
|
})
|
|
57
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useLayoutEffect","Animated","
|
|
1
|
+
{"version":3,"names":["memo","useLayoutEffect","Animated","logger","useComposedBoundaryStyle","Portal","TARGET_OUTSIDE_ROOT_WARNING","useOptionalBoundaryRootStore","jsx","_jsx","BOUNDARY_TARGET_ACTIVE_PROP","BoundaryTargetInner","props","active","children","pointerEvents","style","rest","rootContext","boundaryId","boundTag","tag","isActiveTarget","portalRuntime","handoffEnabled","shouldEscapeTargetToScreenHost","escapeClipping","associatedTargetStyles","slotsMap","measurementRef","undefined","__DEV__","warn","mode","enabled","placeholderRef","View","ref","collapsable","BoundaryTarget"],"sourceRoot":"../../../../../src","sources":["components/boundary/components/boundary-target.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,eAAe,QAAQ,OAAO;AAC7C,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,wBAAwB,QAAQ,sCAAsC;AAC/E,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SACCC,2BAA2B,EAC3BC,4BAA4B,QACtB,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS7C,OAAO,MAAMC,2BAA2B,GAAG,wBAAiC;AAK5E,MAAMC,mBAAmB,GAAIC,KAAkC,IAAK;EACnE,MAAM;IACL,CAACF,2BAA2B,GAAGG,MAAM;IACrCC,QAAQ;IACRC,aAAa;IACbC,KAAK;IACL,GAAGC;EACJ,CAAC,GAAGL,KAAK;EACT,MAAMM,WAAW,GAAGX,4BAA4B,CAAC,CAAC;EAClD,MAAMY,UAAU,GAAGD,WAAW,EAAEE,QAAQ,CAACC,GAAG;EAC5C,MAAMC,cAAc,GAAGT,MAAM,KAAK,IAAI,IAAIK,WAAW,KAAK,IAAI;EAC9D,MAAMK,aAAa,GAAGL,WAAW,EAAEK,aAAa;EAChD,MAAMC,cAAc,GAAGF,cAAc,IAAIJ,WAAW,EAAEM,cAAc,KAAK,IAAI;EAC7E,MAAMC,8BAA8B,GACnCH,cAAc,IAAIC,aAAa,EAAEG,cAAc,KAAK,IAAI;EAEzD,MAAMC,sBAAsB,GAAGvB,wBAAwB,CACtDc,WAAW,EAAEU,QAAQ,EACrBT,UAAU,EACVH,KAAK,EACLS,8BAA8B,GAAG,QAAQ,GAAG,MAC7C,CAAC;EAED,MAAMI,cAAc,GAAGP,cAAc,GAClCJ,WAAW,CAACW,cAAc,GAC1BC,SAAS;EAEZ7B,eAAe,CAAC,MAAM;IACrB,IAAI8B,OAAO,IAAIb,WAAW,KAAK,IAAI,EAAE;MACpCf,MAAM,CAAC6B,IAAI,CAAC1B,2BAA2B,CAAC;IACzC;EACD,CAAC,EAAE,CAACY,WAAW,CAAC,CAAC;EAEjB,oBACCT,IAAA,CAACJ,MAAM;IACN4B,IAAI,EAAC,gBAAgB;IACrBd,UAAU,EAAEA,UAAU,IAAI,EAAG;IAC7Be,OAAO,EAAET,8BAA+B;IACxCU,cAAc,EAAEN,cAAe;IAAAf,QAAA,eAE/BL,IAAA,CAACP,QAAQ,CAACkC,IAAI;MAAA,GACTnB,IAAI;MACRF,aAAa,EAAEA,aAAc;MAC7BsB,GAAG,EAAEZ,8BAA8B,GAAGK,SAAS,GAAGD,cAAe;MACjEb,KAAK,EAAE,CAACA,KAAK,EAAEM,cAAc,GAAGK,sBAAsB,GAAGG,SAAS,CAAE;MACpEQ,WAAW,EAAE,KAAM;MAAAxB,QAAA,eAEnBL,IAAA,CAACJ,MAAM;QAAC4B,IAAI,EAAC,SAAS;QAACd,UAAU,EAAEA,UAAW;QAACe,OAAO,EAAEV,cAAe;QAAAV,QAAA,EACrEA;MAAQ,CACF;IAAC,CACK;EAAC,CACT,CAAC;AAEX,CAAC;AAED,OAAO,MAAMyB,cAAc,gBAAGvC,IAAI,CACjCW,mBACD,CAAoD","ignoreList":[]}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import { cloneElement, forwardRef, memo, useMemo } from "react";
|
|
4
4
|
import Animated from "react-native-reanimated";
|
|
5
5
|
import { BOUNDARY_TARGET_ACTIVE_PROP, BoundaryTarget } from "./components/boundary-target";
|
|
6
|
-
import {
|
|
7
|
-
import { BoundaryPortal } from "./portal/components/boundary-portal";
|
|
6
|
+
import { Portal } from "./portal/components/portal";
|
|
8
7
|
import { BoundaryRootProvider } from "./providers/boundary-root.provider";
|
|
9
8
|
import { resolveBoundaryTarget } from "./utils/resolve-boundary-target";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -28,6 +27,12 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
28
27
|
children,
|
|
29
28
|
...rest
|
|
30
29
|
} = props;
|
|
30
|
+
const config = useMemo(() => ({
|
|
31
|
+
anchor,
|
|
32
|
+
scaleMode,
|
|
33
|
+
target,
|
|
34
|
+
method
|
|
35
|
+
}), [anchor, scaleMode, target, method]);
|
|
31
36
|
const targetResolution = useMemo(() => {
|
|
32
37
|
return resolveBoundaryTarget(children, {
|
|
33
38
|
isTarget: element => element.type === BoundaryTarget,
|
|
@@ -38,12 +43,7 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
38
43
|
}, [children]);
|
|
39
44
|
const targetStyle = targetResolution.target?.props?.style;
|
|
40
45
|
return /*#__PURE__*/_jsx(BoundaryRootProvider, {
|
|
41
|
-
config:
|
|
42
|
-
anchor,
|
|
43
|
-
scaleMode,
|
|
44
|
-
target,
|
|
45
|
-
method
|
|
46
|
-
},
|
|
46
|
+
config: config,
|
|
47
47
|
enabled: enabled,
|
|
48
48
|
escapeClipping: escapeClipping,
|
|
49
49
|
forwardedRef: forwardedRef,
|
|
@@ -54,7 +54,8 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
54
54
|
style: style,
|
|
55
55
|
targetCount: targetResolution.targetCount,
|
|
56
56
|
targetStyle: targetStyle,
|
|
57
|
-
children: root => /*#__PURE__*/_jsx(
|
|
57
|
+
children: root => /*#__PURE__*/_jsx(Portal, {
|
|
58
|
+
mode: "escapeClipping",
|
|
58
59
|
boundaryId: root.boundTag.tag,
|
|
59
60
|
enabled: root.shouldRenderBoundaryRootThroughPortal,
|
|
60
61
|
placeholderRef: root.measurementRef,
|
|
@@ -63,15 +64,11 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
63
64
|
ref: root.ref,
|
|
64
65
|
style: [style, root.attachedStyle],
|
|
65
66
|
collapsable: false,
|
|
66
|
-
children: /*#__PURE__*/_jsx(
|
|
67
|
+
children: /*#__PURE__*/_jsx(Portal, {
|
|
68
|
+
mode: "handoff",
|
|
67
69
|
boundaryId: root.boundTag.tag,
|
|
68
70
|
enabled: root.shouldRenderHandoffHost,
|
|
69
|
-
|
|
70
|
-
children: /*#__PURE__*/_jsx(BoundaryContentPortal, {
|
|
71
|
-
boundaryId: root.boundTag.tag,
|
|
72
|
-
enabled: root.shouldRenderHandoffHost,
|
|
73
|
-
children: targetResolution.children
|
|
74
|
-
})
|
|
71
|
+
children: targetResolution.children
|
|
75
72
|
})
|
|
76
73
|
})
|
|
77
74
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cloneElement","forwardRef","memo","useMemo","Animated","BOUNDARY_TARGET_ACTIVE_PROP","BoundaryTarget","
|
|
1
|
+
{"version":3,"names":["cloneElement","forwardRef","memo","useMemo","Animated","BOUNDARY_TARGET_ACTIVE_PROP","BoundaryTarget","Portal","BoundaryRootProvider","resolveBoundaryTarget","jsx","_jsx","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","config","targetResolution","isTarget","element","type","mapTarget","selected","targetStyle","hasTarget","targetCount","root","mode","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","shouldRenderHandoffHost"],"sourceRoot":"../../../../src","sources":["components/boundary/create-boundary-component.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getLinkKeyFromTag } from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
4
|
+
export function resolveBoundaryPresentation(screenKey, boundaryId, state) {
|
|
5
|
+
"worklet";
|
|
6
|
+
|
|
7
|
+
const linkKey = getLinkKeyFromTag(boundaryId);
|
|
8
|
+
let result;
|
|
9
|
+
for (const value of state.presentations) {
|
|
10
|
+
const presentation = value?.get();
|
|
11
|
+
if (!presentation) continue;
|
|
12
|
+
const pair = state.pairs[presentation.pairKey];
|
|
13
|
+
const link = pair?.links[linkKey];
|
|
14
|
+
if (!link || link.group && pair.groups[link.group]?.activeId !== linkKey) continue;
|
|
15
|
+
const sourceKey = link.source?.screenKey ?? presentation.sourceKey;
|
|
16
|
+
const destinationKey = link.destination?.screenKey ?? presentation.destinationKey;
|
|
17
|
+
if (sourceKey !== screenKey && destinationKey !== screenKey) continue;
|
|
18
|
+
// A preparing or completed pair cannot displace a live presentation.
|
|
19
|
+
if (result && !presentation.ready) continue;
|
|
20
|
+
result = {
|
|
21
|
+
...presentation,
|
|
22
|
+
sourceKey,
|
|
23
|
+
destinationKey
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
export function resolveBoundaryReceiver(presentation, target, screenKey) {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
if (!presentation) return screenKey;
|
|
32
|
+
return presentation.ready && target !== "source" ? presentation.destinationKey : presentation.sourceKey;
|
|
33
|
+
}
|
|
34
|
+
export function resolveBoundaryHandoff(screenKey, boundaryId, state) {
|
|
35
|
+
"worklet";
|
|
36
|
+
|
|
37
|
+
let receiver = screenKey;
|
|
38
|
+
const visited = {};
|
|
39
|
+
while (!visited[receiver]) {
|
|
40
|
+
visited[receiver] = true;
|
|
41
|
+
const p = resolveBoundaryPresentation(receiver, boundaryId, state);
|
|
42
|
+
if (!p) break;
|
|
43
|
+
const slot = (p.sourceKey === receiver ? p.source : p.destination)[boundaryId];
|
|
44
|
+
const next = resolveBoundaryReceiver(p, slot?.props?.handoffTarget ?? p.destination[boundaryId]?.props?.handoffTarget ?? p.source[boundaryId]?.props?.handoffTarget, receiver);
|
|
45
|
+
if (next === receiver || !state.entries[boundaryId]?.screens[next]?.handoff) break;
|
|
46
|
+
receiver = next;
|
|
47
|
+
}
|
|
48
|
+
return receiver;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLinkKeyFromTag","resolveBoundaryPresentation","screenKey","boundaryId","state","linkKey","result","value","presentations","presentation","get","pair","pairs","pairKey","link","links","group","groups","activeId","sourceKey","source","destinationKey","destination","ready","resolveBoundaryReceiver","target","resolveBoundaryHandoff","receiver","visited","p","slot","next","props","handoffTarget","entries","screens","handoff"],"sourceRoot":"../../../../../src","sources":["components/boundary/helpers/presentation.ts"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,mDAAmD;AAqBrF,OAAO,SAASC,2BAA2BA,CAC1CC,SAAiB,EACjBC,UAAkB,EAClBC,KAAgC,EAC/B;EACD,SAAS;;EACT,MAAMC,OAAO,GAAGL,iBAAiB,CAACG,UAAU,CAAC;EAC7C,IAAIG,MAA4C;EAChD,KAAK,MAAMC,KAAK,IAAIH,KAAK,CAACI,aAAa,EAAE;IACxC,MAAMC,YAAY,GAAGF,KAAK,EAAEG,GAAG,CAAC,CAAC;IACjC,IAAI,CAACD,YAAY,EAAE;IACnB,MAAME,IAAI,GAAGP,KAAK,CAACQ,KAAK,CAACH,YAAY,CAACI,OAAO,CAAC;IAC9C,MAAMC,IAAI,GAAGH,IAAI,EAAEI,KAAK,CAACV,OAAO,CAAC;IACjC,IAAI,CAACS,IAAI,IAAKA,IAAI,CAACE,KAAK,IAAIL,IAAI,CAACM,MAAM,CAACH,IAAI,CAACE,KAAK,CAAC,EAAEE,QAAQ,KAAKb,OAAQ,EACzE;IACD,MAAMc,SAAS,GAAGL,IAAI,CAACM,MAAM,EAAElB,SAAS,IAAIO,YAAY,CAACU,SAAS;IAClE,MAAME,cAAc,GACnBP,IAAI,CAACQ,WAAW,EAAEpB,SAAS,IAAIO,YAAY,CAACY,cAAc;IAC3D,IAAIF,SAAS,KAAKjB,SAAS,IAAImB,cAAc,KAAKnB,SAAS,EAAE;IAC7D;IACA,IAAII,MAAM,IAAI,CAACG,YAAY,CAACc,KAAK,EAAE;IACnCjB,MAAM,GAAG;MAAE,GAAGG,YAAY;MAAEU,SAAS;MAAEE;IAAe,CAAC;EACxD;EACA,OAAOf,MAAM;AACd;AAEA,OAAO,SAASkB,uBAAuBA,CACtCf,YAAkD,EAClDgB,MAAyC,EACzCvB,SAAiB,EAChB;EACD,SAAS;;EACT,IAAI,CAACO,YAAY,EAAE,OAAOP,SAAS;EACnC,OAAOO,YAAY,CAACc,KAAK,IAAIE,MAAM,KAAK,QAAQ,GAC7ChB,YAAY,CAACY,cAAc,GAC3BZ,YAAY,CAACU,SAAS;AAC1B;AAEA,OAAO,SAASO,sBAAsBA,CACrCxB,SAAiB,EACjBC,UAAkB,EAClBC,KAAgC,EAC/B;EACD,SAAS;;EACT,IAAIuB,QAAQ,GAAGzB,SAAS;EACxB,MAAM0B,OAA6B,GAAG,CAAC,CAAC;EACxC,OAAO,CAACA,OAAO,CAACD,QAAQ,CAAC,EAAE;IAC1BC,OAAO,CAACD,QAAQ,CAAC,GAAG,IAAI;IACxB,MAAME,CAAC,GAAG5B,2BAA2B,CAAC0B,QAAQ,EAAExB,UAAU,EAAEC,KAAK,CAAC;IAClE,IAAI,CAACyB,CAAC,EAAE;IACR,MAAMC,IAAI,GAAG,CAACD,CAAC,CAACV,SAAS,KAAKQ,QAAQ,GAAGE,CAAC,CAACT,MAAM,GAAGS,CAAC,CAACP,WAAW,EAChEnB,UAAU,CACV;IACD,MAAM4B,IAAI,GAAGP,uBAAuB,CACnCK,CAAC,EACDC,IAAI,EAAEE,KAAK,EAAEC,aAAa,IACzBJ,CAAC,CAACP,WAAW,CAACnB,UAAU,CAAC,EAAE6B,KAAK,EAAEC,aAAa,IAC/CJ,CAAC,CAACT,MAAM,CAACjB,UAAU,CAAC,EAAE6B,KAAK,EAAEC,aAAa,EAC3CN,QACD,CAAC;IACD,IAAII,IAAI,KAAKJ,QAAQ,IAAI,CAACvB,KAAK,CAAC8B,OAAO,CAAC/B,UAAU,CAAC,EAAEgC,OAAO,CAACJ,IAAI,CAAC,EAAEK,OAAO,EAC1E;IACDT,QAAQ,GAAGI,IAAI;EAChB;EACA,OAAOJ,QAAQ;AAChB","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
5
|
+
import { NO_PROPS, NO_STYLES } from "../../../constants";
|
|
6
|
+
import { useBuilderStore } from "../../../providers/screen/builder";
|
|
7
|
+
import { useScreenRelationships } from "../../../providers/screen/builder/topology";
|
|
8
|
+
import { useOptionalOrchestratorStore, useOrchestratorStore } from "../../../providers/screen/orchestrator";
|
|
9
|
+
import { areResettableStatesBySlotEqual, resolveSlotStyles } from "../../../providers/screen/orchestrator/styles/helpers/resolve-slot-styles";
|
|
10
|
+
import { useOptionalBlankStackStore } from "../../../providers/stack/blank-stack.provider";
|
|
11
|
+
import { boundaryRegistry, pairs } from "../../../stores/bounds/internals/state";
|
|
12
|
+
import { resolveBoundaryHandoff, resolveBoundaryPresentation } from "../helpers/presentation";
|
|
13
|
+
|
|
14
|
+
// Screens are discovered through existing providers. React only wires subscriptions;
|
|
15
|
+
// their live UI values decide ownership, including retained closing screens.
|
|
16
|
+
export function useBoundaryPresentation(boundaryId, enabled = true) {
|
|
17
|
+
const screenKey = useBuilderStore(s => s.derivations.currentScreenKey);
|
|
18
|
+
const scenes = useOptionalBlankStackStore(s => s?.scenes);
|
|
19
|
+
const keys = useMemo(() => enabled ? scenes?.map(s => s.route.key) ?? [screenKey] : [], [scenes, screenKey, enabled]);
|
|
20
|
+
const pairPresentations = useOptionalOrchestratorStore(keys, s => s.pairPresentation);
|
|
21
|
+
const localSlots = useOrchestratorStore(s => s.slotsMap);
|
|
22
|
+
const {
|
|
23
|
+
parentScreenKey
|
|
24
|
+
} = useScreenRelationships();
|
|
25
|
+
const ancestorSlots = useOptionalOrchestratorStore(parentScreenKey, s => s.slotsMap);
|
|
26
|
+
const previous = useSharedValue(NO_PROPS);
|
|
27
|
+
const presentation = useDerivedValue(() => {
|
|
28
|
+
const state = {
|
|
29
|
+
presentations: pairPresentations,
|
|
30
|
+
pairs: pairs.get(),
|
|
31
|
+
entries: boundaryRegistry.get()
|
|
32
|
+
};
|
|
33
|
+
const owner = resolveBoundaryPresentation(screenKey, boundaryId, state);
|
|
34
|
+
const receiver = resolveBoundaryHandoff(screenKey, boundaryId, state);
|
|
35
|
+
const ownedSlot = owner?.ready ? (owner.sourceKey === screenKey ? owner.source : owner.destination)[boundaryId] : undefined;
|
|
36
|
+
const fallback = localSlots.get()[boundaryId];
|
|
37
|
+
const {
|
|
38
|
+
resolvedStylesMap,
|
|
39
|
+
nextPreviousStyleStatesBySlot
|
|
40
|
+
} = resolveSlotStyles({
|
|
41
|
+
localStylesMaps: [{
|
|
42
|
+
[boundaryId]: ownedSlot ?? fallback ?? {}
|
|
43
|
+
}],
|
|
44
|
+
ancestorStylesMap: ownedSlot ? ancestorSlots?.get() ?? NO_STYLES : NO_STYLES,
|
|
45
|
+
previousStyleStatesBySlot: previous.get()
|
|
46
|
+
});
|
|
47
|
+
if (!areResettableStatesBySlotEqual(previous.get(), nextPreviousStyleStatesBySlot)) {
|
|
48
|
+
previous.set(nextPreviousStyleStatesBySlot);
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
owner,
|
|
52
|
+
receiver,
|
|
53
|
+
slots: resolvedStylesMap
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const slotsMap = useDerivedValue(() => presentation.get().slots);
|
|
57
|
+
return {
|
|
58
|
+
presentation,
|
|
59
|
+
slotsMap
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=use-boundary-presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useDerivedValue","useSharedValue","NO_PROPS","NO_STYLES","useBuilderStore","useScreenRelationships","useOptionalOrchestratorStore","useOrchestratorStore","areResettableStatesBySlotEqual","resolveSlotStyles","useOptionalBlankStackStore","boundaryRegistry","pairs","resolveBoundaryHandoff","resolveBoundaryPresentation","useBoundaryPresentation","boundaryId","enabled","screenKey","s","derivations","currentScreenKey","scenes","keys","map","route","key","pairPresentations","pairPresentation","localSlots","slotsMap","parentScreenKey","ancestorSlots","previous","presentation","state","presentations","get","entries","owner","receiver","ownedSlot","ready","sourceKey","source","destination","undefined","fallback","resolvedStylesMap","nextPreviousStyleStatesBySlot","localStylesMaps","ancestorStylesMap","previousStyleStatesBySlot","set","slots"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-boundary-presentation.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useAnimatedStyle } from "react-native-reanimated";
|
|
5
|
+
import { NO_STYLES } from "../../../constants";
|
|
6
|
+
import { composeSlotStyleWithLocalTransform, getLocalTransformForSlotComposition } from "../../../providers/screen/orchestrator/styles/helpers/compose-slot-style";
|
|
7
|
+
export function useComposedBoundaryStyle(slots, id, style, kind = "full") {
|
|
8
|
+
const local = useMemo(() => getLocalTransformForSlotComposition(style), [style]);
|
|
9
|
+
return useAnimatedStyle(() => {
|
|
10
|
+
const slot = id ? slots?.get()[id] : undefined;
|
|
11
|
+
const value = slot?.style ?? NO_STYLES;
|
|
12
|
+
if (kind === "stacking") return {
|
|
13
|
+
zIndex: value.zIndex ?? 0,
|
|
14
|
+
elevation: value.elevation ?? 0
|
|
15
|
+
};
|
|
16
|
+
if (kind === "layout") {
|
|
17
|
+
const {
|
|
18
|
+
width,
|
|
19
|
+
height,
|
|
20
|
+
minWidth,
|
|
21
|
+
minHeight,
|
|
22
|
+
maxWidth,
|
|
23
|
+
maxHeight,
|
|
24
|
+
aspectRatio
|
|
25
|
+
} = value;
|
|
26
|
+
return {
|
|
27
|
+
width,
|
|
28
|
+
height,
|
|
29
|
+
minWidth,
|
|
30
|
+
minHeight,
|
|
31
|
+
maxWidth,
|
|
32
|
+
maxHeight,
|
|
33
|
+
aspectRatio
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return composeSlotStyleWithLocalTransform(value, local, slot?.boundsLocalTransform);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=use-composed-boundary-style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useAnimatedStyle","NO_STYLES","composeSlotStyleWithLocalTransform","getLocalTransformForSlotComposition","useComposedBoundaryStyle","slots","id","style","kind","local","slot","get","undefined","value","zIndex","elevation","width","height","minWidth","minHeight","maxWidth","maxHeight","aspectRatio","boundsLocalTransform"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-composed-boundary-style.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAGCC,gBAAgB,QACV,yBAAyB;AAChC,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SACCC,kCAAkC,EAClCC,mCAAmC,QAC7B,0EAA0E;AAGjF,OAAO,SAASC,wBAAwBA,CACvCC,KAAqE,EACrEC,EAAsB,EACtBC,KAAe,EACfC,IAAoC,GAAG,MAAM,EAC5C;EACD,MAAMC,KAAK,GAAGV,OAAO,CACpB,MAAMI,mCAAmC,CAACI,KAAK,CAAC,EAChD,CAACA,KAAK,CACP,CAAC;EAED,OAAOP,gBAAgB,CAAC,MAAM;IAC7B,MAAMU,IAAI,GAAGJ,EAAE,GAAGD,KAAK,EAAEM,GAAG,CAAC,CAAC,CAACL,EAAE,CAAC,GAAGM,SAAS;IAC9C,MAAMC,KAAiB,GAAGH,IAAI,EAAEH,KAAK,IAAIN,SAAS;IAClD,IAAIO,IAAI,KAAK,UAAU,EACtB,OAAO;MAAEM,MAAM,EAAED,KAAK,CAACC,MAAM,IAAI,CAAC;MAAEC,SAAS,EAAEF,KAAK,CAACE,SAAS,IAAI;IAAE,CAAC;IAEtE,IAAIP,IAAI,KAAK,QAAQ,EAAE;MACtB,MAAM;QACLQ,KAAK;QACLC,MAAM;QACNC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC;MACD,CAAC,GAAGT,KAAK;MAET,OAAO;QACNG,KAAK;QACLC,MAAM;QACNC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC;MACD,CAAC;IACF;IACA,OAAOpB,kCAAkC,CACxCW,KAAK,EACLJ,KAAK,EACLC,IAAI,EAAEa,oBACP,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ import { View } from "react-native";
|
|
|
5
5
|
import { Pressable } from "react-native-gesture-handler";
|
|
6
6
|
import { BoundaryTarget } from "./components/boundary-target";
|
|
7
7
|
import { createBoundaryComponent } from "./create-boundary-component";
|
|
8
|
-
import {
|
|
8
|
+
import { PortalOverlay } from "./portal/components/portal-overlay";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export { createBoundaryComponent };
|
|
11
11
|
const BoundaryPrimitive = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -19,7 +19,6 @@ BoundaryPrimitive.displayName = "Transition.Boundary.Primitive";
|
|
|
19
19
|
const BoundaryRoot = createBoundaryComponent(BoundaryPrimitive);
|
|
20
20
|
BoundaryRoot.displayName = "Transition.Boundary";
|
|
21
21
|
BoundaryTarget.displayName = "Transition.Boundary.Target";
|
|
22
|
-
Host.displayName = "Transition.Boundary.Host";
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
24
|
* Shared-boundary component with static helpers.
|
|
@@ -41,6 +40,6 @@ Host.displayName = "Transition.Boundary.Host";
|
|
|
41
40
|
|
|
42
41
|
export const Boundary = Object.assign(BoundaryRoot, {
|
|
43
42
|
Target: BoundaryTarget,
|
|
44
|
-
Host
|
|
43
|
+
Host: PortalOverlay
|
|
45
44
|
});
|
|
46
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","View","Pressable","BoundaryTarget","createBoundaryComponent","
|
|
1
|
+
{"version":3,"names":["forwardRef","View","Pressable","BoundaryTarget","createBoundaryComponent","PortalOverlay","jsx","_jsx","BoundaryPrimitive","props","ref","Component","displayName","BoundaryRoot","Boundary","Object","assign","Target","Host"],"sourceRoot":"../../../../src","sources":["components/boundary/index.tsx"],"mappings":";;AAAA,SAECA,UAAU,QAEJ,OAAO;AACd,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,SAAS,QAA6B,8BAA8B;AAC7E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,uBAAuB,QAAQ,6BAA6B;AACrE,SAASC,aAAa,QAAQ,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGnE,SAASH,uBAAuB;AAOhC,MAAMI,iBAAiB,gBAAGR,UAAU,CACnC,CAACS,KAAK,EAAEC,GAAG,KAAK;EACf,MAAMC,SAAS,GAAG,SAAS,IAAIF,KAAK,GAAGP,SAAS,GAAGD,IAAI;EAEvD,oBAAOM,IAAA,CAACI,SAAS;IAAA,GAAMF,KAAK;IAAUC,GAAG,EAAEA;EAAW,CAAE,CAAC;AAC1D,CACD,CAAC;AAEDF,iBAAiB,CAACI,WAAW,GAAG,+BAA+B;AAE/D,MAAMC,YAAY,GAAGT,uBAAuB,CAACI,iBAAiB,CAAC;AAC/DK,YAAY,CAACD,WAAW,GAAG,qBAAqB;AAChDT,cAAc,CAACS,WAAW,GAAG,4BAA4B;;AAIzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA,OAAO,MAAME,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAACH,YAAY,EAAE;EACnDI,MAAM,EAAEd,cAAc;EACtBe,IAAI,EAAEb;AACP,CAAC,CAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import Animated from "react-native-reanimated";
|
|
6
|
+
import { NativePortalHost, PORTAL_POINTER_EVENTS } from "../teleport";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const AnimatedHost = NativePortalHost ? Animated.createAnimatedComponent(NativePortalHost) : null;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The native receiving point for a Portal whose destination matches `name`.
|
|
12
|
+
*
|
|
13
|
+
* Handoff places this inside a boundary, filling its local frame. Escape-clipping
|
|
14
|
+
* places it inside a PortalOverlay, which supplies
|
|
15
|
+
* the boundary's size, offset, and animated styles. This component only renders
|
|
16
|
+
* the receiver; destination selection and measurement belong to its callers.
|
|
17
|
+
*/
|
|
18
|
+
export const PortalHost = /*#__PURE__*/memo(function PortalHost({
|
|
19
|
+
name,
|
|
20
|
+
style = styles.inline
|
|
21
|
+
}) {
|
|
22
|
+
return AnimatedHost ? /*#__PURE__*/_jsx(AnimatedHost, {
|
|
23
|
+
name: name,
|
|
24
|
+
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
25
|
+
style: style
|
|
26
|
+
}) : null;
|
|
27
|
+
});
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
inline: {
|
|
30
|
+
...StyleSheet.absoluteFill,
|
|
31
|
+
overflow: "visible"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=portal-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","StyleSheet","Animated","NativePortalHost","PORTAL_POINTER_EVENTS","jsx","_jsx","AnimatedHost","createAnimatedComponent","PortalHost","name","style","styles","inline","pointerEvents","create","absoluteFill","overflow"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/components/portal-host.tsx"],"mappings":";;AAAA,SAA8BA,IAAI,QAAQ,OAAO;AACjD,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,gBAAgB,EAAEC,qBAAqB,QAAQ,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtE,MAAMC,YAAY,GAAGJ,gBAAgB,GAClCD,QAAQ,CAACM,uBAAuB,CAACL,gBAAgB,CAAC,GAClD,IAAI;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,UAAU,gBAAGT,IAAI,CAAC,SAASS,UAAUA,CAAC;EAClDC,IAAI;EACJC,KAAK,GAAGC,MAAM,CAACC;AAIhB,CAAC,EAAE;EACF,OAAON,YAAY,gBAClBD,IAAA,CAACC,YAAY;IACZG,IAAI,EAAEA,IAAK;IACXI,aAAa,EAAEV,qBAAsB;IACrCO,KAAK,EAAEA;EAAM,CACb,CAAC,GACC,IAAI;AACT,CAAC,CAAC;AAEF,MAAMC,MAAM,GAAGX,UAAU,CAACc,MAAM,CAAC;EAChCF,MAAM,EAAE;IAAE,GAAGZ,UAAU,CAACe,YAAY;IAAEC,QAAQ,EAAE;EAAU;AAC3D,CAAC,CAAC","ignoreList":[]}
|