one 1.1.434-1738836794800 → 1.1.434

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 (75) hide show
  1. package/dist/cjs/Root.cjs +24 -23
  2. package/dist/cjs/Root.js +24 -21
  3. package/dist/cjs/Root.js.map +1 -1
  4. package/dist/cjs/Root.native.js +4 -3
  5. package/dist/cjs/Root.native.js.map +2 -2
  6. package/dist/cjs/createApp.cjs +1 -1
  7. package/dist/cjs/createApp.js +1 -1
  8. package/dist/cjs/createApp.js.map +1 -1
  9. package/dist/cjs/render.js.map +1 -1
  10. package/dist/cjs/router/router.cjs +13 -19
  11. package/dist/cjs/router/router.js +9 -14
  12. package/dist/cjs/router/router.js.map +1 -1
  13. package/dist/cjs/router/router.native.js +40 -44
  14. package/dist/cjs/router/router.native.js.map +2 -2
  15. package/dist/cjs/router/useScreens.cjs +81 -65
  16. package/dist/cjs/router/useScreens.js +49 -38
  17. package/dist/cjs/router/useScreens.js.map +1 -1
  18. package/dist/cjs/router/useScreens.native.js +41 -32
  19. package/dist/cjs/router/useScreens.native.js.map +2 -2
  20. package/dist/cjs/vite/one.cjs +1 -5
  21. package/dist/cjs/vite/one.js +1 -5
  22. package/dist/cjs/vite/one.js.map +1 -1
  23. package/dist/cjs/vite/one.native.js +1 -5
  24. package/dist/cjs/vite/one.native.js.map +1 -1
  25. package/dist/cjs/vite/types.native.js.map +1 -1
  26. package/dist/esm/Root.js +24 -22
  27. package/dist/esm/Root.js.map +1 -1
  28. package/dist/esm/Root.mjs +25 -24
  29. package/dist/esm/Root.mjs.map +1 -1
  30. package/dist/esm/Root.native.js +5 -4
  31. package/dist/esm/Root.native.js.map +2 -2
  32. package/dist/esm/createApp.js +1 -1
  33. package/dist/esm/createApp.js.map +1 -1
  34. package/dist/esm/createApp.mjs +1 -1
  35. package/dist/esm/createApp.mjs.map +1 -1
  36. package/dist/esm/render.js.map +1 -1
  37. package/dist/esm/render.mjs.map +1 -1
  38. package/dist/esm/router/router.js +14 -19
  39. package/dist/esm/router/router.js.map +1 -1
  40. package/dist/esm/router/router.mjs +12 -18
  41. package/dist/esm/router/router.mjs.map +1 -1
  42. package/dist/esm/router/router.native.js +45 -49
  43. package/dist/esm/router/router.native.js.map +2 -2
  44. package/dist/esm/router/useScreens.js +50 -38
  45. package/dist/esm/router/useScreens.js.map +1 -1
  46. package/dist/esm/router/useScreens.mjs +82 -66
  47. package/dist/esm/router/useScreens.mjs.map +1 -1
  48. package/dist/esm/router/useScreens.native.js +42 -32
  49. package/dist/esm/router/useScreens.native.js.map +2 -2
  50. package/dist/esm/vite/one.js +1 -5
  51. package/dist/esm/vite/one.js.map +1 -1
  52. package/dist/esm/vite/one.mjs +1 -5
  53. package/dist/esm/vite/one.mjs.map +1 -1
  54. package/dist/esm/vite/one.native.js +1 -5
  55. package/dist/esm/vite/one.native.js.map +1 -1
  56. package/package.json +9 -9
  57. package/src/Root.tsx +40 -41
  58. package/src/createApp.tsx +1 -1
  59. package/src/render.tsx +0 -1
  60. package/src/router/router.ts +21 -26
  61. package/src/router/useScreens.tsx +55 -40
  62. package/src/vite/one.ts +1 -6
  63. package/src/vite/types.ts +15 -2
  64. package/types/Root.d.ts.map +1 -1
  65. package/types/layouts/Drawer.d.ts +2 -2
  66. package/types/layouts/Stack.d.ts +2 -2
  67. package/types/layouts/Tabs.d.ts +2 -2
  68. package/types/render.d.ts.map +1 -1
  69. package/types/router/router.d.ts +2 -2
  70. package/types/router/router.d.ts.map +1 -1
  71. package/types/router/useScreens.d.ts +1 -1
  72. package/types/router/useScreens.d.ts.map +1 -1
  73. package/types/vite/one.d.ts.map +1 -1
  74. package/types/vite/types.d.ts +14 -1
  75. package/types/vite/types.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.434-1738836794800",
3
+ "version": "1.1.434",
4
4
  "license": "BSD-3-Clause",
5
5
  "sideEffects": [
6
6
  "setup.mjs",
@@ -94,15 +94,15 @@
94
94
  "@react-navigation/routers": "~7",
95
95
  "@swc/core": "^1.10.4",
96
96
  "@ungap/structured-clone": "^1.2.0",
97
- "@vxrn/compiler": "1.1.434-1738836794800",
98
- "@vxrn/resolve": "1.1.434-1738836794800",
99
- "@vxrn/tslib-lite": "1.1.434-1738836794800",
100
- "@vxrn/universal-color-scheme": "1.1.434-1738836794800",
101
- "@vxrn/use-isomorphic-layout-effect": "1.1.434-1738836794800",
97
+ "@vxrn/compiler": "1.1.434",
98
+ "@vxrn/resolve": "1.1.434",
99
+ "@vxrn/tslib-lite": "1.1.434",
100
+ "@vxrn/universal-color-scheme": "1.1.434",
101
+ "@vxrn/use-isomorphic-layout-effect": "1.1.434",
102
102
  "babel-dead-code-elimination": "^1.0.6",
103
103
  "citty": "^0.1.6",
104
104
  "core-js": "^3.38.1",
105
- "create-vxrn": "1.1.434-1738836794800",
105
+ "create-vxrn": "1.1.434",
106
106
  "escape-string-regexp": "^5.0.0",
107
107
  "expo-linking": "~6.3.1",
108
108
  "expo-modules-core": "2.1.2",
@@ -126,10 +126,10 @@
126
126
  "react-scan": "^0.1.3",
127
127
  "rollup-plugin-node-externals": "^7.1.2",
128
128
  "use-latest-callback": "^0.2.3",
129
- "vite": "^6.1.0",
129
+ "vite": "^6.0.11",
130
130
  "vite-plugin-barrel": "^0.4.1",
131
131
  "vite-tsconfig-paths": "^5.0.1",
132
- "vxrn": "1.1.434-1738836794800",
132
+ "vxrn": "1.1.434",
133
133
  "ws": "^8.18.0",
134
134
  "xxhashjs": "^0.2.2"
135
135
  },
package/src/Root.tsx CHANGED
@@ -7,7 +7,6 @@ import {
7
7
  import { useColorScheme } from '@vxrn/universal-color-scheme'
8
8
  import {
9
9
  createContext,
10
- StrictMode,
11
10
  useContext,
12
11
  useEffect,
13
12
  useId,
@@ -63,6 +62,7 @@ globalThis['__vxrnGetContextFromReactContext'] = () => useContext(ServerAsyncLoc
63
62
  export function Root(props: RootProps) {
64
63
  const { path, routes, routeOptions, isClient, navigationContainerProps, onRenderId } = props
65
64
 
65
+ // ⚠️ <StrictMode> breaks routing!
66
66
  const context = useViteRoutes(routes, routeOptions, globalThis['__vxrnVersion'])
67
67
  const location =
68
68
  typeof window !== 'undefined' && window.location
@@ -87,46 +87,45 @@ export function Root(props: RootProps) {
87
87
  const value = globalThis['__vxrnrequestAsyncLocalStore']?.getStore() || null
88
88
 
89
89
  const contents = (
90
- <StrictMode>
91
- <ServerAsyncLocalIDContext.Provider value={value}>
92
- <ServerRenderID.Provider value={id}>
93
- <RootErrorBoundary>
94
- {/* for some reason warning if no key here */}
95
- <UpstreamNavigationContainer
96
- ref={store.navigationRef}
97
- initialState={store.initialState}
98
- linking={store.linking}
99
- onUnhandledAction={onUnhandledAction}
100
- theme={colorScheme === 'dark' ? DarkTheme : DefaultTheme}
101
- documentTitle={{
102
- enabled: false,
103
- }}
104
- {...navigationContainerProps}
105
- >
106
- <ServerLocationContext.Provider value={location}>
107
- {/* <GestureHandlerRootView> */}
108
- {/*
109
- * Due to static rendering we need to wrap these top level views in second wrapper
110
- * View's like <GestureHandlerRootView /> generate a <div> so if the parent wrapper
111
- * is a HTML document, we need to ensure its inside the <body>
112
- */}
113
- <>
114
- {/* default scroll restoration to on, but users can configure it by importing and using themselves */}
115
- <ScrollBehavior />
116
-
117
- <Component />
118
-
119
- {/* Users can override this by adding another StatusBar element anywhere higher in the component tree. */}
120
- </>
121
- {/* {!hasViewControllerBasedStatusBarAppearance && <StatusBar style="auto" />} */}
122
- {/* </GestureHandlerRootView> */}
123
- </ServerLocationContext.Provider>
124
- </UpstreamNavigationContainer>
125
- <PreloadLinks key="preload-links" />
126
- </RootErrorBoundary>
127
- </ServerRenderID.Provider>
128
- </ServerAsyncLocalIDContext.Provider>
129
- </StrictMode>
90
+ // <StrictMode>
91
+ <ServerAsyncLocalIDContext.Provider value={value}>
92
+ <ServerRenderID.Provider value={id}>
93
+ <RootErrorBoundary>
94
+ {/* for some reason warning if no key here */}
95
+ <UpstreamNavigationContainer
96
+ ref={store.navigationRef}
97
+ initialState={store.initialState}
98
+ linking={store.linking}
99
+ onUnhandledAction={onUnhandledAction}
100
+ theme={colorScheme === 'dark' ? DarkTheme : DefaultTheme}
101
+ documentTitle={{
102
+ enabled: false,
103
+ }}
104
+ {...navigationContainerProps}
105
+ >
106
+ <ServerLocationContext.Provider value={location}>
107
+ {/* <GestureHandlerRootView> */}
108
+ {/*
109
+ * Due to static rendering we need to wrap these top level views in second wrapper
110
+ * View's like <GestureHandlerRootView /> generate a <div> so if the parent wrapper
111
+ * is a HTML document, we need to ensure its inside the <body>
112
+ */}
113
+ <>
114
+ {/* default scroll restoration to on, but users can configure it by importing and using themselves */}
115
+ <ScrollBehavior />
116
+ <Component />
117
+
118
+ {/* Users can override this by adding another StatusBar element anywhere higher in the component tree. */}
119
+ </>
120
+ {/* {!hasViewControllerBasedStatusBarAppearance && <StatusBar style="auto" />} */}
121
+ {/* </GestureHandlerRootView> */}
122
+ </ServerLocationContext.Provider>
123
+ </UpstreamNavigationContainer>
124
+ <PreloadLinks key="preload-links" />
125
+ </RootErrorBoundary>
126
+ </ServerRenderID.Provider>
127
+ </ServerAsyncLocalIDContext.Provider>
128
+ // </StrictMode>
130
129
  )
131
130
 
132
131
  if (isClient) {
package/src/createApp.tsx CHANGED
@@ -10,8 +10,8 @@ import type { RenderAppProps } from './types'
10
10
  import ReactDOMServer from 'react-dom/server.browser'
11
11
  import { getServerHeadInsertions } from './useServerHeadInsertion'
12
12
  import { ensureExists } from './utils/ensureExists'
13
- import { SERVER_CONTEXT_POST_RENDER_STRING } from './vite/constants'
14
13
  import { getServerContext, setServerContext } from './vite/one-server-only'
14
+ import { SERVER_CONTEXT_POST_RENDER_STRING } from './vite/constants'
15
15
 
16
16
  export type CreateAppProps = { routes: Record<string, () => Promise<unknown>> }
17
17
 
package/src/render.tsx CHANGED
@@ -5,7 +5,6 @@ globalThis['__vxrnVersion'] ||= 0
5
5
 
6
6
  export function render(element: React.ReactNode) {
7
7
  if (typeof document === 'undefined') return
8
-
9
8
  if (globalThis['__vxrnRoot']) {
10
9
  globalThis['__vxrnVersion']++
11
10
  globalThis['__vxrnRoot'].render(element)
@@ -6,27 +6,28 @@ import {
6
6
  } from '@react-navigation/native'
7
7
  import * as Linking from 'expo-linking'
8
8
  import { nanoid } from 'nanoid/non-secure'
9
- import { Fragment, startTransition, type ComponentType, useSyncExternalStore } from 'react'
9
+ import { act, Fragment, startTransition, useSyncExternalStore, type ComponentType } from 'react'
10
10
  import { Platform } from 'react-native'
11
+ import type { RouteNode } from './Route'
12
+ import { getLoaderPath, getPreloadPath } from '../utils/cleanUrl'
11
13
  import type { State } from '../fork/getPathFromState'
12
14
  import { getPathDataFromState } from '../fork/getPathFromState'
13
15
  import { stripBaseUrl } from '../fork/getStateFromPath-mods'
16
+ import { getLinkingConfig, type OneLinkingOptions } from './getLinkingConfig'
17
+ import { getRoutes } from './getRoutes'
14
18
  import type { OneRouter } from '../interfaces/router'
15
19
  import { resolveHref } from '../link/href'
16
20
  import { resolve } from '../link/path'
21
+ import { matchDynamicName } from './matchers'
22
+ import { sortRoutes } from './sortRoutes'
23
+ import { getQualifiedRouteComponent } from './useScreens'
17
24
  import { assertIsReady } from '../utils/assertIsReady'
18
- import { getLoaderPath, getPreloadPath } from '../utils/cleanUrl'
19
25
  import { dynamicImport } from '../utils/dynamicImport'
26
+ import { removeSearch } from '../utils/removeSearch'
20
27
  import { shouldLinkExternally } from '../utils/url'
21
28
  import type { One } from '../vite/types'
22
- import { getLinkingConfig, type OneLinkingOptions } from './getLinkingConfig'
23
29
  import { getNormalizedStatePath, type UrlObject } from './getNormalizedStatePath'
24
- import { getRoutes } from './getRoutes'
25
30
  import { setLastAction } from './lastAction'
26
- import { matchDynamicName } from './matchers'
27
- import type { RouteNode } from './Route'
28
- import { sortRoutes } from './sortRoutes'
29
- import { getQualifiedRouteComponent } from './useScreens'
30
31
 
31
32
  // Module-scoped variables
32
33
  export let routeNode: RouteNode | null = null
@@ -143,20 +144,16 @@ function subscribeToNavigationChanges() {
143
144
  }
144
145
 
145
146
  if (shouldUpdateSubscribers) {
146
- startTransition(() => {
147
- for (const subscriber of rootStateSubscribers) {
148
- subscriber(state)
149
- }
150
- })
147
+ for (const subscriber of rootStateSubscribers) {
148
+ subscriber(state)
149
+ }
151
150
  }
152
151
  })
153
152
 
154
- startTransition(() => {
155
- updateSnapshot()
156
- for (const subscriber of storeSubscribers) {
157
- subscriber()
158
- }
159
- })
153
+ updateSnapshot()
154
+ for (const subscriber of storeSubscribers) {
155
+ subscriber()
156
+ }
160
157
  }
161
158
 
162
159
  // Navigation functions
@@ -288,11 +285,9 @@ export function subscribeToLoadingState(subscriber: OneRouter.LoadingStateListen
288
285
  }
289
286
 
290
287
  export function setLoadingState(state: OneRouter.LoadingState) {
291
- startTransition(() => {
292
- for (const listener of loadingStateSubscribers) {
293
- listener(state)
294
- }
295
- })
288
+ for (const listener of loadingStateSubscribers) {
289
+ listener(state)
290
+ }
296
291
  }
297
292
 
298
293
  // Snapshot function
@@ -510,6 +505,7 @@ export async function linkTo(href: string, event?: string, options?: OneRouter.L
510
505
  preloadRoute(href)
511
506
 
512
507
  const rootState = navigationRef.getRootState()
508
+ const action = getNavigateAction(state, rootState, event)
513
509
 
514
510
  const hash = href.indexOf('#')
515
511
  if (rootState.key && hash > 0) {
@@ -520,10 +516,9 @@ export async function linkTo(href: string, event?: string, options?: OneRouter.L
520
516
  nextOptions = options ?? null
521
517
 
522
518
  startTransition(() => {
523
- const action = getNavigateAction(state, rootState, event)
524
519
  const current = navigationRef.getCurrentRoute()
525
- navigationRef.dispatch(action)
526
520
 
521
+ navigationRef.dispatch(action)
527
522
  let warningTm
528
523
  const interval = setInterval(() => {
529
524
  const next = navigationRef.getCurrentRoute()
@@ -7,9 +7,10 @@ import type {
7
7
  RouteProp,
8
8
  ScreenListeners,
9
9
  } from '@react-navigation/native'
10
- import React, { forwardRef, memo, Suspense, useId } from 'react'
10
+ import React, { forwardRef, Suspense, useEffect } from 'react'
11
11
  import { ServerContextScript } from '../server/ServerContextScript'
12
12
  import { getPageExport } from '../utils/getPageExport'
13
+ import { useConstant } from '../utils/useConstant'
13
14
  import { EmptyRoute } from '../views/EmptyRoute'
14
15
  import { RootErrorBoundary } from '../views/RootErrorBoundary'
15
16
  import { Try } from '../views/Try'
@@ -170,11 +171,9 @@ export function getQualifiedRouteComponent(value: RouteNode) {
170
171
 
171
172
  let ScreenComponent: React.ForwardRefExoticComponent<{ segment: string; key?: string }>
172
173
 
173
- let Component
174
-
175
174
  ScreenComponent = React.forwardRef((props, ref) => {
176
- Component ||= (() => {
177
- const res = value.loadRoute()
175
+ const res = value.loadRoute()
176
+ const Component = useConstant(() => {
178
177
  const BaseComponent = getPageExport(fromImport(res)) as React.ComponentType<any>
179
178
 
180
179
  // root layout do special html handling only
@@ -186,15 +185,12 @@ export function getQualifiedRouteComponent(value: RouteNode) {
186
185
  const { children: headChildren, ...headProps } = head?.props || {}
187
186
  const serverContext = useServerContext()
188
187
 
189
- // let finalChildren = <Suspense fallback={null}>{children}</Suspense>
190
- let finalChildren = children
191
-
192
188
  if (process.env.TAMAGUI_TARGET === 'native') {
193
189
  // on native we just ignore all html/body/head
194
- return finalChildren
190
+ return children
195
191
  }
196
192
 
197
- finalChildren = (
193
+ const contents = (
198
194
  <>
199
195
  <head key="head" {...headProps}>
200
196
  <DevHead />
@@ -210,7 +206,7 @@ export function getQualifiedRouteComponent(value: RouteNode) {
210
206
  {headChildren}
211
207
  </head>
212
208
  <body key="body" suppressHydrationWarning {...bodyProps}>
213
- <SafeAreaProviderCompat>{finalChildren}</SafeAreaProviderCompat>
209
+ <SafeAreaProviderCompat>{children}</SafeAreaProviderCompat>
214
210
  </body>
215
211
  </>
216
212
  )
@@ -219,25 +215,67 @@ export function getQualifiedRouteComponent(value: RouteNode) {
219
215
  // tamagui and libraries can add className on hydration to have ssr safe styling
220
216
  // so supress hydration warnings here
221
217
  <html suppressHydrationWarning lang="en-US" {...htmlProps}>
222
- {finalChildren}
218
+ {contents}
223
219
  </html>
224
220
  )
225
221
  })
226
222
  }
227
223
 
228
224
  return BaseComponent
229
- })()
225
+ })
230
226
 
231
227
  if (process.env.NODE_ENV === 'development' && process.env.DEBUG === 'one') {
232
228
  console.groupCollapsed(`Render ${props.key} ${props.segment}`)
229
+ console.info(`res`, res)
233
230
  console.info(`value`, value)
231
+ console.info(`fromImport`, fromImport(res))
234
232
  console.info(`Component`, Component)
235
233
  console.groupEnd()
236
234
  }
237
235
 
238
- return <Component {...props} ref={ref} />
236
+ return (
237
+ // <Suspense fallback={null}>
238
+ <Component {...props} ref={ref} />
239
+ // </Suspense>
240
+ )
239
241
  })
240
242
 
243
+ const wrapSuspense = (children: any) => {
244
+ if (process.env.TAMAGUI_TARGET === 'native') {
245
+ return <Suspense fallback={<SuspenseFallback route={value} />}>{children}</Suspense>
246
+ }
247
+ // on web avoiding suspense for now
248
+ // its causing page flickers, we need to make sure we wrap loaders + page nav
249
+ // in startTransition
250
+ return children
251
+ }
252
+
253
+ const getLoadable = (props: any, ref: any) => {
254
+ return (
255
+ <RootErrorBoundary>
256
+ {wrapSuspense(
257
+ <ScreenComponent
258
+ {...{
259
+ ...props,
260
+ ref,
261
+ // Expose the template segment path, e.g. `(home)`, `[foo]`, `index`
262
+ // the intention is to make it possible to deduce shared routes.
263
+ segment: value.route,
264
+ }}
265
+ />
266
+ )}
267
+ </RootErrorBoundary>
268
+ )
269
+ }
270
+
271
+ const SuspenseFallback = ({ route }: { route: RouteNode }) => {
272
+ useEffect(() => {
273
+ // console.info(`⚠️ Suspended:`, route)
274
+ }, [route])
275
+
276
+ return null
277
+ }
278
+
241
279
  const QualifiedRoute = React.forwardRef(
242
280
  (
243
281
  {
@@ -251,19 +289,10 @@ export function getQualifiedRouteComponent(value: RouteNode) {
251
289
  }: any,
252
290
  ref: any
253
291
  ) => {
292
+ const loadable = getLoadable(props, ref)
254
293
  return (
255
294
  <Route route={route} node={value}>
256
- <RootErrorBoundary>
257
- <ScreenComponent
258
- {...{
259
- ...props,
260
- ref,
261
- // Expose the template segment path, e.g. `(home)`, `[foo]`, `index`
262
- // the intention is to make it possible to deduce shared routes.
263
- segment: value.route,
264
- }}
265
- />
266
- </RootErrorBoundary>
295
+ {loadable}
267
296
  </Route>
268
297
  )
269
298
  }
@@ -272,7 +301,7 @@ export function getQualifiedRouteComponent(value: RouteNode) {
272
301
  QualifiedRoute.displayName = `Route(${value.route})`
273
302
 
274
303
  qualifiedStore.set(value, QualifiedRoute)
275
- return memo(QualifiedRoute)
304
+ return QualifiedRoute
276
305
  }
277
306
 
278
307
  /** @returns a function which provides a screen id that matches the dynamic route name in params. */
@@ -337,20 +366,6 @@ function routeToScreen(route: RouteNode, { options, ...props }: Partial<ScreenPr
337
366
 
338
367
  return output
339
368
  }}
340
- // this doesn't work, also probably better to wrap suspense only on root layout in useScreens
341
- // but it doesnt seem to pick up our startTransitions which i wrapped in a few places.
342
- // now i thought this was due to our use of useSyncExternalStore, but i replaced that with
343
- // `use-sync-external-store/shim` and i also replaced the one in react-navigation that does
344
- // `use-sync-external-store/with-selector` to `use-sync-external-store/shim/with-selector`
345
- // but still it seems something else must be updating state outside a transition.
346
-
347
- // layout={({ children }) => {
348
- // console.log('route.contextKey', route.contextKey)
349
- // if (route.contextKey === '') {
350
- // return <Suspense fallback={null}>{children}</Suspense>
351
- // }
352
- // return children
353
- // }}
354
369
  getComponent={() => {
355
370
  // log here to see which route is rendered
356
371
  // console.log('getting', route, getQualifiedRouteComponent(route))
package/src/vite/one.ts CHANGED
@@ -155,7 +155,7 @@ export function one(options: One.PluginOptions = {}): PluginOption {
155
155
  ),
156
156
 
157
157
  {
158
- name: 'one-aliases',
158
+ name: 'one-slim-deps',
159
159
  enforce: 'pre',
160
160
 
161
161
  config() {
@@ -177,11 +177,6 @@ export function one(options: One.PluginOptions = {}): PluginOption {
177
177
  return {
178
178
  resolve: {
179
179
  alias: {
180
- // testing getting transition between routes working
181
- // 'use-sync-external-store/with-selector': resolvePath(
182
- // 'use-sync-external-store/shim/with-selector'
183
- // ),
184
-
185
180
  ...(tslibLitePath && {
186
181
  tslib: tslibLitePath,
187
182
  }),
package/src/vite/types.ts CHANGED
@@ -9,7 +9,6 @@ import type {
9
9
  VXRNServePlatform,
10
10
  } from 'vxrn'
11
11
  import type { RouteNode } from '../router/Route'
12
- import type { Options as ReactScanOptions } from 'react-scan'
13
12
 
14
13
  export type RouteInfo<TRegex = string> = {
15
14
  file: string
@@ -40,6 +39,20 @@ export namespace One {
40
39
  [key: string]: DepOptimize | DepPatch['patchFiles']
41
40
  }
42
41
 
42
+ export type ReactScanOptions = {
43
+ enabled?: boolean
44
+ includeChildren?: boolean
45
+ playSound?: boolean
46
+ log?: boolean
47
+ showToolbar?: boolean
48
+ renderCountThreshold?: number
49
+ resetCountTimeout?: number
50
+ maxRenders?: number
51
+ report?: boolean
52
+ alwaysShowLabels?: boolean
53
+ animationSpeed?: 'slow' | 'fast' | 'off'
54
+ }
55
+
43
56
  type PluginPlatformTarget = 'native' | 'web'
44
57
 
45
58
  export type PluginOptions = {
@@ -49,7 +62,7 @@ export namespace One {
49
62
  * - It makes zero hand of seamelessly from server to client without flicker
50
63
  *
51
64
  */
52
- // zero?: boolean
65
+ zero?: boolean
53
66
 
54
67
  /**
55
68
  * Per-file control over how code transforms.
@@ -1 +1 @@
1
- {"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAOd,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG;IAC7C,UAA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,KAAK,IAAI,CAAA;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,mBAAmB,CAAA;IAC3B,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,CAAA;CAChC,CAAA;AAED,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;AAOD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,kDAsFpC"}
@@ -1,6 +1,6 @@
1
1
  import { type DrawerNavigationOptions, type DrawerNavigationEventMap } from '@react-navigation/drawer';
2
2
  import type { DrawerNavigationState, ParamListBase } from '@react-navigation/native';
3
- export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/drawer").DrawerNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
3
+ export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/drawer").DrawerNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
4
4
  children: React.ReactNode;
5
5
  layout?: ((props: {
6
6
  state: DrawerNavigationState<ParamListBase>;
@@ -48,7 +48,7 @@ export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit
48
48
  UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
49
49
  } & {
50
50
  id?: undefined;
51
- }, "children"> & Partial<Pick<Omit<import("@react-navigation/drawer").DrawerNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
51
+ }, "children"> & Partial<Pick<Omit<import("@react-navigation/drawer").DrawerNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
52
52
  children: React.ReactNode;
53
53
  layout?: ((props: {
54
54
  state: DrawerNavigationState<ParamListBase>;
@@ -1,6 +1,6 @@
1
1
  import type { ParamListBase, StackNavigationState } from '@react-navigation/native';
2
2
  import { type NativeStackNavigationEventMap, type NativeStackNavigationOptions } from '@react-navigation/native-stack';
3
- export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/native-stack").NativeStackNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
3
+ export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/native-stack").NativeStackNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
4
4
  children: React.ReactNode;
5
5
  layout?: ((props: {
6
6
  state: StackNavigationState<ParamListBase>;
@@ -44,7 +44,7 @@ export declare const Stack: import("react").ForwardRefExoticComponent<Omit<Omit<
44
44
  UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
45
45
  } & {
46
46
  id?: undefined;
47
- }, "children"> & Partial<Pick<Omit<import("@react-navigation/native-stack").NativeStackNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
47
+ }, "children"> & Partial<Pick<Omit<import("@react-navigation/native-stack").NativeStackNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
48
48
  children: React.ReactNode;
49
49
  layout?: ((props: {
50
50
  state: StackNavigationState<ParamListBase>;
@@ -1,6 +1,6 @@
1
1
  import { type BottomTabNavigationEventMap, type BottomTabNavigationOptions } from '@react-navigation/bottom-tabs';
2
2
  import type { ParamListBase, TabNavigationState } from '@react-navigation/native';
3
- export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/bottom-tabs").BottomTabNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
3
+ export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/bottom-tabs").BottomTabNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
4
4
  children: React.ReactNode;
5
5
  layout?: ((props: {
6
6
  state: TabNavigationState<ParamListBase>;
@@ -44,7 +44,7 @@ export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<i
44
44
  UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
45
45
  } & {
46
46
  id?: undefined;
47
- }, "children"> & Partial<Pick<Omit<import("@react-navigation/bottom-tabs").BottomTabNavigatorProps, "children" | "layout" | "initialRouteName" | "id" | "screenOptions" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
47
+ }, "children"> & Partial<Pick<Omit<import("@react-navigation/bottom-tabs").BottomTabNavigatorProps, "children" | "layout" | "initialRouteName" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
48
48
  children: React.ReactNode;
49
49
  layout?: ((props: {
50
50
  state: TabNavigationState<ParamListBase>;
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,QAiC9C"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,QAgC9C"}
@@ -1,10 +1,10 @@
1
1
  import { type NavigationContainerRefWithCurrent } from '@react-navigation/native';
2
2
  import { type ComponentType } from 'react';
3
+ import type { RouteNode } from './Route';
4
+ import { type OneLinkingOptions } from './getLinkingConfig';
3
5
  import type { OneRouter } from '../interfaces/router';
4
6
  import type { One } from '../vite/types';
5
- import { type OneLinkingOptions } from './getLinkingConfig';
6
7
  import { type UrlObject } from './getNormalizedStatePath';
7
- import type { RouteNode } from './Route';
8
8
  export declare let routeNode: RouteNode | null;
9
9
  export declare let rootComponent: ComponentType;
10
10
  export declare let linking: OneLinkingOptions | undefined;
@@ -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,EAA6B,KAAK,aAAa,EAAwB,MAAM,OAAO,CAAA;AAK3F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAOrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAIjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC,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,EAAE,SAAS,GAAG,SAAS,CAAA;AAI3C,eAAO,IAAI,aAAa,EAAE,SAAS,CAAC,aAA2B,CAAA;AAQ/D,wBAAgB,UAAU,CACxB,OAAO,EAAE,GAAG,CAAC,YAAY,EACzB,GAAG,EAAE,iCAAiC,CAAC,eAAe,CAAC,aAAa,CAAC,EACrE,eAAe,CAAC,EAAE,GAAG,QAkBtB;AAyFD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,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;;;;qCA9RS,IAAI;;gCAIF,IAAI;EA4R1C;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,iBA2G3F"}
@@ -27,7 +27,7 @@ export declare function useSortedScreens(order: ScreenProps[], options?: {
27
27
  onlyMatching?: boolean;
28
28
  }): React.ReactNode[];
29
29
  /** Wrap the component with various enhancements and add access to child routes. */
30
- export declare function getQualifiedRouteComponent(value: RouteNode): React.ComponentType<any> | React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
30
+ export declare function getQualifiedRouteComponent(value: RouteNode): React.ComponentType<any> | React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
31
31
  /** @returns a function which provides a screen id that matches the dynamic route name in params. */
32
32
  export declare function createGetIdForRoute(route: Pick<RouteNode, 'dynamic' | 'route' | 'contextKey' | 'children'>): ({ params }?: {
33
33
  params?: Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"useScreens.d.ts","sourceRoot":"","sources":["../../src/router/useScreens.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,aAAa,EACb,SAAS,EACT,eAAe,EAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAA4C,MAAM,OAAO,CAAA;AAShE,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,SAAS,CAAA;AAKhB,eAAO,MAAQ,MAAM,OAAE,KAAK,KAAwC,CAAA;AAEpE,MAAM,MAAM,WAAW,CACrB,QAAQ,SAAS,MAAM,CAAC,MAAM,EA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AAC,SAAS,EAAE,CAYnB;AA4BD,mFAAmF;AACnF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,+GA0I1D;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;aAU5B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aAoB/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAU,YAAY,EAAc,MAAM,MAAM,CAAA;AAK5D,OAAO,qBAAqB,CAAA;AAU5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAkBlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CA4bjE"}
1
+ {"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAU,YAAY,EAAc,MAAM,MAAM,CAAA;AAK5D,OAAO,qBAAqB,CAAA;AAU5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAkBlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CAubjE"}