react-native-screen-transitions 3.6.0 → 3.7.0-alpha.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/README.md +2 -2
- package/lib/commonjs/blank-stack/components/stack-view.js +35 -39
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +7 -14
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/components/stack-view.js +4 -11
- package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +1 -1
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +6 -0
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/shared/adapters/with-screen-transitions/context.js +28 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/context.js.map +1 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/index.js +75 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/index.js.map +1 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/options.js +103 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/options.js.map +1 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js +143 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/types.js +6 -0
- package/lib/commonjs/shared/adapters/with-screen-transitions/types.js.map +1 -0
- package/lib/commonjs/shared/components/activity/helpers.js +9 -0
- package/lib/commonjs/shared/components/activity/helpers.js.map +1 -0
- package/lib/commonjs/shared/components/activity/index.js +20 -0
- package/lib/commonjs/shared/components/activity/index.js.map +1 -0
- package/lib/commonjs/shared/components/activity/variants/activity-container.js +29 -0
- package/lib/commonjs/shared/components/activity/variants/activity-container.js.map +1 -0
- package/lib/commonjs/shared/components/activity/variants/activity-screen.js +107 -0
- package/lib/commonjs/shared/components/activity/variants/activity-screen.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +10 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js +13 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +8 -17
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +10 -4
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +63 -6
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/index.js +8 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +18 -29
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/index.js +6 -0
- package/lib/commonjs/shared/providers/screen/descriptors/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js +2 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +4 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +4 -3
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +4 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +4 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +16 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +4 -3
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.js +199 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.js +62 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.js +81 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.js +123 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/types.js +6 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/helpers/types.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/index.js +24 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/index.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.js +131 -0
- package/lib/commonjs/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/managed.provider.js +18 -29
- package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/commonjs/shared/types/stack.types.js.map +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +99 -10
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +8 -5
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js +23 -6
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/commonjs/shared/utils/visibility-block-offset.js +13 -0
- package/lib/commonjs/shared/utils/visibility-block-offset.js.map +1 -0
- package/lib/module/blank-stack/components/stack-view.js +36 -40
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +7 -14
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/components/stack-view.js +4 -11
- package/lib/module/component-stack/components/stack-view.js.map +1 -1
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js +1 -1
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js +6 -0
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/context.js +23 -0
- package/lib/module/shared/adapters/with-screen-transitions/context.js.map +1 -0
- package/lib/module/shared/adapters/with-screen-transitions/index.js +66 -0
- package/lib/module/shared/adapters/with-screen-transitions/index.js.map +1 -0
- package/lib/module/shared/adapters/with-screen-transitions/options.js +98 -0
- package/lib/module/shared/adapters/with-screen-transitions/options.js.map +1 -0
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js +138 -0
- package/lib/module/shared/adapters/with-screen-transitions/stack-layout.js.map +1 -0
- package/lib/module/shared/adapters/with-screen-transitions/types.js +4 -0
- package/lib/module/shared/adapters/with-screen-transitions/types.js.map +1 -0
- package/lib/module/shared/components/activity/helpers.js +5 -0
- package/lib/module/shared/components/activity/helpers.js.map +1 -0
- package/lib/module/shared/components/activity/index.js +5 -0
- package/lib/module/shared/components/activity/index.js.map +1 -0
- package/lib/module/shared/components/activity/variants/activity-container.js +24 -0
- package/lib/module/shared/components/activity/variants/activity-container.js.map +1 -0
- package/lib/module/shared/components/activity/variants/activity-screen.js +103 -0
- package/lib/module/shared/components/activity/variants/activity-screen.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +11 -5
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js +11 -0
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +8 -17
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +11 -5
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js +63 -6
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/index.js +3 -0
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +17 -29
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/index.js +1 -1
- package/lib/module/shared/providers/screen/descriptors/index.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js +2 -1
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +2 -2
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +5 -2
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +4 -3
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +5 -2
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +4 -3
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +16 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +5 -4
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.js +194 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.js +57 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.js +69 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.js +118 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/types.js +4 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/helpers/types.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/index.js +19 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/index.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.js +126 -0
- package/lib/module/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.js.map +1 -0
- package/lib/module/shared/providers/stack/managed.provider.js +19 -30
- package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/module/shared/types/stack.types.js.map +1 -1
- package/lib/module/shared/utils/create-provider.js +100 -11
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +8 -5
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js +23 -6
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/module/shared/utils/visibility-block-offset.js +8 -0
- package/lib/module/shared/utils/visibility-block-offset.js.map +1 -0
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/blank-stack/index.d.ts +1 -1
- package/lib/typescript/blank-stack/index.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +4 -6
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +41 -29
- 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/navigators/create-component-stack-navigator.d.ts +1 -1
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +5 -0
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/native-stack/types.d.ts +25 -0
- package/lib/typescript/native-stack/types.d.ts.map +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts +15 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts.map +1 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts +11 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts.map +1 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/options.d.ts +16 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/options.d.ts.map +1 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts +12 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/types.d.ts +24 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/types.d.ts.map +1 -0
- package/lib/typescript/shared/components/activity/helpers.d.ts +4 -0
- package/lib/typescript/shared/components/activity/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/components/activity/index.d.ts +3 -0
- package/lib/typescript/shared/components/activity/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/activity/variants/activity-container.d.ts +6 -0
- package/lib/typescript/shared/components/activity/variants/activity-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts +13 -0
- package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +1 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.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/hooks/navigation/use-stack.d.ts +13 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +15 -11
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +11 -3
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +3 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.d.ts +13 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.d.ts +12 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.d.ts +11 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.d.ts +12 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/types.d.ts +40 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/index.d.ts +12 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.d.ts +13 -0
- package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +2 -2
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts +3 -9
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +24 -0
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/stack.types.d.ts +7 -0
- package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts +17 -3
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +2 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +2 -1
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
- package/lib/typescript/shared/utils/visibility-block-offset.d.ts +2 -0
- package/lib/typescript/shared/utils/visibility-block-offset.d.ts.map +1 -0
- package/package.json +11 -1
- package/src/blank-stack/components/stack-view.tsx +54 -48
- package/src/blank-stack/index.ts +1 -0
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +7 -15
- package/src/blank-stack/types.ts +44 -29
- package/src/component-stack/components/stack-view.tsx +4 -11
- package/src/component-stack/navigators/create-component-stack-navigator.tsx +1 -1
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +5 -0
- package/src/native-stack/types.ts +25 -0
- package/src/shared/adapters/with-screen-transitions/context.tsx +42 -0
- package/src/shared/adapters/with-screen-transitions/index.tsx +155 -0
- package/src/shared/adapters/with-screen-transitions/options.ts +172 -0
- package/src/shared/adapters/with-screen-transitions/stack-layout.tsx +233 -0
- package/src/shared/adapters/with-screen-transitions/types.ts +28 -0
- package/src/shared/components/activity/helpers.ts +8 -0
- package/src/shared/components/activity/index.tsx +2 -0
- package/src/shared/components/activity/variants/activity-container.tsx +25 -0
- package/src/shared/components/activity/variants/activity-screen.tsx +133 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +23 -4
- package/src/shared/components/create-boundary-component/utils/measured-bounds.ts +15 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +9 -26
- package/src/shared/components/screen-lifecycle/index.tsx +1 -1
- package/src/shared/hooks/navigation/use-navigation-helpers.ts +9 -3
- package/src/shared/hooks/navigation/use-stack.tsx +115 -6
- package/src/shared/index.ts +9 -0
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +31 -31
- package/src/shared/providers/screen/descriptors/index.tsx +1 -0
- package/src/shared/providers/screen/gestures/ownership/resolve-ownership.ts +2 -1
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +2 -2
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +7 -2
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +10 -2
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +7 -2
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +8 -3
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +17 -1
- package/src/shared/providers/stack/direct.provider.tsx +13 -4
- package/src/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.ts +368 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.ts +129 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.ts +139 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.ts +198 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/helpers/types.ts +57 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/index.ts +40 -0
- package/src/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.ts +160 -0
- package/src/shared/providers/stack/managed.provider.tsx +23 -39
- package/src/shared/types/index.ts +3 -0
- package/src/shared/types/providers/managed-stack.types.ts +6 -8
- package/src/shared/types/screen.types.ts +25 -0
- package/src/shared/types/stack.types.ts +11 -0
- package/src/shared/utils/create-provider.tsx +183 -8
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +9 -4
- package/src/shared/utils/navigation/sync-routes-with-removed.ts +38 -7
- package/src/shared/utils/visibility-block-offset.ts +4 -0
- package/lib/commonjs/blank-stack/components/stack-view.native.js +0 -64
- package/lib/commonjs/blank-stack/components/stack-view.native.js.map +0 -1
- package/lib/commonjs/shared/components/native-screen-container.js +0 -42
- package/lib/commonjs/shared/components/native-screen-container.js.map +0 -1
- package/lib/commonjs/shared/components/native-screen.js +0 -125
- package/lib/commonjs/shared/components/native-screen.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js +0 -51
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js +0 -15
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js +0 -14
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js +0 -13
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js +0 -101
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js.map +0 -1
- package/lib/module/blank-stack/components/stack-view.native.js +0 -60
- package/lib/module/blank-stack/components/stack-view.native.js.map +0 -1
- package/lib/module/shared/components/native-screen-container.js +0 -37
- package/lib/module/shared/components/native-screen-container.js.map +0 -1
- package/lib/module/shared/components/native-screen.js +0 -119
- package/lib/module/shared/components/native-screen.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js +0 -47
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js +0 -10
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js +0 -9
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js +0 -8
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js +0 -95
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js.map +0 -1
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts +0 -3
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +0 -1
- package/lib/typescript/shared/components/native-screen-container.d.ts +0 -6
- package/lib/typescript/shared/components/native-screen-container.d.ts.map +0 -1
- package/lib/typescript/shared/components/native-screen.d.ts +0 -12
- package/lib/typescript/shared/components/native-screen.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts +0 -10
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts +0 -2
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts +0 -3
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts +0 -3
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts +0 -19
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts.map +0 -1
- package/src/blank-stack/components/stack-view.native.tsx +0 -74
- package/src/shared/components/native-screen-container.tsx +0 -33
- package/src/shared/components/native-screen.tsx +0 -176
- package/src/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.ts +0 -65
- package/src/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.ts +0 -15
- package/src/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.ts +0 -12
- package/src/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.ts +0 -11
- package/src/shared/providers/stack/helpers/use-local-routes/index.ts +0 -147
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ScrollView, View } from "react-native";
|
|
2
|
+
import { withScreenTransitions } from "./adapters/with-screen-transitions";
|
|
2
3
|
import { createBoundaryComponent } from "./components/create-boundary-component";
|
|
3
4
|
import { createTransitionAwareComponent } from "./components/create-transition-aware-component";
|
|
4
5
|
import MaskedView from "./components/integrations/masked-view";
|
|
5
6
|
declare const _default: {
|
|
6
7
|
createTransitionAwareComponent: typeof createTransitionAwareComponent;
|
|
7
8
|
createBoundaryComponent: typeof createBoundaryComponent;
|
|
9
|
+
withScreenTransitions: typeof withScreenTransitions;
|
|
8
10
|
Boundary: {
|
|
9
11
|
View: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "id"> & import("./components/create-boundary-component/types").BoundaryOwnProps & import("react").RefAttributes<never>>>;
|
|
10
12
|
Trigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react-native").PressableProps & import("react").RefAttributes<View>, "id"> & import("./components/create-boundary-component/types").BoundaryOwnProps & import("react").RefAttributes<View | import("react").Component<import("react-native").PressableProps & import("react").RefAttributes<View>, any, any>>>>;
|
|
@@ -12,13 +14,13 @@ declare const _default: {
|
|
|
12
14
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
13
15
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
14
16
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
17
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
15
18
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
16
19
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
17
20
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
18
21
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
19
22
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
20
23
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
21
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
22
24
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
23
25
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
24
26
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -115,13 +117,13 @@ declare const _default: {
|
|
|
115
117
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
116
118
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
117
119
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
120
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
118
121
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
119
122
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
120
123
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
121
124
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
122
125
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
123
126
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
124
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
125
127
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
126
128
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
127
129
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -220,13 +222,13 @@ declare const _default: {
|
|
|
220
222
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
221
223
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
222
224
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
225
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
223
226
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
224
227
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
225
228
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
226
229
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
227
230
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
228
231
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
229
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
230
232
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
231
233
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
232
234
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -323,13 +325,13 @@ declare const _default: {
|
|
|
323
325
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
324
326
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
325
327
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
328
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
326
329
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
327
330
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
328
331
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
329
332
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
330
333
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
331
334
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
332
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
333
335
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
334
336
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
335
337
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -433,13 +435,13 @@ declare const _default: {
|
|
|
433
435
|
key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
|
|
434
436
|
children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
|
|
435
437
|
ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
|
|
438
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
436
439
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
437
440
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
438
441
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
439
442
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
440
443
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
441
444
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
442
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
443
445
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
444
446
|
onBlur?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | null | undefined> | null | undefined;
|
|
445
447
|
onFocus?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | null | undefined> | null | undefined;
|
|
@@ -554,13 +556,13 @@ declare const _default: {
|
|
|
554
556
|
key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
|
|
555
557
|
children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
|
|
556
558
|
ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
|
|
559
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
557
560
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
558
561
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
559
562
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
560
563
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
561
564
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
562
565
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
563
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
564
566
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
565
567
|
onBlur?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | null | undefined> | null | undefined;
|
|
566
568
|
onFocus?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | null | undefined> | null | undefined;
|
|
@@ -679,13 +681,13 @@ declare const _default: {
|
|
|
679
681
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
680
682
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
681
683
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
684
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
682
685
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
683
686
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
684
687
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
685
688
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
686
689
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
687
690
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
688
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
689
691
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
690
692
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
691
693
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -854,13 +856,13 @@ declare const _default: {
|
|
|
854
856
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
855
857
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
856
858
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
859
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
857
860
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
858
861
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
859
862
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
860
863
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
861
864
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
862
865
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
863
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
864
866
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
865
867
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
866
868
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -1034,13 +1036,13 @@ declare const _default: {
|
|
|
1034
1036
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1035
1037
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
1036
1038
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
1039
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1037
1040
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
1038
1041
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1039
1042
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
1040
1043
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1041
1044
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1042
1045
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1043
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1044
1046
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1045
1047
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
1046
1048
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -1276,13 +1278,13 @@ declare const _default: {
|
|
|
1276
1278
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1277
1279
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|
|
1278
1280
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
1281
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1279
1282
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
1280
1283
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1281
1284
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
1282
1285
|
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1283
1286
|
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1284
1287
|
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1285
|
-
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1286
1288
|
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1287
1289
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").BlurEvent) => void) | null | undefined> | null | undefined;
|
|
1288
1290
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | import("react-native-reanimated").SharedValue<((e: import("react-native").FocusEvent) => void) | null | undefined> | null | undefined;
|
|
@@ -1544,11 +1546,13 @@ declare const _default: {
|
|
|
1544
1546
|
};
|
|
1545
1547
|
};
|
|
1546
1548
|
export default _default;
|
|
1549
|
+
export type { NativeStackAdapterOptions, NativeStackNativeGestureOptions, ScreenTransitionDescriptorOptions, } from "./adapters/with-screen-transitions";
|
|
1550
|
+
export { withScreenTransitions } from "./adapters/with-screen-transitions";
|
|
1547
1551
|
export { snapTo } from "./animation/snap-to";
|
|
1548
1552
|
export { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID, TRANSFORM_RESET, } from "./constants";
|
|
1549
1553
|
export { useHistory } from "./hooks/navigation/use-history";
|
|
1550
1554
|
export { type ScreenState, useScreenState, } from "./hooks/navigation/use-screen-state";
|
|
1551
1555
|
export { type ScreenAnimationTarget, useScreenAnimation, } from "./providers/screen/animation";
|
|
1552
1556
|
export { type ScreenGestureTarget, useScreenGesture, } from "./providers/screen/gestures/hooks/use-screen-gesture";
|
|
1553
|
-
export type { AnimatedViewStyle, AnimationConfig, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, OverlayProps, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionConfig, TransitionInterpolatedStyle, TransitionSlotStyle, TransitionSpec, } from "./types";
|
|
1557
|
+
export type { AnimatedViewStyle, AnimationConfig, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, InactiveBehavior, OverlayProps, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionConfig, TransitionInterpolatedStyle, TransitionSlotStyle, TransitionSpec, } from "./types";
|
|
1554
1558
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAEN,uBAAuB,EACvB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,UAAU,MAAM,uCAAuC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAEN,uBAAuB,EACvB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,UAAU,MAAM,uCAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiEy5C,CAAC;;;;;;;;;;;;;;;;;;AA9Dz9C,wBAgBE;AAEF,YAAY,EACX,yBAAyB,EACzB,+BAA+B,EAC/B,iCAAiC,GACjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,eAAe,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EACN,KAAK,WAAW,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,KAAK,qBAAqB,EAC1B,kBAAkB,GAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,KAAK,mBAAmB,EACxB,gBAAgB,GAChB,MAAM,sDAAsD,CAAC;AAE9D,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -3,8 +3,8 @@ import type { BaseStackDescriptor } from "../../../types/stack.types";
|
|
|
3
3
|
import type { DescriptorDerivations } from "./helpers/derive-descriptor-derivations";
|
|
4
4
|
/**
|
|
5
5
|
* Base descriptor interface - minimal contract for all stack types.
|
|
6
|
-
* This allows
|
|
7
|
-
*
|
|
6
|
+
* This allows stack implementations to work with the shared providers without
|
|
7
|
+
* tight coupling to React Navigation.
|
|
8
8
|
*/
|
|
9
9
|
export type BaseDescriptor = BaseStackDescriptor;
|
|
10
10
|
export interface DescriptorsContextValue<TDescriptor extends BaseDescriptor = BaseDescriptor> {
|
|
@@ -13,14 +13,22 @@ export interface DescriptorsContextValue<TDescriptor extends BaseDescriptor = Ba
|
|
|
13
13
|
next?: TDescriptor;
|
|
14
14
|
}
|
|
15
15
|
export type DescriptorDerivationsContextValue = DescriptorDerivations;
|
|
16
|
+
interface DescriptorStoreValue<TDescriptor extends BaseDescriptor = BaseDescriptor> {
|
|
17
|
+
descriptors: DescriptorsContextValue<TDescriptor>;
|
|
18
|
+
derivations: DescriptorDerivationsContextValue;
|
|
19
|
+
}
|
|
16
20
|
interface DescriptorsProviderProps<TDescriptor extends BaseDescriptor> {
|
|
17
21
|
children: ReactNode;
|
|
18
22
|
previous?: TDescriptor;
|
|
19
23
|
current: TDescriptor;
|
|
20
24
|
next?: TDescriptor;
|
|
21
25
|
}
|
|
26
|
+
declare const useDescriptorsStore: {
|
|
27
|
+
(): DescriptorStoreValue<BaseDescriptor>;
|
|
28
|
+
<Selected>(selector: (value: DescriptorStoreValue<BaseDescriptor>) => Selected): Selected;
|
|
29
|
+
};
|
|
22
30
|
export declare function DescriptorsProvider<TDescriptor extends BaseDescriptor>({ children, previous, current, next, }: DescriptorsProviderProps<TDescriptor>): import("react/jsx-runtime").JSX.Element;
|
|
23
31
|
export declare function useDescriptors<TDescriptor extends BaseDescriptor = BaseDescriptor>(): DescriptorsContextValue<TDescriptor>;
|
|
24
32
|
export declare function useDescriptorDerivations(): DescriptorDerivationsContextValue;
|
|
25
|
-
export {};
|
|
33
|
+
export { useDescriptorsStore };
|
|
26
34
|
//# sourceMappingURL=descriptors.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptors.provider.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/descriptors/descriptors.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,MAAM,WAAW,uBAAuB,CACvC,WAAW,SAAS,cAAc,GAAG,cAAc;IAEnD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AAEtE,UAAU,wBAAwB,CAAC,WAAW,SAAS,cAAc;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"descriptors.provider.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/descriptors/descriptors.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,MAAM,WAAW,uBAAuB,CACvC,WAAW,SAAS,cAAc,GAAG,cAAc;IAEnD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AAEtE,UAAU,oBAAoB,CAC7B,WAAW,SAAS,cAAc,GAAG,cAAc;IAEnD,WAAW,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAClD,WAAW,EAAE,iCAAiC,CAAC;CAC/C;AAED,UAAU,wBAAwB,CAAC,WAAW,SAAS,cAAc;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,QAAA,MAEC,mBAAmB;;;CAmClB,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,WAAW,SAAS,cAAc,EAAE,EACvE,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,GACJ,EAAE,wBAAwB,CAAC,WAAW,CAAC,2CASvC;AAED,wBAAgB,cAAc,CAC7B,WAAW,SAAS,cAAc,GAAG,cAAc,KAI9C,uBAAuB,CAAC,WAAW,CAAC,CACzC;AAED,wBAAgB,wBAAwB,IAAI,iCAAiC,CAE5E;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type BaseDescriptor, DescriptorsProvider, useDescriptorDerivations, useDescriptors, } from "./descriptors.provider";
|
|
1
|
+
export { type BaseDescriptor, DescriptorsProvider, useDescriptorDerivations, useDescriptors, useDescriptorsStore, } from "./descriptors.provider";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/descriptors/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/providers/screen/descriptors/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,GACnB,MAAM,wBAAwB,CAAC"}
|
package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-ownership.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/ownership/resolve-ownership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EAEjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEN,KAAK,kBAAkB,EAGvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;;GAGG;AACH,UAAU,qBAAqB;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC/B,UAAU,EAAE,iBAAiB,EAC7B,cAAc,EAAE,qBAAqB,GAAG,IAAI,GAC1C,kBAAkB,CAYpB;AA4BD;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,MAAM,GAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"resolve-ownership.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/ownership/resolve-ownership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EAEjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEN,KAAK,kBAAkB,EAGvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;;GAGG;AACH,UAAU,qBAAqB;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC/B,UAAU,EAAE,iBAAiB,EAC7B,cAAc,EAAE,qBAAqB,GAAG,IAAI,GAC1C,kBAAkB,CAYpB;AA4BD;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,MAAM,GAClB,OAAO,CAOT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GestureDimensions, PanGestureEvent, PanGestureRuntime, PanReleaseResult, PanTrackState } from "../types";
|
|
2
2
|
export declare const startPanBase: (runtime: PanGestureRuntime) => void;
|
|
3
3
|
export declare const trackPanGesture: (event: PanGestureEvent, rawEvent: PanGestureEvent, gestures: PanGestureRuntime["stores"]["gestures"], dimensions: GestureDimensions) => PanTrackState;
|
|
4
|
-
export declare const finalizePanRelease: (release: PanReleaseResult, runtime: PanGestureRuntime, dismissScreen: (() => void) | undefined, dimensions: GestureDimensions, rawEvent: PanGestureEvent) => void;
|
|
4
|
+
export declare const finalizePanRelease: (release: PanReleaseResult, runtime: PanGestureRuntime, dismissScreen: ((finished: boolean) => void) | undefined, dimensions: GestureDimensions, rawEvent: PanGestureEvent, requestDismiss?: () => void) => void;
|
|
5
5
|
//# sourceMappingURL=pan-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pan-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pan/pan-lifecycle.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,SA6BtD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,OAAO,eAAe,EACtB,UAAU,eAAe,EACzB,UAAU,iBAAiB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,EACjD,YAAY,iBAAiB,KAC3B,aAqCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC9B,SAAS,gBAAgB,EACzB,SAAS,iBAAiB,EAC1B,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"pan-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pan/pan-lifecycle.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,SA6BtD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,OAAO,eAAe,EACtB,UAAU,eAAe,EACzB,UAAU,iBAAiB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,EACjD,YAAY,iBAAiB,KAC3B,aAqCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC9B,SAAS,gBAAgB,EACzB,SAAS,iBAAiB,EAC1B,eAAe,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACxD,YAAY,iBAAiB,EAC7B,UAAU,eAAe,EACzB,iBAAiB,MAAM,IAAI,SAkD3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pan-behavior.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pan/use-pan-behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,KAAK,EACX,iBAAiB,EACjB,WAAW,EAEX,iBAAiB,EACjB,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,cAAc,GAC1B,SAAS,WAAW,CAAC,iBAAiB,CAAC,EACvC,eAAe,yBAAyB,EACxC,YAAY,iBAAiB,KAC3B,
|
|
1
|
+
{"version":3,"file":"use-pan-behavior.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pan/use-pan-behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,KAAK,EACX,iBAAiB,EACjB,WAAW,EAEX,iBAAiB,EACjB,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,cAAc,GAC1B,SAAS,WAAW,CAAC,iBAAiB,CAAC,EACvC,eAAe,yBAAyB,EACxC,YAAY,iBAAiB,KAC3B,WAwEF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PinchGestureEvent, PinchGestureRuntime, PinchReleaseResult, PinchTrackState } from "../types";
|
|
2
2
|
export declare const startPinchBase: (runtime: PinchGestureRuntime, event: PinchGestureEvent) => void;
|
|
3
3
|
export declare const trackPinchGesture: (event: PinchGestureEvent, rawEvent: PinchGestureEvent, gestures: PinchGestureRuntime["stores"]["gestures"]) => PinchTrackState;
|
|
4
|
-
export declare const finalizePinchRelease: (release: PinchReleaseResult, runtime: PinchGestureRuntime, dismissScreen: (() => void) | undefined) => void;
|
|
4
|
+
export declare const finalizePinchRelease: (release: PinchReleaseResult, runtime: PinchGestureRuntime, dismissScreen: ((finished: boolean) => void) | undefined, requestDismiss?: () => void) => void;
|
|
5
5
|
//# sourceMappingURL=pinch-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinch-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,cAAc,GAC1B,SAAS,mBAAmB,EAC5B,OAAO,iBAAiB,SA4BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC7B,OAAO,iBAAiB,EACxB,UAAU,iBAAiB,EAC3B,UAAU,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,KACjD,eAqBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAChC,SAAS,kBAAkB,EAC3B,SAAS,mBAAmB,EAC5B,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"pinch-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,cAAc,GAC1B,SAAS,mBAAmB,EAC5B,OAAO,iBAAiB,SA4BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC7B,OAAO,iBAAiB,EACxB,UAAU,iBAAiB,EAC3B,UAAU,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,KACjD,eAqBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAChC,SAAS,kBAAkB,EAC3B,SAAS,mBAAmB,EAC5B,eAAe,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACxD,iBAAiB,MAAM,IAAI,SAiC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pinch-behavior.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,KAAK,EACX,aAAa,EAEb,mBAAmB,EACnB,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,gBAAgB,GAC5B,SAAS,WAAW,CAAC,mBAAmB,CAAC,EACzC,eAAe,yBAAyB,KACtC,
|
|
1
|
+
{"version":3,"file":"use-pinch-behavior.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,KAAK,EACX,aAAa,EAEb,mBAAmB,EACnB,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,gBAAgB,GAC5B,SAAS,WAAW,CAAC,mBAAmB,CAAC,EACzC,eAAe,yBAAyB,KACtC,aAgEF,CAAC"}
|
package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-maybe-block-visibility.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-maybe-block-visibility.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,uBAAuB,GAAI,oBAAoB,OAAO;;;;;;;;;CA6ElE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EACX,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"direct.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/direct.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAWpC,OAAO,KAAK,EACX,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,0CAA0C,CAAC;AAkHlD,iBAAS,eAAe,CAAC,MAAM,SAAS,gBAAgB,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,GACrD,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAUlB;AAED,YAAY,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ManagedStackProps } from "../../../../../types/providers/managed-stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation } from "../../../../../types/stack.types";
|
|
3
|
+
import type { LocalRoutesState, ManagedDescriptorSources, ManagedRoutes } from "./types";
|
|
4
|
+
type BuildManagedStackStateParams<TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation> = {
|
|
5
|
+
props: ManagedStackProps<TDescriptor, TNavigation>;
|
|
6
|
+
routes: ManagedRoutes<TDescriptor>;
|
|
7
|
+
descriptors: ManagedDescriptorSources<TDescriptor>;
|
|
8
|
+
closingRouteKeys: ReadonlySet<string>;
|
|
9
|
+
previousState?: LocalRoutesState<TDescriptor>;
|
|
10
|
+
};
|
|
11
|
+
export declare const buildManagedStackState: <TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation>(params: BuildManagedStackStateParams<TDescriptor, TNavigation>) => LocalRoutesState<TDescriptor>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=build-managed-stack-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-managed-stack-state.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/helpers/build-managed-stack-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EAInB,MAAM,kCAAkC,CAAC;AAU1C,OAAO,KAAK,EACX,gBAAgB,EAChB,wBAAwB,EAExB,aAAa,EAEb,MAAM,SAAS,CAAC;AAEjB,KAAK,4BAA4B,CAChC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,IACpC;IACH,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACnD,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC9C,CAAC;AAyQF,eAAO,MAAM,sBAAsB,GAClC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,EAEvC,QAAQ,4BAA4B,CAAC,WAAW,EAAE,WAAW,CAAC,KAC5D,gBAAgB,CAAC,WAAW,CA+D9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ManagedStackProps } from "../../../../../types/providers/managed-stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation } from "../../../../../types/stack.types";
|
|
3
|
+
import type { LocalRoutesState, ManagedRoutes } from "./types";
|
|
4
|
+
type DeriveManagedStackStateParams<TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation> = {
|
|
5
|
+
props: ManagedStackProps<TDescriptor, TNavigation>;
|
|
6
|
+
current: LocalRoutesState<TDescriptor>;
|
|
7
|
+
previousRoutesSnapshot: ManagedRoutes<TDescriptor>;
|
|
8
|
+
closingRouteKeys: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare const deriveManagedStackState: <TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation>({ props, current, previousRoutesSnapshot, closingRouteKeys, }: DeriveManagedStackStateParams<TDescriptor, TNavigation>) => LocalRoutesState<TDescriptor>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=derive-managed-stack-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"derive-managed-stack-state.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/helpers/derive-managed-stack-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EAEnB,MAAM,kCAAkC,CAAC;AAU1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/D,KAAK,6BAA6B,CACjC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,IACpC;IACH,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACnD,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvC,sBAAsB,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAqBF,eAAO,MAAM,uBAAuB,GACnC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,EACtC,+DAKC,6BAA6B,CAC/B,WAAW,EACX,WAAW,CACX,KAAG,gBAAgB,CAAC,WAAW,CAuE/B,CAAC"}
|
package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseStackDescriptor, RouteWithKey, StackDescriptorSource } from "../../../../../types/stack.types";
|
|
2
|
+
import type { ManagedDescriptorSources } from "./types";
|
|
3
|
+
export declare const areDescriptorsEqual: <DescriptorMap extends Record<string, unknown>>(a: DescriptorMap, b: DescriptorMap) => boolean;
|
|
4
|
+
export declare const setsAreEqual: <T>(left: ReadonlySet<T>, right: ReadonlySet<T>) => boolean;
|
|
5
|
+
export declare const getRouteChildState: (route: RouteWithKey) => unknown;
|
|
6
|
+
export declare const getRouteChildStateMap: <Route extends RouteWithKey>(routes: Route[]) => Record<string, unknown>;
|
|
7
|
+
export declare const areRouteChildStateMapsEqual: (previous: Record<string, unknown>, next: Record<string, unknown>) => boolean;
|
|
8
|
+
export declare const areRecordsShallowEqual: (a: Record<string, unknown>, b: Record<string, unknown>) => boolean;
|
|
9
|
+
export declare const areDescriptorSourcesEquivalent: <TDescriptor extends BaseStackDescriptor>(previous: StackDescriptorSource<TDescriptor>, next: StackDescriptorSource<TDescriptor>) => boolean;
|
|
10
|
+
export declare const areDescriptorSourceMapsEquivalent: <TDescriptor extends BaseStackDescriptor>(previous: ManagedDescriptorSources<TDescriptor>, next: ManagedDescriptorSources<TDescriptor>) => boolean;
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/helpers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,mBAAmB,GAC/B,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAE7C,GAAG,aAAa,EAChB,GAAG,aAAa,KACd,OASF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,EAC7B,MAAM,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,WAAW,CAAC,CAAC,CAAC,YAarB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,KAAG,OAcxD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,SAAS,YAAY,EAC/D,QAAQ,KAAK,EAAE,KACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAQxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACvC,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,OASF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAClC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACxB,OASF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,WAAW,SAAS,mBAAmB,EAEvC,UAAU,qBAAqB,CAAC,WAAW,CAAC,EAC5C,MAAM,qBAAqB,CAAC,WAAW,CAAC,KACtC,OAYF,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC7C,WAAW,SAAS,mBAAmB,EAEvC,UAAU,wBAAwB,CAAC,WAAW,CAAC,EAC/C,MAAM,wBAAwB,CAAC,WAAW,CAAC,KACzC,OAkBF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseStackDescriptor } from "../../../../../types/stack.types";
|
|
2
|
+
import type { LocalRoutesState, ManagedDescriptorSources, ManagedRoutes, ReconciledRoutes } from "./types";
|
|
3
|
+
type ReconcileManagedRoutesParams<TDescriptor extends BaseStackDescriptor> = {
|
|
4
|
+
current: LocalRoutesState<TDescriptor>;
|
|
5
|
+
previousRoutesSnapshot: ManagedRoutes<TDescriptor>;
|
|
6
|
+
nextRoutesSnapshot: ManagedRoutes<TDescriptor>;
|
|
7
|
+
nextDescriptors: ManagedDescriptorSources<TDescriptor>;
|
|
8
|
+
closingRouteKeys: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare const reconcileManagedRoutes: <TDescriptor extends BaseStackDescriptor>(params: ReconcileManagedRoutesParams<TDescriptor>) => ReconciledRoutes<TDescriptor>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=reconcile-managed-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-managed-routes.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/helpers/reconcile-managed-routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EAEnB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,KAAK,EACX,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,MAAM,SAAS,CAAC;AAEjB,KAAK,4BAA4B,CAAC,WAAW,SAAS,mBAAmB,IAAI;IAC5E,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvC,sBAAsB,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnD,kBAAkB,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC/C,eAAe,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IACvD,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AA+HF,eAAO,MAAM,sBAAsB,GAAI,WAAW,SAAS,mBAAmB,EAC7E,QAAQ,4BAA4B,CAAC,WAAW,CAAC,KAC/C,gBAAgB,CAAC,WAAW,CAiD9B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ManagedStackProps } from "../../../../../types/providers/managed-stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, StackDescriptorSource } from "../../../../../types/stack.types";
|
|
3
|
+
export type ManagedRoutes<TDescriptor extends BaseStackDescriptor> = TDescriptor["route"][];
|
|
4
|
+
export type ManagedDescriptors<TDescriptor extends BaseStackDescriptor> = Record<string, TDescriptor>;
|
|
5
|
+
export type ManagedDescriptorSources<TDescriptor extends BaseStackDescriptor> = Record<string, StackDescriptorSource<TDescriptor>>;
|
|
6
|
+
export type LocalRoutesState<TDescriptor extends BaseStackDescriptor> = {
|
|
7
|
+
routes: ManagedRoutes<TDescriptor>;
|
|
8
|
+
descriptors: ManagedDescriptors<TDescriptor>;
|
|
9
|
+
sourceDescriptors: ManagedDescriptorSources<TDescriptor>;
|
|
10
|
+
focusedRouteKey?: string;
|
|
11
|
+
routeChildStates: Record<string, unknown>;
|
|
12
|
+
scenes: BaseStackScene<TDescriptor>[];
|
|
13
|
+
routeKeys: string[];
|
|
14
|
+
shouldShowFloatOverlay: boolean;
|
|
15
|
+
closingRouteKeys: ReadonlySet<string>;
|
|
16
|
+
};
|
|
17
|
+
export type ManagedStackControllerSnapshot<TDescriptor extends BaseStackDescriptor> = {
|
|
18
|
+
state: LocalRoutesState<TDescriptor>;
|
|
19
|
+
};
|
|
20
|
+
export type ManagedStackController<TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation> = {
|
|
21
|
+
subscribe: (listener: () => void) => () => void;
|
|
22
|
+
getSnapshot: () => ManagedStackControllerSnapshot<TDescriptor>;
|
|
23
|
+
update: (props: ManagedStackProps<TDescriptor, TNavigation>) => void;
|
|
24
|
+
handleCloseRoute: (payload: {
|
|
25
|
+
route: BaseStackRoute;
|
|
26
|
+
}) => void;
|
|
27
|
+
requestDismiss: (payload: {
|
|
28
|
+
route: BaseStackRoute;
|
|
29
|
+
}) => boolean;
|
|
30
|
+
};
|
|
31
|
+
export type ReconciledRoutes<TDescriptor extends BaseStackDescriptor> = {
|
|
32
|
+
routes: ManagedRoutes<TDescriptor>;
|
|
33
|
+
descriptors: ManagedDescriptorSources<TDescriptor>;
|
|
34
|
+
};
|
|
35
|
+
export type SceneActivityWindow = {
|
|
36
|
+
focusedIndex: number;
|
|
37
|
+
topIndex: number;
|
|
38
|
+
topIsClosing: boolean;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
package/lib/typescript/shared/providers/stack/helpers/managed-stack-state/helpers/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,aAAa,CAAC,WAAW,SAAS,mBAAmB,IAChE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;AAExB,MAAM,MAAM,kBAAkB,CAAC,WAAW,SAAS,mBAAmB,IACrE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAE7B,MAAM,MAAM,wBAAwB,CAAC,WAAW,SAAS,mBAAmB,IAC3E,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;AAEpD,MAAM,MAAM,gBAAgB,CAAC,WAAW,SAAS,mBAAmB,IAAI;IACvE,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC7C,iBAAiB,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,MAAM,EAAE,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC;IACtC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,sBAAsB,EAAE,OAAO,CAAC;IAChC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,8BAA8B,CACzC,WAAW,SAAS,mBAAmB,IACpC;IACH,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sBAAsB,CACjC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,IACpC;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,WAAW,EAAE,MAAM,8BAA8B,CAAC,WAAW,CAAC,CAAC;IAC/D,MAAM,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,KAAK,IAAI,CAAC;IACrE,gBAAgB,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,cAAc,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/D,cAAc,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,cAAc,CAAA;KAAE,KAAK,OAAO,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,WAAW,SAAS,mBAAmB,IAAI;IACvE,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACnC,WAAW,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ManagedStackProps } from "../../../../types/providers/managed-stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation } from "../../../../types/stack.types";
|
|
3
|
+
export declare const useManagedStackState: <TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation>(props: ManagedStackProps<TDescriptor, TNavigation>) => {
|
|
4
|
+
state: import("./helpers/types").LocalRoutesState<TDescriptor>;
|
|
5
|
+
handleCloseRoute: (payload: {
|
|
6
|
+
route: import("../../../../types").BaseStackRoute;
|
|
7
|
+
}) => void;
|
|
8
|
+
requestDismiss: (payload: {
|
|
9
|
+
route: import("../../../../types").BaseStackRoute;
|
|
10
|
+
}) => boolean;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,+BAA+B,CAAC;AAMvC,eAAO,MAAM,oBAAoB,GAChC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,EAEvC,OAAO,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC;;;;;;;;CAwBlD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ManagedStackProps } from "../../../../types/providers/managed-stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation } from "../../../../types/stack.types";
|
|
3
|
+
import type { ManagedStackController as ManagedStackControllerType } from "./helpers/types";
|
|
4
|
+
export type { ManagedStackController } from "./helpers/types";
|
|
5
|
+
/**
|
|
6
|
+
* Maintains the stack-local route snapshot used while managed transitions run.
|
|
7
|
+
*
|
|
8
|
+
* React Navigation remains the source of truth for settled routes, but it can
|
|
9
|
+
* remove descriptors before our close animation has finished. This controller
|
|
10
|
+
* keeps those closing routes locally until their lifecycle reports completion.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createManagedStackController: <TDescriptor extends BaseStackDescriptor, TNavigation extends BaseStackNavigation>(initialProps: ManagedStackProps<TDescriptor, TNavigation>) => ManagedStackControllerType<TDescriptor, TNavigation>;
|
|
13
|
+
//# sourceMappingURL=managed-stack-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-stack-controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/providers/stack/helpers/managed-stack-state/managed-stack-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EAEnB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAGX,sBAAsB,IAAI,0BAA0B,EACpD,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GACxC,WAAW,SAAS,mBAAmB,EACvC,WAAW,SAAS,mBAAmB,EAEvC,cAAc,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,KACvD,0BAA0B,CAAC,WAAW,EAAE,WAAW,CAkIrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/managed.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"managed.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/managed.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACX,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EAEvB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EACX,mBAAmB,EACnB,mBAAmB,EAEnB,MAAM,yBAAyB,CAAC;AASjC,iBAAS,sBAAsB,IAAI,wBAAwB,CAQ1D;AA+DD,iBAAS,gBAAgB,CACxB,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAC7D,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAE7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,GAClE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAevD;AAED,YAAY,EACX,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,GACvB,CAAC;AACF,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -3,6 +3,6 @@ export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, Scre
|
|
|
3
3
|
export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
4
4
|
export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, PanGestureDirection, PinchGestureDirection, SideActivation, } from "./gesture.types";
|
|
5
5
|
export type { OverlayProps } from "./overlay.types";
|
|
6
|
-
export type { GestureTracking, Layout, ScreenKey, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
|
|
7
|
-
export type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, DescriptorMap, } from "./stack.types";
|
|
6
|
+
export type { GestureTracking, InactiveBehavior, Layout, ScreenKey, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
|
|
7
|
+
export type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, DescriptorMap, StackDescriptorSource, StackSceneActivity, } from "./stack.types";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { SharedValue } from "react-native-reanimated";
|
|
2
1
|
import type { StackContextValue } from "../../hooks/navigation/use-stack";
|
|
3
|
-
import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState } from "../stack.types";
|
|
2
|
+
import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStackScene, BaseStackState, StackDescriptorSource } from "../stack.types";
|
|
4
3
|
/**
|
|
5
4
|
* Props for managed stack - generic over descriptor and navigation types.
|
|
6
5
|
* Defaults to base types for backward compatibility.
|
|
@@ -8,30 +7,25 @@ import type { BaseStackDescriptor, BaseStackNavigation, BaseStackRoute, BaseStac
|
|
|
8
7
|
export interface ManagedStackProps<TDescriptor extends BaseStackDescriptor = BaseStackDescriptor, TNavigation extends BaseStackNavigation = BaseStackNavigation> {
|
|
9
8
|
state: BaseStackState<TDescriptor["route"]>;
|
|
10
9
|
navigation: TNavigation;
|
|
11
|
-
descriptors: Record<string, TDescriptor
|
|
12
|
-
describe: (route: TDescriptor["route"], placeholder: boolean) => TDescriptor
|
|
10
|
+
descriptors: Record<string, StackDescriptorSource<TDescriptor>>;
|
|
11
|
+
describe: (route: TDescriptor["route"], placeholder: boolean) => StackDescriptorSource<TDescriptor>;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Context value for managed stack — only fields unique to managed lifecycle.
|
|
16
15
|
* Shared fields (routes, scenes, etc.) live in StackContext.
|
|
17
16
|
*/
|
|
18
17
|
export interface ManagedStackContextValue {
|
|
19
|
-
activeScreensLimit: number;
|
|
20
|
-
closingRouteKeysShared: SharedValue<string[]>;
|
|
21
18
|
handleCloseRoute: (payload: {
|
|
22
19
|
route: BaseStackRoute;
|
|
23
20
|
}) => void;
|
|
24
|
-
backdropBehaviors: string[];
|
|
25
21
|
}
|
|
26
22
|
/**
|
|
27
23
|
* Props passed to the render child of `withManagedStack`.
|
|
28
24
|
* Only the fields that stack-view components actually consume.
|
|
29
25
|
*/
|
|
30
26
|
export interface ManagedStackRenderProps<TDescriptor extends BaseStackDescriptor = BaseStackDescriptor> {
|
|
31
|
-
descriptors: Record<string, TDescriptor>;
|
|
32
27
|
scenes: BaseStackScene<TDescriptor>[];
|
|
33
28
|
focusedIndex: number;
|
|
34
|
-
closingRouteMap: React.RefObject<Readonly<Record<string, true>>>;
|
|
35
29
|
shouldShowFloatOverlay: boolean;
|
|
36
30
|
}
|
|
37
31
|
/**
|