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,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo, useCallback } from "react";
|
|
4
|
-
import { I18nManager, StyleSheet, View } from "react-native";
|
|
5
|
-
import Animated from "react-native-reanimated";
|
|
6
|
-
import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../../constants";
|
|
7
|
-
import { useSlotStyles } from "../../../../providers/screen/orchestrator/styles";
|
|
8
|
-
import { logger } from "../../../../utils/logger";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
let LazyMaskedView = View;
|
|
11
|
-
try {
|
|
12
|
-
LazyMaskedView = require("@react-native-masked-view/masked-view").default;
|
|
13
|
-
} catch (_) {
|
|
14
|
-
// optional peer dependency
|
|
15
|
-
}
|
|
16
|
-
let hasWarnedMissingMaskedView = false;
|
|
17
|
-
export const MaybeMaskedNavigationContainer = /*#__PURE__*/memo(({
|
|
18
|
-
enabled,
|
|
19
|
-
children,
|
|
20
|
-
pointerEvents
|
|
21
|
-
}) => {
|
|
22
|
-
if (!enabled || LazyMaskedView === View) {
|
|
23
|
-
return children;
|
|
24
|
-
}
|
|
25
|
-
return /*#__PURE__*/_jsx(MaskedNavigationContainer, {
|
|
26
|
-
pointerEvents: pointerEvents,
|
|
27
|
-
children: children
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
const MaskedNavigationContainer = /*#__PURE__*/memo(({
|
|
31
|
-
children,
|
|
32
|
-
pointerEvents
|
|
33
|
-
}) => {
|
|
34
|
-
const maybeLogWarning = useCallback(() => {
|
|
35
|
-
if (LazyMaskedView !== View) return;
|
|
36
|
-
if (hasWarnedMissingMaskedView) return;
|
|
37
|
-
hasWarnedMissingMaskedView = true;
|
|
38
|
-
logger.warn("navigationMaskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.");
|
|
39
|
-
}, []);
|
|
40
|
-
const animatedNavigationMaskStyle = useSlotStyles(NAVIGATION_MASK_ELEMENT_STYLE_ID);
|
|
41
|
-
const animatedNavigationMaskContainerStyle = useSlotStyles(NAVIGATION_MASK_CONTAINER_STYLE_ID);
|
|
42
|
-
return /*#__PURE__*/_jsx(LazyMaskedView, {
|
|
43
|
-
style: styles.navigationMaskedRoot
|
|
44
|
-
// @ts-expect-error masked-view package types are too strict here
|
|
45
|
-
,
|
|
46
|
-
maskElement: /*#__PURE__*/_jsx(Animated.View, {
|
|
47
|
-
style: [styles.navigationMaskElement, animatedNavigationMaskStyle],
|
|
48
|
-
pointerEvents: "none"
|
|
49
|
-
}),
|
|
50
|
-
pointerEvents: pointerEvents,
|
|
51
|
-
onLayout: maybeLogWarning,
|
|
52
|
-
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
53
|
-
style: [styles.navigationContainer, animatedNavigationMaskContainerStyle],
|
|
54
|
-
collapsable: false,
|
|
55
|
-
children: children
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
navigationMaskedRoot: {
|
|
61
|
-
flex: 1
|
|
62
|
-
},
|
|
63
|
-
navigationContainer: {
|
|
64
|
-
flex: 1
|
|
65
|
-
},
|
|
66
|
-
// The mask rect's translate math assumes a physical top-left base. Under
|
|
67
|
-
// native RTL a fixed-width flex child anchors to the right edge, so pin it
|
|
68
|
-
// to the physical left (`end` = left edge in RTL).
|
|
69
|
-
navigationMaskElement: I18nManager.isRTL ? {
|
|
70
|
-
backgroundColor: "white",
|
|
71
|
-
end: 0,
|
|
72
|
-
position: "absolute",
|
|
73
|
-
top: 0
|
|
74
|
-
} : {
|
|
75
|
-
backgroundColor: "white"
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=maybe-masked-navigation-container.js.map
|
package/lib/module/components/screen/container/layers/maybe-masked-navigation-container.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","I18nManager","StyleSheet","View","Animated","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","useSlotStyles","logger","jsx","_jsx","LazyMaskedView","require","default","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","enabled","children","pointerEvents","MaskedNavigationContainer","maybeLogWarning","warn","animatedNavigationMaskStyle","animatedNavigationMaskContainerStyle","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","create","flex","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../../../../src","sources":["components/screen/container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAASC,WAAW,EAAEC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC5E,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SACCC,kCAAkC,EAClCC,gCAAgC,QAC1B,uBAAuB;AAC9B,SAASC,aAAa,QAAQ,kDAAkD;AAChF,SAASC,MAAM,QAAQ,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQlD,IAAIC,cAAc,GAAGR,IAAI;AAEzB,IAAI;EACHQ,cAAc,GAAGC,OAAO,CAAC,uCAAuC,CAAC,CAACC,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;AAGD,IAAIC,0BAA0B,GAAG,KAAK;AAEtC,OAAO,MAAMC,8BAA8B,gBAAGjB,IAAI,CACjD,CAAC;EAAEkB,OAAO;EAAEC,QAAQ;EAAEC;AAAqB,CAAC,KAAK;EAChD,IAAI,CAACF,OAAO,IAAIN,cAAc,KAAKR,IAAI,EAAE;IACxC,OAAOe,QAAQ;EAChB;EAEA,oBACCR,IAAA,CAACU,yBAAyB;IAACD,aAAa,EAAEA,aAAc;IAAAD,QAAA,EACtDA;EAAQ,CACiB,CAAC;AAE9B,CACD,CAAC;AAED,MAAME,yBAAyB,gBAAGrB,IAAI,CACrC,CAAC;EACAmB,QAAQ;EACRC;AAID,CAAC,KAAK;EACL,MAAME,eAAe,GAAGrB,WAAW,CAAC,MAAM;IACzC,IAAIW,cAAc,KAAKR,IAAI,EAAE;IAC7B,IAAIY,0BAA0B,EAAE;IAEhCA,0BAA0B,GAAG,IAAI;IACjCP,MAAM,CAACc,IAAI,CACV,uHACD,CAAC;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,2BAA2B,GAAGhB,aAAa,CAChDD,gCACD,CAAC;EACD,MAAMkB,oCAAoC,GAAGjB,aAAa,CACzDF,kCACD,CAAC;EAED,oBACCK,IAAA,CAACC,cAAc;IACdc,KAAK,EAAEC,MAAM,CAACC;IACd;IAAA;IACAC,WAAW,eACVlB,IAAA,CAACN,QAAQ,CAACD,IAAI;MACbsB,KAAK,EAAE,CAACC,MAAM,CAACG,qBAAqB,EAAEN,2BAA2B,CAAE;MACnEJ,aAAa,EAAC;IAAM,CACpB,CACD;IACDA,aAAa,EAAEA,aAAc;IAC7BW,QAAQ,EAAET,eAAgB;IAAAH,QAAA,eAE1BR,IAAA,CAACN,QAAQ,CAACD,IAAI;MACbsB,KAAK,EAAE,CACNC,MAAM,CAACK,mBAAmB,EAC1BP,oCAAoC,CACnC;MACFQ,WAAW,EAAE,KAAM;MAAAd,QAAA,EAElBA;IAAQ,CACK;EAAC,CACD,CAAC;AAEnB,CACD,CAAC;AAED,MAAMQ,MAAM,GAAGxB,UAAU,CAAC+B,MAAM,CAAC;EAChCN,oBAAoB,EAAE;IACrBO,IAAI,EAAE;EACP,CAAC;EACDH,mBAAmB,EAAE;IACpBG,IAAI,EAAE;EACP,CAAC;EACD;EACA;EACA;EACAL,qBAAqB,EAAE5B,WAAW,CAACkC,KAAK,GACrC;IACAC,eAAe,EAAE,OAAO;IACxBC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAH,eAAe,EAAE;EAClB;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["usesLayerRenderProps","component","prototype","isReactComponent"],"sourceRoot":"../../../../../../src","sources":["components/screen/container/layers/render-component.ts"],"mappings":";;AAEA,OAAO,SAASA,oBAAoBA,CACnCC,SAA6B,EACyB;EACtD,OACC,OAAOA,SAAS,KAAK,UAAU,IAAI,CAACA,SAAS,CAACC,SAAS,EAAEC,gBAAgB;AAE3E","ignoreList":[]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { interpolate } from "react-native-reanimated";
|
|
4
|
-
import { toNumber } from "../helpers";
|
|
5
|
-
import { DRAG_MASK_HEIGHT_COLLAPSE_END } from "../reveal/config";
|
|
6
|
-
import { interpolateClamped, resolveAspectRatioMaskHeight } from "../reveal/math";
|
|
7
|
-
import { ZOOM_SHARED_OPTIONS } from "./config";
|
|
8
|
-
export const ZOOM_NAVIGATION_MASK_BORDER_RADIUS = 64;
|
|
9
|
-
const ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE = 0.8;
|
|
10
|
-
export function resolveZoomNavigationMaskStyle({
|
|
11
|
-
scopedBounds,
|
|
12
|
-
link,
|
|
13
|
-
sourceBounds,
|
|
14
|
-
screenLayout,
|
|
15
|
-
transitionProgress,
|
|
16
|
-
drag,
|
|
17
|
-
contentTransform,
|
|
18
|
-
sourceBorderRadius,
|
|
19
|
-
expandedBorderRadius,
|
|
20
|
-
active,
|
|
21
|
-
anchor
|
|
22
|
-
}) {
|
|
23
|
-
"worklet";
|
|
24
|
-
|
|
25
|
-
const maskRaw = scopedBounds.values({
|
|
26
|
-
scaleMode: ZOOM_SHARED_OPTIONS.scaleMode,
|
|
27
|
-
anchor,
|
|
28
|
-
method: "size",
|
|
29
|
-
space: "absolute",
|
|
30
|
-
target: "fullscreen",
|
|
31
|
-
progress: transitionProgress
|
|
32
|
-
});
|
|
33
|
-
const maskWidth = maskRaw.width;
|
|
34
|
-
const maskHeight = maskRaw.height;
|
|
35
|
-
const maskAspectBounds = link.initialSource?.bounds ?? sourceBounds;
|
|
36
|
-
const minMaskHeight = resolveAspectRatioMaskHeight({
|
|
37
|
-
maskWidth,
|
|
38
|
-
maskHeight,
|
|
39
|
-
targetWidth: maskAspectBounds.width,
|
|
40
|
-
targetHeight: maskAspectBounds.height
|
|
41
|
-
});
|
|
42
|
-
const maskHeightCollapseDrag = drag.collapsesMask ? Math.max(0, drag.dismissNorm * ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE, drag.dismissProgress) : 0;
|
|
43
|
-
const renderedMaskHeight = interpolateClamped(maskHeightCollapseDrag, 0, DRAG_MASK_HEIGHT_COLLAPSE_END, maskHeight, minMaskHeight);
|
|
44
|
-
const maskCenterX = maskWidth / 2;
|
|
45
|
-
const maskCenterY = renderedMaskHeight / 2;
|
|
46
|
-
const contentCenterX = screenLayout.width / 2;
|
|
47
|
-
const contentCenterY = screenLayout.height / 2;
|
|
48
|
-
const maskOriginOffsetY = drag.isVerticalInverted ? maskHeight - renderedMaskHeight : 0;
|
|
49
|
-
const compensatedMaskTranslateX = (maskRaw.translateX - contentTransform.translateX + (1 - contentTransform.scale) * (maskCenterX - contentCenterX)) / contentTransform.scale;
|
|
50
|
-
const compensatedMaskTranslateY = (maskRaw.translateY - contentTransform.translateY + maskOriginOffsetY + (1 - contentTransform.scale) * (maskCenterY - contentCenterY)) / contentTransform.scale;
|
|
51
|
-
const initialSourceBorderRadius = toNumber(link.initialSource?.styles.borderRadius, sourceBorderRadius);
|
|
52
|
-
return {
|
|
53
|
-
style: {
|
|
54
|
-
width: maskWidth,
|
|
55
|
-
height: renderedMaskHeight,
|
|
56
|
-
borderRadius: interpolate(transitionProgress, [0, 1], [initialSourceBorderRadius, active.animating ? expandedBorderRadius : 0], "clamp"),
|
|
57
|
-
borderCurve: "continuous",
|
|
58
|
-
transform: [{
|
|
59
|
-
translateX: compensatedMaskTranslateX
|
|
60
|
-
}, {
|
|
61
|
-
translateY: compensatedMaskTranslateY
|
|
62
|
-
}, {
|
|
63
|
-
scale: 1 / contentTransform.scale
|
|
64
|
-
}]
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=mask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","toNumber","DRAG_MASK_HEIGHT_COLLAPSE_END","interpolateClamped","resolveAspectRatioMaskHeight","ZOOM_SHARED_OPTIONS","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","anchor","maskRaw","values","scaleMode","method","space","target","progress","maskWidth","width","maskHeight","height","maskAspectBounds","initialSource","bounds","minMaskHeight","targetWidth","targetHeight","maskHeightCollapseDrag","collapsesMask","Math","max","dismissNorm","dismissProgress","renderedMaskHeight","maskCenterX","maskCenterY","contentCenterX","contentCenterY","maskOriginOffsetY","isVerticalInverted","compensatedMaskTranslateX","translateX","scale","compensatedMaskTranslateY","translateY","initialSourceBorderRadius","styles","borderRadius","style","animating","borderCurve","transform"],"sourceRoot":"../../../../../../src","sources":["utils/bounds/navigation/zoom/mask.ts"],"mappings":";;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAWrD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,6BAA6B,QAAQ,kBAAkB;AAChE,SACCC,kBAAkB,EAClBC,4BAA4B,QACtB,gBAAgB;AACvB,SAASC,mBAAmB,QAAQ,UAAU;AAG9C,OAAO,MAAMC,kCAAkC,GAAG,EAAE;AACpD,MAAMC,sCAAsC,GAAG,GAAG;AAoBlD,OAAO,SAASC,8BAA8BA,CAAC;EAC9CC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,YAAY;EACZC,kBAAkB;EAClBC,IAAI;EACJC,gBAAgB;EAChBC,kBAAkB;EAClBC,oBAAoB;EACpBC,MAAM;EACNC;AAC6B,CAAC,EAAuB;EACrD,SAAS;;EAET,MAAMC,OAAO,GAAGX,YAAY,CAACY,MAAM,CAAC;IACnCC,SAAS,EAAEjB,mBAAmB,CAACiB,SAAS;IACxCH,MAAM;IACNI,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE,UAAU;IACjBC,MAAM,EAAE,YAAY;IACpBC,QAAQ,EAAEb;EACX,CAAC,CAAC;EACF,MAAMc,SAAS,GAAGP,OAAO,CAACQ,KAAK;EAC/B,MAAMC,UAAU,GAAGT,OAAO,CAACU,MAAM;EACjC,MAAMC,gBAAgB,GAAGrB,IAAI,CAACsB,aAAa,EAAEC,MAAM,IAAItB,YAAY;EACnE,MAAMuB,aAAa,GAAG9B,4BAA4B,CAAC;IAClDuB,SAAS;IACTE,UAAU;IACVM,WAAW,EAAEJ,gBAAgB,CAACH,KAAK;IACnCQ,YAAY,EAAEL,gBAAgB,CAACD;EAChC,CAAC,CAAC;EACF,MAAMO,sBAAsB,GAAGvB,IAAI,CAACwB,aAAa,GAC9CC,IAAI,CAACC,GAAG,CACR,CAAC,EACD1B,IAAI,CAAC2B,WAAW,GAAGlC,sCAAsC,EACzDO,IAAI,CAAC4B,eACN,CAAC,GACA,CAAC;EACJ,MAAMC,kBAAkB,GAAGxC,kBAAkB,CAC5CkC,sBAAsB,EACtB,CAAC,EACDnC,6BAA6B,EAC7B2B,UAAU,EACVK,aACD,CAAC;EACD,MAAMU,WAAW,GAAGjB,SAAS,GAAG,CAAC;EACjC,MAAMkB,WAAW,GAAGF,kBAAkB,GAAG,CAAC;EAC1C,MAAMG,cAAc,GAAGlC,YAAY,CAACgB,KAAK,GAAG,CAAC;EAC7C,MAAMmB,cAAc,GAAGnC,YAAY,CAACkB,MAAM,GAAG,CAAC;EAC9C,MAAMkB,iBAAiB,GAAGlC,IAAI,CAACmC,kBAAkB,GAC9CpB,UAAU,GAAGc,kBAAkB,GAC/B,CAAC;EACJ,MAAMO,yBAAyB,GAC9B,CAAC9B,OAAO,CAAC+B,UAAU,GAClBpC,gBAAgB,CAACoC,UAAU,GAC3B,CAAC,CAAC,GAAGpC,gBAAgB,CAACqC,KAAK,KAAKR,WAAW,GAAGE,cAAc,CAAC,IAC9D/B,gBAAgB,CAACqC,KAAK;EACvB,MAAMC,yBAAyB,GAC9B,CAACjC,OAAO,CAACkC,UAAU,GAClBvC,gBAAgB,CAACuC,UAAU,GAC3BN,iBAAiB,GACjB,CAAC,CAAC,GAAGjC,gBAAgB,CAACqC,KAAK,KAAKP,WAAW,GAAGE,cAAc,CAAC,IAC9DhC,gBAAgB,CAACqC,KAAK;EACvB,MAAMG,yBAAyB,GAAGtD,QAAQ,CACzCS,IAAI,CAACsB,aAAa,EAAEwB,MAAM,CAACC,YAAY,EACvCzC,kBACD,CAAC;EAED,OAAO;IACN0C,KAAK,EAAE;MACN9B,KAAK,EAAED,SAAS;MAChBG,MAAM,EAAEa,kBAAkB;MAC1Bc,YAAY,EAAEzD,WAAW,CACxBa,kBAAkB,EAClB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CACC0C,yBAAyB,EACzBrC,MAAM,CAACyC,SAAS,GAAG1C,oBAAoB,GAAG,CAAC,CAC3C,EACD,OACD,CAAC;MACD2C,WAAW,EAAE,YAAY;MACzBC,SAAS,EAAE,CACV;QAAEV,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAEI,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAED,KAAK,EAAE,CAAC,GAAGrC,gBAAgB,CAACqC;MAAM,CAAC;IAEvC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { View } from "react-native";
|
|
2
|
-
import type { AnimatedRef } from "react-native-reanimated";
|
|
3
|
-
import type { BoundTag } from "../../../stores/bounds/types";
|
|
4
|
-
import type { BoundaryConfigProps, BoundaryLocalMeasurementValue } from "../types";
|
|
5
|
-
interface UseBoundaryMeasurementParams {
|
|
6
|
-
boundTag: BoundTag;
|
|
7
|
-
/** Raw `enabled` prop — drives the measurer and the passive-source gate. */
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
/** `enabled && hasConfiguredInterpolator` — gates presence + lifecycle. */
|
|
10
|
-
runtimeEnabled: boolean;
|
|
11
|
-
currentScreenKey: string;
|
|
12
|
-
/** Surface to measure: a nested target's placeholder, else the root. */
|
|
13
|
-
measuredRef: AnimatedRef<View>;
|
|
14
|
-
/** Style belonging to the selected measurement surface. */
|
|
15
|
-
style?: unknown;
|
|
16
|
-
handoff: boolean;
|
|
17
|
-
escapeClipping: boolean;
|
|
18
|
-
localMeasurement: BoundaryLocalMeasurementValue;
|
|
19
|
-
config: BoundaryConfigProps;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Owns the full measurement lifecycle for a boundary: builds the measurer,
|
|
23
|
-
* registers presence, runs the initial source/destination + refresh reactions,
|
|
24
|
-
* and keeps the component itself away from the measurer.
|
|
25
|
-
*/
|
|
26
|
-
export declare const useBoundaryMeasurement: ({ boundTag, enabled, runtimeEnabled, currentScreenKey, measuredRef, style, handoff, escapeClipping, localMeasurement, config, }: UseBoundaryMeasurementParams) => void;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=use-boundary-measurement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EACX,mBAAmB,EACnB,6BAA6B,EAC7B,MAAM,UAAU,CAAC;AAOlB,UAAU,4BAA4B;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,iIAWpC,4BAA4B,SAiD9B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
type BoundaryContentPortalHostProps = {
|
|
3
|
-
boundaryId: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
screenKey: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const BoundaryContentPortalHost: import("react").MemoExoticComponent<({ boundaryId, children, enabled, screenKey, }: BoundaryContentPortalHostProps) => import("react").JSX.Element>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=host.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/components/host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAU7C,KAAK,8BAA8B,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,yBAAyB,sFAMlC,8BAA8B,iCAqBjC,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
2
|
-
import type { BoundaryHandoffTarget } from "../../../../../../types/animation.types";
|
|
3
|
-
type ReceiverRoute = {
|
|
4
|
-
key: string;
|
|
5
|
-
};
|
|
6
|
-
type ReceiverScene = {
|
|
7
|
-
activity: string;
|
|
8
|
-
route: ReceiverRoute;
|
|
9
|
-
};
|
|
10
|
-
type ResolveActiveHandoffReceiverParams = {
|
|
11
|
-
focusedIndex: number;
|
|
12
|
-
routes: ReceiverRoute[];
|
|
13
|
-
scenes: ReceiverScene[];
|
|
14
|
-
};
|
|
15
|
-
export declare const resolveActiveHandoffReceiver: ({ focusedIndex, routes, scenes, }: ResolveActiveHandoffReceiverParams) => string | null;
|
|
16
|
-
export declare const resolvePreviousHandoffReceiver: ({ focusedIndex, routes, scenes, }: ResolveActiveHandoffReceiverParams) => string | null;
|
|
17
|
-
export declare const resolveHandoffAttachmentCandidate: ({ activeReceiverClosing, activeReceiverScreenKey, attachedReceiverScreenKey, hasActiveCloseFinished, isScreenReady, pairChangedDuringClose, pairDestinationScreenKey, pairHasBoundaryLink, previousReceiverScreenKey, }: {
|
|
18
|
-
activeReceiverClosing: boolean;
|
|
19
|
-
activeReceiverScreenKey: string | null;
|
|
20
|
-
attachedReceiverScreenKey: string;
|
|
21
|
-
hasActiveCloseFinished: boolean;
|
|
22
|
-
isScreenReady: boolean;
|
|
23
|
-
pairChangedDuringClose?: boolean;
|
|
24
|
-
pairDestinationScreenKey: string | null;
|
|
25
|
-
pairHasBoundaryLink?: boolean;
|
|
26
|
-
previousReceiverScreenKey: string | null;
|
|
27
|
-
}) => string | null;
|
|
28
|
-
export declare const resolveRequestedHandoffReceiver: ({ automaticScreenKey, destinationReady, destinationScreenKey, handoffTarget, sourceScreenKey, }: {
|
|
29
|
-
automaticScreenKey: string | null;
|
|
30
|
-
destinationReady?: boolean;
|
|
31
|
-
destinationScreenKey: string | null;
|
|
32
|
-
handoffTarget: BoundaryHandoffTarget | undefined;
|
|
33
|
-
sourceScreenKey: string | null;
|
|
34
|
-
}) => string | null;
|
|
35
|
-
export declare const resolveRequestedHandoffPairKey: ({ destinationPairHasCompleteLink, destinationPairKey, handoffTarget, retainedSourcePairHasCompleteLink, retainedSourcePairKey, sourcePairHasCompleteLink, sourcePairKey, }: {
|
|
36
|
-
destinationPairHasCompleteLink: boolean;
|
|
37
|
-
destinationPairKey: ScreenPairKey | undefined;
|
|
38
|
-
handoffTarget: BoundaryHandoffTarget | undefined;
|
|
39
|
-
retainedSourcePairHasCompleteLink: boolean;
|
|
40
|
-
retainedSourcePairKey: ScreenPairKey | undefined;
|
|
41
|
-
sourcePairHasCompleteLink: boolean;
|
|
42
|
-
sourcePairKey: ScreenPairKey | undefined;
|
|
43
|
-
}) => string | undefined;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=active-handoff-receiver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"active-handoff-receiver.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,KAAK,aAAa,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,aAAa,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,KAAK,kCAAkC,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,mCAI1C,kCAAkC,KAAG,MAAM,GAAG,IAShD,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,mCAI5C,kCAAkC,KAAG,MAAM,GAAG,IAehD,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAAI,yNAU/C;IACF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,yBAAyB,EAAE,MAAM,CAAC;IAClC,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,kBAqDA,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,iGAM7C;IACF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,aAAa,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACjD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,kBAYA,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,4KAQ5C;IACF,8BAA8B,EAAE,OAAO,CAAC;IACxC,kBAAkB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACjD,iCAAiC,EAAE,OAAO,CAAC;IAC3C,qBAAqB,EAAE,aAAa,GAAG,SAAS,CAAC;IACjD,yBAAyB,EAAE,OAAO,CAAC;IACnC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;CACzC,uBAoBA,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function canActivateHandoffReceiver({ returningFromActiveClose, activatingPairDestination, animationProgress, receiverIsActiveDestination, destinationIsScreenReady, }: {
|
|
2
|
-
returningFromActiveClose: boolean;
|
|
3
|
-
activatingPairDestination: boolean;
|
|
4
|
-
animationProgress: number;
|
|
5
|
-
receiverIsActiveDestination: boolean;
|
|
6
|
-
destinationIsScreenReady: boolean | undefined;
|
|
7
|
-
}): boolean;
|
|
8
|
-
//# sourceMappingURL=handoff-visibility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handoff-visibility.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/handoff-visibility.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CAAC,EAC1C,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,GACxB,EAAE;IACF,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B,EAAE,OAAO,CAAC;IACrC,wBAAwB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9C,WAUA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-name.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,GAC/C,WAAW,MAAM,EACjB,YAAY,MAAM,WAIlB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface UseBoundaryContentPortalAttachmentParams {
|
|
2
|
-
boundaryId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const useBoundaryContentPortalAttachment: ({ boundaryId, }: UseBoundaryContentPortalAttachmentParams) => {
|
|
5
|
-
teleportProps: Partial<{
|
|
6
|
-
hostName: string | null;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=use-boundary-content-portal-attachment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-content-portal-attachment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"names":[],"mappings":"AA+BA,UAAU,wCAAwC;IACjD,UAAU,EAAE,MAAM,CAAC;CACnB;AAeD,eAAO,MAAM,kCAAkC,GAAI,iBAEhD,wCAAwC;;;;CAyM1C,CAAC"}
|
package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export { BoundaryContentPortalHost } from "./components/host";
|
|
3
|
-
type BoundaryContentPortalProps = {
|
|
4
|
-
boundaryId?: string;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const BoundaryContentPortal: import("react").MemoExoticComponent<({ boundaryId, children, enabled, }: BoundaryContentPortalProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/boundary/portal/components/boundary-content-portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,KAAK,0BAA0B,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAkBF,eAAO,MAAM,qBAAqB,2EAI/B,0BAA0B,iUAe3B,CAAC"}
|
package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from "react-native";
|
|
2
|
-
export type PublicHostProps = {
|
|
3
|
-
style?: StyleProp<ViewStyle>;
|
|
4
|
-
};
|
|
5
|
-
export declare const Host: import("react").MemoExoticComponent<(props: PublicHostProps) => import("react").JSX.Element>;
|
|
6
|
-
export declare const ScreenFallbackHost: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
|
|
7
|
-
//# sourceMappingURL=host.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/components/host.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,SAAS,EAId,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,eAAe,GAAG;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AA2EF,eAAO,MAAM,IAAI,8CAA6B,eAAe,iCAE3D,CAAC;AAEH,eAAO,MAAM,kBAAkB,wEAE7B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from "react-native";
|
|
2
|
-
import { type MeasuredDimensions, type SharedValue } from "react-native-reanimated";
|
|
3
|
-
import type { ActivePortalBoundaryHost } from "../stores/portal-boundary-host.store";
|
|
4
|
-
type PortalBoundaryHostProps = {
|
|
5
|
-
host: ActivePortalBoundaryHost;
|
|
6
|
-
hostBounds: SharedValue<MeasuredDimensions | null>;
|
|
7
|
-
hostMeasurementKey: string | null;
|
|
8
|
-
measuredHostKey: SharedValue<string | null>;
|
|
9
|
-
style?: StyleProp<ViewStyle>;
|
|
10
|
-
};
|
|
11
|
-
export declare const PortalBoundaryHost: import("react").MemoExoticComponent<({ host, hostBounds, hostMeasurementKey, measuredHostKey, style, }: PortalBoundaryHostProps) => import("react").JSX.Element | null>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=portal-boundary-host.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,MAAM,cAAc,CAAC;AACtB,OAAiB,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAcrF,KAAK,uBAAuB,GAAG;IAC9B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACnD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0GAM5B,uBAAuB,wCA0ExB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
2
|
-
import type { BoundaryLocalMeasurement } from "../../../../types";
|
|
3
|
-
export declare const resolveBoundaryLocalMeasurement: (measurement: BoundaryLocalMeasurement | null, pairKey: ScreenPairKey) => import("react-native-reanimated").MeasuredDimensions | null;
|
|
4
|
-
//# sourceMappingURL=local-measurement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-measurement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,eAAO,MAAM,+BAA+B,GAC3C,aAAa,wBAAwB,GAAG,IAAI,EAC5C,SAAS,aAAa,gEAItB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"offset-style.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9E,KAAK,8BAA8B,GAAG;IACrC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,8BAA8B,KAAG,UAcnC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type SharedValue } from "react-native-reanimated";
|
|
2
|
-
import type { ScreenPairKey } from "../../../../../../stores/bounds/types";
|
|
3
|
-
import type { NormalizedTransitionInterpolatedStyle } from "../../../../../../types/animation.types";
|
|
4
|
-
import type { BoundaryLocalMeasurementValue } from "../../../../types";
|
|
5
|
-
type UseActivePortalBoundaryHostParams = {
|
|
6
|
-
boundaryId: string;
|
|
7
|
-
currentScreenKey: string;
|
|
8
|
-
escapeHostKey?: string;
|
|
9
|
-
localMeasurement: BoundaryLocalMeasurementValue;
|
|
10
|
-
portalHostName: SharedValue<string | null>;
|
|
11
|
-
portalHostReady: SharedValue<boolean>;
|
|
12
|
-
slotsMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
|
|
13
|
-
};
|
|
14
|
-
export declare const resolveActivePortalPairKey: ({ pairKey, measurementPairKey, hasAnimatedSlot, }: {
|
|
15
|
-
pairKey: ScreenPairKey | null;
|
|
16
|
-
measurementPairKey: ScreenPairKey | null | undefined;
|
|
17
|
-
hasAnimatedSlot: boolean;
|
|
18
|
-
}) => ScreenPairKey | null;
|
|
19
|
-
export declare const useActivePortalBoundaryHost: ({ boundaryId, currentScreenKey, escapeHostKey, localMeasurement, portalHostName, portalHostReady, slotsMap, }: UseActivePortalBoundaryHostParams) => void;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=use-active-portal-boundary-host.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-active-portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,yBAAyB,CAAC;AAGhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAOvE,KAAK,iCAAiC,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,cAAc,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3C,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,mDAIxC;IACF,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,kBAAkB,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,eAAe,EAAE,OAAO,CAAC;CACzB,KAAG,aAAa,GAAG,IAOnB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,+GAQzC,iCAAiC,SAqEnC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface UseBoundaryPortalAttachmentParams {
|
|
2
|
-
boundaryId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const useBoundaryPortalAttachment: ({ boundaryId, }: UseBoundaryPortalAttachmentParams) => {
|
|
5
|
-
teleportProps: Partial<{
|
|
6
|
-
hostName: string | null;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=use-boundary-portal-attachment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-portal-attachment.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts"],"names":[],"mappings":"AAQA,UAAU,iCAAiC;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,2BAA2B,GAAI,iBAEzC,iCAAiC;;;;CAiDnC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { View } from "react-native";
|
|
2
|
-
import { type MeasuredDimensions } from "react-native-reanimated";
|
|
3
|
-
type UseHostMeasurementParams = {
|
|
4
|
-
measurementKey: string | null;
|
|
5
|
-
};
|
|
6
|
-
export declare const useHostMeasurement: ({ measurementKey, }: UseHostMeasurementParams) => {
|
|
7
|
-
hostBounds: import("react-native-reanimated").SharedValue<MeasuredDimensions | null>;
|
|
8
|
-
hostRef: import("react-native-reanimated").AnimatedRef<View>;
|
|
9
|
-
measuredKey: import("react-native-reanimated").SharedValue<string | null>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=use-host-measurement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-host-measurement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAEN,KAAK,kBAAkB,EAOvB,MAAM,yBAAyB,CAAC;AAIjC,KAAK,wBAAwB,GAAG;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,qBAEhC,wBAAwB;;;;CAqE1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-placeholder-styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,oBAAoB;;;;;;;;6BAoBtB,eAAe;CAmBzB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { View } from "react-native";
|
|
3
|
-
import { type AnimatedRef } from "react-native-reanimated";
|
|
4
|
-
type BoundaryPortalProps = {
|
|
5
|
-
boundaryId: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
placeholderRef?: AnimatedRef<View>;
|
|
9
|
-
};
|
|
10
|
-
export declare const BoundaryPortal: import("react").MemoExoticComponent<({ boundaryId, children, enabled, placeholderRef, }: BoundaryPortalProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/boundary/portal/components/boundary-portal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA2BrE,KAAK,mBAAmB,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,2FAKxB,mBAAmB,iUAapB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-registry.store.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AA6DF,eAAO,MAAM,YAAY,GAAI,cAAc,gBAAgB,SA0B1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,SAoBhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,MAAM,WAEjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,GAAG,IAAI,uBAMzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAI7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portal-boundary-host.store.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;CAC7D,CAAC;AAoDF,eAAO,MAAM,uBAAuB,GAAI,MAAM,wBAAwB,SAQrE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC3C,gBAAgB,MAAM,GAAG,IAAI,GAAG,SAAS,SAOzC,CAAC;AAUF,eAAO,MAAM,4BAA4B,GAAI,SAAS,MAAM,+BAM3D,CAAC"}
|
package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ViewProps } from "react-native";
|
|
2
|
-
type Props = {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
pointerEvents: ViewProps["pointerEvents"];
|
|
6
|
-
};
|
|
7
|
-
export declare const MaybeMaskedNavigationContainer: import("react").MemoExoticComponent<({ enabled, children, pointerEvents }: Props) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=maybe-masked-navigation-container.d.ts.map
|
package/lib/typescript/components/screen/container/layers/maybe-masked-navigation-container.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-masked-navigation-container.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/container/layers/maybe-masked-navigation-container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAS7E,KAAK,KAAK,GAAG;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC1C,CAAC;AAYF,eAAO,MAAM,8BAA8B,6EACH,KAAK,iWAW5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-component.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/container/layers/render-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,wBAAgB,oBAAoB,CACnC,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,GAC3B,SAAS,IAAI,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAIrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/bounds/navigation/zoom/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAGrD,UAAU,4BAA4B;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,EACN,MAAM,GACN,EAAE,4BAA4B,GAAG,mBAAmB,CA8EpD"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import type { View } from "react-native";
|
|
3
|
-
import type { AnimatedRef } from "react-native-reanimated";
|
|
4
|
-
import type { BoundTag } from "../../../stores/bounds/types";
|
|
5
|
-
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
6
|
-
import type {
|
|
7
|
-
BoundaryConfigProps,
|
|
8
|
-
BoundaryLocalMeasurementValue,
|
|
9
|
-
} from "../types";
|
|
10
|
-
import { useBoundaryPresence } from "./lifecycles/use-boundary-presence";
|
|
11
|
-
import { useInitialDestinationMeasurement } from "./lifecycles/use-initial-destination-measurement";
|
|
12
|
-
import { useInitialSourceMeasurement } from "./lifecycles/use-initial-source-measurement";
|
|
13
|
-
import { useRefreshBoundary } from "./lifecycles/use-refresh-boundary";
|
|
14
|
-
import { useMeasurer } from "./use-measurer";
|
|
15
|
-
|
|
16
|
-
interface UseBoundaryMeasurementParams {
|
|
17
|
-
boundTag: BoundTag;
|
|
18
|
-
/** Raw `enabled` prop — drives the measurer and the passive-source gate. */
|
|
19
|
-
enabled: boolean;
|
|
20
|
-
/** `enabled && hasConfiguredInterpolator` — gates presence + lifecycle. */
|
|
21
|
-
runtimeEnabled: boolean;
|
|
22
|
-
currentScreenKey: string;
|
|
23
|
-
/** Surface to measure: a nested target's placeholder, else the root. */
|
|
24
|
-
measuredRef: AnimatedRef<View>;
|
|
25
|
-
/** Style belonging to the selected measurement surface. */
|
|
26
|
-
style?: unknown;
|
|
27
|
-
handoff: boolean;
|
|
28
|
-
escapeClipping: boolean;
|
|
29
|
-
localMeasurement: BoundaryLocalMeasurementValue;
|
|
30
|
-
config: BoundaryConfigProps;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Owns the full measurement lifecycle for a boundary: builds the measurer,
|
|
35
|
-
* registers presence, runs the initial source/destination + refresh reactions,
|
|
36
|
-
* and keeps the component itself away from the measurer.
|
|
37
|
-
*/
|
|
38
|
-
export const useBoundaryMeasurement = ({
|
|
39
|
-
boundTag,
|
|
40
|
-
enabled,
|
|
41
|
-
runtimeEnabled,
|
|
42
|
-
currentScreenKey,
|
|
43
|
-
measuredRef,
|
|
44
|
-
style,
|
|
45
|
-
handoff,
|
|
46
|
-
escapeClipping,
|
|
47
|
-
localMeasurement,
|
|
48
|
-
config,
|
|
49
|
-
}: UseBoundaryMeasurementParams) => {
|
|
50
|
-
const { anchor, scaleMode, target, method } = config;
|
|
51
|
-
const boundaryConfig = useMemo<BoundaryConfigProps>(
|
|
52
|
-
() => ({ anchor, scaleMode, target, method }),
|
|
53
|
-
[anchor, scaleMode, target, method],
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
57
|
-
|
|
58
|
-
const measureBoundary = useMeasurer({
|
|
59
|
-
enabled,
|
|
60
|
-
boundTag,
|
|
61
|
-
currentScreenKey,
|
|
62
|
-
preparedStyles,
|
|
63
|
-
measuredAnimatedRef: measuredRef,
|
|
64
|
-
handoff,
|
|
65
|
-
escapeClipping,
|
|
66
|
-
localMeasurement,
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
// Presence and source capture must not depend on this screen owning an
|
|
70
|
-
// interpolator: a nested source can participate in a transition owned by a
|
|
71
|
-
// different navigator.
|
|
72
|
-
useBoundaryPresence({
|
|
73
|
-
enabled,
|
|
74
|
-
boundTag,
|
|
75
|
-
currentScreenKey,
|
|
76
|
-
boundaryConfig,
|
|
77
|
-
handoff,
|
|
78
|
-
escapeClipping,
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
useInitialSourceMeasurement({
|
|
82
|
-
enabled,
|
|
83
|
-
measureBoundary,
|
|
84
|
-
boundTag,
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
useInitialDestinationMeasurement({
|
|
88
|
-
boundTag,
|
|
89
|
-
enabled: runtimeEnabled,
|
|
90
|
-
measureBoundary,
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
useRefreshBoundary({
|
|
94
|
-
enabled: runtimeEnabled,
|
|
95
|
-
boundTag,
|
|
96
|
-
measureBoundary,
|
|
97
|
-
});
|
|
98
|
-
};
|