react-native-screen-transitions 3.9.0 → 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 +40 -33
- 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/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 +17 -5
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +44 -20
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.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 +3 -17
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.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 +43 -36
- 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/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 +16 -5
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +46 -22
- package/lib/module/shared/utils/bounds/navigation/zoom/build.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 +4 -18
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.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/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 +9 -0
- 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/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 -4
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/package.json +1 -1
- 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 +64 -62
- 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/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 +21 -5
- package/src/shared/utils/bounds/navigation/zoom/build.ts +77 -23
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +3 -42
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +9 -23
- 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 -220
- 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 -213
- 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 -319
- 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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useImperativeHandle, useLayoutEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { useAnimatedRef } from "react-native-reanimated";
|
|
5
5
|
import { useDescriptorsStore } from "../../../providers/screen/descriptors";
|
|
6
6
|
import { useComposedSlotStyles, useSlotStackingStyles } from "../../../providers/screen/styles";
|
|
@@ -10,7 +10,7 @@ import { logger } from "../../../utils/logger";
|
|
|
10
10
|
import { useBoundaryMeasurement } from "../hooks/use-boundary-measurement";
|
|
11
11
|
import { resolveBoundaryPortal } from "../portal/utils/resolve-portal";
|
|
12
12
|
// logger.warn prepends the library prefix.
|
|
13
|
-
const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first
|
|
13
|
+
const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first target in render order will be measured.";
|
|
14
14
|
export const TARGET_OUTSIDE_ROOT_WARNING = "Boundary.Target must be rendered inside Transition.Boundary or a component created by createBoundaryComponent.";
|
|
15
15
|
export const {
|
|
16
16
|
BoundaryRootProvider,
|
|
@@ -26,8 +26,11 @@ export const {
|
|
|
26
26
|
forwardedRef,
|
|
27
27
|
group,
|
|
28
28
|
handoff,
|
|
29
|
+
hasTarget,
|
|
29
30
|
id,
|
|
30
|
-
style
|
|
31
|
+
style,
|
|
32
|
+
targetCount,
|
|
33
|
+
targetStyle
|
|
31
34
|
}) => {
|
|
32
35
|
const requestedBoundTag = useMemo(() => createBoundTag(String(id), group), [id, group]);
|
|
33
36
|
const portalRuntime = resolveBoundaryPortal({
|
|
@@ -55,30 +58,13 @@ export const {
|
|
|
55
58
|
const associatedStyles = useComposedSlotStyles(boundTag.tag, style);
|
|
56
59
|
const associatedStackingStyles = useSlotStackingStyles(boundTag.tag);
|
|
57
60
|
const rootRef = useAnimatedRef();
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (__DEV__ && prev !== null) {
|
|
66
|
-
logger.warnOnce("boundary:multiple-targets", MULTIPLE_TARGETS_WARNING);
|
|
67
|
-
}
|
|
68
|
-
return prev ?? {
|
|
69
|
-
ref: targetRef,
|
|
70
|
-
measurementRef: measurementRef ?? targetRef,
|
|
71
|
-
preparedStyles
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
}, []);
|
|
75
|
-
const unregisterTargetRef = useCallback(targetRef => {
|
|
76
|
-
setTargetEntry(prev => prev?.ref === targetRef ? null : prev);
|
|
77
|
-
}, []);
|
|
78
|
-
const rootMeasurementRef = shouldEscapeBoundaryRootToScreenHost ? rootEscapePlaceholderRef : rootRef;
|
|
79
|
-
const measuredRef = targetEntry?.measurementRef ?? rootMeasurementRef;
|
|
80
|
-
const hasActiveTarget = targetEntry !== null;
|
|
81
|
-
const targetPreparedStyles = targetEntry?.preparedStyles;
|
|
61
|
+
const measurementRef = useAnimatedRef();
|
|
62
|
+
useLayoutEffect(() => {
|
|
63
|
+
if (__DEV__ && targetCount > 1) {
|
|
64
|
+
logger.warnOnce("boundary:multiple-targets", MULTIPLE_TARGETS_WARNING);
|
|
65
|
+
}
|
|
66
|
+
}, [targetCount]);
|
|
67
|
+
const measuredRef = hasTarget || shouldEscapeBoundaryRootToScreenHost ? measurementRef : rootRef;
|
|
82
68
|
useImperativeHandle(forwardedRef, () => rootRef.current, [rootRef]);
|
|
83
69
|
useBoundaryMeasurement({
|
|
84
70
|
boundTag,
|
|
@@ -86,13 +72,12 @@ export const {
|
|
|
86
72
|
runtimeEnabled,
|
|
87
73
|
currentScreenKey,
|
|
88
74
|
measuredRef,
|
|
89
|
-
style,
|
|
90
|
-
targetPreparedStyles,
|
|
75
|
+
style: hasTarget ? targetStyle : style,
|
|
91
76
|
handoff: portalRuntime.handoff,
|
|
92
77
|
escapeClipping: portalRuntime.escapeClipping,
|
|
93
78
|
config
|
|
94
79
|
});
|
|
95
|
-
const shouldRenderBoundaryRootThroughPortal = shouldEscapeBoundaryRootToScreenHost && !
|
|
80
|
+
const shouldRenderBoundaryRootThroughPortal = shouldEscapeBoundaryRootToScreenHost && !hasTarget;
|
|
96
81
|
const handoffEnabled = enabled && portalRuntime.handoff;
|
|
97
82
|
// A nested active target takes the full associated style, so the root keeps
|
|
98
83
|
// only its stacking context. Root-owned escape-clipping moves the root
|
|
@@ -101,21 +86,18 @@ export const {
|
|
|
101
86
|
// Host-only handoff receivers still need the associated style: their
|
|
102
87
|
// handoff host is absolute-filled inside this root, so the root is the
|
|
103
88
|
// visual frame that animates the received payload.
|
|
104
|
-
const attachedStyle = shouldAttachAssociatedStyles ?
|
|
89
|
+
const attachedStyle = shouldAttachAssociatedStyles ? hasTarget ? associatedStackingStyles : shouldRenderBoundaryRootThroughPortal ? undefined : associatedStyles : undefined;
|
|
105
90
|
const value = useMemo(() => ({
|
|
106
91
|
attachedStyle,
|
|
107
|
-
activeTargetRef: targetEntry?.ref ?? null,
|
|
108
92
|
boundTag,
|
|
109
93
|
currentScreenKey,
|
|
110
94
|
handoffEnabled,
|
|
95
|
+
measurementRef,
|
|
111
96
|
portalRuntime,
|
|
112
|
-
registerTargetRef,
|
|
113
97
|
ref: rootRef,
|
|
114
|
-
rootEscapePlaceholderRef,
|
|
115
98
|
shouldRenderBoundaryRootThroughPortal,
|
|
116
|
-
shouldRenderHandoffHost: handoffEnabled && !
|
|
117
|
-
|
|
118
|
-
}), [attachedStyle, boundTag, currentScreenKey, handoffEnabled, hasActiveTarget, portalRuntime, registerTargetRef, rootRef, rootEscapePlaceholderRef, shouldRenderBoundaryRootThroughPortal, targetEntry, unregisterTargetRef]);
|
|
99
|
+
shouldRenderHandoffHost: handoffEnabled && !hasTarget
|
|
100
|
+
}), [attachedStyle, boundTag, currentScreenKey, handoffEnabled, hasTarget, measurementRef, portalRuntime, rootRef, shouldRenderBoundaryRootThroughPortal]);
|
|
119
101
|
return {
|
|
120
102
|
value,
|
|
121
103
|
children: children(value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useImperativeHandle","useLayoutEffect","useMemo","useRef","useAnimatedRef","useDescriptorsStore","useComposedSlotStyles","useSlotStackingStyles","createBoundTag","createProvider","logger","useBoundaryMeasurement","resolveBoundaryPortal","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","BoundaryRootProvider","useBoundaryRootContext","useBoundaryRootStore","guarded","children","config","enabled","escapeClipping","forwardedRef","group","handoff","hasTarget","id","style","targetCount","targetStyle","requestedBoundTag","String","portalRuntime","currentScreenKey","s","derivations","currentActivity","descriptors","current","activity","retainedBoundTagRef","shouldRetainClosingBoundTag","boundTag","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","shouldEscapeBoundaryRootToScreenHost","associatedStyles","tag","associatedStackingStyles","rootRef","measurementRef","__DEV__","warnOnce","measuredRef","shouldRenderBoundaryRootThroughPortal","handoffEnabled","attachedStyle","undefined","value","ref","shouldRenderHandoffHost"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;AAAA,SAGCA,mBAAmB,EACnBC,eAAe,EACfC,OAAO,EACPC,MAAM,QACA,OAAO;AAGd,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,mBAAmB,QAAQ,uCAAuC;AAC3E,SACCC,qBAAqB,EACrBC,qBAAqB,QACf,kCAAkC;AACzC,SAASC,cAAc,QAAQ,mDAAmD;AAEl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,aAAa,CAACR,OAAO;EACvD;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMiC,aAAa,GAAGZ,4BAA4B,GAC/CpB,SAAS,GACRwB,wBAAwB,GACxBM,qCAAqC,GACpCG,SAAS,GACTX,gBAAgB,GAClBW,SAAS;EAEZ,MAAMC,KAAK,GAAG1D,OAAO,CACpB,OAAO;IACNwD,aAAa;IACbf,QAAQ;IACRT,gBAAgB;IAChBuB,cAAc;IACdL,cAAc;IACdnB,aAAa;IACb4B,GAAG,EAAEV,OAAO;IACZK,qCAAqC;IACrCM,uBAAuB,EAAEL,cAAc,IAAI,CAAC/B;EAC7C,CAAC,CAAC,EACF,CACCgC,aAAa,EACbf,QAAQ,EACRT,gBAAgB,EAChBuB,cAAc,EACd/B,SAAS,EACT0B,cAAc,EACdnB,aAAa,EACbkB,OAAO,EACPK,qCAAqC,CAEvC,CAAC;EAED,OAAO;IACNI,KAAK;IACLzC,QAAQ,EAAEA,QAAQ,CAACyC,KAAK;EACzB,CAAC;AACF,CACD,CAAC","ignoreList":[]}
|
|
@@ -29,9 +29,16 @@ export const getRefreshBoundarySignal = params => {
|
|
|
29
29
|
entering,
|
|
30
30
|
animating,
|
|
31
31
|
progress,
|
|
32
|
+
gestureInProgress,
|
|
32
33
|
linkState
|
|
33
34
|
} = params;
|
|
34
35
|
if (!enabled) return null;
|
|
36
|
+
|
|
37
|
+
// This is temporary for a patch fix. However, this architecture should
|
|
38
|
+
// change: our signals aren't currently doing their intended job, so right
|
|
39
|
+
// now we'll add one more guard until the shape is much more tested and
|
|
40
|
+
// bulletproof.
|
|
41
|
+
if (gestureInProgress) return null;
|
|
35
42
|
const canRefreshPreCloseDestination = shouldRefresh && closing && !entering && !animating && progress >= 1;
|
|
36
43
|
const canRefreshSettledDestination = shouldRefresh && !closing && !entering;
|
|
37
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","type","pairKey","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","nextScreenKey","linkId","group","shouldRefresh","closing","entering","animating","progress","linkState","canRefreshPreCloseDestination","canRefreshSettledDestination","refreshDestinationPairKey","undefined","join","activeId","groups"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/refresh-signals.ts"],"mappings":";;AAMA,MAAMA,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BC,OAAsB,EACtBC,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXH,IAAI,KAAK,QAAQ,GAAGH,oBAAoB,GAAGC,yBAAyB;EACrE,OAAO;IACNE,IAAI;IACJC,OAAO;IACPG,MAAM,EAAE,GAAGD,MAAM,GAAGF,OAAO,IAAIC,GAAG;EACnC,CAAC;AACF,CAAC;AAED,OAAO,MAAMG,wBAAwB,GAAIC,
|
|
1
|
+
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","type","pairKey","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","nextScreenKey","linkId","group","shouldRefresh","closing","entering","animating","progress","gestureInProgress","linkState","canRefreshPreCloseDestination","canRefreshSettledDestination","refreshDestinationPairKey","undefined","join","activeId","groups"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/refresh-signals.ts"],"mappings":";;AAMA,MAAMA,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BC,OAAsB,EACtBC,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXH,IAAI,KAAK,QAAQ,GAAGH,oBAAoB,GAAGC,yB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AC,EAAEmB,MAAM,GAAGd,KAAK,CAAC,EAAEa,QAAQ;IAEtE,IAAIA,QAAQ,KAAKd,MAAM,EAAE;MACxB,OAAO,IAAI;IACZ;IAEA,OAAOd,kBAAkB,CACxB,QAAQ,EACRU,aAAa,EACb,CAACK,KAAK,EAAED,MAAM,EAAEG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC,CAACU,IAAI,CAAC,GAAG,CAC1D,CAAC;EACF;EAEA,MAAMF,yBAAyB,GAC9Bd,kBAAkB,KACjBE,aAAa,GAAGa,SAAS,GAAGd,0BAA0B,CAAC;EAEzD,IAAI,CAACa,yBAAyB,EAAE,OAAO,IAAI;;EAE3C;EACA;EACA,MAAMG,QAAQ,GACbN,SAAS,GAAGG,yBAAyB,CAAC,EAAEI,MAAM,GAAGd,KAAK,CAAC,EAAEa,QAAQ;;EAElE;EACA;EACA,IAAIA,QAAQ,KAAKd,MAAM,EAAE;IACxB,OAAO,IAAI;EACZ;EAEA,OAAOd,kBAAkB,CACxB,aAAa,EACbyB,yBAAyB,EACzB,CAACV,KAAK,EAAED,MAAM,EAAEG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC,CAACU,IAAI,CAAC,GAAG,CAC1D,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Children, cloneElement, Fragment, isValidElement } from "react";
|
|
4
|
+
export const resolveBoundaryTarget = (children, options) => {
|
|
5
|
+
let target = null;
|
|
6
|
+
let targetCount = 0;
|
|
7
|
+
const map = nodes => Children.map(nodes, node => {
|
|
8
|
+
if (! /*#__PURE__*/isValidElement(node)) return node;
|
|
9
|
+
if (node.type === Fragment) {
|
|
10
|
+
return /*#__PURE__*/cloneElement(node, undefined, map(node.props.children));
|
|
11
|
+
}
|
|
12
|
+
if (!options.isTarget(node)) return node;
|
|
13
|
+
target ??= node;
|
|
14
|
+
targetCount += 1;
|
|
15
|
+
return options.mapTarget?.(node, targetCount === 1) ?? node;
|
|
16
|
+
});
|
|
17
|
+
const mappedChildren = map(children);
|
|
18
|
+
return {
|
|
19
|
+
children: target ? mappedChildren : children,
|
|
20
|
+
target,
|
|
21
|
+
targetCount
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=resolve-boundary-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Children","cloneElement","Fragment","isValidElement","resolveBoundaryTarget","children","options","target","targetCount","map","nodes","node","type","undefined","props","isTarget","mapTarget","mappedChildren"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/resolve-boundary-target.tsx"],"mappings":";;AAAA,SACCA,QAAQ,EACRC,YAAY,EACZC,QAAQ,EACRC,cAAc,QAGR,OAAO;AAOd,OAAO,MAAMC,qBAAqB,GAAGA,CACpCC,QAAmB,EACnBC,OAAqC,KAKjC;EACJ,IAAIC,MAA2B,GAAG,IAAI;EACtC,IAAIC,WAAW,GAAG,CAAC;EACnB,MAAMC,GAAG,GAAIC,KAAgB,IAC5BV,QAAQ,CAACS,GAAG,CAACC,KAAK,EAAGC,IAAI,IAAK;IAC7B,IAAI,eAACR,cAAc,CAA2BQ,IAAI,CAAC,EAAE,OAAOA,IAAI;IAChE,IAAIA,IAAI,CAACC,IAAI,KAAKV,QAAQ,EAAE;MAC3B,oBAAOD,YAAY,CAACU,IAAI,EAAEE,SAAS,EAAEJ,GAAG,CAACE,IAAI,CAACG,KAAK,CAACT,QAAQ,CAAC,CAAC;IAC/D;IACA,IAAI,CAACC,OAAO,CAACS,QAAQ,CAACJ,IAAI,CAAC,EAAE,OAAOA,IAAI;IACxCJ,MAAM,KAAKI,IAAI;IACfH,WAAW,IAAI,CAAC;IAChB,OAAOF,OAAO,CAACU,SAAS,GAAGL,IAAI,EAAEH,WAAW,KAAK,CAAC,CAAC,IAAIG,IAAI;EAC5D,CAAC,CAAC;EAEH,MAAMM,cAAc,GAAGR,GAAG,CAACJ,QAAQ,CAAC;EACpC,OAAO;IAAEA,QAAQ,EAAEE,MAAM,GAAGU,cAAc,GAAGZ,QAAQ;IAAEE,MAAM;IAAEC;EAAY,CAAC;AAC7E,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { StyleSheet, View } from "react-native";
|
|
3
|
+
import { I18nManager, StyleSheet, View } from "react-native";
|
|
4
4
|
import { CONTAINER_STYLE_ID, MASK_STYLE_ID } from "../constants";
|
|
5
5
|
import { createTransitionAwareComponent } from "./create-transition-aware-component";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -42,7 +42,15 @@ const styles = StyleSheet.create({
|
|
|
42
42
|
root: {
|
|
43
43
|
flex: 1
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
// The mask rect's translate math assumes a physical top-left base. Under
|
|
46
|
+
// native RTL a fixed-width flex child anchors to the right edge, so pin it
|
|
47
|
+
// to the physical left (`end` = left edge in RTL).
|
|
48
|
+
rootMask: I18nManager.isRTL ? {
|
|
49
|
+
backgroundColor: "white",
|
|
50
|
+
end: 0,
|
|
51
|
+
position: "absolute",
|
|
52
|
+
top: 0
|
|
53
|
+
} : {
|
|
46
54
|
backgroundColor: "white"
|
|
47
55
|
},
|
|
48
56
|
rootContainer: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","View","CONTAINER_STYLE_ID","MASK_STYLE_ID","createTransitionAwareComponent","jsx","_jsx","TransitionView","LazyMaskedView","require","default","_","MaskedView","children","style","userStyles","styles","root","maskElement","styleId","rootMask","rootContainer","create","flex","backgroundColor"],"sourceRoot":"../../../../src","sources":["shared/components/masked-view.tsx"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["I18nManager","StyleSheet","View","CONTAINER_STYLE_ID","MASK_STYLE_ID","createTransitionAwareComponent","jsx","_jsx","TransitionView","LazyMaskedView","require","default","_","MaskedView","children","style","userStyles","styles","root","maskElement","styleId","rootMask","rootContainer","create","flex","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../../src","sources":["shared/components/masked-view.tsx"],"mappings":";;AAAA,SACCA,WAAW,EAEXC,UAAU,EACVC,IAAI,QAEE,cAAc;AACrB,SAASC,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAASC,8BAA8B,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErF,MAAMC,cAAc,GAAGH,8BAA8B,CAACH,IAAI,CAAC;AAE3D,IAAIO,cAAc,GAAGP,IAAI;AAEzB,IAAI;EACHO,cAAc,GAAGC,OAAO,CAAC,uCAAuC,CAAC,CAACC,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;;AAGD;AACA;AACA;AACA;AACA,eAAe,SAASC,UAAUA,CAAC;EAClCC,QAAQ;EACRC,KAAK,EAAEC,UAAU,GAAG,CAAC;AAItB,CAAC,EAAE;EACF,IAAIP,cAAc,KAAKP,IAAI,EAAE;IAC5B,OAAOY,QAAQ;EAChB;EAEA,oBACCP,IAAA,CAACE,cAAc;IACdM,KAAK,EAAEE,MAAM,CAACC;IACd;IAAA;IACAC,WAAW,eACVZ,IAAA,CAACC,cAAc;MAACY,OAAO,EAAEhB,aAAc;MAACW,KAAK,EAAEE,MAAM,CAACI;IAAS,CAAE,CACjE;IAAAP,QAAA,eAEDP,IAAA,CAACC,cAAc;MACdY,OAAO,EAAEjB,kBAAmB;MAC5BY,KAAK,EAAE,CAACE,MAAM,CAACK,aAAa,EAAEN,UAAU,CAAE;MAAAF,QAAA,EAEzCA;IAAQ,CACM;EAAC,CACF,CAAC;AAEnB;AAEA,MAAMG,MAAM,GAAGhB,UAAU,CAACsB,MAAM,CAAC;EAChCL,IAAI,EAAE;IACLM,IAAI,EAAE;EACP,CAAC;EACD;EACA;EACA;EACAH,QAAQ,EAAErB,WAAW,CAACyB,KAAK,GACxB;IACAC,eAAe,EAAE,OAAO;IACxBC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAH,eAAe,EAAE;EAClB,CAAC;EACHJ,aAAa,EAAE;IACdE,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -29,6 +29,7 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
|
29
29
|
const animations = AnimationStore.getBag(routeKey);
|
|
30
30
|
const {
|
|
31
31
|
targetProgress,
|
|
32
|
+
animationProgress,
|
|
32
33
|
resolvedAutoSnapPoint
|
|
33
34
|
} = SystemStore.getBag(routeKey);
|
|
34
35
|
const AnimatedBackdropComponent = useMemo(() => BackdropComponent && !usesLayerRenderProps(BackdropComponent) ? Animated.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
|
|
@@ -76,11 +77,12 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
|
76
77
|
spec,
|
|
77
78
|
animations,
|
|
78
79
|
targetProgress,
|
|
80
|
+
animationProgress,
|
|
79
81
|
onAnimationFinish: shouldDismiss ? dismissScreen : undefined
|
|
80
82
|
});
|
|
81
83
|
})();
|
|
82
84
|
}
|
|
83
|
-
}, [animations, targetProgress, resolvedAutoSnapPoint, backdropBehavior, current, dismissScreen, routeKey]);
|
|
85
|
+
}, [animations, targetProgress, animationProgress, resolvedAutoSnapPoint, backdropBehavior, current, dismissScreen, routeKey]);
|
|
84
86
|
const animatedBackdropStyle = useSlotStyles("backdrop");
|
|
85
87
|
const animatedBackdropProps = useSlotProps("backdrop");
|
|
86
88
|
const backdropPointerEvents = isBackdropActive ? "auto" : "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","DefaultSnapSpec","useNavigationHelpers","useDescriptors","useSlotProps","useSlotStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","usesLayerRenderProps","jsx","_jsx","BackdropLayer","backdropBehavior","isBackdropActive","current","dismissScreen","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getBag","targetProgress","resolvedAutoSnapPoint","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","transitionSpec","resolvedSnaps","i","point","resolvedPoint","get","push","target","shouldDismiss","transitionProgress","dismissing","set","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","animatedBackdropProps","backdropPointerEvents","backdropStyles","absoluteFill","backdropProps","style","pointerEvents","onPress","children","animatedProps","styles","props","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAA6BA,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACtE,SAASC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,QAAQ,IAAIC,OAAO,QAAQ,yBAAyB;AAC3D,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,oBAAoB,QAAQ,kDAAkD;AACvF,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,YAAY,EAAEC,aAAa,QAAQ,kCAAkC;AAC9E,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,YAAY,QAAQ,+BAA+B;AAC5D,SAASC,WAAW,QAAQ,8BAA8B;AAK1D,SAASC,iBAAiB,QAAQ,8CAA8C;AAChF,SAASC,kBAAkB,QAAQ,iCAAiC;AACpE,SAASC,oBAAoB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1D,OAAO,MAAMC,aAAa,gBAAGpB,IAAI,CAAC,SAASoB,aAAaA,CAAC;EACxDC,gBAAgB;EAChBC;AAID,CAAC,EAAE;EACF,MAAM;IAAEC;EAAQ,CAAC,GAAGd,cAAc,CAAC,CAAC;EACpC,MAAM;IAAEe;EAAc,CAAC,GAAGhB,oBAAoB,CAAC,CAAC;EAEhD,MAAMiB,iBAAiB,GAAGF,OAAO,CAACG,OAAO,CAACC,iBAAiB;EAC3D,MAAMC,QAAQ,GAAGL,OAAO,CAACM,KAAK,CAACC,GAAG;EAClC,MAAMC,UAAU,GAAGnB,cAAc,CAACoB,MAAM,CAACJ,QAAQ,CAAC;EAClD,MAAM;IAAEK,cAAc;IAAEC;EAAsB,CAAC,
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","DefaultSnapSpec","useNavigationHelpers","useDescriptors","useSlotProps","useSlotStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","usesLayerRenderProps","jsx","_jsx","BackdropLayer","backdropBehavior","isBackdropActive","current","dismissScreen","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getBag","targetProgress","animationProgress","resolvedAutoSnapPoint","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","transitionSpec","resolvedSnaps","i","point","resolvedPoint","get","push","target","shouldDismiss","transitionProgress","dismissing","set","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","animatedBackdropProps","backdropPointerEvents","backdropStyles","absoluteFill","backdropProps","style","pointerEvents","onPress","children","animatedProps","styles","props","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAA6BA,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACtE,SAASC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,QAAQ,IAAIC,OAAO,QAAQ,yBAAyB;AAC3D,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,oBAAoB,QAAQ,kDAAkD;AACvF,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,YAAY,EAAEC,aAAa,QAAQ,kCAAkC;AAC9E,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SA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,GAAG7B,aAAa,GAAGuC;QACpD,CAAC,CAAC;MACH,CAAC,CAAC,CAAC,CAAC;IACL;EACD,CAAC,EAAE,CACFhC,UAAU,EACVE,cAAc,EACdC,iBAAiB,EACjBC,qBAAqB,EACrBd,gBAAgB,EAChBE,OAAO,EACPC,aAAa,EACbI,QAAQ,CACR,CAAC;EAEF,MAAMoC,qBAAqB,GAAGrD,aAAa,CAAC,UAAU,CAAC;EACvD,MAAMsD,qBAAqB,GAAGvD,YAAY,CAAC,UAAU,CAAC;EACtD,MAAMwD,qBAAqB,GAAG5C,gBAAgB,GAAG,MAAM,GAAG,MAAM;EAChE,MAAM6C,cAAc,GAAG,CACtB/D,UAAU,CAACgE,YAAY,EACvBJ,qBAAqB,CACqB;EAC3C,MAAMK,aAAa,GAClBJ,qBAA8D;EAE/D,oBACC9C,IAAA,CAAChB,SAAS;IACTmE,KAAK,EAAElE,UAAU,CAACgE,YAAa;IAC/BG,aAAa,EAAEjD,gBAAgB,GAAG,MAAM,GAAG,MAAO;IAClDkD,OAAO,EAAElD,gBAAgB,GAAGgB,mBAAmB,GAAGyB,SAAU;IAAAU,QAAA,EAE3DrC,yBAAyB,gBACzBjB,IAAA,CAACiB,yBAAyB;MACzBkC,KAAK,EAAEH,cAAe;MACtBO,aAAa,EAAET,qBAAsB;MACrCM,aAAa,EAAEL;IAAsB,CACrC,CAAC,GACCzC,iBAAiB,gBACpBN,IAAA,CAACM,iBAAiB;MACjBkD,MAAM,EAAER,cAAe;MACvBS,KAAK,EAAEP,aAAc;MACrBE,aAAa,EAAEL;IAAsB,CACrC,CAAC,gBAEF/C,IAAA,CAACd,QAAQ,CAACwE,IAAI;MACbP,KAAK,EAAEH,cAAe;MACtBI,aAAa,EAAEL;IAAsB,CACrC;EACD,CACS,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { memo, useCallback } from "react";
|
|
4
|
-
import { StyleSheet, View } from "react-native";
|
|
4
|
+
import { I18nManager, StyleSheet, View } from "react-native";
|
|
5
5
|
import Animated from "react-native-reanimated";
|
|
6
6
|
import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../constants";
|
|
7
7
|
import { useSlotStyles } from "../../../providers/screen/styles";
|
|
@@ -63,7 +63,15 @@ const styles = StyleSheet.create({
|
|
|
63
63
|
navigationContainer: {
|
|
64
64
|
flex: 1
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
// The mask rect's translate math assumes a physical top-left base. Under
|
|
67
|
+
// native RTL a fixed-width flex child anchors to the right edge, so pin it
|
|
68
|
+
// to the physical left (`end` = left edge in RTL).
|
|
69
|
+
navigationMaskElement: I18nManager.isRTL ? {
|
|
70
|
+
backgroundColor: "white",
|
|
71
|
+
end: 0,
|
|
72
|
+
position: "absolute",
|
|
73
|
+
top: 0
|
|
74
|
+
} : {
|
|
67
75
|
backgroundColor: "white"
|
|
68
76
|
}
|
|
69
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","StyleSheet","View","Animated","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","useSlotStyles","logger","jsx","_jsx","LazyMaskedView","require","default","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","enabled","children","pointerEvents","MaskedNavigationContainer","maybeLogWarning","warn","animatedNavigationMaskStyle","animatedNavigationMaskContainerStyle","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","create","flex","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;
|
|
1
|
+
{"version":3,"names":["memo","useCallback","I18nManager","StyleSheet","View","Animated","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","useSlotStyles","logger","jsx","_jsx","LazyMaskedView","require","default","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","enabled","children","pointerEvents","MaskedNavigationContainer","maybeLogWarning","warn","animatedNavigationMaskStyle","animatedNavigationMaskContainerStyle","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","create","flex","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAASC,WAAW,EAAEC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC5E,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SACCC,kCAAkC,EAClCC,gCAAgC,QAC1B,oBAAoB;AAC3B,SAASC,aAAa,QAAQ,kCAAkC;AAChE,SAASC,MAAM,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ/C,IAAIC,cAAc,GAAGR,IAAI;AAEzB,IAAI;EACHQ,cAAc,GAAGC,OAAO,CAAC,uCAAuC,CAAC,CAACC,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;AAGD,IAAIC,0BAA0B,GAAG,KAAK;AAEtC,OAAO,MAAMC,8BAA8B,gBAAGjB,IAAI,CACjD,CAAC;EAAEkB,OAAO;EAAEC,QAAQ;EAAEC;AAAqB,CAAC,KAAK;EAChD,IAAI,CAACF,OAAO,IAAIN,cAAc,KAAKR,IAAI,EAAE;IACxC,OAAOe,QAAQ;EAChB;EAEA,oBACCR,IAAA,CAACU,yBAAyB;IAACD,aAAa,EAAEA,aAAc;IAAAD,QAAA,EACtDA;EAAQ,CACiB,CAAC;AAE9B,CACD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GACA;IACAH,eAAe,EAAE;EAClB;AACH,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js
CHANGED
|
@@ -12,6 +12,7 @@ export const useTransitionStartController = ({
|
|
|
12
12
|
}) => {
|
|
13
13
|
const {
|
|
14
14
|
targetProgress,
|
|
15
|
+
animationProgress,
|
|
15
16
|
pendingLifecycleRequestKind,
|
|
16
17
|
pendingLifecycleRequestTarget,
|
|
17
18
|
pendingLifecycleStartBlockCount
|
|
@@ -40,6 +41,7 @@ export const useTransitionStartController = ({
|
|
|
40
41
|
spec: transitionSpec,
|
|
41
42
|
animations,
|
|
42
43
|
targetProgress,
|
|
44
|
+
animationProgress,
|
|
43
45
|
onAnimationFinish
|
|
44
46
|
});
|
|
45
47
|
clearLifecycleTransitionRequest();
|
package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedReaction","LifecycleTransitionRequestKind","animateToProgress","useTransitionStartController","current","animations","system","onBlankStackCloseFinish","onNativeCloseFinish","targetProgress","pendingLifecycleRequestKind","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","clearLifecycleTransitionRequest","actions","transitionSpec","options","get","next","kind","target","blockCount","None","onAnimationFinish","BlankStackClose","NativeClose","undefined","spec"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAG7D,SACCC,8BAA8B,QAExB,8BAA8B;AACrC,SAASC,iBAAiB,QAAQ,8CAA8C;AAEhF,OAAO,MAAMC,4BAA4B,GAAGA,CAAC;EAC5CC,OAAO;EACPC,UAAU;EACVC,MAAM;EACNC,uBAAuB;EACvBC;AAOD,CAAC,KAAK;EACL,MAAM;IACLC,cAAc;IACdC,2BAA2B;IAC3BC,6BAA6B;IAC7BC;EACD,CAAC,
|
|
1
|
+
{"version":3,"names":["useAnimatedReaction","LifecycleTransitionRequestKind","animateToProgress","useTransitionStartController","current","animations","system","onBlankStackCloseFinish","onNativeCloseFinish","targetProgress","animationProgress","pendingLifecycleRequestKind","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","clearLifecycleTransitionRequest","actions","transitionSpec","options","get","next","kind","target","blockCount","None","onAnimationFinish","BlankStackClose","NativeClose","undefined","spec"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAG7D,SACCC,8BAA8B,QAExB,8BAA8B;AACrC,SAASC,iBAAiB,QAAQ,8CAA8C;AAEhF,OAAO,MAAMC,4BAA4B,GAAGA,CAAC;EAC5CC,OAAO;EACPC,UAAU;EACVC,MAAM;EACNC,uBAAuB;EACvBC;AAOD,CAAC,KAAK;EACL,MAAM;IACLC,cAAc;IACdC,iBAAiB;IACjBC,2BAA2B;IAC3BC,6BAA6B;IAC7BC;EACD,CAAC,GAAGP,MAAM;EACV,MAAM;IAAEQ;EAAgC,CAAC,GAAGR,MAAM,CAACS,OAAO;EAC1D,MAAMC,cAAc,GAAGZ,OAAO,CAACa,OAAO,CAACD,cAAc;EAErDhB,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,OAAO,CACNW,2BAA2B,CAACO,GAAG,CAAC,CAAC,EACjCN,6BAA6B,CAACM,GAAG,CAAC,CAAC,EACnCL,+BAA+B,CAACK,GAAG,CAAC,CAAC,CACrC;EACF,CAAC,EACAC,IAAI,IAAK;IACT,SAAS;;IACT,MAAM,CAACC,IAAI,EAAEC,MAAM,EAAEC,UAAU,CAAC,GAAGH,IAAI;IAEvC,IAAIC,IAAI,KAAKnB,8BAA8B,CAACsB,IAAI,EAAE;MACjD;IACD;IAEA,IAAID,UAAU,GAAG,CAAC,EAAE;MACnB;IACD;IAEA,MAAME,iBAAiB,GACtBJ,IAAI,KAAKnB,8BAA8B,CAACwB,eAAe,GACpDlB,uBAAuB,GACvBa,IAAI,KAAKnB,8BAA8B,CAACyB,WAAW,GAClDlB,mBAAmB,GACnBmB,SAAS;IAEdzB,iBAAiB,CAAC;MACjBmB,MAAM;MACNO,IAAI,EAAEZ,cAAc;MACpBX,UAAU;MACVI,cAAc;MACdC,iBAAiB;MACjBc;IACD,CAAC,CAAC;IAEFV,+BAA+B,CAAC,CAAC;EAClC,CACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -29,7 +29,10 @@ export const applyMeasuredBoundsWrites = params => {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
if (linkWrite?.type === "destination") {
|
|
32
|
-
setDestination(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group
|
|
32
|
+
setDestination(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group, {
|
|
33
|
+
handoff,
|
|
34
|
+
escapeClipping
|
|
35
|
+
});
|
|
33
36
|
}
|
|
34
37
|
};
|
|
35
38
|
//# sourceMappingURL=measured-bounds-writes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["setEntry","setDestination","setSource","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","handoff","escapeClipping","bounds","type","pairKey"],"sourceRoot":"../../../../../src","sources":["shared/providers/helpers/measured-bounds-writes.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,uCAAuC;AAChE,SAASC,cAAc,EAAEC,SAAS,QAAQ,qCAAqC;AAyB/E,OAAO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,SAAS;IACTC,OAAO;IACPC;EACD,CAAC,GAAGT,MAAM;;EAEV;EACA;EACAJ,QAAQ,CAACK,QAAQ,EAAEG,gBAAgB,EAAE;IACpCM,MAAM,EAAEL;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEI,IAAI,KAAK,QAAQ,EAAE;IACjCb,SAAS,CACRS,SAAS,CAACK,OAAO,EACjBV,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEI,IAAI,KAAK,aAAa,EAAE;IACtCd,cAAc,CACbU,SAAS,CAACK,OAAO,EACjBV,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,
|
|
1
|
+
{"version":3,"names":["setEntry","setDestination","setSource","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","handoff","escapeClipping","bounds","type","pairKey"],"sourceRoot":"../../../../../src","sources":["shared/providers/helpers/measured-bounds-writes.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,uCAAuC;AAChE,SAASC,cAAc,EAAEC,SAAS,QAAQ,qCAAqC;AAyB/E,OAAO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,SAAS;IACTC,OAAO;IACPC;EACD,CAAC,GAAGT,MAAM;;EAEV;EACA;EACAJ,QAAQ,CAACK,QAAQ,EAAEG,gBAAgB,EAAE;IACpCM,MAAM,EAAEL;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEI,IAAI,KAAK,QAAQ,EAAE;IACjCb,SAAS,CACRS,SAAS,CAACK,OAAO,EACjBV,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEI,IAAI,KAAK,aAAa,EAAE;IACtCd,cAAc,CACbU,SAAS,CAACK,OAAO,EACjBV,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;AACD,CAAC","ignoreList":[]}
|
|
@@ -10,7 +10,6 @@ import { useScreenGestureConfig } from "./hooks/use-screen-gesture-config";
|
|
|
10
10
|
import { useWalkUpAndRegisterShadowingClaims } from "./ownership/use-walk-up-and-register-shadowing-claims";
|
|
11
11
|
import { useBuildPanGesture } from "./pan/use-build-pan-gesture";
|
|
12
12
|
import { useBuildPinchGesture } from "./pinch/use-build-pinch-gesture";
|
|
13
|
-
import { useBuildRotationGesture } from "./rotation/use-build-rotation-gesture";
|
|
14
13
|
import { NO_DIRECTION_CLAIMS } from "./types";
|
|
15
14
|
export const {
|
|
16
15
|
ScreenGestureProvider,
|
|
@@ -44,22 +43,17 @@ export const {
|
|
|
44
43
|
gestureConfig,
|
|
45
44
|
gestureCompositionOwner
|
|
46
45
|
});
|
|
47
|
-
const
|
|
48
|
-
gestureConfig,
|
|
49
|
-
gestureCompositionOwner
|
|
50
|
-
});
|
|
51
|
-
const detectorGesture = useMemo(() => Gesture.Simultaneous(panGesture, pinchGesture, rotationGesture), [panGesture, pinchGesture, rotationGesture]);
|
|
46
|
+
const detectorGesture = useMemo(() => Gesture.Simultaneous(panGesture, pinchGesture), [panGesture, pinchGesture]);
|
|
52
47
|
const value = useMemo(() => ({
|
|
53
48
|
routeKey: currentScreenKey,
|
|
54
49
|
detectorGesture,
|
|
55
50
|
panGesture,
|
|
56
51
|
pinchGesture,
|
|
57
|
-
rotationGesture,
|
|
58
52
|
scrollState,
|
|
59
53
|
gestureContext,
|
|
60
54
|
claimedDirections: gestureConfig.participation.claimedDirections,
|
|
61
55
|
childDirectionClaims
|
|
62
|
-
}), [currentScreenKey, detectorGesture, panGesture, pinchGesture,
|
|
56
|
+
}), [currentScreenKey, detectorGesture, panGesture, pinchGesture, scrollState, gestureContext, gestureConfig.participation.claimedDirections, childDirectionClaims]);
|
|
63
57
|
useWalkUpAndRegisterShadowingClaims(gestureConfig.participation.claimedDirections);
|
|
64
58
|
return {
|
|
65
59
|
value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","Gesture","useSharedValue","ScrollStore","createProvider","useDescriptorDerivations","useScreenGestureConfig","useWalkUpAndRegisterShadowingClaims","useBuildPanGesture","useBuildPinchGesture","
|
|
1
|
+
{"version":3,"names":["useMemo","Gesture","useSharedValue","ScrollStore","createProvider","useDescriptorDerivations","useScreenGestureConfig","useWalkUpAndRegisterShadowingClaims","useBuildPanGesture","useBuildPinchGesture","NO_DIRECTION_CLAIMS","ScreenGestureProvider","useScreenGestureContext","useGestureContext","guarded","children","gestureContext","gestureConfig","currentScreenKey","scrollState","getValue","childDirectionClaims","gestureCompositionOwner","panGesture","pinchGesture","detectorGesture","Simultaneous","value","routeKey","claimedDirections","participation"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/gestures/gestures.provider.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,OAAO,QAAQ,8BAA8B;AACtD,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,SAASC,wBAAwB,QAAQ,gBAAgB;AACzD,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,mCAAmC,QAAQ,uDAAuD;AAC3G,SAASC,kBAAkB,QAAQ,6BAA6B;AAChE,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAICC,mBAAmB,QACb,SAAS;AAMhB,OAAO,MAAM;EACZC,qBAAqB;EACrBC,uBAAuB,EAAEC;AAC1B,CAAC,GAAGT,cAAc,CAAC,eAAe,EAAE;EAAEU,OAAO,EAAE;AAAM,CAAC,CAAC,CAGrD,CAAC;EAAEC;AAAS,CAAC,KAA+D;EAC7E,MAAMC,cAAc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reen, dimensions,
|
|
|
124
124
|
emitWillAnimate: false,
|
|
125
125
|
markEntering: false,
|
|
126
126
|
targetProgress: system.targetProgress,
|
|
127
|
+
animationProgress: system.animationProgress,
|
|
127
128
|
animations,
|
|
128
129
|
initialVelocity: plan.progressVelocity
|
|
129
130
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clamp","runOnJS","EPSILON","FALSE","TRUE","animateToProgress","emit","normalizeGestureTranslation","resolveGestureVelocity","snapshotGestureHandoff","clearFocalPoint","clearPanTrackingValues","clearTransformTrackingValues","buildPanReleasePlan","resetPanGestureValues","startPanBase","runtime","stores","gestures","animations","wasSettling","settling","get","hasResidualGesture","Math","abs","normX","normY","normScale","rotation","willAnimate","dragging","set","dismissing","internal","progressBaseline","transitionProgress","trackPanGesture","event","rawEvent","dimensions","translationX","x","translationY","y","rawX","rawY","velocityX","velocityY","width","height","rawNormX","rawNormY","velocity","max","progressDeltaX","progressDeltaY","raw","finalizePanRelease","release","dismissScreen","requestDismiss","gestureCompositionOwner","policy","system","canDriveRelease","plan","target","shouldDismiss","initialVelocity","transitionSpec","undefined","resetSpec","open","commitProgress","targetProgress","handoffVelocity","updateLifecycle","progressAlreadyAtTarget","progressAnimating","onAnimationFinish","spec","emitWillAnimate","markEntering","progressVelocity"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,OAAO,QAA0B,yBAAyB;AAC1E,SAASC,OAAO,EAAEC,KAAK,EAAEC,IAAI,QAAQ,0BAA0B;AAC/D,SAASC,iBAAiB,QAAQ,oDAAoD;AACtF,SAASC,IAAI,QAAQ,qCAAqC;AAC1D,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,sBAAsB;AAC7B,SAASC,sBAAsB,QAAQ,uBAAuB;AAC9D,SACCC,eAAe,EACfC,sBAAsB,EACtBC,4BAA4B,QACtB,qBAAqB;AAS5B,SAASC,m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EAAE,KAAK;IACnBR,cAAc,EAAEX,MAAM,CAACW,cAAc;
|
|
1
|
+
{"version":3,"names":["clamp","runOnJS","EPSILON","FALSE","TRUE","animateToProgress","emit","normalizeGestureTranslation","resolveGestureVelocity","snapshotGestureHandoff","clearFocalPoint","clearPanTrackingValues","clearTransformTrackingValues","buildPanReleasePlan","resetPanGestureValues","startPanBase","runtime","stores","gestures","animations","wasSettling","settling","get","hasResidualGesture","Math","abs","normX","normY","normScale","rotation","willAnimate","dragging","set","dismissing","internal","progressBaseline","transitionProgress","trackPanGesture","event","rawEvent","dimensions","translationX","x","translationY","y","rawX","rawY","velocityX","velocityY","width","height","rawNormX","rawNormY","velocity","max","progressDeltaX","progressDeltaY","raw","finalizePanRelease","release","dismissScreen","requestDismiss","gestureCompositionOwner","policy","system","canDriveRelease","plan","target","shouldDismiss","initialVelocity","transitionSpec","undefined","resetSpec","open","commitProgress","targetProgress","handoffVelocity","updateLifecycle","progressAlreadyAtTarget","progressAnimating","onAnimationFinish","spec","emitWillAnimate","markEntering","animationProgress","progressVelocity"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,OAAO,QAA0B,yBAAyB;AAC1E,SAASC,OAAO,EAAEC,KAAK,EAAEC,IAAI,QAAQ,0BAA0B;AAC/D,SAASC,iBAAiB,QAAQ,oDAAoD;AACtF,SAASC,IAAI,QAAQ,qCAAqC;AAC1D,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,sBAAsB;AAC7B,SAASC,sBAAsB,QAAQ,uBAAuB;AAC9D,SACCC,eAAe,EACfC,sBAAsB,EACtBC,4BAA4B,QACtB,qBAAqB;AAS5B,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,qBAAqB,QAAQ,aAAa;AAEnD,OAAO,MAAMC,YAAY,GAAIC,OAA0B,IAAK;EAC3D,SAAS;;EACT,MAAM;IACLC,MAAM,EAAE;MAA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vB,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
+
import { useSharedValue } from "react-native-reanimated";
|
|
4
5
|
import { resolvePinchRuntime } from "../../shared/runtime";
|
|
5
6
|
export const updateAbsolutePinchFocalPoint = (event, gestures, captureOrigin) => {
|
|
6
7
|
"worklet";
|
|
@@ -19,11 +20,41 @@ export const updateAbsolutePinchFocalPoint = (event, gestures, captureOrigin) =>
|
|
|
19
20
|
gestures.pinchOriginY.set(focalY);
|
|
20
21
|
}
|
|
21
22
|
};
|
|
23
|
+
export const updatePinchRotation = (event, gestures, lastAngle, accumulatedRotation, captureOrigin) => {
|
|
24
|
+
"worklet";
|
|
25
|
+
|
|
26
|
+
const firstTouch = event.allTouches[0];
|
|
27
|
+
const secondTouch = event.allTouches[1];
|
|
28
|
+
if (!firstTouch || !secondTouch) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const angle = Math.atan2(secondTouch.absoluteY - firstTouch.absoluteY, secondTouch.absoluteX - firstTouch.absoluteX);
|
|
32
|
+
if (captureOrigin) {
|
|
33
|
+
lastAngle.set(angle);
|
|
34
|
+
accumulatedRotation.set(0);
|
|
35
|
+
gestures.rotation.set(0);
|
|
36
|
+
gestures.raw.rotation.set(0);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
let angleDelta = angle - lastAngle.get();
|
|
40
|
+
if (angleDelta > Math.PI) {
|
|
41
|
+
angleDelta -= 2 * Math.PI;
|
|
42
|
+
} else if (angleDelta < -Math.PI) {
|
|
43
|
+
angleDelta += 2 * Math.PI;
|
|
44
|
+
}
|
|
45
|
+
const rotation = accumulatedRotation.get() + angleDelta;
|
|
46
|
+
lastAngle.set(angle);
|
|
47
|
+
accumulatedRotation.set(rotation);
|
|
48
|
+
gestures.rotation.set(rotation);
|
|
49
|
+
gestures.raw.rotation.set(rotation);
|
|
50
|
+
};
|
|
22
51
|
export const usePinchActivation = ({
|
|
23
52
|
runtime,
|
|
24
53
|
screenOptions,
|
|
25
54
|
gestureCompositionOwner
|
|
26
55
|
}) => {
|
|
56
|
+
const lastAngle = useSharedValue(0);
|
|
57
|
+
const accumulatedRotation = useSharedValue(0);
|
|
27
58
|
const onTouchesDown = useCallback((event, stateManager) => {
|
|
28
59
|
"worklet";
|
|
29
60
|
|
|
@@ -38,6 +69,7 @@ export const usePinchActivation = ({
|
|
|
38
69
|
}
|
|
39
70
|
if (event.numberOfTouches === 2) {
|
|
40
71
|
updateAbsolutePinchFocalPoint(event, latestRuntime.stores.gestures, true);
|
|
72
|
+
updatePinchRotation(event, latestRuntime.stores.gestures, lastAngle, accumulatedRotation, true);
|
|
41
73
|
if (gestureCompositionOwner.get() === null) {
|
|
42
74
|
gestureCompositionOwner.set("pinch");
|
|
43
75
|
}
|
|
@@ -47,7 +79,7 @@ export const usePinchActivation = ({
|
|
|
47
79
|
if (event.numberOfTouches > 2) {
|
|
48
80
|
stateManager?.fail();
|
|
49
81
|
}
|
|
50
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
82
|
+
}, [runtime, screenOptions, gestureCompositionOwner, lastAngle, accumulatedRotation]);
|
|
51
83
|
const onTouchesMove = useCallback((event, stateManager) => {
|
|
52
84
|
"worklet";
|
|
53
85
|
|
|
@@ -62,6 +94,7 @@ export const usePinchActivation = ({
|
|
|
62
94
|
}
|
|
63
95
|
if (event.numberOfTouches === 2) {
|
|
64
96
|
updateAbsolutePinchFocalPoint(event, latestRuntime.stores.gestures, false);
|
|
97
|
+
updatePinchRotation(event, latestRuntime.stores.gestures, lastAngle, accumulatedRotation, false);
|
|
65
98
|
if (gestureCompositionOwner.get() === null) {
|
|
66
99
|
gestureCompositionOwner.set("pinch");
|
|
67
100
|
}
|
|
@@ -71,7 +104,7 @@ export const usePinchActivation = ({
|
|
|
71
104
|
if (event.numberOfTouches > 2) {
|
|
72
105
|
stateManager.fail();
|
|
73
106
|
}
|
|
74
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
107
|
+
}, [runtime, screenOptions, gestureCompositionOwner, lastAngle, accumulatedRotation]);
|
|
75
108
|
return useMemo(() => ({
|
|
76
109
|
onTouchesDown,
|
|
77
110
|
onTouchesMove
|
package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useMemo","resolvePinchRuntime","updateAbsolutePinchFocalPoint","event","gestures","captureOrigin","firstTouch","allTouches","secondTouch","focalX","absoluteX","focalY","absoluteY","set","pinchOriginX","pinchOriginY","usePinchActivation","runtime","screenOptions","gestureCompositionOwner","onTouchesDown","stateManager","latestRuntime","
|
|
1
|
+
{"version":3,"names":["useCallback","useMemo","useSharedValue","resolvePinchRuntime","updateAbsolutePinchFocalPoint","event","gestures","captureOrigin","firstTouch","allTouches","secondTouch","focalX","absoluteX","focalY","absoluteY","set","pinchOriginX","pinchOriginY","updatePinchRotation","lastAngle","accumulatedRotation","angle","Math","atan2","rotation","raw","angleDelta","get","PI","usePinchActivation","runtime","screenOptions","gestureCompositionOwner","onTouchesDown","stateManager","latestRuntime","participation","policy","canTrackGesture","enabled","fail","numberOfTouches","stores","activate","onTouchesMove"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAK5C,SAA2BC,cAAc,QAAQ,yBAAyB;AAG1E,SAASC,mBAAmB,QAAQ,sBAAsB;AAG1D,OAAO,MAAMC,6BAA6B,GAAGA,CAC5CC,KAAwB,EACxBC,QAAyB,EACzBC,aAAsB,KAClB;EACJ,SAAS;;EACT,MAAMC,UAAU,GAAGH,KAAK,CAACI,UAAU,CAAC,CAAC,CAAC;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7Ba,SAAS,EACTC,mBAAmB,EACnB,KACD,CAAC;MACD,IAAIY,uBAAuB,CAACL,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;QAC3CK,uBAAuB,CAACjB,GAAG,CAAC,OAAO,CAAC;MACrC;MACAmB,YAAY,CAACS,QAAQ,CAAC,CAAC;MACvB;IACD;IAEA,IAAItC,KAAK,CAACoC,eAAe,GAAG,CAAC,EAAE;MAC9BP,YAAY,CAACM,IAAI,CAAC,CAAC;IACpB;EACD,CAAC,EACD,CACCV,OAAO,EACPC,aAAa,EACbC,uBAAuB,EACvBb,SAAS,EACTC,mBAAmB,CAErB,CAAC;EAED,OAAOnB,OAAO,CACb,OAAO;IAAEgC,aAAa;IAAEW;EAAc,CAAC,CAAC,EACxC,CAACX,aAAa,EAAEW,aAAa,CAC9B,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -86,6 +86,7 @@ export const finalizePinchRelease = (release, runtime, dismissScreen, requestDis
|
|
|
86
86
|
markEntering: false,
|
|
87
87
|
animations,
|
|
88
88
|
targetProgress: system.targetProgress,
|
|
89
|
+
animationProgress: system.animationProgress,
|
|
89
90
|
initialVelocity: release.initialVelocity
|
|
90
91
|
});
|
|
91
92
|
};
|