react-native-screen-transitions 4.0.0-alpha.1 → 4.0.0-alpha.3
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/adapters/with-screen-transitions/context.js +4 -0
- package/lib/commonjs/adapters/with-screen-transitions/context.js.map +1 -1
- package/lib/commonjs/adapters/with-screen-transitions/stack-layout.js +14 -8
- package/lib/commonjs/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/commonjs/animation/snap-to.js +3 -0
- package/lib/commonjs/animation/snap-to.js.map +1 -1
- package/lib/commonjs/components/activity/variants/activity-screen.js +26 -10
- package/lib/commonjs/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/commonjs/components/boundary/components/boundary-target.js +20 -21
- 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-initial-destination-measurement.js +18 -7
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -7
- 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/hooks/use-measurer.js +6 -13
- package/lib/commonjs/components/boundary/hooks/use-measurer.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/helpers/active-handoff-receiver.js +67 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +55 -189
- 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 +3 -14
- 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/active-pair.js +30 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/active-pair.js.map +1 -0
- 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-active-portal-boundary-host.js +75 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +45 -145
- 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/hooks/use-host-measurement.js +10 -19
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.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/naming.js +8 -1
- package/lib/commonjs/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +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 +22 -41
- package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/measured-bounds.js +19 -31
- package/lib/commonjs/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/refresh-signals.js +14 -13
- 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/create-transition-aware-component.js +9 -30
- package/lib/commonjs/components/create-transition-aware-component.js.map +1 -1
- 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/hooks/use-backdrop-pointer-events.js +5 -9
- package/lib/commonjs/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/components/screen-container/hooks/use-content-layout.js +3 -8
- package/lib/commonjs/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/backdrop.js +9 -10
- package/lib/commonjs/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/content.js +10 -16
- package/lib/commonjs/components/screen-container/layers/content.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-container/layers/surface-container.js +1 -5
- package/lib/commonjs/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-transition-intent.js +10 -12
- package/lib/commonjs/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-open-transition-intent.js +2 -3
- package/lib/commonjs/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js +7 -1
- package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/components/screen-lifecycle/index.js +2 -4
- package/lib/commonjs/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/components/stack-view.js +69 -35
- package/lib/commonjs/components/stack-view.js.map +1 -1
- package/lib/commonjs/configs/presets.js +10 -10
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/constants.js +1 -0
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js +9 -8
- package/lib/commonjs/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/hooks/navigation/use-screen-state.js +1 -3
- package/lib/commonjs/hooks/navigation/use-screen-state.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/animation/animation.provider.js +7 -7
- package/lib/commonjs/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +1 -3
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -10
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/pipeline.js +5 -7
- package/lib/commonjs/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/index.js +2 -2
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js +1 -1
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js +34 -42
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/index.js +0 -12
- package/lib/commonjs/providers/screen/descriptors/index.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js +9 -15
- package/lib/commonjs/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture-config.js +3 -9
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture.js +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/hooks/use-stable-runtime-config.js +1 -3
- package/lib/commonjs/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/index.js +2 -2
- package/lib/commonjs/providers/screen/gestures/ownership/shadowing-claims.js +2 -2
- package/lib/commonjs/providers/screen/gestures/ownership/shadowing-claims.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +8 -11
- package/lib/commonjs/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/activation/use-pan-activation.js +2 -4
- package/lib/commonjs/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js +6 -8
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-reset.js +10 -0
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-reset.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/use-build-pan-gesture.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 +9 -6
- 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/pinch/behavior/pinch-reset.js +7 -0
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-reset.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/use-build-pinch-gesture.js +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/use-build-pinch-gesture.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +5 -5
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +2 -2
- package/lib/commonjs/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/providers/screen/options/index.js +2 -2
- package/lib/commonjs/providers/screen/options/options.provider.js +4 -8
- package/lib/commonjs/providers/screen/options/options.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/screen-composer.js +2 -0
- package/lib/commonjs/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/constants.js +10 -4
- package/lib/commonjs/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js +93 -0
- package/lib/commonjs/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js.map +1 -0
- package/lib/commonjs/providers/screen/styles/helpers/resolve-slot-styles/index.js +48 -5
- package/lib/commonjs/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js +32 -0
- package/lib/commonjs/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -0
- 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 +25 -6
- 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 +87 -50
- 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 +11 -11
- package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/index.js +0 -6
- package/lib/commonjs/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js +23 -19
- package/lib/commonjs/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +3 -11
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack.provider.js +53 -49
- package/lib/commonjs/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/core.provider.js +24 -45
- package/lib/commonjs/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/direct.provider.js +46 -40
- package/lib/commonjs/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/stores/animation.store.js +19 -1
- package/lib/commonjs/stores/animation.store.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/types/stack.types.js.map +1 -1
- package/lib/commonjs/utils/animation/animate-to-progress.js +35 -12
- 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/helpers/create-bounds-accessor-core.js +6 -0
- package/lib/commonjs/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- 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/commonjs/utils/create-provider.js +61 -75
- package/lib/commonjs/utils/create-provider.js.map +1 -1
- package/lib/module/adapters/with-screen-transitions/context.js +3 -0
- package/lib/module/adapters/with-screen-transitions/context.js.map +1 -1
- package/lib/module/adapters/with-screen-transitions/stack-layout.js +14 -8
- package/lib/module/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/module/animation/snap-to.js +3 -0
- package/lib/module/animation/snap-to.js.map +1 -1
- package/lib/module/components/activity/variants/activity-screen.js +26 -10
- package/lib/module/components/activity/variants/activity-screen.js.map +1 -1
- package/lib/module/components/boundary/components/boundary-target.js +20 -21
- 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-initial-destination-measurement.js +19 -7
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -7
- 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/hooks/use-measurer.js +7 -14
- package/lib/module/components/boundary/hooks/use-measurer.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/helpers/active-handoff-receiver.js +60 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +58 -192
- 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 +4 -15
- 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/active-pair.js +25 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/active-pair.js.map +1 -0
- 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-active-portal-boundary-host.js +70 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -0
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +47 -147
- 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/hooks/use-host-measurement.js +13 -22
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.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/naming.js +6 -0
- package/lib/module/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/components/boundary/portal/utils/resolve-portal.js +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 +22 -40
- package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/components/boundary/utils/measured-bounds.js +17 -28
- package/lib/module/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/module/components/boundary/utils/refresh-signals.js +14 -13
- 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/create-transition-aware-component.js +10 -31
- package/lib/module/components/create-transition-aware-component.js.map +1 -1
- 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/hooks/use-backdrop-pointer-events.js +8 -12
- package/lib/module/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/components/screen-container/hooks/use-content-layout.js +4 -9
- package/lib/module/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/components/screen-container/layers/backdrop.js +10 -11
- package/lib/module/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/components/screen-container/layers/content.js +12 -18
- package/lib/module/components/screen-container/layers/content.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-container/layers/surface-container.js +2 -6
- package/lib/module/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-close-transition-intent.js +13 -15
- package/lib/module/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-open-transition-intent.js +3 -4
- package/lib/module/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js +7 -1
- package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/components/screen-lifecycle/index.js +3 -5
- package/lib/module/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/components/stack-view.js +71 -37
- package/lib/module/components/stack-view.js.map +1 -1
- package/lib/module/configs/presets.js +10 -10
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/constants.js +1 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/hooks/navigation/use-navigation-helpers.js +9 -8
- package/lib/module/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/hooks/navigation/use-screen-state.js +2 -4
- package/lib/module/hooks/navigation/use-screen-state.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/animation/animation.provider.js +6 -5
- package/lib/module/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +2 -4
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +2 -2
- package/lib/module/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -10
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/pipeline.js +6 -8
- package/lib/module/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/providers/screen/animation/index.js +1 -1
- package/lib/module/providers/screen/animation/index.js.map +1 -1
- package/lib/module/providers/screen/animation/use-screen-animation.js +2 -2
- package/lib/module/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/providers/screen/descriptors/descriptors.provider.js +34 -40
- package/lib/module/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/providers/screen/descriptors/index.js +1 -1
- package/lib/module/providers/screen/descriptors/index.js.map +1 -1
- package/lib/module/providers/screen/gestures/gestures.provider.js +8 -14
- package/lib/module/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture-config.js +5 -11
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture.js +2 -2
- package/lib/module/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -1
- package/lib/module/providers/screen/gestures/hooks/use-stable-runtime-config.js +2 -4
- package/lib/module/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -1
- package/lib/module/providers/screen/gestures/index.js +1 -1
- package/lib/module/providers/screen/gestures/index.js.map +1 -1
- package/lib/module/providers/screen/gestures/ownership/shadowing-claims.js +2 -2
- package/lib/module/providers/screen/gestures/ownership/shadowing-claims.js.map +1 -1
- package/lib/module/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +10 -13
- package/lib/module/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/activation/use-pan-activation.js +3 -5
- package/lib/module/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js +7 -9
- package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-reset.js +10 -0
- package/lib/module/providers/screen/gestures/pan/behavior/pan-reset.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/use-build-pan-gesture.js +2 -2
- package/lib/module/providers/screen/gestures/pan/use-build-pan-gesture.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 +10 -7
- 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/pinch/behavior/pinch-reset.js +7 -0
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-reset.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/use-build-pinch-gesture.js +2 -2
- package/lib/module/providers/screen/gestures/pinch/use-build-pinch-gesture.js.map +1 -1
- package/lib/module/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js +3 -3
- package/lib/module/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.js.map +1 -1
- package/lib/module/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +4 -4
- package/lib/module/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/providers/screen/options/index.js +1 -1
- package/lib/module/providers/screen/options/index.js.map +1 -1
- package/lib/module/providers/screen/options/options.provider.js +3 -7
- package/lib/module/providers/screen/options/options.provider.js.map +1 -1
- package/lib/module/providers/screen/screen-composer.js +2 -0
- package/lib/module/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/providers/screen/styles/constants.js +8 -3
- package/lib/module/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js +88 -0
- package/lib/module/providers/screen/styles/helpers/resolve-interpolator-style-handoff.js.map +1 -0
- package/lib/module/providers/screen/styles/helpers/resolve-slot-styles/index.js +49 -6
- package/lib/module/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js +27 -0
- package/lib/module/providers/screen/styles/helpers/select-interpolator-frame.js.map +1 -0
- 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 +23 -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 +90 -53
- 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 +12 -12
- package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/providers/screen/styles/index.js +1 -1
- package/lib/module/providers/screen/styles/index.js.map +1 -1
- package/lib/module/providers/screen/styles/slot.provider.js +23 -18
- package/lib/module/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +3 -11
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack.provider.js +50 -47
- package/lib/module/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/module/providers/stack/core.provider.js +22 -43
- package/lib/module/providers/stack/core.provider.js.map +1 -1
- package/lib/module/providers/stack/direct.provider.js +44 -41
- package/lib/module/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/stores/animation.store.js +17 -0
- package/lib/module/stores/animation.store.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/types/stack.types.js.map +1 -1
- package/lib/module/utils/animation/animate-to-progress.js +33 -11
- 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/helpers/create-bounds-accessor-core.js +6 -0
- package/lib/module/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- 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/module/utils/create-provider.js +62 -76
- package/lib/module/utils/create-provider.js.map +1 -1
- package/lib/typescript/adapters/with-screen-transitions/context.d.ts +2 -0
- package/lib/typescript/adapters/with-screen-transitions/context.d.ts.map +1 -1
- package/lib/typescript/adapters/with-screen-transitions/stack-layout.d.ts +1 -1
- package/lib/typescript/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
- package/lib/typescript/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/components/activity/variants/activity-screen.d.ts +3 -2
- package/lib/typescript/components/activity/variants/activity-screen.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-initial-destination-measurement.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/hooks/use-measurer.d.ts +1 -1
- package/lib/typescript/components/boundary/hooks/use-measurer.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/helpers/active-handoff-receiver.d.ts +26 -0
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -0
- 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/active-pair.d.ts +9 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/active-pair.d.ts.map +1 -0
- 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-active-portal-boundary-host.d.ts +17 -0
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -0
- 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-host-measurement.d.ts +0 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.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/naming.d.ts +1 -0
- package/lib/typescript/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -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/measured-bounds.d.ts +1 -3
- package/lib/typescript/components/boundary/utils/measured-bounds.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts +0 -3
- 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 -8
- 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/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/hooks/use-content-layout.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/content.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-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
- package/lib/typescript/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/components/stack-view.d.ts +5 -1
- package/lib/typescript/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/configs/index.d.ts +6 -6
- package/lib/typescript/configs/presets.d.ts +6 -6
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts.map +1 -1
- package/lib/typescript/hooks/navigation/use-navigation-helpers.d.ts.map +1 -1
- package/lib/typescript/hooks/navigation/use-screen-state.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +660 -720
- 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/animation/animation.provider.d.ts +4 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/descriptors.provider.d.ts +10 -11
- package/lib/typescript/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/index.d.ts +1 -1
- package/lib/typescript/providers/screen/descriptors/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts +4 -1
- package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/index.d.ts +1 -1
- package/lib/typescript/providers/screen/gestures/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/ownership/shadowing-claims.d.ts +2 -3
- package/lib/typescript/providers/screen/gestures/ownership/shadowing-claims.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/activation/use-pan-activation.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/pan/behavior/pan-reset.d.ts +4 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-reset.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/pinch/behavior/pinch-reset.d.ts +3 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-reset.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.d.ts +1 -1
- package/lib/typescript/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.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/options/index.d.ts +1 -1
- package/lib/typescript/providers/screen/options/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/options.provider.d.ts +4 -1
- package/lib/typescript/providers/screen/options/options.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/screen-composer.d.ts +3 -2
- package/lib/typescript/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/constants.d.ts +1 -0
- package/lib/typescript/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/resolve-interpolator-style-handoff.d.ts +12 -0
- package/lib/typescript/providers/screen/styles/helpers/resolve-interpolator-style-handoff.d.ts.map +1 -0
- package/lib/typescript/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +5 -3
- package/lib/typescript/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts +4 -0
- package/lib/typescript/providers/screen/styles/helpers/select-interpolator-frame.d.ts.map +1 -0
- 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 +12 -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 +10 -5
- 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 +3 -3
- package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/index.d.ts +1 -1
- package/lib/typescript/providers/screen/styles/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts +4 -1
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts +12 -6
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/core.provider.d.ts +10 -8
- package/lib/typescript/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/direct.provider.d.ts +11 -4
- package/lib/typescript/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/stores/animation.store.d.ts +1 -0
- package/lib/typescript/stores/animation.store.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/types/blank-stack.types.d.ts +1 -4
- package/lib/typescript/types/blank-stack.types.d.ts.map +1 -1
- package/lib/typescript/types/gesture.types.d.ts +11 -0
- package/lib/typescript/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts +12 -20
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/types/providers/direct-stack.types.d.ts +2 -1
- package/lib/typescript/types/providers/direct-stack.types.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +0 -30
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/types/stack.types.d.ts +2 -4
- package/lib/typescript/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/utils/animation/animate-to-progress.d.ts +8 -2
- 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/helpers/create-bounds-accessor-core.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/lib/typescript/utils/create-provider.d.ts +17 -9
- package/lib/typescript/utils/create-provider.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adapters/with-screen-transitions/context.tsx +5 -0
- package/src/adapters/with-screen-transitions/stack-layout.tsx +20 -7
- package/src/animation/snap-to.ts +6 -0
- package/src/components/activity/variants/activity-screen.tsx +46 -13
- package/src/components/boundary/components/boundary-target.tsx +38 -24
- package/src/components/boundary/create-boundary-component.tsx +29 -3
- package/src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +28 -14
- package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +7 -13
- package/src/components/boundary/hooks/use-boundary-measurement.ts +3 -9
- package/src/components/boundary/hooks/use-measurer.ts +7 -16
- package/src/components/boundary/index.tsx +4 -8
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +103 -0
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +94 -272
- package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
- package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +14 -26
- package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +64 -62
- package/src/components/boundary/portal/components/boundary-portal/helpers/active-pair.ts +36 -0
- package/src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +2 -9
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +114 -0
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +58 -209
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +13 -20
- 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/naming.ts +11 -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 +36 -91
- package/src/components/boundary/utils/measured-bounds.ts +29 -32
- package/src/components/boundary/utils/refresh-signals.ts +23 -18
- package/src/components/boundary/utils/resolve-boundary-target.tsx +39 -0
- package/src/components/create-transition-aware-component.tsx +11 -36
- package/src/components/masked-view.tsx +20 -4
- package/src/components/screen-container/hooks/use-backdrop-pointer-events.ts +10 -8
- package/src/components/screen-container/hooks/use-content-layout.ts +10 -10
- package/src/components/screen-container/layers/backdrop.tsx +23 -10
- package/src/components/screen-container/layers/content.tsx +20 -21
- package/src/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
- package/src/components/screen-container/layers/surface-container.tsx +4 -4
- package/src/components/screen-lifecycle/hooks/use-close-transition-intent.ts +19 -9
- package/src/components/screen-lifecycle/hooks/use-open-transition-intent.ts +5 -2
- package/src/components/screen-lifecycle/hooks/use-transition-start-controller.ts +8 -0
- package/src/components/screen-lifecycle/index.tsx +3 -2
- package/src/components/stack-view.tsx +117 -56
- package/src/configs/presets.ts +13 -13
- package/src/constants.ts +1 -0
- package/src/hooks/navigation/use-navigation-helpers.ts +9 -8
- package/src/hooks/navigation/use-screen-state.ts +4 -2
- package/src/navigators/react-navigation/index.tsx +4 -48
- package/src/providers/helpers/measured-bounds-writes.ts +1 -0
- package/src/providers/screen/animation/animation.provider.tsx +170 -173
- package/src/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +4 -2
- package/src/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +2 -2
- package/src/providers/screen/animation/helpers/hydrate-transition-state/index.ts +4 -21
- package/src/providers/screen/animation/helpers/pipeline.ts +6 -10
- package/src/providers/screen/animation/index.tsx +1 -1
- package/src/providers/screen/animation/use-screen-animation.tsx +2 -2
- package/src/providers/screen/descriptors/descriptors.provider.tsx +83 -72
- package/src/providers/screen/descriptors/index.tsx +0 -2
- package/src/providers/screen/gestures/gestures.provider.tsx +71 -70
- package/src/providers/screen/gestures/hooks/use-screen-gesture-config.ts +7 -8
- package/src/providers/screen/gestures/hooks/use-screen-gesture.ts +2 -2
- package/src/providers/screen/gestures/hooks/use-stable-runtime-config.ts +4 -2
- package/src/providers/screen/gestures/index.tsx +1 -1
- package/src/providers/screen/gestures/ownership/shadowing-claims.ts +3 -4
- package/src/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +16 -8
- package/src/providers/screen/gestures/pan/activation/use-pan-activation.ts +7 -2
- package/src/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +9 -16
- package/src/providers/screen/gestures/pan/behavior/pan-reset.ts +14 -0
- package/src/providers/screen/gestures/pan/use-build-pan-gesture.ts +2 -2
- package/src/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
- package/src/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +13 -11
- package/src/providers/screen/gestures/pinch/behavior/pinch-release.ts +2 -4
- package/src/providers/screen/gestures/pinch/behavior/pinch-reset.ts +10 -0
- package/src/providers/screen/gestures/pinch/use-build-pinch-gesture.ts +2 -2
- package/src/providers/screen/gestures/scroll-coordination/scroll-metadata-owner.tsx +4 -4
- package/src/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +4 -4
- package/src/providers/screen/gestures/types.ts +0 -14
- package/src/providers/screen/options/index.ts +1 -1
- package/src/providers/screen/options/options.provider.tsx +24 -28
- package/src/providers/screen/screen-composer.tsx +9 -2
- package/src/providers/screen/styles/constants.ts +8 -6
- package/src/providers/screen/styles/helpers/resolve-interpolator-style-handoff.ts +138 -0
- package/src/providers/screen/styles/helpers/resolve-slot-styles/index.ts +71 -4
- package/src/providers/screen/styles/helpers/select-interpolator-frame.ts +41 -0
- package/src/providers/screen/styles/helpers/transition-visual-state.ts +44 -0
- package/src/providers/screen/styles/helpers/visibility-gate.ts +42 -7
- package/src/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +129 -70
- package/src/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +18 -15
- package/src/providers/screen/styles/index.tsx +0 -1
- package/src/providers/screen/styles/slot.provider.tsx +62 -48
- package/src/providers/stack/blank-stack-state/helpers/build-blank-stack-state.ts +4 -17
- package/src/providers/stack/blank-stack.provider.tsx +66 -75
- package/src/providers/stack/core.provider.tsx +53 -79
- package/src/providers/stack/direct.provider.tsx +76 -57
- package/src/stores/animation.store.ts +19 -0
- 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/types/blank-stack.types.ts +1 -4
- package/src/types/gesture.types.ts +11 -0
- package/src/types/providers/blank-stack-provider.types.ts +8 -22
- package/src/types/providers/direct-stack.types.ts +2 -1
- package/src/types/screen.types.ts +0 -32
- package/src/types/stack.types.ts +2 -4
- package/src/utils/animation/animate-to-progress.ts +72 -41
- 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/helpers/create-bounds-accessor-core.ts +7 -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/src/utils/create-provider.tsx +105 -136
- 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/components/boundary-portal/helpers/host-name.js +0 -14
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/host-name.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/hooks/use-stable-callback-value.js +0 -69
- package/lib/commonjs/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/commonjs/providers/register-bounds.provider.js +0 -312
- package/lib/commonjs/providers/register-bounds.provider.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/origin.provider.js +0 -41
- package/lib/commonjs/providers/screen/origin.provider.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/components/boundary-portal/helpers/host-name.js +0 -9
- package/lib/module/components/boundary/portal/components/boundary-portal/helpers/host-name.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/hooks/use-stable-callback-value.js +0 -64
- package/lib/module/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/module/providers/register-bounds.provider.js +0 -308
- package/lib/module/providers/register-bounds.provider.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/origin.provider.js +0 -33
- package/lib/module/providers/screen/origin.provider.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/components/boundary-portal/helpers/host-name.d.ts +0 -2
- package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/host-name.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/hooks/use-stable-callback-value.d.ts +0 -13
- package/lib/typescript/hooks/use-stable-callback-value.d.ts.map +0 -1
- package/lib/typescript/providers/register-bounds.provider.d.ts +0 -25
- package/lib/typescript/providers/register-bounds.provider.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/origin.provider.d.ts +0 -11
- package/lib/typescript/providers/screen/origin.provider.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/components/boundary-portal/helpers/host-name.ts +0 -10
- 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/hooks/use-stable-callback-value.ts +0 -72
- package/src/providers/register-bounds.provider.tsx +0 -401
- 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/origin.provider.tsx +0 -38
- package/src/providers/screen/styles/helpers/opening-phase.ts +0 -25
|
@@ -3,36 +3,53 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
var _react =
|
|
9
|
-
var React = _react;
|
|
6
|
+
exports.BlankStackProvider = BlankStackProvider;
|
|
7
|
+
exports.useBlankStackStore = void 0;
|
|
8
|
+
var _react = require("react");
|
|
10
9
|
var _useStack = require("../../hooks/navigation/use-stack");
|
|
10
|
+
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
11
11
|
var _blankStackState = require("./blank-stack-state");
|
|
12
12
|
var _core = require("./core.provider");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (!context) {
|
|
20
|
-
throw new Error("useBlankStackContext must be used within BlankStackProvider");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const createScenesByKey = scenes => {
|
|
16
|
+
const scenesByKey = {};
|
|
17
|
+
for (const scene of scenes) {
|
|
18
|
+
scenesByKey[scene.route.key] = scene;
|
|
21
19
|
}
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
return scenesByKey;
|
|
21
|
+
};
|
|
22
|
+
const {
|
|
23
|
+
BlankStackProvider: BlankStackStoreProvider,
|
|
24
|
+
useBlankStackStore
|
|
25
|
+
} = (0, _createProvider.default)("BlankStack", {
|
|
26
|
+
guarded: false
|
|
27
|
+
})(({
|
|
28
|
+
children,
|
|
29
|
+
value
|
|
30
|
+
}) => ({
|
|
31
|
+
children,
|
|
32
|
+
value
|
|
33
|
+
}));
|
|
34
|
+
exports.useBlankStackStore = useBlankStackStore;
|
|
35
|
+
function BlankStackProvider({
|
|
36
|
+
state: stackState,
|
|
37
|
+
children,
|
|
38
|
+
...props
|
|
39
|
+
}) {
|
|
40
|
+
const flags = (0, _core.useStackCoreStore)(store => store.flags);
|
|
28
41
|
const {
|
|
29
42
|
state,
|
|
30
43
|
handleCloseRoute,
|
|
31
44
|
requestDismiss
|
|
32
|
-
} = (0, _blankStackState.useBlankStackState)(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
} = (0, _blankStackState.useBlankStackState)({
|
|
46
|
+
...props,
|
|
47
|
+
state: stackState
|
|
48
|
+
});
|
|
49
|
+
const navigatorKey = stackState.key;
|
|
50
|
+
const focusedIndex = stackState.index;
|
|
51
|
+
const scenesByKey = (0, _react.useMemo)(() => createScenesByKey(state.scenes), [state.scenes]);
|
|
52
|
+
const stackValue = (0, _react.useMemo)(() => ({
|
|
36
53
|
flags,
|
|
37
54
|
navigatorKey,
|
|
38
55
|
routeKeys: state.routeKeys,
|
|
@@ -41,36 +58,23 @@ function useBlankStackProviderValue(props) {
|
|
|
41
58
|
focusedIndex,
|
|
42
59
|
requestDismiss
|
|
43
60
|
}), [flags, navigatorKey, state.routeKeys, state.routes, state.scenes, focusedIndex, requestDismiss]);
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
const blankStackValue = {
|
|
62
|
+
navigatorKey,
|
|
63
|
+
routeKeys: state.routeKeys,
|
|
64
|
+
routes: state.routes,
|
|
48
65
|
scenes: state.scenes,
|
|
66
|
+
scenesByKey,
|
|
49
67
|
focusedIndex,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
stackContextValue,
|
|
54
|
-
blankStackProviderContextValue,
|
|
55
|
-
renderProps
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function withBlankStack(Component) {
|
|
59
|
-
return function BlankStackProvider(props) {
|
|
60
|
-
const {
|
|
61
|
-
stackContextValue,
|
|
62
|
-
blankStackProviderContextValue,
|
|
63
|
-
renderProps
|
|
64
|
-
} = useBlankStackProviderValue(props);
|
|
65
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useStack.StackProvider, {
|
|
66
|
-
value: stackContextValue,
|
|
67
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(BlankStackProviderContext.Provider, {
|
|
68
|
-
value: blankStackProviderContextValue,
|
|
69
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
70
|
-
...renderProps
|
|
71
|
-
})
|
|
72
|
-
})
|
|
73
|
-
});
|
|
68
|
+
requestDismiss,
|
|
69
|
+
shouldShowFloatOverlay: state.shouldShowFloatOverlay,
|
|
70
|
+
handleCloseRoute
|
|
74
71
|
};
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useStack.StackProvider, {
|
|
73
|
+
value: stackValue,
|
|
74
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(BlankStackStoreProvider, {
|
|
75
|
+
value: blankStackValue,
|
|
76
|
+
children: children
|
|
77
|
+
})
|
|
78
|
+
});
|
|
75
79
|
}
|
|
76
80
|
//# sourceMappingURL=blank-stack.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","require","_useStack","_createProvider","_interopRequireDefault","_blankStackState","_core","_jsxRuntime","e","__esModule","default","createScenesByKey","scenes","scenesByKey","scene","route","key","BlankStackProvider","BlankStackStoreProvider","useBlankStackStore","createProvider","guarded","children","value","exports","state","stackState","props","flags","useStackCoreStore","store","handleCloseRoute","requestDismiss","useBlankStackState","navigatorKey","focusedIndex","index","useMemo","stackValue","routeKeys","routes","blankStackValue","shouldShowFloatOverlay","jsx","StackProvider"],"sourceRoot":"../../../../src","sources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,CAACV,GAAG;EACnC,MAAMmB,YAAY,GAAGT,UAAU,CAACU,KAAK;EACrC,MAAMvB,WAAW,GAAG,IAAAwB,cAAO,EAC1B,MAAM1B,iBAAiB,CAACc,KAAK,CAACb,MAAM,CAAC,EACrC,CAACa,KAAK,CAACb,MAAM,CACd,CAAC;EAED,MAAM0B,UAAU,GAAG,IAAAD,cAAO,EACzB,OAAO;IACNT,KAAK;IACLM,YAAY;IACZK,SAAS,EAAEd,KAAK,CAACc,SAAS;IAC1BC,MAAM,EAAEf,KAAK,CAACe,MAAyB;IACvC5B,MAAM,EAAEa,KAAK,CAACb,MAA0B;IACxCuB,YAAY;IACZH;EACD,CAAC,CAAC,EACF,CACCJ,KAAK,EACLM,YAAY,EACZT,KAAK,CAACc,SAAS,EACfd,KAAK,CAACe,MAAM,EACZf,KAAK,CAACb,MAAM,EACZuB,YAAY,EACZH,cAAc,CAEhB,CAAC;EACD,MAAMS,eAAe,GAAG;IACvBP,YAAY;IACZK,SAAS,EAAEd,KAAK,CAACc,SAAS;IAC1BC,MAAM,EAAEf,KAAK,CAACe,MAAM;IACpB5B,MAAM,EAAEa,KAAK,CAACb,MAAM;IACpBC,WAAW;IACXsB,YAAY;IACZH,cAAc;IACdU,sBAAsB,EAAEjB,KAAK,CAACiB,sBAAsB;IACpDX;EACD,CAAC;EAED,oBACC,IAAAxB,WAAA,CAAAoC,GAAA,EAACzC,SAAA,CAAA0C,aAAa;IAACrB,KAAK,EAAEe,UAAW;IAAAhB,QAAA,eAChC,IAAAf,WAAA,CAAAoC,GAAA,EAACzB,uBAAuB;MAACK,KAAK,EAAEkB,eAAgB;MAAAnB,QAAA,EAC9CA;IAAQ,CACe;EAAC,CACZ,CAAC;AAElB","ignoreList":[]}
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var React = _react;
|
|
6
|
+
exports.useStackCoreStore = exports.StackCoreProvider = void 0;
|
|
7
|
+
var _react = require("react");
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
9
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
12
10
|
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
@@ -14,7 +12,6 @@ var _stack = require("../../types/stack.types");
|
|
|
14
12
|
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
15
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
15
|
const {
|
|
19
16
|
width = 0,
|
|
20
17
|
height = 0
|
|
@@ -33,10 +30,10 @@ const initialSafeAreaMetrics = _reactNative.Platform.OS === "web" || _reactNativ
|
|
|
33
30
|
bottom: 0
|
|
34
31
|
}
|
|
35
32
|
} : _reactNativeSafeAreaContext.initialWindowMetrics;
|
|
36
|
-
function StackSafeAreaProvider({
|
|
33
|
+
const StackSafeAreaProvider = /*#__PURE__*/(0, _react.memo)(function StackSafeAreaProvider({
|
|
37
34
|
children
|
|
38
35
|
}) {
|
|
39
|
-
const insets =
|
|
36
|
+
const insets = (0, _react.useContext)(_reactNativeSafeAreaContext.SafeAreaInsetsContext);
|
|
40
37
|
if (insets) {
|
|
41
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
42
39
|
style: styles.container,
|
|
@@ -48,10 +45,22 @@ function StackSafeAreaProvider({
|
|
|
48
45
|
style: styles.container,
|
|
49
46
|
children: children
|
|
50
47
|
});
|
|
51
|
-
}
|
|
48
|
+
});
|
|
49
|
+
const StackCoreRoot = /*#__PURE__*/(0, _react.memo)(function StackCoreRoot({
|
|
50
|
+
children,
|
|
51
|
+
stackType
|
|
52
|
+
}) {
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
54
|
+
style: styles.container,
|
|
55
|
+
pointerEvents: stackType === _stack.StackType.COMPONENT ? "box-none" : undefined,
|
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StackSafeAreaProvider, {
|
|
57
|
+
children: children
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
});
|
|
52
61
|
const {
|
|
53
|
-
StackCoreProvider
|
|
54
|
-
|
|
62
|
+
StackCoreProvider,
|
|
63
|
+
useStackCoreStore
|
|
55
64
|
} = (0, _createProvider.default)("StackCore", {
|
|
56
65
|
guarded: true
|
|
57
66
|
})(({
|
|
@@ -74,44 +83,14 @@ const {
|
|
|
74
83
|
value: {
|
|
75
84
|
flags
|
|
76
85
|
},
|
|
77
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StackSafeAreaProvider, {
|
|
81
|
-
children: children
|
|
82
|
-
})
|
|
86
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StackCoreRoot, {
|
|
87
|
+
stackType: STACK_TYPE,
|
|
88
|
+
children: children
|
|
83
89
|
})
|
|
84
90
|
};
|
|
85
91
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* HOC that wraps a component with the StackCore provider.
|
|
89
|
-
* Just a simple open gate
|
|
90
|
-
*/
|
|
91
|
-
exports.useStackCoreContext = useStackCoreContext;
|
|
92
|
-
function withStackCore(defaultConfig, Component) {
|
|
93
|
-
return function StackCoreWrapper({
|
|
94
|
-
DISABLE_NATIVE_SCREENS,
|
|
95
|
-
DISABLE_NATIVE_SCREEN_CONTAINER,
|
|
96
|
-
TRANSITIONS_ALWAYS_ON,
|
|
97
|
-
STACK_TYPE,
|
|
98
|
-
...props
|
|
99
|
-
}) {
|
|
100
|
-
// Start from defaults, then apply explicit overrides from the caller.
|
|
101
|
-
const config = {
|
|
102
|
-
TRANSITIONS_ALWAYS_ON: TRANSITIONS_ALWAYS_ON ?? defaultConfig.TRANSITIONS_ALWAYS_ON,
|
|
103
|
-
STACK_TYPE: STACK_TYPE ?? defaultConfig.STACK_TYPE,
|
|
104
|
-
DISABLE_NATIVE_SCREENS: DISABLE_NATIVE_SCREENS ?? defaultConfig.DISABLE_NATIVE_SCREENS,
|
|
105
|
-
DISABLE_NATIVE_SCREEN_CONTAINER: DISABLE_NATIVE_SCREEN_CONTAINER ?? defaultConfig.DISABLE_NATIVE_SCREEN_CONTAINER
|
|
106
|
-
};
|
|
107
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalStackCoreProvider, {
|
|
108
|
-
config: config,
|
|
109
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
110
|
-
...props
|
|
111
|
-
})
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
}
|
|
92
|
+
exports.useStackCoreStore = useStackCoreStore;
|
|
93
|
+
exports.StackCoreProvider = StackCoreProvider;
|
|
115
94
|
const styles = _reactNative.StyleSheet.create({
|
|
116
95
|
container: {
|
|
117
96
|
flex: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeSafeAreaContext","_stack","_createProvider","_interopRequireDefault","_jsxRuntime","e","__esModule","default","width","height","Dimensions","get","initialSafeAreaMetrics","Platform","OS","initialWindowMetrics","frame","x","y","insets","top","left","right","bottom","StackSafeAreaProvider","memo","children","useContext","SafeAreaInsetsContext","jsx","View","style","styles","container","SafeAreaProvider","initialMetrics","StackCoreRoot","stackType","GestureHandlerRootView","pointerEvents","StackType","COMPONENT","undefined","StackCoreProvider","useStackCoreStore","createProvider","guarded","config","TRANSITIONS_ALWAYS_ON","DISABLE_NATIVE_SCREENS","DISABLE_NATIVE_SCREEN_CONTAINER","STACK_TYPE","BLANK","flags","useMemo","value","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../src","sources":["providers/stack/core.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAC,sBAAA,CAAAN,OAAA;AAAyD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAM,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAuBzD,MAAM;EAAEG,KAAK,GAAG,CAAC;EAAEC,MAAM,GAAG;AAAE,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;AAE1D,MAAMC,sBAAsB,GAC3BC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAIC,gDAAoB,IAAI,IAAI,GAClD;EACAC,KAAK,EAAE;IAAEC,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE,CAAC;IAAEV,KAAK;IAAEC;EAAO,CAAC;EACpCU,MAAM,EAAE;IAAEC,GAAG,EAAE,CAAC;IAAEC,IAAI,EAAE,CAAC;IAAEC,KAAK,EAAE,CAAC;IAAEC,MAAM,EAAE;EAAE;AAChD,CAAC,GACAR,gDAAoB;AAExB,MAAMS,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UAAU,GAAGX,gBAAS,CAACY;EACxB,CAAC,GAAGL,MAAM;EAEV,MAAMM,KAAK,GAAG,IAAAC,cAAO,EACpB,OAAO;IACNN,qBAAqB;IACrBG,UAAU;IACVF,sBAAsB;IACtBC;EACD,CAAC,CAAC,EACF,CACCF,qBAAqB,EACrBG,UAAU,EACVF,sBAAsB,EACtBC,+BAA+B,CAEjC,CAAC;EAED,OAAO;IACNK,KAAK,EAAE;MAAEF;IAAM,CAAC;IAChB3B,QAAQ,eAAE,IAAAtB,WAAA,CAAAyB,GAAA,EAACO,aAAa;MAACC,SAAS,EAAEc,UAAW;MAAAzB,QAAA,EAAEA;IAAQ,CAAgB;EAC1E,CAAC;AACF,CAAC,CAAC;AAAC8B,OAAA,CAAAZ,iBAAA,GAAAA,iBAAA;AAAAY,OAAA,CAAAb,iBAAA,GAAAA,iBAAA;AAEH,MAAMX,MAAM,GAAGyB,uBAAU,CAACC,MAAM,CAAC;EAChCzB,SAAS,EAAE;IAAE0B,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,22 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.DirectStackProvider = DirectStackProvider;
|
|
7
|
+
exports.useDirectStackStore = void 0;
|
|
7
8
|
var _react = require("react");
|
|
8
9
|
var _useStack = require("../../hooks/navigation/use-stack");
|
|
10
|
+
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
9
11
|
var _visibility = require("../../utils/overlay/visibility");
|
|
10
12
|
var _core = require("./core.provider");
|
|
11
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const {
|
|
16
|
+
DirectStackProvider: DirectStackStoreProvider,
|
|
17
|
+
useDirectStackStore
|
|
18
|
+
} = (0, _createProvider.default)("DirectStack", {
|
|
19
|
+
guarded: true
|
|
20
|
+
})(({
|
|
21
|
+
children,
|
|
22
|
+
value
|
|
23
|
+
}) => ({
|
|
24
|
+
children,
|
|
25
|
+
value
|
|
26
|
+
}));
|
|
27
|
+
exports.useDirectStackStore = useDirectStackStore;
|
|
28
|
+
function DirectStackProvider({
|
|
29
|
+
state,
|
|
30
|
+
navigation,
|
|
31
|
+
descriptors,
|
|
32
|
+
describe,
|
|
33
|
+
children
|
|
34
|
+
}) {
|
|
35
|
+
const flags = (0, _core.useStackCoreStore)(store => store.flags);
|
|
22
36
|
const navigatorKey = state.key;
|
|
23
37
|
const preloadedDescriptors = (0, _react.useMemo)(() => {
|
|
24
38
|
return state.preloadedRoutes.reduce((acc, route) => {
|
|
@@ -40,20 +54,25 @@ function useDirectStackValue(props) {
|
|
|
40
54
|
...descriptors
|
|
41
55
|
};
|
|
42
56
|
let shouldShowFloatOverlay = false;
|
|
43
|
-
for (
|
|
57
|
+
for (let index = 0; index < allRoutes.length; index++) {
|
|
58
|
+
const route = allRoutes[index];
|
|
59
|
+
if (!route) {
|
|
60
|
+
throw new Error(`Missing stack route at index ${index}.`);
|
|
61
|
+
}
|
|
44
62
|
const descriptor = allDescriptors[route.key];
|
|
63
|
+
if (!descriptor) {
|
|
64
|
+
throw new Error(`Missing descriptor for route "${route.key}".`);
|
|
65
|
+
}
|
|
45
66
|
const isPreloaded = preloadedDescriptors[route.key] !== undefined && descriptors[route.key] === undefined;
|
|
46
67
|
scenes.push({
|
|
68
|
+
activity: index === state.index ? "active" : index === state.index - 1 ? "inert" : "inactive",
|
|
47
69
|
route,
|
|
48
70
|
descriptor,
|
|
49
71
|
isPreloaded
|
|
50
72
|
});
|
|
51
73
|
routeKeys.push(route.key);
|
|
52
|
-
if (!shouldShowFloatOverlay && descriptor) {
|
|
53
|
-
|
|
54
|
-
if (options?.enableTransitions === true && (0, _visibility.isOverlayVisible)(options)) {
|
|
55
|
-
shouldShowFloatOverlay = true;
|
|
56
|
-
}
|
|
74
|
+
if (!shouldShowFloatOverlay && descriptor.options?.enableTransitions === true && (0, _visibility.isOverlayVisible)(descriptor.options)) {
|
|
75
|
+
shouldShowFloatOverlay = true;
|
|
57
76
|
}
|
|
58
77
|
}
|
|
59
78
|
return {
|
|
@@ -62,9 +81,9 @@ function useDirectStackValue(props) {
|
|
|
62
81
|
routeKeys,
|
|
63
82
|
allRoutes
|
|
64
83
|
};
|
|
65
|
-
}, [state.routes, state.preloadedRoutes, preloadedDescriptors, descriptors]);
|
|
84
|
+
}, [state.routes, state.preloadedRoutes, state.index, preloadedDescriptors, descriptors]);
|
|
66
85
|
const focusedIndex = state.index;
|
|
67
|
-
const
|
|
86
|
+
const stackValue = (0, _react.useMemo)(() => ({
|
|
68
87
|
flags,
|
|
69
88
|
navigatorKey,
|
|
70
89
|
routeKeys,
|
|
@@ -72,33 +91,20 @@ function useDirectStackValue(props) {
|
|
|
72
91
|
scenes,
|
|
73
92
|
focusedIndex
|
|
74
93
|
}), [flags, navigatorKey, routeKeys, allRoutes, scenes, focusedIndex]);
|
|
75
|
-
|
|
76
|
-
// DirectStack context value
|
|
77
|
-
const lifecycleValue = (0, _react.useMemo)(() => ({
|
|
94
|
+
const directStackValue = {
|
|
78
95
|
state,
|
|
79
96
|
navigation,
|
|
80
97
|
descriptors,
|
|
81
98
|
scenes,
|
|
82
99
|
focusedIndex,
|
|
83
100
|
shouldShowFloatOverlay
|
|
84
|
-
}), [state, navigation, descriptors, scenes, focusedIndex, shouldShowFloatOverlay]);
|
|
85
|
-
return {
|
|
86
|
-
...lifecycleValue,
|
|
87
|
-
stackContextValue
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function withDirectStack(Component) {
|
|
91
|
-
return function DirectStackProvider(props) {
|
|
92
|
-
const {
|
|
93
|
-
stackContextValue,
|
|
94
|
-
...lifecycleValue
|
|
95
|
-
} = useDirectStackValue(props);
|
|
96
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useStack.StackProvider, {
|
|
97
|
-
value: stackContextValue,
|
|
98
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
99
|
-
...lifecycleValue
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
101
|
};
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useStack.StackProvider, {
|
|
103
|
+
value: stackValue,
|
|
104
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DirectStackStoreProvider, {
|
|
105
|
+
value: directStackValue,
|
|
106
|
+
children: children
|
|
107
|
+
})
|
|
108
|
+
});
|
|
103
109
|
}
|
|
104
110
|
//# sourceMappingURL=direct.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_useStack","_visibility","_core","_jsxRuntime","
|
|
1
|
+
{"version":3,"names":["_react","require","_useStack","_createProvider","_interopRequireDefault","_visibility","_core","_jsxRuntime","e","__esModule","default","DirectStackProvider","DirectStackStoreProvider","useDirectStackStore","createProvider","guarded","children","value","exports","state","navigation","descriptors","describe","flags","useStackCoreStore","store","navigatorKey","key","preloadedDescriptors","useMemo","preloadedRoutes","reduce","acc","route","scenes","shouldShowFloatOverlay","routeKeys","allRoutes","routes","concat","allDescriptors","index","length","Error","descriptor","isPreloaded","undefined","push","activity","options","enableTransitions","isOverlayVisible","focusedIndex","stackValue","directStackValue","jsx","StackProvider"],"sourceRoot":"../../../../src","sources":["providers/stack/direct.provider.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAUA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAAoD,IAAAM,WAAA,GA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CAAC;EACF,CAAC,EAAE,CACFlB,KAAK,CAACmB,MAAM,EACZnB,KAAK,CAACW,eAAe,EACrBX,KAAK,CAACsB,KAAK,EACXb,oBAAoB,EACpBP,WAAW,CACX,CAAC;EAEH,MAAM+B,YAAY,GAAGjC,KAAK,CAACsB,KAAK;EAChC,MAAMY,UAAU,GAAG,IAAAxB,cAAO,EACzB,OAAO;IACNN,KAAK;IACLG,YAAY;IACZU,SAAS;IACTE,MAAM,EAAED,SAAS;IACjBH,MAAM;IACNkB;EACD,CAAC,CAAC,EACF,CAAC7B,KAAK,EAAEG,YAAY,EAAEU,SAAS,EAAEC,SAAS,EAAEH,MAAM,EAAEkB,YAAY,CACjE,CAAC;EACD,MAAME,gBAAgB,GAAG;IACxBnC,KAAK;IACLC,UAAU;IACVC,WAAW;IACXa,MAAM;IACNkB,YAAY;IACZjB;EACD,CAAC;EAED,oBACC,IAAA5B,WAAA,CAAAgD,GAAA,EAACrD,SAAA,CAAAsD,aAAa;IAACvC,KAAK,EAAEoC,UAAW;IAAArC,QAAA,eAChC,IAAAT,WAAA,CAAAgD,GAAA,EAAC3C,wBAAwB;MAACK,KAAK,EAAEqC,gBAAiB;MAAAtC,QAAA,EAChDA;IAAQ,CACgB;EAAC,CACb,CAAC;AAElB","ignoreList":[]}
|
|
@@ -3,9 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.AnimationStore = void 0;
|
|
6
|
+
exports.emitMotionStart = exports.AnimationStore = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _constants = require("../constants");
|
|
9
|
+
var _emit = require("../utils/animation/emit");
|
|
8
10
|
var _createStore = require("../utils/create-store");
|
|
11
|
+
const emitMotionStart = animations => {
|
|
12
|
+
"worklet";
|
|
13
|
+
|
|
14
|
+
animations.progressSettled.set(_constants.FALSE);
|
|
15
|
+
if (animations.progressAnimating.get()) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
(0, _emit.emit)(animations.willAnimate, _constants.TRUE, _constants.FALSE);
|
|
19
|
+
requestAnimationFrame(() => {
|
|
20
|
+
"worklet";
|
|
21
|
+
|
|
22
|
+
animations.progressAnimating.set(_constants.TRUE);
|
|
23
|
+
});
|
|
24
|
+
return true;
|
|
25
|
+
};
|
|
26
|
+
exports.emitMotionStart = emitMotionStart;
|
|
9
27
|
function createAnimationBag() {
|
|
10
28
|
return {
|
|
11
29
|
transitionProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_emit","_createStore","emitMotionStart","animations","progressSettled","set","FALSE","progressAnimating","get","emit","willAnimate","TRUE","requestAnimationFrame","exports","createAnimationBag","transitionProgress","makeMutable","visualProgress","stackProgress","closing","entering","AnimationStore","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../src","sources":["stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAaO,MAAMI,eAAe,GAAIC,UAA6B,IAAK;EACjE,SAAS;;EAETA,UAAU,CAACC,eAAe,CAACC,GAAG,CAACC,gBAAK,CAAC;EAErC,IAAIH,UAAU,CAACI,iBAAiB,CAACC,GAAG,CAAC,CAAC,EAAE;IACvC,OAAO,KAAK;EACb;EAEA,IAAAC,UAAI,EAACN,UAAU,CAACO,WAAW,EAAEC,eAAI,EAAEL,gBAAK,CAAC;EACzCM,qBAAqB,CAAC,MAAM;IAC3B,SAAS;;IACTT,UAAU,CAACI,iBAAiB,CAACF,GAAG,CAACM,eAAI,CAAC;EACvC,CAAC,CAAC;EACF,OAAO,IAAI;AACZ,CAAC;AAACE,OAAA,CAAAX,eAAA,GAAAA,eAAA;AAEF,SAASY,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,kBAAkB,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IAClCC,cAAc,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IAC9BE,aAAa,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;IAC7BN,WAAW,EAAE,IAAAM,kCAAW,EAAC,CAAC,CAAC;IAC3BG,OAAO,EAAE,IAAAH,kCAAW,EAAC,CAAC,CAAC;IACvBT,iBAAiB,EAAE,IAAAS,kCAAW,EAAC,CAAC,CAAC;IACjCZ,eAAe,EAAE,IAAAY,kCAAW,EAAC,CAAC,CAAC;IAC/BI,QAAQ,EAAE,IAAAJ,kCAAW,EAAC,CAAC;EACxB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMK,cAAc,GAAAR,OAAA,CAAAQ,cAAA,GAAG,IAAAC,wBAAW,EAAoB;EAC5DC,SAAS,EAAET,kBAAkB;EAC7BU,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACV,kBAAkB,CAAC;IACvC,IAAAW,sCAAe,EAACD,GAAG,CAACR,cAAc,CAAC;IACnC,IAAAS,sCAAe,EAACD,GAAG,CAACP,aAAa,CAAC;IAClC,IAAAQ,sCAAe,EAACD,GAAG,CAACf,WAAW,CAAC;IAChC,IAAAgB,sCAAe,EAACD,GAAG,CAAClB,iBAAiB,CAAC;IACtC,IAAAmB,sCAAe,EAACD,GAAG,CAACrB,eAAe,CAAC;IACpC,IAAAsB,sCAAe,EAACD,GAAG,CAACN,OAAO,CAAC;IAC5B,IAAAO,sCAAe,EAACD,GAAG,CAACL,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -147,11 +147,11 @@ const writeGroup = (state, pairKey, group, activeId, initialId) => {
|
|
|
147
147
|
initialId: previousInitialId ?? initialId ?? activeId
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group) => {
|
|
150
|
+
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group, runtimeFlags = {}) => {
|
|
151
151
|
"worklet";
|
|
152
152
|
|
|
153
153
|
const existingLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
154
|
-
const destination = createLinkSide(screenKey, bounds, styles);
|
|
154
|
+
const destination = createLinkSide(screenKey, bounds, styles, runtimeFlags);
|
|
155
155
|
const link = existingLink ?? {
|
|
156
156
|
group,
|
|
157
157
|
status: "source-incomplete",
|
|
@@ -200,14 +200,14 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, runtimeF
|
|
|
200
200
|
return state;
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
203
|
+
function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group, runtimeFlags = {}) {
|
|
204
204
|
"worklet";
|
|
205
205
|
|
|
206
206
|
_state.pairs.modify(state => {
|
|
207
207
|
"worklet";
|
|
208
208
|
|
|
209
209
|
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
210
|
-
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
|
|
210
|
+
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group, runtimeFlags);
|
|
211
211
|
return state;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAuBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGL,KAAK,CAACM,MAAM,EAAED,KAAK,EAAE,EAAE;IAClD,MAAME,aAAa,GAAGC,2BAA2B,CAACR,KAAK,CAACK,KAAK,CAAC,CAAC;IAC/D,IAAIE,aAAa,KAAKE,SAAS,EAAE;MAChCL,QAAQ,CAACM,IAAI,CAACH,aAAa,CAAC;IAC7B;EACD;EAEA,OAAOH,QAAQ;AAChB,CAAC;AAED,MAAMI,2BAA2B,GAAIR,KAAc,IAAc;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AAO;IACNF,SAAS;IACTC,MAAM;IACNJ,MAAM,EAAED,cAAc,CAACC,MAAM,CAAC;IAC9BM,OAAO,EAAED,YAAY,CAACC,OAAO,GAAG,IAAI,GAAGf,SAAS;IAChDgB,cAAc,EAAEF,YAAY,CAACE,cAAc,GAAG,IAAI,GAAGhB;EACtD,CAAC;AACF,CAAC;AAED,MAAMiB,aAAa,GAAGA,CACrBC,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBlC,IAAa,KACT;EACJ,SAAS;;EACT,IAAAmC,0BAAe,EAACH,KAAK,EAAEC,OAAO,CAAC,CAACC,OAAO,CAAC,GAAGlC,IAAI;AAChD,CAAC;AAED,MAAMoC,UAAU,GAAGA,CAClBJ,KAAqB,EACrBC,OAAsB,EACtBI,KAAe,EACfC,QAAiB,EACjBC,SAAmB,KACf;EACJ,SAAS;;EACT,MAAMC,iBAAiB,GAAGR,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAEpE,IAAAG,2BAAgB,EAACV,KAAK,EAAEC,OAAO,CAAC,CAACI,KAAK,CAAC,GAAG;IACzCC,QAAQ;IACRC,SAAS,EAAEC,iBAAiB,IAAID,SAAS,IAAID;EAC9C,CAAC;AACF,CAAC;AAED,MAAMK,gBAAgB,GAAGA,CACxBX,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBR,SAAoB,EACpBC,MAA0B,EAC1BJ,MAAkB,EAClBc,KAAgB,
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAuBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGL,KAAK,CAACM,MAAM,EAAED,KAAK,EAAE,EAAE;IAClD,MAAME,aAAa,GAAGC,2BAA2B,CAACR,KAAK,CAACK,KAAK,CAAC,CAAC;IAC/D,IAAIE,aAAa,KAAKE,SAAS,EAAE;MAChCL,QAAQ,CAACM,IAAI,CAACH,aAAa,CAAC;IAC7B;EACD;EAEA,OAAOH,QAAQ;AAChB,CAAC;AAED,MAAMI,2BAA2B,GAAIR,KAAc,IAAc;EAChE,SAAS;;EACT,IAAID,iBAAiB,C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A;EACA,IAAI,CAACG,KAAK,IAAI0B,aAAa,CAAC/D,IAAI,CAAC,EAAE;IAClC,OAAO;MACNgD,GAAG;MACHhD;IACD,CAAC;EACF;EAEA,MAAMuC,SAAS,GAAGP,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAC5D,IAAIA,SAAS,EAAE;IACd,MAAM2B,WAAW,GAAG,IAAArB,kBAAW,EAACb,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC;IAE1D,IAAIwB,aAAa,CAACG,WAAW,CAAC,EAAE;MAC/B,OAAO;QACNlB,GAAG,EAAE,IAAAmB,yBAAc,EAAC9B,KAAK,EAAEE,SAAS,CAAC;QACrCvC,IAAI,EAAEkE;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNlB,GAAG;IACHhD;EACD,CAAC;AACF;AAEA,SAASoE,SAASA,CACjBnC,OAAsB,EACtBe,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAqB,oBAAa,EAACpB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACnE;AAEA,SAASsB,cAAcA,CACtBrC,OAAsB,EACtBe,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAAuB,yBAAkB,EAACtB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getClampedScrollAxisDelta = exports.cloneScrollMetadataState = exports.clampScrollAxisOffset = exports.ScrollStore = void 0;
|
|
6
|
+
exports.getVisualScrollAxisDelta = exports.getClampedScrollAxisDelta = exports.cloneScrollMetadataState = exports.clampScrollAxisOffset = exports.ScrollStore = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _createStore = require("../utils/create-store");
|
|
9
9
|
const metadataWriters = {};
|
|
@@ -89,12 +89,30 @@ const getClampedScrollAxisDelta = (current, captured, axis) => {
|
|
|
89
89
|
return currentOffset - capturedOffset;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Visual scroll travel from a bounds snapshot normalized to its at-rest
|
|
94
|
+
* position. The captured side is clamped because measurement removes transient
|
|
95
|
+
* rubber-band displacement; the current side stays raw so consumers can follow
|
|
96
|
+
* the position that is actually visible on iOS.
|
|
97
|
+
*/
|
|
98
|
+
exports.getClampedScrollAxisDelta = getClampedScrollAxisDelta;
|
|
99
|
+
const getVisualScrollAxisDelta = (current, captured, axis) => {
|
|
100
|
+
"worklet";
|
|
101
|
+
|
|
102
|
+
const currentAxisState = current?.[axis];
|
|
103
|
+
const capturedOffset = clampScrollAxisOffset(captured?.[axis]);
|
|
104
|
+
if (!currentAxisState || capturedOffset === null) {
|
|
105
|
+
return 0;
|
|
106
|
+
}
|
|
107
|
+
return currentAxisState.offset - capturedOffset;
|
|
108
|
+
};
|
|
109
|
+
|
|
92
110
|
/**
|
|
93
111
|
* Route-keyed scroll geometry used by gesture activation and bounds measurement.
|
|
94
112
|
* Coordination tracks gesture-owner scoped ScrollView offsets and dimensions;
|
|
95
113
|
* metadata tracks screen-scoped scroll values exposed to animation consumers.
|
|
96
114
|
*/
|
|
97
|
-
exports.
|
|
115
|
+
exports.getVisualScrollAxisDelta = getVisualScrollAxisDelta;
|
|
98
116
|
const scrollStore = (0, _createStore.createStore)({
|
|
99
117
|
createBag: () => ({
|
|
100
118
|
coordination: (0, _reactNativeReanimated.makeMutable)(null),
|