react-native-screen-transitions 4.0.0-alpha.0 → 4.0.0-alpha.2
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/animation/snap-to.js +2 -0
- package/lib/commonjs/animation/snap-to.js.map +1 -1
- package/lib/commonjs/components/boundary/components/boundary-target.js +19 -20
- package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/components/boundary/create-boundary-component.js +16 -2
- package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/index.js +4 -3
- package/lib/commonjs/components/boundary/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +47 -188
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js +1 -12
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +40 -33
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +46 -131
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js +45 -9
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +2 -29
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/handoff-target.js +33 -0
- package/lib/commonjs/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js +1 -10
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +18 -36
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/commonjs/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js +29 -0
- package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/commonjs/components/masked-view.js +9 -1
- package/lib/commonjs/components/masked-view.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/backdrop.js +3 -1
- package/lib/commonjs/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js +9 -1
- package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/navigators/react-navigation/index.js +7 -8
- package/lib/commonjs/navigators/react-navigation/index.js.map +1 -1
- package/lib/commonjs/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/commonjs/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js +37 -3
- package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js +42 -0
- package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/links.js +4 -4
- package/lib/commonjs/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/stores/scroll.store.js +20 -2
- package/lib/commonjs/stores/scroll.store.js.map +1 -1
- package/lib/commonjs/stores/system.store.js +2 -0
- package/lib/commonjs/stores/system.store.js.map +1 -1
- package/lib/commonjs/utils/animation/animate-to-progress.js +23 -1
- package/lib/commonjs/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/utils/animation/animate.js +14 -2
- package/lib/commonjs/utils/animation/animate.js.map +1 -1
- package/lib/commonjs/utils/animation/spring/spring.js +22 -2
- package/lib/commonjs/utils/animation/spring/spring.js.map +1 -1
- package/lib/commonjs/utils/animation/spring/springUtils.js +96 -0
- package/lib/commonjs/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/commonjs/utils/animation/state.js +4 -0
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js +17 -5
- package/lib/commonjs/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js +44 -20
- package/lib/commonjs/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js +2 -31
- package/lib/commonjs/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js +3 -17
- package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/animation/snap-to.js +2 -0
- package/lib/module/animation/snap-to.js.map +1 -1
- package/lib/module/components/boundary/components/boundary-target.js +19 -20
- package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/components/boundary/create-boundary-component.js +17 -3
- package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/components/boundary/index.js +3 -2
- package/lib/module/components/boundary/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +49 -190
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
- package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js +2 -13
- package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +43 -36
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +50 -135
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js +44 -9
- package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -27
- package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/handoff-target.js +28 -0
- package/lib/module/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/module/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/module/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/teleport-control.js +0 -8
- package/lib/module/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/components/boundary/providers/boundary-root.provider.js +19 -37
- package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/module/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/components/boundary/utils/resolve-boundary-target.js +24 -0
- package/lib/module/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/module/components/masked-view.js +10 -2
- package/lib/module/components/masked-view.js.map +1 -1
- package/lib/module/components/screen-container/layers/backdrop.js +3 -1
- package/lib/module/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js +10 -2
- package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/navigators/react-navigation/index.js +4 -6
- package/lib/module/navigators/react-navigation/index.js.map +1 -1
- package/lib/module/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/module/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/module/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js +35 -2
- package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/module/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js +35 -0
- package/lib/module/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/module/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/stores/bounds/internals/links.js +4 -4
- package/lib/module/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/stores/scroll.store.js +17 -0
- package/lib/module/stores/scroll.store.js.map +1 -1
- package/lib/module/stores/system.store.js +2 -0
- package/lib/module/stores/system.store.js.map +1 -1
- package/lib/module/utils/animation/animate-to-progress.js +21 -0
- package/lib/module/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/utils/animation/animate.js +14 -2
- package/lib/module/utils/animation/animate.js.map +1 -1
- package/lib/module/utils/animation/spring/spring.js +23 -3
- package/lib/module/utils/animation/spring/spring.js.map +1 -1
- package/lib/module/utils/animation/spring/springUtils.js +95 -0
- package/lib/module/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/module/utils/animation/state.js +2 -0
- package/lib/module/utils/bounds/navigation/reveal/math.js +16 -5
- package/lib/module/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/build.js +46 -22
- package/lib/module/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/drag.js +2 -30
- package/lib/module/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/module/utils/bounds/navigation/zoom/helpers.js +4 -18
- package/lib/module/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/typescript/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/components/boundary/components/boundary-target.d.ts +2 -1
- package/lib/typescript/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +3 -4
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/index.d.ts +6 -9
- package/lib/typescript/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +1 -3
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts +1 -10
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +1 -3
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +2 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts +2 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -10
- package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/handoff-target.d.ts +12 -0
- package/lib/typescript/components/boundary/portal/utils/handoff-target.d.ts.map +1 -0
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -3
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts +0 -4
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +8 -12
- package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts +1 -0
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts +12 -0
- package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts.map +1 -0
- package/lib/typescript/components/create-transition-aware-component.d.ts +5 -6
- package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/components/masked-view.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +650 -702
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts +6 -17
- package/lib/typescript/navigators/react-navigation/index.d.ts.map +1 -1
- package/lib/typescript/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -1
- package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/types.d.ts +1 -9
- package/lib/typescript/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts +18 -0
- package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts +2 -2
- package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts +4 -4
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
- package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/links.d.ts +1 -1
- package/lib/typescript/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/stores/scroll.store.d.ts +7 -0
- package/lib/typescript/stores/scroll.store.d.ts.map +1 -1
- package/lib/typescript/stores/system.store.d.ts +5 -0
- package/lib/typescript/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate-to-progress.d.ts +6 -1
- package/lib/typescript/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate.d.ts +2 -2
- package/lib/typescript/utils/animation/animate.d.ts.map +1 -1
- package/lib/typescript/utils/animation/spring/spring.d.ts +2 -2
- package/lib/typescript/utils/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/utils/animation/spring/springUtils.d.ts +3 -0
- package/lib/typescript/utils/animation/spring/springUtils.d.ts.map +1 -1
- package/lib/typescript/utils/animation/state.d.ts +6 -0
- package/lib/typescript/utils/animation/state.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts +9 -0
- package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts +2 -11
- package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts +7 -4
- package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/animation/snap-to.ts +5 -0
- package/src/components/boundary/components/boundary-target.tsx +37 -23
- package/src/components/boundary/create-boundary-component.tsx +29 -3
- package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +11 -0
- package/src/components/boundary/hooks/use-boundary-measurement.ts +3 -9
- package/src/components/boundary/index.tsx +4 -8
- package/src/components/boundary/portal/components/boundary-content-portal/components/host.tsx +5 -1
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +73 -276
- package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
- package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +2 -12
- package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +64 -62
- package/src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +2 -9
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +73 -187
- package/src/components/boundary/portal/components/boundary-portal/index.tsx +72 -12
- package/src/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts +0 -1
- package/src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +2 -39
- package/src/components/boundary/portal/utils/handoff-target.ts +48 -0
- package/src/components/boundary/portal/utils/resolve-portal.ts +26 -18
- package/src/components/boundary/portal/utils/teleport-control.ts +0 -12
- package/src/components/boundary/providers/boundary-root.provider.tsx +28 -80
- package/src/components/boundary/utils/refresh-signals.ts +8 -0
- package/src/components/boundary/utils/resolve-boundary-target.tsx +39 -0
- package/src/components/masked-view.tsx +20 -4
- package/src/components/screen-container/layers/backdrop.tsx +3 -1
- package/src/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
- package/src/components/screen-lifecycle/hooks/use-transition-start-controller.ts +2 -0
- package/src/navigators/react-navigation/index.tsx +4 -48
- package/src/providers/helpers/measured-bounds-writes.ts +1 -0
- package/src/providers/screen/gestures/gestures.provider.tsx +2 -10
- package/src/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
- package/src/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
- package/src/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +1 -0
- package/src/providers/screen/gestures/pinch/behavior/pinch-release.ts +2 -4
- package/src/providers/screen/gestures/types.ts +0 -14
- package/src/providers/screen/styles/helpers/transition-visual-state.ts +44 -0
- package/src/providers/screen/styles/helpers/visibility-gate.ts +17 -7
- package/src/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +30 -15
- package/src/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -13
- package/src/stores/bounds/internals/links.ts +13 -2
- package/src/stores/scroll.store.ts +23 -0
- package/src/stores/system.store.ts +8 -0
- package/src/utils/animation/animate-to-progress.ts +59 -28
- package/src/utils/animation/animate.ts +18 -2
- package/src/utils/animation/spring/spring.ts +36 -1
- package/src/utils/animation/spring/springUtils.ts +130 -0
- package/src/utils/animation/state.ts +8 -0
- package/src/utils/bounds/navigation/reveal/math.ts +21 -5
- package/src/utils/bounds/navigation/zoom/build.ts +77 -23
- package/src/utils/bounds/navigation/zoom/drag.ts +3 -42
- package/src/utils/bounds/navigation/zoom/helpers.ts +9 -23
- package/lib/commonjs/components/boundary/hooks/use-register-target.js +0 -32
- package/lib/commonjs/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -52
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/ownership.js +0 -220
- package/lib/commonjs/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js +0 -29
- package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/commonjs/components/boundary/portal/utils/visible-host.js +0 -25
- package/lib/commonjs/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -64
- package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -21
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -29
- package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -38
- package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js +0 -32
- package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/module/components/boundary/hooks/use-register-target.js +0 -27
- package/lib/module/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -47
- package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/ownership.js +0 -213
- package/lib/module/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/shallow-equal.js +0 -24
- package/lib/module/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/visible-host.js +0 -20
- package/lib/module/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -59
- package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -15
- package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -24
- package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -33
- package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/module/providers/screen/styles/helpers/opening-phase.js +0 -26
- package/lib/module/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/typescript/components/boundary/hooks/use-register-target.d.ts +0 -10
- package/lib/typescript/components/boundary/hooks/use-register-target.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +0 -13
- package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/ownership.d.ts +0 -34
- package/lib/typescript/components/boundary/portal/utils/ownership.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts +0 -8
- package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts +0 -8
- package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts +0 -15
- package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts +0 -4
- package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts +0 -5
- package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts.map +0 -1
- package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts +0 -9
- package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts.map +0 -1
- package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts +0 -16
- package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts.map +0 -1
- package/src/components/boundary/hooks/use-register-target.ts +0 -43
- package/src/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +0 -80
- package/src/components/boundary/portal/utils/ownership.ts +0 -319
- package/src/components/boundary/portal/utils/shallow-equal.ts +0 -25
- package/src/components/boundary/portal/utils/visible-host.ts +0 -24
- package/src/providers/screen/gestures/rotation/activation/use-rotation-activation.ts +0 -88
- package/src/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts +0 -19
- package/src/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts +0 -47
- package/src/providers/screen/gestures/rotation/use-build-rotation-gesture.ts +0 -50
- package/src/providers/screen/styles/helpers/opening-phase.ts +0 -25
|
@@ -15,7 +15,7 @@ var _useBoundaryMeasurement = require("../hooks/use-boundary-measurement");
|
|
|
15
15
|
var _resolvePortal = require("../portal/utils/resolve-portal");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
// logger.warn prepends the library prefix.
|
|
18
|
-
const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first
|
|
18
|
+
const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first target in render order will be measured.";
|
|
19
19
|
const TARGET_OUTSIDE_ROOT_WARNING = exports.TARGET_OUTSIDE_ROOT_WARNING = "Boundary.Target must be rendered inside Transition.Boundary or a component created by createBoundaryComponent.";
|
|
20
20
|
const {
|
|
21
21
|
BoundaryRootProvider,
|
|
@@ -31,8 +31,11 @@ const {
|
|
|
31
31
|
forwardedRef,
|
|
32
32
|
group,
|
|
33
33
|
handoff,
|
|
34
|
+
hasTarget,
|
|
34
35
|
id,
|
|
35
|
-
style
|
|
36
|
+
style,
|
|
37
|
+
targetCount,
|
|
38
|
+
targetStyle
|
|
36
39
|
}) => {
|
|
37
40
|
const requestedBoundTag = (0, _react.useMemo)(() => (0, _linkPairs.createBoundTag)(String(id), group), [id, group]);
|
|
38
41
|
const portalRuntime = (0, _resolvePortal.resolveBoundaryPortal)({
|
|
@@ -60,30 +63,13 @@ const {
|
|
|
60
63
|
const associatedStyles = (0, _styles.useComposedSlotStyles)(boundTag.tag, style);
|
|
61
64
|
const associatedStackingStyles = (0, _styles.useSlotStackingStyles)(boundTag.tag);
|
|
62
65
|
const rootRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (__DEV__ && prev !== null) {
|
|
71
|
-
_logger.logger.warnOnce("boundary:multiple-targets", MULTIPLE_TARGETS_WARNING);
|
|
72
|
-
}
|
|
73
|
-
return prev ?? {
|
|
74
|
-
ref: targetRef,
|
|
75
|
-
measurementRef: measurementRef ?? targetRef,
|
|
76
|
-
preparedStyles
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
}, []);
|
|
80
|
-
const unregisterTargetRef = (0, _react.useCallback)(targetRef => {
|
|
81
|
-
setTargetEntry(prev => prev?.ref === targetRef ? null : prev);
|
|
82
|
-
}, []);
|
|
83
|
-
const rootMeasurementRef = shouldEscapeBoundaryRootToScreenHost ? rootEscapePlaceholderRef : rootRef;
|
|
84
|
-
const measuredRef = targetEntry?.measurementRef ?? rootMeasurementRef;
|
|
85
|
-
const hasActiveTarget = targetEntry !== null;
|
|
86
|
-
const targetPreparedStyles = targetEntry?.preparedStyles;
|
|
66
|
+
const measurementRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
67
|
+
(0, _react.useLayoutEffect)(() => {
|
|
68
|
+
if (__DEV__ && targetCount > 1) {
|
|
69
|
+
_logger.logger.warnOnce("boundary:multiple-targets", MULTIPLE_TARGETS_WARNING);
|
|
70
|
+
}
|
|
71
|
+
}, [targetCount]);
|
|
72
|
+
const measuredRef = hasTarget || shouldEscapeBoundaryRootToScreenHost ? measurementRef : rootRef;
|
|
87
73
|
(0, _react.useImperativeHandle)(forwardedRef, () => rootRef.current, [rootRef]);
|
|
88
74
|
(0, _useBoundaryMeasurement.useBoundaryMeasurement)({
|
|
89
75
|
boundTag,
|
|
@@ -91,13 +77,12 @@ const {
|
|
|
91
77
|
runtimeEnabled,
|
|
92
78
|
currentScreenKey,
|
|
93
79
|
measuredRef,
|
|
94
|
-
style,
|
|
95
|
-
targetPreparedStyles,
|
|
80
|
+
style: hasTarget ? targetStyle : style,
|
|
96
81
|
handoff: portalRuntime.handoff,
|
|
97
82
|
escapeClipping: portalRuntime.escapeClipping,
|
|
98
83
|
config
|
|
99
84
|
});
|
|
100
|
-
const shouldRenderBoundaryRootThroughPortal = shouldEscapeBoundaryRootToScreenHost && !
|
|
85
|
+
const shouldRenderBoundaryRootThroughPortal = shouldEscapeBoundaryRootToScreenHost && !hasTarget;
|
|
101
86
|
const handoffEnabled = enabled && portalRuntime.handoff;
|
|
102
87
|
// A nested active target takes the full associated style, so the root keeps
|
|
103
88
|
// only its stacking context. Root-owned escape-clipping moves the root
|
|
@@ -106,21 +91,18 @@ const {
|
|
|
106
91
|
// Host-only handoff receivers still need the associated style: their
|
|
107
92
|
// handoff host is absolute-filled inside this root, so the root is the
|
|
108
93
|
// visual frame that animates the received payload.
|
|
109
|
-
const attachedStyle = shouldAttachAssociatedStyles ?
|
|
94
|
+
const attachedStyle = shouldAttachAssociatedStyles ? hasTarget ? associatedStackingStyles : shouldRenderBoundaryRootThroughPortal ? undefined : associatedStyles : undefined;
|
|
110
95
|
const value = (0, _react.useMemo)(() => ({
|
|
111
96
|
attachedStyle,
|
|
112
|
-
activeTargetRef: targetEntry?.ref ?? null,
|
|
113
97
|
boundTag,
|
|
114
98
|
currentScreenKey,
|
|
115
99
|
handoffEnabled,
|
|
100
|
+
measurementRef,
|
|
116
101
|
portalRuntime,
|
|
117
|
-
registerTargetRef,
|
|
118
102
|
ref: rootRef,
|
|
119
|
-
rootEscapePlaceholderRef,
|
|
120
103
|
shouldRenderBoundaryRootThroughPortal,
|
|
121
|
-
shouldRenderHandoffHost: handoffEnabled && !
|
|
122
|
-
|
|
123
|
-
}), [attachedStyle, boundTag, currentScreenKey, handoffEnabled, hasActiveTarget, portalRuntime, registerTargetRef, rootRef, rootEscapePlaceholderRef, shouldRenderBoundaryRootThroughPortal, targetEntry, unregisterTargetRef]);
|
|
104
|
+
shouldRenderHandoffHost: handoffEnabled && !hasTarget
|
|
105
|
+
}), [attachedStyle, boundTag, currentScreenKey, handoffEnabled, hasTarget, measurementRef, portalRuntime, rootRef, shouldRenderBoundaryRootThroughPortal]);
|
|
124
106
|
return {
|
|
125
107
|
value,
|
|
126
108
|
children: children(value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_descriptors","_styles","_linkPairs","_createProvider","_interopRequireDefault","_logger","_useBoundaryMeasurement","_resolvePortal","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","useBoundaryRootStore","createProvider","guarded","children","config","enabled","escapeClipping","forwardedRef","group","handoff","id","style","requestedBoundTag","useMemo","createBoundTag","String","portalRuntime","resolveBoundaryPortal","currentScreenKey","useDescriptorsStore","s","derivations","currentActivity","descriptors","current","activity","retainedBoundTagRef","useRef","shouldRetainClosingBoundTag","boundTag","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","shouldEscapeBoundaryRootToScreenHost","associatedStyles","useComposedSlotStyles","tag","associatedStackingStyles","useSlotStackingStyles","rootRef","useAnimatedRef","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_descriptors","_styles","_linkPairs","_createProvider","_interopRequireDefault","_logger","_useBoundaryMeasurement","_resolvePortal","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","useBoundaryRootStore","createProvider","guarded","children","config","enabled","escapeClipping","forwardedRef","group","handoff","hasTarget","id","style","targetCount","targetStyle","requestedBoundTag","useMemo","createBoundTag","String","portalRuntime","resolveBoundaryPortal","currentScreenKey","useDescriptorsStore","s","derivations","currentActivity","descriptors","current","activity","retainedBoundTagRef","useRef","shouldRetainClosingBoundTag","boundTag","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","shouldEscapeBoundaryRootToScreenHost","associatedStyles","useComposedSlotStyles","tag","associatedStackingStyles","useSlotStackingStyles","rootRef","useAnimatedRef","measurementRef","useLayoutEffect","__DEV__","logger","warnOnce","measuredRef","useImperativeHandle","useBoundaryMeasurement","shouldRenderBoundaryRootThroughPortal","handoffEnabled","attachedStyle","undefined","value","ref","shouldRenderHandoffHost"],"sourceRoot":"../../../../../src","sources":["components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAC,sBAA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ACV,OAAO;IAC9BH,cAAc,EAAEa,aAAa,CAACb,cAAc;IAC5CF;EACD,CAAC,CAAC;EAEF,MAAMgD,qCAAqC,GAC1ChB,oCAAoC,IAAI,CAAC1B,SAAS;EACnD,MAAM2C,cAAc,GAAGhD,OAAO,IAAIc,aAAa,CAACV,OAAO;EACvD;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAM6C,aAAa,GAAGnB,4BAA4B,GAC/CzB,SAAS,GACR8B,wBAAwB,GACxBY,qCAAqC,GACpCG,SAAS,GACTlB,gBAAgB,GAClBkB,SAAS;EAEZ,MAAMC,KAAK,GAAG,IAAAxC,cAAO,EACpB,OAAO;IACNsC,aAAa;IACbtB,QAAQ;IACRX,gBAAgB;IAChBgC,cAAc;IACdT,cAAc;IACdzB,aAAa;IACbsC,GAAG,EAAEf,OAAO;IACZU,qCAAqC;IACrCM,uBAAuB,EAAEL,cAAc,IAAI,CAAC3C;EAC7C,CAAC,CAAC,EACF,CACC4C,aAAa,EACbtB,QAAQ,EACRX,gBAAgB,EAChBgC,cAAc,EACd3C,SAAS,EACTkC,cAAc,EACdzB,aAAa,EACbuB,OAAO,EACPU,qCAAqC,CAEvC,CAAC;EAED,OAAO;IACNI,KAAK;IACLrD,QAAQ,EAAEA,QAAQ,CAACqD,KAAK;EACzB,CAAC;AACF,CACD,CAAC;AAAC3D,OAAA,CAAAG,oBAAA,GAAAA,oBAAA;AAAAH,OAAA,CAAAE,sBAAA,GAAAA,sBAAA;AAAAF,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -33,9 +33,16 @@ const getRefreshBoundarySignal = params => {
|
|
|
33
33
|
entering,
|
|
34
34
|
animating,
|
|
35
35
|
progress,
|
|
36
|
+
gestureInProgress,
|
|
36
37
|
linkState
|
|
37
38
|
} = params;
|
|
38
39
|
if (!enabled) return null;
|
|
40
|
+
|
|
41
|
+
// This is temporary for a patch fix. However, this architecture should
|
|
42
|
+
// change: our signals aren't currently doing their intended job, so right
|
|
43
|
+
// now we'll add one more guard until the shape is much more tested and
|
|
44
|
+
// bulletproof.
|
|
45
|
+
if (gestureInProgress) return null;
|
|
39
46
|
const canRefreshPreCloseDestination = shouldRefresh && closing && !entering && !animating && progress >= 1;
|
|
40
47
|
const canRefreshSettledDestination = shouldRefresh && !closing && !entering;
|
|
41
48
|
|
|
@@ -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","exports"],"sourceRoot":"../../../../../src","sources":["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;AAEM,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","exports"],"sourceRoot":"../../../../../src","sources":["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;AAEM,MAAMG,wBAAwB,GAAIC,MAgBxC,IAAmC;EACnC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,gBAAgB;IAChBC,aAAa;IACbC,kBAAkB;IAClBC,0BAA0B;IAC1BC,aAAa;IACbC,MAAM;IACNC,KAAK;IACLC,aAAa;IACbC,OAAO;IACPC,QAAQ;IACRC,SAAS;IACTC,QAAQ;IACRC,iBAAiB;IACjBC;EACD,CAAC,GAAGf,MAAM;EAEV,IAAI,CAACC,OAAO,EAAE,OAAO,IAAI;;EAEzB;EACA;EACA;EACA;EACA,IAAIa,iBAAiB,EAAE,OAAO,IAAI;EAElC,MAAME,6BAA6B,GAClCP,aAAa,IAAIC,OAAO,IAAI,CAACC,QAAQ,IAAI,CAACC,SAAS,IAAIC,QAAQ,IAAI,CAAC;EAErE,MAAMI,4BAA4B,GAAGR,aAAa,IAAI,CAACC,OAAO,IAAI,CAACC,QAAQ;;EAE3E;EACA;EACA;EACA,IAAI,CAACK,6BAA6B,IAAI,CAACC,4BAA4B,EAAE;IACpE,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;EACA,IAAI,CAACT,KAAK,EAAE;IACX,MAAMU,yBAAyB,GAC9Bd,kBAAkB,KACjBE,aAAa,GAAGa,SAAS,GAAGd,0BAA0B,C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|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveBoundaryTarget = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const resolveBoundaryTarget = (children, options) => {
|
|
9
|
+
let target = null;
|
|
10
|
+
let targetCount = 0;
|
|
11
|
+
const map = nodes => _react.Children.map(nodes, node => {
|
|
12
|
+
if (! /*#__PURE__*/(0, _react.isValidElement)(node)) return node;
|
|
13
|
+
if (node.type === _react.Fragment) {
|
|
14
|
+
return /*#__PURE__*/(0, _react.cloneElement)(node, undefined, map(node.props.children));
|
|
15
|
+
}
|
|
16
|
+
if (!options.isTarget(node)) return node;
|
|
17
|
+
target ??= node;
|
|
18
|
+
targetCount += 1;
|
|
19
|
+
return options.mapTarget?.(node, targetCount === 1) ?? node;
|
|
20
|
+
});
|
|
21
|
+
const mappedChildren = map(children);
|
|
22
|
+
return {
|
|
23
|
+
children: target ? mappedChildren : children,
|
|
24
|
+
target,
|
|
25
|
+
targetCount
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.resolveBoundaryTarget = resolveBoundaryTarget;
|
|
29
|
+
//# sourceMappingURL=resolve-boundary-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","resolveBoundaryTarget","children","options","target","targetCount","map","nodes","Children","node","isValidElement","type","Fragment","cloneElement","undefined","props","isTarget","mapTarget","mappedChildren","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/resolve-boundary-target.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAcO,MAAMC,qBAAqB,GAAGA,CACpCC,QAAmB,EACnBC,OAAqC,KAKjC;EACJ,IAAIC,MAA2B,GAAG,IAAI;EACtC,IAAIC,WAAW,GAAG,CAAC;EACnB,MAAMC,GAAG,GAAIC,KAAgB,IAC5BC,eAAQ,CAACF,GAAG,CAACC,KAAK,EAAGE,IAAI,IAAK;IAC7B,IAAI,eAAC,IAAAC,qBAAc,EAA2BD,IAAI,CAAC,EAAE,OAAOA,IAAI;IAChE,IAAIA,IAAI,CAACE,IAAI,KAAKC,eAAQ,EAAE;MAC3B,oBAAO,IAAAC,mBAAY,EAACJ,IAAI,EAAEK,SAAS,EAAER,GAAG,CAACG,IAAI,CAACM,KAAK,CAACb,QAAQ,CAAC,CAAC;IAC/D;IACA,IAAI,CAACC,OAAO,CAACa,QAAQ,CAACP,IAAI,CAAC,EAAE,OAAOA,IAAI;IACxCL,MAAM,KAAKK,IAAI;IACfJ,WAAW,IAAI,CAAC;IAChB,OAAOF,OAAO,CAACc,SAAS,GAAGR,IAAI,EAAEJ,WAAW,KAAK,CAAC,CAAC,IAAII,IAAI;EAC5D,CAAC,CAAC;EAEH,MAAMS,cAAc,GAAGZ,GAAG,CAACJ,QAAQ,CAAC;EACpC,OAAO;IAAEA,QAAQ,EAAEE,MAAM,GAAGc,cAAc,GAAGhB,QAAQ;IAAEE,MAAM;IAAEC;EAAY,CAAC;AAC7E,CAAC;AAACc,OAAA,CAAAlB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -46,7 +46,15 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
46
46
|
root: {
|
|
47
47
|
flex: 1
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
// The mask rect's translate math assumes a physical top-left base. Under
|
|
50
|
+
// native RTL a fixed-width flex child anchors to the right edge, so pin it
|
|
51
|
+
// to the physical left (`end` = left edge in RTL).
|
|
52
|
+
rootMask: _reactNative.I18nManager.isRTL ? {
|
|
53
|
+
backgroundColor: "white",
|
|
54
|
+
end: 0,
|
|
55
|
+
position: "absolute",
|
|
56
|
+
top: 0
|
|
57
|
+
} : {
|
|
50
58
|
backgroundColor: "white"
|
|
51
59
|
},
|
|
52
60
|
rootContainer: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_constants","_createTransitionAwareComponent","_jsxRuntime","TransitionView","createTransitionAwareComponent","View","LazyMaskedView","default","_","MaskedView","children","style","userStyles","jsx","styles","root","maskElement","styleId","MASK_STYLE_ID","rootMask","CONTAINER_STYLE_ID","rootContainer","StyleSheet","create","flex","backgroundColor"],"sourceRoot":"../../../src","sources":["components/masked-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_constants","_createTransitionAwareComponent","_jsxRuntime","TransitionView","createTransitionAwareComponent","View","LazyMaskedView","default","_","MaskedView","children","style","userStyles","jsx","styles","root","maskElement","styleId","MASK_STYLE_ID","rootMask","CONTAINER_STYLE_ID","rootContainer","StyleSheet","create","flex","I18nManager","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../src","sources":["components/masked-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AAAqF,IAAAG,WAAA,GAAAH,OAAA;AAErF,MAAMI,cAAc,GAAG,IAAAC,8DAA8B,EAACC,iBAAI,CAAC;AAE3D,IAAIC,cAAc,GAAGD,iBAAI;AAEzB,IAAI;EACHC,cAAc,GAAGP,OAAO,CAAC,uCAAuC,CAAC,CAACQ,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;;AAGD;AACA;AACA;AACA;AACe,SAASC,UAAUA,CAAC;EAClCC,QAAQ;EACRC,KAAK,EAAEC,UAAU,GAAG,CAAC;AAItB,CAAC,EAAE;EACF,IAAIN,cAAc,KAAKD,iBAAI,EAAE;IAC5B,OAAOK,QAAQ;EAChB;EAEA,oBACC,IAAAR,WAAA,CAAAW,GAAA,EAACP,cAAc;IACdK,KAAK,EAAEG,MAAM,CAACC;IACd;IAAA;IACAC,WAAW,eACV,IAAAd,WAAA,CAAAW,GAAA,EAACV,cAAc;MAACc,OAAO,EAAEC,wBAAc;MAACP,KAAK,EAAEG,MAAM,CAACK;IAAS,CAAE,CACjE;IAAAT,QAAA,eAED,IAAAR,WAAA,CAAAW,GAAA,EAACV,cAAc;MACdc,OAAO,EAAEG,6BAAmB;MAC5BT,KAAK,EAAE,CAACG,MAAM,CAACO,aAAa,EAAET,UAAU,CAAE;MAAAF,QAAA,EAEzCA;IAAQ,CACM;EAAC,CACF,CAAC;AAEnB;AAEA,MAAMI,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAChCR,IAAI,EAAE;IACLS,IAAI,EAAE;EACP,CAAC;EACD;EACA;EACA;EACAL,QAAQ,EAAEM,wBAAW,CAACC,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;EACHN,aAAa,EAAE;IACdG,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -35,6 +35,7 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
|
|
|
35
35
|
const animations = _animation.AnimationStore.getBag(routeKey);
|
|
36
36
|
const {
|
|
37
37
|
targetProgress,
|
|
38
|
+
animationProgress,
|
|
38
39
|
resolvedAutoSnapPoint
|
|
39
40
|
} = _system.SystemStore.getBag(routeKey);
|
|
40
41
|
const AnimatedBackdropComponent = (0, _react.useMemo)(() => BackdropComponent && !(0, _renderComponent.usesLayerRenderProps)(BackdropComponent) ? _reactNativeReanimated.default.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
|
|
@@ -82,11 +83,12 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
|
|
|
82
83
|
spec,
|
|
83
84
|
animations,
|
|
84
85
|
targetProgress,
|
|
86
|
+
animationProgress,
|
|
85
87
|
onAnimationFinish: shouldDismiss ? dismissScreen : undefined
|
|
86
88
|
});
|
|
87
89
|
});
|
|
88
90
|
}
|
|
89
|
-
}, [animations, targetProgress, resolvedAutoSnapPoint, backdropBehavior, current, dismissScreen, routeKey]);
|
|
91
|
+
}, [animations, targetProgress, animationProgress, resolvedAutoSnapPoint, backdropBehavior, current, dismissScreen, routeKey]);
|
|
90
92
|
const animatedBackdropStyle = (0, _styles.useSlotStyles)("backdrop");
|
|
91
93
|
const animatedBackdropProps = (0, _styles.useSlotProps)("backdrop");
|
|
92
94
|
const backdropPointerEvents = isBackdropActive ? "auto" : "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_reactNativeWorklets","_specs","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_system","_animateToProgress","_findCollapseTarget","_renderComponent","_jsxRuntime","e","__esModule","default","BackdropLayer","exports","memo","backdropBehavior","isBackdropActive","current","useDescriptors","dismissScreen","useNavigationHelpers","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","AnimationStore","getBag","targetProgress","resolvedAutoSnapPoint","SystemStore","AnimatedBackdropComponent","useMemo","usesLayerRenderProps","Animated","createAnimatedComponent","handleBackdropPress","useCallback","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","GestureStore","transitionSpec","scheduleOnUI","resolvedSnaps","i","point","resolvedPoint","get","push","target","shouldDismiss","findCollapseTarget","transitionProgress","dismissing","set","spec","open","expand","DefaultSnapSpec","close","collapse","animateToProgress","onAnimationFinish","undefined","animatedBackdropStyle","useSlotStyles","animatedBackdropProps","useSlotProps","backdropPointerEvents","backdropStyles","StyleSheet","absoluteFill","backdropProps","jsx","Pressable","style","pointerEvents","onPress","children","animatedProps","styles","props","View"],"sourceRoot":"../../../../../src","sources":["components/screen-container/layers/backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AAKA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,mBAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AAA0D,IAAAe,WAAA,GAAAf,OAAA;AAAA,SAAAG,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnD,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,aAAaA,CAAC;EACxDG,gBAAgB;EAChBC;AAID,CAAC,EAAE;EACF,MAAM;IAAEC;EAAQ,CAAC,GAAG,IAAAC,2BAAc,EAAC,CAAC;EACpC,MAAM;IAAEC;EAAc,CAAC,GAAG,IAAAC,0CAAoB,EAAC,CAAC;EAEhD,MAAMC,iBAAiB,GAAGJ,OAAO,CAACK,OAAO,CAACC,iBAAiB;EAC3D,MAAMC,QAAQ,GAAGP,OAAO,CAACQ,KAAK,CAACC,GAAG;EAClC,MAAMC,UAAU,GAAGC,yBAAc,CAACC,MAAM,CAACL,QAAQ,CAAC;EAClD,MAAM;IAAEM,cAAc;IAAEC;EAAsB,CAAC,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_reactNativeWorklets","_specs","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_system","_animateToProgress","_findCollapseTarget","_renderComponent","_jsxRuntime","e","__esModule","default","BackdropLayer","exports","memo","backdropBehavior","isBackdropActive","current","useDescriptors","dismissScreen","useNavigationHelpers","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","AnimationStore","getBag","targetProgress","animationProgress","resolvedAutoSnapPoint","SystemStore","AnimatedBackdropComponent","useMemo","usesLayerRenderProps","Animated","createAnimatedComponent","handleBackdropPress","useCallback","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","GestureStore","transitionSpec","scheduleOnUI","resolvedSnaps","i","point","resolvedPoint","get","push","target","shouldDismiss","findCollapseTarget","transitionProgress","dismissing","set","spec","open","expand","DefaultSnapSpec","close","collapse","animateToProgress","onAnimationFinish","undefined","animatedBackdropStyle","useSlotStyles","animatedBackdropProps","useSlotProps","backdropPointerEvents","backdropStyles","StyleSheet","absoluteFill","backdropProps","jsx","Pressable","style","pointerEvents","onPress","children","animatedProps","styles","props","View"],"sourceRoot":"../../../../../src","sources":["components/screen-container/layers/backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AAKA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,mBAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AAA0D,IAAAe,WAAA,GAAAf,OAAA;AAAA,SAAAG,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnD,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,aAAaA,CAAC;EACxDG,gBAAgB;EAChBC;AAID,CAAC,EAA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C;EACvD,MAAMC,qBAAqB,GAAG,IAAAC,oBAAY,EAAC,UAAU,CAAC;EACtD,MAAMC,qBAAqB,GAAG3D,gBAAgB,GAAG,MAAM,GAAG,MAAM;EAChE,MAAM4D,cAAc,GAAG,CACtBC,uBAAU,CAACC,YAAY,EACvBP,qBAAqB,CACqB;EAC3C,MAAMQ,aAAa,GAClBN,qBAA8D;EAE/D,oBACC,IAAAjE,WAAA,CAAAwE,GAAA,EAACtF,YAAA,CAAAuF,SAAS;IACTC,KAAK,EAAEL,uBAAU,CAACC,YAAa;IAC/BK,aAAa,EAAEnE,gBAAgB,GAAG,MAAM,GAAG,MAAO;IAClDoE,OAAO,EAAEpE,gBAAgB,GAAGuB,mBAAmB,GAAG+B,SAAU;IAAAe,QAAA,EAE3DnD,yBAAyB,gBACzB,IAAA1B,WAAA,CAAAwE,GAAA,EAAC9C,yBAAyB;MACzBgD,KAAK,EAAEN,cAAe;MACtBU,aAAa,EAAEb,qBAAsB;MACrCU,aAAa,EAAER;IAAsB,CACrC,CAAC,GACCtD,iBAAiB,gBACpB,IAAAb,WAAA,CAAAwE,GAAA,EAAC3D,iBAAiB;MACjBkE,MAAM,EAAEX,cAAe;MACvBY,KAAK,EAAET,aAAc;MACrBI,aAAa,EAAER;IAAsB,CACrC,CAAC,gBAEF,IAAAnE,WAAA,CAAAwE,GAAA,EAACrF,sBAAA,CAAAgB,OAAQ,CAAC8E,IAAI;MACbP,KAAK,EAAEN,cAAe;MACtBO,aAAa,EAAER;IAAsB,CACrC;EACD,CACS,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
|
package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js
CHANGED
|
@@ -68,7 +68,15 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
68
68
|
navigationContainer: {
|
|
69
69
|
flex: 1
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
// The mask rect's translate math assumes a physical top-left base. Under
|
|
72
|
+
// native RTL a fixed-width flex child anchors to the right edge, so pin it
|
|
73
|
+
// to the physical left (`end` = left edge in RTL).
|
|
74
|
+
navigationMaskElement: _reactNative.I18nManager.isRTL ? {
|
|
75
|
+
backgroundColor: "white",
|
|
76
|
+
end: 0,
|
|
77
|
+
position: "absolute",
|
|
78
|
+
top: 0
|
|
79
|
+
} : {
|
|
72
80
|
backgroundColor: "white"
|
|
73
81
|
}
|
|
74
82
|
});
|
package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_constants","_styles","_logger","_jsxRuntime","e","__esModule","default","LazyMaskedView","View","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","exports","memo","enabled","children","pointerEvents","jsx","MaskedNavigationContainer","maybeLogWarning","useCallback","logger","warn","animatedNavigationMaskStyle","useSlotStyles","NAVIGATION_MASK_ELEMENT_STYLE_ID","animatedNavigationMaskContainerStyle","NAVIGATION_MASK_CONTAINER_STYLE_ID","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","StyleSheet","create","flex","backgroundColor"],"sourceRoot":"../../../../../src","sources":["components/screen-container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAA+C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ/C,IAAIG,cAAc,GAAGC,iBAAI;AAEzB,IAAI;EACHD,cAAc,GAAGX,OAAO,CAAC,uC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;IAAAJ,QAAA,eAE1B,IAAAZ,WAAA,CAAAc,GAAA,EAACnB,sBAAA,CAAAQ,OAAQ,CAACE,IAAI;MACboB,KAAK,EAAE,CACNC,MAAM,CAACK,mBAAmB,EAC1BR,oCAAoC,CACnC;MACFS,WAAW,EAAE,KAAM;MAAApB,QAAA,EAElBA;IAAQ,CACK;EAAC,CACD,CAAC;AAEnB,CACD,CAAC;AAED,MAAMc,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAChCP,oBAAoB,EAAE;IACrBQ,IAAI,EAAE;EACP,CAAC;EACDJ,mBAAmB,EAAE;IACpBI,IAAI,EAAE;EACP,CAAC;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_constants","_styles","_logger","_jsxRuntime","e","__esModule","default","LazyMaskedView","View","_","hasWarnedMissingMaskedView","MaybeMaskedNavigationContainer","exports","memo","enabled","children","pointerEvents","jsx","MaskedNavigationContainer","maybeLogWarning","useCallback","logger","warn","animatedNavigationMaskStyle","useSlotStyles","NAVIGATION_MASK_ELEMENT_STYLE_ID","animatedNavigationMaskContainerStyle","NAVIGATION_MASK_CONTAINER_STYLE_ID","style","styles","navigationMaskedRoot","maskElement","navigationMaskElement","onLayout","navigationContainer","collapsable","StyleSheet","create","flex","I18nManager","isRTL","backgroundColor","end","position","top"],"sourceRoot":"../../../../../src","sources":["components/screen-container/layers/maybe-masked-navigation-container.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAA+C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,K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ET,2BAA2B,CAAE;MACnEP,aAAa,EAAC;IAAM,CACpB,CACD;IACDA,aAAa,EAAEA,aAAc;IAC7BiB,QAAQ,EAAEd,eAAgB;IAAAJ,QAAA,eAE1B,IAAAZ,WAAA,CAAAc,GAAA,EAACnB,sBAAA,CAAAQ,OAAQ,CAACE,IAAI;MACboB,KAAK,EAAE,CACNC,MAAM,CAACK,mBAAmB,EAC1BR,oCAAoC,CACnC;MACFS,WAAW,EAAE,KAAM;MAAApB,QAAA,EAElBA;IAAQ,CACK;EAAC,CACD,CAAC;AAEnB,CACD,CAAC;AAED,MAAMc,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAChCP,oBAAoB,EAAE;IACrBQ,IAAI,EAAE;EACP,CAAC;EACDJ,mBAAmB,EAAE;IACpBI,IAAI,EAAE;EACP,CAAC;EACD;EACA;EACA;EACAN,qBAAqB,EAAEO,wBAAW,CAACC,KAAK,GACrC;IACAC,eAAe,EAAE,OAAO;IACxBC,GAAG,EAAE,CAAC;IACNC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE;EACN,CAAC,GACA;IACAH,eAAe,EAAE;EAClB;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -16,6 +16,7 @@ const useTransitionStartController = ({
|
|
|
16
16
|
}) => {
|
|
17
17
|
const {
|
|
18
18
|
targetProgress,
|
|
19
|
+
animationProgress,
|
|
19
20
|
pendingLifecycleRequestKind,
|
|
20
21
|
pendingLifecycleRequestTarget,
|
|
21
22
|
pendingLifecycleStartBlockCount
|
|
@@ -44,6 +45,7 @@ const useTransitionStartController = ({
|
|
|
44
45
|
spec: transitionSpec,
|
|
45
46
|
animations,
|
|
46
47
|
targetProgress,
|
|
48
|
+
animationProgress,
|
|
47
49
|
onAnimationFinish
|
|
48
50
|
});
|
|
49
51
|
clearLifecycleTransitionRequest();
|
package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_system","_animateToProgress","useTransitionStartController","current","animations","system","onBlankStackCloseFinish","onNativeCloseFinish","targetProgress","pendingLifecycleRequestKind","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","clearLifecycleTransitionRequest","actions","transitionSpec","options","useAnimatedReaction","get","next","kind","target","blockCount","LifecycleTransitionRequestKind","None","onAnimationFinish","BlankStackClose","NativeClose","undefined","animateToProgress","spec","exports"],"sourceRoot":"../../../../../src","sources":["components/screen-lifecycle/hooks/use-transition-start-controller.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAIA,IAAAE,kBAAA,GAAAF,OAAA;AAEO,MAAMG,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":["_reactNativeReanimated","require","_system","_animateToProgress","useTransitionStartController","current","animations","system","onBlankStackCloseFinish","onNativeCloseFinish","targetProgress","animationProgress","pendingLifecycleRequestKind","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","clearLifecycleTransitionRequest","actions","transitionSpec","options","useAnimatedReaction","get","next","kind","target","blockCount","LifecycleTransitionRequestKind","None","onAnimationFinish","BlankStackClose","NativeClose","undefined","animateToProgress","spec","exports"],"sourceRoot":"../../../../../src","sources":["components/screen-lifecycle/hooks/use-transition-start-controller.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAIA,IAAAE,kBAAA,GAAAF,OAAA;AAEO,MAAMG,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;EAErD,IAAAE,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,OAAO,CACNP,2BAA2B,CAACQ,GAAG,CAAC,CAAC,EACjCP,6BAA6B,CAACO,GAAG,CAAC,CAAC,EACnCN,+BAA+B,CAACM,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,KAAKG,sCAA8B,CAACC,IAAI,EAAE;MACjD;IACD;IAEA,IAAIF,UAAU,GAAG,CAAC,EAAE;MACnB;IACD;IAEA,MAAMG,iBAAiB,GACtBL,IAAI,KAAKG,sCAA8B,CAACG,eAAe,GACpDpB,uBAAuB,GACvBc,IAAI,KAAKG,sCAA8B,CAACI,WAAW,GAClDpB,mBAAmB,GACnBqB,SAAS;IAEd,IAAAC,oCAAiB,EAAC;MACjBR,MAAM;MACNS,IAAI,EAAEf,cAAc;MACpBX,UAAU;MACVI,cAAc;MACdC,iBAAiB;MACjBgB;IACD,CAAC,CAAC;IAEFZ,+BAA+B,CAAC,CAAC;EAClC,CACD,CAAC;AACF,CAAC;AAACkB,OAAA,CAAA7B,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createBlankStackNavigator =
|
|
7
|
-
exports.createBlankStackScreen = void 0;
|
|
6
|
+
exports.createBlankStackScreen = exports.createBlankStackNavigator = void 0;
|
|
8
7
|
var _native = require("@react-navigation/native");
|
|
9
8
|
var _reactNavigationHost = require("../../providers/navigation/react-navigation-host");
|
|
10
9
|
var _createBlankStackNavigator = require("../create-blank-stack-navigator");
|
|
11
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
createNavigator: createBlankStackNavigator,
|
|
12
|
+
createScreen: createBlankStackScreen
|
|
13
|
+
} = (0, _native.createStandardNavigationFactories)(_createBlankStackNavigator.BlankStackNavigator, _native.StackRouter, ({
|
|
12
14
|
state,
|
|
13
15
|
navigation
|
|
14
16
|
}) => ({
|
|
@@ -16,9 +18,6 @@ const standardBlankStackFactories = (0, _native.createStandardNavigationFactorie
|
|
|
16
18
|
navigation,
|
|
17
19
|
navigationHost: _reactNavigationHost.reactNavigationHost
|
|
18
20
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function createBlankStackNavigator(config) {
|
|
22
|
-
return createReactNavigationBlankStackNavigator(config);
|
|
23
|
-
}
|
|
21
|
+
exports.createBlankStackScreen = createBlankStackScreen;
|
|
22
|
+
exports.createBlankStackNavigator = createBlankStackNavigator;
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_reactNavigationHost","_createBlankStackNavigator","
|
|
1
|
+
{"version":3,"names":["_native","require","_reactNavigationHost","_createBlankStackNavigator","createNavigator","createBlankStackNavigator","createScreen","createBlankStackScreen","createStandardNavigationFactories","BlankStackNavigator","StackRouter","state","navigation","navigationState","navigationHost","reactNavigationHost","exports"],"sourceRoot":"../../../../src","sources":["navigators/react-navigation/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAQA,IAAAC,oBAAA,GAAAD,OAAA;AAKA,IAAAE,0BAAA,GAAAF,OAAA;AAaO,MAAM;EACZG,eAAe,EAAEC,yBAAyB;EAC1CC,YAAY,EAAEC;AACf,CAAC,GAAG,IAAAC,yCAAiC,EAGnCC,8CAAmB,EAAEC,mBAAW,EAAE,CAAC;EAAEC,KAAK;EAAEC;AAAW,CAAC,MAAM;EAC/DC,eAAe,EAAEF,KAAK;EACtBC,UAAU;EACVE,cAAc,EAAEC;AACjB,CAAC,CAAC,CAAC;AAACC,OAAA,CAAAT,sBAAA,GAAAA,sBAAA;AAAAS,OAAA,CAAAX,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -33,7 +33,10 @@ const applyMeasuredBoundsWrites = params => {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
if (linkWrite?.type === "destination") {
|
|
36
|
-
(0, _links.setDestination)(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group
|
|
36
|
+
(0, _links.setDestination)(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group, {
|
|
37
|
+
handoff,
|
|
38
|
+
escapeClipping
|
|
39
|
+
});
|
|
37
40
|
}
|
|
38
41
|
};
|
|
39
42
|
exports.applyMeasuredBoundsWrites = applyMeasuredBoundsWrites;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","_links","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","handoff","escapeClipping","setEntry","bounds","type","setSource","pairKey","setDestination","exports"],"sourceRoot":"../../../../src","sources":["providers/helpers/measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAyBO,MAAME,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;EACA,IAAAU,iBAAQ,EAACT,QAAQ,EAAEG,gBAAgB,EAAE;IACpCO,MAAM,EAAEN;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEK,IAAI,KAAK,QAAQ,EAAE;IACjC,IAAAC,gBAAS,EACRN,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEK,IAAI,KAAK,aAAa,EAAE;IACtC,IAAAG,qBAAc,EACbR,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","handoff","escapeClipping","setEntry","bounds","type","setSource","pairKey","setDestination","exports"],"sourceRoot":"../../../../src","sources":["providers/helpers/measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAyBO,MAAME,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;EACA,IAAAU,iBAAQ,EAACT,QAAQ,EAAEG,gBAAgB,EAAE;IACpCO,MAAM,EAAEN;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEK,IAAI,KAAK,QAAQ,EAAE;IACjC,IAAAC,gBAAS,EACRN,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEK,IAAI,KAAK,aAAa,EAAE;IACtC,IAAAG,qBAAc,EACbR,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;AACD,CAAC;AAACO,OAAA,CAAAjB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -14,7 +14,6 @@ var _useScreenGestureConfig = require("./hooks/use-screen-gesture-config");
|
|
|
14
14
|
var _useWalkUpAndRegisterShadowingClaims = require("./ownership/use-walk-up-and-register-shadowing-claims");
|
|
15
15
|
var _useBuildPanGesture = require("./pan/use-build-pan-gesture");
|
|
16
16
|
var _useBuildPinchGesture = require("./pinch/use-build-pinch-gesture");
|
|
17
|
-
var _useBuildRotationGesture = require("./rotation/use-build-rotation-gesture");
|
|
18
17
|
var _types = require("./types");
|
|
19
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
19
|
const {
|
|
@@ -49,22 +48,17 @@ const {
|
|
|
49
48
|
gestureConfig,
|
|
50
49
|
gestureCompositionOwner
|
|
51
50
|
});
|
|
52
|
-
const
|
|
53
|
-
gestureConfig,
|
|
54
|
-
gestureCompositionOwner
|
|
55
|
-
});
|
|
56
|
-
const detectorGesture = (0, _react.useMemo)(() => _reactNativeGestureHandler.Gesture.Simultaneous(panGesture, pinchGesture, rotationGesture), [panGesture, pinchGesture, rotationGesture]);
|
|
51
|
+
const detectorGesture = (0, _react.useMemo)(() => _reactNativeGestureHandler.Gesture.Simultaneous(panGesture, pinchGesture), [panGesture, pinchGesture]);
|
|
57
52
|
const value = (0, _react.useMemo)(() => ({
|
|
58
53
|
routeKey: currentScreenKey,
|
|
59
54
|
detectorGesture,
|
|
60
55
|
panGesture,
|
|
61
56
|
pinchGesture,
|
|
62
|
-
rotationGesture,
|
|
63
57
|
scrollState,
|
|
64
58
|
gestureContext,
|
|
65
59
|
claimedDirections: gestureConfig.participation.claimedDirections,
|
|
66
60
|
childDirectionClaims
|
|
67
|
-
}), [currentScreenKey, detectorGesture, panGesture, pinchGesture,
|
|
61
|
+
}), [currentScreenKey, detectorGesture, panGesture, pinchGesture, scrollState, gestureContext, gestureConfig.participation.claimedDirections, childDirectionClaims]);
|
|
68
62
|
(0, _useWalkUpAndRegisterShadowingClaims.useWalkUpAndRegisterShadowingClaims)(gestureConfig.participation.claimedDirections);
|
|
69
63
|
return {
|
|
70
64
|
value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_scroll","_createProvider","_interopRequireDefault","_descriptors","_useScreenGestureConfig","_useWalkUpAndRegisterShadowingClaims","_useBuildPanGesture","_useBuildPinchGesture","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_scroll","_createProvider","_interopRequireDefault","_descriptors","_useScreenGestureConfig","_useWalkUpAndRegisterShadowingClaims","_useBuildPanGesture","_useBuildPinchGesture","_types","e","__esModule","default","ScreenGestureProvider","useScreenGestureContext","useGestureContext","createProvider","guarded","children","gestureContext","gestureConfig","useScreenGestureConfig","currentScreenKey","useDescriptorDerivations","scrollState","ScrollStore","getValue","childDirectionClaims","useSharedValue","NO_DIRECTION_CLAIMS","gestureCompositionOwner","panGesture","useBuildPanGesture","pinchGesture","useBuildPinchGesture","detectorGesture","useMemo","Gesture","Simultaneous","value","routeKey","claimedDirections","participation","useWalkUpAndRegisterShadowingClaims","exports"],"sourceRoot":"../../../../../src","sources":["providers/screen/gestures/gestures.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AACA,IAAAQ,oCAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT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AW;IACXL,cAAc;IACdsB,iBAAiB,EAAErB,aAAa,CAACsB,aAAa,CAACD,iBAAiB;IAChEd;EACD,CAAC,CAAC,EACF,CACCL,gBAAgB,EAChBa,eAAe,EACfJ,UAAU,EACVE,YAAY,EACZT,WAAW,EACXL,cAAc,EACdC,aAAa,CAACsB,aAAa,CAACD,iBAAiB,EAC7Cd,oBAAoB,CAEtB,CAAC;EAED,IAAAgB,wEAAmC,EAClCvB,aAAa,CAACsB,aAAa,CAACD,iBAC7B,CAAC;EAED,OAAO;IACNF,KAAK;IACLrB;EACD,CAAC;AACF,CAAC,CAAC;AAAC0B,OAAA,CAAA7B,iBAAA,GAAAA,iBAAA;AAAA6B,OAAA,CAAA/B,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -131,6 +131,7 @@ const finalizePanRelease = (release, runtime, dismissScreen, dimensions, rawEven
|
|
|
131
131
|
emitWillAnimate: false,
|
|
132
132
|
markEntering: false,
|
|
133
133
|
targetProgress: system.targetProgress,
|
|
134
|
+
animationProgress: system.animationProgress,
|
|
134
135
|
animations,
|
|
135
136
|
initialVelocity: plan.progressVelocity
|
|
136
137
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_reactNativeWorklets","_constants","_animateToProgress","_emit","_physics","_snapshot","_values","_panRelease","_panReset","startPanBase","runtime","stores","gestures","animations","wasSettling","settling","get","hasResidualGesture","Math","abs","normX","EPSILON","normY","normScale","rotation","emit","willAnimate","TRUE","FALSE","dragging","set","dismissing","clearPanTrackingValues","clearTransformTrackingValues","clearFocalPoint","internal","progressBaseline","transitionProgress","exports","trackPanGesture","event","rawEvent","dimensions","translationX","x","translationY","y","rawX","rawY","velocityX","velocityY","width","height","clamp","normalizeGestureTranslation","rawNormX","rawNormY","velocity","resolveGestureVelocity","max","progressDeltaX","progressDeltaY","raw","finalizePanRelease","release","dismissScreen","requestDismiss","gestureCompositionOwner","policy","system","canDriveRelease","plan","buildPanReleasePlan","target","shouldDismiss","initialVelocity","transitionSpec","undefined","resetSpec","open","commitProgress","targetProgress","snapshotGestureHandoff","handoffVelocity","resetPanGestureValues","updateLifecycle","progressAlreadyAtTarget","progressAnimating","scheduleOnRN","animateToProgress","onAnimationFinish","spec","emitWillAnimate","markEntering","progressVelocity"],"sourceRoot":"../../../../../../../src","sources":["providers/screen/gestures/pan/behavior/pan-lifecycle.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAIA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAaA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAEO,MAAMU,YAAY,GAAIC,OAA0B,IAAK;EAC3D,SAAS;;EACT,MAAM;IACLC,MAAM,EAAE;MAAEC,QAAQ;MAAEC;IAAW;EAChC,CAAC,GAAGH,OAAO;EAEX,MAAMI,WAAW,GAAGF,QAAQ,CAACG,QAAQ,CAACC,GAAG,CAAC,CAAC;EAC3C,MAAMC,kBAAkB,GACvBC,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACQ,KAAK,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IACxCH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACU,KAAK,CAACN,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IACxCH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACW,SAAS,CAACP,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IAC5CH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACY,QAAQ,CAACR,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO;EAE5C,IAAI,CAACP,WAAW,I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;EAEF,IAAI,CAACA,eAAe,EAAE;IACrB;EACD;EAEA,MAAMgB,uBAAuB,GAC5BpE,IAAI,CAACC,GAAG,CAACN,UAAU,CAACwB,kBAAkB,CAACrB,GAAG,CAAC,CAAC,GAAGuD,IAAI,CAACE,MAAM,CAAC,IAAIpD,kBAAO;EAEvE,IAAI,CAACkD,IAAI,CAACG,aAAa,IAAIY,uBAAuB,EAAE;IACnDjB,MAAM,CAACY,cAAc,CAACnD,GAAG,CAACyC,IAAI,CAACE,MAAM,CAAC;IACtC5D,UAAU,CAAC0E,iBAAiB,CAACzD,GAAG,CAACF,gBAAK,CAAC;IACvC;EACD;EAEA,IAAI2C,IAAI,CAACG,aAAa,IAAIR,cAAc,EAAE;IACzC,IAAAsB,iCAAY,EAACtB,cAAc,CAAC;EAC7B;EAEA,IAAAuB,oCAAiB,EAAC;IACjBhB,MAAM,EAAEF,IAAI,CAACE,MAAM;IACnBiB,iBAAiB,EAAEnB,IAAI,CAACG,aAAa,GAAGT,aAAa,GAAGY,SAAS;IACjEc,IAAI,EAAEpB,IAAI,CAACK,cAAc;IACzBgB,eAAe,EAAE,KAAK;IACtBC,YAAY,EAAE,KAAK;IACnBZ,cAAc,EAAEZ,MAAM,CAACY,cAAc;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_reactNativeWorklets","_constants","_animateToProgress","_emit","_physics","_snapshot","_values","_panRelease","_panReset","startPanBase","runtime","stores","gestures","animations","wasSettling","settling","get","hasResidualGesture","Math","abs","normX","EPSILON","normY","normScale","rotation","emit","willAnimate","TRUE","FALSE","dragging","set","dismissing","clearPanTrackingValues","clearTransformTrackingValues","clearFocalPoint","internal","progressBaseline","transitionProgress","exports","trackPanGesture","event","rawEvent","dimensions","translationX","x","translationY","y","rawX","rawY","velocityX","velocityY","width","height","clamp","normalizeGestureTranslation","rawNormX","rawNormY","velocity","resolveGestureVelocity","max","progressDeltaX","progressDeltaY","raw","finalizePanRelease","release","dismissScreen","requestDismiss","gestureCompositionOwner","policy","system","canDriveRelease","plan","buildPanReleasePlan","target","shouldDismiss","initialVelocity","transitionSpec","undefined","resetSpec","open","commitProgress","targetProgress","snapshotGestureHandoff","handoffVelocity","resetPanGestureValues","updateLifecycle","progressAlreadyAtTarget","progressAnimating","scheduleOnRN","animateToProgress","onAnimationFinish","spec","emitWillAnimate","markEntering","animationProgress","progressVelocity"],"sourceRoot":"../../../../../../../src","sources":["providers/screen/gestures/pan/behavior/pan-lifecycle.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAIA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAaA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAEO,MAAMU,YAAY,GAAIC,OAA0B,IAAK;EAC3D,SAAS;;EACT,MAAM;IACLC,MAAM,EAAE;MAAEC,QAAQ;MAAEC;IAAW;EAChC,CAAC,GAAGH,OAAO;EAEX,MAAMI,WAAW,GAAGF,QAAQ,CAACG,QAAQ,CAACC,GAAG,CAAC,CAAC;EAC3C,MAAMC,kBAAkB,GACvBC,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACQ,KAAK,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IACxCH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACU,KAAK,CAACN,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IACxCH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACW,SAAS,CAACP,GAAG,CAAC,CAAC,CAAC,GAAGK,kBAAO,IAC5CH,IAAI,CAACC,GAAG,CAACP,QAAQ,CAACY,QAAQ,CAACR,GAAG,CAAC,CAAC,CAAC,G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;IACRyE,eAAe,EAAEf;EAClB,CAAC,CAAC;EAEF,IAAI,CAACA,eAAe,EAAE;IACrB;EACD;EAEA,MAAMgB,uBAAuB,GAC5BpE,IAAI,CAACC,GAAG,CAACN,UAAU,CAACwB,kBAAkB,CAACrB,GAAG,CAAC,CAAC,GAAGuD,IAAI,CAACE,MAAM,CAAC,IAAIpD,kBAAO;EAEvE,IAAI,CAACkD,IAAI,CAACG,aAAa,IAAIY,uBAAuB,EAAE;IACnDjB,MAAM,CAACY,cAAc,CAACnD,GAAG,CAACyC,IAAI,CAACE,MAAM,CAAC;IACtC5D,UAAU,CAAC0E,iBAAiB,CAACzD,GAAG,CAACF,gBAAK,CAAC;IACvC;EACD;EAEA,IAAI2C,IAAI,CAACG,aAAa,IAAIR,cAAc,EAAE;IACzC,IAAAsB,iCAAY,EAACtB,cAAc,CAAC;EAC7B;EAEA,IAAAuB,oCAAiB,EAAC;IACjBhB,MAAM,EAAEF,IAAI,CAACE,MAAM;IACnBiB,iBAAiB,EAAEnB,IAAI,CAACG,aAAa,GAAGT,aAAa,GAAGY,SAAS;IACjEc,IAAI,EAAEpB,IAAI,CAACK,cAAc;IACzBgB,eAAe,EAAE,KAAK;IACtBC,YAAY,EAAE,KAAK;IACnBZ,cAAc,EAAEZ,MAAM,CAACY,cAAc;IACrCa,iBAAiB,EAAEzB,MAAM,CAACyB,iBAAiB;IAC3CjF,UAAU;IACV8D,eAAe,EAAEJ,IAAI,CAACwB;EACvB,CAAC,CAAC;AACH,CAAC;AAACzD,OAAA,CAAAyB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.usePinchActivation = exports.updateAbsolutePinchFocalPoint = void 0;
|
|
6
|
+
exports.usePinchActivation = exports.updatePinchRotation = exports.updateAbsolutePinchFocalPoint = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
9
|
var _runtime = require("../../shared/runtime");
|
|
9
10
|
const updateAbsolutePinchFocalPoint = (event, gestures, captureOrigin) => {
|
|
10
11
|
"worklet";
|
|
@@ -24,11 +25,42 @@ const updateAbsolutePinchFocalPoint = (event, gestures, captureOrigin) => {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
exports.updateAbsolutePinchFocalPoint = updateAbsolutePinchFocalPoint;
|
|
28
|
+
const updatePinchRotation = (event, gestures, lastAngle, accumulatedRotation, captureOrigin) => {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
const firstTouch = event.allTouches[0];
|
|
32
|
+
const secondTouch = event.allTouches[1];
|
|
33
|
+
if (!firstTouch || !secondTouch) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const angle = Math.atan2(secondTouch.absoluteY - firstTouch.absoluteY, secondTouch.absoluteX - firstTouch.absoluteX);
|
|
37
|
+
if (captureOrigin) {
|
|
38
|
+
lastAngle.set(angle);
|
|
39
|
+
accumulatedRotation.set(0);
|
|
40
|
+
gestures.rotation.set(0);
|
|
41
|
+
gestures.raw.rotation.set(0);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
let angleDelta = angle - lastAngle.get();
|
|
45
|
+
if (angleDelta > Math.PI) {
|
|
46
|
+
angleDelta -= 2 * Math.PI;
|
|
47
|
+
} else if (angleDelta < -Math.PI) {
|
|
48
|
+
angleDelta += 2 * Math.PI;
|
|
49
|
+
}
|
|
50
|
+
const rotation = accumulatedRotation.get() + angleDelta;
|
|
51
|
+
lastAngle.set(angle);
|
|
52
|
+
accumulatedRotation.set(rotation);
|
|
53
|
+
gestures.rotation.set(rotation);
|
|
54
|
+
gestures.raw.rotation.set(rotation);
|
|
55
|
+
};
|
|
56
|
+
exports.updatePinchRotation = updatePinchRotation;
|
|
27
57
|
const usePinchActivation = ({
|
|
28
58
|
runtime,
|
|
29
59
|
screenOptions,
|
|
30
60
|
gestureCompositionOwner
|
|
31
61
|
}) => {
|
|
62
|
+
const lastAngle = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
63
|
+
const accumulatedRotation = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
32
64
|
const onTouchesDown = (0, _react.useCallback)((event, stateManager) => {
|
|
33
65
|
"worklet";
|
|
34
66
|
|
|
@@ -43,6 +75,7 @@ const usePinchActivation = ({
|
|
|
43
75
|
}
|
|
44
76
|
if (event.numberOfTouches === 2) {
|
|
45
77
|
updateAbsolutePinchFocalPoint(event, latestRuntime.stores.gestures, true);
|
|
78
|
+
updatePinchRotation(event, latestRuntime.stores.gestures, lastAngle, accumulatedRotation, true);
|
|
46
79
|
if (gestureCompositionOwner.get() === null) {
|
|
47
80
|
gestureCompositionOwner.set("pinch");
|
|
48
81
|
}
|
|
@@ -52,7 +85,7 @@ const usePinchActivation = ({
|
|
|
52
85
|
if (event.numberOfTouches > 2) {
|
|
53
86
|
stateManager?.fail();
|
|
54
87
|
}
|
|
55
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
88
|
+
}, [runtime, screenOptions, gestureCompositionOwner, lastAngle, accumulatedRotation]);
|
|
56
89
|
const onTouchesMove = (0, _react.useCallback)((event, stateManager) => {
|
|
57
90
|
"worklet";
|
|
58
91
|
|
|
@@ -67,6 +100,7 @@ const usePinchActivation = ({
|
|
|
67
100
|
}
|
|
68
101
|
if (event.numberOfTouches === 2) {
|
|
69
102
|
updateAbsolutePinchFocalPoint(event, latestRuntime.stores.gestures, false);
|
|
103
|
+
updatePinchRotation(event, latestRuntime.stores.gestures, lastAngle, accumulatedRotation, false);
|
|
70
104
|
if (gestureCompositionOwner.get() === null) {
|
|
71
105
|
gestureCompositionOwner.set("pinch");
|
|
72
106
|
}
|
|
@@ -76,7 +110,7 @@ const usePinchActivation = ({
|
|
|
76
110
|
if (event.numberOfTouches > 2) {
|
|
77
111
|
stateManager.fail();
|
|
78
112
|
}
|
|
79
|
-
}, [runtime, screenOptions, gestureCompositionOwner]);
|
|
113
|
+
}, [runtime, screenOptions, gestureCompositionOwner, lastAngle, accumulatedRotation]);
|
|
80
114
|
return (0, _react.useMemo)(() => ({
|
|
81
115
|
onTouchesDown,
|
|
82
116
|
onTouchesMove
|