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
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useOriginContext = exports.OriginProvider = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
|
-
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
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); }
|
|
13
|
-
const {
|
|
14
|
-
OriginProvider,
|
|
15
|
-
useOriginContext
|
|
16
|
-
} = (0, _createProvider.default)("Origin", {
|
|
17
|
-
guarded: true
|
|
18
|
-
})(({
|
|
19
|
-
children
|
|
20
|
-
}) => {
|
|
21
|
-
const originRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
22
|
-
return {
|
|
23
|
-
value: {
|
|
24
|
-
originRef
|
|
25
|
-
},
|
|
26
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
27
|
-
style: styles.container,
|
|
28
|
-
collapsable: false,
|
|
29
|
-
ref: originRef,
|
|
30
|
-
children: children
|
|
31
|
-
})
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
exports.useOriginContext = useOriginContext;
|
|
35
|
-
exports.OriginProvider = OriginProvider;
|
|
36
|
-
const styles = _reactNative.StyleSheet.create({
|
|
37
|
-
container: {
|
|
38
|
-
flex: 1
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=origin.provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_interopRequireWildcard","_createProvider","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OriginProvider","useOriginContext","createProvider","guarded","children","originRef","useAnimatedRef","value","jsx","View","style","styles","container","collapsable","ref","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../src","sources":["providers/screen/origin.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAI,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAAA,GAAAS,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAG,CAAA,OAAAK,CAAA,CAAAI,GAAA,IAAAJ,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAAAE,CAAA,EAAAN,CAAA,EAAAK,CAAA,IAAAC,CAAA,CAAAN,CAAA,IAAAH,CAAA,CAAAG,CAAA,WAAAM,CAAA,KAAAT,CAAA,EAAAG,CAAA;AASlD,MAAM;EAAEgB,cAAc;EAAEC;AAAiB,CAAC,GAAG,IAAAC,uBAAc,EAAC,QAAQ,EAAE;EAC5EC,OAAO,EAAE;AACV,CAAC,CAAC,CAAsB,CAAC;EAAEC;AAAS,CAAC,KAAK;EACzC,MAAMC,SAAS,GAAG,IAAAC,qCAAc,EAAO,CAAC;EAExC,OAAO;IACNC,KAAK,EAAE;MACNF;IACD,CAAC;IACDD,QAAQ,eACP,IAAAxB,WAAA,CAAA4B,GAAA,EAAChC,sBAAA,CAAAO,OAAQ,CAAC0B,IAAI;MACbC,KAAK,EAAEC,MAAM,CAACC,SAAU;MACxBC,WAAW,EAAE,KAAM;MACnBC,GAAG,EAAET,SAAU;MAAAD,QAAA,EAEdA;IAAQ,CACK;EAEjB,CAAC;AACF,CAAC,CAAC;AAACW,OAAA,CAAAd,gBAAA,GAAAA,gBAAA;AAAAc,OAAA,CAAAf,cAAA,GAAAA,cAAA;AAEH,MAAMW,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAChCL,SAAS,EAAE;IAAEM,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isOpeningBeforeStart = exports.hasOpenTransitionStarted = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* The "pre-start" window of an opening transition: the screen has committed to
|
|
9
|
-
* opening (`entering`) but `transitionProgress` has not yet moved past 0, so no
|
|
10
|
-
* transformed frame has been produced yet.
|
|
11
|
-
*
|
|
12
|
-
* This window is a quarantine, and two source-level guards key off it:
|
|
13
|
-
* - the visibility gate keeps the entering screen hidden (it must not be SEEN), and
|
|
14
|
-
* - interpolator ownership stays on "current" so the entering screen does not
|
|
15
|
-
* DRIVE other screens' styles until its transition is actually live.
|
|
16
|
-
*
|
|
17
|
-
* Both must agree on when the open transition has started, so the threshold
|
|
18
|
-
* lives here in one place rather than being re-derived at each site.
|
|
19
|
-
*/
|
|
20
|
-
const hasOpenTransitionStarted = transitionProgress => {
|
|
21
|
-
"worklet";
|
|
22
|
-
|
|
23
|
-
return transitionProgress > 0;
|
|
24
|
-
};
|
|
25
|
-
exports.hasOpenTransitionStarted = hasOpenTransitionStarted;
|
|
26
|
-
const isOpeningBeforeStart = (entering, transitionProgress) => {
|
|
27
|
-
"worklet";
|
|
28
|
-
|
|
29
|
-
return !!entering && !hasOpenTransitionStarted(transitionProgress);
|
|
30
|
-
};
|
|
31
|
-
exports.isOpeningBeforeStart = isOpeningBeforeStart;
|
|
32
|
-
//# sourceMappingURL=opening-phase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["hasOpenTransitionStarted","transitionProgress","exports","isOpeningBeforeStart","entering"],"sourceRoot":"../../../../../../src","sources":["providers/screen/styles/helpers/opening-phase.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,wBAAwB,GAAIC,kBAA0B,IAAK;EACvE,SAAS;;EACT,OAAOA,kBAAkB,GAAG,CAAC;AAC9B,CAAC;AAACC,OAAA,CAAAF,wBAAA,GAAAA,wBAAA;AAEK,MAAMG,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBH,kBAA0B,KACtB;EACJ,SAAS;;EACT,OAAO,CAAC,CAACG,QAAQ,IAAI,CAACJ,wBAAwB,CAACC,kBAAkB,CAAC;AACnE,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useLayoutEffect } from "react";
|
|
4
|
-
import { logger } from "../../../utils/logger";
|
|
5
|
-
import { TARGET_OUTSIDE_ROOT_WARNING, useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
6
|
-
export const useRegisterTarget = ({
|
|
7
|
-
targetAnimatedRef,
|
|
8
|
-
preparedStyles,
|
|
9
|
-
measurementRef
|
|
10
|
-
}) => {
|
|
11
|
-
const rootContext = useBoundaryRootContext();
|
|
12
|
-
const registerTargetRef = rootContext?.registerTargetRef;
|
|
13
|
-
const unregisterTargetRef = rootContext?.unregisterTargetRef;
|
|
14
|
-
useLayoutEffect(() => {
|
|
15
|
-
if (!registerTargetRef || !unregisterTargetRef) {
|
|
16
|
-
if (__DEV__) {
|
|
17
|
-
logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
|
|
18
|
-
}
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
registerTargetRef(targetAnimatedRef, preparedStyles, measurementRef);
|
|
22
|
-
return () => {
|
|
23
|
-
unregisterTargetRef(targetAnimatedRef);
|
|
24
|
-
};
|
|
25
|
-
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=use-register-target.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","logger","TARGET_OUTSIDE_ROOT_WARNING","useBoundaryRootContext","useRegisterTarget","targetAnimatedRef","preparedStyles","measurementRef","rootContext","registerTargetRef","unregisterTargetRef","__DEV__","warn"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-register-target.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AAGvC,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,qCAAqC;AAQ5C,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,iBAAiB;EACjBC,cAAc;EACdC;AACoB,CAAC,KAAK;EAC1B,MAAMC,WAAW,GAAGL,sBAAsB,CAAC,CAAC;EAC5C,MAAMM,iBAAiB,GAAGD,WAAW,EAAEC,iBAAiB;EACxD,MAAMC,mBAAmB,GAAGF,WAAW,EAAEE,mBAAmB;EAC5DV,eAAe,CAAC,MAAM;IACrB,IAAI,CAACS,iBAAiB,IAAI,CAACC,mBAAmB,EAAE;MAC/C,IAAIC,OAAO,EAAE;QACZV,MAAM,CAACW,IAAI,CAACV,2BAA2B,CAAC;MACzC;MACA;IACD;IAEAO,iBAAiB,CAACJ,iBAAiB,EAAEC,cAAc,EAAEC,cAAc,CAAC;IACpE,OAAO,MAAM;MACZG,mBAAmB,CAACL,iBAAiB,CAAC;IACvC,CAAC;EACF,CAAC,EAAE,CACFI,iBAAiB,EACjBC,mBAAmB,EACnBL,iBAAiB,EACjBC,cAAc,EACdC,cAAc,CACd,CAAC;AACH,CAAC","ignoreList":[]}
|
package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo } from "react";
|
|
4
|
-
import Animated from "react-native-reanimated";
|
|
5
|
-
import { scheduleOnUI } from "react-native-worklets";
|
|
6
|
-
import { logger } from "../../../../../../utils/logger";
|
|
7
|
-
import { isTeleportAvailable, PORTAL_POINTER_EVENTS, NativePortal as TeleportPortal } from "../../../teleport";
|
|
8
|
-
import { usePlaceholderStyles } from "../hooks/use-placeholder-styles";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const AnimatedNativePortal = TeleportPortal ? Animated.createAnimatedComponent(TeleportPortal) : null;
|
|
11
|
-
export const BoundaryPortalSlot = /*#__PURE__*/memo(function BoundaryPortalSlot({
|
|
12
|
-
id,
|
|
13
|
-
children,
|
|
14
|
-
enabled,
|
|
15
|
-
animatedProps,
|
|
16
|
-
placeholderRef
|
|
17
|
-
}) {
|
|
18
|
-
const isPortalEnabled = enabled && isTeleportAvailable;
|
|
19
|
-
if (__DEV__ && enabled && !id) {
|
|
20
|
-
logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
|
|
21
|
-
}
|
|
22
|
-
const {
|
|
23
|
-
handleOnLayout,
|
|
24
|
-
placeholderStyle
|
|
25
|
-
} = usePlaceholderStyles();
|
|
26
|
-
if (isPortalEnabled && AnimatedNativePortal) {
|
|
27
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
28
|
-
ref: placeholderRef,
|
|
29
|
-
onLayout: ({
|
|
30
|
-
nativeEvent: {
|
|
31
|
-
layout
|
|
32
|
-
}
|
|
33
|
-
}) => scheduleOnUI(handleOnLayout, layout),
|
|
34
|
-
style: placeholderStyle,
|
|
35
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
36
|
-
collapsable: false,
|
|
37
|
-
children: /*#__PURE__*/_jsx(AnimatedNativePortal, {
|
|
38
|
-
animatedProps: animatedProps,
|
|
39
|
-
name: id,
|
|
40
|
-
pointerEvents: PORTAL_POINTER_EVENTS,
|
|
41
|
-
children: children
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return children;
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=portal-slot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","Animated","scheduleOnUI","logger","isTeleportAvailable","PORTAL_POINTER_EVENTS","NativePortal","TeleportPortal","usePlaceholderStyles","jsx","_jsx","AnimatedNativePortal","createAnimatedComponent","BoundaryPortalSlot","id","children","enabled","animatedProps","placeholderRef","isPortalEnabled","__DEV__","warnOnce","handleOnLayout","placeholderStyle","View","ref","onLayout","nativeEvent","layout","style","pointerEvents","collapsable","name"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/portal-slot.tsx"],"mappings":";;AAAA,SAGCA,IAAI,QAEE,OAAO;AAEd,OAAOC,QAAQ,MAA4B,yBAAyB;AACpE,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,MAAM,QAAQ,gCAAgC;AACvD,SACCC,mBAAmB,EACnBC,qBAAqB,EACrBC,YAAY,IAAIC,cAAc,QACxB,mBAAmB;AAC1B,SAASC,oBAAoB,QAAQ,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASvE,MAAMC,oBAAoB,GAAGJ,cAAc,GACxCN,QAAQ,CAACW,uBAAuB,CAChCL,cACD,CAAC,GACA,IAAI;AAUP,OAAO,MAAMM,kBAAkB,gBAAGb,IAAI,CAAC,SAASa,kBAAkBA,CAAC;EAClEC,EAAE;EACFC,QAAQ;EACRC,OAAO;EACPC,aAAa;EACbC;AACwB,CAAC,EAAE;EAC3B,MAAMC,eAAe,GAAGH,OAAO,IAAIZ,mBAAmB;EAEtD,IAAIgB,OAAO,IAAIJ,OAAO,IAAI,CAACF,EAAE,EAAE;IAC9BX,MAAM,CAACkB,QAAQ,CACd,mBAAmB,EACnB,iEACD,CAAC;EACF;EAEA,MAAM;IAAEC,cAAc;IAAEC;EAAiB,CAAC,GAAGf,oBAAoB,CAAC,CAAC;EAEnE,IAAIW,eAAe,IAAIR,oBAAoB,EAAE;IAC5C,oBACCD,IAAA,CAACT,QAAQ,CAACuB,IAAI;MACbC,GAAG,EAAEP,cAAe;MACpBQ,QAAQ,EAAEA,CAAC;QAAEC,WAAW,EAAE;UAAEC;QAAO;MAAE,CAAC,KACrC1B,YAAY,CAACoB,cAAc,EAAEM,MAAM,CACnC;MACDC,KAAK,EAAEN,gBAAiB;MACxBO,aAAa,EAAEzB,qBAAsB;MACrC0B,WAAW,EAAE,KAAM;MAAAhB,QAAA,eAEnBL,IAAA,CAACC,oBAAoB;QACpBM,aAAa,EAAEA,aAAc;QAC7Be,IAAI,EAAElB,EAAG;QACTgB,aAAa,EAAEzB,qBAAsB;QAAAU,QAAA,EAEpCA;MAAQ,CACY;IAAC,CACT,CAAC;EAElB;EAEA,OAAOA,QAAQ;AAChB,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/components/boundary/portal/components/boundary-portal/helpers/host-name.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const BOUNDARY_PORTAL_HOST_NAME_SUFFIX = "-portal-host";
|
|
4
|
-
export const createBoundaryPortalHostName = (hostKey, boundaryId, pairKey) => {
|
|
5
|
-
"worklet";
|
|
6
|
-
|
|
7
|
-
return `${hostKey}-${pairKey ? `${pairKey}-` : ""}${boundaryId}${BOUNDARY_PORTAL_HOST_NAME_SUFFIX}`;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=host-name.js.map
|
package/lib/module/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["BOUNDARY_PORTAL_HOST_NAME_SUFFIX","createBoundaryPortalHostName","hostKey","boundaryId","pairKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/helpers/host-name.ts"],"mappings":";;AAAA,MAAMA,gCAAgC,GAAG,cAAc;AAEvD,OAAO,MAAMC,4BAA4B,GAAGA,CAC3CC,OAAe,EACfC,UAAkB,EAClBC,OAAuB,KACnB;EACJ,SAAS;;EACT,OAAO,GAAGF,OAAO,IAAIE,OAAO,GAAG,GAAGA,OAAO,GAAG,GAAG,EAAE,GAAGD,UAAU,GAAGH,gCAAgC,EAAE;AACpG,CAAC","ignoreList":[]}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { getDestinationScreenKeyFromPairKey, getLinkKeyFromTag, getLink as getPairLink, getSourceScreenKeyFromPairKey } from "../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
4
|
-
export const isHandoffHostClosingComplete = ({
|
|
5
|
-
closing,
|
|
6
|
-
progressAnimating,
|
|
7
|
-
progressSettled,
|
|
8
|
-
willAnimate
|
|
9
|
-
}) => {
|
|
10
|
-
"worklet";
|
|
11
|
-
|
|
12
|
-
// A close request marks `closing` before its animation starts. Springs can
|
|
13
|
-
// also enter their settle-distance threshold before their final frame.
|
|
14
|
-
return !!closing && willAnimate === 0 && progressSettled === 1 && progressAnimating === 0;
|
|
15
|
-
};
|
|
16
|
-
const hasSeenScreenKey = (screenKeys, screenKey) => {
|
|
17
|
-
"worklet";
|
|
18
|
-
|
|
19
|
-
for (let index = 0; index < screenKeys.length; index++) {
|
|
20
|
-
if (screenKeys[index] === screenKey) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
25
|
-
};
|
|
26
|
-
const isReturningToPreviousSourceHost = ({
|
|
27
|
-
hostScreenKey,
|
|
28
|
-
ownerPairKey,
|
|
29
|
-
previousOwnerPairKey
|
|
30
|
-
}) => {
|
|
31
|
-
"worklet";
|
|
32
|
-
|
|
33
|
-
const previousSourceScreenKey = getSourceScreenKeyFromPairKey(previousOwnerPairKey);
|
|
34
|
-
const previousDestinationScreenKey = getDestinationScreenKeyFromPairKey(previousOwnerPairKey);
|
|
35
|
-
const ownerDestinationScreenKey = getDestinationScreenKeyFromPairKey(ownerPairKey);
|
|
36
|
-
return previousDestinationScreenKey !== "" && ownerDestinationScreenKey !== "" && previousDestinationScreenKey !== previousSourceScreenKey && ownerDestinationScreenKey === previousSourceScreenKey && hostScreenKey === previousSourceScreenKey;
|
|
37
|
-
};
|
|
38
|
-
export const canSwitchHandoffHostImmediately = ({
|
|
39
|
-
hostScreenKey,
|
|
40
|
-
ownerPairKey,
|
|
41
|
-
previousOwnerPairKey
|
|
42
|
-
}) => {
|
|
43
|
-
"worklet";
|
|
44
|
-
|
|
45
|
-
if (!hostScreenKey || !ownerPairKey) {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
if (hostScreenKey === getSourceScreenKeyFromPairKey(ownerPairKey)) {
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
if (!previousOwnerPairKey) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
return isReturningToPreviousSourceHost({
|
|
55
|
-
hostScreenKey,
|
|
56
|
-
ownerPairKey,
|
|
57
|
-
previousOwnerPairKey
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
const isActiveHandoffLink = ({
|
|
61
|
-
link,
|
|
62
|
-
linkKey,
|
|
63
|
-
pairKey,
|
|
64
|
-
pairsState
|
|
65
|
-
}) => {
|
|
66
|
-
"worklet";
|
|
67
|
-
|
|
68
|
-
if (!link.group) {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
const activeId = pairsState[pairKey]?.groups?.[link.group]?.activeId;
|
|
72
|
-
return !activeId || activeId === linkKey;
|
|
73
|
-
};
|
|
74
|
-
const resolveHandoffStyleOwnerScreenKey = ({
|
|
75
|
-
hostScreenKey,
|
|
76
|
-
isSettledHostReady,
|
|
77
|
-
settledHostScreenKey,
|
|
78
|
-
sourceScreenKey
|
|
79
|
-
}) => {
|
|
80
|
-
"worklet";
|
|
81
|
-
|
|
82
|
-
if (settledHostScreenKey === hostScreenKey && isSettledHostReady) {
|
|
83
|
-
return hostScreenKey;
|
|
84
|
-
}
|
|
85
|
-
return sourceScreenKey;
|
|
86
|
-
};
|
|
87
|
-
const pendingSignal = sourcePairKey => {
|
|
88
|
-
"worklet";
|
|
89
|
-
|
|
90
|
-
return {
|
|
91
|
-
hostScreenKey: null,
|
|
92
|
-
ownerPairKey: sourcePairKey,
|
|
93
|
-
ownerScreenKey: null,
|
|
94
|
-
status: "pending"
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
const clearSignal = sourcePairKey => {
|
|
98
|
-
"worklet";
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
hostScreenKey: null,
|
|
102
|
-
ownerPairKey: sourcePairKey,
|
|
103
|
-
ownerScreenKey: null,
|
|
104
|
-
status: "clear"
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export const resolveBoundaryPortalOwnership = ({
|
|
108
|
-
boundaryId,
|
|
109
|
-
currentScreenKey,
|
|
110
|
-
handoff,
|
|
111
|
-
isSettledHostClosingComplete = false,
|
|
112
|
-
isSettledHostReady = false,
|
|
113
|
-
pairsState,
|
|
114
|
-
settledHostScreenKey = null,
|
|
115
|
-
sourcePairKey
|
|
116
|
-
}) => {
|
|
117
|
-
"worklet";
|
|
118
|
-
|
|
119
|
-
const linkKey = getLinkKeyFromTag(boundaryId);
|
|
120
|
-
const link = getPairLink(pairsState, sourcePairKey, linkKey);
|
|
121
|
-
if (!link?.source) {
|
|
122
|
-
return pendingSignal(sourcePairKey);
|
|
123
|
-
}
|
|
124
|
-
if (!isActiveHandoffLink({
|
|
125
|
-
link,
|
|
126
|
-
linkKey,
|
|
127
|
-
pairKey: sourcePairKey,
|
|
128
|
-
pairsState
|
|
129
|
-
})) {
|
|
130
|
-
return clearSignal(sourcePairKey);
|
|
131
|
-
}
|
|
132
|
-
if (!handoff) {
|
|
133
|
-
return {
|
|
134
|
-
hostScreenKey: currentScreenKey,
|
|
135
|
-
ownerPairKey: sourcePairKey,
|
|
136
|
-
ownerScreenKey: currentScreenKey,
|
|
137
|
-
status: "complete"
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
if (link.status !== "complete") {
|
|
141
|
-
return pendingSignal(sourcePairKey);
|
|
142
|
-
}
|
|
143
|
-
let hostScreenKey = link.destination.screenKey;
|
|
144
|
-
let ownerPairKey = sourcePairKey;
|
|
145
|
-
const seenScreenKeys = [getSourceScreenKeyFromPairKey(sourcePairKey), hostScreenKey];
|
|
146
|
-
const pairKeys = Object.keys(pairsState);
|
|
147
|
-
for (let hop = 0; hop < pairKeys.length; hop++) {
|
|
148
|
-
let didAdvance = false;
|
|
149
|
-
let hasPendingNextHop = false;
|
|
150
|
-
let didHitVisitedScreen = false;
|
|
151
|
-
for (let index = 0; index < pairKeys.length; index++) {
|
|
152
|
-
const candidatePairKey = pairKeys[index];
|
|
153
|
-
if (!candidatePairKey || candidatePairKey === ownerPairKey) {
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
const candidate = getPairLink(pairsState, candidatePairKey, linkKey);
|
|
157
|
-
if (!candidate?.source || candidate.source.screenKey !== hostScreenKey) {
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
if (!candidate.source.handoff) {
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
if (!isActiveHandoffLink({
|
|
164
|
-
link: candidate,
|
|
165
|
-
linkKey,
|
|
166
|
-
pairKey: candidatePairKey,
|
|
167
|
-
pairsState
|
|
168
|
-
})) {
|
|
169
|
-
continue;
|
|
170
|
-
}
|
|
171
|
-
if (candidate.status !== "complete") {
|
|
172
|
-
hasPendingNextHop = true;
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
const nextHostScreenKey = candidate.destination.screenKey;
|
|
176
|
-
ownerPairKey = candidatePairKey;
|
|
177
|
-
hostScreenKey = nextHostScreenKey;
|
|
178
|
-
if (hasSeenScreenKey(seenScreenKeys, nextHostScreenKey)) {
|
|
179
|
-
didHitVisitedScreen = true;
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
seenScreenKeys.push(nextHostScreenKey);
|
|
183
|
-
didAdvance = true;
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
if (didHitVisitedScreen) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
if (didAdvance) {
|
|
190
|
-
continue;
|
|
191
|
-
}
|
|
192
|
-
if (hasPendingNextHop) {
|
|
193
|
-
return pendingSignal(ownerPairKey);
|
|
194
|
-
}
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
if (isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey) {
|
|
198
|
-
hostScreenKey = getSourceScreenKeyFromPairKey(ownerPairKey);
|
|
199
|
-
}
|
|
200
|
-
const ownerScreenKey = resolveHandoffStyleOwnerScreenKey({
|
|
201
|
-
hostScreenKey,
|
|
202
|
-
isSettledHostReady,
|
|
203
|
-
settledHostScreenKey,
|
|
204
|
-
sourceScreenKey: getSourceScreenKeyFromPairKey(ownerPairKey)
|
|
205
|
-
});
|
|
206
|
-
return {
|
|
207
|
-
hostScreenKey,
|
|
208
|
-
ownerPairKey,
|
|
209
|
-
ownerScreenKey,
|
|
210
|
-
status: "complete"
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
//# sourceMappingURL=ownership.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getDestinationScreenKeyFromPairKey","getLinkKeyFromTag","getLink","getPairLink","getSourceScreenKeyFromPairKey","isHandoffHostClosingComplete","closing","progressAnimating","progressSettled","willAnimate","hasSeenScreenKey","screenKeys","screenKey","index","length","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","previousDestinationScreenKey","ownerDestinationScreenKey","canSwitchHandoffHostImmediately","isActiveHandoffLink","link","linkKey","pairKey","pairsState","group","activeId","groups","resolveHandoffStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","handoff","isSettledHostClosingComplete","source","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","nextHostScreenKey","push"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/utils/ownership.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Shallow equality for the flat signal objects produced by the portal
|
|
5
|
-
* `useAnimatedReaction` blocks. Both sides always carry the same fixed key set,
|
|
6
|
-
* so iterating one side's keys is sufficient. A `null`/`undefined` operand
|
|
7
|
-
* (the first reaction run) is treated as not-equal so the reaction proceeds.
|
|
8
|
-
*/
|
|
9
|
-
export const shallowEqual = (a, b) => {
|
|
10
|
-
"worklet";
|
|
11
|
-
|
|
12
|
-
if (!a || !b) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
const keys = Object.keys(a);
|
|
16
|
-
for (let index = 0; index < keys.length; index++) {
|
|
17
|
-
const key = keys[index];
|
|
18
|
-
if (a[key] !== b[key]) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return true;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=shallow-equal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["shallowEqual","a","b","keys","Object","index","length","key"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/utils/shallow-equal.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,GAAGA,CAC3BC,CAA6C,EAC7CC,CAA6C,KACzC;EACJ,SAAS;;EACT,IAAI,CAACD,CAAC,IAAI,CAACC,CAAC,EAAE;IACb,OAAO,KAAK;EACb;EAEA,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACF,CAAC,CAAC;EAC3B,KAAK,IAAII,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,IAAI,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACjD,MAAME,GAAG,GAAGJ,IAAI,CAACE,KAAK,CAAC;IACvB,IAAIJ,CAAC,CAACM,GAAG,CAAC,KAAKL,CAAC,CAACK,GAAG,CAAC,EAAE;MACtB,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const resolveNextVisiblePortalHostName = ({
|
|
4
|
-
canSwitchImmediately,
|
|
5
|
-
isInterpolatorReady,
|
|
6
|
-
requestedName,
|
|
7
|
-
shouldTeleport,
|
|
8
|
-
visibleName
|
|
9
|
-
}) => {
|
|
10
|
-
"worklet";
|
|
11
|
-
|
|
12
|
-
if (!shouldTeleport) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
if (requestedName && (canSwitchImmediately || isInterpolatorReady)) {
|
|
16
|
-
return requestedName;
|
|
17
|
-
}
|
|
18
|
-
return visibleName;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=visible-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["resolveNextVisiblePortalHostName","canSwitchImmediately","isInterpolatorReady","requestedName","shouldTeleport","visibleName"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/utils/visible-host.ts"],"mappings":";;AAAA,OAAO,MAAMA,gCAAgC,GAAGA,CAAC;EAChDC,oBAAoB;EACpBC,mBAAmB;EACnBC,aAAa;EACbC,cAAc;EACdC;AAOD,CAAC,KAAK;EACL,SAAS;;EACT,IAAI,CAACD,cAAc,EAAE;IACpB,OAAO,IAAI;EACZ;EAEA,IAAID,aAAa,KAAKF,oBAAoB,IAAIC,mBAAmB,CAAC,EAAE;IACnE,OAAOC,aAAa;EACrB;EAEA,OAAOE,WAAW;AACnB,CAAC","ignoreList":[]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Credit:
|
|
5
|
-
* https://github.com/MatiPl01/react-native-sortables/blob/main/packages/react-native-sortables/src/integrations/reanimated/hooks/useStableCallbackValue.ts
|
|
6
|
-
*/
|
|
7
|
-
import { useCallback, useEffect, useState } from "react";
|
|
8
|
-
import { cancelAnimation, makeMutable } from "react-native-reanimated";
|
|
9
|
-
import { isWorkletFunction, scheduleOnRN } from "react-native-worklets";
|
|
10
|
-
function useMutableValue(initialValue) {
|
|
11
|
-
const [mutable] = useState(() => makeMutable(initialValue));
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
return () => {
|
|
14
|
-
cancelAnimation(mutable);
|
|
15
|
-
};
|
|
16
|
-
}, [mutable]);
|
|
17
|
-
return mutable;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// We cannot store a function as a SharedValue because reanimated will treat
|
|
21
|
-
// it as an animation and will try to execute the animation when assigned
|
|
22
|
-
// to the SharedValue. Since we want the function to be treated as a value,
|
|
23
|
-
// we wrap it in an object and store the object in the SharedValue.
|
|
24
|
-
|
|
25
|
-
const wrap = callback => {
|
|
26
|
-
if (isWorkletFunction(callback)) {
|
|
27
|
-
return {
|
|
28
|
-
call: callback
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
call: (...args) => {
|
|
33
|
-
"worklet";
|
|
34
|
-
|
|
35
|
-
scheduleOnRN(callback, ...args);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** Creates a stable worklet callback that can be called from the UI runtime
|
|
41
|
-
* @param callback The JavaScript or worklet function to be called
|
|
42
|
-
* @returns A worklet function that can be safely called from the UI thread
|
|
43
|
-
* @default Behavior:
|
|
44
|
-
* - If passed a regular JS function, schedules it on the JS thread
|
|
45
|
-
* - If passed a worklet function, calls it directly on the UI thread
|
|
46
|
-
* @important The returned function maintains a stable reference and properly handles
|
|
47
|
-
* thread execution based on the input callback type
|
|
48
|
-
*/
|
|
49
|
-
export default function useStableCallbackValue(callback) {
|
|
50
|
-
const stableCallback = useMutableValue(null);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (callback) {
|
|
53
|
-
stableCallback.set(wrap(callback));
|
|
54
|
-
} else {
|
|
55
|
-
stableCallback.set(null);
|
|
56
|
-
}
|
|
57
|
-
}, [callback, stableCallback]);
|
|
58
|
-
return useCallback((...args) => {
|
|
59
|
-
"worklet";
|
|
60
|
-
|
|
61
|
-
stableCallback.get()?.call(...args);
|
|
62
|
-
}, [stableCallback]);
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=use-stable-callback-value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useEffect","useState","cancelAnimation","makeMutable","isWorkletFunction","scheduleOnRN","useMutableValue","initialValue","mutable","wrap","callback","call","args","useStableCallbackValue","stableCallback","set","get"],"sourceRoot":"../../../src","sources":["hooks/use-stable-callback-value.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SAASC,eAAe,EAAEC,WAAW,QAAQ,yBAAyB;AACtE,SAASC,iBAAiB,EAAEC,YAAY,QAAQ,uBAAuB;AAIvE,SAASC,eAAeA,CAAIC,YAAe,EAAE;EAC5C,MAAM,CAACC,OAAO,CAAC,GAAGP,QAAQ,CAAC,MAAME,WAAW,CAACI,YAAY,CAAC,CAAC;EAE3DP,SAAS,CAAC,MAAM;IACf,OAAO,MAAM;MACZE,eAAe,CAACM,OAAO,CAAC;IACzB,CAAC;EACF,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,OAAOA,OAAO;AACf;;AAEA;AACA;AACA;AACA;;AAKA,MAAMC,IAAI,GAA2BC,QAAW,IAAyB;EACxE,IAAIN,iBAAiB,CAACM,QAAQ,CAAC,EAAE;IAChC,OAAO;MAAEC,IAAI,EAAED;IAAS,CAAC;EAC1B;EACA,OAAO;IACNC,IAAI,EAAGA,CAAC,GAAGC,IAAmB,KAAK;MAClC,SAAS;;MACTP,YAAY,CAACK,QAAQ,EAAE,GAAGE,IAAI,CAAC;IAChC;EACD,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,sBAAsBA,CAC7CH,QAAY,EACX;EACD,MAAMI,cAAc,GAAGR,eAAe,CAA4B,IAAI,CAAC;EAEvEN,SAAS,CAAC,MAAM;IACf,IAAIU,QAAQ,EAAE;MACbI,cAAc,CAACC,GAAG,CAACN,IAAI,CAACC,QAAQ,CAAC,CAAC;IACnC,CAAC,MAAM;MACNI,cAAc,CAACC,GAAG,CAAC,IAAI,CAAC;IACzB;EACD,CAAC,EAAE,CAACL,QAAQ,EAAEI,cAAc,CAAC,CAAC;EAE9B,OAAOf,WAAW,CACjB,CAAC,GAAGa,IAAmB,KAAK;IAC3B,SAAS;;IACTE,cAAc,CAACE,GAAG,CAAC,CAAC,EAAEL,IAAI,CAAC,GAAGC,IAAI,CAAC;EACpC,CAAC,EACD,CAACE,cAAc,CAChB,CAAC;AACF","ignoreList":[]}
|