one 1.1.298 → 1.1.300
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +1 -1
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +1 -1
- package/dist/cjs/cleanUrl.native.js.map +1 -1
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runAndroid.js.map +6 -0
- package/dist/cjs/cli/runAndroid.native.js +39 -0
- package/dist/cjs/cli/runAndroid.native.js.map +6 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli/runIos.js.map +6 -0
- package/dist/cjs/cli/runIos.native.js +39 -0
- package/dist/cjs/cli/runIos.native.js.map +6 -0
- package/dist/cjs/cli.js +23 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/cli.native.js +25 -1
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/createHandleRequest.js +2 -2
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.js +7 -1
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js +7 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/Root.native.js +110 -104
- package/dist/esm/Root.native.js.map +6 -1
- package/dist/esm/Route.native.js +12 -10
- package/dist/esm/Route.native.js.map +6 -1
- package/dist/esm/cleanUrl.js +1 -1
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +1 -1
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +13 -14
- package/dist/esm/cleanUrl.native.js.map +6 -1
- package/dist/esm/cli/label-process.native.js +5 -4
- package/dist/esm/cli/label-process.native.js.map +6 -1
- package/dist/esm/cli/main.native.js +8 -13
- package/dist/esm/cli/main.native.js.map +6 -1
- package/dist/esm/cli/prebuild.native.js +5 -5
- package/dist/esm/cli/prebuild.native.js.map +6 -1
- package/dist/esm/cli/run.native.js +21 -28
- package/dist/esm/cli/run.native.js.map +6 -1
- package/dist/esm/cli/runAndroid.js +10 -0
- package/dist/esm/cli/runAndroid.js.map +6 -0
- package/dist/esm/cli/runAndroid.mjs +10 -0
- package/dist/esm/cli/runAndroid.mjs.map +1 -0
- package/dist/esm/cli/runAndroid.native.js +10 -0
- package/dist/esm/cli/runAndroid.native.js.map +6 -0
- package/dist/esm/cli/runIos.js +10 -0
- package/dist/esm/cli/runIos.js.map +6 -0
- package/dist/esm/cli/runIos.mjs +10 -0
- package/dist/esm/cli/runIos.mjs.map +1 -0
- package/dist/esm/cli/runIos.native.js +10 -0
- package/dist/esm/cli/runIos.native.js.map +6 -0
- package/dist/esm/cli.js +23 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +33 -1
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +143 -148
- package/dist/esm/cli.native.js.map +6 -1
- package/dist/esm/clientLoaderResolver.native.js +9 -6
- package/dist/esm/clientLoaderResolver.native.js.map +6 -1
- package/dist/esm/config.native.js +12 -11
- package/dist/esm/config.native.js.map +6 -1
- package/dist/esm/constants.native.js +7 -5
- package/dist/esm/constants.native.js.map +6 -1
- package/dist/esm/createApp.native.js +13 -9
- package/dist/esm/createApp.native.js.map +6 -1
- package/dist/esm/createHandleRequest.js +2 -2
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -2
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +57 -66
- package/dist/esm/createHandleRequest.native.js.map +6 -1
- package/dist/esm/createRoute.native.js +16 -16
- package/dist/esm/createRoute.native.js.map +6 -1
- package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
- package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
- package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
- package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
- package/dist/esm/fork/NavigationContainer.native.js +24 -31
- package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
- package/dist/esm/fork/createMemoryHistory.native.js +99 -115
- package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
- package/dist/esm/fork/extractPathFromURL.native.js +16 -15
- package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
- package/dist/esm/fork/findFocusedRoute.native.js +6 -5
- package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
- package/dist/esm/fork/getPathFromState.native.js +127 -140
- package/dist/esm/fork/getPathFromState.native.js.map +6 -1
- package/dist/esm/fork/getStateFromPath.native.js +292 -288
- package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
- package/dist/esm/fork/useLinking.native.js +70 -61
- package/dist/esm/fork/useLinking.native.js.map +6 -1
- package/dist/esm/fork/validatePathConfig.native.js +15 -9
- package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
- package/dist/esm/getLinkingConfig.native.js +11 -6
- package/dist/esm/getLinkingConfig.native.js.map +6 -1
- package/dist/esm/getReactNavigationConfig.native.js +28 -20
- package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
- package/dist/esm/getRoutes.native.js +249 -229
- package/dist/esm/getRoutes.native.js.map +6 -1
- package/dist/esm/getURL.native.js +4 -4
- package/dist/esm/getURL.native.js.map +6 -1
- package/dist/esm/head/Head.android.js +5 -3
- package/dist/esm/head/Head.android.js.map +6 -1
- package/dist/esm/head/Head.ios.js +144 -132
- package/dist/esm/head/Head.ios.js.map +6 -1
- package/dist/esm/head/Head.native.js +7 -7
- package/dist/esm/head/Head.native.js.map +6 -1
- package/dist/esm/head/HeadModule.native.js +6 -6
- package/dist/esm/head/HeadModule.native.js.map +6 -1
- package/dist/esm/head/index.native.js +2 -2
- package/dist/esm/head/index.native.js.map +6 -1
- package/dist/esm/head/types.native.js +1 -2
- package/dist/esm/head/types.native.js.map +6 -1
- package/dist/esm/head/url.native.js +10 -8
- package/dist/esm/head/url.native.js.map +6 -1
- package/dist/esm/hooks.native.js +53 -34
- package/dist/esm/hooks.native.js.map +6 -1
- package/dist/esm/imperative-api.native.js +9 -6
- package/dist/esm/imperative-api.native.js.map +6 -1
- package/dist/esm/import-mode/index.android.js +4 -3
- package/dist/esm/import-mode/index.android.js.map +6 -1
- package/dist/esm/import-mode/index.ios.js +4 -3
- package/dist/esm/import-mode/index.ios.js.map +6 -1
- package/dist/esm/import-mode/index.native.js +3 -1
- package/dist/esm/import-mode/index.native.js.map +6 -1
- package/dist/esm/index.native.js +65 -27
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/interfaces/router.native.js +4 -2
- package/dist/esm/interfaces/router.native.js.map +6 -1
- package/dist/esm/layouts/Drawer.native.js +7 -6
- package/dist/esm/layouts/Drawer.native.js.map +6 -1
- package/dist/esm/layouts/Stack.native.js +7 -6
- package/dist/esm/layouts/Stack.native.js.map +6 -1
- package/dist/esm/layouts/Tabs.native.js +42 -39
- package/dist/esm/layouts/Tabs.native.js.map +6 -1
- package/dist/esm/layouts/withLayoutContext.native.js +51 -48
- package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
- package/dist/esm/link/Link.native.js +62 -53
- package/dist/esm/link/Link.native.js.map +6 -1
- package/dist/esm/link/Redirect.native.js +8 -9
- package/dist/esm/link/Redirect.native.js.map +6 -1
- package/dist/esm/link/href.native.js +28 -27
- package/dist/esm/link/href.native.js.map +6 -1
- package/dist/esm/link/linking.native.js +51 -40
- package/dist/esm/link/linking.native.js.map +6 -1
- package/dist/esm/link/path.native.js +28 -19
- package/dist/esm/link/path.native.js.map +6 -1
- package/dist/esm/link/useLinkTo.native.js +22 -20
- package/dist/esm/link/useLinkTo.native.js.map +6 -1
- package/dist/esm/link/useLoadedNavigation.native.js +30 -23
- package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
- package/dist/esm/matchers.native.js +16 -3
- package/dist/esm/matchers.native.js.map +6 -1
- package/dist/esm/platform.native.js +4 -2
- package/dist/esm/platform.native.js.map +6 -1
- package/dist/esm/polyfills-mobile.native.js +4 -5
- package/dist/esm/polyfills-mobile.native.js.map +6 -1
- package/dist/esm/polyfills-server.native.js +1 -1
- package/dist/esm/polyfills-server.native.js.map +6 -1
- package/dist/esm/render.native.js +3 -1
- package/dist/esm/render.native.js.map +6 -1
- package/dist/esm/router/RouterStore.native.js +1 -2
- package/dist/esm/router/RouterStore.native.js.map +6 -1
- package/dist/esm/router/constants.native.js +4 -2
- package/dist/esm/router/constants.native.js.map +6 -1
- package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
- package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
- package/dist/esm/router/lastAction.native.js +10 -9
- package/dist/esm/router/lastAction.native.js.map +6 -1
- package/dist/esm/router/router.native.js +135 -114
- package/dist/esm/router/router.native.js.map +6 -1
- package/dist/esm/router/serverLocationContext.native.js +4 -2
- package/dist/esm/router/serverLocationContext.native.js.map +6 -1
- package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
- package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
- package/dist/esm/serve.native.js +77 -104
- package/dist/esm/serve.native.js.map +6 -1
- package/dist/esm/server/createRoutesManifest.native.js +14 -11
- package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
- package/dist/esm/server/getServerManifest.native.js +61 -67
- package/dist/esm/server/getServerManifest.native.js.map +6 -1
- package/dist/esm/server-render.native.js +9 -10
- package/dist/esm/server-render.native.js.map +6 -1
- package/dist/esm/sortRoutes.native.js +27 -17
- package/dist/esm/sortRoutes.native.js.map +6 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useFocusEffect.native.js +25 -22
- package/dist/esm/useFocusEffect.native.js.map +6 -1
- package/dist/esm/useLoader.native.js +50 -50
- package/dist/esm/useLoader.native.js.map +6 -1
- package/dist/esm/useNavigation.native.js +23 -19
- package/dist/esm/useNavigation.native.js.map +6 -1
- package/dist/esm/useScreens.native.js +143 -160
- package/dist/esm/useScreens.native.js.map +6 -1
- package/dist/esm/useViteRoutes.native.js +25 -28
- package/dist/esm/useViteRoutes.native.js.map +6 -1
- package/dist/esm/utils/assertIsReady.native.js +6 -3
- package/dist/esm/utils/assertIsReady.native.js.map +6 -1
- package/dist/esm/utils/dynamicImport.native.js +5 -3
- package/dist/esm/utils/dynamicImport.native.js.map +6 -1
- package/dist/esm/utils/existsAsync.native.js +6 -4
- package/dist/esm/utils/existsAsync.native.js.map +6 -1
- package/dist/esm/utils/getPageExport.native.js +12 -11
- package/dist/esm/utils/getPageExport.native.js.map +6 -1
- package/dist/esm/utils/globDir.native.js +5 -3
- package/dist/esm/utils/globDir.native.js.map +6 -1
- package/dist/esm/utils/hashString.native.js +4 -2
- package/dist/esm/utils/hashString.native.js.map +6 -1
- package/dist/esm/utils/isResponse.native.js +4 -2
- package/dist/esm/utils/isResponse.native.js.map +6 -1
- package/dist/esm/utils/isStatus.native.js +4 -2
- package/dist/esm/utils/isStatus.native.js.map +6 -1
- package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
- package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
- package/dist/esm/utils/rand.native.js +5 -3
- package/dist/esm/utils/rand.native.js.map +6 -1
- package/dist/esm/utils/redirect.native.js +7 -5
- package/dist/esm/utils/redirect.native.js.map +6 -1
- package/dist/esm/utils/removeSearch.native.js +4 -2
- package/dist/esm/utils/removeSearch.native.js.map +6 -1
- package/dist/esm/utils/removeUndefined.native.js +6 -3
- package/dist/esm/utils/removeUndefined.native.js.map +6 -1
- package/dist/esm/utils/requireResolve.native.js +4 -2
- package/dist/esm/utils/requireResolve.native.js.map +6 -1
- package/dist/esm/utils/url.native.js +6 -2
- package/dist/esm/utils/url.native.js.map +6 -1
- package/dist/esm/utils/weakKey.native.js +11 -10
- package/dist/esm/utils/weakKey.native.js.map +6 -1
- package/dist/esm/utils/weakMemo.native.js +8 -8
- package/dist/esm/utils/weakMemo.native.js.map +6 -1
- package/dist/esm/views/EmptyRoute.native.js +5 -3
- package/dist/esm/views/EmptyRoute.native.js.map +6 -1
- package/dist/esm/views/ErrorBoundary.native.js +5 -8
- package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/LoadProgressBar.native.js +58 -57
- package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
- package/dist/esm/views/Navigator.native.js +54 -71
- package/dist/esm/views/Navigator.native.js.map +6 -1
- package/dist/esm/views/PreloadLinks.native.js +3 -1
- package/dist/esm/views/PreloadLinks.native.js.map +6 -1
- package/dist/esm/views/RootErrorBoundary.native.js +39 -29
- package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/Screen.native.js +12 -12
- package/dist/esm/views/Screen.native.js.map +6 -1
- package/dist/esm/views/ScrollRestoration.native.js +27 -27
- package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
- package/dist/esm/views/Try.native.js +40 -37
- package/dist/esm/views/Try.native.js.map +6 -1
- package/dist/esm/vite/build.native.js +260 -295
- package/dist/esm/vite/build.native.js.map +6 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
- package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
- package/dist/esm/vite/constants.native.js +6 -4
- package/dist/esm/vite/constants.native.js.map +6 -1
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
- package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
- package/dist/esm/vite/customNodeExternals.native.js +9 -10
- package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
- package/dist/esm/vite/ensureTsConfig.native.js +7 -5
- package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
- package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
- package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
- package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
- package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
- package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
- package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
- package/dist/esm/vite/getManifest.native.js +6 -4
- package/dist/esm/vite/getManifest.native.js.map +6 -1
- package/dist/esm/vite/headers.native.js +11 -5
- package/dist/esm/vite/headers.native.js.map +6 -1
- package/dist/esm/vite/loadEnv.native.js +7 -6
- package/dist/esm/vite/loadEnv.native.js.map +6 -1
- package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
- package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
- package/dist/esm/vite/one.native.js +142 -127
- package/dist/esm/vite/one.native.js.map +6 -1
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
- package/dist/esm/vite/replaceLoader.js +7 -1
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs +5 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js +13 -10
- package/dist/esm/vite/replaceLoader.native.js.map +6 -1
- package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
- package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
- package/dist/esm/vite/server.native.js +5 -4
- package/dist/esm/vite/server.native.js.map +6 -1
- package/dist/esm/vite/types.native.js +1 -2
- package/dist/esm/vite/types.native.js.map +6 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
- package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
- package/dist/esm/vite.native.js +19 -10
- package/dist/esm/vite.native.js.map +6 -1
- package/dist/esm/zero/getQueryKey.native.js +5 -3
- package/dist/esm/zero/getQueryKey.native.js.map +6 -1
- package/dist/esm/zero/isZeroQuery.native.js +4 -2
- package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
- package/dist/esm/zero/resolveQuery.native.js +9 -8
- package/dist/esm/zero/resolveQuery.native.js.map +6 -1
- package/dist/esm/zero/subscribeToQuery.native.js +5 -3
- package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
- package/dist/esm/zero/types.native.js +1 -2
- package/dist/esm/zero/types.native.js.map +6 -1
- package/dist/esm/zero/useQuery.native.js +12 -12
- package/dist/esm/zero/useQuery.native.js.map +6 -1
- package/dist/esm/zero/useQueryZero.native.js +24 -20
- package/dist/esm/zero/useQueryZero.native.js.map +6 -1
- package/dist/esm/zero.native.js +9 -5
- package/dist/esm/zero.native.js.map +6 -1
- package/package.json +7 -7
- package/src/cleanUrl.ts +1 -1
- package/src/cli/runAndroid.ts +6 -0
- package/src/cli/runIos.ts +6 -0
- package/src/cli.ts +27 -1
- package/src/createHandleRequest.ts +7 -0
- package/src/vite/createFileSystemRouter.tsx +1 -2
- package/src/vite/replaceLoader.ts +7 -1
- package/types/cli/runAndroid.d.ts +2 -0
- package/types/cli/runAndroid.d.ts.map +1 -0
- package/types/cli/runIos.d.ts +2 -0
- package/types/cli/runIos.d.ts.map +1 -0
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/vite/createFileSystemRouter.d.ts.map +1 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/config.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,mBAAmB;AAG5B,IAAMC,qBAAqBC,QAAQC,IAAIC,yBAG1BC,uBAAuB,WAAA;MAOLC,mBANvBA,eAAeC,WAAW;AAEhC,MAAIP,eAAe,CAACM;AAClB,UAAM,IAAIE,MAAM,uEAAuE;MAGlFP;AAAP,UAAOA,OAAAA,uBAAsBK,gBAAAA,SAAAA,oBAAAA,aAAcG,SAAG,QAAjBH,sBAAAA,SAAAA,SAAAA,kBAAmBI,wBAAiB,QAA1DT,SAAAA,SAAAA,OAA8D;AACvE;",
|
5
|
+
"names": ["isWebServer", "CLIENT_RENDER_MODE", "process", "env", "One_DEFAULT_RENDER_MODE", "getDefaultRenderMode", "serverConfig", "globalThis", "Error", "web", "defaultRenderMode"]
|
6
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
|
-
var isWebClient = !1,
|
2
|
-
|
3
|
-
isNative
|
4
|
-
|
5
|
-
|
1
|
+
var isWebClient = !1, isWebServer = !1, isNative = !0;
|
2
|
+
export {
|
3
|
+
isNative,
|
4
|
+
isWebClient,
|
5
|
+
isWebServer
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=constants.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/constants.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF;",
|
5
|
+
"names": ["isWebClient", "process", "isWebServer", "isNative"]
|
6
|
+
}
|
@@ -1,23 +1,27 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import "./polyfills-mobile
|
3
|
-
import { Root } from "./Root
|
2
|
+
import "./polyfills-mobile";
|
3
|
+
import { Root } from "./Root";
|
4
4
|
import { AppRegistry, LogBox } from "react-native";
|
5
|
-
LogBox.ignoreLogs([
|
5
|
+
LogBox.ignoreLogs([
|
6
|
+
/Sending .* with no listeners registered/
|
7
|
+
]);
|
6
8
|
function createApp(options) {
|
7
|
-
var App = function
|
8
|
-
return /* @__PURE__ */_jsx(Root, {
|
9
|
+
var App = function() {
|
10
|
+
return /* @__PURE__ */ _jsx(Root, {
|
9
11
|
isClient: !0,
|
10
12
|
routes: options.routes,
|
11
13
|
path: "/"
|
12
14
|
});
|
13
15
|
};
|
14
|
-
AppRegistry.registerComponent("main", function
|
16
|
+
AppRegistry.registerComponent("main", function() {
|
15
17
|
return App;
|
16
|
-
}), AppRegistry.registerComponent("tamaguikitchensink", function
|
18
|
+
}), AppRegistry.registerComponent("tamaguikitchensink", function() {
|
17
19
|
return App;
|
18
|
-
}), process.env.One_APP_NAME && AppRegistry.registerComponent(process.env.One_APP_NAME, function
|
20
|
+
}), process.env.One_APP_NAME && AppRegistry.registerComponent(process.env.One_APP_NAME, function() {
|
19
21
|
return App;
|
20
22
|
});
|
21
23
|
}
|
22
|
-
export {
|
24
|
+
export {
|
25
|
+
createApp
|
26
|
+
};
|
23
27
|
//# sourceMappingURL=createApp.native.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/createApp.native.tsx"],
|
4
|
+
"mappings": ";AAAA,OAAO;AACP,SAASA,YAAY;AACrB,SAASC,aAAaC,cAAc;AAKpCA,OAAOC,WAAW;EAAC;CAA0C;AAEtD,SAASC,UAAUC,SAAuB;AAC/C,MAAMC,MAAM,WAAA;WAAM,qBAACN,MAAAA;MAAKO,UAAQ;MAACC,QAAQH,QAAQG;MAAQC,MAAK;;;AAE9DR,cAAYS,kBAAkB,QAAQ,WAAA;WAAMJ;MAG5CL,YAAYS,kBAAkB,sBAAsB,WAAA;WAAMJ;MAEtDK,QAAQC,IAAIC,gBACdZ,YAAYS,kBAAkBC,QAAQC,IAAIC,cAAc,WAAA;WAAMP;;AAElE;",
|
5
|
+
"names": ["Root", "AppRegistry", "LogBox", "ignoreLogs", "createApp", "options", "App", "isClient", "routes", "path", "registerComponent", "process", "env", "One_APP_NAME"]
|
6
|
+
}
|
@@ -49,7 +49,7 @@ function createHandleRequest(options, handlers) {
|
|
49
49
|
if (handlers.handleLoader && pathname.endsWith("_vxrn_loader.js")) {
|
50
50
|
const originalUrl = getPathFromLoaderPath(pathname), finalUrl = new URL(originalUrl, url.origin);
|
51
51
|
for (const route of pageRoutes) {
|
52
|
-
if (!route.workingRegex.test(finalUrl.pathname))
|
52
|
+
if (route.file === "" || !route.workingRegex.test(finalUrl.pathname))
|
53
53
|
continue;
|
54
54
|
const headers = new Headers();
|
55
55
|
headers.set("Content-Type", "text/javascript");
|
@@ -69,7 +69,7 @@ function createHandleRequest(options, handlers) {
|
|
69
69
|
} catch (err) {
|
70
70
|
if (isResponse(err))
|
71
71
|
return err;
|
72
|
-
throw err;
|
72
|
+
throw console.error(`Error running loader: ${err}`), err;
|
73
73
|
}
|
74
74
|
}
|
75
75
|
return process.env.NODE_ENV === "development" && console.error("No matching route found!", {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/createHandleRequest.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,6BAA6B;AAEtC,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,MAAI,YAAY;AACd,UAAM,IAAI,MAAM,mDAAmD;AAGrE,QAAM,WAAW,YAAY;AAC7B,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,oBAAoB;AAGtC,QAAM,eACJ,SAAS,UAAU,OAAO,CAAC,KAAK,SAC9B,IAAI,IAAI,IAAI,IAAI,EAAE,GAA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a,KAAK,QAAQ;AACnC;AAGF,kBAAM,cAAc,MAAM,SAAS,UAAU;AAAA,cAC3C;AAAA,cACA;AAAA,cACA;AAAA,cACA,aAAa;AAAA,gBACX,MAAM,WAAW;AAAA,gBACjB,QAAQ,gBAAgB,KAAK,KAAK;AAAA,cACpC;AAAA,YACF,CAAC;AAED,2BAAQ,WAAW,GACZ;AAAA,UACT;AAAA,QACF,SAAS,KAAK;AACZ,uBAAO,GAAG,GACJ;AAAA,QACR,UAAE;AACA,iBAAO,eAAe,QAAQ;AAAA,QAChC;AAAA,MACF;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,SAAS,gBACP,KACA,QACA;AACA,QAAM,SAAiC,CAAC,GAClC,QAAQ,IAAI,OAAO,OAAO,YAAY,EAAE,KAAK,IAAI,QAAQ;AAC/D,MAAI,OAAO;AACT,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,MAAM,MAAM,GAAG;AACvD,YAAM,WAAW,OAAO,UAAU,GAAG;AACrC,aAAO,QAAQ,IAAI;AAAA,IACrB;AAEF,SAAO;AACT;AAGA,SAAS,eAAe,UAAkB,OAA0B;AAElE,QAAM,QADQ,IAAI,OAAO,MAAM,UAAU,EACrB,KAAK,QAAQ;AACjC,SAAK,QACE,OAAO;AAAA,IACZ,OAAO,QAAQ,MAAM,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,CAAC,CAAC;AAAA,EACpF,IAHmB,CAAC;AAItB;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -52,7 +52,7 @@ function createHandleRequest(options, handlers) {
|
|
52
52
|
const originalUrl = getPathFromLoaderPath(pathname),
|
53
53
|
finalUrl = new URL(originalUrl, url.origin);
|
54
54
|
for (const route of pageRoutes) {
|
55
|
-
if (!route.workingRegex.test(finalUrl.pathname)) continue;
|
55
|
+
if (route.file === "" || !route.workingRegex.test(finalUrl.pathname)) continue;
|
56
56
|
const headers = new Headers();
|
57
57
|
headers.set("Content-Type", "text/javascript");
|
58
58
|
try {
|
@@ -70,7 +70,7 @@ function createHandleRequest(options, handlers) {
|
|
70
70
|
});
|
71
71
|
} catch (err) {
|
72
72
|
if (isResponse(err)) return err;
|
73
|
-
throw err;
|
73
|
+
throw console.error(`Error running loader: ${err}`), err;
|
74
74
|
}
|
75
75
|
}
|
76
76
|
return process.env.NODE_ENV === "development" && console.error("No matching route found!", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getPathFromLoaderPath","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","import","meta","env","Error","manifest","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","Headers","set","loaderResponse","getLoaderParams","Response","console","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,IAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,EACd,MAAM,IAAIC,KAAA,CAAM,mDAAmD;EAGrE,MAAMC,QAAA,GAAWR,WAAA,CAAY;EAC7B,IAAI,CAACQ,QAAA,EACH,MAAM,IAAID,KAAA,CAAM,oBAAoB;EAGtC,MAAME,YAAA,GACJD,QAAA,CAASE,SAAA,CAAUC,MAAA,CAAO,CAACC,GAAA,EAAKC,GAAA,MAC9BD,GAAA,CAAIC,GAAA,CAAIC,IA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,OAAA;cACAH,KAAA,EAAOe,QAAA;cACPV,GAAA;cACAe,WAAA,EAAa;gBACXC,IAAA,EAAMZ,QAAA;gBACNS;cACF;YACF,CAAC;UACH,SAASI,GAAA,EAAK;YACZ,IAAIhD,UAAA,CAAWgD,GAAG,GAChB,OAAOA,GAAA;YAET,MAAMA,GAAA;UACR;QACF;MACF;MAEA,IAAInB,OAAA,CAAQoB,MAAA,KAAW,OACrB,OAAO;MAGT,IAAI5C,QAAA,CAAS6C,YAAA,IACwBf,QAAA,CAASgB,QAAA,CAAS,iBAAiB,GAEtC;QAC9B,MAAMC,WAAA,GAAcrD,qBAAA,CAAsBoC,QAAQ;UAC5CkB,QAAA,GAAW,IAAIrB,GAAA,CAAIoB,WAAA,EAAarB,GAAA,CAAIuB,MAAM;QAEhD,WAAW5B,KAAA,IAASF,UAAA,EAAY;
|
1
|
+
{"version":3,"names":["getPathFromLoaderPath","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","import","meta","env","Error","manifest","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","Headers","set","loaderResponse","getLoaderParams","Response","console","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,IAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,EACd,MAAM,IAAIC,KAAA,CAAM,mDAAm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IAAIpD,MAAA,CAAOmD,MAAA,CAAO1C,YAAY,EAAE4C,IAAA,CAAKxC,GAAA,CAAII,QAAQ;EAC/D,IAAImC,KAAA,EAAOE,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKrD,MAAA,CAAOsD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC7B,MAAA,CAAOgC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO9B,MAAA;AACT;AAGA,SAASC,eAAeV,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM4C,KAAA,GADQ,IAAIpD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBoD,IAAA,CAAKpC,QAAQ;EACjC,OAAKmC,KAAA,GACEjD,MAAA,CAAOyD,WAAA,CACZzD,MAAA,CAAOsD,OAAA,CAAQjD,KAAA,CAAMmD,SAAS,EAAEpD,GAAA,CAAI,CAAC,CAACgD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
|
@@ -1,38 +1,34 @@
|
|
1
|
-
import { getPathFromLoaderPath } from "./cleanUrl
|
2
|
-
import { isResponse } from "./utils/isResponse
|
3
|
-
import { promiseWithResolvers } from "./utils/promiseWithResolvers
|
4
|
-
import { getManifest } from "./vite/getManifest
|
1
|
+
import { getPathFromLoaderPath } from "./cleanUrl";
|
2
|
+
import { isResponse } from "./utils/isResponse";
|
3
|
+
import { promiseWithResolvers } from "./utils/promiseWithResolvers";
|
4
|
+
import { getManifest } from "./vite/getManifest";
|
5
5
|
function createHandleRequest(options, handlers) {
|
6
|
-
if (import.meta.env)
|
6
|
+
if (import.meta.env)
|
7
|
+
throw new Error("No import.meta.env - Node 22 or greater required.");
|
7
8
|
var manifest = getManifest();
|
8
|
-
if (!manifest)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
},
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
};
|
22
|
-
});
|
9
|
+
if (!manifest)
|
10
|
+
throw new Error("No routes manifest");
|
11
|
+
var apiRoutesMap = manifest.apiRoutes.reduce(function(acc, cur) {
|
12
|
+
return acc[cur.page] = {
|
13
|
+
...cur,
|
14
|
+
compiledRegex: new RegExp(cur.namedRegex)
|
15
|
+
}, acc;
|
16
|
+
}, {}), apiRoutesList = Object.values(apiRoutesMap), activeRequests = {}, pageRoutes = manifest.pageRoutes.map(function(route) {
|
17
|
+
return {
|
18
|
+
...route,
|
19
|
+
workingRegex: new RegExp(route.namedRegex)
|
20
|
+
};
|
21
|
+
});
|
23
22
|
return {
|
24
23
|
manifest,
|
25
|
-
handler: async function
|
26
|
-
var urlString = request.url || "",
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
} = url;
|
32
|
-
if (process.env.NODE_ENV !== "production" && activeRequests[pathname]) return await activeRequests[pathname];
|
33
|
-
if (pathname === "/__vxrnhmr" || pathname.startsWith("/@")) return null;
|
24
|
+
handler: async function(request) {
|
25
|
+
var urlString = request.url || "", url = new URL(urlString || "", request.headers.get("host") ? `http://${request.headers.get("host")}` : ""), { pathname, search } = url;
|
26
|
+
if (process.env.NODE_ENV !== "production" && activeRequests[pathname])
|
27
|
+
return await activeRequests[pathname];
|
28
|
+
if (pathname === "/__vxrnhmr" || pathname.startsWith("/@"))
|
29
|
+
return null;
|
34
30
|
if (handlers.handleAPI) {
|
35
|
-
var apiRoute = apiRoutesList.find(function
|
31
|
+
var apiRoute = apiRoutesList.find(function(route2) {
|
36
32
|
var regex = route2.compiledRegex;
|
37
33
|
return regex.test(pathname);
|
38
34
|
});
|
@@ -49,24 +45,22 @@ function createHandleRequest(options, handlers) {
|
|
49
45
|
}
|
50
46
|
});
|
51
47
|
} catch (err) {
|
52
|
-
if (isResponse(err))
|
48
|
+
if (isResponse(err))
|
49
|
+
return err;
|
53
50
|
throw err;
|
54
51
|
}
|
55
52
|
}
|
56
53
|
}
|
57
|
-
if (request.method !== "GET")
|
54
|
+
if (request.method !== "GET")
|
55
|
+
return null;
|
58
56
|
if (handlers.handleLoader) {
|
59
57
|
var isClientRequestingNewRoute = pathname.endsWith("_vxrn_loader.js");
|
60
58
|
if (isClientRequestingNewRoute) {
|
61
|
-
var originalUrl = getPathFromLoaderPath(pathname),
|
62
|
-
finalUrl = new URL(originalUrl, url.origin),
|
63
|
-
_iteratorNormalCompletion = !0,
|
64
|
-
_didIteratorError = !1,
|
65
|
-
_iteratorError = void 0;
|
59
|
+
var originalUrl = getPathFromLoaderPath(pathname), finalUrl = new URL(originalUrl, url.origin), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
66
60
|
try {
|
67
61
|
for (var _iterator = pageRoutes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
68
62
|
var route = _step.value;
|
69
|
-
if (route.workingRegex.test(finalUrl.pathname)) {
|
63
|
+
if (route.file !== "" && route.workingRegex.test(finalUrl.pathname)) {
|
70
64
|
var headers = new Headers();
|
71
65
|
headers.set("Content-Type", "text/javascript");
|
72
66
|
try {
|
@@ -83,8 +77,9 @@ function createHandleRequest(options, handlers) {
|
|
83
77
|
headers
|
84
78
|
});
|
85
79
|
} catch (err) {
|
86
|
-
if (isResponse(err))
|
87
|
-
|
80
|
+
if (isResponse(err))
|
81
|
+
return err;
|
82
|
+
throw console.error(`Error running loader: ${err}`), err;
|
88
83
|
}
|
89
84
|
}
|
90
85
|
}
|
@@ -94,7 +89,8 @@ function createHandleRequest(options, handlers) {
|
|
94
89
|
try {
|
95
90
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
96
91
|
} finally {
|
97
|
-
if (_didIteratorError)
|
92
|
+
if (_didIteratorError)
|
93
|
+
throw _iteratorError;
|
98
94
|
}
|
99
95
|
}
|
100
96
|
return process.env.NODE_ENV === "development" && console.error("No matching route found!", {
|
@@ -104,16 +100,10 @@ function createHandleRequest(options, handlers) {
|
|
104
100
|
}
|
105
101
|
}
|
106
102
|
if (handlers.handleSSR) {
|
107
|
-
var {
|
108
|
-
promise,
|
109
|
-
reject,
|
110
|
-
resolve
|
111
|
-
} = promiseWithResolvers();
|
103
|
+
var { promise, reject, resolve } = promiseWithResolvers();
|
112
104
|
activeRequests[pathname] = promise;
|
113
105
|
try {
|
114
|
-
var _iteratorNormalCompletion1 = !0,
|
115
|
-
_didIteratorError1 = !1,
|
116
|
-
_iteratorError1 = void 0;
|
106
|
+
var _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
|
117
107
|
try {
|
118
108
|
for (var _iterator1 = pageRoutes[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
|
119
109
|
var route1 = _step1.value;
|
@@ -136,7 +126,8 @@ function createHandleRequest(options, handlers) {
|
|
136
126
|
try {
|
137
127
|
!_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
|
138
128
|
} finally {
|
139
|
-
if (_didIteratorError1)
|
129
|
+
if (_didIteratorError1)
|
130
|
+
throw _iteratorError1;
|
140
131
|
}
|
141
132
|
}
|
142
133
|
} catch (err) {
|
@@ -150,16 +141,12 @@ function createHandleRequest(options, handlers) {
|
|
150
141
|
};
|
151
142
|
}
|
152
143
|
function getLoaderParams(url, config) {
|
153
|
-
var params = {},
|
154
|
-
match = new RegExp(config.workingRegex).exec(url.pathname);
|
144
|
+
var params = {}, match = new RegExp(config.workingRegex).exec(url.pathname);
|
155
145
|
if (match?.groups) {
|
156
|
-
var _iteratorNormalCompletion = !0,
|
157
|
-
_didIteratorError = !1,
|
158
|
-
_iteratorError = void 0;
|
146
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
159
147
|
try {
|
160
148
|
for (var _iterator = Object.entries(match.groups)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
161
|
-
var [key, value] = _step.value,
|
162
|
-
namedKey = config.routeKeys[key];
|
149
|
+
var [key, value] = _step.value, namedKey = config.routeKeys[key];
|
163
150
|
params[namedKey] = value;
|
164
151
|
}
|
165
152
|
} catch (err) {
|
@@ -168,20 +155,24 @@ function getLoaderParams(url, config) {
|
|
168
155
|
try {
|
169
156
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
170
157
|
} finally {
|
171
|
-
if (_didIteratorError)
|
158
|
+
if (_didIteratorError)
|
159
|
+
throw _iteratorError;
|
172
160
|
}
|
173
161
|
}
|
174
162
|
}
|
175
163
|
return params;
|
176
164
|
}
|
177
165
|
function getRouteParams(pathname, route) {
|
178
|
-
var regex = new RegExp(route.namedRegex),
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
166
|
+
var regex = new RegExp(route.namedRegex), match = regex.exec(pathname);
|
167
|
+
return match ? Object.fromEntries(Object.entries(route.routeKeys).map(function(param) {
|
168
|
+
var [key, value] = param, _match_groups;
|
169
|
+
return [
|
170
|
+
value,
|
171
|
+
(_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[key]
|
172
|
+
];
|
184
173
|
})) : {};
|
185
174
|
}
|
186
|
-
export {
|
187
|
-
|
175
|
+
export {
|
176
|
+
createHandleRequest
|
177
|
+
};
|
178
|
+
//# sourceMappingURL=createHandleRequest.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/createHandleRequest.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,6BAA6B;AAEtC,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC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,MAAA,OACGC,WAAWP,OAAOQ,UAAUH,GAAAA;AAClC/B,eAAOiC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOhC;AACT;AAGA,SAASC,eAAeX,UAAkBT,OAAwB;AAChE,MAAMiB,QAAQ,IAAIzB,OAAOQ,MAAMP,UAAU,GACnCqD,QAAQ7B,MAAM8B,KAAKtC,QAAAA;AACzB,SAAKqC,QACEnD,OAAO2D,YACZ3D,OAAOsD,QAAQjD,MAAMqD,SAAS,EAAEtD,IAAI,SAAA,OAAA;QAAC,CAACmD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
|
5
|
+
"names": ["getPathFromLoaderPath", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "env", "Error", "manifest", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "console", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
6
|
+
}
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import { useActiveParams, useParams } from "./hooks
|
1
|
+
import { useActiveParams, useParams } from "./hooks";
|
2
2
|
function createRoute() {
|
3
3
|
return {
|
4
|
-
useParams: function
|
4
|
+
useParams: function() {
|
5
5
|
return useParams();
|
6
6
|
},
|
7
|
-
useActiveParams: function
|
7
|
+
useActiveParams: function() {
|
8
8
|
return useActiveParams();
|
9
9
|
},
|
10
|
-
createLoader: function
|
10
|
+
createLoader: function(a) {
|
11
11
|
return a;
|
12
12
|
}
|
13
13
|
};
|
14
14
|
}
|
15
|
-
var defaults = createRoute(),
|
16
|
-
|
17
|
-
|
18
|
-
get(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
route
|
25
|
-
|
26
|
-
//# sourceMappingURL=createRoute.
|
15
|
+
var defaults = createRoute(), getProxy = function() {
|
16
|
+
return new Proxy({}, {
|
17
|
+
get(target, key) {
|
18
|
+
return Reflect.has(defaults, key) ? Reflect.get(defaults, key) : getProxy();
|
19
|
+
}
|
20
|
+
});
|
21
|
+
}, postIdRoute = createRoute(), route = getProxy();
|
22
|
+
export {
|
23
|
+
createRoute,
|
24
|
+
route
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=createRoute.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/createRoute.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,iBAAiBC,iBAA8B;AAGjD,SAASC,cAAAA;AAId,SAAO;IACLD,WAAW,WAAA;aAAMA,UAAAA;;IACjBD,iBAAiB,WAAA;aAAMA,gBAAAA;;IACvBG,cAAc,SAACC,GAAAA;aAAuBA;;EACxC;AACF;AAEA,IAAMC,WAAWH,YAAAA,GAEXI,WAAW,WAAA;SACf,IAAIC,MACF,CAAC,GACD;IACEC,IAAIC,QAAQC,KAAG;AACb,aAAIC,QAAQC,IAAIP,UAAUK,GAAAA,IACjBC,QAAQH,IAAIH,UAAUK,GAAAA,IAGxBJ,SAAAA;IACT;EACF,CAAA;GAGEO,cAAcX,YAAAA,GAEPY,QAAQR,SAAAA;",
|
5
|
+
"names": ["useActiveParams", "useParams", "createRoute", "createLoader", "a", "defaults", "getProxy", "Proxy", "get", "target", "key", "Reflect", "has", "postIdRoute", "route"]
|
6
|
+
}
|
@@ -23,7 +23,7 @@ function getNavOptions() {
|
|
23
23
|
};
|
24
24
|
}
|
25
25
|
function Sitemap() {
|
26
|
-
return /* @__PURE__ */_jsx(Text, {
|
26
|
+
return /* @__PURE__ */ _jsx(Text, {
|
27
27
|
children: "sitemap!!!!!!!!!"
|
28
28
|
});
|
29
29
|
}
|
@@ -73,5 +73,8 @@ var styles = StyleSheet.create({
|
|
73
73
|
resizeMode: "contain"
|
74
74
|
}
|
75
75
|
});
|
76
|
-
export {
|
77
|
-
|
76
|
+
export {
|
77
|
+
Sitemap,
|
78
|
+
getNavOptions
|
79
|
+
};
|
80
|
+
//# sourceMappingURL=Sitemap.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/fallbackViews/Users/n8/one/packages/one/src/fallbackViews/Sitemap.tsx"],
|
4
|
+
"mappings": ";AACA,SAA2BA,YAAYC,YAAkB;AAWzD,IAAMC,SAAS;AAER,SAASC,gBAAAA;AACd,SAAO;IACLC,OAAO;IACPC,aAAa;IACbC,cAAc;IACdC,WAAW;IACXC,kBAAkB;IAClBC,kBAAkB;MAChBC,OAAO;IACT;IACAC,iBAAiB;IACjBC,uBAAuB;MACrBF,OAAO;IACT;IACAG,aAAa;MACXC,iBAAiB;;MAEjBC,mBAAmB;IACrB;EACF;AACF;AAEO,SAASC,UAAAA;AACd,SAAO,qBAACf,MAAAA;cAAK;;AA4Jf;AAcA,IAAMgB,SAASjB,WAAWkB,OAAO;EAC/BC,WAAW;IACTL,iBAAiB;IACjBM,MAAM;IACNC,YAAY;EACd;EACAC,MAAM;IACJC,kBAAkB;IAClBH,MAAM;IAENC,YAAY;EACd;EACAG,QAAQ;IACNC,mBAAmB;;;IAGnBJ,YAAY;EACd;EACAK,eAAe;IACbC,aAAa;IACbC,aAAa;IACbC,cAAc;IACdC,cAAc;IACdC,UAAU;EACZ;EACAC,eAAe;IACbP,mBAAmBvB;IACnB+B,iBAAiB;IACjBC,eAAe;IACfC,gBAAgB;IAChBd,YAAY;EACd;EACAe,UAAU;IAAE1B,OAAO;IAAS2B,UAAU;IAAIC,YAAY;EAAG;EACzDC,SAAS;IAAEC,WAAW;IAAS9B,OAAO;EAAQ;EAC9C+B,OAAO;IAAEC,OAAO;IAAIC,QAAQ;IAAIC,YAAY;EAAU;AACxD,CAAA;",
|
5
|
+
"names": ["StyleSheet", "Text", "INDENT", "getNavOptions", "title", "headerShown", "presentation", "animation", "headerLargeTitle", "headerTitleStyle", "color", "headerTintColor", "headerLargeTitleStyle", "headerStyle", "backgroundColor", "borderBottomColor", "Sitemap", "styles", "create", "container", "flex", "alignItems", "main", "marginHorizontal", "scroll", "paddingHorizontal", "itemContainer", "borderWidth", "borderColor", "borderRadius", "marginBottom", "overflow", "itemPressable", "paddingVertical", "flexDirection", "justifyContent", "filename", "fontSize", "marginLeft", "virtual", "textAlign", "image", "width", "height", "resizeMode"]
|
6
|
+
}
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
3
3
|
import { StyleSheet, Text } from "react-native";
|
4
4
|
function Unmatched() {
|
5
|
-
return /* @__PURE__ */_jsx(Text, {
|
5
|
+
return /* @__PURE__ */ _jsx(Text, {
|
6
6
|
children: "unmmatched!!!!!!!!!"
|
7
7
|
});
|
8
8
|
}
|
@@ -35,5 +35,7 @@ var styles = StyleSheet.create({
|
|
35
35
|
textAlign: "center"
|
36
36
|
}
|
37
37
|
});
|
38
|
-
export {
|
39
|
-
|
38
|
+
export {
|
39
|
+
Unmatched
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=Unmatched.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/fallbackViews/Users/n8/one/packages/one/src/fallbackViews/Unmatched.tsx"],
|
4
|
+
"mappings": ";AAAA,OAAOA,WAAW;AAClB,SAASC,YAAYC,YAAY;AAgB1B,SAASC,YAAAA;AACd,SAAO,qBAACC,MAAAA;cAAK;;AA4Cf;AAEA,IAAMC,SAASC,WAAWC,OAAO;EAC/BC,WAAW;IACTC,MAAM;IACNC,iBAAiB;IACjBC,SAAS;IACTC,YAAY;IACZC,gBAAgB;EAClB;EACAC,OAAO;IACLC,OAAO;IACPC,UAAU;IACVC,eAAe;IACfC,cAAc;IACdC,mBAAmB;IACnBC,mBAAmB;IACnBC,WAAW;IACXC,YAAY;EACd;EACAC,UAAU;IACRR,OAAO;IACPC,UAAU;IACVE,cAAc;IACdG,WAAW;EACb;EACAG,MAAM;IAAET,OAAO;IAAyBM,WAAW;EAAS;AAC9D,CAAA;",
|
5
|
+
"names": ["React", "StyleSheet", "Text", "Unmatched", "Text", "styles", "StyleSheet", "create", "container", "flex", "backgroundColor", "padding", "alignItems", "justifyContent", "title", "color", "fontSize", "paddingBottom", "marginBottom", "borderBottomColor", "borderBottomWidth", "textAlign", "fontWeight", "subtitle", "link"]
|
6
|
+
}
|
@@ -4,30 +4,20 @@ import { DefaultTheme, LinkingContext, ThemeProvider } from "@react-navigation/n
|
|
4
4
|
import useDocumentTitle from "@react-navigation/native/lib/module/useDocumentTitle.native.js";
|
5
5
|
import useThenable from "@react-navigation/native/lib/module/useThenable.js";
|
6
6
|
import * as React from "react";
|
7
|
-
import useLinking from "./useLinking
|
8
|
-
global.REACT_NAVIGATION_DEVTOOLS = /* @__PURE__ */new WeakMap();
|
7
|
+
import useLinking from "./useLinking";
|
8
|
+
global.REACT_NAVIGATION_DEVTOOLS = /* @__PURE__ */ new WeakMap();
|
9
9
|
function NavigationContainerInner(param, ref) {
|
10
|
-
var {
|
11
|
-
theme = DefaultTheme,
|
12
|
-
linking,
|
13
|
-
fallback = null,
|
14
|
-
documentTitle,
|
15
|
-
onReady,
|
16
|
-
...rest
|
17
|
-
} = param,
|
18
|
-
isLinkingEnabled = linking ? linking.enabled !== !1 : !1;
|
10
|
+
var { theme = DefaultTheme, linking, fallback = null, documentTitle, onReady, ...rest } = param, isLinkingEnabled = linking ? linking.enabled !== !1 : !1;
|
19
11
|
linking?.config && validatePathConfig(linking.config);
|
20
12
|
var refContainer = React.useRef(null);
|
21
13
|
useDocumentTitle(refContainer, documentTitle);
|
22
|
-
var {
|
23
|
-
getInitialState
|
24
|
-
} = useLinking(refContainer, {
|
14
|
+
var { getInitialState } = useLinking(refContainer, {
|
25
15
|
// independent: rest.independent,
|
26
16
|
enabled: isLinkingEnabled,
|
27
17
|
prefixes: [],
|
28
18
|
...linking
|
29
19
|
});
|
30
|
-
React.useEffect(function
|
20
|
+
React.useEffect(function() {
|
31
21
|
refContainer.current && global.REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, {
|
32
22
|
get linking() {
|
33
23
|
var _linking_prefixes, _linking_getStateFromPath, _linking_getPathFromState, _linking_getActionFromState;
|
@@ -43,28 +33,30 @@ function NavigationContainerInner(param, ref) {
|
|
43
33
|
});
|
44
34
|
});
|
45
35
|
var [isResolved, initialState] = useThenable(getInitialState);
|
46
|
-
React.useImperativeHandle(ref, function
|
36
|
+
React.useImperativeHandle(ref, function() {
|
47
37
|
return refContainer.current;
|
48
38
|
});
|
49
|
-
var linkingContext = React.useMemo(function
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
return React.useEffect(function
|
39
|
+
var linkingContext = React.useMemo(function() {
|
40
|
+
return {
|
41
|
+
options: linking
|
42
|
+
};
|
43
|
+
}, [
|
44
|
+
linking
|
45
|
+
]), isReady = rest.initialState != null || !isLinkingEnabled || isResolved, onReadyRef = React.useRef(onReady);
|
46
|
+
return React.useEffect(function() {
|
57
47
|
onReadyRef.current = onReady;
|
58
|
-
}), React.useEffect(function
|
48
|
+
}), React.useEffect(function() {
|
59
49
|
if (isReady) {
|
60
50
|
var _onReadyRef_current;
|
61
51
|
(_onReadyRef_current = onReadyRef.current) === null || _onReadyRef_current === void 0 || _onReadyRef_current.call(onReadyRef);
|
62
52
|
}
|
63
|
-
}, [
|
53
|
+
}, [
|
54
|
+
isReady
|
55
|
+
]), isReady ? /* @__PURE__ */ _jsx(LinkingContext.Provider, {
|
64
56
|
value: linkingContext,
|
65
|
-
children: /* @__PURE__ */_jsx(ThemeProvider, {
|
57
|
+
children: /* @__PURE__ */ _jsx(ThemeProvider, {
|
66
58
|
value: theme,
|
67
|
-
children: /* @__PURE__ */_jsx(BaseNavigationContainer, {
|
59
|
+
children: /* @__PURE__ */ _jsx(BaseNavigationContainer, {
|
68
60
|
...rest,
|
69
61
|
initialState: rest.initialState == null ? initialState : rest.initialState,
|
70
62
|
ref: refContainer
|
@@ -72,7 +64,8 @@ function NavigationContainerInner(param, ref) {
|
|
72
64
|
})
|
73
65
|
}) : fallback;
|
74
66
|
}
|
75
|
-
var NavigationContainer = /* @__PURE__ */React.forwardRef(NavigationContainerInner),
|
76
|
-
|
77
|
-
|
67
|
+
var NavigationContainer = /* @__PURE__ */ React.forwardRef(NavigationContainerInner), NavigationContainer_native_default = NavigationContainer;
|
68
|
+
export {
|
69
|
+
NavigationContainer_native_default as default
|
70
|
+
};
|
78
71
|
//# sourceMappingURL=NavigationContainer.native.js.map
|