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/fork/Users/n8/one/packages/one/src/fork/NavigationContainer.native.tsx"],
|
4
|
+
"mappings": ";AAEA,SACEA,yBAIAC,oBACAC,kBACAC,kBACAC,0BACK;AACP,SACEC,cAEAC,gBAGAC,qBACK;AAEP,OAAOC,sBAAsB;AAC7B,OAAOC,iBAAiB;AACxB,YAAYC,WAAW;AAEvB,OAAOC,gBAAgB;AAEvBC,OAAOC,4BAA4B,oBAAIC,QAAAA;AAwBvC,SAASC,yBACP,OAQAC,KAA6D;MAR7D,EACEC,QAAQZ,cACRa,SACAC,WAAW,MACXC,eACAC,SACA,GAAGC,KAAAA,IANL,OAUMC,mBAAmBL,UAAUA,QAAQM,YAAY,KAAQ;AAE/D,EAAIN,SAASO,UACXrB,mBAAmBc,QAAQO,MAAM;AAGnC,MAAMC,eAAehB,MAAMiB,OAA8C,IAAA;AAGzEnB,mBAAiBkB,cAAcN,aAAAA;AAE/B,MAAM,EAAEQ,gBAAe,IAAKjB,WAAWe,cAAc;;IAEnDF,SAASD;IACTM,UAAU,CAAA;IACV,GAAGX;EACL,CAAA;AAIAR,QAAMoB,UAAU,WAAA;AACd,IAAIJ,aAAaK,WACfnB,OAAOC,0BAA0BmB,IAAIN,aAAaK,SAAS;MACzD,IAAIb,UAAU;YAIAA,mBACQA,2BACAA,2BACEA;AANtB,eAAO;UACL,GAAGA;UACHM,SAASD;UACTM,WAAUX,oBAAAA,SAASW,cAAQ,QAAjBX,sBAAAA,SAAAA,oBAAqB,CAAA;UAC/Bf,mBAAkBe,4BAAAA,SAASf,sBAAgB,QAAzBe,8BAAAA,SAAAA,4BAA6Bf;UAC/CD,mBAAkBgB,4BAAAA,SAAShB,sBAAgB,QAAzBgB,8BAAAA,SAAAA,4BAA6BhB;UAC/CD,qBAAoBiB,8BAAAA,SAASjB,wBAAkB,QAA3BiB,gCAAAA,SAAAA,8BAA+BjB;QACrD;MACF;IACF,CAAA;EAEJ,CAAA;AAEA,MAAM,CAACgC,YAAYC,YAAAA,IAAgBzB,YAAYmB,eAAAA;AAE/ClB,QAAMyB,oBAAoBnB,KAAK,WAAA;WAAMU,aAAaK;;AAElD,MAAMK,iBAAiB1B,MAAM2B,QAAQ,WAAA;WAAO;MAAEC,SAASpB;IAAQ;KAAI;IAACA;GAAQ,GAEtEqB,UAAUjB,KAAKY,gBAAgB,QAAQ,CAACX,oBAAoBU,YAE5DO,aAAa9B,MAAMiB,OAAON,OAAAA;AAYhC,SAVAX,MAAMoB,UAAU,WAAA;AACdU,eAAWT,UAAUV;EACvB,CAAA,GAEAX,MAAMoB,UAAU,WAAA;AACd,QAAIS,SAAS;UACXC;OAAAA,sBAAAA,WAAWT,aAAO,QAAlBS,wBAAAA,UAAAA,oBAAAA,KAAAA,UAAAA;IACF;EACF,GAAG;IAACD;GAAQ,GAEPA,UAOH,qBAACjC,eAAemC,UAAQ;IAACC,OAAON;cAC9B,qBAAC7B,eAAAA;MAAcmC,OAAOzB;gBACpB,qBAACjB,yBAAAA;QACE,GAAGsB;QACJY,cAAcZ,KAAKY,gBAAgB,OAAOA,eAAeZ,KAAKY;QAC9DlB,KAAKU;;;OATJP;AAcX;AAEA,IAAMwB,sBAAsBjC,sBAAMkC,WAAW7B,wBAAAA,GAQ7C,qCAAe4B;",
|
5
|
+
"names": ["BaseNavigationContainer", "getActionFromState", "getPathFromState", "getStateFromPath", "validatePathConfig", "DefaultTheme", "LinkingContext", "ThemeProvider", "useDocumentTitle", "useThenable", "React", "useLinking", "global", "REACT_NAVIGATION_DEVTOOLS", "WeakMap", "NavigationContainerInner", "ref", "theme", "linking", "fallback", "documentTitle", "onReady", "rest", "isLinkingEnabled", "enabled", "config", "refContainer", "useRef", "getInitialState", "prefixes", "useEffect", "current", "set", "isResolved", "initialState", "useImperativeHandle", "linkingContext", "useMemo", "options", "isReady", "onReadyRef", "Provider", "value", "NavigationContainer", "forwardRef"]
|
6
|
+
}
|
@@ -1,135 +1,119 @@
|
|
1
1
|
import { nanoid } from "nanoid/non-secure";
|
2
2
|
function createMemoryHistory() {
|
3
|
-
var index = 0,
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
get index() {
|
16
|
-
var _window_history_state,
|
17
|
-
id = (_window_history_state = window.history.state) === null || _window_history_state === void 0 ? void 0 : _window_history_state.id;
|
18
|
-
if (id) {
|
19
|
-
var index1 = items.findIndex(function (item) {
|
20
|
-
return item.id === id;
|
21
|
-
});
|
22
|
-
return index1 > -1 ? index1 : 0;
|
23
|
-
}
|
24
|
-
return 0;
|
25
|
-
},
|
26
|
-
get(index2) {
|
27
|
-
return items[index2];
|
28
|
-
},
|
29
|
-
backIndex(param) {
|
30
|
-
for (var {
|
31
|
-
path
|
32
|
-
} = param, i = index - 1; i >= 0; i--) {
|
33
|
-
var item = items[i];
|
34
|
-
if (item.path === path) return i;
|
35
|
-
}
|
36
|
-
return -1;
|
37
|
-
},
|
38
|
-
push(param) {
|
39
|
-
var {
|
40
|
-
path,
|
41
|
-
state
|
42
|
-
} = param;
|
43
|
-
interrupt();
|
44
|
-
var id = nanoid();
|
45
|
-
items = items.slice(0, index + 1), items.push({
|
46
|
-
path,
|
47
|
-
state,
|
48
|
-
id
|
49
|
-
}), index = items.length - 1, window.history.pushState({
|
50
|
-
id
|
51
|
-
}, "", path);
|
52
|
-
},
|
53
|
-
replace(param) {
|
54
|
-
var {
|
55
|
-
path,
|
56
|
-
state
|
57
|
-
} = param,
|
58
|
-
_window_history_state;
|
59
|
-
interrupt();
|
60
|
-
var _window_history_state_id,
|
61
|
-
id = (_window_history_state_id = (_window_history_state = window.history.state) === null || _window_history_state === void 0 ? void 0 : _window_history_state.id) !== null && _window_history_state_id !== void 0 ? _window_history_state_id : nanoid(),
|
62
|
-
pathWithHash = path;
|
63
|
-
!items.length || items.findIndex(function (item) {
|
3
|
+
var index = 0, items = [], pending = [], interrupt = function() {
|
4
|
+
pending.forEach(function(it) {
|
5
|
+
var cb = it.cb;
|
6
|
+
it.cb = function() {
|
7
|
+
return cb(!0);
|
8
|
+
};
|
9
|
+
});
|
10
|
+
}, history = {
|
11
|
+
get index() {
|
12
|
+
var _window_history_state, id = (_window_history_state = window.history.state) === null || _window_history_state === void 0 ? void 0 : _window_history_state.id;
|
13
|
+
if (id) {
|
14
|
+
var index1 = items.findIndex(function(item) {
|
64
15
|
return item.id === id;
|
65
|
-
})
|
16
|
+
});
|
17
|
+
return index1 > -1 ? index1 : 0;
|
18
|
+
}
|
19
|
+
return 0;
|
20
|
+
},
|
21
|
+
get(index2) {
|
22
|
+
return items[index2];
|
23
|
+
},
|
24
|
+
backIndex(param) {
|
25
|
+
for (var { path } = param, i = index - 1; i >= 0; i--) {
|
26
|
+
var item = items[i];
|
27
|
+
if (item.path === path)
|
28
|
+
return i;
|
29
|
+
}
|
30
|
+
return -1;
|
31
|
+
},
|
32
|
+
push(param) {
|
33
|
+
var { path, state } = param;
|
34
|
+
interrupt();
|
35
|
+
var id = nanoid();
|
36
|
+
items = items.slice(0, index + 1), items.push({
|
37
|
+
path,
|
38
|
+
state,
|
39
|
+
id
|
40
|
+
}), index = items.length - 1, window.history.pushState({
|
41
|
+
id
|
42
|
+
}, "", path);
|
43
|
+
},
|
44
|
+
replace(param) {
|
45
|
+
var { path, state } = param, _window_history_state;
|
46
|
+
interrupt();
|
47
|
+
var _window_history_state_id, id = (_window_history_state_id = (_window_history_state = window.history.state) === null || _window_history_state === void 0 ? void 0 : _window_history_state.id) !== null && _window_history_state_id !== void 0 ? _window_history_state_id : nanoid(), pathWithHash = path;
|
48
|
+
!items.length || items.findIndex(function(item) {
|
49
|
+
return item.id === id;
|
50
|
+
}) < 0 ? (pathWithHash = pathWithHash + location.hash, items = [
|
51
|
+
{
|
66
52
|
path: pathWithHash,
|
67
53
|
state,
|
68
54
|
id
|
69
|
-
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
},
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
55
|
+
}
|
56
|
+
], index = 0) : (items[index].path === path && (pathWithHash = pathWithHash + location.hash), items[index] = {
|
57
|
+
path,
|
58
|
+
state,
|
59
|
+
id
|
60
|
+
}), window.history.replaceState({
|
61
|
+
id
|
62
|
+
}, "", pathWithHash);
|
63
|
+
},
|
64
|
+
// `history.go(n)` is asynchronous, there are couple of things to keep in mind:
|
65
|
+
// - it won't do anything if we can't go `n` steps, the `popstate` event won't fire.
|
66
|
+
// - each `history.go(n)` call will trigger a separate `popstate` event with correct location.
|
67
|
+
// - the `popstate` event fires before the next frame after calling `history.go(n)`.
|
68
|
+
// This method differs from `history.go(n)` in the sense that it'll go back as many steps it can.
|
69
|
+
go(n) {
|
70
|
+
interrupt();
|
71
|
+
var nextIndex = index + n, lastItemIndex = items.length - 1;
|
72
|
+
if (n < 0 && !items[nextIndex] ? (n = -index, index = 0) : n > 0 && nextIndex > lastItemIndex ? (n = lastItemIndex - index, index = lastItemIndex) : index = nextIndex, n !== 0)
|
73
|
+
return new Promise(function(resolve, reject) {
|
74
|
+
var done = function(interrupted) {
|
88
75
|
if (clearTimeout(timer), interrupted) {
|
89
76
|
reject(new Error("History was changed during navigation."));
|
90
77
|
return;
|
91
78
|
}
|
92
|
-
var {
|
93
|
-
title
|
94
|
-
} = window.document;
|
79
|
+
var { title } = window.document;
|
95
80
|
window.document.title = "", window.document.title = title, resolve();
|
96
81
|
};
|
97
82
|
pending.push({
|
98
83
|
ref: done,
|
99
84
|
cb: done
|
100
85
|
});
|
101
|
-
var timer = setTimeout(function
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
var last = pending.pop();
|
115
|
-
window.removeEventListener("popstate", onPopState), last?.cb();
|
116
|
-
};
|
86
|
+
var timer = setTimeout(function() {
|
87
|
+
var index2 = pending.findIndex(function(it) {
|
88
|
+
return it.ref === done;
|
89
|
+
});
|
90
|
+
index2 > -1 && (pending[index2].cb(), pending.splice(index2, 1));
|
91
|
+
}, 100), onPopState = function() {
|
92
|
+
var _window_history_state, id = (_window_history_state = window.history.state) === null || _window_history_state === void 0 ? void 0 : _window_history_state.id, currentIndex = items.findIndex(function(item) {
|
93
|
+
return item.id === id;
|
94
|
+
});
|
95
|
+
index = Math.max(currentIndex, 0);
|
96
|
+
var last = pending.pop();
|
97
|
+
window.removeEventListener("popstate", onPopState), last?.cb();
|
98
|
+
};
|
117
99
|
window.addEventListener("popstate", onPopState), window.history.go(n);
|
118
100
|
});
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
101
|
+
},
|
102
|
+
// The `popstate` event is triggered when history changes, except `pushState` and `replaceState`
|
103
|
+
// If we call `history.go(n)` ourselves, we don't want it to trigger the listener
|
104
|
+
// Here we normalize it so that only external changes (e.g. user pressing back/forward) trigger the listener
|
105
|
+
listen(listener) {
|
106
|
+
var onPopState = function() {
|
107
|
+
pending.length || listener();
|
108
|
+
};
|
109
|
+
return window.addEventListener("popstate", onPopState), function() {
|
110
|
+
return window.removeEventListener("popstate", onPopState);
|
111
|
+
};
|
112
|
+
}
|
113
|
+
};
|
132
114
|
return history;
|
133
115
|
}
|
134
|
-
export {
|
135
|
-
|
116
|
+
export {
|
117
|
+
createMemoryHistory as default
|
118
|
+
};
|
119
|
+
//# sourceMappingURL=createMemoryHistory.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2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AQK,WAAW,WAAA;AACvB,gBAAMzC,SAAQE,QAAQS,UAAU,SAACN,IAAAA;qBAAOA,GAAGmC,QAAQP;;AAEnD,YAAIjC,SAAQ,OACVE,QAAQF,MAAAA,EAAOM,GAAE,GACjBJ,QAAQwC,OAAO1C,QAAO,CAAA;UAE1B,GAAG,GAAA,GAEG2C,aAAa,WAAA;gBACNnC,uBAALC,MAAKD,wBAAAA,OAAOD,QAAQG,WAAK,QAApBF,0BAAAA,SAAAA,SAAAA,sBAAsBC,IAC3BmC,eAAe3C,MAAMU,UAAU,SAACC,MAAAA;qBAASA,KAAKH,OAAOA;;AAI3DT,oBAAQ6C,KAAKC,IAAIF,cAAc,CAAA;AAE/B,gBAAMG,OAAO7C,QAAQ8C,IAAG;AAExBxC,mBAAOyC,oBAAoB,YAAYN,UAAAA,GACvCI,MAAMzC,GAAE;UACV;AAEAE,iBAAO0C,iBAAiB,YAAYP,UAAAA,GACpCnC,OAAOD,QAAQmB,GAAGC,CAAAA;QACpB,CAAA;IACF;;;;IAKAwB,OAAOC,UAAoB;AACzB,UAAMT,aAAa,WAAA;AACjB,QAAIzC,QAAQiB,UAKZiC,SAAAA;MACF;AAEA5C,oBAAO0C,iBAAiB,YAAYP,UAAAA,GAE7B,WAAA;eAAMnC,OAAOyC,oBAAoB,YAAYN,UAAAA;;IACtD;EACF;AAEA,SAAOpC;AACT;",
|
5
|
+
"names": ["nanoid", "createMemoryHistory", "index", "items", "pending", "interrupt", "forEach", "it", "cb", "history", "window", "id", "state", "findIndex", "item", "get", "backIndex", "path", "i", "push", "slice", "length", "pushState", "replace", "pathWithHash", "location", "hash", "replaceState", "go", "n", "nextIndex", "lastItemIndex", "Promise", "resolve", "reject", "done", "interrupted", "clearTimeout", "timer", "Error", "title", "document", "ref", "setTimeout", "splice", "onPopState", "currentIndex", "Math", "max", "last", "pop", "removeEventListener", "addEventListener", "listen", "listener"]
|
6
|
+
}
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import URL from "url-parse";
|
2
2
|
function extractExactPathFromURL(url) {
|
3
3
|
if (
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
href
|
10
|
-
} = new URL(url);
|
4
|
+
// If a universal link / app link / web URL is used, we should use the path
|
5
|
+
// from the URL, while stripping the origin.
|
6
|
+
url.match(/^https?:\/\//)
|
7
|
+
) {
|
8
|
+
var { origin, href } = new URL(url);
|
11
9
|
return href.replace(origin, "");
|
12
10
|
}
|
13
11
|
return fromDeepLink(url);
|
@@ -18,15 +16,15 @@ function isExpoDevelopmentClient(url) {
|
|
18
16
|
function fromDeepLink(url) {
|
19
17
|
var res = new URL(url, !0);
|
20
18
|
if (isExpoDevelopmentClient(res)) {
|
21
|
-
if (!res.query || !res.query.url)
|
19
|
+
if (!res.query || !res.query.url)
|
20
|
+
return "";
|
22
21
|
var incomingUrl = res.query.url;
|
23
22
|
return extractExactPathFromURL(decodeURI(incomingUrl));
|
24
23
|
}
|
25
|
-
var qs = res.query ? Object.entries(res.query).map(function
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
results = "";
|
24
|
+
var qs = res.query ? Object.entries(res.query).map(function(param) {
|
25
|
+
var [k, v] = param;
|
26
|
+
return `${k}=${decodeURIComponent(v)}`;
|
27
|
+
}).join("&") : "", results = "";
|
30
28
|
return res.host && (results += res.host), res.pathname && (results += res.pathname), qs && (results += "?" + qs), results;
|
31
29
|
}
|
32
30
|
function extractExpoPathFromURL() {
|
@@ -36,5 +34,8 @@ function extractExpoPathFromURL() {
|
|
36
34
|
function adjustPathname(url) {
|
37
35
|
return url.hostname === "exp.host" || url.hostname === "u.expo.dev" ? url.pathname.split("/").slice(2).join("/") : url.pathname;
|
38
36
|
}
|
39
|
-
export {
|
40
|
-
|
37
|
+
export {
|
38
|
+
adjustPathname,
|
39
|
+
extractExpoPathFromURL
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=extractPathFromURL.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
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IAAIO,aAAa,cAAcP,IAAIO,aAAa,eAE3CP,IAAIsB,SAASG,MAAM,GAAA,EAAKC,MAAM,CAAA,EAAGP,KAAK,GAAA,IAExCnB,IAAIsB;AACb;",
|
5
|
+
"names": ["URL", "extractExactPathFromURL", "url", "match", "origin", "href", "replace", "fromDeepLink", "isExpoDevelopmentClient", "hostname", "res", "query", "incomingUrl", "decodeURI", "qs", "Object", "entries", "map", "k", "v", "decodeURIComponent", "join", "results", "host", "pathname", "extractExpoPathFromURL", "adjustPathname", "split", "slice"]
|
6
|
+
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
function findFocusedRoute(state) {
|
2
|
-
for (var current = state, _current_index; current?.routes[(_current_index = current.index) !== null && _current_index !== void 0 ? _current_index : 0].state != null;) {
|
2
|
+
for (var current = state, _current_index; current?.routes[(_current_index = current.index) !== null && _current_index !== void 0 ? _current_index : 0].state != null; ) {
|
3
3
|
var _current_index1;
|
4
4
|
current = current.routes[(_current_index1 = current.index) !== null && _current_index1 !== void 0 ? _current_index1 : 0].state;
|
5
5
|
}
|
6
|
-
var _current_index2,
|
7
|
-
route = current?.routes[(_current_index2 = current?.index) !== null && _current_index2 !== void 0 ? _current_index2 : 0];
|
6
|
+
var _current_index2, route = current?.routes[(_current_index2 = current?.index) !== null && _current_index2 !== void 0 ? _current_index2 : 0];
|
8
7
|
return route;
|
9
8
|
}
|
10
|
-
export {
|
11
|
-
|
9
|
+
export {
|
10
|
+
findFocusedRoute
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=findFocusedRoute.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/fork/Users/n8/one/packages/one/src/fork/findFocusedRoute.tsx"],
|
4
|
+
"mappings": "AAIO,SAASA,iBAAiBC,OAAmB;AAGlD,WAFIC,UAAoCD,OAEjBC,gBAAhBA,SAASC,QAAOD,iBAAAA,QAAQE,WAAK,QAAbF,mBAAAA,SAAAA,iBAAiB,CAAA,EAAGD,SAAS,QAAM;QAC/BC;AAAzBA,cAAUA,QAAQC,QAAOD,kBAAAA,QAAQE,WAAK,QAAbF,oBAAAA,SAAAA,kBAAiB,CAAA,EAAGD;EAC/C;MAE8BC,iBAAxBG,QAAQH,SAASC,QAAOD,kBAAAA,SAASE,WAAK,QAAdF,oBAAAA,SAAAA,kBAAkB,CAAA;AAEhD,SAAOG;AACT;",
|
5
|
+
"names": ["findFocusedRoute", "state", "current", "routes", "index", "route"]
|
6
|
+
}
|