react-native-screen-transitions 3.11.2 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/blank-stack/components/stack-view.js +1 -2
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/component-stack/components/stack-view.js +1 -2
- package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +3 -4
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js +1 -1
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js +36 -0
- package/lib/commonjs/shared/components/boundary/components/boundary-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +1 -13
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +9 -2
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +3 -2
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +9 -2
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +7 -4
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js +5 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +25 -43
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +13 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +8 -31
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +14 -19
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +8 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +19 -47
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +19 -17
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +19 -5
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +30 -0
- package/lib/commonjs/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +40 -22
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/retain-ready-overlay-resources.js +21 -0
- package/lib/commonjs/shared/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/helpers/run-overlay-slot-interpolator.js +41 -0
- package/lib/commonjs/shared/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js +85 -0
- package/lib/commonjs/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +14 -65
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +89 -16
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +11 -7
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.js +31 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-completion.js +26 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-completion.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +64 -87
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +1 -5
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +9 -6
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +28 -6
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +1 -2
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +10 -7
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +6 -8
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +8 -2
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +9 -5
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +10 -5
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +36 -50
- package/lib/commonjs/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +4 -5
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +2 -3
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -5
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +9 -5
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +1 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js +20 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +14 -15
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +34 -11
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +18 -29
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/blank-stack-state/blank-stack-controller.js +5 -1
- package/lib/commonjs/shared/providers/stack/blank-stack-state/blank-stack-controller.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +18 -0
- package/lib/commonjs/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.js +2 -1
- package/lib/commonjs/shared/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +1 -2
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +0 -22
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +119 -10
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/close-action-replay.js +22 -0
- package/lib/commonjs/shared/utils/navigation/close-action-replay.js.map +1 -0
- package/lib/module/blank-stack/components/stack-view.js +1 -2
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/component-stack/components/stack-view.js +1 -2
- package/lib/module/component-stack/components/stack-view.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.native.js +3 -4
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-lifecycle.js +32 -0
- package/lib/module/shared/components/boundary/components/boundary-lifecycle.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +1 -13
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +9 -2
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +3 -2
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +9 -2
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +7 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js +5 -12
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +27 -45
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js +8 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +8 -32
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js +15 -20
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +8 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js +20 -48
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +20 -18
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +19 -5
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js +25 -0
- package/lib/module/shared/components/overlay/helpers/create-overlay-interpolator-frame.js.map +1 -0
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +37 -21
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/retain-ready-overlay-resources.js +17 -0
- package/lib/module/shared/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -0
- package/lib/module/shared/components/overlay/helpers/run-overlay-slot-interpolator.js +36 -0
- package/lib/module/shared/components/overlay/helpers/run-overlay-slot-interpolator.js.map +1 -0
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js +80 -0
- package/lib/module/shared/components/overlay/hooks/use-overlay-slot.js.map +1 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js +15 -66
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +90 -18
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +12 -8
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.js +25 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-completion.js +21 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-completion.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +64 -86
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +1 -5
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +9 -6
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +29 -7
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +1 -2
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +10 -7
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +6 -8
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +8 -2
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +10 -6
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +10 -5
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.js → gesture-ownership-bridge.js} +35 -49
- package/lib/module/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +4 -5
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +2 -3
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -5
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -3
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +9 -5
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +1 -0
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js +18 -0
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +14 -15
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +35 -12
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +19 -30
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/blank-stack-state/blank-stack-controller.js +5 -1
- package/lib/module/shared/providers/stack/blank-stack-state/blank-stack-controller.js.map +1 -1
- package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js +14 -0
- package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map +1 -0
- package/lib/module/shared/providers/stack/blank-stack.provider.js +2 -1
- package/lib/module/shared/providers/stack/blank-stack.provider.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +1 -2
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +0 -22
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/create-provider.js +119 -10
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/utils/navigation/close-action-replay.js +16 -0
- package/lib/module/shared/utils/navigation/close-action-replay.js.map +1 -0
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +1 -1
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/component-stack/types.d.ts +1 -1
- package/lib/typescript/component-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/types.d.ts +1 -1
- package/lib/typescript/native-stack/types.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-lifecycle.d.ts +18 -0
- package/lib/typescript/shared/components/boundary/components/boundary-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +1 -2
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +3 -2
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +3 -2
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts +5 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts +4 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts +4 -17
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts +3 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts +5 -9
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/types.d.ts +6 -0
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts +7 -0
- package/lib/typescript/shared/components/overlay/helpers/create-overlay-interpolator-frame.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +17 -7
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/retain-ready-overlay-resources.d.ts +11 -0
- package/lib/typescript/shared/components/overlay/helpers/retain-ready-overlay-resources.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/helpers/run-overlay-slot-interpolator.d.ts +8 -0
- package/lib/typescript/shared/components/overlay/helpers/run-overlay-slot-interpolator.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts +15 -0
- package/lib/typescript/shared/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +7 -6
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.d.ts +27 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-completion.d.ts +7 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-completion.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +2 -7
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +1 -3
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts +1 -0
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +12 -12
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +4 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/gesture-ownership-bridge.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +5 -5
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/blank-stack-state/blank-stack-controller.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +1 -2
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +8 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +26 -11
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +2 -2
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -3
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts +21 -6
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/close-action-replay.d.ts +4 -0
- package/lib/typescript/shared/utils/navigation/close-action-replay.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/blank-stack/components/stack-view.tsx +1 -4
- package/src/blank-stack/types.ts +8 -2
- package/src/component-stack/components/stack-view.tsx +1 -4
- package/src/component-stack/types.ts +8 -2
- package/src/native-stack/types.ts +8 -2
- package/src/native-stack/views/NativeStackView.native.tsx +6 -10
- package/src/shared/adapters/with-screen-transitions/stack-layout.tsx +1 -1
- package/src/shared/components/boundary/components/boundary-lifecycle.tsx +53 -0
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +0 -14
- package/src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +13 -2
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +7 -2
- package/src/shared/components/boundary/hooks/use-measurer.ts +11 -1
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +9 -4
- package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +13 -11
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +44 -55
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/local-measurement.ts +10 -0
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +11 -55
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-active-portal-boundary-host.ts +20 -24
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +11 -0
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.ts +20 -67
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +1 -0
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +3 -2
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +29 -20
- package/src/shared/components/boundary/types.ts +9 -0
- package/src/shared/components/boundary/utils/refresh-signals.ts +39 -6
- package/src/shared/components/overlay/helpers/create-overlay-interpolator-frame.ts +29 -0
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +62 -20
- package/src/shared/components/overlay/helpers/retain-ready-overlay-resources.ts +38 -0
- package/src/shared/components/overlay/helpers/run-overlay-slot-interpolator.ts +48 -0
- package/src/shared/components/overlay/hooks/use-overlay-slot.ts +103 -0
- package/src/shared/components/overlay/variations/float-overlay.tsx +22 -64
- package/src/shared/components/overlay/variations/overlay-host.tsx +135 -28
- package/src/shared/components/screen-container/layers/backdrop.tsx +11 -7
- package/src/shared/components/screen-lifecycle/hooks/helpers/close-interception-rules.ts +64 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-completion.ts +28 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +72 -109
- package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +0 -12
- package/src/shared/components/screen-lifecycle/index.tsx +8 -4
- package/src/shared/hooks/navigation/use-navigation-helpers.ts +39 -7
- package/src/shared/index.ts +1 -0
- package/src/shared/providers/helpers/measured-bounds-writes.ts +1 -1
- package/src/shared/providers/screen/animation/animation.provider.tsx +24 -11
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +15 -9
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +12 -2
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +18 -7
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +13 -5
- package/src/shared/providers/screen/gestures/ownership/{use-walk-up-and-register-shadowing-claims.ts → gesture-ownership-bridge.tsx} +44 -54
- package/src/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +4 -6
- package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +1 -3
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +4 -6
- package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +2 -8
- package/src/shared/providers/screen/gestures/shared/policy.ts +17 -6
- package/src/shared/providers/screen/gestures/types.ts +2 -0
- package/src/shared/providers/screen/styles/constants.ts +1 -0
- package/src/shared/providers/screen/styles/helpers/transition-visual-state.ts +26 -0
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +17 -5
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +51 -12
- package/src/shared/providers/screen/styles/slot.provider.tsx +46 -70
- package/src/shared/providers/stack/blank-stack-state/blank-stack-controller.ts +5 -1
- package/src/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.ts +22 -0
- package/src/shared/providers/stack/blank-stack.provider.tsx +6 -1
- package/src/shared/stores/bounds/internals/links.ts +1 -1
- package/src/shared/stores/system.store.ts +1 -2
- package/src/shared/types/animation.types.ts +8 -0
- package/src/shared/types/index.ts +1 -1
- package/src/shared/types/overlay.types.ts +41 -14
- package/src/shared/types/screen.types.ts +2 -2
- package/src/shared/utils/animation/animate-to-progress.ts +1 -22
- package/src/shared/utils/create-provider.tsx +221 -19
- package/src/shared/utils/navigation/close-action-replay.ts +25 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.js +0 -30
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js +0 -47
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/components/floating-overlay-layer.js +0 -28
- package/lib/commonjs/shared/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +0 -53
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.js +0 -25
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js +0 -40
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/components/floating-overlay-layer.js +0 -24
- package/lib/module/shared/providers/screen/styles/components/floating-overlay-layer.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +0 -47
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +0 -14
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +0 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/active-pair.ts +0 -36
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.ts +0 -45
- package/src/shared/providers/screen/styles/components/floating-overlay-layer.tsx +0 -29
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +0 -72
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { StackActions } from "@react-navigation/native";
|
|
4
|
+
import { dispatchCloseAction } from "../../../utils/navigation/close-action-replay";
|
|
4
5
|
import { buildBlankStackState } from "./helpers/build-blank-stack-state";
|
|
5
6
|
import { deriveBlankStackState } from "./helpers/derive-blank-stack-state";
|
|
6
7
|
/**
|
|
@@ -62,10 +63,13 @@ export const createBlankStackController = initialProps => {
|
|
|
62
63
|
navigation
|
|
63
64
|
} = props;
|
|
64
65
|
if (state.routes.some(candidate => candidate.key === route.key)) {
|
|
65
|
-
|
|
66
|
+
const action = {
|
|
66
67
|
...StackActions.pop(),
|
|
67
68
|
source: route.key,
|
|
68
69
|
target: state.key
|
|
70
|
+
};
|
|
71
|
+
dispatchCloseAction(action, closeAction => {
|
|
72
|
+
navigation.dispatch(closeAction);
|
|
69
73
|
});
|
|
70
74
|
return;
|
|
71
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StackActions","buildBlankStackState","deriveBlankStackState","createBlankStackController","initialProps","closingRouteKeys","Set","props","previousRoutesSnapshot","state","routes","snapshot","descriptors","listeners","emit","listener","subscribe","add","delete","getSnapshot","update","nextProps","lastRoutesSnapshot","nextState","current","handleCloseRoute","route","navigation","some","candidate","key","
|
|
1
|
+
{"version":3,"names":["StackActions","dispatchCloseAction","buildBlankStackState","deriveBlankStackState","createBlankStackController","initialProps","closingRouteKeys","Set","props","previousRoutesSnapshot","state","routes","snapshot","descriptors","listeners","emit","listener","subscribe","add","delete","getSnapshot","update","nextProps","lastRoutesSnapshot","nextState","current","handleCloseRoute","route","navigation","some","candidate","key","action","pop","source","target","closeAction","dispatch","routeExists","nextRoutes","filter","nextDescriptors","sourceDescriptors","previousState","requestDismiss","routeIndex","findIndex","has"],"sourceRoot":"../../../../../../src","sources":["shared/providers/stack/blank-stack-state/blank-stack-controller.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,0BAA0B;AAOvD,SAASC,mBAAmB,QAAQ,+CAA+C;AACnF,SAASC,oBAAoB,QAAQ,mCAAmC;AACxE,SAASC,qBAAqB,QAAQ,oCAAoC;AAS1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAItCC,YAA+D,IACP;EACxD,MAAMC,gBAAgB,GAAG,IAAIC,GAAG,CAAS,CAAC;EAC1C,IAAIC,KAAK,GAAGH,YAAY;EACxB,IAAII,sBAAsB,GAAGJ,YAAY,CAACK,KAAK,CAACC,MAAM;EACtD,IAAIC,QAAmD,GAAG;IACzDF,KAAK,EAAER,oBAAoB,CAAC;MAC3BM,KAAK;MACLG,MAAM,EAAEN,YAAY,CAACK,KAAK,CAACC,MAAM;MACjCE,WAAW,EACVR,YAAY,CAACQ,WAAuD;MACrEP;IACD,CAAC;EACF,CAAC;EACD,MAAMQ,SAAS,GAAG,IAAIP,GAAG,CAAa,CAAC;EAEvC,MAAMQ,IAAI,GAAGA,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,KAAK,CAACI,GAAG,CAAC;IAC/BnB,QAAQ,GAAG;MACVF,KAAK,EAAER,oBAAoB,CAAC;QAC3BM,KAAK;QACLG,MAAM,EAAEc,OAAO,CAACd,MAAM;QACtBE,WAAW,EAAEY,OAAO,CAACiB,iBAAiB;QACtCpC,gBAAgB;QAChBqC,aAAa,EAAElB;MAChB,CAAC;IACF,CAAC;IACDV,IAAI,CAAC,CAAC;IACN,OAAO,IAAI;EACZ,CAAC;EAED,OAAO;IACNE,SAAS;IACTG,WAAW;IACXC,MAAM;IACNK,gBAAgB;IAChBkB;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function resolvePresentedIndex(routes, focusedRouteKey, closingRouteKeys) {
|
|
4
|
+
const focusedIndex = focusedRouteKey ? routes.findIndex(route => route.key === focusedRouteKey) : routes.length - 1;
|
|
5
|
+
const resolvedFocusedIndex = focusedIndex >= 0 ? focusedIndex : routes.length - 1;
|
|
6
|
+
for (let index = resolvedFocusedIndex; index >= 0; index -= 1) {
|
|
7
|
+
const route = routes[index];
|
|
8
|
+
if (route && !closingRouteKeys.has(route.key)) {
|
|
9
|
+
return index;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return resolvedFocusedIndex;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resolve-presented-index.js.map
|
package/lib/module/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolvePresentedIndex","routes","focusedRouteKey","closingRouteKeys","focusedIndex","findIndex","route","key","length","resolvedFocusedIndex","index","has"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.ts"],"mappings":";;AAEA,OAAO,SAASA,qBAAqBA,CACpCC,MAAwB,EACxBC,eAAmC,EACnCC,gBAAqC,EAC5B;EACT,MAAMC,YAAY,GAAGF,eAAe,GACjCD,MAAM,CAACI,SAAS,CAAEC,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKL,eAAe,CAAC,GAC1DD,MAAM,CAACO,MAAM,GAAG,CAAC;EACpB,MAAMC,oBAAoB,GACzBL,YAAY,IAAI,CAAC,GAAGA,YAAY,GAAGH,MAAM,CAACO,MAAM,GAAG,CAAC;EAErD,KAAK,IAAIE,KAAK,GAAGD,oBAAoB,EAAEC,KAAK,IAAI,CAAC,EAAEA,KAAK,IAAI,CAAC,EAAE;IAC9D,MAAMJ,KAAK,GAAGL,MAAM,CAACS,KAAK,CAAC;IAC3B,IAAIJ,KAAK,IAAI,CAACH,gBAAgB,CAACQ,GAAG,CAACL,KAAK,CAACC,GAAG,CAAC,EAAE;MAC9C,OAAOG,KAAK;IACb;EACD;EAEA,OAAOD,oBAAoB;AAC5B","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { useMemo } from "react";
|
|
|
4
4
|
import { StackProvider } from "../../hooks/navigation/use-stack";
|
|
5
5
|
import createProvider from "../../utils/create-provider";
|
|
6
6
|
import { useBlankStackState } from "./blank-stack-state";
|
|
7
|
+
import { resolvePresentedIndex } from "./blank-stack-state/helpers/resolve-presented-index";
|
|
7
8
|
import { useStackCoreStore } from "./core.provider";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
const createScenesByKey = scenes => {
|
|
@@ -40,7 +41,7 @@ function BlankStackProvider({
|
|
|
40
41
|
state: stackState
|
|
41
42
|
});
|
|
42
43
|
const navigatorKey = stackState.key;
|
|
43
|
-
const focusedIndex =
|
|
44
|
+
const focusedIndex = resolvePresentedIndex(state.routes, state.focusedRouteKey, state.closingRouteKeys);
|
|
44
45
|
const scenesByKey = useMemo(() => createScenesByKey(state.scenes), [state.scenes]);
|
|
45
46
|
const stackValue = useMemo(() => ({
|
|
46
47
|
flags,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","StackProvider","createProvider","useBlankStackState","useStackCoreStore","jsx","_jsx","createScenesByKey","scenes","scenesByKey","scene","route","key","BlankStackProvider","BlankStackStoreProvider","useBlankStackStore","guarded","children","value","state","stackState","props","flags","store","handleCloseRoute","requestDismiss","navigatorKey","focusedIndex","
|
|
1
|
+
{"version":3,"names":["useMemo","StackProvider","createProvider","useBlankStackState","resolvePresentedIndex","useStackCoreStore","jsx","_jsx","createScenesByKey","scenes","scenesByKey","scene","route","key","BlankStackProvider","BlankStackStoreProvider","useBlankStackStore","guarded","children","value","state","stackState","props","flags","store","handleCloseRoute","requestDismiss","navigatorKey","focusedIndex","routes","focusedRouteKey","closingRouteKeys","stackValue","routeKeys","blankStackValue","shouldShowFloatOverlay"],"sourceRoot":"../../../../../src","sources":["shared/providers/stack/blank-stack.provider.tsx"],"mappings":";;AACA,SAAyBA,OAAO,QAAQ,OAAO;AAC/C,SAECC,aAAa,QACP,kCAAkC;AAUzC,OAAOC,cAAc,MAAM,6BAA6B;AACxD,SAASC,kBAAkB,QAAQ,qBAAqB;AACxD,SAASC,qBAAqB,QAAQ,qDAAqD;AAC3F,SAASC,iBAAiB,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASpD,MAAMC,iBAAiB,GACtBC,MAAqC,IACjC;EACJ,MAAMC,WAAwD,GAAG,CAAC,CAAC;EAEnE,KAAK,MAAMC,KAAK,IAAIF,MAAM,EAAE;IAC3BC,WAAW,CAACC,KAAK,CAACC,KAAK,CAACC,GAAG,CAAC,GAAGF,KAAK;EACrC;EAEA,OAAOD,WAAW;AACnB,CAAC;AAOD,MAAM;EAAEI,kBAAkB,EAAEC,uBAAuB;EAAEC;AAAmB,CAAC,GACxEd,cAAc,CAAC,YAAY,EAAE;EAAEe,OAAO,EAAE;AAAM,CAAC,CAAC,CAG9C,CAAC;EAAEC,QAAQ;EAAEC;AAAM,CAAC,MAAM;EAAED,QA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AK,CAACe,sBAAsB;IACpDV;EACD,CAAC;EAED,oBACClB,IAAA,CAACN,aAAa;IAACkB,KAAK,EAAEa,UAAW;IAAAd,QAAA,eAChCX,IAAA,CAACQ,uBAAuB;MAACI,KAAK,EAAEe,eAAgB;MAAAhB,QAAA,EAC9CA;IAAQ,CACe;EAAC,CACZ,CAAC;AAElB;AAGA,SAASJ,kBAAkB,EAAEE,kBAAkB","ignoreList":[]}
|
|
@@ -154,7 +154,7 @@ const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, gr
|
|
|
154
154
|
}
|
|
155
155
|
syncLinkStatus(link);
|
|
156
156
|
writePairLink(state, pairKey, linkKey, link);
|
|
157
|
-
if (link.group) {
|
|
157
|
+
if (link.group && !state[pairKey]?.groups?.[link.group]) {
|
|
158
158
|
writeGroup(state, pairKey, link.group, linkKey);
|
|
159
159
|
}
|
|
160
160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createGroupTag","ensurePairGroups","ensurePairLinks","ensurePairSourceRequests","getDestinationScreenKeyFromPairKey","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","getSourceScreenKeyFromPairKey","pairs","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","writeGroup","group","activeId","initialId","previousInitialId","groups","writeDestination","existingLink","initialDestination","setSource","tag","modify","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","get","hasSourceLink","getResolvedLink","initialLink","getPairKeyForSource","getPairKeyForDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.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,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAOjD,aAAa,CAACE,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE7C,iBAAiB,CAACyD,GAAG,CAAC,CAAC;AACnE;AAEA,SAAStD,cAAcA,CACtB0C,OAAsB,EACtBY,GAAU,EACsB;EAChC,SAAS;;EACT,OAAOrD,kBAAkB,CAACM,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE7C,iBAAiB,CAACyD,GAAG,CAAC,CAAC;AACxE;AAEA,SACCxD,gBAAgB,EAChBE,cAAc,EACdE,OAAO,EACPiE,wBAAwB,EACxBD,mBAAmB,EACnBF,eAAe,EACf5D,SAAS,EACTyD,oBAAoB,EACpBD,gBAAgB,EAChBD,cAAc,EACdN,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["createGroupTag","ensurePairGroups","ensurePairLinks","ensurePairSourceRequests","getDestinationScreenKeyFromPairKey","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","getSourceScreenKeyFromPairKey","pairs","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","writeGroup","group","activeId","initialId","previousInitialId","groups","writeDestination","existingLink","initialDestination","setSource","tag","modify","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","get","hasSourceLink","getResolvedLink","initialLink","getPairKeyForSource","getPairKeyForDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;AACA,SACCA,cAAc,EACdC,gBAAgB,EAChBC,eAAe,EACfC,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CACjBsC,OAAsB,EACtBY,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAOjD,aAAa,CAACE,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE7C,iBAAiB,CAACyD,GAAG,CAAC,CAAC;AACnE;AAEA,SAAStD,cAAcA,CACtB0C,OAAsB,EACtBY,GAAU,EACsB;EAChC,SAAS;;EACT,OAAOrD,kBAAkB,CAACM,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE7C,iBAAiB,CAACyD,GAAG,CAAC,CAAC;AACxE;AAEA,SACCxD,gBAAgB,EAChBE,cAAc,EACdE,OAAO,EACPiE,wBAAwB,EACxBD,mBAAmB,EACnBF,eAAe,EACf5D,SAAS,EACTyD,oBAAoB,EACpBD,gBAAgB,EAChBD,cAAc,EACdN,SAAS","ignoreList":[]}
|
|
@@ -5,8 +5,7 @@ import { createStore } from "../utils/create-store";
|
|
|
5
5
|
export let LifecycleTransitionRequestKind = /*#__PURE__*/function (LifecycleTransitionRequestKind) {
|
|
6
6
|
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["None"] = 0] = "None";
|
|
7
7
|
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["Open"] = 1] = "Open";
|
|
8
|
-
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["
|
|
9
|
-
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["NativeClose"] = 3] = "NativeClose";
|
|
8
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["Close"] = 2] = "Close";
|
|
10
9
|
return LifecycleTransitionRequestKind;
|
|
11
10
|
}({});
|
|
12
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cancelAnimation","makeMutable","createStore","LifecycleTransitionRequestKind","SystemStore","createBag","targetProgress","animationProgress","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","modify","count","unblockLifecycleStart","Math","max","drainLifecycleStartBlocks"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAEhC,SAASC,WAAW,QAAQ,uBAAuB;AAEnD,WAAYC,8BAA8B,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;
|
|
1
|
+
{"version":3,"names":["cancelAnimation","makeMutable","createStore","LifecycleTransitionRequestKind","SystemStore","createBag","targetProgress","animationProgress","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","modify","count","unblockLifecycleStart","Math","max","drainLifecycleStartBlocks"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAEhC,SAASC,WAAW,QAAQ,uBAAuB;AAEnD,WAAYC,8BAA8B,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAyD1C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAGF,WAAW,CAAuC;EAC5EG,SAAS,EAAEA,CAAA,MAAO;IACjBC,cAAc,EAAEL,WAAW,CAAC,CAAC,CAAC;IAC9BM,iBAAiB,EAAEN,WAAW,CAAC,CAAC,CAAC;IACjCO,qBAAqB,EAAEP,WAAW,CAAC,CAAC,CAAC,CAAC;IACtCQ,qBAAqB,EAAER,W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AQ,IAAQ;QAClC,SAAS;;QACT,OAAOE,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,KAAK,GAAG,CAAC,CAAC;MAC9B,CACD,CAAC;IACF,CAAC;IAEDI,yBAAyBA,CAAA,EAAG;MAC3B,SAAS;;MACTb,GAAG,CAACF,+BAA+B,CAACO,GAAG,CAAC,CAAC,CAAC;IAC3C;EACD,CAAC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAyQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAyQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AA8BA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { runOnJS } from "react-native-reanimated";
|
|
4
3
|
import { FALSE, TRUE } from "../../constants";
|
|
5
4
|
import { emitMotionStart } from "../../stores/animation.store";
|
|
6
5
|
import { animate, isSpringAnimationConfig } from "./animate";
|
|
@@ -28,7 +27,6 @@ export const resolveAnimationProgressRange = (currentProgress, targetProgress) =
|
|
|
28
27
|
export const animateToProgress = ({
|
|
29
28
|
target,
|
|
30
29
|
spec,
|
|
31
|
-
onAnimationFinish,
|
|
32
30
|
animations,
|
|
33
31
|
targetProgress,
|
|
34
32
|
animationProgress,
|
|
@@ -75,9 +73,6 @@ export const animateToProgress = ({
|
|
|
75
73
|
if (shouldClearEnteringOnFinish) {
|
|
76
74
|
entering.set(FALSE);
|
|
77
75
|
}
|
|
78
|
-
if (onAnimationFinish) {
|
|
79
|
-
runOnJS(onAnimationFinish)(true);
|
|
80
|
-
}
|
|
81
76
|
return;
|
|
82
77
|
}
|
|
83
78
|
if (activateMotion) {
|
|
@@ -96,24 +91,7 @@ export const animateToProgress = ({
|
|
|
96
91
|
}
|
|
97
92
|
if (isClosing) {
|
|
98
93
|
progressAnimating.set(FALSE);
|
|
99
|
-
if (onAnimationFinish) {
|
|
100
|
-
// Paint the terminal UI-thread host/style state before React
|
|
101
|
-
// removes the closing route and its native portal host.
|
|
102
|
-
requestAnimationFrame(() => {
|
|
103
|
-
"worklet";
|
|
104
|
-
|
|
105
|
-
requestAnimationFrame(() => {
|
|
106
|
-
"worklet";
|
|
107
|
-
|
|
108
|
-
runOnJS(onAnimationFinish)(state.finished);
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
94
|
} else {
|
|
113
|
-
if (onAnimationFinish) {
|
|
114
|
-
runOnJS(onAnimationFinish)(state.finished);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
95
|
// Delay clearing progress animation by one frame to ensure final frame is painted
|
|
118
96
|
requestAnimationFrame(() => {
|
|
119
97
|
progressAnimating.set(FALSE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["FALSE","TRUE","emitMotionStart","animate","isSpringAnimationConfig","setTransitionLifecycleFlags","animations","isClosing","markEntering","closing","set","entering","resolveAnimationProgressRange","currentProgress","targetProgress","from","Math","min","max","to","animateToProgress","target","spec","animationProgress","emitWillAnimate","initialVelocity","isDragging","value","config","close","open","isSpringConfig","effectiveConfig","velocity","transitionProgress","progressAnimating","progressSettled","startAnimation","activateMotion","animationProgressFrom","animationProgressTo","get","shouldClearEnteringOnFinish","state","finished","requestAnimationFrame"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;AACA,SAASA,KAAK,EAAEC,IAAI,QAAQ,iBAAiB;AAC7C,SAECC,eAAe,QACT,8BAA8B;AAErC,SAASC,OAAO,EAAEC,uBAAuB,QAAQ,WAAW;AAqB5D,MAAMC,2BAA2B,GAAGA,CACnCC,UAA6B,EAC7BC,SAAkB,EAClBC,YAAqB,KACjB;EACJ,SAAS;;EAET,IAAID,SAAS,EAAE;IACdD,UAAU,CAACG,OAAO,CAACC,GAAG,CAACT,IAAI,CAAC;IAC5BK,UAAU,CAACK,QAAQ,CAACD,GAAG,CAACV,KAAK,CAAC;IAC9B;EACD;EAEAM,UAAU,CAACG,OAAO,CAACC,GAAG,CAACV,KAAK,CAAC;EAE7B,IAAIQ,YAAY,EAAE;IACjBF,UAAU,CAACK,QAAQ,CAACD,GAAG,CAACT,IAAI,CAAC;EAC9B;AACD,CAAC;AAED,OAAO,MAAMW,6BAA6B,GAAGA,CAC5CC,eAAuB,EACvBC,cAAsB,KAClB;EACJ,SAAS;;EACT,OAAO;IACNC,IAAI,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEL,eAAe,CAAC,CAAC;IAC/CM,EAAE,EAAEL;EACL,CAAC;AACF,CAAC;AA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A2B,CAACC,UAAU,EAAEC,SAAS,EAAEC,YAAY,CAAC;IAEhEN,eAAe,CAACI,UAAU,CAAC;IAC3BuC,qBAAqB,CAAC,MAAM;MAC3B,SAAS;;MACTR,cAAc,CAAC,KAAK,CAAC;IACtB,CAAC,CAAC;IACF;EACD;EAEAA,cAAc,CAAC,IAAI,CAAC;AACrB,CAAC","ignoreList":[]}
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
* - `children`: passed-through children keep their identity across
|
|
17
17
|
* provider-local renders. Factories that wrap children should use a
|
|
18
18
|
* module-level memoized component for the wrapper.
|
|
19
|
+
*
|
|
20
|
+
* Providers created with `global: true` return a `key` from their factory.
|
|
21
|
+
* Their generated store hook accepts that key to subscribe to the original
|
|
22
|
+
* provider store from outside its React context.
|
|
19
23
|
*/
|
|
20
24
|
import { createContext, useCallback, useContext, useLayoutEffect, useRef, useSyncExternalStore } from "react";
|
|
21
25
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -67,41 +71,134 @@ const createProviderStore = initialSnapshot => {
|
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
73
|
};
|
|
74
|
+
const createProviderStoreRegistry = () => {
|
|
75
|
+
const listenersByKey = new Map();
|
|
76
|
+
const registrationsByKey = new Map();
|
|
77
|
+
const getStore = key => {
|
|
78
|
+
const registrations = registrationsByKey.get(key);
|
|
79
|
+
return registrations?.[registrations.length - 1]?.store ?? null;
|
|
80
|
+
};
|
|
81
|
+
const notify = key => {
|
|
82
|
+
for (const listener of listenersByKey.get(key) ?? []) {
|
|
83
|
+
listener();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
getStore,
|
|
88
|
+
register: (key, store) => {
|
|
89
|
+
const registration = {
|
|
90
|
+
store
|
|
91
|
+
};
|
|
92
|
+
const registrations = registrationsByKey.get(key) ?? [];
|
|
93
|
+
registrationsByKey.set(key, [...registrations, registration]);
|
|
94
|
+
notify(key);
|
|
95
|
+
return () => {
|
|
96
|
+
const currentRegistrations = registrationsByKey.get(key);
|
|
97
|
+
if (!currentRegistrations?.includes(registration)) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const previousStore = getStore(key);
|
|
101
|
+
const nextRegistrations = currentRegistrations.filter(currentRegistration => currentRegistration !== registration);
|
|
102
|
+
if (nextRegistrations.length === 0) {
|
|
103
|
+
registrationsByKey.delete(key);
|
|
104
|
+
} else {
|
|
105
|
+
registrationsByKey.set(key, nextRegistrations);
|
|
106
|
+
}
|
|
107
|
+
if (getStore(key) !== previousStore) {
|
|
108
|
+
notify(key);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
subscribe: (key, listener) => {
|
|
113
|
+
const listeners = listenersByKey.get(key) ?? new Set();
|
|
114
|
+
listeners.add(listener);
|
|
115
|
+
listenersByKey.set(key, listeners);
|
|
116
|
+
return () => {
|
|
117
|
+
listeners.delete(listener);
|
|
118
|
+
if (listeners.size === 0) {
|
|
119
|
+
listenersByKey.delete(key);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
};
|
|
70
125
|
export default function createProvider(name, options) {
|
|
71
126
|
return factory => {
|
|
72
127
|
const {
|
|
73
|
-
guarded = true
|
|
128
|
+
guarded = true,
|
|
129
|
+
global = false
|
|
74
130
|
} = options ?? {};
|
|
75
131
|
const providerDisplayName = `${name}Provider`;
|
|
132
|
+
const globalRegistry = global ? createProviderStoreRegistry() : null;
|
|
133
|
+
const keyByStore = global ? new WeakMap() : null;
|
|
76
134
|
const StoreContext = /*#__PURE__*/createContext(null);
|
|
77
135
|
StoreContext.displayName = `${name}Store`;
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
136
|
+
const useRegisteredStore = (key, fallbackStore = null) => {
|
|
137
|
+
const subscribe = useCallback(listener => {
|
|
138
|
+
if (key === null || !globalRegistry) {
|
|
139
|
+
return () => {};
|
|
140
|
+
}
|
|
141
|
+
return globalRegistry.subscribe(key, listener);
|
|
142
|
+
}, [key]);
|
|
143
|
+
const getSnapshot = useCallback(() => key !== null && globalRegistry ? globalRegistry.getStore(key) ?? fallbackStore : null, [key, fallbackStore]);
|
|
144
|
+
return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
145
|
+
};
|
|
146
|
+
const createStoreHook = (strict, allowGlobalLookup) => {
|
|
147
|
+
if (!allowGlobalLookup || !globalRegistry) {
|
|
148
|
+
return selector => {
|
|
149
|
+
const store = useContext(StoreContext);
|
|
150
|
+
const resolvedStore = store ?? NullProviderStore;
|
|
151
|
+
const selectorRef = useRef(selector);
|
|
152
|
+
selectorRef.current = selector;
|
|
153
|
+
const getSelectedSnapshot = useCallback(() => {
|
|
154
|
+
if (strict && store === null) {
|
|
155
|
+
throw new Error(`${name} store must be used within a ${name}Provider`);
|
|
156
|
+
}
|
|
157
|
+
const snapshot = resolvedStore.getSnapshot();
|
|
158
|
+
if (strict && snapshot === null) {
|
|
159
|
+
throw new Error(`${name} store must be used within an enabled ${name}Provider`);
|
|
160
|
+
}
|
|
161
|
+
return selectorRef.current ? selectorRef.current(snapshot) : snapshot;
|
|
162
|
+
}, [resolvedStore, store]);
|
|
163
|
+
return useSyncExternalStore(resolvedStore.subscribe, getSelectedSnapshot, getSelectedSnapshot);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return (selectorOrKey, globalSelector) => {
|
|
167
|
+
const isGlobalLookup = typeof selectorOrKey === "string";
|
|
168
|
+
const key = isGlobalLookup ? selectorOrKey : null;
|
|
169
|
+
const selector = isGlobalLookup ? globalSelector : selectorOrKey;
|
|
170
|
+
const contextStore = useContext(StoreContext);
|
|
171
|
+
const matchingContextStore = key !== null && contextStore !== null && keyByStore?.get(contextStore) === key ? contextStore : null;
|
|
172
|
+
const registeredStore = useRegisteredStore(key, matchingContextStore);
|
|
173
|
+
const store = isGlobalLookup ? registeredStore : contextStore;
|
|
81
174
|
const resolvedStore = store ?? NullProviderStore;
|
|
82
175
|
const selectorRef = useRef(selector);
|
|
83
176
|
selectorRef.current = selector;
|
|
84
177
|
const getSelectedSnapshot = useCallback(() => {
|
|
85
|
-
if (strict && store === null) {
|
|
178
|
+
if (!isGlobalLookup && strict && store === null) {
|
|
86
179
|
throw new Error(`${name} store must be used within a ${name}Provider`);
|
|
87
180
|
}
|
|
88
181
|
const snapshot = resolvedStore.getSnapshot();
|
|
89
|
-
if (
|
|
182
|
+
if (isGlobalLookup && snapshot === null) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
if (!isGlobalLookup && strict && snapshot === null) {
|
|
90
186
|
throw new Error(`${name} store must be used within an enabled ${name}Provider`);
|
|
91
187
|
}
|
|
92
|
-
return selectorRef.current ? selectorRef.current(snapshot) : snapshot;
|
|
93
|
-
}, [resolvedStore, store]);
|
|
188
|
+
return typeof selectorRef.current === "function" ? selectorRef.current(snapshot) : snapshot;
|
|
189
|
+
}, [isGlobalLookup, resolvedStore, store]);
|
|
94
190
|
return useSyncExternalStore(resolvedStore.subscribe, getSelectedSnapshot, getSelectedSnapshot);
|
|
95
191
|
};
|
|
96
192
|
};
|
|
97
|
-
const useStoreSelector = createStoreHook(guarded);
|
|
193
|
+
const useStoreSelector = createStoreHook(guarded, global);
|
|
98
194
|
const factoryInternals = {
|
|
99
|
-
useParentStore: createStoreHook(false)
|
|
195
|
+
useParentStore: createStoreHook(false, false)
|
|
100
196
|
};
|
|
101
197
|
const Provider = props => {
|
|
102
198
|
const {
|
|
103
199
|
children = props.children,
|
|
104
200
|
enabled = true,
|
|
201
|
+
key,
|
|
105
202
|
value
|
|
106
203
|
} = factory(props, factoryInternals);
|
|
107
204
|
if (!value) {
|
|
@@ -114,6 +211,18 @@ export default function createProvider(name, options) {
|
|
|
114
211
|
storeRef.current = createProviderStore(snapshotValue);
|
|
115
212
|
}
|
|
116
213
|
const store = storeRef.current;
|
|
214
|
+
if (keyByStore && typeof key === "string") {
|
|
215
|
+
keyByStore.set(store, key);
|
|
216
|
+
}
|
|
217
|
+
useLayoutEffect(() => {
|
|
218
|
+
if (!globalRegistry) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (typeof key !== "string") {
|
|
222
|
+
throw new Error(`${name}Provider must return a key when global mode is enabled`);
|
|
223
|
+
}
|
|
224
|
+
return globalRegistry.register(key, store);
|
|
225
|
+
}, [key, store]);
|
|
117
226
|
pendingNotifyRef.current = store.setSnapshot(snapshotValue) || pendingNotifyRef.current;
|
|
118
227
|
useLayoutEffect(() => {
|
|
119
228
|
if (!pendingNotifyRef.current) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createContext","useCallback","useContext","useLayoutEffect","useRef","useSyncExternalStore","jsx","_jsx","NullProviderStore","getSnapshot","subscribe","shallowEqual","a","b","Object","is","aKeys","keys","bKeys","length","key","createProviderStore","initialSnapshot","snapshot","listeners","Set","notify","listener","setSnapshot","nextSnapshot","add","delete","createProvider","name","options","factory","guarded","providerDisplayName","StoreContext","displayName","createStoreHook","strict","
|
|
1
|
+
{"version":3,"names":["createContext","useCallback","useContext","useLayoutEffect","useRef","useSyncExternalStore","jsx","_jsx","NullProviderStore","getSnapshot","subscribe","shallowEqual","a","b","Object","is","aKeys","keys","bKeys","length","key","createProviderStore","initialSnapshot","snapshot","listeners","Set","notify","listener","setSnapshot","nextSnapshot","add","delete","createProviderStoreRegistry","listenersByKey","Map","registrationsByKey","getStore","registrations","get","store","register","registration","set","currentRegistrations","includes","previousStore","nextRegistrations","filter","currentRegistration","size","createProvider","name","options","factory","guarded","global","providerDisplayName","globalRegistry","keyByStore","WeakMap","StoreContext","displayName","useRegisteredStore","fallbackStore","createStoreHook","strict","allowGlobalLookup","selector","resolvedStore","selectorRef","current","getSelectedSnapshot","Error","selectorOrKey","globalSelector","isGlobalLookup","contextStore","matchingContextStore","registeredStore","useStoreSelector","factoryInternals","useParentStore","Provider","props","children","enabled","value","snapshotValue","storeRef","pendingNotifyRef"],"sourceRoot":"../../../../src","sources":["shared/utils/create-provider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SACCA,aAAa,EAEbC,WAAW,EACXC,UAAU,EACVC,eAAe,EACfC,MAAM,EACNC,oBAAoB,QACd,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4Df,MAAMC,iBAA0C,GAAG;EAClDC,WAAW,EAAEA,CAAA,KAAM,IAAI;EACvBC,SAAS,EAAEA,CAAA,KAAM,MAAM,CAAC;AACzB,CAAC;AAED,MAAMC,YAAY,GAAGA,CAACC,CAAU,EAAEC,CAAU,KAAc;EACzD,IAAIC,MAAM,CAACC,EAAE,CAACH,CAAC,EAAEC,CAAC,CAAC,EAAE;IACpB,OAAO,IAAI;EACZ;EAEA,IACC,OAAOD,CAAC,KAAK,QAAQ,IACrBA,CAAC,KAAK,IAAI,IACV,OAAOC,CAAC,KAAK,QAAQ,IACrBA,CAAC,KAAK,IAAI,EACT;IACD,OAAO,KAAK;EACb;EAEA,MAAMG,KAAK,GAAGF,MAAM,CAACG,IAAI,CAACL,CAAC,CAAC;EAC5B,MAAMM,KAAK,GAAGJ,MAAM,CAACG,IAAI,CAACJ,CAAC,CAAC;EAE5B,IAAIG,KAAK,CAACG,MAAM,KAAKD,KAAK,CAACC,MAAM,EAAE;IAClC,OAAO,KAAK;EACb;EAEA,KAAK,MAAMC,GAAG,IAAIJ,KAAK,EAAE;IACxB,IACC,EAAEI,GAAG,IAAIP,CAAC,CAAC,IACX,CAACC,MAAM,CAACC,EAAE,CACRH,CAAC,CAA6BQ,GAAG,CAAC,EAClCP,CAAC,CAA6BO,GAAG,CACnC,CAAC,EACA;MACD,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,MAAMC,mBAAmB,GACxBC,eAAoC,IACO;EAC3C,IAAIC,QAAQ,GAAGD,eAAe;EAC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C2D,aAAa,CAAC,IAAIE,gBAAgB,CAACnB,OAAO;MAE7DnE,eAAe,CAAC,MAAM;QACrB,IAAI,CAACsF,gBAAgB,CAACnB,OAAO,EAAE;UAC9B;QACD;QAEAmB,gBAAgB,CAACnB,OAAO,GAAG,KAAK;QAChC/B,KAAK,CAACb,MAAM,CAAC,CAAC;MACf,CAAC,CAAC;MAEF,oBACCnB,IAAA,CAACqD,YAAY,CAACsB,QAAQ;QAACI,KAAK,EAAE/C,KAAM;QAAA6C,QAAA,EAAEA;MAAQ,CAAwB,CAAC;IAEzE,CAAC;IACDF,QAAQ,CAACrB,WAAW,GAAGL,mBAAmB;IAE1C,OAAO;MACN,CAAC,GAAGL,IAAI,UAAU,GAAG+B,QAAQ;MAC7B,CAAC,MAAM/B,IAAI,OAAO,GAAG4B;IACtB,CAAC;EASF,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const CLOSE_ACTION_REPLAY = Symbol("screen-transition-close-action-replay");
|
|
4
|
+
export const isCloseActionReplay = action => typeof action === "object" && action !== null && action[CLOSE_ACTION_REPLAY] === true;
|
|
5
|
+
|
|
6
|
+
/** Carries the terminal-removal bypass through React Navigation's action clones. */
|
|
7
|
+
export const dispatchCloseAction = (action, dispatch) => {
|
|
8
|
+
const markedAction = action;
|
|
9
|
+
markedAction[CLOSE_ACTION_REPLAY] = true;
|
|
10
|
+
try {
|
|
11
|
+
dispatch(action);
|
|
12
|
+
} finally {
|
|
13
|
+
delete markedAction[CLOSE_ACTION_REPLAY];
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=close-action-replay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CLOSE_ACTION_REPLAY","Symbol","isCloseActionReplay","action","dispatchCloseAction","dispatch","markedAction"],"sourceRoot":"../../../../../src","sources":["shared/utils/navigation/close-action-replay.ts"],"mappings":";;AAAA,MAAMA,mBAAmB,GAAGC,MAAM,CAAC,uCAAuC,CAAC;AAM3E,OAAO,MAAMC,mBAAmB,GAAIC,MAAe,IAClD,OAAOA,MAAM,KAAK,QAAQ,IAC1BA,MAAM,KAAK,IAAI,IACdA,MAAM,CAAuBH,mBAAmB,CAAC,KAAK,IAAI;;AAE5D;AACA,OAAO,MAAMI,mBAAmB,GAAGA,CAClCD,MAAe,EACfE,QAAmC,KAC/B;EACJ,MAAMC,YAAY,GAAGH,MAAqC;EAC1DG,YAAY,CAACN,mBAAmB,CAAC,GAAG,IAAI;EAExC,IAAI;IACHK,QAAQ,CAACF,MAAM,CAAC;EACjB,CAAC,SAAS;IACT,OAAOG,YAAY,CAACN,mBAAmB,CAAC;EACzC;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/stack-view.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,KAAK,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/blank-stack/components/stack-view.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,KAAK,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,UAAU,CAAC;AAwElB,KAAK,cAAc,GAAG,uBAAuB,CAC5C,oBAAoB,EACpB,2BAA2B,CAC3B,GACA,eAAe,CAAC;AAEjB,eAAO,MAAM,SAAS,kLASnB,cAAc,6CAoBf,CAAC"}
|
|
@@ -54,7 +54,7 @@ export interface BlankStackFactoryOptions {
|
|
|
54
54
|
* Props passed to overlay components in blank-stack.
|
|
55
55
|
* Uses the shared OverlayProps type with blank-stack's navigation type.
|
|
56
56
|
*/
|
|
57
|
-
export type BlankStackOverlayProps = OverlayProps<BlankStackNavigationProp<
|
|
57
|
+
export type BlankStackOverlayProps<ParamList extends ParamListBase = ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = OverlayProps<BlankStackNavigationProp<ParamList, RouteName, NavigatorID>, ParamList, RouteName>;
|
|
58
58
|
export type BlankStackNavigationOptions = ScreenTransitionConfig & {
|
|
59
59
|
/**
|
|
60
60
|
* Controls how inactive blank-stack screens are retained after they are no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/blank-stack/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,YAAY,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,wBAAwB,CACnC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,EAC1C,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAC/C,cAAc,CACjB,SAAS,EACT,SAAS,EACT,WAAW,EACX,oBAAoB,CAAC,SAAS,CAAC,EAC/B,2BAA2B,EAC3B,4BAA4B,CAC5B,GACA,kBAAkB,CAAC,SAAS,CAAC,C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IAE9B;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CACjC,SAAS,SAAS,aAAa,GAAG,aAAa,EAC/C,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,EACnD,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAC/C,YAAY,CACf,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,EAC3D,SAAS,EACT,SAAS,CACT,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IAClE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAC7D,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,CAAC,aAAa,CAAC,CACvC,GACA,kBAAkB,GAClB,wBAAwB,CAAC;AAE1B,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC5C,2BAA2B,EAC3B,wBAAwB,CAAC,aAAa,CAAC,EACvC,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/stack-view.tsx"],"names":[],"mappings":"AAQA,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAEvG,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"stack-view.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/stack-view.tsx"],"names":[],"mappings":"AAQA,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAEvG,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,UAAU,CAAC;AAmDlB,KAAK,cAAc,GAAG,uBAAuB,CAC5C,wBAAwB,EACxB,+BAA+B,CAC/B,GACA,eAAe,CAAC;AAEjB,eAAO,MAAM,SAAS,sKAQnB,cAAc,6CAoBf,CAAC"}
|
|
@@ -33,7 +33,7 @@ type ComponentStackNavigationConfig = {};
|
|
|
33
33
|
*
|
|
34
34
|
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
35
35
|
*/
|
|
36
|
-
export type ComponentStackOverlayProps = OverlayProps<ComponentStackNavigationProp<
|
|
36
|
+
export type ComponentStackOverlayProps<ParamList extends ParamListBase = ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = OverlayProps<ComponentStackNavigationProp<ParamList, RouteName, NavigatorID>, ParamList, RouteName>;
|
|
37
37
|
type ComponentStackScreenTransitionConfig = ScreenTransitionConfig & {
|
|
38
38
|
/**
|
|
39
39
|
* Whether to detach the previous screen from the view hierarchy to save memory.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/component-stack/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAElD;;GAEG;AACH,MAA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AAG,EAAE,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,CACrC,SAAS,SAAS,aAAa,GAAG,aAAa,EAC/C,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,EACnD,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAC/C,YAAY,CACf,4BAA4B,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,EAC/D,SAAS,EACT,SAAS,CACT,CAAC;AAEF,KAAK,oCAAoC,GAAG,sBAAsB,GAAG;IACpE;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAC1C,oCAAoC,GAAG,EAAE,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,uBAAuB,CACjE,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,+BAA+B,EAC/B,gCAAgC,EAChC,4BAA4B,CAAC,aAAa,CAAC,CAC3C,GACA,kBAAkB,GAClB,8BAA8B,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAChD,+BAA+B,EAC/B,4BAA4B,CAAC,aAAa,CAAC,EAC3C,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC"}
|
|
@@ -114,7 +114,7 @@ export type NativeStackHeaderLeftProps = NativeStackHeaderRightProps & {
|
|
|
114
114
|
* Props passed to overlay components in native-stack.
|
|
115
115
|
* Uses the shared OverlayProps type with native-stack's navigation type.
|
|
116
116
|
*/
|
|
117
|
-
export type NativeStackOverlayProps = OverlayProps<NativeStackNavigationProp<
|
|
117
|
+
export type NativeStackOverlayProps<ParamList extends ParamListBase = ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = OverlayProps<NativeStackNavigationProp<ParamList, RouteName, NavigatorID>, ParamList, RouteName>;
|
|
118
118
|
/**
|
|
119
119
|
* @deprecated The bundled native-stack integration is deprecated and will be removed in a future major release.
|
|
120
120
|
* Use `NativeStackAdapterOptions` with `withScreenTransitions` from
|