expo-router 3.1.2 → 3.2.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 (127) hide show
  1. package/build/ExpoRoot.d.ts.map +1 -1
  2. package/build/ExpoRoot.js +57 -15
  3. package/build/ExpoRoot.js.map +1 -1
  4. package/build/LocationProvider.d.ts +3 -2
  5. package/build/LocationProvider.d.ts.map +1 -1
  6. package/build/LocationProvider.js +17 -5
  7. package/build/LocationProvider.js.map +1 -1
  8. package/build/Route.d.ts +1 -0
  9. package/build/Route.d.ts.map +1 -1
  10. package/build/Route.js +1 -1
  11. package/build/Route.js.map +1 -1
  12. package/build/fork/NavigationContainer.native.js +5 -3
  13. package/build/fork/NavigationContainer.native.js.map +1 -1
  14. package/build/fork/extractPathFromURL.d.ts.map +1 -1
  15. package/build/fork/extractPathFromURL.js +17 -16
  16. package/build/fork/extractPathFromURL.js.map +1 -1
  17. package/build/fork/getPathFromState.d.ts +1 -1
  18. package/build/fork/getPathFromState.d.ts.map +1 -1
  19. package/build/fork/getPathFromState.js +10 -35
  20. package/build/fork/getPathFromState.js.map +1 -1
  21. package/build/fork/getStateFromPath.d.ts +2 -2
  22. package/build/fork/getStateFromPath.d.ts.map +1 -1
  23. package/build/fork/getStateFromPath.js +59 -48
  24. package/build/fork/getStateFromPath.js.map +1 -1
  25. package/build/getDevServer/index.d.ts +0 -3
  26. package/build/getDevServer/index.d.ts.map +1 -1
  27. package/build/getDevServer/index.js +1 -28
  28. package/build/getDevServer/index.js.map +1 -1
  29. package/build/getReactNavigationConfig.d.ts.map +1 -1
  30. package/build/getReactNavigationConfig.js +3 -0
  31. package/build/getReactNavigationConfig.js.map +1 -1
  32. package/build/getRoutes.d.ts +1 -2
  33. package/build/getRoutes.d.ts.map +1 -1
  34. package/build/getRoutes.js +51 -49
  35. package/build/getRoutes.js.map +1 -1
  36. package/build/getServerManifest.d.ts +4 -0
  37. package/build/getServerManifest.d.ts.map +1 -1
  38. package/build/getServerManifest.js +6 -5
  39. package/build/getServerManifest.js.map +1 -1
  40. package/build/global-state/router-store.d.ts.map +1 -1
  41. package/build/global-state/router-store.js +28 -2
  42. package/build/global-state/router-store.js.map +1 -1
  43. package/build/global-state/routing.d.ts +0 -4
  44. package/build/global-state/routing.d.ts.map +1 -1
  45. package/build/global-state/routing.js +75 -95
  46. package/build/global-state/routing.js.map +1 -1
  47. package/build/head/ExpoHead.ios.js +4 -4
  48. package/build/head/ExpoHead.ios.js.map +1 -1
  49. package/build/head/ExpoHead.js +1 -1
  50. package/build/head/ExpoHead.js.map +1 -1
  51. package/build/head/url.d.ts.map +1 -1
  52. package/build/head/url.js +5 -6
  53. package/build/head/url.js.map +1 -1
  54. package/build/layouts/Tabs.js +2 -2
  55. package/build/layouts/Tabs.js.map +1 -1
  56. package/build/layouts/withLayoutContext.js +1 -1
  57. package/build/layouts/withLayoutContext.js.map +1 -1
  58. package/build/link/Link.d.ts +54 -1
  59. package/build/link/Link.d.ts.map +1 -1
  60. package/build/link/Link.js +54 -12
  61. package/build/link/Link.js.map +1 -1
  62. package/build/link/useLinkToPathProps.js +2 -2
  63. package/build/link/useLinkToPathProps.js.map +1 -1
  64. package/build/matchers.js +1 -1
  65. package/build/matchers.js.map +1 -1
  66. package/build/onboard/Tutorial.js +41 -34
  67. package/build/onboard/Tutorial.js.map +1 -1
  68. package/build/qualified-entry.js +3 -2
  69. package/build/qualified-entry.js.map +1 -1
  70. package/build/renderRootComponent.d.ts.map +1 -1
  71. package/build/renderRootComponent.js +28 -4
  72. package/build/renderRootComponent.js.map +1 -1
  73. package/build/routes-manifest.d.ts +1 -0
  74. package/build/routes-manifest.d.ts.map +1 -1
  75. package/build/routes-manifest.js.map +1 -1
  76. package/build/sortRoutes.d.ts.map +1 -1
  77. package/build/sortRoutes.js +21 -2
  78. package/build/sortRoutes.js.map +1 -1
  79. package/build/static/html.js +11 -9
  80. package/build/static/html.js.map +1 -1
  81. package/build/static/renderStaticContent.d.ts +39 -2
  82. package/build/static/renderStaticContent.d.ts.map +1 -1
  83. package/build/static/renderStaticContent.js +28 -6
  84. package/build/static/renderStaticContent.js.map +1 -1
  85. package/build/testing-library/index.js +2 -2
  86. package/build/testing-library/index.js.map +1 -1
  87. package/build/testing-library/mocks.d.ts +1 -3
  88. package/build/testing-library/mocks.d.ts.map +1 -1
  89. package/build/testing-library/mocks.js +7 -5
  90. package/build/testing-library/mocks.js.map +1 -1
  91. package/build/testing-library/require-context-ponyfill.js +3 -3
  92. package/build/testing-library/require-context-ponyfill.js.map +1 -1
  93. package/build/useScreens.js +19 -16
  94. package/build/useScreens.js.map +1 -1
  95. package/build/views/EmptyRoute.js +5 -2
  96. package/build/views/EmptyRoute.js.map +1 -1
  97. package/build/views/ErrorBoundary.js +43 -28
  98. package/build/views/ErrorBoundary.js.map +1 -1
  99. package/build/views/Navigator.js +16 -10
  100. package/build/views/Navigator.js.map +1 -1
  101. package/build/views/Sitemap.js +49 -35
  102. package/build/views/Sitemap.js.map +1 -1
  103. package/build/views/Splash.d.ts +1 -27
  104. package/build/views/Splash.d.ts.map +1 -1
  105. package/build/views/Splash.js +2 -112
  106. package/build/views/Splash.js.map +1 -1
  107. package/build/views/SuspenseFallback.js +3 -2
  108. package/build/views/SuspenseFallback.js.map +1 -1
  109. package/build/views/Toast.js +23 -18
  110. package/build/views/Toast.js.map +1 -1
  111. package/build/views/Try.js +1 -1
  112. package/build/views/Try.js.map +1 -1
  113. package/build/views/Unmatched.js +29 -17
  114. package/build/views/Unmatched.js.map +1 -1
  115. package/ios/ExpoHead.podspec +1 -1
  116. package/package.json +7 -18
  117. package/build/fork/react-native-web-container.d.ts +0 -8
  118. package/build/fork/react-native-web-container.d.ts.map +0 -1
  119. package/build/fork/react-native-web-container.js +0 -8
  120. package/build/fork/react-native-web-container.js.map +0 -1
  121. package/build/link/stateOperations.d.ts +0 -81
  122. package/build/link/stateOperations.d.ts.map +0 -1
  123. package/build/link/stateOperations.js +0 -105
  124. package/build/link/stateOperations.js.map +0 -1
  125. package/types/global.d.ts +0 -38
  126. package/types/metro-require.d.ts +0 -52
  127. package/types/react-native-web.d.ts +0 -295
@@ -1,52 +0,0 @@
1
- // Based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/webpack-env/index.d.ts
2
- // Adds support for the runtime `require.context` method.
3
- // https://github.com/facebook/metro/pull/822/
4
-
5
- declare var module: NodeModule;
6
-
7
- declare namespace __MetroModuleApi {
8
- interface RequireContext {
9
- /** Return the keys that can be resolved. */
10
- keys(): string[];
11
- (id: string): any;
12
- <T>(id: string): T;
13
- /** **Unimplemented:** Return the module identifier for a user request. */
14
- resolve(id: string): string;
15
- /** **Unimplemented:** Readable identifier for the context module. */
16
- id: string;
17
- }
18
-
19
- interface RequireFunction {
20
- /**
21
- * Returns the exports from a dependency. The call is sync. No request to the server is fired. The compiler ensures that the dependency is available.
22
- */
23
- (path: string): any;
24
- <T>(path: string): T;
25
-
26
- /**
27
- * **Experimental:** Import all modules in a given directory. This module dynamically updates when the files in a directory are added or removed.
28
- *
29
- * **Enabling:** This feature can be enabled by setting the `transformer.unstable_allowRequireContext` property to `true` in your Metro configuration.
30
- *
31
- * @param path File path pointing to the directory to require.
32
- * @param recursive Should search for files recursively. Optional, default `true` when `require.context` is used.
33
- * @param filter Filename filter pattern for use in `require.context`. Optional, default `.*` (any file) when `require.context` is used.
34
- * @param mode Mode for resolving dynamic dependencies. Defaults to `sync`.
35
- */
36
- context(
37
- path: string,
38
- recursive?: boolean,
39
- filter?: RegExp,
40
- mode?: 'sync' | 'eager' | 'weak' | 'lazy' | 'lazy-once'
41
- ): RequireContext;
42
- }
43
- }
44
-
45
- /**
46
- * Declare process variable
47
- */
48
- declare namespace NodeJS {
49
- interface Require extends __MetroModuleApi.RequireFunction {}
50
- }
51
-
52
- declare var require: NodeRequire;
@@ -1,295 +0,0 @@
1
- import 'react-native';
2
-
3
- declare module 'react-native' {
4
- import { StyleProp } from 'react-native';
5
- /**
6
- * View
7
- */
8
- interface ViewProps {
9
- className?: string;
10
- }
11
-
12
- interface ViewStyle {
13
- /** @platform web */
14
- backdropFilter?: string;
15
- /** @platform web */
16
- animationDelay?: string;
17
- /** @platform web */
18
- animationDirection?: string;
19
- /** @platform web */
20
- animationDuration?: string;
21
- /** @platform web */
22
- animationFillMode?: string;
23
- /** @platform web */
24
- animationName?: string | any[];
25
- /** @platform web */
26
- animationIterationCount?: number | 'infinite';
27
- /** @platform web */
28
- animationPlayState?: string;
29
- /** @platform web */
30
- animationTimingFunction?: string;
31
- /** @platform web */
32
- backgroundAttachment?: string;
33
- /** @platform web */
34
- backgroundBlendMode?: string;
35
- /** @platform web */
36
- backgroundClip?: string;
37
- /** @platform web */
38
- backgroundImage?: string;
39
- /** @platform web */
40
- backgroundOrigin?: 'border-box' | 'content-box' | 'padding-box';
41
- /** @platform web */
42
- backgroundPosition?: string;
43
- /** @platform web */
44
- backgroundRepeat?: string;
45
- /** @platform web */
46
- backgroundSize?: string;
47
- /** @platform web */
48
- boxShadow?: string;
49
- /** @platform web */
50
- boxSizing?: string;
51
- /** @platform web */
52
- clip?: string;
53
- /** @platform web */
54
- cursor?: string;
55
- /** @platform web */
56
- filter?: string;
57
- /** @platform web */
58
- gridAutoColumns?: string;
59
- /** @platform web */
60
- gridAutoFlow?: string;
61
- /** @platform web */
62
- gridAutoRows?: string;
63
- /** @platform web */
64
- gridColumnEnd?: string;
65
- /** @platform web */
66
- gridColumnGap?: string;
67
- /** @platform web */
68
- gridColumnStart?: string;
69
- /** @platform web */
70
- gridRowEnd?: string;
71
- /** @platform web */
72
- gridRowGap?: string;
73
- /** @platform web */
74
- gridRowStart?: string;
75
- /** @platform web */
76
- gridTemplateColumns?: string;
77
- /** @platform web */
78
- gridTemplateRows?: string;
79
- /** @platform web */
80
- gridTemplateAreas?: string;
81
- /** @platform web */
82
- outline?: string;
83
- /** @platform web */
84
- outlineColor?: string;
85
- /** @platform web */
86
- overflowX?: string;
87
- /** @platform web */
88
- overflowY?: string;
89
- /** @platform web */
90
- overscrollBehavior?: 'auto' | 'contain' | 'none';
91
- /** @platform web */
92
- overscrollBehaviorX?: 'auto' | 'contain' | 'none';
93
- /** @platform web */
94
- overscrollBehaviorY?: 'auto' | 'contain' | 'none';
95
- /** @platform web */
96
- perspective?: string;
97
- /** @platform web */
98
- perspectiveOrigin?: string;
99
- /** @platform web */
100
- touchAction?: string;
101
- /** @platform web */
102
- transformOrigin?: string;
103
- /** @platform web */
104
- transitionDelay?: string;
105
- /** @platform web */
106
- transitionDuration?: string;
107
- /** @platform web */
108
- transitionProperty?: string;
109
- /** @platform web */
110
- transitionTimingFunction?: string;
111
- /** @platform web */
112
- userSelect?: string;
113
- /** @platform web */
114
- visibility?: string;
115
- /** @platform web */
116
- willChange?: string;
117
- /** @platform web */
118
- position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
119
- }
120
-
121
- /**
122
- * Text
123
- */
124
- interface TextProps {
125
- className?: string;
126
- style?: RN.StyleProp<TextStyle>;
127
- /** @platform web */
128
- tabIndex?: number;
129
- /** @platform web */
130
- lang?: string;
131
- }
132
-
133
- interface TextStyle {
134
- /** @platform web */
135
- backdropFilter?: string;
136
- /** @platform web */
137
- animationDelay?: string;
138
- /** @platform web */
139
- animationDirection?: string;
140
- /** @platform web */
141
- animationDuration?: string;
142
- /** @platform web */
143
- animationFillMode?: string;
144
- /** @platform web */
145
- animationName?: string | any[];
146
- /** @platform web */
147
- animationIterationCount?: number | 'infinite';
148
- /** @platform web */
149
- animationPlayState?: string;
150
- /** @platform web */
151
- animationTimingFunction?: string;
152
- /** @platform web */
153
- backgroundAttachment?: string;
154
- /** @platform web */
155
- backgroundBlendMode?: string;
156
- /** @platform web */
157
- backgroundClip?: string;
158
- /** @platform web */
159
- backgroundImage?: string;
160
- /** @platform web */
161
- backgroundOrigin?: 'border-box' | 'content-box' | 'padding-box';
162
- /** @platform web */
163
- backgroundPosition?: string;
164
- /** @platform web */
165
- backgroundRepeat?: string;
166
- /** @platform web */
167
- backgroundSize?: string;
168
- /** @platform web */
169
- boxShadow?: string;
170
- /** @platform web */
171
- boxSizing?: string;
172
- /** @platform web */
173
- clip?: string;
174
- /** @platform web */
175
- cursor?: string;
176
- /** @platform web */
177
- filter?: string;
178
- /** @platform web */
179
- gridAutoColumns?: string;
180
- /** @platform web */
181
- gridAutoFlow?: string;
182
- /** @platform web */
183
- gridAutoRows?: string;
184
- /** @platform web */
185
- gridColumnEnd?: string;
186
- /** @platform web */
187
- gridColumnGap?: string;
188
- /** @platform web */
189
- gridColumnStart?: string;
190
- /** @platform web */
191
- gridRowEnd?: string;
192
- /** @platform web */
193
- gridRowGap?: string;
194
- /** @platform web */
195
- gridRowStart?: string;
196
- /** @platform web */
197
- gridTemplateColumns?: string;
198
- /** @platform web */
199
- gridTemplateRows?: string;
200
- /** @platform web */
201
- gridTemplateAreas?: string;
202
- /** @platform web */
203
- outline?: string;
204
- /** @platform web */
205
- outlineColor?: string;
206
- /** @platform web */
207
- overflowX?: string;
208
- /** @platform web */
209
- overflowY?: string;
210
- /** @platform web */
211
- overscrollBehavior?: 'auto' | 'contain' | 'none';
212
- /** @platform web */
213
- overscrollBehaviorX?: 'auto' | 'contain' | 'none';
214
- /** @platform web */
215
- overscrollBehaviorY?: 'auto' | 'contain' | 'none';
216
- /** @platform web */
217
- perspective?: string;
218
- /** @platform web */
219
- perspectiveOrigin?: string;
220
- /** @platform web */
221
- touchAction?: string;
222
- /** @platform web */
223
- transformOrigin?: string;
224
- /** @platform web */
225
- transitionDelay?: string;
226
- /** @platform web */
227
- transitionDuration?: string;
228
- /** @platform web */
229
- transitionProperty?: string;
230
- /** @platform web */
231
- transitionTimingFunction?: string;
232
- /** @platform web */
233
- userSelect?: string;
234
- /** @platform web */
235
- visibility?: string;
236
- /** @platform web */
237
- willChange?: string;
238
- /** @platform web */
239
- position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
240
- /** @platform web */
241
- fontFeatureSettings?: string;
242
- /** @platform web */
243
- textIndent?: string;
244
- /** @platform web */
245
- textOverflow?: string;
246
- /** @platform web */
247
- textRendering?: string;
248
- /** @platform web */
249
- textTransform?: string;
250
- /** @platform web */
251
- unicodeBidi?: string;
252
- /** @platform web */
253
- wordWrap?: string;
254
- }
255
-
256
- /**
257
- * Pressable
258
- */
259
- interface PressableStateCallbackType {
260
- readonly pressed: boolean;
261
- readonly hovered: boolean;
262
- }
263
-
264
- interface PressableProps {
265
- children?:
266
- | React.ReactNode
267
- | ((state: PressableStateCallbackType) => React.ReactNode)
268
- | undefined;
269
- style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
270
- }
271
-
272
- // export const Pressable: React.ForwardRefExoticComponent<
273
- // PressableProps & React.RefAttributes<RN.View>
274
- // >;
275
-
276
- interface FlatListProps {
277
- className?: string;
278
- }
279
-
280
- interface ImagePropsBase {
281
- className?: string;
282
- }
283
-
284
- interface SwitchProps {
285
- className?: string;
286
- }
287
-
288
- interface InputAccessoryViewProps {
289
- className?: string;
290
- }
291
-
292
- interface TouchableWithoutFeedbackProps {
293
- className?: string;
294
- }
295
- }