expo-router 1.2.2 → 1.3.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.
Files changed (135) hide show
  1. package/_root.tsx +1 -1
  2. package/build/ExpoRoot.d.ts +6 -0
  3. package/build/ExpoRoot.d.ts.map +1 -0
  4. package/build/LocationProvider.d.ts +25 -0
  5. package/build/LocationProvider.d.ts.map +1 -0
  6. package/build/NavigationContainer.d.ts +8 -0
  7. package/build/NavigationContainer.d.ts.map +1 -0
  8. package/build/Route.d.ts +34 -0
  9. package/build/Route.d.ts.map +1 -0
  10. package/build/exports.d.ts +15 -0
  11. package/build/exports.d.ts.map +1 -0
  12. package/build/fork/NavigationContainer.d.ts +3 -0
  13. package/build/fork/NavigationContainer.d.ts.map +1 -0
  14. package/build/fork/NavigationContainer.native.d.ts +26 -0
  15. package/build/fork/NavigationContainer.native.d.ts.map +1 -0
  16. package/build/fork/expo/createRoot.d.ts +2 -0
  17. package/build/fork/expo/createRoot.d.ts.map +1 -0
  18. package/build/fork/expo/createRoot.native.d.ts +3 -0
  19. package/build/fork/expo/createRoot.native.d.ts.map +1 -0
  20. package/build/fork/expo/registerRootComponent.d.ts +16 -0
  21. package/build/fork/expo/registerRootComponent.d.ts.map +1 -0
  22. package/build/fork/extractPathFromURL.d.ts +2 -0
  23. package/build/fork/extractPathFromURL.d.ts.map +1 -0
  24. package/build/fork/getPathFromState.d.ts +50 -0
  25. package/build/fork/getPathFromState.d.ts.map +1 -0
  26. package/build/fork/getStateFromPath.d.ts +33 -0
  27. package/build/fork/getStateFromPath.d.ts.map +1 -0
  28. package/build/fork/useLinking.d.ts +3 -0
  29. package/build/fork/useLinking.d.ts.map +1 -0
  30. package/build/fork/useLinking.native.d.ts +49 -0
  31. package/build/fork/useLinking.native.d.ts.map +1 -0
  32. package/build/getDevServer/index.d.ts +7 -0
  33. package/build/getDevServer/index.d.ts.map +1 -0
  34. package/build/getDevServer/index.native.d.ts +2 -0
  35. package/build/getDevServer/index.native.d.ts.map +1 -0
  36. package/build/getLinkingConfig.d.ts +15 -0
  37. package/build/getLinkingConfig.d.ts.map +1 -0
  38. package/build/getRoutes.d.ts +33 -0
  39. package/build/getRoutes.d.ts.map +1 -0
  40. package/build/head/Head.d.ts +7 -0
  41. package/build/head/Head.d.ts.map +1 -0
  42. package/build/head/Head.native.d.ts +11 -0
  43. package/build/head/Head.native.d.ts.map +1 -0
  44. package/build/index.d.ts +4 -0
  45. package/build/index.d.ts.map +1 -0
  46. package/build/layouts/Drawer.d.ts +107 -0
  47. package/build/layouts/Drawer.d.ts.map +1 -0
  48. package/build/layouts/Stack.d.ts +107 -0
  49. package/build/layouts/Stack.d.ts.map +1 -0
  50. package/build/layouts/Tabs.d.ts +154 -0
  51. package/build/layouts/Tabs.d.ts.map +1 -0
  52. package/build/layouts/withLayoutContext.d.ts +16 -0
  53. package/build/layouts/withLayoutContext.d.ts.map +1 -0
  54. package/build/link/Link.d.ts +33 -0
  55. package/build/link/Link.d.ts.map +1 -0
  56. package/build/link/href.d.ts +10 -0
  57. package/build/link/href.d.ts.map +1 -0
  58. package/build/link/linking.d.ts +7 -0
  59. package/build/link/linking.d.ts.map +1 -0
  60. package/build/link/path.d.ts +2 -0
  61. package/build/link/path.d.ts.map +1 -0
  62. package/build/link/stateOperations.d.ts +81 -0
  63. package/build/link/stateOperations.d.ts.map +1 -0
  64. package/build/link/useHref.d.ts +10 -0
  65. package/build/link/useHref.d.ts.map +1 -0
  66. package/build/link/useLinkToPath.d.ts +6 -0
  67. package/build/link/useLinkToPath.d.ts.map +1 -0
  68. package/build/link/useLinkToPathProps.d.ts +11 -0
  69. package/build/link/useLinkToPathProps.d.ts.map +1 -0
  70. package/build/link/useLinkingContext.d.ts +7 -0
  71. package/build/link/useLinkingContext.d.ts.map +1 -0
  72. package/build/link/useLoadedNavigation.d.ts +7 -0
  73. package/build/link/useLoadedNavigation.d.ts.map +1 -0
  74. package/build/link/useRouter.d.ts +15 -0
  75. package/build/link/useRouter.d.ts.map +1 -0
  76. package/build/matchers.d.ts +12 -0
  77. package/build/matchers.d.ts.map +1 -0
  78. package/build/onboard/Tutorial.d.ts +3 -0
  79. package/build/onboard/Tutorial.d.ts.map +1 -0
  80. package/build/onboard/createEntryFile.d.ts +3 -0
  81. package/build/onboard/createEntryFile.d.ts.map +1 -0
  82. package/build/onboard/useTutorial.d.ts +4 -0
  83. package/build/onboard/useTutorial.d.ts.map +1 -0
  84. package/build/primitives.d.ts +19 -0
  85. package/build/primitives.d.ts.map +1 -0
  86. package/build/renderRootComponent.d.ts +7 -0
  87. package/build/renderRootComponent.d.ts.map +1 -0
  88. package/build/static/renderStaticContent.d.ts +8 -0
  89. package/build/static/renderStaticContent.d.ts.map +1 -0
  90. package/build/static/useServerState.d.ts +42 -0
  91. package/build/static/useServerState.d.ts.map +1 -0
  92. package/build/static/useServerState.native.d.ts +2 -0
  93. package/build/static/useServerState.native.d.ts.map +1 -0
  94. package/build/types.d.ts +13 -0
  95. package/build/types.d.ts.map +1 -0
  96. package/build/useFocusEffect.d.ts +11 -0
  97. package/build/useFocusEffect.d.ts.map +1 -0
  98. package/build/useInitialRootState.d.ts +42 -0
  99. package/build/useInitialRootState.d.ts.map +1 -0
  100. package/build/useInitialRootState.native.d.ts +3 -0
  101. package/build/useInitialRootState.native.d.ts.map +1 -0
  102. package/build/useInitialRootStateContext.d.ts +13 -0
  103. package/build/useInitialRootStateContext.d.ts.map +1 -0
  104. package/build/useNavigation.d.ts +9 -0
  105. package/build/useNavigation.d.ts.map +1 -0
  106. package/build/useRootNavigation.d.ts +9 -0
  107. package/build/useRootNavigation.d.ts.map +1 -0
  108. package/build/useRootRouteNodeContext.d.ts +11 -0
  109. package/build/useRootRouteNodeContext.d.ts.map +1 -0
  110. package/build/useScreens.d.ts +27 -0
  111. package/build/useScreens.d.ts.map +1 -0
  112. package/build/utils/mockState.d.ts +11 -0
  113. package/build/utils/mockState.d.ts.map +1 -0
  114. package/build/views/ErrorBoundary.d.ts +4 -0
  115. package/build/views/ErrorBoundary.d.ts.map +1 -0
  116. package/build/views/Navigator.d.ts +280 -0
  117. package/build/views/Navigator.d.ts.map +1 -0
  118. package/build/views/Screen.d.ts +19 -0
  119. package/build/views/Screen.d.ts.map +1 -0
  120. package/build/views/Sitemap.d.ts +5 -0
  121. package/build/views/Sitemap.d.ts.map +1 -0
  122. package/build/views/Splash.d.ts +26 -0
  123. package/build/views/Splash.d.ts.map +1 -0
  124. package/build/views/Try.d.ts +24 -0
  125. package/build/views/Try.d.ts.map +1 -0
  126. package/build/views/Unmatched.d.ts +4 -0
  127. package/build/views/Unmatched.d.ts.map +1 -0
  128. package/package.json +6 -5
  129. package/src/fork/getStateFromPath.ts +1 -2
  130. package/src/link/Link.tsx +12 -7
  131. package/src/link/href.ts +2 -2
  132. package/src/link/stateOperations.ts +22 -14
  133. package/src/link/useLinkToPath.ts +3 -7
  134. package/src/ts-declarations.d.ts +1 -0
  135. package/src/useFocusEffect.tsx +1 -1
@@ -0,0 +1,107 @@
1
+ /// <reference types="react" />
2
+ import { NativeStackNavigationOptions } from "@react-navigation/native-stack";
3
+ export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
4
+ id?: string | undefined;
5
+ children: import("react").ReactNode;
6
+ screenListeners?: Partial<{
7
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
8
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
9
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
10
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
11
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
12
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
13
+ }> | ((props: {
14
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
15
+ navigation: any;
16
+ }) => Partial<{
17
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
18
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
19
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
20
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
21
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
22
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
23
+ }>) | undefined;
24
+ screenOptions?: NativeStackNavigationOptions | ((props: {
25
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
26
+ navigation: any;
27
+ }) => NativeStackNavigationOptions) | undefined;
28
+ } & import("@react-navigation/routers").StackRouterOptions, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
29
+ id?: string | undefined;
30
+ children: import("react").ReactNode;
31
+ screenListeners?: Partial<{
32
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
33
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
34
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
35
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
36
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
37
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
38
+ }> | ((props: {
39
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
40
+ navigation: any;
41
+ }) => Partial<{
42
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
43
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
44
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
45
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
46
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
47
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
48
+ }>) | undefined;
49
+ screenOptions?: NativeStackNavigationOptions | ((props: {
50
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
51
+ navigation: any;
52
+ }) => NativeStackNavigationOptions) | undefined;
53
+ }, "children"> & Partial<Pick<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
54
+ id?: string | undefined;
55
+ children: import("react").ReactNode;
56
+ screenListeners?: Partial<{
57
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
58
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
59
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
60
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
61
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
62
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
63
+ }> | ((props: {
64
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
65
+ navigation: any;
66
+ }) => Partial<{
67
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
68
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
69
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
70
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
71
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
72
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
73
+ }>) | undefined;
74
+ screenOptions?: NativeStackNavigationOptions | ((props: {
75
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
76
+ navigation: any;
77
+ }) => NativeStackNavigationOptions) | undefined;
78
+ } & import("@react-navigation/routers").StackRouterOptions, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
79
+ id?: string | undefined;
80
+ children: import("react").ReactNode;
81
+ screenListeners?: Partial<{
82
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
83
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
84
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
85
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
86
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
87
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
88
+ }> | ((props: {
89
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
90
+ navigation: any;
91
+ }) => Partial<{
92
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
93
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
94
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
95
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
96
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
97
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
98
+ }>) | undefined;
99
+ screenOptions?: NativeStackNavigationOptions | ((props: {
100
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
101
+ navigation: any;
102
+ }) => NativeStackNavigationOptions) | undefined;
103
+ }, "children">> & import("react").RefAttributes<unknown>> & {
104
+ Screen: (props: import("../useScreens").ScreenProps<NativeStackNavigationOptions>) => null;
105
+ };
106
+ export default Stack;
107
+ //# sourceMappingURL=Stack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../src/layouts/Stack.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAMxC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGK,CAAC;AAExB,eAAe,KAAK,CAAC"}
@@ -0,0 +1,154 @@
1
+ import { BottomTabNavigationOptions } from "@react-navigation/bottom-tabs";
2
+ import React from "react";
3
+ import { Href } from "../link/href";
4
+ export declare const Tabs: React.ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
5
+ id?: string | undefined;
6
+ children: React.ReactNode;
7
+ screenListeners?: Partial<{
8
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
9
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
10
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
11
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
12
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
13
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
14
+ }> | ((props: {
15
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
16
+ navigation: any;
17
+ }) => Partial<{
18
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
19
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
20
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
21
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
22
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
23
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
24
+ }>) | undefined;
25
+ screenOptions?: BottomTabNavigationOptions | ((props: {
26
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
27
+ navigation: any;
28
+ }) => BottomTabNavigationOptions) | undefined;
29
+ } & import("@react-navigation/routers").DefaultRouterOptions & {
30
+ backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
31
+ } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
32
+ id?: string | undefined;
33
+ children: React.ReactNode;
34
+ screenListeners?: Partial<{
35
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
36
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
37
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
38
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
39
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
40
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
41
+ }> | ((props: {
42
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
43
+ navigation: any;
44
+ }) => Partial<{
45
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
46
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
47
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
48
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
49
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
50
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
51
+ }>) | undefined;
52
+ screenOptions?: BottomTabNavigationOptions | ((props: {
53
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
54
+ navigation: any;
55
+ }) => BottomTabNavigationOptions) | undefined;
56
+ }, "children"> & Partial<Pick<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
57
+ id?: string | undefined;
58
+ children: React.ReactNode;
59
+ screenListeners?: Partial<{
60
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
61
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
62
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
63
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
64
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
65
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
66
+ }> | ((props: {
67
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
68
+ navigation: any;
69
+ }) => Partial<{
70
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
71
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
72
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
73
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
74
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
75
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
76
+ }>) | undefined;
77
+ screenOptions?: BottomTabNavigationOptions | ((props: {
78
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
79
+ navigation: any;
80
+ }) => BottomTabNavigationOptions) | undefined;
81
+ } & import("@react-navigation/routers").DefaultRouterOptions & {
82
+ backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
83
+ } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
84
+ id?: string | undefined;
85
+ children: React.ReactNode;
86
+ screenListeners?: Partial<{
87
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
88
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
89
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
90
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
91
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
92
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
93
+ }> | ((props: {
94
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
95
+ navigation: any;
96
+ }) => Partial<{
97
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
98
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
99
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
100
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
101
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
102
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
103
+ }>) | undefined;
104
+ screenOptions?: BottomTabNavigationOptions | ((props: {
105
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
106
+ navigation: any;
107
+ }) => BottomTabNavigationOptions) | undefined;
108
+ }, "children">> & React.RefAttributes<unknown>> & {
109
+ Screen: (props: import("../useScreens").ScreenProps<import("@react-navigation/elements").HeaderOptions & {
110
+ title?: string | undefined;
111
+ tabBarLabel?: string | ((props: {
112
+ focused: boolean;
113
+ color: string;
114
+ position: import("@react-navigation/bottom-tabs/lib/typescript/src/types").LabelPosition;
115
+ children: string;
116
+ }) => React.ReactNode) | undefined;
117
+ tabBarShowLabel?: boolean | undefined;
118
+ tabBarLabelPosition?: import("@react-navigation/bottom-tabs/lib/typescript/src/types").LabelPosition | undefined;
119
+ tabBarLabelStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
120
+ tabBarAllowFontScaling?: boolean | undefined;
121
+ tabBarIcon?: ((props: {
122
+ focused: boolean;
123
+ color: string;
124
+ size: number;
125
+ }) => React.ReactNode) | undefined;
126
+ tabBarIconStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
127
+ tabBarBadge?: string | number | undefined;
128
+ tabBarBadgeStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
129
+ tabBarAccessibilityLabel?: string | undefined;
130
+ tabBarTestID?: string | undefined;
131
+ tabBarButton?: ((props: import("@react-navigation/bottom-tabs").BottomTabBarButtonProps) => React.ReactNode) | undefined;
132
+ tabBarActiveTintColor?: string | undefined;
133
+ tabBarInactiveTintColor?: string | undefined;
134
+ tabBarActiveBackgroundColor?: string | undefined;
135
+ tabBarInactiveBackgroundColor?: string | undefined;
136
+ tabBarItemStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
137
+ tabBarHideOnKeyboard?: boolean | undefined;
138
+ tabBarVisibilityAnimationConfig?: {
139
+ show?: import("@react-navigation/bottom-tabs/lib/typescript/src/types").TabBarVisibilityAnimationConfig | undefined;
140
+ hide?: import("@react-navigation/bottom-tabs/lib/typescript/src/types").TabBarVisibilityAnimationConfig | undefined;
141
+ } | undefined;
142
+ tabBarStyle?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation<string | number> | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").Falsy | import("react-native").ViewStyle | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").Falsy | import("react-native").ViewStyle | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").Falsy | import("react-native").ViewStyle | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
143
+ tabBarBackground?: (() => React.ReactNode) | undefined;
144
+ lazy?: boolean | undefined;
145
+ header?: ((props: import("@react-navigation/bottom-tabs").BottomTabHeaderProps) => React.ReactNode) | undefined;
146
+ headerShown?: boolean | undefined;
147
+ unmountOnBlur?: boolean | undefined;
148
+ freezeOnBlur?: boolean | undefined;
149
+ } & {
150
+ href?: Href | null | undefined;
151
+ }>) => null;
152
+ };
153
+ export default Tabs;
154
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/layouts/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAE3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKpC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Cf,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { PickPartial } from "../types";
3
+ import { ScreenProps } from "../useScreens";
4
+ export declare function useFilterScreenChildren(children: React.ReactNode, { isCustomNavigator, contextKey, }?: {
5
+ isCustomNavigator?: boolean;
6
+ /** Used for sending developer hints */
7
+ contextKey?: string;
8
+ }): {
9
+ screens: any[] | null | undefined;
10
+ children: any[];
11
+ };
12
+ /** Return a navigator that automatically injects matched routes and renders nothing when there are no children. Return type with children prop optional */
13
+ export declare function withLayoutContext<TOptions extends object, T extends React.ComponentType<any>>(Nav: T, processor?: (options: ScreenProps<TOptions>[]) => ScreenProps<TOptions>[]): React.ForwardRefExoticComponent<React.PropsWithoutRef<PickPartial<React.ComponentProps<T>, "children">> & React.RefAttributes<unknown>> & {
14
+ Screen: (props: ScreenProps<TOptions>) => null;
15
+ };
16
+ //# sourceMappingURL=withLayoutContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withLayoutContext.d.ts","sourceRoot":"","sources":["../../src/layouts/withLayoutContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAC;AAG9D,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,EACE,iBAAiB,EACjB,UAAU,GACX,GAAE;IACD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChB;;;EAgDP;AAED,2JAA2J;AAC3J,wBAAgB,iBAAiB,CAC/B,QAAQ,SAAS,MAAM,EACvB,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAElC,GAAG,EAAE,CAAC,EACN,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,KAAK,WAAW,CAAC,QAAQ,CAAC,EAAE,GACxE,KAAK,CAAC,yBAAyB,CAChC,KAAK,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,GACrE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAC/B,GAAG;IACF,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;CAChD,CAmCA"}
@@ -0,0 +1,33 @@
1
+ import { TextProps } from "@bacons/react-views";
2
+ import * as React from "react";
3
+ import { GestureResponderEvent } from "react-native";
4
+ import { Href, resolveHref } from "./href";
5
+ export interface LinkProps extends Omit<TextProps, "href" | "hoverStyle"> {
6
+ /** Path to route to. */
7
+ href: Href;
8
+ /** Forward props to child component. Useful for custom buttons. */
9
+ asChild?: boolean;
10
+ /** Should replace the current route without adding to the history. */
11
+ replace?: boolean;
12
+ onPress?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
13
+ }
14
+ /** Redirects to the href as soon as the component is mounted. */
15
+ export declare function Redirect({ href }: {
16
+ href: Href;
17
+ }): null;
18
+ export interface LinkComponent {
19
+ (props: React.PropsWithChildren<LinkProps>): JSX.Element;
20
+ /** Helper method to resolve an Href object into a string. */
21
+ resolveHref: typeof resolveHref;
22
+ }
23
+ /**
24
+ * Component to render link to another route using a path.
25
+ * Uses an anchor tag on the web.
26
+ *
27
+ * @param props.href Absolute path to route (e.g. `/feeds/hot`).
28
+ * @param props.replace Should replace the current route without adding to the history.
29
+ * @param props.asChild Forward props to child component. Useful for custom buttons.
30
+ * @param props.children Child elements to render the content.
31
+ */
32
+ export declare const Link: LinkComponent;
33
+ //# sourceMappingURL=Link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAK3C,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC;IACvE,wBAAwB;IACxB,IAAI,EAAE,IAAI,CAAC;IAGX,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,CACR,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB,KACvE,IAAI,CAAC;CACX;AAED,iEAAiE;AACjE,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,QAMhD;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;IACzD,6DAA6D;IAC7D,WAAW,EAAE,OAAO,WAAW,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,eAEY,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type Href = string | HrefObject;
2
+ export interface HrefObject {
3
+ /** Path representing the selected route `/[id]`. */
4
+ pathname?: string;
5
+ /** Query parameters for the path. */
6
+ params?: Record<string, any>;
7
+ }
8
+ /** Resolve an href object into a fully qualified, relative href. */
9
+ export declare const resolveHref: (href: Href) => string;
10
+ //# sourceMappingURL=href.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"href.d.ts","sourceRoot":"","sources":["../../src/link/href.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC;AAEvC,MAAM,WAAW,UAAU;IACzB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,oEAAoE;AACpE,eAAO,MAAM,WAAW,SAAU,IAAI,KAAG,MAexC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import getPathFromState from "../fork/getPathFromState";
2
+ import getStateFromPath from "../fork/getStateFromPath";
3
+ export declare function getInitialURL(): Promise<string>;
4
+ export declare function getRootURL(): string;
5
+ export declare function addEventListener(listener: (url: string) => void): () => void;
6
+ export { getStateFromPath, getPathFromState };
7
+ //# sourceMappingURL=linking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linking.d.ts","sourceRoot":"","sources":["../../src/link/linking.ts"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AAOxD,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAqCrD;AAID,wBAAgB,UAAU,IAAI,MAAM,CAKnC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,cAwB/D;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function resolve(...segments: string[]): string;
2
+ //# sourceMappingURL=path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/link/path.ts"],"names":[],"mappings":"AAoGA,wBAAgB,OAAO,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,UAwC5C"}
@@ -0,0 +1,81 @@
1
+ import { InitialState, NavigationState, ParamListBase, getActionFromState } from "@react-navigation/native";
2
+ import { ResultState } from "../fork/getStateFromPath";
3
+ export type NavigateAction = Extract<ReturnType<typeof getActionFromState>, {
4
+ type: "NAVIGATE";
5
+ }> & {
6
+ payload: NavigateActionParams;
7
+ };
8
+ export type NavigateActionParams = {
9
+ params?: NavigateActionParams;
10
+ path: string;
11
+ initial: boolean;
12
+ screen: string;
13
+ name?: string;
14
+ };
15
+ /** Return the absolute last route to move to. */
16
+ export declare function findTopRouteForTarget(state: ResultState): Omit<import("@react-navigation/native").Route<string, object | undefined>, "key"> & {
17
+ state?: Readonly<Partial<Omit<Readonly<{
18
+ key: string;
19
+ index: number;
20
+ routeNames: string[];
21
+ history?: unknown[] | undefined;
22
+ routes: (Readonly<{
23
+ key: string;
24
+ name: string;
25
+ path?: string | undefined;
26
+ }> & Readonly<{
27
+ params?: Readonly<object | undefined>;
28
+ }> & {
29
+ state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
30
+ })[];
31
+ type: string;
32
+ stale: false;
33
+ }>, "stale" | "routes">> & {
34
+ routes: (Omit<import("@react-navigation/native").Route<string, object | undefined>, "key"> & any)[];
35
+ }> | undefined;
36
+ };
37
+ /** @returns true if moving to a sibling inside the same navigator. */
38
+ export declare function isMovingToSiblingRoute(rootState: InitialState, targetState: ResultState): boolean;
39
+ export declare function getQualifiedStateForTopOfTargetState(rootState: InitialState, targetState: ResultState): Readonly<Partial<Omit<Readonly<{
40
+ key: string;
41
+ index: number;
42
+ routeNames: string[];
43
+ history?: unknown[] | undefined;
44
+ routes: (Readonly<{
45
+ key: string;
46
+ name: string;
47
+ path?: string | undefined;
48
+ }> & Readonly<{
49
+ params?: Readonly<object | undefined>;
50
+ }> & {
51
+ state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
52
+ })[];
53
+ type: string;
54
+ stale: false;
55
+ }>, "stale" | "routes">> & {
56
+ routes: (Omit<import("@react-navigation/native").Route<string, object | undefined>, "key"> & {
57
+ state?: Readonly<Partial<Omit<Readonly<{
58
+ key: string;
59
+ index: number;
60
+ routeNames: string[];
61
+ history?: unknown[] | undefined;
62
+ routes: (Readonly<{
63
+ key: string;
64
+ name: string;
65
+ path?: string | undefined;
66
+ }> & Readonly<{
67
+ params?: Readonly<object | undefined>;
68
+ }> & {
69
+ state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
70
+ })[];
71
+ type: string;
72
+ stale: false;
73
+ }>, "stale" | "routes">> & any> | undefined;
74
+ })[];
75
+ }>;
76
+ export declare function getEarliestMismatchedRoute<T extends ParamListBase>(rootState: NavigationState<T> | undefined, actionParams: NavigateActionParams): {
77
+ name: string;
78
+ params?: any;
79
+ type?: string;
80
+ } | null;
81
+ //# sourceMappingURL=stateOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stateOperations.d.ts","sourceRoot":"","sources":["../../src/link/stateOperations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,UAAU,CAAC,OAAO,kBAAkB,CAAC,EACrC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CACrB,GAAG;IACF,OAAO,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,iDAAiD;AACjD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;EAIvD;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,WAAW,GACvB,OAAO,CA8BT;AAKD,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBzB;AAKD,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,aAAa,EAChE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACzC,YAAY,EAAE,oBAAoB,GACjC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgCtD"}
@@ -0,0 +1,10 @@
1
+ import { HrefObject } from "./href";
2
+ /** @deprecated */
3
+ type RouteInfo = Omit<Required<HrefObject>, "query"> & {
4
+ /** Normalized path representing the selected route `/[id]?id=normal` -> `/normal` */
5
+ href: string;
6
+ };
7
+ /** @deprecated */
8
+ export declare function useHref(): RouteInfo;
9
+ export {};
10
+ //# sourceMappingURL=useHref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHref.d.ts","sourceRoot":"","sources":["../../src/link/useHref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,kBAAkB;AAClB,KAAK,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,GAAG;IACrD,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,kBAAkB;AAClB,wBAAgB,OAAO,IAAI,SAAS,CAUnC"}
@@ -0,0 +1,6 @@
1
+ import { getActionFromState } from "@react-navigation/core";
2
+ import { NavigateAction } from "./stateOperations";
3
+ export declare function useLinkToPath(): (href: string, event?: string) => void;
4
+ /** @returns `true` if the action is moving to the first screen of all the navigators in the action. */
5
+ export declare function isAbsoluteInitialRoute(action: ReturnType<typeof getActionFromState>): action is NavigateAction;
6
+ //# sourceMappingURL=useLinkToPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkToPath.d.ts","sourceRoot":"","sources":["../../src/link/useLinkToPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAGnB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAKL,cAAc,EACf,MAAM,mBAAmB,CAAC;AAe3B,wBAAgB,aAAa,WAKlB,MAAM,UAAU,MAAM,UAmHhC;AAED,uGAAuG;AACvG,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAC5C,MAAM,IAAI,cAAc,CAqB1B"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { GestureResponderEvent } from "react-native";
3
+ export default function useLinkToPathProps(props: {
4
+ href: string;
5
+ replace?: boolean;
6
+ }): {
7
+ href: string;
8
+ accessibilityRole: "link";
9
+ onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
10
+ };
11
+ //# sourceMappingURL=useLinkToPathProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkToPathProps.d.ts","sourceRoot":"","sources":["../../src/link/useLinkToPathProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAY,MAAM,cAAc,CAAC;AA6B/D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;kBAIO,gBAAgB,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB;EAqB9E"}
@@ -0,0 +1,7 @@
1
+ import { LinkingOptions, ParamListBase } from "@react-navigation/native";
2
+ import getPathFromState from "../fork/getPathFromState";
3
+ export type RouterLinkingContext = Required<Omit<LinkingOptions<ParamListBase>, "filter" | "enabled">> & {
4
+ getPathFromState: typeof getPathFromState;
5
+ };
6
+ export declare function useLinkingContext(): RouterLinkingContext;
7
+ //# sourceMappingURL=useLinkingContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkingContext.d.ts","sourceRoot":"","sources":["../../src/link/useLinkingContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,aAAa,EACd,MAAM,0BAA0B,CAAC;AAGlC,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAC1D,GAAG;IACF,gBAAgB,EAAE,OAAO,gBAAgB,CAAC;CAC3C,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,oBAAoB,CAQxD"}
@@ -0,0 +1,7 @@
1
+ import { NavigationProp } from "@react-navigation/native";
2
+ type GenericNavigation = NavigationProp<ReactNavigation.RootParamList>;
3
+ /** Returns a callback which is invoked when the navigation state has loaded. */
4
+ export declare function useLoadedNavigation(): (fn: (navigation: GenericNavigation) => void) => void;
5
+ export declare function useOptionalNavigation(): GenericNavigation | null;
6
+ export {};
7
+ //# sourceMappingURL=useLoadedNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLoadedNavigation.d.ts","sourceRoot":"","sources":["../../src/link/useLoadedNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiB,MAAM,0BAA0B,CAAC;AAKzE,KAAK,iBAAiB,GAAG,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;AAEvE,gFAAgF;AAChF,wBAAgB,mBAAmB,sBA8Bb,iBAAiB,KAAK,IAAI,UAU/C;AAED,wBAAgB,qBAAqB,IAAI,iBAAiB,GAAG,IAAI,CAShE"}
@@ -0,0 +1,15 @@
1
+ import { Href } from "./href";
2
+ export declare function useLink(): Router;
3
+ type Router = {
4
+ /** Navigate to the provided href. */
5
+ push: (href: Href) => void;
6
+ /** Navigate to route without appending to the history. */
7
+ replace: (href: Href) => void;
8
+ /** Go back in the history. */
9
+ back: () => void;
10
+ /** Update the current route query params. */
11
+ setParams: (params?: Record<string, string>) => void;
12
+ };
13
+ export declare function useRouter(): Router;
14
+ export {};
15
+ //# sourceMappingURL=useRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRouter.d.ts","sourceRoot":"","sources":["../../src/link/useRouter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAe,MAAM,QAAQ,CAAC;AAM3C,wBAAgB,OAAO,WAGtB;AAED,KAAK,MAAM,GAAG;IACZ,qCAAqC;IACrC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC3B,0DAA0D;IAC1D,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,6CAA6C;IAC7C,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,IAAI,MAAM,CA+BlC"}
@@ -0,0 +1,12 @@
1
+ /** Match `[page]` -> `page` */
2
+ export declare function matchDynamicName(name: string): string | undefined;
3
+ /** Match `[...page]` -> `page` */
4
+ export declare function matchDeepDynamicRouteName(name: string): string | undefined;
5
+ /** Match `(page)` -> `page` */
6
+ export declare function matchGroupName(name: string): string | undefined;
7
+ export declare function getNameFromFilePath(name: string): string;
8
+ export declare function getContextKey(name: string): string;
9
+ /** Remove `.js`, `.ts`, `.jsx`, `.tsx` */
10
+ export declare function removeSupportedExtensions(name: string): string;
11
+ export declare function stripGroupSegmentsFromPath(path: string): string;
12
+ //# sourceMappingURL=matchers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchers.d.ts","sourceRoot":"","sources":["../src/matchers.tsx"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIjE;AAED,kCAAkC;AAClC,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED,+BAA+B;AAC/B,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE/D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD;AAED,0CAA0C;AAC1C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D;AAOD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU/D"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare function Tutorial(): JSX.Element;
3
+ //# sourceMappingURL=Tutorial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tutorial.d.ts","sourceRoot":"","sources":["../../src/onboard/Tutorial.tsx"],"names":[],"mappings":";AAqCA,wBAAgB,QAAQ,gBAwCvB"}
@@ -0,0 +1,3 @@
1
+ /** Middleware for creating an entry file in the project. */
2
+ export declare function createEntryFileAsync(): Promise<Response> | undefined;
3
+ //# sourceMappingURL=createEntryFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEntryFile.d.ts","sourceRoot":"","sources":["../../src/onboard/createEntryFile.ts"],"names":[],"mappings":"AAEA,4DAA4D;AAC5D,wBAAgB,oBAAoB,kCAenC"}
@@ -0,0 +1,4 @@
1
+ import { RequireContext } from "../types";
2
+ /** Returns the Tutorial component if there are no React components exported as default from any files in the provided context module. */
3
+ export declare function useTutorial(context: RequireContext): any;
4
+ //# sourceMappingURL=useTutorial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTutorial.d.ts","sourceRoot":"","sources":["../../src/onboard/useTutorial.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAa1C,yIAAyI;AACzI,wBAAgB,WAAW,CAAC,OAAO,EAAE,cAAc,OAwBlD"}