one 1.1.340 → 1.1.342
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.
- package/dist/cjs/Root.cjs +52 -64
- package/dist/cjs/Root.js +42 -44
- package/dist/cjs/Root.js.map +1 -1
- package/dist/cjs/Root.native.js +35 -49
- package/dist/cjs/Root.native.js.map +2 -2
- package/dist/cjs/router/router.js.map +1 -1
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/useScreens.cjs +2 -28
- package/dist/cjs/useScreens.js +2 -23
- package/dist/cjs/useScreens.js.map +2 -2
- package/dist/cjs/useScreens.native.js +2 -26
- package/dist/cjs/useScreens.native.js.map +2 -2
- package/dist/cjs/useViteRoutes.cjs +1 -9
- package/dist/cjs/useViteRoutes.js +2 -7
- package/dist/cjs/useViteRoutes.js.map +1 -1
- package/dist/cjs/useViteRoutes.native.js +2 -7
- package/dist/cjs/useViteRoutes.native.js.map +2 -2
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/cjs/zero/types.native.js.map +1 -1
- package/dist/cjs/zero/useQueryZero.js.map +1 -1
- package/dist/cjs/zero/useQueryZero.native.js.map +1 -1
- package/dist/esm/Root.js +41 -43
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs +47 -60
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +40 -54
- package/dist/esm/Root.native.js.map +2 -2
- package/dist/esm/router/router.js.map +1 -1
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/useScreens.js +3 -25
- package/dist/esm/useScreens.js.map +2 -2
- package/dist/esm/useScreens.mjs +3 -29
- package/dist/esm/useScreens.mjs.map +1 -1
- package/dist/esm/useScreens.native.js +3 -28
- package/dist/esm/useScreens.native.js.map +2 -2
- package/dist/esm/useViteRoutes.js +2 -7
- package/dist/esm/useViteRoutes.js.map +1 -1
- package/dist/esm/useViteRoutes.mjs +1 -8
- package/dist/esm/useViteRoutes.mjs.map +1 -1
- package/dist/esm/useViteRoutes.native.js +2 -7
- package/dist/esm/useViteRoutes.native.js.map +2 -2
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/esm/zero/useQueryZero.js.map +1 -1
- package/dist/esm/zero/useQueryZero.mjs.map +1 -1
- package/dist/esm/zero/useQueryZero.native.js.map +1 -1
- package/package.json +7 -7
- package/src/Root.tsx +76 -83
- package/src/router/router.ts +1 -0
- package/src/useScreens.tsx +55 -51
- package/src/useViteRoutes.tsx +3 -15
- package/src/vite/plugins/fileSystemRouterPlugin.tsx +4 -0
- package/src/zero/types.ts +3 -1
- package/src/zero/useQueryZero.ts +3 -1
- package/types/Root.d.ts +1 -1
- package/types/Root.d.ts.map +1 -1
- package/types/layouts/Drawer.d.ts +2 -2
- package/types/layouts/Stack.d.ts +2 -2
- package/types/layouts/Tabs.d.ts +2 -2
- package/types/router/router.d.ts.map +1 -1
- package/types/useScreens.d.ts.map +1 -1
- package/types/useViteRoutes.d.ts.map +1 -1
- package/types/vite/plugins/fileSystemRouterPlugin.d.ts.map +1 -1
- package/types/zero/types.d.ts +2 -1
- package/types/zero/types.d.ts.map +1 -1
- package/types/zero/useQueryZero.d.ts +2 -1
- package/types/zero/useQueryZero.d.ts.map +1 -1
package/src/Root.tsx
CHANGED
@@ -1,24 +1,23 @@
|
|
1
|
-
import {
|
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
|
-
<
|
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 (
|
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
|
-
{
|
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(
|
117
|
-
globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(
|
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/router/router.ts
CHANGED
package/src/useScreens.tsx
CHANGED
@@ -6,7 +6,7 @@ import type {
|
|
6
6
|
RouteProp,
|
7
7
|
ScreenListeners,
|
8
8
|
} from '@react-navigation/native'
|
9
|
-
import React, { Suspense, useEffect
|
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,55 @@ 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
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
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>
|
194
200
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
// <Suspense fallback={null}>
|
203
|
-
<Component {...props} ref={ref} />
|
204
|
-
// </Suspense>
|
205
|
-
)
|
206
|
-
})
|
207
|
-
}
|
201
|
+
return (
|
202
|
+
// <Suspense fallback={null}>
|
203
|
+
<Component {...props} ref={ref} />
|
204
|
+
// </Suspense>
|
205
|
+
)
|
206
|
+
})
|
207
|
+
// }
|
208
208
|
|
209
209
|
const wrapSuspense = (children: any) => {
|
210
210
|
if (process.env.TAMAGUI_TARGET === 'native') {
|
@@ -328,7 +328,11 @@ function routeToScreen(route: RouteNode, { options, ...props }: Partial<ScreenPr
|
|
328
328
|
|
329
329
|
return output
|
330
330
|
}}
|
331
|
-
getComponent={() =>
|
331
|
+
getComponent={() => {
|
332
|
+
// log here to see which route is rendered
|
333
|
+
// console.log('getting', route, getQualifiedRouteComponent(route))
|
334
|
+
return getQualifiedRouteComponent(route)
|
335
|
+
}}
|
332
336
|
/>
|
333
337
|
)
|
334
338
|
}
|
package/src/useViteRoutes.tsx
CHANGED
@@ -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) => {
|
@@ -142,6 +142,10 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
142
142
|
throw new Error(`No transformed js returned`)
|
143
143
|
}
|
144
144
|
|
145
|
+
// if (!transformedJS.includes('loader')) {
|
146
|
+
// return `console.log("hi")`
|
147
|
+
// }
|
148
|
+
|
145
149
|
const exported = await runner.import(routeFile)
|
146
150
|
|
147
151
|
const loaderData = await exported.loader?.(loaderProps)
|
package/src/zero/types.ts
CHANGED
package/src/zero/useQueryZero.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import { useLayoutEffect, useState } from 'react'
|
2
|
-
import type { Schema } from 'zql/src/zql/query/schema.js'
|
2
|
+
// import type { Schema } from 'zql/src/zql/query/schema.js'
|
3
|
+
type Schema = any
|
4
|
+
|
3
5
|
// @ts-ignore
|
4
6
|
import type { Query, QueryType, Smash } from 'zql/src/zql/query/query.js'
|
5
7
|
// @ts-ignore
|
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;
|
package/types/Root.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAiC,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7F,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAMlE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,KAAK,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"}
|
@@ -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, "
|
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, "
|
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<{
|
package/types/layouts/Stack.d.ts
CHANGED
@@ -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, "
|
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, "
|
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<{
|
package/types/layouts/Tabs.d.ts
CHANGED
@@ -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, "
|
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, "
|
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,M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BAAQ,QAS/E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,aAYxD;AAmBD,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,SAAS,CAAC,iBAAiB,cAK3E;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,IAAI,cAKtD;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"}
|
@@ -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,
|
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,CA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,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":"
|
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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fileSystemRouterPlugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/fileSystemRouterPlugin.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAW1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAM3C,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"fileSystemRouterPlugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/fileSystemRouterPlugin.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAW1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAM3C,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,CAuX/E"}
|
package/types/zero/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
type Query<a, b> = any;
|
2
|
+
type QueryRowType<a> = any;
|
2
3
|
type GenericQuery = Query<any, any>;
|
3
4
|
export type ZeroResult<X extends GenericQuery | ((props: any) => GenericQuery)> = X extends (props: any) => infer Y ? Y extends GenericQuery ? QueryRowType<Y> : unknown : X extends GenericQuery ? QueryRowType<X> : unknown;
|
4
5
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/zero/types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/zero/types.ts"],"names":[],"mappings":"AACA,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,CAAA;AACtB,KAAK,YAAY,CAAC,CAAC,IAAI,GAAG,CAAA;AAE1B,KAAK,YAAY,GAAG,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAInC,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,YAAY,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,YAAY,CAAC,IAAI,CAAC,SAAS,CAC1F,KAAK,EAAE,GAAG,KACP,MAAM,CAAC,GACR,CAAC,SAAS,YAAY,GACpB,YAAY,CAAC,CAAC,CAAC,GACf,OAAO,GACT,CAAC,SAAS,YAAY,GACpB,YAAY,CAAC,CAAC,CAAC,GACf,OAAO,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
type Schema = any;
|
2
2
|
import type { Query, QueryType, Smash } from 'zql/src/zql/query/query.js';
|
3
3
|
export declare function useQuery<TSchema extends Schema, TReturn extends QueryType>(q: Query<TSchema, TReturn>, enable?: boolean): Smash<TReturn>;
|
4
|
+
export {};
|
4
5
|
//# sourceMappingURL=useQueryZero.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useQueryZero.d.ts","sourceRoot":"","sources":["../../src/zero/useQueryZero.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useQueryZero.d.ts","sourceRoot":"","sources":["../../src/zero/useQueryZero.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG,GAAG,CAAA;AAGjB,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAMzE,wBAAgB,QAAQ,CAAC,OAAO,SAAS,MAAM,EAAE,OAAO,SAAS,SAAS,EACxE,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,EAC1B,MAAM,UAAO,GACZ,KAAK,CAAC,OAAO,CAAC,CA2BhB"}
|