one 1.1.433 → 1.1.434-1738836794800

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 +23 -24
  2. package/dist/cjs/Root.js +21 -24
  3. package/dist/cjs/Root.js.map +1 -1
  4. package/dist/cjs/Root.native.js +3 -4
  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 +19 -13
  11. package/dist/cjs/router/router.js +14 -9
  12. package/dist/cjs/router/router.js.map +1 -1
  13. package/dist/cjs/router/router.native.js +44 -40
  14. package/dist/cjs/router/router.native.js.map +2 -2
  15. package/dist/cjs/router/useScreens.cjs +65 -81
  16. package/dist/cjs/router/useScreens.js +38 -49
  17. package/dist/cjs/router/useScreens.js.map +1 -1
  18. package/dist/cjs/router/useScreens.native.js +32 -41
  19. package/dist/cjs/router/useScreens.native.js.map +2 -2
  20. package/dist/cjs/vite/one.cjs +5 -1
  21. package/dist/cjs/vite/one.js +5 -1
  22. package/dist/cjs/vite/one.js.map +1 -1
  23. package/dist/cjs/vite/one.native.js +5 -1
  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 +22 -24
  27. package/dist/esm/Root.js.map +1 -1
  28. package/dist/esm/Root.mjs +24 -25
  29. package/dist/esm/Root.mjs.map +1 -1
  30. package/dist/esm/Root.native.js +4 -5
  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 +19 -14
  39. package/dist/esm/router/router.js.map +1 -1
  40. package/dist/esm/router/router.mjs +18 -12
  41. package/dist/esm/router/router.mjs.map +1 -1
  42. package/dist/esm/router/router.native.js +49 -45
  43. package/dist/esm/router/router.native.js.map +2 -2
  44. package/dist/esm/router/useScreens.js +38 -50
  45. package/dist/esm/router/useScreens.js.map +1 -1
  46. package/dist/esm/router/useScreens.mjs +66 -82
  47. package/dist/esm/router/useScreens.mjs.map +1 -1
  48. package/dist/esm/router/useScreens.native.js +32 -42
  49. package/dist/esm/router/useScreens.native.js.map +2 -2
  50. package/dist/esm/vite/one.js +5 -1
  51. package/dist/esm/vite/one.js.map +1 -1
  52. package/dist/esm/vite/one.mjs +5 -1
  53. package/dist/esm/vite/one.mjs.map +1 -1
  54. package/dist/esm/vite/one.native.js +5 -1
  55. package/dist/esm/vite/one.native.js.map +1 -1
  56. package/package.json +9 -9
  57. package/src/Root.tsx +41 -40
  58. package/src/createApp.tsx +1 -1
  59. package/src/render.tsx +1 -0
  60. package/src/router/router.ts +26 -21
  61. package/src/router/useScreens.tsx +40 -55
  62. package/src/vite/one.ts +6 -1
  63. package/src/vite/types.ts +2 -15
  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 +1 -14
  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.433",
3
+ "version": "1.1.434-1738836794800",
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.433",
98
- "@vxrn/resolve": "1.1.433",
99
- "@vxrn/tslib-lite": "1.1.433",
100
- "@vxrn/universal-color-scheme": "1.1.433",
101
- "@vxrn/use-isomorphic-layout-effect": "1.1.433",
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",
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.433",
105
+ "create-vxrn": "1.1.434-1738836794800",
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.0.11",
129
+ "vite": "^6.1.0",
130
130
  "vite-plugin-barrel": "^0.4.1",
131
131
  "vite-tsconfig-paths": "^5.0.1",
132
- "vxrn": "1.1.433",
132
+ "vxrn": "1.1.434-1738836794800",
133
133
  "ws": "^8.18.0",
134
134
  "xxhashjs": "^0.2.2"
135
135
  },
package/src/Root.tsx CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  import { useColorScheme } from '@vxrn/universal-color-scheme'
8
8
  import {
9
9
  createContext,
10
+ StrictMode,
10
11
  useContext,
11
12
  useEffect,
12
13
  useId,
@@ -62,7 +63,6 @@ globalThis['__vxrnGetContextFromReactContext'] = () => useContext(ServerAsyncLoc
62
63
  export function Root(props: RootProps) {
63
64
  const { path, routes, routeOptions, isClient, navigationContainerProps, onRenderId } = props
64
65
 
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,45 +87,46 @@ 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
- <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>
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>
129
130
  )
130
131
 
131
132
  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 { getServerContext, setServerContext } from './vite/one-server-only'
14
13
  import { SERVER_CONTEXT_POST_RENDER_STRING } from './vite/constants'
14
+ import { getServerContext, setServerContext } from './vite/one-server-only'
15
15
 
16
16
  export type CreateAppProps = { routes: Record<string, () => Promise<unknown>> }
17
17
 
package/src/render.tsx CHANGED
@@ -5,6 +5,7 @@ globalThis['__vxrnVersion'] ||= 0
5
5
 
6
6
  export function render(element: React.ReactNode) {
7
7
  if (typeof document === 'undefined') return
8
+
8
9
  if (globalThis['__vxrnRoot']) {
9
10
  globalThis['__vxrnVersion']++
10
11
  globalThis['__vxrnRoot'].render(element)
@@ -6,28 +6,27 @@ 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 { act, Fragment, startTransition, useSyncExternalStore, type ComponentType } from 'react'
9
+ import { Fragment, startTransition, type ComponentType, useSyncExternalStore } from 'react'
10
10
  import { Platform } from 'react-native'
11
- import type { RouteNode } from './Route'
12
- import { getLoaderPath, getPreloadPath } from '../utils/cleanUrl'
13
11
  import type { State } from '../fork/getPathFromState'
14
12
  import { getPathDataFromState } from '../fork/getPathFromState'
15
13
  import { stripBaseUrl } from '../fork/getStateFromPath-mods'
16
- import { getLinkingConfig, type OneLinkingOptions } from './getLinkingConfig'
17
- import { getRoutes } from './getRoutes'
18
14
  import type { OneRouter } from '../interfaces/router'
19
15
  import { resolveHref } from '../link/href'
20
16
  import { resolve } from '../link/path'
21
- import { matchDynamicName } from './matchers'
22
- import { sortRoutes } from './sortRoutes'
23
- import { getQualifiedRouteComponent } from './useScreens'
24
17
  import { assertIsReady } from '../utils/assertIsReady'
18
+ import { getLoaderPath, getPreloadPath } from '../utils/cleanUrl'
25
19
  import { dynamicImport } from '../utils/dynamicImport'
26
- import { removeSearch } from '../utils/removeSearch'
27
20
  import { shouldLinkExternally } from '../utils/url'
28
21
  import type { One } from '../vite/types'
22
+ import { getLinkingConfig, type OneLinkingOptions } from './getLinkingConfig'
29
23
  import { getNormalizedStatePath, type UrlObject } from './getNormalizedStatePath'
24
+ import { getRoutes } from './getRoutes'
30
25
  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'
31
30
 
32
31
  // Module-scoped variables
33
32
  export let routeNode: RouteNode | null = null
@@ -144,16 +143,20 @@ function subscribeToNavigationChanges() {
144
143
  }
145
144
 
146
145
  if (shouldUpdateSubscribers) {
147
- for (const subscriber of rootStateSubscribers) {
148
- subscriber(state)
149
- }
146
+ startTransition(() => {
147
+ for (const subscriber of rootStateSubscribers) {
148
+ subscriber(state)
149
+ }
150
+ })
150
151
  }
151
152
  })
152
153
 
153
- updateSnapshot()
154
- for (const subscriber of storeSubscribers) {
155
- subscriber()
156
- }
154
+ startTransition(() => {
155
+ updateSnapshot()
156
+ for (const subscriber of storeSubscribers) {
157
+ subscriber()
158
+ }
159
+ })
157
160
  }
158
161
 
159
162
  // Navigation functions
@@ -285,9 +288,11 @@ export function subscribeToLoadingState(subscriber: OneRouter.LoadingStateListen
285
288
  }
286
289
 
287
290
  export function setLoadingState(state: OneRouter.LoadingState) {
288
- for (const listener of loadingStateSubscribers) {
289
- listener(state)
290
- }
291
+ startTransition(() => {
292
+ for (const listener of loadingStateSubscribers) {
293
+ listener(state)
294
+ }
295
+ })
291
296
  }
292
297
 
293
298
  // Snapshot function
@@ -505,7 +510,6 @@ export async function linkTo(href: string, event?: string, options?: OneRouter.L
505
510
  preloadRoute(href)
506
511
 
507
512
  const rootState = navigationRef.getRootState()
508
- const action = getNavigateAction(state, rootState, event)
509
513
 
510
514
  const hash = href.indexOf('#')
511
515
  if (rootState.key && hash > 0) {
@@ -516,9 +520,10 @@ export async function linkTo(href: string, event?: string, options?: OneRouter.L
516
520
  nextOptions = options ?? null
517
521
 
518
522
  startTransition(() => {
523
+ const action = getNavigateAction(state, rootState, event)
519
524
  const current = navigationRef.getCurrentRoute()
520
-
521
525
  navigationRef.dispatch(action)
526
+
522
527
  let warningTm
523
528
  const interval = setInterval(() => {
524
529
  const next = navigationRef.getCurrentRoute()
@@ -7,10 +7,9 @@ import type {
7
7
  RouteProp,
8
8
  ScreenListeners,
9
9
  } from '@react-navigation/native'
10
- import React, { forwardRef, Suspense, useEffect } from 'react'
10
+ import React, { forwardRef, memo, Suspense, useId } from 'react'
11
11
  import { ServerContextScript } from '../server/ServerContextScript'
12
12
  import { getPageExport } from '../utils/getPageExport'
13
- import { useConstant } from '../utils/useConstant'
14
13
  import { EmptyRoute } from '../views/EmptyRoute'
15
14
  import { RootErrorBoundary } from '../views/RootErrorBoundary'
16
15
  import { Try } from '../views/Try'
@@ -171,9 +170,11 @@ export function getQualifiedRouteComponent(value: RouteNode) {
171
170
 
172
171
  let ScreenComponent: React.ForwardRefExoticComponent<{ segment: string; key?: string }>
173
172
 
173
+ let Component
174
+
174
175
  ScreenComponent = React.forwardRef((props, ref) => {
175
- const res = value.loadRoute()
176
- const Component = useConstant(() => {
176
+ Component ||= (() => {
177
+ const res = value.loadRoute()
177
178
  const BaseComponent = getPageExport(fromImport(res)) as React.ComponentType<any>
178
179
 
179
180
  // root layout do special html handling only
@@ -185,12 +186,15 @@ export function getQualifiedRouteComponent(value: RouteNode) {
185
186
  const { children: headChildren, ...headProps } = head?.props || {}
186
187
  const serverContext = useServerContext()
187
188
 
189
+ // let finalChildren = <Suspense fallback={null}>{children}</Suspense>
190
+ let finalChildren = children
191
+
188
192
  if (process.env.TAMAGUI_TARGET === 'native') {
189
193
  // on native we just ignore all html/body/head
190
- return children
194
+ return finalChildren
191
195
  }
192
196
 
193
- const contents = (
197
+ finalChildren = (
194
198
  <>
195
199
  <head key="head" {...headProps}>
196
200
  <DevHead />
@@ -206,7 +210,7 @@ export function getQualifiedRouteComponent(value: RouteNode) {
206
210
  {headChildren}
207
211
  </head>
208
212
  <body key="body" suppressHydrationWarning {...bodyProps}>
209
- <SafeAreaProviderCompat>{children}</SafeAreaProviderCompat>
213
+ <SafeAreaProviderCompat>{finalChildren}</SafeAreaProviderCompat>
210
214
  </body>
211
215
  </>
212
216
  )
@@ -215,67 +219,25 @@ export function getQualifiedRouteComponent(value: RouteNode) {
215
219
  // tamagui and libraries can add className on hydration to have ssr safe styling
216
220
  // so supress hydration warnings here
217
221
  <html suppressHydrationWarning lang="en-US" {...htmlProps}>
218
- {contents}
222
+ {finalChildren}
219
223
  </html>
220
224
  )
221
225
  })
222
226
  }
223
227
 
224
228
  return BaseComponent
225
- })
229
+ })()
226
230
 
227
231
  if (process.env.NODE_ENV === 'development' && process.env.DEBUG === 'one') {
228
232
  console.groupCollapsed(`Render ${props.key} ${props.segment}`)
229
- console.info(`res`, res)
230
233
  console.info(`value`, value)
231
- console.info(`fromImport`, fromImport(res))
232
234
  console.info(`Component`, Component)
233
235
  console.groupEnd()
234
236
  }
235
237
 
236
- return (
237
- // <Suspense fallback={null}>
238
- <Component {...props} ref={ref} />
239
- // </Suspense>
240
- )
238
+ return <Component {...props} ref={ref} />
241
239
  })
242
240
 
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
-
279
241
  const QualifiedRoute = React.forwardRef(
280
242
  (
281
243
  {
@@ -289,10 +251,19 @@ export function getQualifiedRouteComponent(value: RouteNode) {
289
251
  }: any,
290
252
  ref: any
291
253
  ) => {
292
- const loadable = getLoadable(props, ref)
293
254
  return (
294
255
  <Route route={route} node={value}>
295
- {loadable}
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>
296
267
  </Route>
297
268
  )
298
269
  }
@@ -301,7 +272,7 @@ export function getQualifiedRouteComponent(value: RouteNode) {
301
272
  QualifiedRoute.displayName = `Route(${value.route})`
302
273
 
303
274
  qualifiedStore.set(value, QualifiedRoute)
304
- return QualifiedRoute
275
+ return memo(QualifiedRoute)
305
276
  }
306
277
 
307
278
  /** @returns a function which provides a screen id that matches the dynamic route name in params. */
@@ -366,6 +337,20 @@ function routeToScreen(route: RouteNode, { options, ...props }: Partial<ScreenPr
366
337
 
367
338
  return output
368
339
  }}
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
+ // }}
369
354
  getComponent={() => {
370
355
  // log here to see which route is rendered
371
356
  // 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-slim-deps',
158
+ name: 'one-aliases',
159
159
  enforce: 'pre',
160
160
 
161
161
  config() {
@@ -177,6 +177,11 @@ 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
+
180
185
  ...(tslibLitePath && {
181
186
  tslib: tslibLitePath,
182
187
  }),
package/src/vite/types.ts CHANGED
@@ -9,6 +9,7 @@ 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'
12
13
 
13
14
  export type RouteInfo<TRegex = string> = {
14
15
  file: string
@@ -39,20 +40,6 @@ export namespace One {
39
40
  [key: string]: DepOptimize | DepPatch['patchFiles']
40
41
  }
41
42
 
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
-
56
43
  type PluginPlatformTarget = 'native' | 'web'
57
44
 
58
45
  export type PluginOptions = {
@@ -62,7 +49,7 @@ export namespace One {
62
49
  * - It makes zero hand of seamelessly from server to client without flicker
63
50
  *
64
51
  */
65
- zero?: boolean
52
+ // zero?: boolean
66
53
 
67
54
  /**
68
55
  * 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,EAML,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,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI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;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" | "screenOptions" | "id" | "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" | "id" | "screenOptions" | "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" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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> & {
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" | "screenOptions" | "id" | "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" | "id" | "screenOptions" | "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" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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> & {
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" | "screenOptions" | "id" | "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" | "id" | "screenOptions" | "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" | "screenOptions" | "id" | "screenListeners" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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> & {
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,QAgC9C"}
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,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';
5
3
  import type { OneRouter } from '../interfaces/router';
6
4
  import type { One } from '../vite/types';
5
+ import { type OneLinkingOptions } from './getLinkingConfig';
7
6
  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,EAAwD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAEhG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE7E,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,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;AAqFD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,iBAE9E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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.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
30
+ export declare function getQualifiedRouteComponent(value: RouteNode): React.ComponentType<any> | React.MemoExoticComponent<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,KAA0C,MAAM,OAAO,CAAA;AAU9D,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,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,G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AAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,0IA8G1D;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,CAubjE"}
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"}