react-native-screen-transitions 3.9.0-beta.3 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/animation/snap-to.js +2 -0
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +19 -20
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +16 -2
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/index.js +4 -3
- package/lib/commonjs/shared/components/boundary/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +47 -187
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js +1 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +42 -35
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +46 -130
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +45 -9
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +2 -29
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/handoff-target.js +33 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +1 -10
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +18 -36
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/resolve-boundary-target.js +29 -0
- package/lib/commonjs/shared/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/commonjs/shared/components/masked-view.js +9 -1
- package/lib/commonjs/shared/components/masked-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +9 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/shared/configs/index.js +2 -1
- package/lib/commonjs/shared/configs/index.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +23 -1
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +37 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js +42 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +4 -4
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +20 -2
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +2 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +23 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate.js +14 -2
- package/lib/commonjs/shared/utils/animation/animate.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/spring/spring.js +22 -2
- package/lib/commonjs/shared/utils/animation/spring/spring.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/spring/springUtils.js +96 -0
- package/lib/commonjs/shared/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/state.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +20 -6
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +51 -20
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +4 -3
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +2 -31
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +2 -13
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +3 -2
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +36 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +2 -0
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-target.js +19 -20
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +17 -3
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/index.js +3 -2
- package/lib/module/shared/components/boundary/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +49 -189
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js +2 -13
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +45 -38
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +50 -134
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +44 -9
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -27
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/handoff-target.js +28 -0
- package/lib/module/shared/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +0 -8
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +19 -37
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/resolve-boundary-target.js +24 -0
- package/lib/module/shared/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/module/shared/components/masked-view.js +10 -2
- package/lib/module/shared/components/masked-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +10 -2
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/shared/configs/index.js +3 -2
- package/lib/module/shared/configs/index.js.map +1 -1
- package/lib/module/shared/configs/specs.js +22 -0
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +35 -2
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js +35 -0
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +4 -4
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +17 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +2 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +21 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/animation/animate.js +14 -2
- package/lib/module/shared/utils/animation/animate.js.map +1 -1
- package/lib/module/shared/utils/animation/spring/spring.js +23 -3
- package/lib/module/shared/utils/animation/spring/spring.js.map +1 -1
- package/lib/module/shared/utils/animation/spring/springUtils.js +95 -0
- package/lib/module/shared/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/module/shared/utils/animation/state.js +2 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +19 -6
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +54 -23
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +4 -3
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +2 -30
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +3 -14
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +3 -2
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +35 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +3 -4
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/index.d.ts +6 -9
- package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +1 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts +1 -10
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +1 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +2 -2
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -10
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/handoff-target.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/utils/handoff-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +0 -4
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +8 -12
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/resolve-boundary-target.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/utils/resolve-boundary-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/masked-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
- package/lib/typescript/shared/configs/index.d.ts +16 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -1
- package/lib/typescript/shared/configs/specs.d.ts +19 -0
- package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +16 -0
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +1 -9
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +7 -0
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +5 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +6 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate.d.ts +2 -2
- package/lib/typescript/shared/utils/animation/animate.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/spring/spring.d.ts +2 -2
- package/lib/typescript/shared/utils/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/spring/springUtils.d.ts +3 -0
- package/lib/typescript/shared/utils/animation/spring/springUtils.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/state.d.ts +6 -0
- package/lib/typescript/shared/utils/animation/state.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +12 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +2 -11
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +7 -2
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +3 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/shared/animation/snap-to.ts +5 -0
- package/src/shared/components/boundary/components/boundary-target.tsx +37 -23
- package/src/shared/components/boundary/create-boundary-component.tsx +29 -3
- package/src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +11 -0
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +3 -9
- package/src/shared/components/boundary/index.tsx +4 -8
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +73 -275
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +2 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +66 -64
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +2 -9
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +73 -186
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +72 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts +0 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +2 -39
- package/src/shared/components/boundary/portal/utils/handoff-target.ts +48 -0
- package/src/shared/components/boundary/portal/utils/resolve-portal.ts +26 -18
- package/src/shared/components/boundary/portal/utils/teleport-control.ts +0 -12
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +28 -80
- package/src/shared/components/boundary/utils/refresh-signals.ts +8 -0
- package/src/shared/components/boundary/utils/resolve-boundary-target.tsx +39 -0
- package/src/shared/components/masked-view.tsx +20 -4
- package/src/shared/components/screen-container/layers/backdrop.tsx +3 -1
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
- package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +2 -0
- package/src/shared/configs/index.ts +2 -1
- package/src/shared/configs/specs.ts +23 -0
- package/src/shared/providers/helpers/measured-bounds-writes.ts +1 -0
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +2 -10
- package/src/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-release.ts +2 -4
- package/src/shared/providers/screen/gestures/types.ts +0 -14
- package/src/shared/providers/screen/styles/helpers/transition-visual-state.ts +44 -0
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +17 -7
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +30 -15
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -13
- package/src/shared/stores/bounds/internals/links.ts +13 -2
- package/src/shared/stores/scroll.store.ts +23 -0
- package/src/shared/stores/system.store.ts +8 -0
- package/src/shared/utils/animation/animate-to-progress.ts +59 -28
- package/src/shared/utils/animation/animate.ts +18 -2
- package/src/shared/utils/animation/spring/spring.ts +36 -1
- package/src/shared/utils/animation/spring/springUtils.ts +130 -0
- package/src/shared/utils/animation/state.ts +8 -0
- package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -5
- package/src/shared/utils/bounds/navigation/zoom/build.ts +85 -23
- package/src/shared/utils/bounds/navigation/zoom/config.ts +4 -3
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +3 -42
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +9 -18
- package/src/shared/utils/bounds/navigation/zoom/mask.ts +4 -1
- package/src/shared/utils/bounds/navigation/zoom/targets.ts +59 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +0 -32
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -51
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +0 -217
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +0 -29
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +0 -25
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -64
- package/lib/commonjs/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -21
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -29
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -38
- package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js +0 -32
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-register-target.js +0 -27
- package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -46
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +0 -210
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +0 -24
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js +0 -20
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -59
- package/lib/module/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -15
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -24
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -33
- package/lib/module/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js +0 -26
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +0 -13
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +0 -34
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts +0 -15
- package/lib/typescript/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts +0 -4
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts +0 -5
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts +0 -16
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts.map +0 -1
- package/src/shared/components/boundary/hooks/use-register-target.ts +0 -43
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +0 -79
- package/src/shared/components/boundary/portal/utils/ownership.ts +0 -315
- package/src/shared/components/boundary/portal/utils/shallow-equal.ts +0 -25
- package/src/shared/components/boundary/portal/utils/visible-host.ts +0 -24
- package/src/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.ts +0 -88
- package/src/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts +0 -19
- package/src/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts +0 -47
- package/src/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.ts +0 -50
- package/src/shared/providers/screen/styles/helpers/opening-phase.ts +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","
|
|
1
|
+
{"version":3,"names":["_constants","require","_config","ZOOM_DRAG_SCALE_EXPONENT","ZOOM_DRAG_SCALE_FLOOR","ZOOM_COUNTER_DRAG_SCALE_INTENSITY","ZOOM_PRIMARY_DRAG_TRANSLATION_SCALE","ZOOM_PRIMARY_DRAG_RESISTANCE","ZOOM_HORIZONTAL_DRAG_DISTANCE_SCALE","ZOOM_CROSS_AXIS_DRAG_TRANSLATION_SCALE","ZOOM_CROSS_AXIS_DRAG_RESISTANCE","ZOOM_PINCH_SCALE_RESPONSE","ZOOM_PINCH_VELOCITY_DEPTH_MULTIPLIER","resolveZoomDismissContentScale","transitionRemaining","releaseScale","targetScale","velocity","velocityDepth","closeProgress","depth","scaleDelta","controlScale1","linearControlScale2","controlScale2","Math","max","EPSILON","remaining","resolveZoomPrimaryDragTranslation","translation","dimension","direction","translationDistance","abs","baseDistance","normalizedTranslation","effectiveResistance","resistedTranslation","exp","min","resolveZoomHorizontalDragTranslation","resolveZoomCrossAxisDragTranslation","resolveZoomDragScale","normalized","scaleInput","progress","rawMinimumScale","rawScale","resolveZoomPinchScale","scale","resolveZoomDismissalNorm","isInverted","resolveZoomDragState","gesture","activeTransitionProgress","screenLayout","collapsedContentScale","dragOptions","gestureHandoff","handoff","isDismissing","dismissing","activeGesture","active","isHorizontalInverted","isHorizontal","isVerticalInverted","isVertical","isPinchIn","translationResponse","horizontal","vertical","scaleResponse","handoffPrimaryNorm","normScale","normX","normY","livePrimaryNorm","dismissNorm","nativeDragX","x","width","nativeDragY","y","height","dragX","dragY","scaleNorm","nativeGestureScale","gestureScale","rotation","dismissContentScale","ZOOM_DISMISS_VELOCITY_DEPTH","collapsesMask","dismissProgress"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/drag.ts"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,OAAA,GAAAD,OAAA;AAEA,MAAME,wBAAwB,GAAG,CAAC;AAClC,MAAMC,qBAAqB,GAAG,GAAG;AACjC,MAAMC,iCAAiC,GAAG,GAAG;AAC7C,MAAMC,mCAAmC,GAAG,GAAG;AAC/C,MAAMC,4BAA4B,GAAG,CAAC;AACtC,MAAMC,mCAAmC,GAAG,GAAG;AAC/C,MAAMC,sCAAsC,GAAG,IAAI;AACnD,MAAMC,+BAA+B,GAAG,IAAI;AAC5C,MAAMC,yBAAyB,GAAG,CAAC;AACnC,MAAMC,oCAAoC,GAAG,CAAC;AAiBvC,SAASC,8BAA8BA,CAAC;EAC9CC,mBAAmB;EACnBC,YAAY;EACZC,WAAW;EACXC,QAAQ;EACRC;AAOD,CAAC,EAAE;EACF,SAAS;;EAET,MAAMC,aAAa,GAAG,CAAC,GAAGL,mBAAmB;EAC7C,MAAMM,KAAK,GAAGF,aAAa,GAAGD,QAAQ;EAEtC,MAAMI,UAAU,GAAGL,WAAW,GAAGD,YAAY;EAC7C,MAAMO,aAAa,GAAGP,YAAY,GAAGM,UAAU,GAAG,CAAC;EACnD,MAAME,mBAAmB,GAAGR,YAAY,GAAI,CAAC,GAAGM,UAAU,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ACC,kBAAO,EAAE,CAAC,GAAG,CAAC8D,kBAAkB,GAAG,CAAC,IAAIhB,aAAa,CAAC;EAClE,MAAMkB,QAAQ,GAAGtB,SAAS,GACvBR,YAAY,GACXF,cAAc,CAACgC,QAAQ,GAAGpC,wBAAwB,GAClDD,OAAO,CAACqC,QAAQ,GACjB,CAAC;EAEJ,IAAIC,mBAAmB,GAAGF,YAAY;EAEtC,IAAI7B,YAAY,EAAE;IACjB+B,mBAAmB,GAAG/E,8BAA8B,CAAC;MACpDC,mBAAmB,EAAEyC,wBAAwB;MAC7CxC,YAAY,EAAE2E,YAAY;MAC1B1E,WAAW,EAAEyC,qBAAqB;MAClCxC,QAAQ,EAAE0C,cAAc,CAAC1C,QAAQ;MACjCC,aAAa,EACZ2E,mCAA2B,IAC1BxB,SAAS,GAAGzD,oCAAoC,GAAG,CAAC;IACvD,CAAC,CAAC;EACH;EAEA,OAAO;IACNkF,aAAa,EAAE1B,UAAU;IACzBwB,mBAAmB;IACnBb,WAAW;IACXgB,eAAe,EAAElC,YAAY,GAAG,CAAC,GAAGN,wBAAwB,GAAG,CAAC;IAChE+B,KAAK;IACLC,KAAK;IACLG,YAAY;IACZ7B,YAAY;IACZM,kBAAkB;IAClBwB;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -52,10 +52,11 @@ function resolveZoomPinchFocalOffset({
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
function resolveZoomTrackedSourceTransform({
|
|
55
|
-
progress,
|
|
56
55
|
sourceBounds,
|
|
57
56
|
destinationBounds,
|
|
58
57
|
screenLayout,
|
|
58
|
+
contentBaseTransform,
|
|
59
|
+
collapsedContentScale,
|
|
59
60
|
dragX,
|
|
60
61
|
dragY,
|
|
61
62
|
gestureScale,
|
|
@@ -64,18 +65,6 @@ function resolveZoomTrackedSourceTransform({
|
|
|
64
65
|
}) {
|
|
65
66
|
"worklet";
|
|
66
67
|
|
|
67
|
-
const contentBaseTransform = (0, _math.resolveRevealContentBaseTransform)({
|
|
68
|
-
progress,
|
|
69
|
-
sourceBounds,
|
|
70
|
-
destinationBounds,
|
|
71
|
-
screenLayout
|
|
72
|
-
});
|
|
73
|
-
const collapsedContentScale = (0, _math.resolveRevealContentBaseTransform)({
|
|
74
|
-
progress: 0,
|
|
75
|
-
sourceBounds,
|
|
76
|
-
destinationBounds,
|
|
77
|
-
screenLayout
|
|
78
|
-
}).scale;
|
|
79
68
|
const contentScale = contentBaseTransform.scale * gestureScale;
|
|
80
69
|
const safeCollapsedContentScale = Math.max(Math.abs(collapsedContentScale), _constants.EPSILON);
|
|
81
70
|
const safeParentScale = Math.max(Math.abs(parentScale), _constants.EPSILON);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_math","resolveZoomBackdropOpacity","transitionProgress","dismissalDrag","fadeEnd","maxOpacity","clampedProgress","Math","min","max","clampedDrag","safeFadeEnd","EPSILON","transitionOpacity","clampedMaxOpacity","resolveZoomPinchFocalOffset","gestureScale","pinchOriginX","pinchOriginY","progress","rotation","screenLayout","abs","x","y","offsetX","width","offsetY","height","cosine","cos","sine","sin","transformedOffsetX","transformedOffsetY","resolveZoomTrackedSourceTransform","sourceBounds","destinationBounds","
|
|
1
|
+
{"version":3,"names":["_constants","require","_math","resolveZoomBackdropOpacity","transitionProgress","dismissalDrag","fadeEnd","maxOpacity","clampedProgress","Math","min","max","clampedDrag","safeFadeEnd","EPSILON","transitionOpacity","clampedMaxOpacity","resolveZoomPinchFocalOffset","gestureScale","pinchOriginX","pinchOriginY","progress","rotation","screenLayout","abs","x","y","offsetX","width","offsetY","height","cosine","cos","sine","sin","transformedOffsetX","transformedOffsetY","resolveZoomTrackedSourceTransform","sourceBounds","destinationBounds","contentBaseTransform","collapsedContentScale","dragX","dragY","parentScale","contentScale","scale","safeCollapsedContentScale","safeParentScale","uniformSourceScale","trackedTransform","resolveTrackedSourceElementTransform","contentTranslateX","translateX","contentTranslateY","translateY","screenWidth","screenHeight","scaleX","scaleY","screenCenterX","screenCenterY","destinationCenterX","pageX","destinationCenterY","pageY","scaledOffsetX","scaledOffsetY","rotatedOffsetX","rotatedOffsetY"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/helpers.ts"],"mappings":";;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEO,SAASE,0BAA0BA,CAAC;EAC1CC,kBAAkB;EAClBC,aAAa;EACbC,OAAO;EACPC;AAMD,CAAC,EAAE;EACF,SAAS;;EAET,MAAMC,eAAe,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEP,kBAAkB,CAAC,CAAC;EACpE,MAAMQ,WAAW,GAAGH,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEN,aAAa,CAAC,CAAC;EAC3D,MAAMQ,WAAW,GAAGJ,IAAI,CAACE,GAAG,CAACG,kBAAO,EAAER,OAAO,CAAC;EAC9C,MAAMS,iBAAiB,GAAGN,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEF,eAAe,GAAGK,WAAW,CAAC;EACpE,MAAMG,iBAAiB,GAAGP,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEJ,UAAU,CAAC,CAAC;EAE9D,OAAOS,iBAAiB,GAAGD,iBAAiB,IAAI,CAAC,GAAGH,WAAW,CAAC;AACjE;AAEO,SAASK,2BAA2BA,CAAC;EAC3CC,YAAY;EACZC,YAAY;EACZC,YAAY;EACZC,QAAQ;EACRC,QAAQ;EACRC;AAQD,CAAC,EAAE;EACF,SAAS;;EAET,IAAId,IAAI,CAACe,GAAG,CAACN,YAAY,GAAG,CAAC,CAAC,IAAIJ,kBAAO,IAAIL,IAAI,CAACe,GAAG,CAACF,QAAQ,CAAC,IAAIR,kBAAO,EAAE;IAC3E,OAAO;MAAEW,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AAGnC,MAAM,GAAGoC,aAAa,GAAGlC,IAAI;EACpE,MAAMoC,cAAc,GAAGH,aAAa,GAAGjC,IAAI,GAAGkC,aAAa,GAAGpC,MAAM;EAEpE,OAAO;IACN,GAAGmB,gBAAgB;IACnBG,UAAU,EACTH,gBAAgB,CAACG,UAAU,GAC3B,CAACe,cAAc,GAAGF,aAAa,IAAIlB,eAAe;IACnDO,UAAU,EACTL,gBAAgB,CAACK,UAAU,GAC3B,CAACc,cAAc,GAAGF,aAAa,IAAInB;EACrC,CAAC;AACF","ignoreList":[]}
|
|
@@ -22,13 +22,14 @@ function resolveZoomNavigationMaskStyle({
|
|
|
22
22
|
contentTransform,
|
|
23
23
|
sourceBorderRadius,
|
|
24
24
|
expandedBorderRadius,
|
|
25
|
-
active
|
|
25
|
+
active,
|
|
26
|
+
anchor
|
|
26
27
|
}) {
|
|
27
28
|
"worklet";
|
|
28
29
|
|
|
29
30
|
const maskRaw = scopedBounds.values({
|
|
30
31
|
scaleMode: _config2.ZOOM_SHARED_OPTIONS.scaleMode,
|
|
31
|
-
anchor
|
|
32
|
+
anchor,
|
|
32
33
|
method: "size",
|
|
33
34
|
space: "absolute",
|
|
34
35
|
target: "fullscreen",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_helpers","_config","_math","_config2","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","exports","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","maskRaw","values","scaleMode","ZOOM_SHARED_OPTIONS","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_helpers","_config","_math","_config2","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","exports","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","anchor","maskRaw","values","scaleMode","ZOOM_SHARED_OPTIONS","method","space","target","progress","maskWidth","width","maskHeight","height","maskAspectBounds","initialSource","bounds","minMaskHeight","resolveAspectRatioMaskHeight","targetWidth","targetHeight","maskHeightCollapseDrag","collapsesMask","Math","max","dismissNorm","dismissProgress","renderedMaskHeight","interpolateClamped","DRAG_MASK_HEIGHT_COLLAPSE_END","maskCenterX","maskCenterY","contentCenterX","contentCenterY","maskOriginOffsetY","isVerticalInverted","compensatedMaskTranslateX","translateX","scale","compensatedMaskTranslateY","translateY","initialSourceBorderRadius","toNumber","styles","borderRadius","style","interpolate","animating","borderCurve","transform"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/mask.ts"],"mappings":";;;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAWA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AAGO,MAAMK,kCAAkC,GAAAC,OAAA,CAAAD,kCAAA,GAAG,EAAE;AACpD,MAAME,sCAAsC,GAAG,GAAG;AAoB3C,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,EAAEC,4BAAmB,CAACD,SAAS;IACxCH,MAAM;IACNK,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE,UAAU;IACjBC,MAAM,EAAE,YAAY;IACpBC,QAAQ,EAAEd;EACX,CAAC,CAAC;EACF,MAAMe,SAAS,GAAGR,OAAO,CAACS,KAAK;EA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,CAACyC,KAAK,KAAKP,WAAW,GAAGE,cAAc,CAAC,IAC9DpC,gBAAgB,CAACyC,KAAK;EACvB,MAAMG,yBAAyB,GAAG,IAAAC,iBAAQ,EACzClD,IAAI,CAACuB,aAAa,EAAE4B,MAAM,CAACC,YAAY,EACvC9C,kBACD,CAAC;EAED,OAAO;IACN+C,KAAK,EAAE;MACNlC,KAAK,EAAED,SAAS;MAChBG,MAAM,EAAEc,kBAAkB;MAC1BiB,YAAY,EAAE,IAAAE,kCAAW,EACxBnD,kBAAkB,EAClB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CACC8C,yBAAyB,EACzBzC,MAAM,CAAC+C,SAAS,GAAGhD,oBAAoB,GAAG,CAAC,CAC3C,EACD,OACD,CAAC;MACDiD,WAAW,EAAE,YAAY;MACzBC,SAAS,EAAE,CACV;QAAEZ,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAEI,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAED,KAAK,EAAE,CAAC,GAAGzC,gBAAgB,CAACyC;MAAM,CAAC;IAEvC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.getZoomContentAnchor = getZoomContentAnchor;
|
|
6
7
|
exports.getZoomContentTarget = getZoomContentTarget;
|
|
7
8
|
exports.resolveZoomTrackingContentTarget = resolveZoomTrackingContentTarget;
|
|
8
9
|
function getZoomContentTarget({
|
|
@@ -17,9 +18,27 @@ function getZoomContentTarget({
|
|
|
17
18
|
}
|
|
18
19
|
const sourceBounds = link.source?.bounds;
|
|
19
20
|
const screenWidth = screenLayout.width;
|
|
20
|
-
|
|
21
|
+
const screenHeight = screenLayout.height;
|
|
22
|
+
if (!sourceBounds || sourceBounds.width <= 0 || sourceBounds.height <= 0 || screenWidth <= 0 || screenHeight <= 0) {
|
|
21
23
|
return "fullscreen";
|
|
22
24
|
}
|
|
25
|
+
const sourceAspectRatio = sourceBounds.width / sourceBounds.height;
|
|
26
|
+
const screenAspectRatio = screenWidth / screenHeight;
|
|
27
|
+
|
|
28
|
+
// Zoom keeps one edge of the virtual destination attached to the source.
|
|
29
|
+
// A wide source fills the destination width and follows its top edge. A
|
|
30
|
+
// narrow source fills the destination height instead, so it follows the
|
|
31
|
+
// destination's leading edge rather than taking a long vertical path.
|
|
32
|
+
if (sourceAspectRatio < screenAspectRatio) {
|
|
33
|
+
return {
|
|
34
|
+
x: 0,
|
|
35
|
+
y: 0,
|
|
36
|
+
pageX: 0,
|
|
37
|
+
pageY: 0,
|
|
38
|
+
width: sourceBounds.width / sourceBounds.height * screenHeight,
|
|
39
|
+
height: screenHeight
|
|
40
|
+
};
|
|
41
|
+
}
|
|
23
42
|
const height = sourceBounds.height / sourceBounds.width * screenWidth;
|
|
24
43
|
return {
|
|
25
44
|
x: 0,
|
|
@@ -30,6 +49,22 @@ function getZoomContentTarget({
|
|
|
30
49
|
height
|
|
31
50
|
};
|
|
32
51
|
}
|
|
52
|
+
function getZoomContentAnchor({
|
|
53
|
+
explicitTarget,
|
|
54
|
+
screenLayout,
|
|
55
|
+
link
|
|
56
|
+
}) {
|
|
57
|
+
"worklet";
|
|
58
|
+
|
|
59
|
+
if (explicitTarget !== undefined) {
|
|
60
|
+
return explicitTarget === "bound" ? "center" : "top";
|
|
61
|
+
}
|
|
62
|
+
const sourceBounds = link.source?.bounds;
|
|
63
|
+
if (!sourceBounds || sourceBounds.width <= 0 || sourceBounds.height <= 0 || screenLayout.width <= 0 || screenLayout.height <= 0) {
|
|
64
|
+
return "top";
|
|
65
|
+
}
|
|
66
|
+
return sourceBounds.width / sourceBounds.height < screenLayout.width / screenLayout.height ? "leading" : "top";
|
|
67
|
+
}
|
|
33
68
|
function resolveZoomTrackingContentTarget({
|
|
34
69
|
contentTarget,
|
|
35
70
|
link,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getZoomContentTarget","explicitTarget","screenLayout","link","undefined","sourceBounds","source","bounds","screenWidth","width","height","x","y","pageX","pageY","resolveZoomTrackingContentTarget","contentTarget","destination"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/targets.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["getZoomContentTarget","explicitTarget","screenLayout","link","undefined","sourceBounds","source","bounds","screenWidth","width","screenHeight","height","sourceAspectRatio","screenAspectRatio","x","y","pageX","pageY","getZoomContentAnchor","resolveZoomTrackingContentTarget","contentTarget","destination"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/targets.ts"],"mappings":";;;;;;;;AAaO,SAASA,oBAAoBA,CAAC;EACpCC,cAAc;EACdC,YAAY;EACZC;AAKD,CAAC,EAAqB;EACrB,SAAS;;EAET,IAAIF,cAAc,KAAKG,SAAS,EAAE;IACjC,OAAOH,cAAc;EACtB;EAEA,MAAMI,YAAY,GAAGF,IAAI,CAACG,MAAM,EAAEC,MAAM;EACxC,MAAMC,WAAW,GAAGN,YAAY,CAACO,KAAK;EACtC,MAAMC,YAAY,GAAGR,YAAY,CAACS,MAAM;EAExC,IACC,CAACN,YAAY,IACbA,YAAY,CAACI,KAAK,IAAI,CAAC,IACvBJ,YAAY,CAACM,MAAM,IAAI,CAAC,IACxBH,WAAW,IAAI,CAAC,IAChBE,YAAY,IAAI,CAAC,EAChB;IACD,OAAO,YAAY;EACpB;EAEA,MAAME,iBAAiB,GAAGP,YAAY,CAACI,KAAK,GAAGJ,YAAY,CAACM,MAAM;EAClE,MAAME,iBAAiB,GAAGL,WAAW,GAAGE,YAAY;;EAEpD;EACA;EACA;EACA;EACA,IAAIE,iBAAiB,GAAGC,iBAAiB,EAAE;IAC1C,OAAO;MACNC,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJC,KAAK,EAAE,CAAC;MACRC,KAAK,EAAE,CAAC;MACRR,KAAK,EAAGJ,YAAY,CAACI,KAAK,GAAGJ,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C,KAAK,EAAE,CAAC;IACRR,KAAK,EAAEP,YAAY,CAACO,KAAK;IACzBE,MAAM,EAAET,YAAY,CAACS;EACtB,CAAC;AACF","ignoreList":[]}
|
|
@@ -29,6 +29,7 @@ export function snapDescriptorToIndex(descriptor, index) {
|
|
|
29
29
|
const targetProgress = sorted[index];
|
|
30
30
|
const animations = AnimationStore.getBag(descriptor.route.key);
|
|
31
31
|
const targetProgressValue = SystemStore.getValue(descriptor.route.key, "targetProgress");
|
|
32
|
+
const animationProgressValue = SystemStore.getValue(descriptor.route.key, "animationProgress");
|
|
32
33
|
runOnUI(() => {
|
|
33
34
|
"worklet";
|
|
34
35
|
|
|
@@ -37,6 +38,7 @@ export function snapDescriptorToIndex(descriptor, index) {
|
|
|
37
38
|
target: targetProgress,
|
|
38
39
|
animations,
|
|
39
40
|
targetProgress: targetProgressValue,
|
|
41
|
+
animationProgress: animationProgressValue,
|
|
40
42
|
spec: resolveSnapTransitionSpec(descriptor.options.transitionSpec, targetProgress < currentProgress ? "collapse" : "expand")
|
|
41
43
|
});
|
|
42
44
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["runOnUI","AnimationStore","SystemStore","animateToProgress","resolveSnapTransitionSpec","logger","resolveSnapTargetEntry","getSortedSnapPoints","descriptor","snapPoints","options","length","autoVal","getValue","route","key","get","resolved","map","p","filter","sort","a","b","snapDescriptorToIndex","index","sorted","warn","targetProgress","animations","getBag","targetProgressValue","currentProgress","transitionProgress","target","spec","transitionSpec","snapTo","screenWithSnapPoints"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,cAAc,QAAQ,2BAA2B;AAE1D,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,yBAAyB,QAAQ,iDAAiD;AAC3F,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,sBA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KAAK,CAACC,GAAG,CAAC;EAC9D,MAAMgB,mBAAmB,GAAG7B,WAAW,CAACW,QAAQ,CAC/CL,UAAU,CAACM,KAAK,CAACC,GAAG,EACpB,gBACD,CAAC;EAEDf,OAAO,CAAC,MAAM;IACb,SAAS;;IACT,
|
|
1
|
+
{"version":3,"names":["runOnUI","AnimationStore","SystemStore","animateToProgress","resolveSnapTransitionSpec","logger","resolveSnapTargetEntry","getSortedSnapPoints","descriptor","snapPoints","options","length","autoVal","getValue","route","key","get","resolved","map","p","filter","sort","a","b","snapDescriptorToIndex","index","sorted","warn","targetProgress","animations","getBag","targetProgressValue","animationProgressValue","currentProgress","transitionProgress","target","animationProgress","spec","transitionSpec","snapTo","screenWithSnapPoints"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,cAAc,QAAQ,2BAA2B;AAE1D,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,yBAAyB,QAAQ,iDAAiD;AAC3F,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,sBAAsB,QAAQ,uBAAuB;AAE9D,MAAMC,mBAAmB,GACxBC,UAAsC,IACjB;EACrB,MAAMC,UAAU,GAAGD,UAAU,CAACE,OAAO,EAAED,UAAU;EACjD,IAAI,CAACA,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;;EAEvD;EACA,MAAMC,OAAO,GAAGV,WAAW,CAACW,QAAQ,CACnCL,UAAU,CAACM,KAAK,CAACC,GAAG,EACpB,uBACD,CAAC,CAACC,GAAG,CAAC,CAAC;EAEP,MAAMC,QAAQ,GAAGR,UAAU,CACzBS,GAAG,CAAEC,CAAC,IAAMA,CAAC,KAAK,MAAM,GAAGP,OAAO,GAAGO,CAAE,CAAC,CACxCC,MAAM,CAAED,CAAC,IAAkB,OAAOA,CAAC,KAAK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,CAC9BI,UAAU,CAACE,OAAO,CAAC4B,cAAc,EACjCV,cAAc,GAAGK,eAAe,GAAG,UAAU,GAAG,QACjD;IACD,CAAC,CAAC;EACH,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAO,IAAI;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASM,MAAMA,CAACd,KAAa,EAAQ;EAC3C,MAAMe,oBAAoB,GAAGlC,sBAAsB,CAAC,CAAC;EAErD,IAAI,CAACkC,oBAAoB,EAAE;IAC1BnC,MAAM,CAACsB,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAH,qBAAqB,CAACgB,oBAAoB,CAAChC,UAAU,EAAEiB,KAAK,CAAC;AAC9D","ignoreList":[]}
|
|
@@ -1,48 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { memo,
|
|
4
|
-
import Animated
|
|
3
|
+
import { memo, useLayoutEffect } from "react";
|
|
4
|
+
import Animated from "react-native-reanimated";
|
|
5
5
|
import { useComposedSlotStyles, useSlotLayoutStyles } from "../../../providers/screen/styles";
|
|
6
|
-
import {
|
|
7
|
-
import { useRegisterTarget } from "../hooks/use-register-target";
|
|
6
|
+
import { logger } from "../../../utils/logger";
|
|
8
7
|
import { BoundaryContentPortal, BoundaryContentPortalHost } from "../portal/components/boundary-content-portal";
|
|
9
8
|
import { BoundaryPortal } from "../portal/components/boundary-portal";
|
|
10
|
-
import { useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
9
|
+
import { TARGET_OUTSIDE_ROOT_WARNING, useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
export const
|
|
11
|
+
export const BOUNDARY_TARGET_ACTIVE_PROP = "__boundaryTargetActive";
|
|
12
|
+
const BoundaryTargetInner = props => {
|
|
13
13
|
const {
|
|
14
|
+
[BOUNDARY_TARGET_ACTIVE_PROP]: active,
|
|
14
15
|
children,
|
|
15
16
|
pointerEvents,
|
|
16
17
|
style,
|
|
17
18
|
...rest
|
|
18
19
|
} = props;
|
|
19
|
-
const targetAnimatedRef = useAnimatedRef();
|
|
20
|
-
const targetEscapePlaceholderRef = useAnimatedRef();
|
|
21
20
|
const rootContext = useBoundaryRootContext();
|
|
22
21
|
const boundaryId = rootContext?.boundTag.tag;
|
|
23
|
-
const isActiveTarget =
|
|
22
|
+
const isActiveTarget = active === true && rootContext !== null;
|
|
24
23
|
const portalRuntime = rootContext?.portalRuntime;
|
|
25
24
|
const handoffEnabled = isActiveTarget && rootContext?.handoffEnabled === true;
|
|
26
|
-
const shouldEscapeTargetToScreenHost = portalRuntime?.escapeClipping === true
|
|
25
|
+
const shouldEscapeTargetToScreenHost = isActiveTarget && portalRuntime?.escapeClipping === true;
|
|
27
26
|
const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.escapeClipping !== true;
|
|
28
27
|
const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.escapeClipping === true;
|
|
29
28
|
const associatedTargetStyles = useComposedSlotStyles(rootContext?.boundTag.tag, style);
|
|
30
29
|
const portalLayoutStyle = useSlotLayoutStyles(rootContext?.boundTag.tag);
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
30
|
+
const measurementRef = isActiveTarget ? rootContext.measurementRef : undefined;
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
if (__DEV__ && rootContext === null) {
|
|
33
|
+
logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
|
|
34
|
+
}
|
|
35
|
+
}, [rootContext]);
|
|
38
36
|
return /*#__PURE__*/_jsx(BoundaryPortal, {
|
|
39
37
|
boundaryId: boundaryId ?? "",
|
|
40
38
|
enabled: shouldEscapeTargetToScreenHost,
|
|
41
|
-
placeholderRef:
|
|
39
|
+
placeholderRef: measurementRef,
|
|
42
40
|
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
43
41
|
...rest,
|
|
44
42
|
pointerEvents: pointerEvents,
|
|
45
|
-
ref:
|
|
43
|
+
ref: shouldEscapeTargetToScreenHost ? undefined : measurementRef,
|
|
46
44
|
style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
|
|
47
45
|
collapsable: false,
|
|
48
46
|
children: /*#__PURE__*/_jsx(BoundaryContentPortalHost, {
|
|
@@ -57,5 +55,6 @@ export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
|
57
55
|
})
|
|
58
56
|
})
|
|
59
57
|
});
|
|
60
|
-
}
|
|
58
|
+
};
|
|
59
|
+
export const BoundaryTarget = /*#__PURE__*/memo(BoundaryTargetInner);
|
|
61
60
|
//# sourceMappingURL=boundary-target.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","
|
|
1
|
+
{"version":3,"names":["memo","useLayoutEffect","Animated","useComposedSlotStyles","useSlotLayoutStyles","logger","BoundaryContentPortal","BoundaryContentPortalHost","BoundaryPortal","TARGET_OUTSIDE_ROOT_WARNING","useBoundaryRootContext","jsx","_jsx","BOUNDARY_TARGET_ACTIVE_PROP","BoundaryTargetInner","props","active","children","pointerEvents","style","rest","rootContext","boundaryId","boundTag","tag","isActiveTarget","portalRuntime","handoffEnabled","shouldEscapeTargetToScreenHost","escapeClipping","shouldApplyAssociatedStyleInline","shouldApplyPortalLayoutStyle","associatedTargetStyles","portalLayoutStyle","measurementRef","undefined","__DEV__","warn","enabled","placeholderRef","View","ref","collapsable","screenKey","currentScreenKey","BoundaryTarget"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-target.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,eAAe,QAAQ,OAAO;AAC7C,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAC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eAAe,CAAC,MAAM;IACrB,IAAImC,OAAO,IAAIf,WAAW,KAAK,IAAI,EAAE;MACpChB,MAAM,CAACgC,IAAI,CAAC5B,2BAA2B,CAAC;IACzC;EACD,CAAC,EAAE,CAACY,WAAW,CAAC,CAAC;EAEjB,oBACCT,IAAA,CAACJ,cAAc;IACdc,UAAU,EAAEA,UAAU,IAAI,EAAG;IAC7BgB,OAAO,EAAEV,8BAA+B;IACxCW,cAAc,EAAEL,cAAe;IAAAjB,QAAA,eAE/BL,IAAA,CAACV,QAAQ,CAACsC,IAAI;MAAA,GACTpB,IAAI;MACRF,aAAa,EAAEA,aAAc;MAC7BuB,GAAG,EAAEb,8BAA8B,GAAGO,SAAS,GAAGD,cAAe;MACjEf,KAAK,EAAE,CACNA,KAAK,EACLW,gCAAgC,GAAGE,sBAAsB,GAAGG,SAAS,EACrEJ,4BAA4B,GAAGE,iBAAiB,GAAGE,SAAS,CAC3D;MACFO,WAAW,EAAE,KAAM;MAAAzB,QAAA,eAEnBL,IAAA,CAACL,yBAAyB;QACzBe,UAAU,EAAEA,UAAU,IAAI,EAAG;QAC7BgB,OAAO,EAAEX,cAAe;QACxBgB,SAAS,EAAEtB,WAAW,EAAEuB,gBAAgB,IAAI,EAAG;QAAA3B,QAAA,eAE/CL,IAAA,CAACN,qBAAqB;UACrBgB,UAAU,EAAEA,UAAW;UACvBgB,OAAO,EAAEX,cAAe;UAAAV,QAAA,EAEvBA;QAAQ,CACa;MAAC,CACE;IAAC,CACd;EAAC,CACD,CAAC;AAEnB,CAAC;AAED,OAAO,MAAM4B,cAAc,gBAAG7C,IAAI,CACjCc,mBACD,CAAoD","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef, memo } from "react";
|
|
3
|
+
import { cloneElement, forwardRef, memo, useMemo } from "react";
|
|
4
4
|
import Animated from "react-native-reanimated";
|
|
5
|
+
import { BOUNDARY_TARGET_ACTIVE_PROP, BoundaryTarget } from "./components/boundary-target";
|
|
5
6
|
import { BoundaryContentPortalHost } from "./portal/components/boundary-content-portal";
|
|
6
7
|
import { BoundaryPortal } from "./portal/components/boundary-portal";
|
|
7
8
|
import { BoundaryRootProvider } from "./providers/boundary-root.provider";
|
|
9
|
+
import { resolveBoundaryTarget } from "./utils/resolve-boundary-target";
|
|
8
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
11
|
export function createBoundaryComponent(Wrapped, options = {}) {
|
|
10
12
|
const {
|
|
@@ -26,6 +28,15 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
26
28
|
children,
|
|
27
29
|
...rest
|
|
28
30
|
} = props;
|
|
31
|
+
const targetResolution = useMemo(() => {
|
|
32
|
+
return resolveBoundaryTarget(children, {
|
|
33
|
+
isTarget: element => element.type === BoundaryTarget,
|
|
34
|
+
mapTarget: (element, selected) => /*#__PURE__*/cloneElement(element, {
|
|
35
|
+
[BOUNDARY_TARGET_ACTIVE_PROP]: selected
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}, [children]);
|
|
39
|
+
const targetStyle = targetResolution.target?.props?.style;
|
|
29
40
|
return /*#__PURE__*/_jsx(BoundaryRootProvider, {
|
|
30
41
|
config: {
|
|
31
42
|
anchor,
|
|
@@ -38,12 +49,15 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
38
49
|
forwardedRef: forwardedRef,
|
|
39
50
|
group: group,
|
|
40
51
|
handoff: handoff,
|
|
52
|
+
hasTarget: targetResolution.target !== null,
|
|
41
53
|
id: id,
|
|
42
54
|
style: style,
|
|
55
|
+
targetCount: targetResolution.targetCount,
|
|
56
|
+
targetStyle: targetStyle,
|
|
43
57
|
children: root => /*#__PURE__*/_jsx(BoundaryPortal, {
|
|
44
58
|
boundaryId: root.boundTag.tag,
|
|
45
59
|
enabled: root.shouldRenderBoundaryRootThroughPortal,
|
|
46
|
-
placeholderRef: root.
|
|
60
|
+
placeholderRef: root.measurementRef,
|
|
47
61
|
children: /*#__PURE__*/_jsx(AnimatedComponent, {
|
|
48
62
|
...rest,
|
|
49
63
|
ref: root.ref,
|
|
@@ -53,7 +67,7 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
53
67
|
boundaryId: root.boundTag.tag,
|
|
54
68
|
enabled: root.shouldRenderHandoffHost,
|
|
55
69
|
screenKey: root.currentScreenKey,
|
|
56
|
-
children: children
|
|
70
|
+
children: targetResolution.children
|
|
57
71
|
})
|
|
58
72
|
})
|
|
59
73
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","memo","Animated","BoundaryContentPortalHost","BoundaryPortal","BoundaryRootProvider","jsx","_jsx","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","config","root","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","
|
|
1
|
+
{"version":3,"names":["cloneElement","forwardRef","memo","useMemo","Animated","BOUNDARY_TARGET_ACTIVE_PROP","BoundaryTarget","BoundaryContentPortalHost","BoundaryPortal","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","targetResolution","isTarget","element","type","mapTarget","selected","targetStyle","config","hasTarget","targetCount","root","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","shouldRenderHandoffHost","screenKey","currentScreenKey"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;AAAA,SAECA,YAAY,EACZC,UAAU,EACVC,IAAI,EACJC,OAAO,QACD,OAAO;AACd,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SACCC,2BAA2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;MAAO,CAAE;MAC9CN,OAAO,EAAEA,OAAQ;MACjBS,cAAc,EAAEA,cAAe;MAC/BV,YAAY,EAAEA,YAAa;MAC3BE,KAAK,EAAEA,KAAM;MACbO,OAAO,EAAEA,OAAQ;MACjBY,SAAS,EAAER,gBAAgB,CAACP,MAAM,KAAK,IAAK;MAC5CH,EAAE,EAAEA,EAAG;MACPK,KAAK,EAAEA,KAAM;MACbc,WAAW,EAAET,gBAAgB,CAACS,WAAY;MAC1CH,WAAW,EAAEA,WAAY;MAAAR,QAAA,EAEvBY,IAAI,iBACLhC,IAAA,CAACJ,cAAc;QACdqC,UAAU,EAAED,IAAI,CAACE,QAAQ,CAACC,GAAI;QAC9BzB,OAAO,EAAEsB,IAAI,CAACI,qCAAsC;QACpDC,cAAc,EAAEL,IAAI,CAACM,cAAe;QAAAlB,QAAA,eAEpCpB,IAAA,CAACK,iBAAiB;UAAA,GACbgB,IAAI;UACRkB,GAAG,EAAEP,IAAI,CAACO,GAAI;UACdtB,KAAK,EAAE,CAACA,KAAK,EAAEe,IAAI,CAACQ,aAAa,CAAE;UACnCC,WAAW,EAAE,KAAM;UAAArB,QAAA,eAEnBpB,IAAA,CAACL,yBAAyB;YACzBsC,UAAU,EAAED,IAAI,CAACE,QAAQ,CAACC,GAAI;YAC9BzB,OAAO,EAAEsB,IAAI,CAACU,uBAAwB;YACtCC,SAAS,EAAEX,IAAI,CAACY,gBAAiB;YAAAxB,QAAA,EAEhCE,gBAAgB,CAACF;UAAQ,CACA;QAAC,CACV;MAAC,CACL;IAChB,CACoB,CAAC;EAEzB,CAAC,CAAC;;EAEF;EACA;EACA,oBAAO9B,IAAI,CAACiB,KAAK,CAAC;AAMnB","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { useAnimatedReaction } from "react-native-reanimated";
|
|
|
4
4
|
import { useDescriptorsStore } from "../../../../providers/screen/descriptors";
|
|
5
5
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
6
6
|
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
7
|
+
import { GestureStore } from "../../../../stores/gesture.store";
|
|
7
8
|
import { getRefreshBoundarySignal } from "../../utils/refresh-signals";
|
|
8
9
|
export const useRefreshBoundary = ({
|
|
9
10
|
enabled,
|
|
@@ -27,6 +28,9 @@ export const useRefreshBoundary = ({
|
|
|
27
28
|
const refreshEntering = AnimationStore.getValue(refreshScreenKey, "entering");
|
|
28
29
|
const refreshAnimating = AnimationStore.getValue(refreshScreenKey, "progressAnimating");
|
|
29
30
|
const refreshProgress = AnimationStore.getValue(refreshScreenKey, "transitionProgress");
|
|
31
|
+
const refreshDragging = GestureStore.getValue(refreshScreenKey, "dragging");
|
|
32
|
+
const refreshDismissing = GestureStore.getValue(refreshScreenKey, "dismissing");
|
|
33
|
+
const refreshSettling = GestureStore.getValue(refreshScreenKey, "settling");
|
|
30
34
|
useAnimatedReaction(() => {
|
|
31
35
|
"worklet";
|
|
32
36
|
|
|
@@ -44,6 +48,7 @@ export const useRefreshBoundary = ({
|
|
|
44
48
|
entering: !!refreshEntering.get(),
|
|
45
49
|
animating: !!refreshAnimating.get(),
|
|
46
50
|
progress: refreshProgress.get(),
|
|
51
|
+
gestureInProgress: !!refreshDragging.get() || !!refreshDismissing.get() || !!refreshSettling.get(),
|
|
47
52
|
linkState: pairs.get()
|
|
48
53
|
});
|
|
49
54
|
}, (refreshSignal, prevRefreshSignal) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedReaction","useDescriptorsStore","AnimationStore","pairs","getRefreshBoundarySignal","useRefreshBoundary","enabled","boundTag","measureBoundary","linkKey","group","currentScreenKey","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","refreshScreenKey","refreshWillAnimate","getValue","refreshClosing","refreshEntering","refreshAnimating","refreshProgress","linkId","shouldRefresh","get","closing","entering","animating","progress","linkState","refreshSignal","prevRefreshSignal","signal","type","pairKey"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,mBAAmB,QAAQ,0CAA0C;AAC9E,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,KAAK,QAAQ,2CAA2C;
|
|
1
|
+
{"version":3,"names":["useAnimatedReaction","useDescriptorsStore","AnimationStore","pairs","GestureStore","getRefreshBoundarySignal","useRefreshBoundary","enabled","boundTag","measureBoundary","linkKey","group","currentScreenKey","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","refreshScreenKey","refreshWillAnimate","getValue","refreshClosing","refreshEntering","refreshAnimating","refreshProgress","refreshDragging","refreshDismissing","refreshSettling","linkId","shouldRefresh","get","closing","entering","animating","progress","gestureInProgress","linkState","refreshSignal","prevRefreshSignal","signal","type","pairKey"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,mBAAmB,QAAQ,0CAA0C;AAC9E,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,KAAK,QAAQ,2CAA2C;AAEjE,SAASC,YAAY,QAAQ,kCAAkC;AAE/D,SAASC,wBAAwB,QAAQ,6BAA6B;AAQtE,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,QAAQ;EACRC;AACyB,CAAC,KAAK;EAC/B,MAAM;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGH,QAAQ;EACnC,MAAMI,gBAAgB,GAAGX,mBAAmB,CAC1CY,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACF,gBACtB,CAAC;EACD,MAAMG,aAAa,GAAGd,mBAAmB,CAAEY,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACC,aAAa,CAAC;EAC7E,MAAMC,aAAa,GAAGf,mBAAmB,CAAEY,CAAC,IAAKA,CAAC,CAACC,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,CAACS,GAAG,CAAC,CAAC;MAC/BE,QAAQ,EAAE,CAAC,CAACV,eAAe,CAACQ,GAAG,CAAC,CAAC;MACjCG,SAAS,EAAE,CAAC,CAACV,gBAAgB,CAACO,GAAG,CAAC,CAAC;MACnCI,QAAQ,EAAEV,eAAe,CAACM,GAAG,CAAC,CAAC;MAC/BK,iBAAiB,EAChB,CAAC,CAACV,eAAe,CAACK,GAAG,CAAC,CAAC,IACvB,CAAC,CAACJ,iBAAiB,CAACI,GAAG,CAAC,CAAC,IACzB,CAAC,CAACH,eAAe,CAACG,GAAG,CAAC,CAAC;MACxBM,SAAS,EAAElC,KAAK,CAAC4B,GAAG,CAAC;IACtB,CAAC,CAAC;EACH,CAAC,EACD,CAACO,aAAa,EAAEC,iBAAiB,KAAK;IACrC,SAAS;;IAET,IACC,CAACD,aAAa,IACdA,aAAa,CAACE,MAAM,KAAKD,iBAAiB,EAAEC,MAAM,EACjD;MACD;IACD;IAEA/B,eAAe,CAAC;MACfgC,IAAI,EAAEH,aAAa,CAACG,IAAI;MACxBC,OAAO,EAAEJ,aAAa,CAACI;IACxB,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -19,7 +19,6 @@ export const useBoundaryMeasurement = ({
|
|
|
19
19
|
currentScreenKey,
|
|
20
20
|
measuredRef,
|
|
21
21
|
style,
|
|
22
|
-
targetPreparedStyles,
|
|
23
22
|
handoff,
|
|
24
23
|
escapeClipping,
|
|
25
24
|
config
|
|
@@ -36,8 +35,7 @@ export const useBoundaryMeasurement = ({
|
|
|
36
35
|
target,
|
|
37
36
|
method
|
|
38
37
|
}), [anchor, scaleMode, target, method]);
|
|
39
|
-
const
|
|
40
|
-
const preparedStyles = targetPreparedStyles ?? rootPreparedStyles;
|
|
38
|
+
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
41
39
|
const measureBoundary = useMeasurer({
|
|
42
40
|
enabled,
|
|
43
41
|
boundTag,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","prepareStyleForBounds","useBoundaryPresence","useInitialDestinationMeasurement","useInitialSourceMeasurement","useRefreshBoundary","useMeasurer","useBoundaryMeasurement","boundTag","enabled","runtimeEnabled","currentScreenKey","measuredRef","style","
|
|
1
|
+
{"version":3,"names":["useMemo","prepareStyleForBounds","useBoundaryPresence","useInitialDestinationMeasurement","useInitialSourceMeasurement","useRefreshBoundary","useMeasurer","useBoundaryMeasurement","boundTag","enabled","runtimeEnabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","config","anchor","scaleMode","target","method","boundaryConfig","preparedStyles","measureBoundary","measuredAnimatedRef"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAI/B,SAASC,qBAAqB,QAAQ,6CAA6C;AAEnF,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,gCAAgC,QAAQ,kDAAkD;AACnG,SAASC,2BAA2B,QAAQ,6CAA6C;AACzF,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,gBAAgB;AAkB5C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EACtCC,QAAQ;EACRC,OAAO;EACPC,cAAc;EACdC,gBAAgB;EAChBC,WAAW;EACXC,KAAK;EACLC,OAAO;EACPC,cAAc;EACdC;AAC6B,CAAC,KAAK;EACnC,MAAM;IAAEC,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,MAAM;EACpD,MAAMK,cAAc,GAAGrB,OAAO,CAC7B,OAAO;IAAEiB,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,CAAC,EAC7C,CAACH,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,CACnC,CAAC;EAED,MAAME,cAAc,GAAGtB,OAAO,CAAC,MAAMC,qBAAqB,CAACY,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMU,eAAe,GAAGjB,WAAW,CAAC;IACnCG,OAAO;IACPD,QAAQ;IACRG,gBAAgB;IAChBW,cAAc;IACdE,mBAAmB,EAAEZ,WAAW;IAChCE,OAAO;IACPC;EACD,CAAC,CAAC;;EAEF;EACA;EACAb,mBAAmB,CAAC;IACnBO,OAAO,EAAEC,cAAc;IACvBF,QAAQ;IACRG,gBAAgB;IAChBU,cAAc;IACdP,OAAO;IACPC;EACD,CAAC,CAAC;EAEFX,2BAA2B,CAAC;IAC3BK,OAAO,EAAEC,cAAc;IACvBa,eAAe;IACff;EACD,CAAC,CAAC;EAEFL,gCAAgC,CAAC;IAChCK,QAAQ;IACRC,OAAO,EAAEC,cAAc;IACvBK,cAAc;IACdQ;EACD,CAAC,CAAC;EAEFlB,kBAAkB,CAAC;IAClBI,OAAO,EAAEC,cAAc;IACvBF,QAAQ;IACRe;EACD,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { View } from "react-native";
|
|
5
|
+
import { Pressable } from "react-native-gesture-handler";
|
|
5
6
|
import { BoundaryTarget } from "./components/boundary-target";
|
|
6
7
|
import { createBoundaryComponent } from "./create-boundary-component";
|
|
7
8
|
import { Host } from "./portal";
|
|
@@ -38,7 +39,7 @@ Host.displayName = "Transition.Boundary.Host";
|
|
|
38
39
|
*
|
|
39
40
|
* Use:
|
|
40
41
|
* - `Boundary` for passive and pressable shared elements.
|
|
41
|
-
* - `Boundary.Target` to measure
|
|
42
|
+
* - `Boundary.Target` as a direct child to measure it instead of the root.
|
|
42
43
|
* - `Boundary.Host` to make clipping-escape host placement explicit.
|
|
43
44
|
*/
|
|
44
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","
|
|
1
|
+
{"version":3,"names":["forwardRef","View","Pressable","BoundaryTarget","createBoundaryComponent","Host","jsx","_jsx","BoundaryPrimitive","props","ref","Component","displayName","BoundaryRoot","BoundaryView","BoundaryTrigger","Boundary","Object","assign","Target","Trigger"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,SAAS,QAA6B,8BAA8B;AAC7E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,uBAAuB,QAAQ,6BAA6B;AACrE,SAASC,IAAI,QAAQ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGhC,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/D,MAAMM,YAAY,GAAGV,uBAAuB,CAACH,IAAI,CAAC;AAClD,MAAMc,eAAe,GAAGX,uBAAuB,CAACF,SAAS,CAAC;AAC1DW,YAAY,CAACD,WAAW,GAAG,qBAAqB;AAChDE,YAAY,CAACF,WAAW,GAAG,0BAA0B;AACrDG,eAAe,CAACH,WAAW,GAAG,6BAA6B;AAC3DT,cAAc,CAACS,WAAW,GAAG,4BAA4B;AACzDP,IAAI,CAACO,WAAW,GAAG,0BAA0B;;AAI7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA,OAAO,MAAMI,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAACL,YAAY,EAAE;EACnDM,MAAM,EAAEhB,cAAc;EACtBE,IAAI;EACJJ,IAAI,EAAEa,YAAY;EAClBM,OAAO,EAAEL;AACV,CAAC,CAAsB","ignoreList":[]}
|