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
|
@@ -9,63 +9,52 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
10
10
|
var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
|
|
11
11
|
var _descriptors = require("../descriptors");
|
|
12
|
-
var _floatingOverlayLayer = require("./components/floating-overlay-layer");
|
|
13
12
|
var _useInterpolatedStyleMaps = require("./hooks/use-interpolated-style-maps");
|
|
14
13
|
var _useMaybeBlockVisibility = require("./hooks/use-maybe-block-visibility");
|
|
15
14
|
var _useResolvedSlotStyleMap = require("./hooks/use-resolved-slot-style-map");
|
|
16
|
-
var _slotReferences = require("./stores/slot-references.store");
|
|
17
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
17
|
const {
|
|
20
18
|
ScreenSlotProvider,
|
|
21
19
|
useScreenSlotStore: useScreenSlots
|
|
22
20
|
} = (0, _createProvider.default)("ScreenSlot", {
|
|
23
|
-
guarded: true
|
|
21
|
+
guarded: true,
|
|
22
|
+
global: true
|
|
24
23
|
})(({
|
|
25
|
-
children
|
|
26
|
-
isFloatingOverlay
|
|
24
|
+
children
|
|
27
25
|
}, {
|
|
28
26
|
useParentStore
|
|
29
27
|
}) => {
|
|
30
|
-
const
|
|
31
|
-
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(
|
|
28
|
+
const ancestorStylesMap = useParentStore(parentContext => parentContext?.slotsMap);
|
|
29
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(store => store.derivations.currentScreenKey);
|
|
32
30
|
const {
|
|
33
31
|
animatedStyle,
|
|
34
32
|
animatedProps,
|
|
35
33
|
shouldBlockVisibility
|
|
36
|
-
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(
|
|
34
|
+
} = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)();
|
|
37
35
|
const {
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
interpolatorReady,
|
|
37
|
+
localStylesMaps
|
|
40
38
|
} = (0, _useInterpolatedStyleMaps.useInterpolatedStylesMap)({
|
|
41
|
-
enabled:
|
|
39
|
+
enabled: true,
|
|
42
40
|
visibilityBlocked: shouldBlockVisibility
|
|
43
41
|
});
|
|
44
42
|
const slotsMap = (0, _useResolvedSlotStyleMap.useResolvedStylesMap)({
|
|
45
43
|
localStylesMaps,
|
|
46
|
-
ancestorStylesMap
|
|
44
|
+
ancestorStylesMap
|
|
47
45
|
});
|
|
48
46
|
const value = (0, _react.useMemo)(() => ({
|
|
49
|
-
|
|
50
|
-
nextInterpolatorReady,
|
|
47
|
+
interpolatorReady,
|
|
51
48
|
slotsMap,
|
|
52
49
|
visibilityBlocked: shouldBlockVisibility
|
|
53
|
-
}), [
|
|
54
|
-
(0, _react.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, [currentScreenKey, value]);
|
|
60
|
-
const content = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingOverlayLayer.FloatingOverlayLayer, {
|
|
61
|
-
enabled: isFloatingOverlay,
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
63
|
-
style: [styles.container, animatedStyle],
|
|
64
|
-
animatedProps: animatedProps,
|
|
65
|
-
children: children
|
|
66
|
-
})
|
|
67
|
-
}), [children, animatedStyle, isFloatingOverlay, animatedProps]);
|
|
50
|
+
}), [interpolatorReady, shouldBlockVisibility, slotsMap]);
|
|
51
|
+
const content = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
52
|
+
style: [styles.container, animatedStyle],
|
|
53
|
+
animatedProps: animatedProps,
|
|
54
|
+
children: children
|
|
55
|
+
}), [children, animatedStyle, animatedProps]);
|
|
68
56
|
return {
|
|
57
|
+
key: currentScreenKey,
|
|
69
58
|
value,
|
|
70
59
|
children: content
|
|
71
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_descriptors","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_createProvider","_descriptors","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenSlotProvider","useScreenSlotStore","useScreenSlots","createProvider","guarded","global","children","useParentStore","ancestorStylesMap","parentContext","slotsMap","currentScreenKey","useDescriptorsStore","store","derivations","animatedStyle","animatedProps","shouldBlockVisibility","useMaybeBlockVisibility","interpolatorReady","localStylesMaps","useInterpolatedStylesMap","enabled","visibilityBlocked","useResolvedStylesMap","value","useMemo","content","jsx","View","style","styles","container","key","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/slot.provider.tsx"],"mappings":";;;;;;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,QAAQ;IACRa,iBAAiB,EAAEN;EACpB,CAAC,CAAC,EACF,CAACE,iBAAiB,EAAEF,qBAAqB,EAAEP,QAAQ,CACpD,CAAC;EACD,MAAMiB,OAAO,GAAG,IAAAD,cAAO,EACtB,mBACC,IAAA9B,WAAA,CAAAgC,GAAA,EAACvC,sBAAA,CAAAU,OAAQ,CAAC8B,IAAI;IACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEjB,aAAa,CAAE;IACzCC,aAAa,EAAEA,aAAc;IAAAV,QAAA,EAE5BA;EAAQ,CACK,CACf,EACD,CAACA,QAAQ,EAAES,aAAa,EAAEC,aAAa,CACxC,CAAC;EAED,OAAO;IACNiB,GAAG,EAAEtB,gBAAgB;IACrBc,KAAK;IACLnB,QAAQ,EAAEqB;EACX,CAAC;AACF,CAAC,CAAC;AAACO,OAAA,CAAAhC,cAAA,GAAAA,cAAA;AAAAgC,OAAA,CAAAlC,kBAAA,GAAAA,kBAAA;AAEJ,MAAM+B,MAAM,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAChCJ,SAAS,EAAE;IAAEK,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createBlankStackController = void 0;
|
|
7
7
|
var _native = require("@react-navigation/native");
|
|
8
|
+
var _closeActionReplay = require("../../../utils/navigation/close-action-replay");
|
|
8
9
|
var _buildBlankStackState = require("./helpers/build-blank-stack-state");
|
|
9
10
|
var _deriveBlankStackState = require("./helpers/derive-blank-stack-state");
|
|
10
11
|
/**
|
|
@@ -66,10 +67,13 @@ const createBlankStackController = initialProps => {
|
|
|
66
67
|
navigation
|
|
67
68
|
} = props;
|
|
68
69
|
if (state.routes.some(candidate => candidate.key === route.key)) {
|
|
69
|
-
|
|
70
|
+
const action = {
|
|
70
71
|
..._native.StackActions.pop(),
|
|
71
72
|
source: route.key,
|
|
72
73
|
target: state.key
|
|
74
|
+
};
|
|
75
|
+
(0, _closeActionReplay.dispatchCloseAction)(action, closeAction => {
|
|
76
|
+
navigation.dispatch(closeAction);
|
|
73
77
|
});
|
|
74
78
|
return;
|
|
75
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_buildBlankStackState","_deriveBlankStackState","createBlankStackController","initialProps","closingRouteKeys","Set","props","previousRoutesSnapshot","state","routes","snapshot","buildBlankStackState","descriptors","listeners","emit","listener","subscribe","add","delete","getSnapshot","update","nextProps","lastRoutesSnapshot","nextState","deriveBlankStackState","current","handleCloseRoute","route","navigation","some","candidate","key","
|
|
1
|
+
{"version":3,"names":["_native","require","_closeActionReplay","_buildBlankStackState","_deriveBlankStackState","createBlankStackController","initialProps","closingRouteKeys","Set","props","previousRoutesSnapshot","state","routes","snapshot","buildBlankStackState","descriptors","listeners","emit","listener","subscribe","add","delete","getSnapshot","update","nextProps","lastRoutesSnapshot","nextState","deriveBlankStackState","current","handleCloseRoute","route","navigation","some","candidate","key","action","StackActions","pop","source","target","dispatchCloseAction","closeAction","dispatch","routeExists","nextRoutes","filter","nextDescriptors","sourceDescriptors","previousState","requestDismiss","routeIndex","findIndex","has","exports"],"sourceRoot":"../../../../../../src","sources":["shared/providers/stack/blank-stack-state/blank-stack-controller.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAOA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,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,EA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IAAKA,SAAS,CAACC,GAAG,KAAKJ,KAAK,CAACI,GACxC,CAAC;IAED,IAAIgB,UAAU,IAAI,CAAC,EAAE;MACpB,OAAO,KAAK;IACb;IAEA,IAAI3C,gBAAgB,CAAC6C,GAAG,CAACtB,KAAK,CAACI,GAAG,CAAC,EAAE;MACpC,OAAO,IAAI;IACZ;IAEA3B,gBAAgB,CAACa,GAAG,CAACU,KAAK,CAACI,GAAG,CAAC;IAC/BrB,QAAQ,GAAG;MACVF,KAAK,EAAE,IAAAG,0CAAoB,EAAC;QAC3BL,KAAK;QACLG,MAAM,EAAEgB,OAAO,CAAChB,MAAM;QACtBG,WAAW,EAAEa,OAAO,CAACmB,iBAAiB;QACtCxC,gBAAgB;QAChByC,aAAa,EAAEpB;MAChB,CAAC;IACF,CAAC;IACDX,IAAI,CAAC,CAAC;IACN,OAAO,IAAI;EACZ,CAAC;EAED,OAAO;IACNE,SAAS;IACTG,WAAW;IACXC,MAAM;IACNM,gBAAgB;IAChBoB;EACD,CAAC;AACF,CAAC;AAACI,OAAA,CAAAhD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/stack/blank-stack-state/helpers/resolve-presented-index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolvePresentedIndex = resolvePresentedIndex;
|
|
7
|
+
function resolvePresentedIndex(routes, focusedRouteKey, closingRouteKeys) {
|
|
8
|
+
const focusedIndex = focusedRouteKey ? routes.findIndex(route => route.key === focusedRouteKey) : routes.length - 1;
|
|
9
|
+
const resolvedFocusedIndex = focusedIndex >= 0 ? focusedIndex : routes.length - 1;
|
|
10
|
+
for (let index = resolvedFocusedIndex; index >= 0; index -= 1) {
|
|
11
|
+
const route = routes[index];
|
|
12
|
+
if (route && !closingRouteKeys.has(route.key)) {
|
|
13
|
+
return index;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return resolvedFocusedIndex;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=resolve-presented-index.js.map
|
package/lib/commonjs/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":";;;;;;AAEO,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":[]}
|
|
@@ -9,6 +9,7 @@ var _react = require("react");
|
|
|
9
9
|
var _useStack = require("../../hooks/navigation/use-stack");
|
|
10
10
|
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
11
11
|
var _blankStackState = require("./blank-stack-state");
|
|
12
|
+
var _resolvePresentedIndex = require("./blank-stack-state/helpers/resolve-presented-index");
|
|
12
13
|
var _core = require("./core.provider");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -47,7 +48,7 @@ function BlankStackProvider({
|
|
|
47
48
|
state: stackState
|
|
48
49
|
});
|
|
49
50
|
const navigatorKey = stackState.key;
|
|
50
|
-
const focusedIndex =
|
|
51
|
+
const focusedIndex = (0, _resolvePresentedIndex.resolvePresentedIndex)(state.routes, state.focusedRouteKey, state.closingRouteKeys);
|
|
51
52
|
const scenesByKey = (0, _react.useMemo)(() => createScenesByKey(state.scenes), [state.scenes]);
|
|
52
53
|
const stackValue = (0, _react.useMemo)(() => ({
|
|
53
54
|
flags,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_useStack","_createProvider","_interopRequireDefault","_blankStackState","_core","_jsxRuntime","e","__esModule","default","createScenesByKey","scenes","scenesByKey","scene","route","key","BlankStackProvider","BlankStackStoreProvider","useBlankStackStore","createProvider","guarded","children","value","exports","state","stackState","props","flags","useStackCoreStore","store","handleCloseRoute","requestDismiss","useBlankStackState","navigatorKey","focusedIndex","
|
|
1
|
+
{"version":3,"names":["_react","require","_useStack","_createProvider","_interopRequireDefault","_blankStackState","_resolvePresentedIndex","_core","_jsxRuntime","e","__esModule","default","createScenesByKey","scenes","scenesByKey","scene","route","key","BlankStackProvider","BlankStackStoreProvider","useBlankStackStore","createProvider","guarded","children","value","exports","state","stackState","props","flags","useStackCoreStore","store","handleCloseRoute","requestDismiss","useBlankStackState","navigatorKey","focusedIndex","resolvePresentedIndex","routes","focusedRouteKey","closingRouteKeys","useMemo","stackValue","routeKeys","blankStackValue","shouldShowFloatOverlay","jsx","StackProvider"],"sourceRoot":"../../../../../src","sources":["shared/providers/stack/blank-stack.provider.tsx"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAa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MAAM,EACZZ,KAAK,CAACa,eAAe,EACrBb,KAAK,CAACc,gBACP,CAAC;EACD,MAAM1B,WAAW,GAAG,IAAA2B,cAAO,EAC1B,MAAM7B,iBAAiB,CAACc,KAAK,CAACb,MAAM,CAAC,EACrC,CAACa,KAAK,CAACb,MAAM,CACd,CAAC;EAED,MAAM6B,UAAU,GAAG,IAAAD,cAAO,EACzB,OAAO;IACNZ,KAAK;IACLM,YAAY;IACZQ,SAAS,EAAEjB,KAAK,CAACiB,SAAS;IAC1BL,MAAM,EAAEZ,KAAK,CAACY,MAAyB;IACvCzB,MAAM,EAAEa,KAAK,CAACb,MAA0B;IACxCuB,YAAY;IACZH;EACD,CAAC,CAAC,EACF,CACCJ,KAAK,EACLM,YAAY,EACZT,KAAK,CAACiB,SAAS,EACfjB,KAAK,CAACY,MAAM,EACZZ,KAAK,CAACb,MAAM,EACZuB,YAAY,EACZH,cAAc,CAEhB,CAAC;EACD,MAAMW,eAAe,GAAG;IACvBT,YAAY;IACZQ,SAAS,EAAEjB,KAAK,CAACiB,SAAS;IAC1BL,MAAM,EAAEZ,KAAK,CAACY,MAAM;IACpBzB,MAAM,EAAEa,KAAK,CAACb,MAAM;IACpBC,WAAW;IACXsB,YAAY;IACZH,cAAc;IACdY,sBAAsB,EAAEnB,KAAK,CAACmB,sBAAsB;IACpDb;EACD,CAAC;EAED,oBACC,IAAAxB,WAAA,CAAAsC,GAAA,EAAC5C,SAAA,CAAA6C,aAAa;IAACvB,KAAK,EAAEkB,UAAW;IAAAnB,QAAA,eAChC,IAAAf,WAAA,CAAAsC,GAAA,EAAC3B,uBAAuB;MAACK,KAAK,EAAEoB,eAAgB;MAAArB,QAAA,EAC9CA;IAAQ,CACe;EAAC,CACZ,CAAC;AAElB","ignoreList":[]}
|
|
@@ -168,7 +168,7 @@ const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, gr
|
|
|
168
168
|
}
|
|
169
169
|
syncLinkStatus(link);
|
|
170
170
|
writePairLink(state, pairKey, linkKey, link);
|
|
171
|
-
if (link.group) {
|
|
171
|
+
if (link.group && !state[pairKey]?.groups?.[link.group]) {
|
|
172
172
|
writeGroup(state, pairKey, link.group, linkKey);
|
|
173
173
|
}
|
|
174
174
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getPairKeyForSource","getSourceScreenKeyFromPairKey","getPairKeyForDestination","getDestinationScreenKeyFromPairKey","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAyBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,M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B,OAAO,GAAG,IAAAiB,4BAAiB,EAACH,GAAG,CAAC;EACtC,KAAK,MAAMf,OAAO,IAAID,KAAK,EAAE;IAC5B,IAAI,IAAAqC,wCAA6B,EAACpC,OAAO,CAAC,KAAKP,SAAS,EAAE;IAC1D,IACCsC,eAAe,CAAC/B,OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAEG,WAAW,IAC/C6B,KAAK,CAACC,OAAO,CAAC,EAAEqB,cAAc,GAAGpB,OAAO,CAAC,EACxC;MACD,OAAOD,OAAO;IACf;EACD;EACA,OAAO,IAAI;AACZ;AAEA,SAASqC,wBAAwBA,CAChCtB,GAAU,EACVtB,SAAoB,EACG;EACvB,SAAS;;EACT,MAAMM,KAAK,GAAGiB,YAAK,CAACY,GAAG,CAAC,CAAC;EACzB,KAAK,MAAM5B,OAAO,IAAID,KAAK,EAAE;IAC5B,IAAI,IAAAuC,6CAAkC,EAACtC,OAAO,CAAC,KAAKP,SAAS,EAAE;IAC/D,IAAIsC,eAAe,CAAC/B,OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAE,OAAOiC,OAAO;EACvD;EACA,OAAO,IAAI;AACZ;AAEA,SAASuC,SAASA,CACjBvC,OAAsB,EACtBe,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAyB,oBAAa,EAACxB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACnE;AAEA,SAAS0B,cAAcA,CACtBzC,OAAsB,EACtBe,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAA2B,yBAAkB,EAAC1B,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getPairKeyForSource","getSourceScreenKeyFromPairKey","getPairKeyForDestination","getDestinationScreenKeyFromPairKey","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAyBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGL,KAAK,CAACM,MAAM,EAAED,KAA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AAe,CAAC/B,OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAEG,WAAW,IAC/C6B,KAAK,CAACC,OAAO,CAAC,EAAEqB,cAAc,GAAGpB,OAAO,CAAC,EACxC;MACD,OAAOD,OAAO;IACf;EACD;EACA,OAAO,IAAI;AACZ;AAEA,SAASqC,wBAAwBA,CAChCtB,GAAU,EACVtB,SAAoB,EACG;EACvB,SAAS;;EACT,MAAMM,KAAK,GAAGiB,YAAK,CAACY,GAAG,CAAC,CAAC;EACzB,KAAK,MAAM5B,OAAO,IAAID,KAAK,EAAE;IAC5B,IAAI,IAAAuC,6CAAkC,EAACtC,OAAO,CAAC,KAAKP,SAAS,EAAE;IAC/D,IAAIsC,eAAe,CAAC/B,OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAE,OAAOiC,OAAO;EACvD;EACA,OAAO,IAAI;AACZ;AAEA,SAASuC,SAASA,CACjBvC,OAAsB,EACtBe,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAyB,oBAAa,EAACxB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACnE;AAEA,SAAS0B,cAAcA,CACtBzC,OAAsB,EACtBe,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAA2B,yBAAkB,EAAC1B,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
|
|
@@ -9,8 +9,7 @@ var _createStore = require("../utils/create-store");
|
|
|
9
9
|
let LifecycleTransitionRequestKind = exports.LifecycleTransitionRequestKind = /*#__PURE__*/function (LifecycleTransitionRequestKind) {
|
|
10
10
|
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["None"] = 0] = "None";
|
|
11
11
|
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["Open"] = 1] = "Open";
|
|
12
|
-
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["
|
|
13
|
-
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["NativeClose"] = 3] = "NativeClose";
|
|
12
|
+
LifecycleTransitionRequestKind[LifecycleTransitionRequestKind["Close"] = 2] = "Close";
|
|
14
13
|
return LifecycleTransitionRequestKind;
|
|
15
14
|
}({});
|
|
16
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","LifecycleTransitionRequestKind","exports","SystemStore","createStore","createBag","targetProgress","makeMutable","animationProgress","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","cancelAnimation","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","modify","count","unblockLifecycleStart","Math","max","drainLifecycleStartBlocks"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAAoD,IAExCE,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","LifecycleTransitionRequestKind","exports","SystemStore","createStore","createBag","targetProgress","makeMutable","animationProgress","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","cancelAnimation","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","modify","count","unblockLifecycleStart","Math","max","drainLifecycleStartBlocks"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;;;;;AAAA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OAAO,EAAGF,GAAG,KAAM;IAClBG,0BAA0BA,CAACC,IAAI,EAAEC,MAAM,EAAE;MACxC,SAAS;;MACTL,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAACD,MAAM,CAAC;MAC7CL,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACF,IAAI,CAAC;IAC1C,CAAC;IAEDG,+BAA+BA,CAAA,EAAG;MACjC,SAAS;;MACTP,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACrB,8BAA8B,CAACW,IAAI,CAAC;MACxEI,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAEDE,mBAAmBA,CAAA,EAAG;MACrB,SAAS;;MACTR,GAAG,CAACF,+BAA+B,CAACW,MAAM,CACtBC,KAAQ,IAAQ;QAClC,SAAS;;QACT,OAAQA,KAAK,GAAG,CAAC;MAClB,CACD,CAAC;IACF,CAAC;IAEDC,qBAAqBA,CAAA,EAAG;MACvB,SAAS;;MACTX,GAAG,CAACF,+BAA+B,CAACW,MAAM,CACtBC,KAAQ,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;;MACTd,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CAAC,CAAC,CAAC;IAC3C;EACD,CAAC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolveAnimationProgressRange = exports.animateToProgress = void 0;
|
|
7
|
-
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
7
|
var _constants = require("../../constants");
|
|
9
8
|
var _animation = require("../../stores/animation.store");
|
|
10
9
|
var _animate = require("./animate");
|
|
@@ -33,7 +32,6 @@ exports.resolveAnimationProgressRange = resolveAnimationProgressRange;
|
|
|
33
32
|
const animateToProgress = ({
|
|
34
33
|
target,
|
|
35
34
|
spec,
|
|
36
|
-
onAnimationFinish,
|
|
37
35
|
animations,
|
|
38
36
|
targetProgress,
|
|
39
37
|
animationProgress,
|
|
@@ -80,9 +78,6 @@ const animateToProgress = ({
|
|
|
80
78
|
if (shouldClearEnteringOnFinish) {
|
|
81
79
|
entering.set(_constants.FALSE);
|
|
82
80
|
}
|
|
83
|
-
if (onAnimationFinish) {
|
|
84
|
-
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(true);
|
|
85
|
-
}
|
|
86
81
|
return;
|
|
87
82
|
}
|
|
88
83
|
if (activateMotion) {
|
|
@@ -101,24 +96,7 @@ const animateToProgress = ({
|
|
|
101
96
|
}
|
|
102
97
|
if (isClosing) {
|
|
103
98
|
progressAnimating.set(_constants.FALSE);
|
|
104
|
-
if (onAnimationFinish) {
|
|
105
|
-
// Paint the terminal UI-thread host/style state before React
|
|
106
|
-
// removes the closing route and its native portal host.
|
|
107
|
-
requestAnimationFrame(() => {
|
|
108
|
-
"worklet";
|
|
109
|
-
|
|
110
|
-
requestAnimationFrame(() => {
|
|
111
|
-
"worklet";
|
|
112
|
-
|
|
113
|
-
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(state.finished);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
99
|
} else {
|
|
118
|
-
if (onAnimationFinish) {
|
|
119
|
-
(0, _reactNativeReanimated.runOnJS)(onAnimationFinish)(state.finished);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
100
|
// Delay clearing progress animation by one frame to ensure final frame is painted
|
|
123
101
|
requestAnimationFrame(() => {
|
|
124
102
|
progressAnimating.set(_constants.FALSE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_constants","require","_animation","_animate","setTransitionLifecycleFlags","animations","isClosing","markEntering","closing","set","TRUE","entering","FALSE","resolveAnimationProgressRange","currentProgress","targetProgress","from","Math","min","max","to","exports","animateToProgress","target","spec","animationProgress","emitWillAnimate","initialVelocity","isDragging","value","config","close","open","isSpringConfig","isSpringAnimationConfig","effectiveConfig","velocity","transitionProgress","progressAnimating","progressSettled","startAnimation","activateMotion","animationProgressFrom","animationProgressTo","get","shouldClearEnteringOnFinish","animate","state","finished","requestAnimationFrame","emitMotionStart"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAqBA,MAAMG,2BAA2B,GAAGA,CACnCC,UAA6B,EAC7BC,SAAkB,EAClBC,YAAqB,KACjB;EACJ,SAAS;;EAET,IAAID,SAAS,EAAE;IACdD,UAAU,CAACG,OAAO,CAACC,GAAG,CAACC,eAAI,CAAC;IAC5BL,UAAU,CAACM,QAAQ,CAACF,GAAG,CAACG,gBAAK,CAAC;IAC9B;EACD;EAEAP,UAAU,CAACG,OAAO,CAACC,GAAG,CAACG,gBAAK,CAAC;EAE7B,IAAIL,YAAY,EAAE;IACjBF,UAAU,CAACM,QAAQ,CAACF,GAAG,CAACC,eAAI,CAAC;EAC9B;AACD,CAAC;AAEM,MAAMG,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;AAACM,OAAA,CAAAR,6BAAA,GAAAA,6BAAA;AAEK,MAAMS,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJnB,UAAU;EACVU,cAAc;EACdU,iBAAiB;EACjBC,eAAe,GAAG,IAAI;EACtB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qB,CAAC,MAAM;MAC3B,SAAS;;MACTT,cAAc,CAAC,KAAK,CAAC;IACtB,CAAC,CAAC;IACF;EACD;EAEAA,cAAc,CAAC,IAAI,CAAC;AACrB,CAAC;AAACnB,OAAA,CAAAC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -22,6 +22,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
22
|
* - `children`: passed-through children keep their identity across
|
|
23
23
|
* provider-local renders. Factories that wrap children should use a
|
|
24
24
|
* module-level memoized component for the wrapper.
|
|
25
|
+
*
|
|
26
|
+
* Providers created with `global: true` return a `key` from their factory.
|
|
27
|
+
* Their generated store hook accepts that key to subscribe to the original
|
|
28
|
+
* provider store from outside its React context.
|
|
25
29
|
*/
|
|
26
30
|
|
|
27
31
|
const NullProviderStore = {
|
|
@@ -72,41 +76,134 @@ const createProviderStore = initialSnapshot => {
|
|
|
72
76
|
}
|
|
73
77
|
};
|
|
74
78
|
};
|
|
79
|
+
const createProviderStoreRegistry = () => {
|
|
80
|
+
const listenersByKey = new Map();
|
|
81
|
+
const registrationsByKey = new Map();
|
|
82
|
+
const getStore = key => {
|
|
83
|
+
const registrations = registrationsByKey.get(key);
|
|
84
|
+
return registrations?.[registrations.length - 1]?.store ?? null;
|
|
85
|
+
};
|
|
86
|
+
const notify = key => {
|
|
87
|
+
for (const listener of listenersByKey.get(key) ?? []) {
|
|
88
|
+
listener();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
getStore,
|
|
93
|
+
register: (key, store) => {
|
|
94
|
+
const registration = {
|
|
95
|
+
store
|
|
96
|
+
};
|
|
97
|
+
const registrations = registrationsByKey.get(key) ?? [];
|
|
98
|
+
registrationsByKey.set(key, [...registrations, registration]);
|
|
99
|
+
notify(key);
|
|
100
|
+
return () => {
|
|
101
|
+
const currentRegistrations = registrationsByKey.get(key);
|
|
102
|
+
if (!currentRegistrations?.includes(registration)) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const previousStore = getStore(key);
|
|
106
|
+
const nextRegistrations = currentRegistrations.filter(currentRegistration => currentRegistration !== registration);
|
|
107
|
+
if (nextRegistrations.length === 0) {
|
|
108
|
+
registrationsByKey.delete(key);
|
|
109
|
+
} else {
|
|
110
|
+
registrationsByKey.set(key, nextRegistrations);
|
|
111
|
+
}
|
|
112
|
+
if (getStore(key) !== previousStore) {
|
|
113
|
+
notify(key);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
subscribe: (key, listener) => {
|
|
118
|
+
const listeners = listenersByKey.get(key) ?? new Set();
|
|
119
|
+
listeners.add(listener);
|
|
120
|
+
listenersByKey.set(key, listeners);
|
|
121
|
+
return () => {
|
|
122
|
+
listeners.delete(listener);
|
|
123
|
+
if (listeners.size === 0) {
|
|
124
|
+
listenersByKey.delete(key);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
};
|
|
75
130
|
function createProvider(name, options) {
|
|
76
131
|
return factory => {
|
|
77
132
|
const {
|
|
78
|
-
guarded = true
|
|
133
|
+
guarded = true,
|
|
134
|
+
global = false
|
|
79
135
|
} = options ?? {};
|
|
80
136
|
const providerDisplayName = `${name}Provider`;
|
|
137
|
+
const globalRegistry = global ? createProviderStoreRegistry() : null;
|
|
138
|
+
const keyByStore = global ? new WeakMap() : null;
|
|
81
139
|
const StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
82
140
|
StoreContext.displayName = `${name}Store`;
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
141
|
+
const useRegisteredStore = (key, fallbackStore = null) => {
|
|
142
|
+
const subscribe = (0, _react.useCallback)(listener => {
|
|
143
|
+
if (key === null || !globalRegistry) {
|
|
144
|
+
return () => {};
|
|
145
|
+
}
|
|
146
|
+
return globalRegistry.subscribe(key, listener);
|
|
147
|
+
}, [key]);
|
|
148
|
+
const getSnapshot = (0, _react.useCallback)(() => key !== null && globalRegistry ? globalRegistry.getStore(key) ?? fallbackStore : null, [key, fallbackStore]);
|
|
149
|
+
return (0, _react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
150
|
+
};
|
|
151
|
+
const createStoreHook = (strict, allowGlobalLookup) => {
|
|
152
|
+
if (!allowGlobalLookup || !globalRegistry) {
|
|
153
|
+
return selector => {
|
|
154
|
+
const store = (0, _react.useContext)(StoreContext);
|
|
155
|
+
const resolvedStore = store ?? NullProviderStore;
|
|
156
|
+
const selectorRef = (0, _react.useRef)(selector);
|
|
157
|
+
selectorRef.current = selector;
|
|
158
|
+
const getSelectedSnapshot = (0, _react.useCallback)(() => {
|
|
159
|
+
if (strict && store === null) {
|
|
160
|
+
throw new Error(`${name} store must be used within a ${name}Provider`);
|
|
161
|
+
}
|
|
162
|
+
const snapshot = resolvedStore.getSnapshot();
|
|
163
|
+
if (strict && snapshot === null) {
|
|
164
|
+
throw new Error(`${name} store must be used within an enabled ${name}Provider`);
|
|
165
|
+
}
|
|
166
|
+
return selectorRef.current ? selectorRef.current(snapshot) : snapshot;
|
|
167
|
+
}, [resolvedStore, store]);
|
|
168
|
+
return (0, _react.useSyncExternalStore)(resolvedStore.subscribe, getSelectedSnapshot, getSelectedSnapshot);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
return (selectorOrKey, globalSelector) => {
|
|
172
|
+
const isGlobalLookup = typeof selectorOrKey === "string";
|
|
173
|
+
const key = isGlobalLookup ? selectorOrKey : null;
|
|
174
|
+
const selector = isGlobalLookup ? globalSelector : selectorOrKey;
|
|
175
|
+
const contextStore = (0, _react.useContext)(StoreContext);
|
|
176
|
+
const matchingContextStore = key !== null && contextStore !== null && keyByStore?.get(contextStore) === key ? contextStore : null;
|
|
177
|
+
const registeredStore = useRegisteredStore(key, matchingContextStore);
|
|
178
|
+
const store = isGlobalLookup ? registeredStore : contextStore;
|
|
86
179
|
const resolvedStore = store ?? NullProviderStore;
|
|
87
180
|
const selectorRef = (0, _react.useRef)(selector);
|
|
88
181
|
selectorRef.current = selector;
|
|
89
182
|
const getSelectedSnapshot = (0, _react.useCallback)(() => {
|
|
90
|
-
if (strict && store === null) {
|
|
183
|
+
if (!isGlobalLookup && strict && store === null) {
|
|
91
184
|
throw new Error(`${name} store must be used within a ${name}Provider`);
|
|
92
185
|
}
|
|
93
186
|
const snapshot = resolvedStore.getSnapshot();
|
|
94
|
-
if (
|
|
187
|
+
if (isGlobalLookup && snapshot === null) {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
if (!isGlobalLookup && strict && snapshot === null) {
|
|
95
191
|
throw new Error(`${name} store must be used within an enabled ${name}Provider`);
|
|
96
192
|
}
|
|
97
|
-
return selectorRef.current ? selectorRef.current(snapshot) : snapshot;
|
|
98
|
-
}, [resolvedStore, store]);
|
|
193
|
+
return typeof selectorRef.current === "function" ? selectorRef.current(snapshot) : snapshot;
|
|
194
|
+
}, [isGlobalLookup, resolvedStore, store]);
|
|
99
195
|
return (0, _react.useSyncExternalStore)(resolvedStore.subscribe, getSelectedSnapshot, getSelectedSnapshot);
|
|
100
196
|
};
|
|
101
197
|
};
|
|
102
|
-
const useStoreSelector = createStoreHook(guarded);
|
|
198
|
+
const useStoreSelector = createStoreHook(guarded, global);
|
|
103
199
|
const factoryInternals = {
|
|
104
|
-
useParentStore: createStoreHook(false)
|
|
200
|
+
useParentStore: createStoreHook(false, false)
|
|
105
201
|
};
|
|
106
202
|
const Provider = props => {
|
|
107
203
|
const {
|
|
108
204
|
children = props.children,
|
|
109
205
|
enabled = true,
|
|
206
|
+
key,
|
|
110
207
|
value
|
|
111
208
|
} = factory(props, factoryInternals);
|
|
112
209
|
if (!value) {
|
|
@@ -119,6 +216,18 @@ function createProvider(name, options) {
|
|
|
119
216
|
storeRef.current = createProviderStore(snapshotValue);
|
|
120
217
|
}
|
|
121
218
|
const store = storeRef.current;
|
|
219
|
+
if (keyByStore && typeof key === "string") {
|
|
220
|
+
keyByStore.set(store, key);
|
|
221
|
+
}
|
|
222
|
+
(0, _react.useLayoutEffect)(() => {
|
|
223
|
+
if (!globalRegistry) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (typeof key !== "string") {
|
|
227
|
+
throw new Error(`${name}Provider must return a key when global mode is enabled`);
|
|
228
|
+
}
|
|
229
|
+
return globalRegistry.register(key, store);
|
|
230
|
+
}, [key, store]);
|
|
122
231
|
pendingNotifyRef.current = store.setSnapshot(snapshotValue) || pendingNotifyRef.current;
|
|
123
232
|
(0, _react.useLayoutEffect)(() => {
|
|
124
233
|
if (!pendingNotifyRef.current) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_jsxRuntime","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","createContext","displayName","createStoreHook","strict","
|
|
1
|
+
{"version":3,"names":["_react","require","_jsxRuntime","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","createContext","displayName","useRegisteredStore","fallbackStore","useCallback","useSyncExternalStore","createStoreHook","strict","allowGlobalLookup","selector","useContext","resolvedStore","selectorRef","useRef","current","getSelectedSnapshot","Error","selectorOrKey","globalSelector","isGlobalLookup","contextStore","matchingContextStore","registeredStore","useStoreSelector","factoryInternals","useParentStore","Provider","props","children","enabled","value","snapshotValue","storeRef","pendingNotifyRef","useLayoutEffect","jsx"],"sourceRoot":"../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