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/link/Users/n8/one/packages/one/src/link/path.ts"],
|
4
|
+
"mappings": "AAuBA,SAASA,WAAWC,MAAY;AAC9B,MAAI,OAAOA,QAAS;AAClB,UAAM,IAAIC,UAAU,qCAAqCC,KAAKC,UAAUH,IAAAA,CAAAA;AAE5E;AAGA,SAASI,qBAAqBJ,MAAcK,gBAAwB;AAMlE,WALIC,MAAM,IACNC,oBAAoB,GACpBC,YAAY,IACZC,OAAO,GACPC,MACKC,IAAI,GAAGA,KAAKX,KAAKY,QAAQ,EAAED,GAAG;AACrC,QAAIA,IAAIX,KAAKY;AACXF,aAAOV,KAAKa,WAAWF,CAAAA;SAClB;UAAID,SAAS;AAClB;AAEAA,aAAO;;AAET,QAAIA,SAAS,IAAU;AACrB,UAAIF,gBAAcG,IAAI,KAAKF,SAAS;AAE7B,YAAID,cAAcG,IAAI,KAAKF,SAAS,GAAG;AAC5C,cACEH,IAAIM,SAAS,KACbL,sBAAsB,KACtBD,IAAIO,WAAWP,IAAIM,SAAS,CAAA,MAAO;UACnCN,IAAIO,WAAWP,IAAIM,SAAS,CAAA,MAAO;AAEnC,gBAAIN,IAAIM,SAAS,GAAG;AAClB,kBAAME,iBAAiBR,IAAIS,YAAY,GAAA;AACvC,kBAAID,mBAAmBR,IAAIM,SAAS,GAAG;AACrC,gBAAIE,mBAAmB,MACrBR,MAAM,IACNC,oBAAoB,MAEpBD,MAAMA,IAAIU,MAAM,GAAGF,cAAAA,GACnBP,oBAAoBD,IAAIM,SAAS,IAAIN,IAAIS,YAAY,GAAA,IAEvDP,YAAYG,GACZF,OAAO;AACP;cACF;YACF,WAAWH,IAAIM,WAAW,KAAKN,IAAIM,WAAW,GAAG;AAC/CN,oBAAM,IACNC,oBAAoB,GACpBC,YAAYG,GACZF,OAAO;AACP;YACF;;AAEF,UAAIJ,mBACEC,IAAIM,SAAS,IAAGN,OAAO,QACtBA,MAAM,MACXC,oBAAoB;QAExB;AACE,UAAID,IAAIM,SAAS,IAAGN,OAAO,MAAMN,KAAKgB,MAAMR,YAAY,GAAGG,CAAAA,IACtDL,MAAMN,KAAKgB,MAAMR,YAAY,GAAGG,CAAAA,GACrCJ,oBAAoBI,IAAIH,YAAY;AAEtCA,kBAAYG,GACZF,OAAO;IACT,MAAO,CAAIC,SAAS;IAAYD,SAAS,KACvC,EAAEA,OAEFA,OAAO;EAEX;AACA,SAAOH;AACT;AAGO,SAASW,UAAAA;AAAQ,WAAA,OAAA,UAAA,QAAGC,WAAH,IAAA,MAAA,IAAA,GAAA,OAAA,GAAA,OAAA,MAAA;AAAGA,aAAH,IAAA,IAAA,UAAA,IAAA;AAItB,WAHIC,eAAe,IACfC,mBAAmB,IAEdT,IAAIO,SAASN,SAAS,GAAGD,KAAK,MAAM,CAACS,kBAAkBT,KAAK;AACnE,QAAIX,OAAAA;AAUJ,IATIW,KAAK,IACPX,OAAOkB,SAASP,CAAAA,IAEhBX,OAAO,KAGTD,WAAWC,IAAAA,GAGPA,KAAKY,WAAW,MAIpBO,eAAenB,OAAO,MAAMmB,cAC5BC,mBAAmBpB,KAAKa,WAAW,CAAA,MAAO;EAC5C;AAQA,SAFAM,eAAef,qBAAqBe,cAAc,CAACC,gBAAAA,GAE/CA,mBACED,aAAaP,SAAS,IACjB,MAAMO,eAER,MAELA,aAAaP,SAAS,IACjBO,eAEF;AACT;",
|
5
|
+
"names": ["assertPath", "path", "TypeError", "JSON", "stringify", "normalizeStringPosix", "allowAboveRoot", "res", "lastSegmentLength", "lastSlash", "dots", "code", "i", "length", "charCodeAt", "lastSlashIndex", "lastIndexOf", "slice", "resolve", "segments", "resolvedPath", "resolvedAbsolute"]
|
6
|
+
}
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import { Platform } from "react-native";
|
2
|
-
import { appendBaseUrl } from "../fork/getPathFromState
|
3
|
-
import { useOneRouter } from "../router/router
|
4
|
-
import { stripGroupSegmentsFromPath } from "../matchers
|
2
|
+
import { appendBaseUrl } from "../fork/getPathFromState";
|
3
|
+
import { useOneRouter } from "../router/router";
|
4
|
+
import { stripGroupSegmentsFromPath } from "../matchers";
|
5
5
|
function eventShouldPreventDefault(e) {
|
6
|
-
return e?.defaultPrevented ? !1 :
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
return e?.defaultPrevented ? !1 : (
|
7
|
+
// Only check MouseEvents
|
8
|
+
!!("button" in e && // ignore clicks with modifier keys
|
9
|
+
!e.metaKey && !e.altKey && !e.ctrlKey && !e.shiftKey && (e.button == null || e.button === 0) && // Only accept left clicks
|
10
|
+
[
|
11
|
+
void 0,
|
12
|
+
null,
|
13
|
+
"",
|
14
|
+
"self"
|
15
|
+
].includes(e.currentTarget.target))
|
16
|
+
);
|
13
17
|
}
|
14
18
|
function useLinkTo(props) {
|
15
|
-
var {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
var event = props.replace ? "REPLACE" : "PUSH",
|
20
|
-
shouldHandle = !1;
|
21
|
-
Platform.OS !== "web" || !e ? shouldHandle = e ? !e.defaultPrevented : !0 : eventShouldPreventDefault(e) && (e.preventDefault(), shouldHandle = !0), shouldHandle && linkTo(props.href, event);
|
22
|
-
};
|
19
|
+
var { linkTo } = useOneRouter(), onPress = function(e) {
|
20
|
+
var event = props.replace ? "REPLACE" : "PUSH", shouldHandle = !1;
|
21
|
+
Platform.OS !== "web" || !e ? shouldHandle = e ? !e.defaultPrevented : !0 : eventShouldPreventDefault(e) && (e.preventDefault(), shouldHandle = !0), shouldHandle && linkTo(props.href, event);
|
22
|
+
};
|
23
23
|
return {
|
24
24
|
// Ensure there's always a value for href. Manually append the baseUrl to the href prop that shows in the static HTML.
|
25
25
|
href: appendBaseUrl(stripGroupSegmentsFromPath(props.href) || "/"),
|
@@ -27,5 +27,7 @@ function useLinkTo(props) {
|
|
27
27
|
onPress
|
28
28
|
};
|
29
29
|
}
|
30
|
-
export {
|
31
|
-
|
30
|
+
export {
|
31
|
+
useLinkTo
|
32
|
+
};
|
33
|
+
//# sourceMappingURL=useLinkTo.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/link/Users/n8/one/packages/one/src/link/useLinkTo.tsx"],
|
4
|
+
"mappings": "AACA,SAASA,gBAA4C;AAErD,SAASC,qBAAqB;AAC9B,SAASC,oBAAoB;AAC7B,SAASC,kCAAkC;AAE3C,SAASC,0BACPC,GAA0E;AAE1E,SAAIA,GAAGC,mBACE;;IAKP,eAAYD;IAEZ,CAACA,EAAEE,WACH,CAACF,EAAEG,UACH,CAACH,EAAEI,WACH,CAACJ,EAAEK,aACFL,EAAEM,UAAU,QAAQN,EAAEM,WAAW;IAClC;MAACC;MAAW;MAAM;MAAI;MAAQC,SAASR,EAAES,cAAcC,MAAM;;AAMjE;AAEO,SAASC,UAAUC,OAA0C;AAClE,MAAM,EAAEC,OAAM,IAAKhB,aAAAA,GAEbiB,UAAU,SAACd,GAAAA;AACf,QAAMe,QAAQH,MAAMI,UAAU,YAAY,QACtCC,eAAe;AAEnB,IAAItB,SAASuB,OAAO,SAAS,CAAClB,IAC5BiB,eAAejB,IAAI,CAACA,EAAEC,mBAAmB,KAChCF,0BAA0BC,CAAAA,MACnCA,EAAEmB,eAAc,GAChBF,eAAe,KAGbA,gBACFJ,OAAOD,MAAMQ,MAAML,KAAAA;EAEvB;AAEA,SAAO;;IAELK,MAAMxB,cAAcE,2BAA2Bc,MAAMQ,IAAI,KAAK,GAAA;IAC9DC,MAAM;IACNP;EACF;AACF;",
|
5
|
+
"names": ["Platform", "appendBaseUrl", "useOneRouter", "stripGroupSegmentsFromPath", "eventShouldPreventDefault", "e", "defaultPrevented", "metaKey", "altKey", "ctrlKey", "shiftKey", "button", "undefined", "includes", "currentTarget", "target", "useLinkTo", "props", "linkTo", "onPress", "event", "replace", "shouldHandle", "OS", "preventDefault", "href", "role"]
|
6
|
+
}
|
@@ -1,42 +1,49 @@
|
|
1
1
|
import { useNavigation } from "@react-navigation/native";
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
3
|
-
import { useOneRouter } from "../router/router
|
3
|
+
import { useOneRouter } from "../router/router";
|
4
4
|
function useLoadedNavigation() {
|
5
|
-
var {
|
6
|
-
|
7
|
-
|
8
|
-
navigation = useNavigation(),
|
9
|
-
isMounted = useRef(!0),
|
10
|
-
pending = useRef([]);
|
11
|
-
useEffect(function () {
|
12
|
-
return isMounted.current = !0, function () {
|
5
|
+
var { navigationRef } = useOneRouter(), navigation = useNavigation(), isMounted = useRef(!0), pending = useRef([]);
|
6
|
+
useEffect(function() {
|
7
|
+
return isMounted.current = !0, function() {
|
13
8
|
isMounted.current = !1;
|
14
9
|
};
|
15
10
|
}, []);
|
16
|
-
var flush = useCallback(function
|
11
|
+
var flush = useCallback(function() {
|
17
12
|
if (isMounted.current) {
|
18
13
|
var pendingCallbacks = pending.current;
|
19
|
-
pending.current = [], pendingCallbacks.forEach(function
|
14
|
+
pending.current = [], pendingCallbacks.forEach(function(callback) {
|
20
15
|
callback(navigation);
|
21
16
|
});
|
22
17
|
}
|
23
|
-
}, [
|
24
|
-
|
18
|
+
}, [
|
19
|
+
navigation
|
20
|
+
]);
|
21
|
+
useEffect(function() {
|
25
22
|
navigationRef.current && flush();
|
26
|
-
}, [
|
27
|
-
|
23
|
+
}, [
|
24
|
+
flush,
|
25
|
+
navigationRef
|
26
|
+
]);
|
27
|
+
var push = useCallback(function(fn) {
|
28
28
|
pending.current.push(fn), navigationRef.current && flush();
|
29
|
-
}, [
|
29
|
+
}, [
|
30
|
+
flush,
|
31
|
+
navigationRef
|
32
|
+
]);
|
30
33
|
return push;
|
31
34
|
}
|
32
35
|
function useOptionalNavigation() {
|
33
|
-
var [navigation, setNavigation] = useState(null),
|
34
|
-
|
35
|
-
|
36
|
-
loadNavigation(function (nav) {
|
36
|
+
var [navigation, setNavigation] = useState(null), loadNavigation = useLoadedNavigation();
|
37
|
+
return useEffect(function() {
|
38
|
+
loadNavigation(function(nav) {
|
37
39
|
return setNavigation(nav);
|
38
40
|
});
|
39
|
-
}, [
|
41
|
+
}, [
|
42
|
+
loadNavigation
|
43
|
+
]), navigation;
|
40
44
|
}
|
41
|
-
export {
|
42
|
-
|
45
|
+
export {
|
46
|
+
useLoadedNavigation,
|
47
|
+
useOptionalNavigation
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=useLoadedNavigation.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/link/Users/n8/one/packages/one/src/link/useLoadedNavigation.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,qBAAgE;AACzE,SAASC,aAAaC,WAAWC,QAAQC,gBAAgB;AAEzD,SAASC,oBAAoB;AAOtB,SAASC,sBAAAA;AACd,MAAM,EAAEC,cAAa,IAAKF,aAAAA,GACpBG,aAAaR,cAAAA,GACbS,YAAYN,OAAO,EAAA,GACnBO,UAAUP,OAAoD,CAAA,CAAE;AAEtED,YAAU,WAAA;AACRO,qBAAUE,UAAU,IACb,WAAA;AACLF,gBAAUE,UAAU;IACtB;EACF,GAAG,CAAA,CAAE;AAEL,MAAMC,QAAQX,YAAY,WAAA;AACxB,QAAIQ,UAAUE,SAAS;AACrB,UAAME,mBAAmBH,QAAQC;AACjCD,cAAQC,UAAU,CAAA,GAClBE,iBAAiBC,QAAQ,SAACC,UAAAA;AACxBA,iBAASP,UAAAA;MACX,CAAA;IACF;EACF,GAAG;IAACA;GAAW;AAEfN,YAAU,WAAA;AACR,IAAIK,cAAcI,WAChBC,MAAAA;EAEJ,GAAG;IAACA;IAAOL;GAAc;AAEzB,MAAMS,OAAOf,YACX,SAACgB,IAAAA;AACCP,YAAQC,QAAQK,KAAKC,EAAAA,GACjBV,cAAcI,WAChBC,MAAAA;EAEJ,GACA;IAACA;IAAOL;GAAc;AAGxB,SAAOS;AACT;AAEO,SAASE,wBAAAA;AACd,MAAM,CAACV,YAAYW,aAAAA,IAAiBf,SAAmC,IAAA,GACjEgB,iBAAiBd,oBAAAA;AAEvBJ,mBAAU,WAAA;AACRkB,mBAAe,SAACC,KAAAA;aAAQF,cAAcE,GAAAA;;EACxC,GAAG;IAACD;GAAe,GAEZZ;AACT;",
|
5
|
+
"names": ["useNavigation", "useCallback", "useEffect", "useRef", "useState", "useOneRouter", "useLoadedNavigation", "navigationRef", "navigation", "isMounted", "pending", "current", "flush", "pendingCallbacks", "forEach", "callback", "push", "fn", "useOptionalNavigation", "setNavigation", "loadNavigation", "nav"]
|
6
|
+
}
|
@@ -31,7 +31,7 @@ function removeFileSystemDots(filePath) {
|
|
31
31
|
return filePath.replace(/^(?:\.\.?\/)+/g, "");
|
32
32
|
}
|
33
33
|
function stripGroupSegmentsFromPath(path) {
|
34
|
-
return path.split("/").reduce(function
|
34
|
+
return path.split("/").reduce(function(acc, v) {
|
35
35
|
return matchGroupName(v) == null && acc.push(v), acc;
|
36
36
|
}, []).join("/");
|
37
37
|
}
|
@@ -41,5 +41,18 @@ function stripInvisibleSegmentsFromPath(path) {
|
|
41
41
|
function isTypedRoute(name) {
|
42
42
|
return !name.startsWith("+") && name.match(/(_layout|[^/]*?\+[^/]*?)\.[tj]sx?$/) === null;
|
43
43
|
}
|
44
|
-
export {
|
45
|
-
|
44
|
+
export {
|
45
|
+
getContextKey,
|
46
|
+
getNameFromFilePath,
|
47
|
+
isTypedRoute,
|
48
|
+
matchArrayGroupName,
|
49
|
+
matchDeepDynamicRouteName,
|
50
|
+
matchDynamicName,
|
51
|
+
matchGroupName,
|
52
|
+
removeFileSystemDots,
|
53
|
+
removeSupportedExtensions,
|
54
|
+
stripGroupSegmentsFromPath,
|
55
|
+
stripInvisibleSegmentsFromPath,
|
56
|
+
testNotFound
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=matchers.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/matchers.ts"],
|
4
|
+
"mappings": "AACO,SAASA,iBAAiBC,MAAY;MAGpCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,4BAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAA2C,CAAA;AACpD;AAGO,SAASE,0BAA0BF,MAAY;MAC7CA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,sBAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAqC,CAAA;AAC9C;AAGO,SAASG,aAAaH,MAAY;AACvC,SAAO,eAAeI,KAAKJ,IAAAA;AAC7B;AAGO,SAASK,eAAeL,MAAY;MAClCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,mCAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAkD,CAAA;AAC3D;AAGO,SAASM,oBAAoBN,MAAY;MACvCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,0CAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAyD,CAAA;AAClE;AAEO,SAASO,oBAAoBP,MAAY;AAC9C,SAAOQ,0BAA0BC,qBAAqBT,IAAAA,CAAAA;AACxD;AAEO,SAASU,cAAcV,MAAY;AAGxC,MAAMW,SAAS,MAAMJ,oBAAoBP,IAAAA;AACzC,SAAKW,OAAOC,SAAS,SAAA,IAGdD,OAAOE,QAAQ,eAAe,EAAA,IAF5BF;AAGX;AAGO,SAASH,0BAA0BR,MAAY;AACpD,SAAOA,KAAKa,QAAQ,qCAAqC,EAAA;AAC3D;AAGO,SAASJ,qBAAqBK,UAAgB;AACnD,SAAOA,SAASD,QAAQ,kBAAkB,EAAA;AAC5C;AAEO,SAASE,2BAA2BC,MAAY;AACrD,SAAOA,KACJC,MAAM,GAAA,EACNC,OAAO,SAACC,KAAKC,GAAAA;AACZ,WAAIf,eAAee,CAAAA,KAAM,QACvBD,IAAIE,KAAKD,CAAAA,GAEJD;EACT,GAAG,CAAA,CAAE,EACJG,KAAK,GAAA;AACV;AAEO,SAASC,+BAA+BP,MAAY;AACzD,SAAOD,2BAA2BC,IAAAA,EAAMH,QAAQ,aAAa,EAAA;AAC/D;AAOO,SAASW,aAAaxB,MAAY;AACvC,SAAO,CAACA,KAAKyB,WAAW,GAAA,KAAQzB,KAAKC,MAAM,oCAAA,MAA0C;AACvF;",
|
5
|
+
"names": ["matchDynamicName", "name", "match", "matchDeepDynamicRouteName", "testNotFound", "test", "matchGroupName", "matchArrayGroupName", "getNameFromFilePath", "removeSupportedExtensions", "removeFileSystemDots", "getContextKey", "normal", "endsWith", "replace", "filePath", "stripGroupSegmentsFromPath", "path", "split", "reduce", "acc", "v", "push", "join", "stripInvisibleSegmentsFromPath", "isTypedRoute", "startsWith"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/platform.ts"],
|
4
|
+
"mappings": "AACO,IAAMA,QACX,OAAOC,SAAW,OAClB,OAAOC,YAAc,OACrB,OAAOC,WAAa;",
|
5
|
+
"names": ["isWeb", "window", "navigator", "document"]
|
6
|
+
}
|
@@ -2,12 +2,11 @@ import structuredClone from "@ungap/structured-clone";
|
|
2
2
|
import "@azure/core-asynciterator-polyfill";
|
3
3
|
import "core-js/actual/url";
|
4
4
|
import "core-js/actual/url-search-params";
|
5
|
-
import { promiseWithResolvers } from "./utils/promiseWithResolvers
|
5
|
+
import { promiseWithResolvers } from "./utils/promiseWithResolvers";
|
6
6
|
var _globalThis, _structuredClone, _globalThis1, _requestAnimationFrame;
|
7
7
|
globalThis.global = globalThis;
|
8
8
|
(_globalThis = globalThis)[_structuredClone = "structuredClone"] || (_globalThis[_structuredClone] = structuredClone);
|
9
9
|
(_globalThis1 = globalThis)[_requestAnimationFrame = "requestAnimationFrame"] || (_globalThis1[_requestAnimationFrame] = setTimeout);
|
10
|
-
Promise.withResolvers ||
|
11
|
-
|
12
|
-
|
13
|
-
//# sourceMappingURL=polyfills-mobile.native.js.map
|
10
|
+
Promise.withResolvers || // @ts-ignore
|
11
|
+
(Promise.withResolvers = promiseWithResolvers);
|
12
|
+
//# sourceMappingURL=polyfills-mobile.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/polyfills-mobile.ts"],
|
4
|
+
"mappings": "AAOA,OAAOA,qBAAqB;AAS5B,OAAO;AAIP,OAAO;AACP,OAAO;AAWP,SAASC,4BAA4B;IAxBrCC,aAAW,kBAIXA,cAAW;AATXA,WAAW,SAAYA;CAKvBA,cAAAA,YAAW,mBAAA,iBAAA,MAAXA,YAAW,gBAAA,IAAuBF;CAIlCE,eAAAA,YAAW,yBAAA,uBAAA,MAAXA,aAAW,sBAAA,IAA6BC;AAqBxCC,QAAQC;CAELD,QAAQC,gBAAgBJ;",
|
5
|
+
"names": ["structuredClone", "promiseWithResolvers", "globalThis", "setTimeout", "Promise", "withResolvers"]
|
6
|
+
}
|
@@ -2,4 +2,4 @@ import WebSocket from "ws";
|
|
2
2
|
var _globalThis, _WebSocket;
|
3
3
|
(_globalThis = globalThis)[_WebSocket = "WebSocket"] || (_globalThis[_WebSocket] = WebSocket);
|
4
4
|
globalThis.requestAnimationFrame = setTimeout;
|
5
|
-
//# sourceMappingURL=polyfills-server.
|
5
|
+
//# sourceMappingURL=polyfills-server.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/polyfills-server.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,eAAe;IAGtBC,aAAW;CAAXA,cAAAA,YAAW,aAAA,WAAA,MAAXA,YAAW,UAAA,IAAiBD;AAE5BC,WAAW,wBAA2BC;",
|
5
|
+
"names": ["WebSocket", "globalThis", "setTimeout"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/render.native.tsx"],
|
4
|
+
"mappings": "AAAO,SAASA,OAAOC,SAAwB;AAC7CC,UAAQC,KAAK,OAAO;AACtB;",
|
5
|
+
"names": ["render", "element", "console", "warn"]
|
6
|
+
}
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
//# sourceMappingURL=RouterStore.native.js.map
|
1
|
+
//# sourceMappingURL=RouterStore.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/router/Users/n8/one/packages/one/src/router/constants.ts"],
|
4
|
+
"mappings": "AAGO,IAAMA,YAAY,GAAGC,KAAKC,OAAM,CAAA,GAAKC,MAAM,CAAA;",
|
5
|
+
"names": ["CACHE_KEY", "Math", "random", "slice"]
|
6
|
+
}
|
@@ -1,31 +1,32 @@
|
|
1
|
-
import { stripBaseUrl } from "../fork/getStateFromPath
|
1
|
+
import { stripBaseUrl } from "../fork/getStateFromPath";
|
2
2
|
function getNormalizedStatePath(param, baseUrl) {
|
3
|
-
var {
|
4
|
-
path: statePath,
|
5
|
-
params
|
6
|
-
} = param,
|
7
|
-
[pathname] = statePath.split("?");
|
3
|
+
var { path: statePath, params } = param, [pathname] = statePath.split("?");
|
8
4
|
return {
|
9
5
|
// Strip empty path at the start
|
10
6
|
segments: stripBaseUrl(pathname, baseUrl).split("/").filter(Boolean).map(decodeURIComponent),
|
11
7
|
// TODO: This is not efficient, we should generate based on the state instead
|
12
8
|
// of converting to string then back to object
|
13
|
-
params: Object.entries(params).reduce(function
|
9
|
+
params: Object.entries(params).reduce(function(prev, param2) {
|
14
10
|
var [key, value] = param2;
|
15
|
-
if (Array.isArray(value))
|
11
|
+
if (Array.isArray(value))
|
12
|
+
prev[key] = value.map(function(v) {
|
13
|
+
try {
|
14
|
+
return decodeURIComponent(v);
|
15
|
+
} catch {
|
16
|
+
return v;
|
17
|
+
}
|
18
|
+
});
|
19
|
+
else
|
16
20
|
try {
|
17
|
-
|
21
|
+
prev[key] = decodeURIComponent(value);
|
18
22
|
} catch {
|
19
|
-
|
23
|
+
prev[key] = value;
|
20
24
|
}
|
21
|
-
});else try {
|
22
|
-
prev[key] = decodeURIComponent(value);
|
23
|
-
} catch {
|
24
|
-
prev[key] = value;
|
25
|
-
}
|
26
25
|
return prev;
|
27
26
|
}, {})
|
28
27
|
};
|
29
28
|
}
|
30
|
-
export {
|
31
|
-
|
29
|
+
export {
|
30
|
+
getNormalizedStatePath
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=getNormalizedStatePath.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/router/Users/n8/one/packages/one/src/router/getNormalizedStatePath.tsx"],
|
4
|
+
"mappings": "AAAA,SAASA,oBAAoB;AAatB,SAASC,uBACd,OAOAC,SAAgB;MAPhB,EACEC,MAAMC,WACNC,OAAM,IAFR,OASM,CAACC,QAAAA,IAAYF,UAAUG,MAAM,GAAA;AACnC,SAAO;;IAELC,UAAUR,aAAaM,UAAUJ,OAAAA,EAASK,MAAM,GAAA,EAAKE,OAAOC,OAAAA,EAASC,IAAIC,kBAAAA;;;IAGzEP,QAAQQ,OAAOC,QAAQT,MAAAA,EAAQU,OAAO,SAACC,MAAAA,QAAAA;UAAM,CAACC,KAAKC,KAAAA,IAAMC;AACvD,UAAIC,MAAMC,QAAQH,KAAAA;AAChBF,aAAKC,GAAAA,IAAOC,MAAMP,IAAI,SAACW,GAAAA;AACrB,cAAI;AACF,mBAAOV,mBAAmBU,CAAAA;UAC5B,QAAQ;AACN,mBAAOA;UACT;QACF,CAAA;;AAEA,YAAI;AACFN,eAAKC,GAAAA,IAAOL,mBAAmBM,KAAAA;QACjC,QAAQ;AACNF,eAAKC,GAAAA,IAAOC;QACd;AAEF,aAAOF;IACT,GAAG,CAAC,CAAA;EACN;AACF;",
|
5
|
+
"names": ["stripBaseUrl", "getNormalizedStatePath", "baseUrl", "path", "statePath", "params", "pathname", "split", "segments", "filter", "Boolean", "map", "decodeURIComponent", "Object", "entries", "reduce", "prev", "key", "value", "param", "Array", "isArray", "v"]
|
6
|
+
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
var lastUserRouteAction = Date.now(),
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
var lastUserRouteAction = Date.now(), getLastAction = function() {
|
2
|
+
return lastUserRouteAction;
|
3
|
+
}, setLastAction = function() {
|
4
|
+
lastUserRouteAction = Date.now();
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
getLastAction,
|
8
|
+
setLastAction
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=lastAction.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/router/Users/n8/one/packages/one/src/router/lastAction.ts"],
|
4
|
+
"mappings": "AAAA,IAAIA,sBAAsBC,KAAKC,IAAG,GAErBC,gBAAgB,WAAA;SAAMH;GACtBI,gBAAgB,WAAA;AAC3BJ,wBAAsBC,KAAKC,IAAG;AAChC;",
|
5
|
+
"names": ["lastUserRouteAction", "Date", "now", "getLastAction", "setLastAction"]
|
6
|
+
}
|