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
package/dist/esm/Root.native.js
CHANGED
@@ -1,118 +1,126 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
2
|
import { Fragment, useEffect, useState } from "react";
|
3
|
-
import { useViteRoutes } from "./useViteRoutes
|
4
|
-
import { RootErrorBoundary } from "./views/RootErrorBoundary
|
3
|
+
import { useViteRoutes } from "./useViteRoutes";
|
4
|
+
import { RootErrorBoundary } from "./views/RootErrorBoundary";
|
5
5
|
import { DarkTheme, DefaultTheme } from "@react-navigation/native";
|
6
6
|
import { SafeAreaProviderCompat } from "@react-navigation/elements";
|
7
7
|
import { useColorScheme } from "@vxrn/universal-color-scheme";
|
8
|
-
import UpstreamNavigationContainer from "./fork/NavigationContainer
|
9
|
-
import { ServerLocationContext } from "./router/serverLocationContext
|
10
|
-
import { useInitializeOneRouter } from "./router/useInitializeOneRouter
|
11
|
-
import { PreloadLinks } from "./views/PreloadLinks
|
12
|
-
import { ScrollRestoration } from "./views/ScrollRestoration
|
13
|
-
import { rand } from "./utils/rand
|
14
|
-
typeof window < "u" && (window.__getReactRefreshIgnoredExports = function
|
15
|
-
return [
|
8
|
+
import UpstreamNavigationContainer from "./fork/NavigationContainer";
|
9
|
+
import { ServerLocationContext } from "./router/serverLocationContext";
|
10
|
+
import { useInitializeOneRouter } from "./router/useInitializeOneRouter";
|
11
|
+
import { PreloadLinks } from "./views/PreloadLinks";
|
12
|
+
import { ScrollRestoration } from "./views/ScrollRestoration";
|
13
|
+
import { rand } from "./utils/rand";
|
14
|
+
typeof window < "u" && (window.__getReactRefreshIgnoredExports = function() {
|
15
|
+
return [
|
16
|
+
"feedCardQuery",
|
17
|
+
"feedCardReplyQuery",
|
18
|
+
"loader"
|
19
|
+
];
|
16
20
|
});
|
17
21
|
function Root(props) {
|
18
|
-
var _loaderData_constructor,
|
19
|
-
_props_css,
|
20
|
-
contents =
|
22
|
+
var _loaderData_constructor, _props_css, contents = (
|
21
23
|
// <StrictMode>
|
22
|
-
/* @__PURE__ */
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
/* @__PURE__ */ _jsxs(RootErrorBoundary, {
|
25
|
+
children: [
|
26
|
+
/* for some reason warning if no key here */
|
27
|
+
/* @__PURE__ */ _jsx(Contents, {
|
28
|
+
...props
|
29
|
+
}, "contents"),
|
30
|
+
/* @__PURE__ */ _jsx(PreloadLinks, {}, "preload-links")
|
31
|
+
]
|
32
|
+
})
|
33
|
+
);
|
29
34
|
if (props.isClient) {
|
30
35
|
if (globalThis.__vxrnHydrateMode__ === "spa") {
|
31
36
|
var [show, setShow] = useState(!1);
|
32
|
-
return useEffect(function
|
37
|
+
return useEffect(function() {
|
33
38
|
setShow(!0);
|
34
39
|
}, []), show ? contents : null;
|
35
40
|
}
|
36
41
|
return contents;
|
37
42
|
}
|
38
|
-
var {
|
39
|
-
|
40
|
-
} = props;
|
41
|
-
return (loaderData == null || (_loaderData_constructor = loaderData.constructor) === null || _loaderData_constructor === void 0 ? void 0 : _loaderData_constructor.name) === "QueryImpl" && (loaderData = void 0), /* @__PURE__ */_jsxs("html", {
|
43
|
+
var { loaderData } = props;
|
44
|
+
return (loaderData == null || (_loaderData_constructor = loaderData.constructor) === null || _loaderData_constructor === void 0 ? void 0 : _loaderData_constructor.name) === "QueryImpl" && (loaderData = void 0), /* @__PURE__ */ _jsxs("html", {
|
42
45
|
lang: "en-US",
|
43
|
-
children: [
|
44
|
-
|
46
|
+
children: [
|
47
|
+
/* @__PURE__ */ _jsxs("head", {
|
48
|
+
children: [
|
49
|
+
process.env.NODE_ENV === "development" ? /* @__PURE__ */ _jsx(DevHead, {}) : null,
|
50
|
+
/* @__PURE__ */ _jsx("script", {
|
51
|
+
dangerouslySetInnerHTML: {
|
52
|
+
__html: "globalThis['global'] = globalThis"
|
53
|
+
}
|
54
|
+
}),
|
55
|
+
(_props_css = props.css) === null || _props_css === void 0 ? void 0 : _props_css.map(function(file) {
|
56
|
+
return /* @__PURE__ */ _jsx("link", {
|
57
|
+
rel: "stylesheet",
|
58
|
+
href: file
|
59
|
+
}, file);
|
60
|
+
})
|
61
|
+
]
|
62
|
+
}),
|
63
|
+
/* @__PURE__ */ _jsx("body", {
|
64
|
+
children: contents
|
65
|
+
}),
|
66
|
+
/* could this just be loaded via the same loader.js? as a preload? i think so... */
|
67
|
+
/* @__PURE__ */ _jsx("script", {
|
68
|
+
async: !0,
|
69
|
+
// @ts-ignore
|
70
|
+
href: "one-loader-data",
|
45
71
|
dangerouslySetInnerHTML: {
|
46
|
-
__html:
|
47
|
-
}
|
48
|
-
}), (_props_css = props.css) === null || _props_css === void 0 ? void 0 : _props_css.map(function (file) {
|
49
|
-
return /* @__PURE__ */_jsx("link", {
|
50
|
-
rel: "stylesheet",
|
51
|
-
href: file
|
52
|
-
}, file);
|
53
|
-
})]
|
54
|
-
}), /* @__PURE__ */_jsx("body", {
|
55
|
-
children: contents
|
56
|
-
}), /* could this just be loaded via the same loader.js? as a preload? i think so... */
|
57
|
-
/* @__PURE__ */_jsx("script", {
|
58
|
-
async: !0,
|
59
|
-
// @ts-ignore
|
60
|
-
href: "one-loader-data",
|
61
|
-
dangerouslySetInnerHTML: {
|
62
|
-
__html: `
|
72
|
+
__html: `
|
63
73
|
globalThis['__vxrnPostRenderData__'] = { __vxrn__: 'post-render' };
|
64
74
|
globalThis['__vxrnLoaderData__'] = ${JSON.stringify(loaderData)};
|
65
75
|
globalThis['__vxrnLoaderProps__'] = ${JSON.stringify(props.loaderProps)};
|
66
76
|
globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(props.mode)};
|
67
77
|
`
|
68
|
-
|
69
|
-
|
78
|
+
}
|
79
|
+
})
|
80
|
+
]
|
70
81
|
});
|
71
82
|
}
|
72
83
|
var ssrCSSID = `/@id/__x00__virtual:ssr-css.css?t=${rand()}`;
|
73
84
|
function DevHead() {
|
74
|
-
return /* @__PURE__ */_jsxs(_Fragment, {
|
75
|
-
children: [
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
85
|
+
return /* @__PURE__ */ _jsxs(_Fragment, {
|
86
|
+
children: [
|
87
|
+
/* @__PURE__ */ _jsx("link", {
|
88
|
+
rel: "preload",
|
89
|
+
href: ssrCSSID,
|
90
|
+
as: "style"
|
91
|
+
}),
|
92
|
+
/* @__PURE__ */ _jsx("link", {
|
93
|
+
rel: "stylesheet",
|
94
|
+
href: ssrCSSID,
|
95
|
+
"data-ssr-css": !0
|
96
|
+
}),
|
97
|
+
/* @__PURE__ */ _jsx("script", {
|
98
|
+
type: "module",
|
99
|
+
dangerouslySetInnerHTML: {
|
100
|
+
__html: `import { createHotContext } from "/@vite/client";
|
87
101
|
const hot = createHotContext("/__clear_ssr_css");
|
88
102
|
hot.on("vite:afterUpdate", () => {
|
89
103
|
document
|
90
104
|
.querySelectorAll("[data-ssr-css]")
|
91
105
|
.forEach(node => node.remove());
|
92
106
|
});`
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
107
|
+
}
|
108
|
+
}),
|
109
|
+
/* @__PURE__ */ _jsx("script", {
|
110
|
+
type: "module",
|
111
|
+
dangerouslySetInnerHTML: {
|
112
|
+
__html: `import { injectIntoGlobalHook } from "/@react-refresh";
|
98
113
|
injectIntoGlobalHook(window);
|
99
114
|
window.$RefreshReg$ = () => {};
|
100
115
|
window.$RefreshSig$ = () => (type) => type;`
|
101
|
-
|
102
|
-
|
116
|
+
}
|
117
|
+
})
|
118
|
+
]
|
103
119
|
});
|
104
120
|
}
|
105
121
|
function Contents(param) {
|
106
|
-
var {
|
107
|
-
|
108
|
-
path,
|
109
|
-
wrapper = Fragment,
|
110
|
-
routeOptions,
|
111
|
-
...props
|
112
|
-
} = param,
|
113
|
-
context = useViteRoutes(routes, routeOptions, globalThis.__vxrnVersion),
|
114
|
-
location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", "http://localhost");
|
115
|
-
return /* @__PURE__ */_jsx(ContextNavigator, {
|
122
|
+
var { routes, path, wrapper = Fragment, routeOptions, ...props } = param, context = useViteRoutes(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", "http://localhost");
|
123
|
+
return /* @__PURE__ */ _jsx(ContextNavigator, {
|
116
124
|
...props,
|
117
125
|
location,
|
118
126
|
context,
|
@@ -120,26 +128,21 @@ function Contents(param) {
|
|
120
128
|
});
|
121
129
|
}
|
122
130
|
function ContextNavigator(param) {
|
123
|
-
var {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
[colorScheme] = useColorScheme(),
|
131
|
-
wrapper = function (children) {
|
132
|
-
return /* @__PURE__ */_jsxs(ParentWrapper, {
|
133
|
-
children: [/* default scroll restoration to on, but users can configure it by importing and using themselves */
|
134
|
-
/* @__PURE__ */_jsx(ScrollRestoration, {}), /* <GestureHandlerRootView> */
|
135
|
-
/* @__PURE__ */_jsx(SafeAreaProviderCompat, {
|
131
|
+
var { wrapper: ParentWrapper = Fragment, context, location: initialLocation, navigationContainerProps } = param, store = useInitializeOneRouter(context, initialLocation), [colorScheme] = useColorScheme(), wrapper = function(children) {
|
132
|
+
return /* @__PURE__ */ _jsxs(ParentWrapper, {
|
133
|
+
children: [
|
134
|
+
/* default scroll restoration to on, but users can configure it by importing and using themselves */
|
135
|
+
/* @__PURE__ */ _jsx(ScrollRestoration, {}),
|
136
|
+
/* <GestureHandlerRootView> */
|
137
|
+
/* @__PURE__ */ _jsx(SafeAreaProviderCompat, {
|
136
138
|
children
|
137
|
-
})
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
if (!Component)
|
142
|
-
|
139
|
+
})
|
140
|
+
]
|
141
|
+
});
|
142
|
+
}, Component = store.rootComponent;
|
143
|
+
if (!Component)
|
144
|
+
throw new Error("No root component found");
|
145
|
+
return /* @__PURE__ */ _jsx(UpstreamNavigationContainer, {
|
143
146
|
ref: store.navigationRef,
|
144
147
|
initialState: store.initialState,
|
145
148
|
linking: store.linking,
|
@@ -149,16 +152,15 @@ function ContextNavigator(param) {
|
|
149
152
|
enabled: !1
|
150
153
|
},
|
151
154
|
...navigationContainerProps,
|
152
|
-
children: /* @__PURE__ */_jsx(ServerLocationContext.Provider, {
|
155
|
+
children: /* @__PURE__ */ _jsx(ServerLocationContext.Provider, {
|
153
156
|
value: initialLocation,
|
154
|
-
children: wrapper(/* @__PURE__ */_jsx(Component, {}))
|
157
|
+
children: wrapper(/* @__PURE__ */ _jsx(Component, {}))
|
155
158
|
})
|
156
159
|
});
|
157
160
|
}
|
158
161
|
var onUnhandledAction;
|
159
|
-
process.env.NODE_ENV !== "production" ? onUnhandledAction = function
|
160
|
-
var payload = action.payload,
|
161
|
-
message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : ""} was not handled by any navigator.`;
|
162
|
+
process.env.NODE_ENV !== "production" ? onUnhandledAction = function(action) {
|
163
|
+
var payload = action.payload, message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : ""} was not handled by any navigator.`;
|
162
164
|
switch (action.type) {
|
163
165
|
case "NAVIGATE":
|
164
166
|
case "PUSH":
|
@@ -187,8 +189,12 @@ Is your screen inside a Drawer navigator?`;
|
|
187
189
|
}
|
188
190
|
if (message += `
|
189
191
|
|
190
|
-
This is a development-only warning and won't be shown in production.`, process.env.NODE_ENV === "test")
|
192
|
+
This is a development-only warning and won't be shown in production.`, process.env.NODE_ENV === "test")
|
193
|
+
throw new Error(message);
|
191
194
|
console.error(message);
|
192
|
-
} : onUnhandledAction = function
|
193
|
-
|
194
|
-
|
195
|
+
} : onUnhandledAction = function() {
|
196
|
+
};
|
197
|
+
export {
|
198
|
+
Root
|
199
|
+
};
|
200
|
+
//# sourceMappingURL=Root.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/Root.tsx"],
|
4
|
+
"mappings": "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",
|
5
|
+
"names": ["Fragment", "useEffect", "useState", "useViteRoutes", "RootErrorBoundary", "DarkTheme", "DefaultTheme", "SafeAreaProviderCompat", "useColorScheme", "UpstreamNavigationContainer", "ServerLocationContext", "useInitializeOneRouter", "PreloadLinks", "ScrollRestoration", "rand", "window", "__getReactRefreshIgnoredExports", "Root", "props", "loaderData", "contents", "Contents", "isClient", "globalThis", "show", "setShow", "constructor", "name", "undefined", "html", "lang", "head", "process", "env", "NODE_ENV", "DevHead", "script", "dangerouslySetInnerHTML", "__html", "css", "map", "file", "link", "rel", "href", "body", "async", "JSON", "stringify", "loaderProps", "mode", "ssrCSSID", "as", "data-ssr-css", "type", "routes", "path", "wrapper", "routeOptions", "context", "location", "URL", "ContextNavigator", "ParentWrapper", "initialLocation", "navigationContainerProps", "store", "colorScheme", "children", "Component", "rootComponent", "Error", "ref", "navigationRef", "initialState", "linking", "onUnhandledAction", "theme", "documentTitle", "enabled", "Provider", "value", "action", "payload", "message", "console", "error"]
|
6
|
+
}
|
package/dist/esm/Route.native.js
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import React, { useContext } from "react";
|
3
|
-
import { getContextKey } from "./matchers
|
4
|
-
var CurrentRouteContext = /* @__PURE__ */React.createContext(null);
|
3
|
+
import { getContextKey } from "./matchers";
|
4
|
+
var CurrentRouteContext = /* @__PURE__ */ React.createContext(null);
|
5
5
|
process.env.NODE_ENV !== "production" && (CurrentRouteContext.displayName = "RouteNode");
|
6
6
|
function useRouteNode() {
|
7
7
|
return useContext(CurrentRouteContext);
|
8
8
|
}
|
9
9
|
function useContextKey() {
|
10
10
|
var node = useRouteNode();
|
11
|
-
if (node == null)
|
11
|
+
if (node == null)
|
12
|
+
throw new Error("No filename found. This is likely a bug in router.");
|
12
13
|
return getContextKey(node.contextKey);
|
13
14
|
}
|
14
15
|
function Route(param) {
|
15
|
-
var {
|
16
|
-
|
17
|
-
node
|
18
|
-
} = param;
|
19
|
-
return /* @__PURE__ */_jsx(CurrentRouteContext.Provider, {
|
16
|
+
var { children, node } = param;
|
17
|
+
return /* @__PURE__ */ _jsx(CurrentRouteContext.Provider, {
|
20
18
|
value: node,
|
21
19
|
children
|
22
20
|
});
|
23
21
|
}
|
24
|
-
export {
|
25
|
-
|
22
|
+
export {
|
23
|
+
Route,
|
24
|
+
useContextKey,
|
25
|
+
useRouteNode
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=Route.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/Route.tsx"],
|
4
|
+
"mappings": ";AAAA,OAAOA,SAASC,kBAAkC;AAElD,SAASC,qBAAqB;AA4C9B,IAAMC,sBAAsBH,sBAAMI,cAAgC,IAAA;AAE9DC,QAAQC,IAAIC,aAAa,iBAC3BJ,oBAAoBK,cAAc;AAI7B,SAASC,eAAAA;AACd,SAAOR,WAAWE,mBAAAA;AACpB;AAEO,SAASO,gBAAAA;AACd,MAAMC,OAAOF,aAAAA;AACb,MAAIE,QAAQ;AACV,UAAM,IAAIC,MAAM,oDAAA;AAElB,SAAOV,cAAcS,KAAKE,UAAU;AACtC;AAGO,SAASC,MAAM,OAA4D;MAA5D,EAAEC,UAAUJ,KAAI,IAAhB;AACpB,SAAO,qBAACR,oBAAoBa,UAAQ;IAACC,OAAON;;;AAC9C;",
|
5
|
+
"names": ["React", "useContext", "getContextKey", "CurrentRouteContext", "createContext", "process", "env", "NODE_ENV", "displayName", "useRouteNode", "useContextKey", "node", "Error", "contextKey", "Route", "children", "Provider", "value"]
|
6
|
+
}
|
package/dist/esm/cleanUrl.js
CHANGED
@@ -18,7 +18,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
|
|
18
18
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
19
19
|
}
|
20
20
|
function getPathFromLoaderPath(loaderPath) {
|
21
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
21
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
22
22
|
}
|
23
23
|
function getSearchParams(searchParams) {
|
24
24
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
package/dist/esm/cleanUrl.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cleanUrl.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU,IAE7D,iBAAiB,IAAI;AAAA,IACzB;AAAA,IACA;AAAA;AAAA,EACF;AAEA,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,CAAC,CAAC,CAAC,kBAAkB,gBAAgB,eAAe,MAAM,CAAC;AAC1I;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,mBAAmB,EAAE,EAC7B,QAAQ,sBAAsB,EAAE,EAChC,
|
4
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU,IAE7D,iBAAiB,IAAI;AAAA,IACzB;AAAA,IACA;AAAA;AAAA,EACF;AAEA,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,CAAC,CAAC,CAAC,kBAAkB,gBAAgB,eAAe,MAAM,CAAC;AAC1I;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,mBAAmB,EAAE,EAC7B,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;AAEA,SAAS,gBAAgB,cAAc;AACrC,SAAK,eAIE,GAAG,YAAY,IAAI,iBAAiB,MAAM,CAAC,CAA8B,KAHvE;AAIX;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/cleanUrl.mjs
CHANGED
@@ -19,7 +19,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
|
|
19
19
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
20
20
|
}
|
21
21
|
function getPathFromLoaderPath(loaderPath) {
|
22
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
22
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
23
23
|
}
|
24
24
|
function getSearchParams(searchParams) {
|
25
25
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getSearchParams","search","getPathFromLoaderPath","loaderPath","searchParams"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASkB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBW,eAAA,CAAgBH,cAAA,CAAeI,MAAM,CAAC;AAC1I;AAEO,SAASC,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJrB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,
|
1
|
+
{"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getSearchParams","search","getPathFromLoaderPath","loaderPath","searchParams"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASkB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBW,eAAA,CAAgBH,cAAA,CAAeI,MAAM,CAAC;AAC1I;AAEO,SAASC,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJrB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB;AAEA,SAASmB,gBAAgBI,YAAA,EAAc;EACrC,OAAKA,YAAA,GAIE,GAAGA,YAAY,IAAInB,gBAAA,CAAiBI,KAAA,CAAM,CAAC,CAA8B,KAHvEJ,gBAAA;AAIX","ignoreList":[]}
|
@@ -1,28 +1,27 @@
|
|
1
|
-
import { isNative } from "./constants
|
2
|
-
import { getURL } from "./getURL
|
3
|
-
import { CACHE_KEY } from "./router/constants
|
4
|
-
import { removeSearch } from "./utils/removeSearch
|
1
|
+
import { isNative } from "./constants";
|
2
|
+
import { getURL } from "./getURL";
|
3
|
+
import { CACHE_KEY } from "./router/constants";
|
4
|
+
import { removeSearch } from "./utils/removeSearch";
|
5
5
|
function cleanUrl(path) {
|
6
6
|
return removeSearch(path).replaceAll("/", "_").replace(/_$/, "");
|
7
7
|
}
|
8
|
-
var isClient = typeof window < "u",
|
9
|
-
clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : "",
|
10
|
-
clientSideURL = isClient ? getURL() : "";
|
8
|
+
var isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : "", clientSideURL = isClient ? getURL() : "";
|
11
9
|
function getPreloadPath(currentPath) {
|
12
10
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
13
11
|
}
|
14
12
|
function getLoaderPath(currentPath) {
|
15
|
-
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : isNative,
|
16
|
-
baseURL = includeUrl ? getURL() : "",
|
17
|
-
devPath = process.env.NODE_ENV === "development" ? "/_one" : "",
|
18
|
-
currentPathUrl = new URL(currentPath, "http://example.com");
|
13
|
+
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : isNative, baseURL = includeUrl ? getURL() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "", currentPathUrl = new URL(currentPath, "http://example.com");
|
19
14
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
20
15
|
}
|
21
16
|
function getPathFromLoaderPath(loaderPath) {
|
22
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
17
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
23
18
|
}
|
24
19
|
function getSearchParams(searchParams) {
|
25
20
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
26
21
|
}
|
27
|
-
export {
|
28
|
-
|
22
|
+
export {
|
23
|
+
getLoaderPath,
|
24
|
+
getPathFromLoaderPath,
|
25
|
+
getPreloadPath
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=cleanUrl.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/cleanUrl.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,gBAAgB;AACzB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAE7B,SAASC,SAASC,MAAY;AAC5B,SACEF,aAAaE,IAAAA,EACVC,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,mBAAmBF,WAAW,UAAUN,SAAAA,KAAc,IACtDS,gBAAgBH,WAAWP,OAAAA,IAAW;AAErC,SAASW,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBP,SAASS,YAAYC,MAAM,CAAA,CAAA,CAAA,cAAiBJ,gBAAAA;AAChF;AAEO,SAASK,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAahB,UAEPiB,UAAUD,aAAaf,OAAAA,IAAW,IAClCiB,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBd,SAASkB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,kBAAqBW,gBAAgBH,eAAeI,MAAM,CAAA;AACzI;AAEO,SAASC,sBAAsBC,YAAkB;AACtD,SAAOA,WACJrB,QAAQ,mBAAmB,EAAA,EAC3BA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;AAEA,SAASmB,gBAAgBI,cAAY;AACnC,SAAKA,eAIE,GAAGA,YAAAA,IAAgBnB,iBAAiBI,MAAM,CAAA,CAAA,KAHxCJ;AAIX;",
|
5
|
+
"names": ["isNative", "getURL", "CACHE_KEY", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideSearch", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getSearchParams", "search", "getPathFromLoaderPath", "loaderPath", "searchParams"]
|
6
|
+
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { homedir } from "node:os";
|
2
2
|
function labelProcess(title) {
|
3
|
-
var home = homedir(),
|
4
|
-
cwd = process.cwd();
|
3
|
+
var home = homedir(), cwd = process.cwd();
|
5
4
|
process.title = `Onejs:${title} > ${cwd.replace(home, "~")}`;
|
6
5
|
}
|
7
|
-
export {
|
8
|
-
|
6
|
+
export {
|
7
|
+
labelProcess
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=label-process.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/label-process.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,eAAe;AAEjB,SAASC,aAAaC,OAAa;AACxC,MAAMC,OAAOH,QAAAA,GACPI,MAAMC,QAAQD,IAAG;AACvBC,UAAQH,QAAQ,SAASA,KAAAA,MAAWE,IAAIE,QAAQH,MAAM,GAAA,CAAA;AACxD;",
|
5
|
+
"names": ["homedir", "labelProcess", "title", "home", "cwd", "process", "replace"]
|
6
|
+
}
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import { existsSync } from "node:fs";
|
2
2
|
import { createRequire } from "node:module";
|
3
|
-
import { run } from "./run
|
3
|
+
import { run } from "./run";
|
4
4
|
async function getLatestVersion(packageName) {
|
5
|
-
var require2 = createRequire(import.meta.url),
|
6
|
-
_confuseDepCheck = require2,
|
7
|
-
packageJson = _confuseDepCheck("one/package.json"),
|
8
|
-
currentVersion = packageJson.version;
|
5
|
+
var require2 = createRequire(import.meta.url), _confuseDepCheck = require2, packageJson = _confuseDepCheck("one/package.json"), currentVersion = packageJson.version;
|
9
6
|
try {
|
10
|
-
var response = await fetch(`https://registry.npmjs.org/${packageName}`),
|
11
|
-
data = await response.json(),
|
12
|
-
latest = data["dist-tags"].latest;
|
7
|
+
var response = await fetch(`https://registry.npmjs.org/${packageName}`), data = await response.json(), latest = data["dist-tags"].latest;
|
13
8
|
latest && currentVersion !== latest && (console.info(`
|
14
9
|
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
15
10
|
`));
|
@@ -20,10 +15,10 @@ async function getLatestVersion(packageName) {
|
|
20
15
|
async function cliMain() {
|
21
16
|
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
22
17
|
getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
|
23
|
-
var {
|
24
|
-
create
|
25
|
-
} = await import("create-vxrn/create");
|
18
|
+
var { create } = await import("create-vxrn/create");
|
26
19
|
await create({});
|
27
20
|
}
|
28
|
-
export {
|
29
|
-
|
21
|
+
export {
|
22
|
+
cliMain
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=main.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/main.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,kBAAkB;AAC3B,SAASC,qBAAqB;AAC9B,SAASC,WAAW;AAEpB,eAAeC,iBAAiBC,aAAmB;AACjD,MAAMC,WAAUJ,cAAc,YAAYK,GAAG,GACvCC,mBAAmBF,UACnBG,cAAcD,iBAAiB,kBAAA,GAC/BE,iBAAiBD,YAAYE;AAEnC,MAAI;AACF,QAAMC,WAAW,MAAMC,MAAM,8BAA8BR,WAAAA,EAAa,GAClES,OAAO,MAAMF,SAASG,KAAI,GAC1BC,SAASF,KAAK,WAAA,EAAaE;AAEjC,IAAIA,UAAUN,mBAAmBM,WAE/BC,QAAQC,KAAK;2BAAyBR,cAAAA,WAAoBM,MAAAA,EAAQ,GAClEC,QAAQC,KAAK;CAAA;EAEjB,SAASC,OAAO;AACdF,YAAQE,MAAM,uCAAuCA,KAAAA;EACvD;AACF;AAEA,eAAsBC,UAAAA;MAAQC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAO,CAAC;AAEpC,EAAKjB,iBAAiB,KAAA,GAElBH,WAAW,gBAAA,MAEb,MAAME,IAAIkB,IAAAA,GACVC,QAAQC,KAAK,CAAA;AAGf,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,oBAAA;AAChC,QAAMA,OAAO,CAAC,CAAA;AAChB;",
|
5
|
+
"names": ["existsSync", "createRequire", "run", "getLatestVersion", "packageName", "require", "url", "_confuseDepCheck", "packageJson", "currentVersion", "version", "response", "fetch", "data", "json", "latest", "console", "info", "error", "cliMain", "args", "process", "exit", "create"]
|
6
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
async function run(args) {
|
2
|
-
var {
|
3
|
-
prebuild
|
4
|
-
} = await import("vxrn");
|
2
|
+
var { prebuild } = await import("vxrn");
|
5
3
|
await prebuild({
|
6
4
|
root: process.cwd()
|
7
5
|
});
|
8
6
|
}
|
9
|
-
export {
|
10
|
-
|
7
|
+
export {
|
8
|
+
run
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=prebuild.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/prebuild.ts"],
|
4
|
+
"mappings": "AAAA,eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,SAAQ,IAAK,MAAM,OAAO,MAAA;AAClC,QAAMA,SAAS;IACbC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
|
5
|
+
"names": ["run", "args", "prebuild", "root", "process", "cwd"]
|
6
|
+
}
|
@@ -1,35 +1,28 @@
|
|
1
|
-
import { virtualEntryIdNative } from "../vite/virtualEntryPlugin
|
2
|
-
import { labelProcess } from "./label-process
|
1
|
+
import { virtualEntryIdNative } from "../vite/virtualEntryPlugin";
|
2
|
+
import { labelProcess } from "./label-process";
|
3
3
|
async function run(args) {
|
4
4
|
labelProcess("dev");
|
5
|
-
var {
|
6
|
-
|
7
|
-
|
8
|
-
{
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
},
|
19
|
-
entries: {
|
20
|
-
native: virtualEntryIdNative
|
21
|
-
}
|
22
|
-
}),
|
23
|
-
{
|
24
|
-
closePromise
|
25
|
-
} = await start();
|
26
|
-
process.on("beforeExit", function () {
|
5
|
+
var { dev } = await import("vxrn"), { start, stop } = await dev({
|
6
|
+
clean: args.clean,
|
7
|
+
root: process.cwd(),
|
8
|
+
server: {
|
9
|
+
https: args.https,
|
10
|
+
host: args.host,
|
11
|
+
port: args.port ? +args.port : void 0
|
12
|
+
},
|
13
|
+
entries: {
|
14
|
+
native: virtualEntryIdNative
|
15
|
+
}
|
16
|
+
}), { closePromise } = await start();
|
17
|
+
process.on("beforeExit", function() {
|
27
18
|
stop();
|
28
|
-
}), process.on("SIGINT", function
|
19
|
+
}), process.on("SIGINT", function() {
|
29
20
|
stop();
|
30
|
-
}), process.on("uncaughtException", function
|
21
|
+
}), process.on("uncaughtException", function(err) {
|
31
22
|
console.error(err?.message || err);
|
32
23
|
}), await closePromise;
|
33
24
|
}
|
34
|
-
export {
|
35
|
-
|
25
|
+
export {
|
26
|
+
run
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=run.js.map
|