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,217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.resolveBoundaryPortalOwnership = exports.isHandoffHostClosingComplete = exports.canSwitchHandoffHostImmediately = void 0;
|
|
7
|
-
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
8
|
-
const isHandoffHostClosingComplete = ({
|
|
9
|
-
closing,
|
|
10
|
-
progressAnimating,
|
|
11
|
-
progressSettled,
|
|
12
|
-
willAnimate
|
|
13
|
-
}) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
// A close request marks `closing` before its animation starts. Springs can
|
|
17
|
-
// also enter their settle-distance threshold before their final frame.
|
|
18
|
-
return !!closing && willAnimate === 0 && progressSettled === 1 && progressAnimating === 0;
|
|
19
|
-
};
|
|
20
|
-
exports.isHandoffHostClosingComplete = isHandoffHostClosingComplete;
|
|
21
|
-
const hasSeenScreenKey = (screenKeys, screenKey) => {
|
|
22
|
-
"worklet";
|
|
23
|
-
|
|
24
|
-
for (let index = 0; index < screenKeys.length; index++) {
|
|
25
|
-
if (screenKeys[index] === screenKey) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
};
|
|
31
|
-
const isReturningToPreviousSourceHost = ({
|
|
32
|
-
hostScreenKey,
|
|
33
|
-
ownerPairKey,
|
|
34
|
-
previousOwnerPairKey
|
|
35
|
-
}) => {
|
|
36
|
-
"worklet";
|
|
37
|
-
|
|
38
|
-
const previousSourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(previousOwnerPairKey);
|
|
39
|
-
const previousDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(previousOwnerPairKey);
|
|
40
|
-
const ownerDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(ownerPairKey);
|
|
41
|
-
return previousDestinationScreenKey !== "" && ownerDestinationScreenKey !== "" && previousDestinationScreenKey !== previousSourceScreenKey && ownerDestinationScreenKey === previousSourceScreenKey && hostScreenKey === previousSourceScreenKey;
|
|
42
|
-
};
|
|
43
|
-
const canSwitchHandoffHostImmediately = ({
|
|
44
|
-
hostScreenKey,
|
|
45
|
-
ownerPairKey,
|
|
46
|
-
previousOwnerPairKey
|
|
47
|
-
}) => {
|
|
48
|
-
"worklet";
|
|
49
|
-
|
|
50
|
-
if (!hostScreenKey || !ownerPairKey) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
if (hostScreenKey === (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
if (!previousOwnerPairKey) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return isReturningToPreviousSourceHost({
|
|
60
|
-
hostScreenKey,
|
|
61
|
-
ownerPairKey,
|
|
62
|
-
previousOwnerPairKey
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
exports.canSwitchHandoffHostImmediately = canSwitchHandoffHostImmediately;
|
|
66
|
-
const isActiveHandoffLink = ({
|
|
67
|
-
link,
|
|
68
|
-
linkKey,
|
|
69
|
-
pairKey,
|
|
70
|
-
pairsState
|
|
71
|
-
}) => {
|
|
72
|
-
"worklet";
|
|
73
|
-
|
|
74
|
-
if (!link.group) {
|
|
75
|
-
return true;
|
|
76
|
-
}
|
|
77
|
-
const activeId = pairsState[pairKey]?.groups?.[link.group]?.activeId;
|
|
78
|
-
return !activeId || activeId === linkKey;
|
|
79
|
-
};
|
|
80
|
-
const resolveHandoffStyleOwnerScreenKey = ({
|
|
81
|
-
hostScreenKey,
|
|
82
|
-
isSettledHostReady,
|
|
83
|
-
settledHostScreenKey,
|
|
84
|
-
sourceScreenKey
|
|
85
|
-
}) => {
|
|
86
|
-
"worklet";
|
|
87
|
-
|
|
88
|
-
if (settledHostScreenKey === hostScreenKey && isSettledHostReady) {
|
|
89
|
-
return hostScreenKey;
|
|
90
|
-
}
|
|
91
|
-
return sourceScreenKey;
|
|
92
|
-
};
|
|
93
|
-
const pendingSignal = sourcePairKey => {
|
|
94
|
-
"worklet";
|
|
95
|
-
|
|
96
|
-
return {
|
|
97
|
-
hostScreenKey: null,
|
|
98
|
-
ownerPairKey: sourcePairKey,
|
|
99
|
-
ownerScreenKey: null,
|
|
100
|
-
status: "pending"
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
const clearSignal = sourcePairKey => {
|
|
104
|
-
"worklet";
|
|
105
|
-
|
|
106
|
-
return {
|
|
107
|
-
hostScreenKey: null,
|
|
108
|
-
ownerPairKey: sourcePairKey,
|
|
109
|
-
ownerScreenKey: null,
|
|
110
|
-
status: "clear"
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
const resolveBoundaryPortalOwnership = ({
|
|
114
|
-
boundaryId,
|
|
115
|
-
currentScreenKey,
|
|
116
|
-
handoff,
|
|
117
|
-
isSettledHostClosingComplete = false,
|
|
118
|
-
isSettledHostReady = false,
|
|
119
|
-
pairsState,
|
|
120
|
-
settledHostScreenKey = null,
|
|
121
|
-
sourcePairKey
|
|
122
|
-
}) => {
|
|
123
|
-
"worklet";
|
|
124
|
-
|
|
125
|
-
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(boundaryId);
|
|
126
|
-
const link = (0, _linkPairs.getLink)(pairsState, sourcePairKey, linkKey);
|
|
127
|
-
if (link?.status !== "complete") {
|
|
128
|
-
return pendingSignal(sourcePairKey);
|
|
129
|
-
}
|
|
130
|
-
if (!isActiveHandoffLink({
|
|
131
|
-
link,
|
|
132
|
-
linkKey,
|
|
133
|
-
pairKey: sourcePairKey,
|
|
134
|
-
pairsState
|
|
135
|
-
})) {
|
|
136
|
-
return clearSignal(sourcePairKey);
|
|
137
|
-
}
|
|
138
|
-
if (!handoff) {
|
|
139
|
-
return {
|
|
140
|
-
hostScreenKey: currentScreenKey,
|
|
141
|
-
ownerPairKey: sourcePairKey,
|
|
142
|
-
ownerScreenKey: currentScreenKey,
|
|
143
|
-
status: "complete"
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
let hostScreenKey = link.destination.screenKey;
|
|
147
|
-
let ownerPairKey = sourcePairKey;
|
|
148
|
-
const seenScreenKeys = [(0, _linkPairs.getSourceScreenKeyFromPairKey)(sourcePairKey), hostScreenKey];
|
|
149
|
-
const pairKeys = Object.keys(pairsState);
|
|
150
|
-
for (let hop = 0; hop < pairKeys.length; hop++) {
|
|
151
|
-
let didAdvance = false;
|
|
152
|
-
let hasPendingNextHop = false;
|
|
153
|
-
let didHitVisitedScreen = false;
|
|
154
|
-
for (let index = 0; index < pairKeys.length; index++) {
|
|
155
|
-
const candidatePairKey = pairKeys[index];
|
|
156
|
-
if (!candidatePairKey || candidatePairKey === ownerPairKey) {
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
const candidate = (0, _linkPairs.getLink)(pairsState, candidatePairKey, linkKey);
|
|
160
|
-
if (!candidate?.source || candidate.source.screenKey !== hostScreenKey) {
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
if (!candidate.source.handoff) {
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
if (!isActiveHandoffLink({
|
|
167
|
-
link: candidate,
|
|
168
|
-
linkKey,
|
|
169
|
-
pairKey: candidatePairKey,
|
|
170
|
-
pairsState
|
|
171
|
-
})) {
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
if (candidate.status !== "complete") {
|
|
175
|
-
hasPendingNextHop = true;
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
const nextHostScreenKey = candidate.destination.screenKey;
|
|
179
|
-
ownerPairKey = candidatePairKey;
|
|
180
|
-
hostScreenKey = nextHostScreenKey;
|
|
181
|
-
if (hasSeenScreenKey(seenScreenKeys, nextHostScreenKey)) {
|
|
182
|
-
didHitVisitedScreen = true;
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
seenScreenKeys.push(nextHostScreenKey);
|
|
186
|
-
didAdvance = true;
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
if (didHitVisitedScreen) {
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
if (didAdvance) {
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
if (hasPendingNextHop) {
|
|
196
|
-
return pendingSignal(ownerPairKey);
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
if (isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey) {
|
|
201
|
-
hostScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey);
|
|
202
|
-
}
|
|
203
|
-
const ownerScreenKey = resolveHandoffStyleOwnerScreenKey({
|
|
204
|
-
hostScreenKey,
|
|
205
|
-
isSettledHostReady,
|
|
206
|
-
settledHostScreenKey,
|
|
207
|
-
sourceScreenKey: (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)
|
|
208
|
-
});
|
|
209
|
-
return {
|
|
210
|
-
hostScreenKey,
|
|
211
|
-
ownerPairKey,
|
|
212
|
-
ownerScreenKey,
|
|
213
|
-
status: "complete"
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
exports.resolveBoundaryPortalOwnership = resolveBoundaryPortalOwnership;
|
|
217
|
-
//# sourceMappingURL=ownership.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","isHandoffHostClosingComplete","closing","progressAnimating","progressSettled","willAnimate","exports","hasSeenScreenKey","screenKeys","screenKey","index","length","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","getSourceScreenKeyFromPairKey","previousDestinationScreenKey","getDestinationScreenKeyFromPairKey","ownerDestinationScreenKey","canSwitchHandoffHostImmediately","isActiveHandoffLink","link","linkKey","pairKey","pairsState","group","activeId","groups","resolveHandoffStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","handoff","isSettledHostClosingComplete","getLinkKeyFromTag","getPairLink","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","source","nextHostScreenKey","push"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/ownership.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AA4BO,MAAMC,4BAA4B,GAAGA,CAAC;EAC5CC,OAAO;EACPC,iBAAiB;EACjBC,eAAe;EACfC;AAMD,CAAC,KAAK;EACL,SAAS;;EAET;EACA;EACA,OACC,CAAC,CAACH,OAAO,IACTG,WAAW,KAAK,CAAC,IACjBD,eAAe,KAAK,CAAC,IACrBD,iBAAiB,KAAK,CAAC;AAEzB,CAAC;AAACG,OAAA,CAAAL,4BAAA,GAAAA,4BAAA;AAEF,MAAMM,gBAAgB,GAAGA,CAACC,UAAuB,EAAEC,SAAoB,KAA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oreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.shallowEqual = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Shallow equality for the flat signal objects produced by the portal
|
|
9
|
-
* `useAnimatedReaction` blocks. Both sides always carry the same fixed key set,
|
|
10
|
-
* so iterating one side's keys is sufficient. A `null`/`undefined` operand
|
|
11
|
-
* (the first reaction run) is treated as not-equal so the reaction proceeds.
|
|
12
|
-
*/
|
|
13
|
-
const shallowEqual = (a, b) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
if (!a || !b) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
const keys = Object.keys(a);
|
|
20
|
-
for (let index = 0; index < keys.length; index++) {
|
|
21
|
-
const key = keys[index];
|
|
22
|
-
if (a[key] !== b[key]) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return true;
|
|
27
|
-
};
|
|
28
|
-
exports.shallowEqual = shallowEqual;
|
|
29
|
-
//# sourceMappingURL=shallow-equal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["shallowEqual","a","b","keys","Object","index","length","key","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/shallow-equal.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAGA,CAC3BC,CAA6C,EAC7CC,CAA6C,KACzC;EACJ,SAAS;;EACT,IAAI,CAACD,CAAC,IAAI,CAACC,CAAC,EAAE;IACb,OAAO,KAAK;EACb;EAEA,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACF,CAAC,CAAC;EAC3B,KAAK,IAAII,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,IAAI,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACjD,MAAME,GAAG,GAAGJ,IAAI,CAACE,KAAK,CAAC;IACvB,IAAIJ,CAAC,CAACM,GAAG,CAAC,KAAKL,CAAC,CAACK,GAAG,CAAC,EAAE;MACtB,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAACC,OAAA,CAAAR,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.resolveNextVisiblePortalHostName = void 0;
|
|
7
|
-
const resolveNextVisiblePortalHostName = ({
|
|
8
|
-
canSwitchImmediately,
|
|
9
|
-
isInterpolatorReady,
|
|
10
|
-
requestedName,
|
|
11
|
-
shouldTeleport,
|
|
12
|
-
visibleName
|
|
13
|
-
}) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
if (!shouldTeleport) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
if (requestedName && (canSwitchImmediately || isInterpolatorReady)) {
|
|
20
|
-
return requestedName;
|
|
21
|
-
}
|
|
22
|
-
return visibleName;
|
|
23
|
-
};
|
|
24
|
-
exports.resolveNextVisiblePortalHostName = resolveNextVisiblePortalHostName;
|
|
25
|
-
//# sourceMappingURL=visible-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["resolveNextVisiblePortalHostName","canSwitchImmediately","isInterpolatorReady","requestedName","shouldTeleport","visibleName","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/visible-host.ts"],"mappings":";;;;;;AAAO,MAAMA,gCAAgC,GAAGA,CAAC;EAChDC,oBAAoB;EACpBC,mBAAmB;EACnBC,aAAa;EACbC,cAAc;EACdC;AAOD,CAAC,KAAK;EACL,SAAS;;EACT,IAAI,CAACD,cAAc,EAAE;IACpB,OAAO,IAAI;EACZ;EAEA,IAAID,aAAa,KAAKF,oBAAoB,IAAIC,mBAAmB,CAAC,EAAE;IACnE,OAAOC,aAAa;EACrB;EAEA,OAAOE,WAAW;AACnB,CAAC;AAACC,OAAA,CAAAN,gCAAA,GAAAA,gCAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useRotationActivation = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _runtime = require("../../shared/runtime");
|
|
9
|
-
const useRotationActivation = ({
|
|
10
|
-
runtime,
|
|
11
|
-
screenOptions,
|
|
12
|
-
gestureCompositionOwner
|
|
13
|
-
}) => {
|
|
14
|
-
const onTouchesDown = (0, _react.useCallback)((event, stateManager) => {
|
|
15
|
-
"worklet";
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
participation,
|
|
19
|
-
policy
|
|
20
|
-
} = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
|
|
21
|
-
if (!participation.canTrackGesture || !policy.enabled) {
|
|
22
|
-
stateManager?.fail();
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (event.numberOfTouches === 2) {
|
|
26
|
-
if (gestureCompositionOwner.get() === null) {
|
|
27
|
-
gestureCompositionOwner.set("pinch");
|
|
28
|
-
}
|
|
29
|
-
stateManager?.activate();
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (event.numberOfTouches > 2) {
|
|
33
|
-
stateManager?.fail();
|
|
34
|
-
}
|
|
35
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
36
|
-
const onTouchesMove = (0, _react.useCallback)((event, stateManager) => {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
const {
|
|
40
|
-
participation,
|
|
41
|
-
policy
|
|
42
|
-
} = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
|
|
43
|
-
if (!participation.canTrackGesture || !policy.enabled) {
|
|
44
|
-
stateManager.fail();
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (event.numberOfTouches === 2) {
|
|
48
|
-
if (gestureCompositionOwner.get() === null) {
|
|
49
|
-
gestureCompositionOwner.set("pinch");
|
|
50
|
-
}
|
|
51
|
-
stateManager.activate();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (event.numberOfTouches > 2) {
|
|
55
|
-
stateManager.fail();
|
|
56
|
-
}
|
|
57
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
58
|
-
return (0, _react.useMemo)(() => ({
|
|
59
|
-
onTouchesDown,
|
|
60
|
-
onTouchesMove
|
|
61
|
-
}), [onTouchesDown, onTouchesMove]);
|
|
62
|
-
};
|
|
63
|
-
exports.useRotationActivation = useRotationActivation;
|
|
64
|
-
//# sourceMappingURL=use-rotation-activation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_runtime","useRotationActivation","runtime","screenOptions","gestureCompositionOwner","onTouchesDown","useCallback","event","stateManager","participation","policy","resolvePinchRuntime","get","canTrackGesture","enabled","fail","numberOfTouches","set","activate","onTouchesMove","useMemo","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/rotation/activation/use-rotation-activation.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,QAAA,GAAAD,OAAA;AAYO,MAAME,qBAAqB,GAAGA,CAAC;EACrCC,OAAO;EACPC,aAAa;EACbC;AAC2B,CAAC,KAAK;EACjC,MAAMC,aAAa,GAAG,IAAAC,kBAAW,EAChC,CACCC,KAAwB,EACxBC,YAA6C,KACzC;IACJ,SAAS;;IACT,MAAM;MAAEC,aAAa;MAAEC;IAAO,CAAC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,YAAY,CAACO,IAAI,CAAC,CAAC;IACpB;EACD,CAAC,EACD,CAACb,OAAO,EAAEC,aAAa,EAAEC,uBAAuB,CACjD,CAAC;EAED,OAAO,IAAAgB,cAAO,EACb,OAAO;IAAEf,aAAa;IAAEc;EAAc,CAAC,CAAC,EACxC,CAACd,aAAa,EAAEc,aAAa,CAC9B,CAAC;AACF,CAAC;AAACE,OAAA,CAAApB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.trackRotationGesture = exports.startRotationGesture = void 0;
|
|
7
|
-
const startRotationGesture = gestures => {
|
|
8
|
-
"worklet";
|
|
9
|
-
|
|
10
|
-
gestures.rotation.set(0);
|
|
11
|
-
gestures.raw.rotation.set(0);
|
|
12
|
-
};
|
|
13
|
-
exports.startRotationGesture = startRotationGesture;
|
|
14
|
-
const trackRotationGesture = (event, rawEvent, gestures) => {
|
|
15
|
-
"worklet";
|
|
16
|
-
|
|
17
|
-
gestures.rotation.set(event.rotation);
|
|
18
|
-
gestures.raw.rotation.set(rawEvent.rotation);
|
|
19
|
-
};
|
|
20
|
-
exports.trackRotationGesture = trackRotationGesture;
|
|
21
|
-
//# sourceMappingURL=rotation-lifecycle.js.map
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["startRotationGesture","gestures","rotation","set","raw","exports","trackRotationGesture","event","rawEvent"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts"],"mappings":";;;;;;AAEO,MAAMA,oBAAoB,GAChCC,QAAsD,IAClD;EACJ,SAAS;;EACTA,QAAQ,CAACC,QAAQ,CAACC,GAAG,CAAC,CAAC,CAAC;EACxBF,QAAQ,CAACG,GAAG,CAACF,QAAQ,CAACC,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC;AAACE,OAAA,CAAAL,oBAAA,GAAAA,oBAAA;AAEK,MAAMM,oBAAoB,GAAGA,CACnCC,KAA2B,EAC3BC,QAA8B,EAC9BP,QAAsD,KAClD;EACJ,SAAS;;EACTA,QAAQ,CAACC,QAAQ,CAACC,GAAG,CAACI,KAAK,CAACL,QAAQ,CAAC;EACrCD,QAAQ,CAACG,GAAG,CAACF,QAAQ,CAACC,GAAG,CAACK,QAAQ,CAACN,QAAQ,CAAC;AAC7C,CAAC;AAACG,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useRotationBehavior = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _runtime = require("../../shared/runtime");
|
|
9
|
-
var _rotationLifecycle = require("./rotation-lifecycle");
|
|
10
|
-
const useRotationBehavior = (runtime, screenOptions) => {
|
|
11
|
-
const onStart = (0, _react.useCallback)(() => {
|
|
12
|
-
"worklet";
|
|
13
|
-
|
|
14
|
-
const latestRuntime = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
|
|
15
|
-
(0, _rotationLifecycle.startRotationGesture)(latestRuntime.stores.gestures);
|
|
16
|
-
}, [runtime, screenOptions]);
|
|
17
|
-
const onUpdate = (0, _react.useCallback)(rawEvent => {
|
|
18
|
-
"worklet";
|
|
19
|
-
|
|
20
|
-
const latestRuntime = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
|
|
21
|
-
(0, _rotationLifecycle.trackRotationGesture)(rawEvent, rawEvent, latestRuntime.stores.gestures);
|
|
22
|
-
}, [runtime, screenOptions]);
|
|
23
|
-
return (0, _react.useMemo)(() => ({
|
|
24
|
-
onStart,
|
|
25
|
-
onUpdate
|
|
26
|
-
}), [onStart, onUpdate]);
|
|
27
|
-
};
|
|
28
|
-
exports.useRotationBehavior = useRotationBehavior;
|
|
29
|
-
//# sourceMappingURL=use-rotation-behavior.js.map
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_runtime","_rotationLifecycle","useRotationBehavior","runtime","screenOptions","onStart","useCallback","latestRuntime","resolvePinchRuntime","get","startRotationGesture","stores","gestures","onUpdate","rawEvent","trackRotationGesture","useMemo","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,kBAAA,GAAAF,OAAA;AAKO,MAAMG,mBAAmB,GAAGA,CAClCC,OAA4C,EAC5CC,aAAwC,KAClB;EACtB,MAAMC,OAAO,GAAG,IAAAC,kBAAW,EAAC,MAAM;IACjC,SAAS;;IACT,MAAMC,aAAa,GAAG,IAAAC,4BAAmB,EACxCL,OAAO,CAACM,GAAG,CAAC,CAAC,EACbL,aAAa,CAACK,GAAG,CAAC,CACnB,CAAC;IACD,IAAAC,uCAAoB,EAACH,aAAa,CAACI,MAAM,CAACC,QAAQ,CAAC;EACpD,CAAC,EAAE,CAACT,OAAO,EAAEC,aAAa,CAAC,CAAC;EAE5B,MAAMS,QAAQ,GAAG,IAAAP,kBAAW,EAC1BQ,QAA8B,IAAK;IACnC,SAAS;;IACT,MAAMP,aAAa,GAAG,IAAAC,4BAAmB,EACxCL,OAAO,CAACM,GAAG,CAAC,CAAC,EACbL,aAAa,CAACK,GAAG,CAAC,CACnB,CAAC;IACD,IAAAM,uCAAoB,EAACD,QAAQ,EAAEA,QAAQ,EAAEP,aAAa,CAACI,MAAM,CAACC,QAAQ,CAAC;EACxE,CAAC,EACD,CAACT,OAAO,EAAEC,aAAa,CACxB,CAAC;EAED,OAAO,IAAAY,cAAO,EACb,OAAO;IACNX,OAAO;IACPQ;EACD,CAAC,CAAC,EACF,CAACR,OAAO,EAAEQ,QAAQ,CACnB,CAAC;AACF,CAAC;AAACI,OAAA,CAAAf,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useBuildRotationGesture = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
9
|
-
var _options = require("../../options");
|
|
10
|
-
var _useStableRuntimeConfig = require("../hooks/use-stable-runtime-config");
|
|
11
|
-
var _useRotationActivation = require("./activation/use-rotation-activation");
|
|
12
|
-
var _useRotationBehavior = require("./behavior/use-rotation-behavior");
|
|
13
|
-
const useBuildRotationGesture = ({
|
|
14
|
-
gestureConfig,
|
|
15
|
-
gestureCompositionOwner
|
|
16
|
-
}) => {
|
|
17
|
-
const {
|
|
18
|
-
participation,
|
|
19
|
-
pinch: policy
|
|
20
|
-
} = gestureConfig;
|
|
21
|
-
const screenOptions = (0, _options.useScreenOptionsContext)();
|
|
22
|
-
const runtime = (0, _useStableRuntimeConfig.useStableRuntimeConfig)({
|
|
23
|
-
participation,
|
|
24
|
-
policy
|
|
25
|
-
});
|
|
26
|
-
const activation = (0, _useRotationActivation.useRotationActivation)({
|
|
27
|
-
runtime,
|
|
28
|
-
screenOptions,
|
|
29
|
-
gestureCompositionOwner
|
|
30
|
-
});
|
|
31
|
-
const behavior = (0, _useRotationBehavior.useRotationBehavior)(runtime, screenOptions);
|
|
32
|
-
const rotationGesture = (0, _react.useMemo)(() => {
|
|
33
|
-
return _reactNativeGestureHandler.Gesture.Rotation().enabled(true).manualActivation(true).onTouchesDown(activation.onTouchesDown).onTouchesMove(activation.onTouchesMove).onStart(behavior.onStart).onUpdate(behavior.onUpdate);
|
|
34
|
-
}, [activation, behavior]);
|
|
35
|
-
return rotationGesture;
|
|
36
|
-
};
|
|
37
|
-
exports.useBuildRotationGesture = useBuildRotationGesture;
|
|
38
|
-
//# sourceMappingURL=use-build-rotation-gesture.js.map
|
package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_options","_useStableRuntimeConfig","_useRotationActivation","_useRotationBehavior","useBuildRotationGesture","gestureConfig","gestureCompositionOwner","participation","pinch","policy","screenOptions","useScreenOptionsContext","runtime","useStableRuntimeConfig","activation","useRotationActivation","behavior","useRotationBehavior","rotationGesture","useMemo","Gesture","Rotation","enabled","manualActivation","onTouchesDown","onTouchesMove","onStart","onUpdate","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/gestures/rotation/use-build-rotation-gesture.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AAMA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AAOO,MAAMM,uBAAuB,GAAGA,CAAC;EACvCC,aAAa;EACbC;AAC6B,CAAC,KAAsB;EACpD,MAAM;IAAEC,aAAa;IAAEC,KAAK,EAAEC;EAAO,CAAC,GAAGJ,aAAa;EACtD,MAAMK,aAAa,GAAG,IAAAC,gCAAuB,EAAC,CAAC;EAE/C,MAAMC,OAAO,GAAG,IAAAC,8CAAsB,EAAC;IACtCN,aAAa;IACbE;EACD,CAAC,CAAC;EAEF,MAAMK,UAAU,GAAG,IAAAC,4CAAqB,EAAC;IACxCH,OAAO;IACPF,aAAa;IACbJ;EACD,CAAC,CAAC;EAEF,MAAMU,QAAQ,GAAG,IAAAC,wCAAmB,EAACL,OAAO,EAAEF,aAAa,CAAC;EAE5D,MAAMQ,eAAe,GAAG,IAAAC,cAAO,EAAC,MAAM;IACrC,OAAOC,kCAAO,CAACC,QAAQ,CAAC,CAAC,CACvBC,OAAO,CAAC,IAAI,CAAC,CACbC,gBAAgB,CAAC,IAAI,CAAC,CACtBC,aAAa,CAACV,UAAU,CAACU,aAAa,CAAC,CACvCC,aAAa,CAACX,UAAU,CAACW,aAAa,CAAC,CACvCC,OAAO,CAACV,QAAQ,CAACU,OAAO,CAAC,CACzBC,QAAQ,CAACX,QAAQ,CAACW,QAAQ,CAAC;EAC9B,CAAC,EAAE,CAACb,UAAU,EAAEE,QAAQ,CAAC,CAAC;EAE1B,OAAOE,eAAe;AACvB,CAAC;AAACU,OAAA,CAAAxB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isOpeningBeforeStart = exports.hasOpenTransitionStarted = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* The "pre-start" window of an opening transition: the screen has committed to
|
|
9
|
-
* opening (`entering`) but `transitionProgress` has not yet moved past 0, so no
|
|
10
|
-
* transformed frame has been produced yet.
|
|
11
|
-
*
|
|
12
|
-
* This window is a quarantine, and two source-level guards key off it:
|
|
13
|
-
* - the visibility gate keeps the entering screen hidden (it must not be SEEN), and
|
|
14
|
-
* - interpolator ownership stays on "current" so the entering screen does not
|
|
15
|
-
* DRIVE other screens' styles until its transition is actually live.
|
|
16
|
-
*
|
|
17
|
-
* Both must agree on when the open transition has started, so the threshold
|
|
18
|
-
* lives here in one place rather than being re-derived at each site.
|
|
19
|
-
*/
|
|
20
|
-
const hasOpenTransitionStarted = transitionProgress => {
|
|
21
|
-
"worklet";
|
|
22
|
-
|
|
23
|
-
return transitionProgress > 0;
|
|
24
|
-
};
|
|
25
|
-
exports.hasOpenTransitionStarted = hasOpenTransitionStarted;
|
|
26
|
-
const isOpeningBeforeStart = (entering, transitionProgress) => {
|
|
27
|
-
"worklet";
|
|
28
|
-
|
|
29
|
-
return !!entering && !hasOpenTransitionStarted(transitionProgress);
|
|
30
|
-
};
|
|
31
|
-
exports.isOpeningBeforeStart = isOpeningBeforeStart;
|
|
32
|
-
//# sourceMappingURL=opening-phase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["hasOpenTransitionStarted","transitionProgress","exports","isOpeningBeforeStart","entering"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/opening-phase.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,wBAAwB,GAAIC,kBAA0B,IAAK;EACvE,SAAS;;EACT,OAAOA,kBAAkB,GAAG,CAAC;AAC9B,CAAC;AAACC,OAAA,CAAAF,wBAAA,GAAAA,wBAAA;AAEK,MAAMG,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBH,kBAA0B,KACtB;EACJ,SAAS;;EACT,OAAO,CAAC,CAACG,QAAQ,IAAI,CAACJ,wBAAwB,CAACC,kBAAkB,CAAC;AACnE,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useLayoutEffect } from "react";
|
|
4
|
-
import { logger } from "../../../utils/logger";
|
|
5
|
-
import { TARGET_OUTSIDE_ROOT_WARNING, useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
6
|
-
export const useRegisterTarget = ({
|
|
7
|
-
targetAnimatedRef,
|
|
8
|
-
preparedStyles,
|
|
9
|
-
measurementRef
|
|
10
|
-
}) => {
|
|
11
|
-
const rootContext = useBoundaryRootContext();
|
|
12
|
-
const registerTargetRef = rootContext?.registerTargetRef;
|
|
13
|
-
const unregisterTargetRef = rootContext?.unregisterTargetRef;
|
|
14
|
-
useLayoutEffect(() => {
|
|
15
|
-
if (!registerTargetRef || !unregisterTargetRef) {
|
|
16
|
-
if (__DEV__) {
|
|
17
|
-
logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
|
|
18
|
-
}
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
registerTargetRef(targetAnimatedRef, preparedStyles, measurementRef);
|
|
22
|
-
return () => {
|
|
23
|
-
unregisterTargetRef(targetAnimatedRef);
|
|
24
|
-
};
|
|
25
|
-
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=use-register-target.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","logger","TARGET_OUTSIDE_ROOT_WARNING","useBoundaryRootContext","useRegisterTarget","targetAnimatedRef","preparedStyles","measurementRef","rootContext","registerTargetRef","unregisterTargetRef","__DEV__","warn"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/hooks/use-register-target.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AAGvC,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,qCAAqC;AAQ5C,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,iBAAiB;EACjBC,cAAc;EACdC;AACoB,CAAC,KAAK;EAC1B,MAAMC,WAAW,GAAGL,sBAAsB,CAAC,CAAC;EAC5C,MAAMM,iBAAiB,GAAGD,WAAW,EAAEC,iBAAiB;EACxD,MAAMC,mBAAmB,GAAGF,WAAW,EAAEE,mBAAmB;EAC5DV,eAAe,CAAC,MAAM;IACrB,IAAI,CAACS,iBAAiB,IAAI,CAACC,mBAAmB,EAAE;MAC/C,IAAIC,OAAO,EAAE;QACZV,MAAM,CAACW,IAAI,CAACV,2BAA2B,CAAC;MACzC;MACA;IACD;IAEAO,iBAAiB,CAACJ,iBAAiB,EAAEC,cAAc,EAAEC,cAAc,CAAC;IACpE,OAAO,MAAM;MACZG,mBAAmB,CAACL,iBAAiB,CAAC;IACvC,CAAC;EACF,CAAC,EAAE,CACFI,iBAAiB,EACjBC,mBAAmB,EACnBL,iBAAiB,EACjBC,cAAc,EACdC,cAAc,CACd,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo } from "react";
|
|
4
|
-
import Animated, { runOnUI } from "react-native-reanimated";
|
|
5
|
-
import { logger } from "../../../../../../utils/logger";
|
|
6
|
-
import { isTeleportAvailable, PORTAL_POINTER_EVENTS, NativePortal as TeleportPortal } from "../../../teleport";
|
|
7
|
-
import { usePlaceholderStyles } from "../hooks/use-placeholder-styles";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const AnimatedNativePortal = TeleportPortal ? Animated.createAnimatedComponent(TeleportPortal) : null;
|
|
10
|
-
export const BoundaryPortalSlot = /*#__PURE__*/memo(function BoundaryPortalSlot({
|
|
11
|
-
id,
|
|
12
|
-
children,
|
|
13
|
-
enabled,
|
|
14
|
-
animatedProps,
|
|
15
|
-
placeholderRef
|
|
16
|
-
}) {
|
|
17
|
-
const isPortalEnabled = enabled && isTeleportAvailable;
|
|
18
|
-
if (__DEV__ && enabled && !id) {
|
|
19
|
-
logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
|
|
20
|
-
}
|
|
21
|
-
const {
|
|
22
|
-
handleOnLayout,
|
|
23
|
-
placeholderStyle
|
|
24
|
-
} = usePlaceholderStyles();
|
|
25
|
-
if (isPortalEnabled && AnimatedNativePortal) {
|
|
26
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
27
|
-
ref: placeholderRef,
|
|
28
|
-
onLayout: ({
|
|
29
|
-
nativeEvent: {
|
|
30
|
-
layout
|
|
31
|
-
}
|
|
32
|
-
}) => runOnUI(handleOnLayout)(layout),
|
|
33
|
-
style: placeholderStyle,
|
|
34
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
35
|
-
collapsable: false,
|
|
36
|
-
children: /*#__PURE__*/_jsx(AnimatedNativePortal, {
|
|
37
|
-
animatedProps: animatedProps,
|
|
38
|
-
name: id,
|
|
39
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
40
|
-
children: children
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return children;
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=portal-slot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","Animated","runOnUI","logger","isTeleportAvailable","PORTAL_POINTER_EVENTS","NativePortal","TeleportPortal","usePlaceholderStyles","jsx","_jsx","AnimatedNativePortal","createAnimatedComponent","BoundaryPortalSlot","id","children","enabled","animatedProps","placeholderRef","isPortalEnabled","__DEV__","warnOnce","handleOnLayout","placeholderStyle","View","ref","onLayout","nativeEvent","layout","style","pointerEvents","collapsable","name"],"sourceRoot":"../../../../../../../../../src","sources":["shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx"],"mappings":";;AAAA,SAGCA,IAAI,QAEE,OAAO;AAEd,OAAOC,QAAQ,IAAsBC,OAAO,QAAQ,yBAAyB;AAC7E,SAASC,MAAM,QAAQ,gCAAgC;AACvD,SACCC,mBAAmB,EACnBC,qBAAqB,EACrBC,YAAY,IAAIC,cAAc,QACxB,mBAAmB;AAC1B,SAASC,oBAAoB,QA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