one 1.1.341 → 1.1.343

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 (89) hide show
  1. package/dist/cjs/Root.cjs +52 -64
  2. package/dist/cjs/Root.js +42 -44
  3. package/dist/cjs/Root.js.map +1 -1
  4. package/dist/cjs/Root.native.js +35 -49
  5. package/dist/cjs/Root.native.js.map +2 -2
  6. package/dist/cjs/index.cjs +2 -1
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/index.native.js +1 -1
  10. package/dist/cjs/index.native.js.map +1 -1
  11. package/dist/cjs/router/router.js.map +1 -1
  12. package/dist/cjs/router/router.native.js.map +1 -1
  13. package/dist/cjs/setup.cjs +1 -0
  14. package/dist/cjs/setup.js +2 -0
  15. package/dist/cjs/setup.js.map +6 -0
  16. package/dist/cjs/setup.native.js +2 -0
  17. package/dist/cjs/setup.native.js.map +6 -0
  18. package/dist/cjs/useScreens.cjs +9 -36
  19. package/dist/cjs/useScreens.js +4 -27
  20. package/dist/cjs/useScreens.js.map +2 -2
  21. package/dist/cjs/useScreens.native.js +7 -33
  22. package/dist/cjs/useScreens.native.js.map +2 -2
  23. package/dist/cjs/useViteRoutes.cjs +1 -9
  24. package/dist/cjs/useViteRoutes.js +2 -7
  25. package/dist/cjs/useViteRoutes.js.map +1 -1
  26. package/dist/cjs/useViteRoutes.native.js +2 -7
  27. package/dist/cjs/useViteRoutes.native.js.map +2 -2
  28. package/dist/cjs/vite/one.cjs +1 -1
  29. package/dist/cjs/vite/one.js +1 -1
  30. package/dist/cjs/vite/one.native.js +1 -1
  31. package/dist/esm/Root.js +41 -43
  32. package/dist/esm/Root.js.map +1 -1
  33. package/dist/esm/Root.mjs +47 -60
  34. package/dist/esm/Root.mjs.map +1 -1
  35. package/dist/esm/Root.native.js +40 -54
  36. package/dist/esm/Root.native.js.map +2 -2
  37. package/dist/esm/index.js +1 -0
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/index.mjs +1 -0
  40. package/dist/esm/index.mjs.map +1 -1
  41. package/dist/esm/index.native.js +1 -0
  42. package/dist/esm/index.native.js.map +1 -1
  43. package/dist/esm/router/router.js.map +1 -1
  44. package/dist/esm/router/router.mjs.map +1 -1
  45. package/dist/esm/router/router.native.js.map +1 -1
  46. package/dist/esm/setup.js +2 -0
  47. package/dist/esm/setup.js.map +6 -0
  48. package/dist/esm/setup.mjs +2 -0
  49. package/dist/esm/setup.mjs.map +1 -0
  50. package/dist/esm/setup.native.js +1 -0
  51. package/dist/esm/setup.native.js.map +6 -0
  52. package/dist/esm/useScreens.js +5 -29
  53. package/dist/esm/useScreens.js.map +2 -2
  54. package/dist/esm/useScreens.mjs +10 -37
  55. package/dist/esm/useScreens.mjs.map +1 -1
  56. package/dist/esm/useScreens.native.js +8 -35
  57. package/dist/esm/useScreens.native.js.map +2 -2
  58. package/dist/esm/useViteRoutes.js +2 -7
  59. package/dist/esm/useViteRoutes.js.map +1 -1
  60. package/dist/esm/useViteRoutes.mjs +1 -8
  61. package/dist/esm/useViteRoutes.mjs.map +1 -1
  62. package/dist/esm/useViteRoutes.native.js +2 -7
  63. package/dist/esm/useViteRoutes.native.js.map +2 -2
  64. package/dist/esm/vite/one.js +1 -1
  65. package/dist/esm/vite/one.mjs +1 -1
  66. package/dist/esm/vite/one.native.js +1 -1
  67. package/package.json +12 -9
  68. package/src/Root.tsx +76 -83
  69. package/src/index.ts +2 -0
  70. package/src/router/router.ts +1 -0
  71. package/src/setup.native.ts +1 -0
  72. package/src/setup.ts +4 -0
  73. package/src/useScreens.tsx +64 -51
  74. package/src/useViteRoutes.tsx +3 -15
  75. package/src/vite/one.ts +1 -1
  76. package/types/Root.d.ts +1 -1
  77. package/types/Root.d.ts.map +1 -1
  78. package/types/index.d.ts +1 -0
  79. package/types/index.d.ts.map +1 -1
  80. package/types/layouts/Drawer.d.ts +2 -2
  81. package/types/layouts/Stack.d.ts +2 -2
  82. package/types/layouts/Tabs.d.ts +2 -2
  83. package/types/router/router.d.ts.map +1 -1
  84. package/types/setup.d.ts +2 -0
  85. package/types/setup.d.ts.map +1 -0
  86. package/types/setup.native.d.ts +1 -0
  87. package/types/setup.native.d.ts.map +1 -0
  88. package/types/useScreens.d.ts.map +1 -1
  89. package/types/useViteRoutes.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.341",
3
+ "version": "1.1.343",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "setup.mjs",
8
+ "setup.js"
9
+ ],
7
10
  "type": "module",
8
11
  "license": "BSD-3-Clause",
9
12
  "main": "dist/cjs",
@@ -97,14 +100,14 @@
97
100
  "@react-navigation/routers": "~6.1.9",
98
101
  "@swc/core": "^1.7.14",
99
102
  "@ungap/structured-clone": "^1.2.0",
100
- "@vxrn/resolve": "1.1.341",
101
- "@vxrn/tslib-lite": "1.1.341",
102
- "@vxrn/universal-color-scheme": "1.1.341",
103
- "@vxrn/use-isomorphic-layout-effect": "1.1.341",
103
+ "@vxrn/resolve": "1.1.343",
104
+ "@vxrn/tslib-lite": "1.1.343",
105
+ "@vxrn/universal-color-scheme": "1.1.343",
106
+ "@vxrn/use-isomorphic-layout-effect": "1.1.343",
104
107
  "babel-dead-code-elimination": "^1.0.6",
105
108
  "citty": "^0.1.6",
106
109
  "core-js": "^3.38.1",
107
- "create-vxrn": "1.1.341",
110
+ "create-vxrn": "1.1.343",
108
111
  "escape-string-regexp": "^5.0.0",
109
112
  "expo-linking": "~6.3.1",
110
113
  "expo-modules-core": "^1.12.24",
@@ -124,9 +127,9 @@
124
127
  "react-native-screens": "3.31.1",
125
128
  "rollup-plugin-node-externals": "^7.1.2",
126
129
  "url-parse": "^1.5.10",
127
- "vite": "6.0.0-beta.1",
130
+ "vite": "^6.0.3",
128
131
  "vite-tsconfig-paths": "^5.0.1",
129
- "vxrn": "1.1.341",
132
+ "vxrn": "1.1.343",
130
133
  "ws": "^8.18.0",
131
134
  "xxhashjs": "^0.2.2"
132
135
  },
package/src/Root.tsx CHANGED
@@ -1,24 +1,23 @@
1
- import { Fragment, useEffect, useState, type FunctionComponent, type ReactNode } from 'react'
2
- import type { GlobbedRouteImports, RenderAppProps } from './types'
3
- import { useViteRoutes } from './useViteRoutes'
4
- import { RootErrorBoundary } from './views/RootErrorBoundary'
5
- import { GestureHandlerRootView as _GestureHandlerRootView } from 'react-native-gesture-handler'
1
+ import { SafeAreaProviderCompat } from '@react-navigation/elements'
6
2
  import {
7
3
  DarkTheme,
8
4
  DefaultTheme,
9
5
  type NavigationAction,
10
6
  type NavigationContainerProps,
11
7
  } from '@react-navigation/native'
12
- import { SafeAreaProviderCompat } from '@react-navigation/elements'
13
8
  import { useColorScheme } from '@vxrn/universal-color-scheme'
9
+ import { Fragment, useEffect, useState, type FunctionComponent, type ReactNode } from 'react'
14
10
  import UpstreamNavigationContainer from './fork/NavigationContainer'
11
+ import { getURL } from './getURL'
15
12
  import { ServerLocationContext } from './router/serverLocationContext'
16
13
  import { useInitializeOneRouter } from './router/useInitializeOneRouter'
14
+ import type { GlobbedRouteImports, RenderAppProps } from './types'
15
+ import { useViteRoutes } from './useViteRoutes'
16
+ import { rand } from './utils/rand'
17
17
  import { PreloadLinks } from './views/PreloadLinks'
18
+ import { RootErrorBoundary } from './views/RootErrorBoundary'
18
19
  import { ScrollRestoration } from './views/ScrollRestoration'
19
20
  import type { One } from './vite/types'
20
- import { rand } from './utils/rand'
21
- import { getURL } from './getURL'
22
21
  // import { SplashScreen } from './views/Splash'
23
22
 
24
23
  if (typeof window !== 'undefined') {
@@ -54,19 +53,83 @@ type InnerProps = {
54
53
  }
55
54
 
56
55
  export function Root(props: RootProps) {
56
+ const {
57
+ path,
58
+ routes,
59
+ routeOptions,
60
+ wrapper: ParentWrapper = Fragment,
61
+ isClient,
62
+ css,
63
+ navigationContainerProps,
64
+ loaderProps,
65
+ mode,
66
+ } = props
67
+
57
68
  // ⚠️ <StrictMode> breaks routing!
69
+ const context = useViteRoutes(routes, routeOptions, globalThis['__vxrnVersion'])
70
+ const location =
71
+ typeof window !== 'undefined' && window.location
72
+ ? new URL(path || window.location.href || '/', window.location.href)
73
+ : new URL(path || '/', getURL())
74
+
75
+ const store = useInitializeOneRouter(context, location)
76
+ const [colorScheme] = useColorScheme()
77
+
78
+ // const headContext = useMemo(() => globalThis['vxrn__headContext__'] || {}, [])
79
+
80
+ /*
81
+ * Due to static rendering we need to wrap these top level views in second wrapper
82
+ * View's like <GestureHandlerRootView /> generate a <div> so if the parent wrapper
83
+ * is a HTML document, we need to ensure its inside the <body>
84
+ */
85
+ const wrapper = (children: any) => {
86
+ return (
87
+ <ParentWrapper>
88
+ {/* default scroll restoration to on, but users can configure it by importing and using themselves */}
89
+ <ScrollRestoration />
90
+ {/* <GestureHandlerRootView> */}
91
+ <SafeAreaProviderCompat>
92
+ {children}
93
+
94
+ {/* Users can override this by adding another StatusBar element anywhere higher in the component tree. */}
95
+ {/* {!hasViewControllerBasedStatusBarAppearance && <StatusBar style="auto" />} */}
96
+ </SafeAreaProviderCompat>
97
+ {/* </GestureHandlerRootView> */}
98
+ </ParentWrapper>
99
+ )
100
+ }
101
+
102
+ const Component = store.rootComponent
103
+
104
+ if (!Component) {
105
+ throw new Error(`No root component found`)
106
+ }
58
107
 
59
108
  const contents = (
60
109
  // <StrictMode>
61
110
  <RootErrorBoundary>
62
111
  {/* for some reason warning if no key here */}
63
- <Contents key="contents" {...props} />
112
+ <UpstreamNavigationContainer
113
+ ref={store.navigationRef}
114
+ initialState={store.initialState}
115
+ linking={store.linking}
116
+ onUnhandledAction={onUnhandledAction}
117
+ theme={colorScheme === 'dark' ? DarkTheme : DefaultTheme}
118
+ documentTitle={{
119
+ enabled: false,
120
+ }}
121
+ {...navigationContainerProps}
122
+ >
123
+ <ServerLocationContext.Provider value={location}>
124
+ {wrapper(<Component />)}
125
+ </ServerLocationContext.Provider>
126
+ </UpstreamNavigationContainer>
64
127
  <PreloadLinks key="preload-links" />
65
128
  </RootErrorBoundary>
66
129
  // </StrictMode>
67
130
  )
68
131
 
69
- if (props.isClient) {
132
+ if (isClient) {
70
133
  if (globalThis['__vxrnHydrateMode__'] === 'spa') {
71
134
  // eslint-disable-next-line react-hooks/rules-of-hooks
72
135
  const [show, setShow] = useState(false)
@@ -99,7 +162,7 @@ export function Root(props: RootProps) {
99
162
  }}
100
163
  />
101
164
 
102
- {props.css?.map((file) => {
165
+ {css?.map((file) => {
103
166
  return <link key={file} rel="stylesheet" href={file} />
104
167
  })}
105
168
  </head>
@@ -113,8 +176,8 @@ export function Root(props: RootProps) {
113
176
  __html: `
114
177
  globalThis['__vxrnPostRenderData__'] = { __vxrn__: 'post-render' };
115
178
  globalThis['__vxrnLoaderData__'] = ${JSON.stringify(loaderData)};
116
- globalThis['__vxrnLoaderProps__'] = ${JSON.stringify(props.loaderProps)};
117
- globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(props.mode)};
179
+ globalThis['__vxrnLoaderProps__'] = ${JSON.stringify(loaderProps)};
180
+ globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(mode)};
118
181
  `,
119
182
  }}
120
183
  />
@@ -154,18 +217,6 @@ window.$RefreshSig$ = () => (type) => type;`,
154
217
  )
155
218
  }
156
219
 
157
- function Contents({ routes, path, wrapper = Fragment, routeOptions, ...props }: RootProps) {
158
- const context = useViteRoutes(routes, routeOptions, globalThis['__vxrnVersion'])
159
-
160
- // TODO can probably remove since we handle this above
161
- const location =
162
- typeof window !== 'undefined' && window.location
163
- ? new URL(path || window.location.href || '/', window.location.href)
164
- : new URL(path || '/', getURL())
165
-
166
- return <ContextNavigator {...props} location={location} context={context} wrapper={wrapper} />
167
- }
168
-
169
220
  // function getGestureHandlerRootView() {
170
221
  // if (process.env.TAMAGUI_TARGET === 'native') {
171
222
  // try {
@@ -201,64 +252,6 @@ function Contents({ routes, path, wrapper = Fragment, routeOptions, ...props }:
201
252
  // Platform.OS === 'ios' &&
202
253
  // !!Constants.expoConfig?.ios?.infoPlist?.UIViewControllerBasedStatusBarAppearance
203
254
 
204
- function ContextNavigator({
205
- wrapper: ParentWrapper = Fragment,
206
- context,
207
- location: initialLocation,
208
- navigationContainerProps,
209
- }: InnerProps) {
210
- const store = useInitializeOneRouter(context, initialLocation)
211
- const [colorScheme] = useColorScheme()
212
-
213
- // const headContext = useMemo(() => globalThis['vxrn__headContext__'] || {}, [])
214
-
215
- /*
216
- * Due to static rendering we need to wrap these top level views in second wrapper
217
- * View's like <GestureHandlerRootView /> generate a <div> so if the parent wrapper
218
- * is a HTML document, we need to ensure its inside the <body>
219
- */
220
- const wrapper = (children: any) => {
221
- return (
222
- <ParentWrapper>
223
- {/* default scroll restoration to on, but users can configure it by importing and using themselves */}
224
- <ScrollRestoration />
225
- {/* <GestureHandlerRootView> */}
226
- <SafeAreaProviderCompat>
227
- {children}
228
-
229
- {/* Users can override this by adding another StatusBar element anywhere higher in the component tree. */}
230
- {/* {!hasViewControllerBasedStatusBarAppearance && <StatusBar style="auto" />} */}
231
- </SafeAreaProviderCompat>
232
- {/* </GestureHandlerRootView> */}
233
- </ParentWrapper>
234
- )
235
- }
236
-
237
- const Component = store.rootComponent
238
-
239
- if (!Component) {
240
- throw new Error(`No root component found`)
241
- }
242
-
243
- return (
244
- <UpstreamNavigationContainer
245
- ref={store.navigationRef}
246
- initialState={store.initialState}
247
- linking={store.linking}
248
- onUnhandledAction={onUnhandledAction}
249
- theme={colorScheme === 'dark' ? DarkTheme : DefaultTheme}
250
- documentTitle={{
251
- enabled: false,
252
- }}
253
- {...navigationContainerProps}
254
- >
255
- <ServerLocationContext.Provider value={initialLocation}>
256
- {wrapper(<Component />)}
257
- </ServerLocationContext.Provider>
258
- </UpstreamNavigationContainer>
259
- )
260
- }
261
-
262
255
  let onUnhandledAction: (action: NavigationAction) => void
263
256
 
264
257
  if (process.env.NODE_ENV !== 'production') {
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import './setup'
2
+
1
3
  export type { OneRouter, One } from './interfaces/router'
2
4
  import type { OneRouter } from './interfaces/router'
3
5
 
@@ -57,6 +57,7 @@ export function initialize(
57
57
  initialLocation?: URL
58
58
  ) {
59
59
  cleanUpState()
60
+
60
61
  routeNode = getRoutes(context, {
61
62
  ignoreEntryPoints: true,
62
63
  platform: Platform.OS,
@@ -0,0 +1 @@
1
+ // empty
package/src/setup.ts ADDED
@@ -0,0 +1,4 @@
1
+ // fixes bad import error in expo-modules-core
2
+ // without this you run into error loading web immediately
3
+ // where globalThis.expo is not defined
4
+ import 'expo-modules-core/build/createWebModule'
@@ -6,7 +6,7 @@ import type {
6
6
  RouteProp,
7
7
  ScreenListeners,
8
8
  } from '@react-navigation/native'
9
- import React, { Suspense, useEffect, useState } from 'react'
9
+ import React, { Suspense, useEffect } from 'react'
10
10
  import {
11
11
  Route,
12
12
  useRouteNode,
@@ -14,12 +14,11 @@ import {
14
14
  type LoadedRoute,
15
15
  type RouteNode,
16
16
  } from './Route'
17
- import One_ROUTER_IMPORT_MODE from './import-mode'
18
17
  import { sortRoutesWithInitial } from './sortRoutes'
18
+ import { getPageExport } from './utils/getPageExport'
19
19
  import { EmptyRoute } from './views/EmptyRoute'
20
20
  import { RootErrorBoundary } from './views/RootErrorBoundary'
21
21
  import { Try } from './views/Try'
22
- import { getPageExport } from './utils/getPageExport'
23
22
 
24
23
  // `@react-navigation/core` does not expose the Screen or Group components directly, so we have to
25
24
  // do this hack.
@@ -157,54 +156,64 @@ export function getQualifiedRouteComponent(value: RouteNode) {
157
156
 
158
157
  let ScreenComponent: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>
159
158
 
160
- if (One_ROUTER_IMPORT_MODE === 'lazy') {
161
- ScreenComponent = React.forwardRef((props, ref) => {
162
- // for native avoid suspense for now
163
- const [loaded, setLoaded] = useState<any>(null)
164
-
165
- useEffect(() => {
166
- try {
167
- const found = value.loadRoute()
168
- if (found) {
169
- setLoaded(found)
170
- }
171
- } catch (err) {
172
- if (err instanceof Promise) {
173
- err
174
- .then((res) => {
175
- setLoaded(res)
176
- })
177
- .catch((err) => {
178
- console.error(`Error loading route`, err)
179
- })
180
- } else {
181
- setLoaded(err as any)
182
- }
183
- }
184
- }, [])
185
-
186
- if (loaded) {
187
- const Component = getPageExport(fromImport(loaded)) as React.ComponentType<any>
188
- return (
189
- // <Suspense fallback={null}>
190
- <Component {...props} ref={ref} />
191
- // </Suspense>
192
- )
193
- }
159
+ // if (One_ROUTER_IMPORT_MODE === 'lazy') {
160
+ // ScreenComponent = React.forwardRef((props, ref) => {
161
+ // // for native avoid suspense for now
162
+ // const [loaded, setLoaded] = useState<any>(null)
163
+
164
+ // useEffect(() => {
165
+ // try {
166
+ // const found = value.loadRoute()
167
+ // if (found) {
168
+ // setLoaded(found)
169
+ // }
170
+ // } catch (err) {
171
+ // if (err instanceof Promise) {
172
+ // err
173
+ // .then((res) => {
174
+ // setLoaded(res)
175
+ // })
176
+ // .catch((err) => {
177
+ // console.error(`Error loading route`, err)
178
+ // })
179
+ // } else {
180
+ // setLoaded(err as any)
181
+ // }
182
+ // }
183
+ // }, [])
184
+
185
+ // if (loaded) {
186
+ // const Component = getPageExport(fromImport(loaded)) as React.ComponentType<any>
187
+ // return (
188
+ // // <Suspense fallback={null}>
189
+ // <Component {...props} ref={ref} />
190
+ // // </Suspense>
191
+ // )
192
+ // }
193
+
194
+ // return null
195
+ // })
196
+ // } else {
197
+ ScreenComponent = React.forwardRef((props, ref) => {
198
+ const res = value.loadRoute()
199
+ const Component = getPageExport(fromImport(res)) as React.ComponentType<any>
200
+
201
+ if (process.env.NODE_ENV === 'development' && process.env.DEBUG === 'one') {
202
+ console.groupCollapsed(`Render ${props.key}`)
203
+ console.info(`res`, res)
204
+ console.info(`value`, value)
205
+ console.info(`fromImport`, fromImport(res))
206
+ console.info(`Component`, Component)
207
+ console.groupEnd()
208
+ }
194
209
 
195
- return null
196
- })
197
- } else {
198
- ScreenComponent = React.forwardRef((props, ref) => {
199
- const res = value.loadRoute()
200
- const Component = getPageExport(fromImport(res)) as React.ComponentType<any>
201
- return (
202
- // <Suspense fallback={null}>
203
- <Component {...props} ref={ref} />
204
- // </Suspense>
205
- )
206
- })
207
- }
210
+ return (
211
+ // <Suspense fallback={null}>
212
+ <Component {...props} ref={ref} />
213
+ // </Suspense>
214
+ )
215
+ })
216
+ // }
208
217
 
209
218
  const wrapSuspense = (children: any) => {
210
219
  if (process.env.TAMAGUI_TARGET === 'native') {
@@ -328,7 +337,11 @@ function routeToScreen(route: RouteNode, { options, ...props }: Partial<ScreenPr
328
337
 
329
338
  return output
330
339
  }}
331
- getComponent={() => getQualifiedRouteComponent(route)}
340
+ getComponent={() => {
341
+ // log here to see which route is rendered
342
+ // console.log('getting', route, getQualifiedRouteComponent(route))
343
+ return getQualifiedRouteComponent(route)
344
+ }}
332
345
  />
333
346
  )
334
347
  }
@@ -1,6 +1,4 @@
1
- import { getLoaderPath } from './cleanUrl'
2
1
  import type { GlobbedRouteImports } from './types'
3
- import { dynamicImport } from './utils/dynamicImport'
4
2
  import type { One } from './vite/types'
5
3
 
6
4
  // essentially a development helper
@@ -51,7 +49,6 @@ export function globbedRoutesToRouteContext(
51
49
  }
52
50
  const loadRouteFunction = paths[path]
53
51
  const pathWithoutRelative = path.replace('/app/', './')
54
- const shouldRewrite = typeof window !== 'undefined' && window.location && !import.meta.env.PROD
55
52
 
56
53
  const originalPath = pathWithoutRelative.slice(1).replace(/\.[jt]sx?$/, '')
57
54
  if (options?.routeModes?.[originalPath] === 'spa') {
@@ -60,18 +57,6 @@ export function globbedRoutesToRouteContext(
60
57
  loadedRoutes[pathWithoutRelative] = () => {
61
58
  return null
62
59
  }
63
- }
64
- // TODO this entire conditional seems like it can go away
65
- else if (shouldRewrite) {
66
- // for SSR support we rewrite these:
67
- routesSync[pathWithoutRelative] =
68
- path.includes('+not-found') || path.includes('_layout.') || path.includes('+spa')
69
- ? loadRouteFunction
70
- : () => {
71
- const realPath = (globalThis['__vxrntodopath'] ?? window.location.pathname).trim()
72
- const importUrl = getLoaderPath(realPath)
73
- return dynamicImport(importUrl)
74
- }
75
60
  } else {
76
61
  routesSync[pathWithoutRelative] = loadRouteFunction
77
62
  }
@@ -81,12 +66,15 @@ export function globbedRoutesToRouteContext(
81
66
 
82
67
  function resolve(id: string) {
83
68
  clearTimeout(clears[id])
69
+
84
70
  if (loadedRoutes[id]) {
85
71
  return loadedRoutes[id]
86
72
  }
73
+
87
74
  if (typeof routesSync[id] !== 'function') {
88
75
  return routesSync[id]
89
76
  }
77
+
90
78
  if (!promises[id]) {
91
79
  promises[id] = routesSync[id]()
92
80
  .then((val: any) => {
package/src/vite/one.ts CHANGED
@@ -320,7 +320,7 @@ export function one(options: One.PluginOptions = {}): PluginOption {
320
320
  } satisfies Plugin,
321
321
 
322
322
  {
323
- name: 'one-optimize-deps-load-web-extensions',
323
+ name: 'one:optimize-deps-load-web-extensions-web-only',
324
324
  enforce: 'pre',
325
325
 
326
326
  applyToEnvironment(environment) {
package/types/Root.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import { type NavigationContainerProps } from '@react-navigation/native';
1
2
  import { type FunctionComponent, type ReactNode } from 'react';
2
3
  import type { GlobbedRouteImports, RenderAppProps } from './types';
3
- import { type NavigationContainerProps } from '@react-navigation/native';
4
4
  import type { One } from './vite/types';
5
5
  type RootProps = RenderAppProps & Omit<InnerProps, 'context'> & {
6
6
  mode?: One.RouteRenderMode;
@@ -1 +1 @@
1
- {"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIlE,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAA;AAQjC,O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AAK,SAAS,GAAG,cAAc,GAC7B,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC,eAAe,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,mBAAmB,CAAA;IAC3B,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,CAAA;CAChC,CAAA;AAEH,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,GAAG,CAAC,YAAY,CAAA;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,OAAO,CAAC,EAAE,iBAAiB,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAA;IACpD,wBAAwB,CAAC,EAAE,wBAAwB,GAAG;QACpD,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,OAAO,CAAA;YACb,MAAM,EAAE;gBACN,OAAO,EAAE,MAAM,CAAA;gBACf,UAAU,EAAE,MAAM,CAAA;gBAClB,IAAI,EAAE,MAAM,CAAA;gBACZ,IAAI,EAAE,MAAM,CAAA;gBACZ,MAAM,EAAE,MAAM,CAAA;gBACd,YAAY,EAAE,MAAM,CAAA;aACrB,CAAA;SACF,CAAA;KACF,CAAA;CACF,CAAA;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,kDAmIpC"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './setup';
1
2
  export type { OneRouter, One } from './interfaces/router';
2
3
  import type { OneRouter } from './interfaces/router';
3
4
  export type Href = OneRouter.Href;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;AACjC,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iBAAiB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -27,7 +27,7 @@ export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit
27
27
  backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
28
28
  } & {
29
29
  defaultStatus?: import("@react-navigation/routers").DrawerStatus;
30
- } & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
30
+ } & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
31
31
  id?: string;
32
32
  children: React.ReactNode;
33
33
  screenListeners?: Partial<{
@@ -77,7 +77,7 @@ export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit
77
77
  backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
78
78
  } & {
79
79
  defaultStatus?: import("@react-navigation/routers").DrawerStatus;
80
- } & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
80
+ } & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
81
81
  id?: string;
82
82
  children: React.ReactNode;
83
83
  screenListeners?: Partial<{
@@ -25,7 +25,7 @@ export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<
25
25
  route: import("@react-navigation/core").RouteProp<ParamListBase, string>;
26
26
  navigation: any;
27
27
  }) => NativeStackNavigationOptions) | undefined;
28
- } & import("@react-navigation/routers").StackRouterOptions, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
28
+ } & import("@react-navigation/routers").StackRouterOptions, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
29
29
  id?: string;
30
30
  children: React.ReactNode;
31
31
  screenListeners?: Partial<{
@@ -75,7 +75,7 @@ export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<
75
75
  route: import("@react-navigation/core").RouteProp<ParamListBase, string>;
76
76
  navigation: any;
77
77
  }) => NativeStackNavigationOptions) | undefined;
78
- } & import("@react-navigation/routers").StackRouterOptions, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
78
+ } & import("@react-navigation/routers").StackRouterOptions, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
79
79
  id?: string;
80
80
  children: React.ReactNode;
81
81
  screenListeners?: Partial<{
@@ -28,7 +28,7 @@ export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<i
28
28
  }) => BottomTabNavigationOptions) | undefined;
29
29
  } & import("@react-navigation/routers").DefaultRouterOptions & {
30
30
  backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
31
- } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
31
+ } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
32
32
  id?: string;
33
33
  children: React.ReactNode;
34
34
  screenListeners?: Partial<{
@@ -80,7 +80,7 @@ export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<i
80
80
  }) => BottomTabNavigationOptions) | undefined;
81
81
  } & import("@react-navigation/routers").DefaultRouterOptions & {
82
82
  backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
83
- } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
83
+ } & import("@react-navigation/bottom-tabs/lib/typescript/src/types").BottomTabNavigationConfig, "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
84
84
  id?: string;
85
85
  children: React.ReactNode;
86
86
  screenListeners?: Partial<{
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAE3F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKzC,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAUrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAIjF,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,IAAW,CAAA;AAC7C,eAAO,IAAI,aAAa,EAAE,aAAa,CAAA;AACvC,eAAO,IAAI,OAAO,EAAE,iBAAiB,GAAG,SAAS,CAAA;AAEjD,eAAO,IAAI,wBAAwB,SAAQ,CAAA;AAC3C,eAAO,IAAI,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAA;AAC1D,eAAO,IAAI,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAA;AAGvD,eAAO,IAAI,SAAS,EA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;AAGD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,SAAS,CAAC,oBAAoB,cAKjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,YAAY,QAI5D;AAUD,wBAAgB,QAAQ;;;;;;;;;;;;qCAtPa,IAAI;;gCAIF,IAAI;EAoP1C;AAqBD,wBAAgB,iBAAiB,0BAEhC;AAED,wBAAgB,iBAAiB,cAEhC;AAGD,wBAAgB,YAAY;;;;;;;;;;;;qCAtRS,IAAI;;gCAIF,IAAI;EAoR1C;AAcD,wBAAgB,iBAAiB,0BAGhC;AAED,wBAAgB,iBAAiB,cAGhC;AAoCD,wBAAgB,OAAO,SAItB;AAGD,eAAO,MAAM,gBAAgB,IAAK,CAAA;AAoBlC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAaxC;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,iBAwG3F"}
@@ -0,0 +1,2 @@
1
+ import 'expo-modules-core/build/createWebModule';
2
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAGA,OAAO,yCAAyC,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setup.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.native.d.ts","sourceRoot":"","sources":["../src/setup.native.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"useScreens.d.ts","sourceRoot":"","sources":["../src/useScreens.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,aAAa,EACb,SAAS,EACT,eAAe,EAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAwC,MAAM,OAAO,CAAA;AAC5D,OAAO,EAKL,KAAK,SAAS,E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0DD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,CAYxE;AA4BD,mFAAmF;AACnF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,+GA4H1D;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC,iBAUvC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,YAoBjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CAwGlB"}
1
+ {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CA8FlB"}