one 1.1.297 → 1.1.299
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.js.map +1 -1
- package/dist/cjs/Root.native.js.map +1 -1
- package/dist/cjs/cleanUrl.js +9 -2
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +5 -2
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- 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.js.map +1 -1
- package/dist/esm/Root.mjs.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 +9 -2
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +7 -2
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +16 -13
- 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.native.js +119 -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.native.js +55 -64
- 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.native.js +99 -130
- 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/Root.tsx +20 -16
- package/src/cleanUrl.ts +15 -1
- package/src/vite/replaceLoader.ts +7 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
|
|
1
|
-
{"version":3,"names":["escape","matchGroupName","stripGroupSegmentsFromPath","findFocusedRoute","validatePathConfig","getUrlWithReactNavigationConcessions","path","baseUrl","arguments","length","process","env","EXPO_BASE_URL","parsed","URL","err","console","warn","message","nonstandardPathname","inputPathnameWithoutHash","replace","url","pathname","stripBaseUrl","getStateFromPath","options","initialRoutes","configs","getMatchableRouteConfigs","getStateFromPathWithConfigs","screens","Error","initialRouteName","push","parentScreens","converted","Object","keys","flatMap","key","createNormalizedConfigs","flat","resolvedInitialPatterns","map","route","joinPaths","convertedWithInitial","config","isInitial","includes","routeNames","join","sort","sortConfigs","assertConfigDuplicates","reduce","acc","_config_regex","_config_regex_toString","indexedKey","regex","toString","pattern","alpha","hasChildren","a","b","intersects","every","it","i","last","split","pop","match","routeType","startsWith","userReadableName","assign","localeCompare","screen","aParts","filter","part","bParts","Math","max","aWildCard","bWildCard","aNotFound","bNotFound","aSlug","bSlug","aNotFound1","bNotFound1","getStateFromEmptyPathWithConfigs","hash","leafNodes","value","_leafNodes_find","_ref","find","test","routes","name","_route","createNestedStateObject","formattedPaths","cleanPath","search","slice","matchAgainstConfigs","_len","paths","Array","_key","concat","p","Boolean","remaining","remainingPath","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","_step","_config_pattern","matchedParams","_match_","routeFromName","config2","c","segments","params","forEach","_config_parse","parse","combinedParams","r","hasCombinedParams","_iterator","Symbol","iterator","next","done","_ret","return","equalHeritage","routeConfig","initials","parentPattern","createConfigItem","pattern1","_Object_keys","exact","nestedConfig","result","formatRegexPattern","endsWith","RegExp","findParseConfigForRoute","routeName","routeConfigs","findInitialRoute"],"sources":["../../../src/fork/getStateFromPath.ts"],"sourcesContent":[null],"mappings":"AAGA,OAAOA,MAAA,MAAY;AAEnB,SAASC,cAAA,EAAgBC,0BAAA,QAAkC;AAC3D,SAASC,gBAAA,QAAwB;AACjC,OAAOC,kBAAA,MAAwB;AAkCxB,SAASC,qCACdC,IAAA,EACA;EAEA,IAAIC,OAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA,MAAAE,OAAA,CAAAC,GAAA,CAAAC,aAAA;IAAAC,MAAA;EACJ,IAAI;IACFA,MAAA,GAAS,IAAIC,GAAA,CAAIR,IAAA,EAAMC,OAAA,IAAW,sBAAsB;EAC1D,SAASQ,GAAA,EAAK;IACZ,OAAAC,OAAA,CAAQC,IAA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AAMyE,OAAO,GAAA,IAAOxB,OAGfkD;AACT,GAEMI,mBAAmB,SAAC1I,MAAc8I,aAAAA;AACtC,MAAMC,QAAQ/I,KAAK8D,MAAM,GAAA,EAAK,CAAA,GACxBkF,eAAe,IAAIC,gBAAgBF,KAAAA,GACnCnC,SAASjF,OAAOuH;;IAEpBF;EAAAA;AAGF,SAAIF,eACFnH,OAAOC,KAAKgF,MAAAA,EAAQC,QAAQ,SAACnB,MAAAA;AAC3B,IAAI/D,OAAOwH,eAAeC,KAAKN,aAAapD,IAAAA,KAAS,OAAOkB,OAAOlB,IAAAA,KAAU,aAC3EkB,OAAOlB,IAAAA,IAAQoD,YAAYpD,IAAAA,EAAMkB,OAAOlB,IAAAA,CAAK;EAEjD,CAAA,GAGK/D,OAAOC,KAAKgF,MAAAA,EAAQnD,SAASmD,SAASY;AAC/C,GAEM6B,eAAe,oBAAIC,IAAAA;AAEzB,SAASC,gBAAgBtJ,SAAe;AACtC,MAAIoJ,aAAaG,IAAIvJ,OAAAA;AACnB,WAAOoJ,aAAaI,IAAIxJ,OAAAA;AAE1B,MAAMgD,QAAQ,IAAI4E,OAAO,QAAQnI,OAAOO,OAAAA,CAAAA,IAAY,GAAA;AACpDoJ,sBAAaK,IAAIzJ,SAASgD,KAAAA,GACnBA;AACT;AAEO,SAASlC,aACdf,MAAY;MACZC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8BC,QAAQC,IAAIC;AAE1C,MAAIF,QAAQC,IAAI0I,aAAa,iBACvB5I,SAAS;AACX,QAAM0J,MAAMJ,gBAAgBtJ,OAAAA;AAC5B,WAAOD,KAAKY,QAAQ,SAAS,GAAA,EAAKA,QAAQ+I,KAAK,EAAA;EACjD;AAEF,SAAO3J;AACT;",
|
5
|
+
"names": ["escape", "matchGroupName", "stripGroupSegmentsFromPath", "findFocusedRoute", "validatePathConfig", "getUrlWithReactNavigationConcessions", "path", "baseUrl", "process", "env", "EXPO_BASE_URL", "parsed", "URL", "err", "console", "warn", "nonstandardPathname", "inputPathnameWithoutHash", "replace", "url", "pathname", "stripBaseUrl", "options", "initialRoutes", "configs", "getMatchableRouteConfigs", "getStateFromPathWithConfigs", "screens", "Error", "initialRouteName", "push", "parentScreens", "converted", "Object", "keys", "flatMap", "key", "createNormalizedConfigs", "flat", "resolvedInitialPatterns", "map", "route", "joinPaths", "convertedWithInitial", "config", "isInitial", "includes", "routeNames", "join", "sort", "sortConfigs", "assertConfigDuplicates", "reduce", "acc", "indexedKey", "regex", "toString", "pattern", "alpha", "hasChildren", "a", "b", "intersects", "length", "every", "it", "i", "last", "split", "pop", "match", "routeType", "startsWith", "userReadableName", "assign", "localeCompare", "screen", "aParts", "filter", "part", "bParts", "Math", "max", "aWildCard", "bWildCard", "aNotFound", "bNotFound", "aSlug", "bSlug", "getStateFromEmptyPathWithConfigs", "hash", "leafNodes", "value", "find", "test", "routes", "name", "_route", "createNestedStateObject", "formattedPaths", "cleanPath", "search", "slice", "matchAgainstConfigs", "paths", "concat", "p", "Boolean", "remaining", "remainingPath", "matchedParams", "routeFromName", "c", "segments", "params", "forEach", "parse", "combinedParams", "r", "hasCombinedParams", "equalHeritage", "routeConfig", "initials", "parentPattern", "createConfigItem", "exact", "undefined", "nestedConfig", "result", "formatRegexPattern", "endsWith", "RegExp", "findParseConfigForRoute", "routeName", "routeConfigs", "findInitialRoute", "createStateObject", "isEmpty", "initialRoute", "index", "state", "shift", "nestedState", "nestedStateIndex", "parseQueryParams", "create", "entries", "NODE_ENV", "parseConfig", "query", "searchParams", "URLSearchParams", "fromEntries", "hasOwnProperty", "call", "baseUrlCache", "Map", "getBaseUrlRegex", "has", "get", "set", "reg"]
|
6
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { getActionFromState as getActionFromStateDefault, getStateFromPath as getStateFromPathDefault } from "@react-navigation/core";
|
2
2
|
import * as React from "react";
|
3
3
|
import { Linking, Platform } from "react-native";
|
4
|
-
import { extractExpoPathFromURL } from "./extractPathFromURL
|
4
|
+
import { extractExpoPathFromURL } from "./extractPathFromURL";
|
5
5
|
var linkingHandlers = [];
|
6
6
|
function useLinking(ref, param) {
|
7
7
|
var {
|
@@ -9,100 +9,109 @@ function useLinking(ref, param) {
|
|
9
9
|
// prefixes,
|
10
10
|
filter,
|
11
11
|
config,
|
12
|
-
getInitialURL = function
|
13
|
-
return Promise.race([
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
getInitialURL = function() {
|
13
|
+
return Promise.race([
|
14
|
+
Linking.getInitialURL(),
|
15
|
+
new Promise(function(resolve) {
|
16
|
+
return (
|
17
|
+
// Timeout in 150ms if `getInitialState` doesn't resolve
|
18
|
+
// Workaround for https://github.com/facebook/react-native/issues/25675
|
19
|
+
setTimeout(resolve, 150)
|
20
|
+
);
|
21
|
+
})
|
22
|
+
]);
|
20
23
|
},
|
21
|
-
subscribe = function
|
22
|
-
var callback = function
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
},
|
28
|
-
subscription = Linking.addEventListener("url", callback);
|
29
|
-
return function () {
|
24
|
+
subscribe = function(listener) {
|
25
|
+
var callback = function(param2) {
|
26
|
+
var { url } = param2;
|
27
|
+
return listener(url);
|
28
|
+
}, subscription = Linking.addEventListener("url", callback);
|
29
|
+
return function() {
|
30
30
|
subscription?.remove();
|
31
31
|
};
|
32
32
|
},
|
33
33
|
getStateFromPath = getStateFromPathDefault,
|
34
34
|
getActionFromState = getActionFromStateDefault
|
35
35
|
} = param;
|
36
|
-
React.useEffect(function
|
36
|
+
React.useEffect(function() {
|
37
37
|
if (process.env.NODE_ENV !== "production") {
|
38
38
|
// enabled !== false &&
|
39
|
-
linkingHandlers.length && console.error([
|
39
|
+
linkingHandlers.length && console.error([
|
40
|
+
"Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:",
|
41
|
+
"- You don't have multiple NavigationContainers in the app each with 'linking' enabled",
|
42
|
+
"- Only a single instance of the root component is rendered",
|
43
|
+
Platform.OS === "android" ? "- You have set 'android:launchMode=singleTask' in the '<activity />' section of the 'AndroidManifest.xml' file to avoid launching multiple instances" : ""
|
44
|
+
].join(`
|
40
45
|
`).trim());
|
41
46
|
var handler = Symbol();
|
42
|
-
return linkingHandlers.push(handler), function
|
47
|
+
return linkingHandlers.push(handler), function() {
|
43
48
|
var index = linkingHandlers.indexOf(handler);
|
44
49
|
index > -1 && linkingHandlers.splice(index, 1);
|
45
50
|
};
|
46
51
|
}
|
47
52
|
}, []);
|
48
|
-
var filterRef = React.useRef(filter),
|
49
|
-
|
50
|
-
getInitialURLRef = React.useRef(getInitialURL),
|
51
|
-
getStateFromPathRef = React.useRef(getStateFromPath),
|
52
|
-
getActionFromStateRef = React.useRef(getActionFromState);
|
53
|
-
React.useEffect(function () {
|
53
|
+
var filterRef = React.useRef(filter), configRef = React.useRef(config), getInitialURLRef = React.useRef(getInitialURL), getStateFromPathRef = React.useRef(getStateFromPath), getActionFromStateRef = React.useRef(getActionFromState);
|
54
|
+
React.useEffect(function() {
|
54
55
|
filterRef.current = filter, configRef.current = config, getInitialURLRef.current = getInitialURL, getStateFromPathRef.current = getStateFromPath, getActionFromStateRef.current = getActionFromState;
|
55
56
|
});
|
56
|
-
var getStateFromURL = React.useCallback(function
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
57
|
+
var getStateFromURL = React.useCallback(function(url) {
|
58
|
+
if (!(!url || filterRef.current && !filterRef.current(url))) {
|
59
|
+
var path = extractExpoPathFromURL(url);
|
60
|
+
return path !== void 0 ? getStateFromPathRef.current(path, configRef.current) : void 0;
|
61
|
+
}
|
62
|
+
}, []), getInitialState = React.useCallback(function() {
|
63
|
+
var url = getInitialURLRef.current();
|
64
|
+
if (url != null && typeof url != "string")
|
65
|
+
return url.then(function(url2) {
|
65
66
|
var state2 = getStateFromURL(url2);
|
66
67
|
return state2;
|
67
68
|
});
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
69
|
+
var state = getStateFromURL(url), thenable = {
|
70
|
+
// biome-ignore lint/suspicious/noThenProperty: <explanation>
|
71
|
+
then(onfulfilled) {
|
72
|
+
return onfulfilled?.(state), thenable;
|
73
|
+
},
|
74
|
+
catch() {
|
75
|
+
return thenable;
|
76
|
+
}
|
77
|
+
};
|
78
|
+
return thenable;
|
79
|
+
}, [
|
80
|
+
getStateFromURL
|
81
|
+
]);
|
82
|
+
return React.useEffect(function() {
|
83
|
+
var listener = function(url) {
|
84
|
+
var navigation = ref.current, state = navigation ? getStateFromURL(url) : void 0;
|
84
85
|
if (navigation && state) {
|
85
86
|
var rootState = navigation.getRootState();
|
86
|
-
if (state.routes.some(function
|
87
|
+
if (state.routes.some(function(r) {
|
87
88
|
return !rootState?.routeNames.includes(r.name);
|
88
89
|
})) {
|
89
90
|
console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");
|
90
91
|
return;
|
91
92
|
}
|
92
93
|
var action = getActionFromStateRef.current(state, configRef.current);
|
93
|
-
if (action !== void 0)
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
94
|
+
if (action !== void 0)
|
95
|
+
try {
|
96
|
+
navigation.dispatch(action);
|
97
|
+
} catch (e) {
|
98
|
+
console.warn(`An error occurred when trying to handle the link '${url}': ${typeof e == "object" && e != null && "message" in e ? e.message : e}`);
|
99
|
+
}
|
100
|
+
else
|
101
|
+
navigation.resetRoot(state);
|
98
102
|
}
|
99
103
|
};
|
100
104
|
return subscribe(listener);
|
101
105
|
}, [
|
102
|
-
|
103
|
-
|
106
|
+
// enabled,
|
107
|
+
getStateFromURL,
|
108
|
+
ref,
|
109
|
+
subscribe
|
110
|
+
]), {
|
104
111
|
getInitialState
|
105
112
|
};
|
106
113
|
}
|
107
|
-
export {
|
114
|
+
export {
|
115
|
+
useLinking as default
|
116
|
+
};
|
108
117
|
//# sourceMappingURL=useLinking.native.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/fork/Users/n8/one/packages/one/src/fork/useLinking.native.ts"],
|
4
|
+
"mappings": "AAIA,SAGEA,sBAAsBC,2BACtBC,oBAAoBC,+BACf;AAEP,YAAYC,WAAW;AACvB,SAASC,SAASC,gBAAgB;AAElC,SAASC,8BAA8B;AAMvC,IAAMC,kBAA4B,CAAA;AAEnB,SAAf,WACEC,KACA,OA2BU;MA3BV;;;IAGEC;IACAC;IACAC,gBAAgB,WAAA;aACdC,QAAQC,KAAK;QACXT,QAAQO,cAAa;QACrB,IAAIC,QAAmB,SAACE,SAAAA;;;;YAGtBC,WAAWD,SAAS,GAAA;;;OAEvB;;IACHE,YAAY,SAACC,UAAAA;AACX,UAAMC,WAAW,SAAAC,QAAA;YAAC,EAAEC,IAAG,IAAmBD;eAAKF,SAASG,GAAAA;SAElDC,eAAejB,QAAQkB,iBAAiB,OAAOJ,QAAAA;AAIrD,aAAO,WAAA;AACLG,QAAAA,cAAcE,OAAM;MACtB;IACF;IACAtB,mBAAmBC;IACnBH,qBAAqBC;EAAyB,IA1BhD;AA+BAG,QAAMqB,UACJ,WAAA;AACE,QAAIC,QAAQC,IAAIC,aAAa,cAQ7B;;MAEEpB,gBAAgBqB,UAEhBC,QAAQC,MACN;QACE;QACA;QACA;QACAzB,SAAS0B,OAAO,YACZ,yJACA;QAEHC,KAAK;CAAA,EACLC,KAAI,CAAA;AAIX,UAAMC,UAAUC,OAAAA;AAGhB5B,6BAAgB6B,KAAKF,OAAAA,GAGd,WAAA;AACL,YAAMG,QAAQ9B,gBAAgB+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AAAA;AAKhB,UAAMqC,aAAajD,IAAIsC,SACjBO,QAAQI,aAAaV,gBAAgB3B,GAAAA,IAAO8B;AAElD,UAAIO,cAAcJ,OAAO;AAGvB,YAAMK,YAAYD,WAAWE,aAAY;AAEzC,YAAIN,MAAMO,OAAOC,KAAK,SAACC,GAAAA;iBAAM,CAACJ,WAAWK,WAAWC,SAASF,EAAEG,IAAI;YAAI;AACrEpC,kBAAQqC,KACN,0SAAA;AAEF;QACF;AAEA,YAAMC,SAAStB,sBAAsBC,QAAQO,OAAOX,UAAUI,OAAO;AAErE,YAAIqB,WAAWjB;AACb,cAAI;AACFO,uBAAWW,SAASD,MAAAA;UACtB,SAASE,GAAG;AAGVxC,oBAAQqC,KACN,qDAAqD9C,GAAAA,MACnD,OAAOiD,KAAM,YAAYA,KAAK,QAAQ,aAAaA,IAAIA,EAAEC,UAAUD,CAAAA,EACnE;UAEN;;AAEAZ,qBAAWc,UAAUlB,KAAAA;MAEzB;IACF;AAEA,WAAOrC,UAAUC,QAAAA;EACnB,GAAG;;IAED8B;IACAvC;IACAQ;GACD,GAEM;IACLmC;EACF;AACF;",
|
5
|
+
"names": ["getActionFromState", "getActionFromStateDefault", "getStateFromPath", "getStateFromPathDefault", "React", "Linking", "Platform", "extractExpoPathFromURL", "linkingHandlers", "ref", "filter", "config", "getInitialURL", "Promise", "race", "resolve", "setTimeout", "subscribe", "listener", "callback", "param", "url", "subscription", "addEventListener", "remove", "useEffect", "process", "env", "NODE_ENV", "length", "console", "error", "OS", "join", "trim", "handler", "Symbol", "push", "index", "indexOf", "splice", "filterRef", "useRef", "configRef", "getInitialURLRef", "getStateFromPathRef", "getActionFromStateRef", "current", "getStateFromURL", "useCallback", "path", "undefined", "getInitialState", "then", "state", "thenable", "onfulfilled", "catch", "navigation", "rootState", "getRootState", "routes", "some", "r", "routeNames", "includes", "name", "warn", "action", "dispatch", "e", "message", "resetRoot"]
|
6
|
+
}
|
@@ -1,17 +1,21 @@
|
|
1
|
-
var formatToList = function
|
2
|
-
return items.map(function
|
1
|
+
var formatToList = function(items) {
|
2
|
+
return items.map(function(key) {
|
3
3
|
return `- ${key}`;
|
4
4
|
}).join(`
|
5
5
|
`);
|
6
6
|
};
|
7
7
|
function validatePathConfig(config) {
|
8
|
-
var root = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
9
|
-
|
8
|
+
var root = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, validKeys = [
|
9
|
+
"initialRouteName",
|
10
|
+
"screens",
|
11
|
+
"_route"
|
12
|
+
];
|
10
13
|
root || validKeys.push("path", "exact", "stringify", "parse");
|
11
|
-
var invalidKeys = Object.keys(config).filter(function
|
14
|
+
var invalidKeys = Object.keys(config).filter(function(key) {
|
12
15
|
return !validKeys.includes(key);
|
13
16
|
});
|
14
|
-
if (invalidKeys.length)
|
17
|
+
if (invalidKeys.length)
|
18
|
+
throw new Error(`Found invalid properties in the configuration:
|
15
19
|
${formatToList(invalidKeys)}
|
16
20
|
|
17
21
|
Did you forget to specify them under a 'screens' property?
|
@@ -20,10 +24,12 @@ You can only specify the following properties:
|
|
20
24
|
${formatToList(validKeys)}
|
21
25
|
|
22
26
|
See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);
|
23
|
-
config.screens && Object.entries(config.screens).forEach(function
|
27
|
+
config.screens && Object.entries(config.screens).forEach(function(param) {
|
24
28
|
var [_, value] = param;
|
25
29
|
typeof value != "string" && validatePathConfig(value, !1);
|
26
30
|
});
|
27
31
|
}
|
28
|
-
export {
|
29
|
-
|
32
|
+
export {
|
33
|
+
validatePathConfig as default
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=validatePathConfig.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/fork/Users/n8/one/packages/one/src/fork/validatePathConfig.ts"],
|
4
|
+
"mappings": "AAAA,IAAMA,eAAe,SAACC,OAAAA;SAAoBA,MAAMC,IAAI,SAACC,KAAAA;WAAQ,KAAKA,GAAAA;KAAOC,KAAK;CAAA;;AAE/D,SAAf,mBAA2CC,QAAW;MAAEC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAO,IACvDC,YAAY;IAAC;IAAoB;IAAW;;AAElD,EAAKD,QACHC,UAAUC,KAAK,QAAQ,SAAS,aAAa,OAAA;AAG/C,MAAMC,cAAcC,OAAOC,KAAKN,MAAAA,EAAQO,OAAO,SAACT,KAAAA;WAAQ,CAACI,UAAUM,SAASV,GAAAA;;AAE5E,MAAIM,YAAYK;AACd,UAAM,IAAIC,MACR;EAAmDf,aACjDS,WAAAA,CAAAA;;;;;EACoHT,aACpHO,SAAAA,CAAAA;;mHACuH;AAI7H,EAAIF,OAAOW,WACTN,OAAOO,QAAQZ,OAAOW,OAAO,EAAEE,QAAQ,SAAA,OAAA;QAAC,CAACC,GAAGC,KAAAA,IAAM;AAChD,IAAI,OAAOA,SAAU,YACnBC,mBAAmBD,OAAO,EAAA;EAE9B,CAAA;AAEJ;",
|
5
|
+
"names": ["formatToList", "items", "map", "key", "join", "config", "root", "validKeys", "push", "invalidKeys", "Object", "keys", "filter", "includes", "length", "Error", "screens", "entries", "forEach", "_", "value", "validatePathConfig"]
|
6
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { getActionFromState } from "@react-navigation/native";
|
2
|
-
import { getReactNavigationConfig } from "./getReactNavigationConfig
|
3
|
-
import { addEventListener, getInitialURL, getPathFromState, getStateFromPath } from "./link/linking
|
2
|
+
import { getReactNavigationConfig } from "./getReactNavigationConfig";
|
3
|
+
import { addEventListener, getInitialURL, getPathFromState, getStateFromPath } from "./link/linking";
|
4
4
|
function getNavigationConfig(routes) {
|
5
5
|
var metaOnly = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
6
6
|
return getReactNavigationConfig(routes, metaOnly);
|
@@ -32,12 +32,17 @@ function getLinkingConfig(routes) {
|
|
32
32
|
getActionFromState
|
33
33
|
};
|
34
34
|
}
|
35
|
-
var stateCache = /* @__PURE__ */new Map();
|
35
|
+
var stateCache = /* @__PURE__ */ new Map();
|
36
36
|
function getStateFromPathMemoized(path, options) {
|
37
37
|
var cached = stateCache.get(path);
|
38
|
-
if (cached)
|
38
|
+
if (cached)
|
39
|
+
return cached;
|
39
40
|
var result = getStateFromPath(path, options);
|
40
41
|
return stateCache.set(path, result), result;
|
41
42
|
}
|
42
|
-
export {
|
43
|
-
|
43
|
+
export {
|
44
|
+
getLinkingConfig,
|
45
|
+
getNavigationConfig,
|
46
|
+
stateCache
|
47
|
+
};
|
48
|
+
//# sourceMappingURL=getLinkingConfig.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/getLinkingConfig.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,0BAA+C;AAIxD,SAASC,gCAA6C;AACtD,SAASC,kBAAkBC,eAAeC,kBAAkBC,wBAAwB;AAE7E,SAASC,oBACdC,QAAiB;MACjBC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW;AAKX,SAAOP,yBAAyBM,QAAQC,QAAAA;AAC1C;AAMO,SAASC,iBAAiBF,QAAiB;MAAEC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW;AAC7D,SAAO;IACLE,UAAU,CAAA;;IAEVC,QAAQL,oBAAoBC,QAAQC,QAAAA;;;;;;IAMpCL;IACAS,WAAWV;IACXG,kBAAkBQ;IAClBT,iBAAiBU,OAAcC,SAA+C;UAE1EX;AADF,cACEA,oBAAAA,iBAAiBU,OAAO;QACtBE,SAAS,CAAA;QACT,GAAG,KAAKL;QACR,GAAGI;MACL,CAAA,OAAA,QAJAX,sBAAAA,SAAAA,oBAIM;IAEV;;;IAGAJ;EACF;AACF;AAEO,IAAMiB,aAAa,oBAAIC,IAAAA;AAG9B,SAASL,yBAAyBM,MAAcJ,SAA+C;AAC7F,MAAMK,SAASH,WAAWI,IAAIF,IAAAA;AAC9B,MAAIC;AACF,WAAOA;AAET,MAAME,SAASjB,iBAAiBc,MAAMJ,OAAAA;AACtCE,oBAAWM,IAAIJ,MAAMG,MAAAA,GACdA;AACT;",
|
5
|
+
"names": ["getActionFromState", "getReactNavigationConfig", "addEventListener", "getInitialURL", "getPathFromState", "getStateFromPath", "getNavigationConfig", "routes", "metaOnly", "getLinkingConfig", "prefixes", "config", "subscribe", "getStateFromPathMemoized", "state", "options", "screens", "stateCache", "Map", "path", "cached", "get", "result", "set"]
|
6
|
+
}
|
@@ -1,8 +1,10 @@
|
|
1
|
-
import { matchDeepDynamicRouteName, matchDynamicName } from "./matchers
|
1
|
+
import { matchDeepDynamicRouteName, matchDynamicName } from "./matchers";
|
2
2
|
function convertDynamicRouteToReactNavigation(segment) {
|
3
|
-
if (segment === "index")
|
3
|
+
if (segment === "index")
|
4
|
+
return "";
|
4
5
|
var rest = matchDeepDynamicRouteName(segment);
|
5
|
-
if (rest != null)
|
6
|
+
if (rest != null)
|
7
|
+
return "*" + rest;
|
6
8
|
var dynamicName = matchDynamicName(segment);
|
7
9
|
return dynamicName != null ? `:${dynamicName}` : segment;
|
8
10
|
}
|
@@ -16,26 +18,29 @@ function parseRouteSegments(segments) {
|
|
16
18
|
}
|
17
19
|
function convertRouteNodeToScreen(node, metaOnly) {
|
18
20
|
var path = parseRouteSegments(node.route);
|
19
|
-
if (!node.children.length)
|
20
|
-
path
|
21
|
-
screens: {},
|
22
|
-
_route: node
|
23
|
-
};
|
24
|
-
var screens = getReactNavigationScreensConfig(node.children, metaOnly),
|
25
|
-
screen = {
|
21
|
+
if (!node.children.length)
|
22
|
+
return metaOnly ? path : {
|
26
23
|
path,
|
27
|
-
screens,
|
28
|
-
|
29
|
-
// to be loaded into memory. We should move towards a system where
|
30
|
-
// the initial route name is either loaded asynchronously in the Layout Route
|
31
|
-
// or defined via a file system convention.
|
32
|
-
initialRouteName: node.initialRouteName
|
24
|
+
screens: {},
|
25
|
+
_route: node
|
33
26
|
};
|
27
|
+
var screens = getReactNavigationScreensConfig(node.children, metaOnly), screen = {
|
28
|
+
path,
|
29
|
+
screens,
|
30
|
+
// NOTE: This is bad because it forces all Layout Routes
|
31
|
+
// to be loaded into memory. We should move towards a system where
|
32
|
+
// the initial route name is either loaded asynchronously in the Layout Route
|
33
|
+
// or defined via a file system convention.
|
34
|
+
initialRouteName: node.initialRouteName
|
35
|
+
};
|
34
36
|
return metaOnly || (screen._route = node), screen;
|
35
37
|
}
|
36
38
|
function getReactNavigationScreensConfig(nodes, metaOnly) {
|
37
|
-
return Object.fromEntries(nodes.map(function
|
38
|
-
return [
|
39
|
+
return Object.fromEntries(nodes.map(function(node) {
|
40
|
+
return [
|
41
|
+
node.route,
|
42
|
+
convertRouteNodeToScreen(node, metaOnly)
|
43
|
+
];
|
39
44
|
}));
|
40
45
|
}
|
41
46
|
function getReactNavigationConfig(routes, metaOnly) {
|
@@ -44,5 +49,8 @@ function getReactNavigationConfig(routes, metaOnly) {
|
|
44
49
|
screens: getReactNavigationScreensConfig(routes.children, metaOnly)
|
45
50
|
};
|
46
51
|
}
|
47
|
-
export {
|
48
|
-
|
52
|
+
export {
|
53
|
+
getReactNavigationConfig,
|
54
|
+
getReactNavigationScreensConfig
|
55
|
+
};
|
56
|
+
//# sourceMappingURL=getReactNavigationConfig.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/getReactNavigationConfig.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,2BAA2BC,wBAAwB;AAc5D,SAASC,qCAAqCC,SAAe;AAE3D,MAAIA,YAAY;AACd,WAAO;AAGT,MAAMC,OAAOJ,0BAA0BG,OAAAA;AACvC,MAAIC,QAAQ;AACV,WAAO,MAAMA;AAEf,MAAMC,cAAcJ,iBAAiBE,OAAAA;AAErC,SAAIE,eAAe,OACV,IAAIA,WAAAA,KAGNF;AACT;AAEA,SAASG,mBAAmBC,UAAgB;AAC1C;;;;IAIEA,SACGC,MAAM,GAAA,EAENC,IAAIP,oCAAAA,EAEJQ,OAAOC,OAAAA,EAEPC,KAAK,GAAA;;AAEZ;AAEA,SAASC,yBAAyBC,MAAiBC,UAAiB;AAClE,MAAMC,OAAOV,mBAAmBQ,KAAKG,KAAK;AAC1C,MAAI,CAACH,KAAKI,SAASC;AACjB,WAAKJ,WAOEC,OANE;MACLA;MACAI,SAAS,CAAC;MACVC,QAAQP;IACV;AAIJ,MAAMM,UAAUE,gCAAgCR,KAAKI,UAAUH,QAAAA,GAEzDQ,SAAiB;IACrBP;IACAI;;;;;IAKAI,kBAAkBV,KAAKU;EACzB;AAEA,SAAKT,aACHQ,OAAOF,SAASP,OAGXS;AACT;AAEO,SAASD,gCACdG,OACAV,UAAiB;AAEjB,SAAOW,OAAOC,YACZF,MAAMhB,IAAI,SAACK,MAAAA;WAAS;MAACA,KAAKG;MAAOJ,yBAAyBC,MAAMC,QAAAA;;;AAEpE;AAEO,SAASa,yBACdC,QACAd,UAAiB;AAKjB,SAAO;IACLS,kBAAkBK,OAAOL;IACzBJ,SAASE,gCAAgCO,OAAOX,UAAUH,QAAAA;EAC5D;AACF;",
|
5
|
+
"names": ["matchDeepDynamicRouteName", "matchDynamicName", "convertDynamicRouteToReactNavigation", "segment", "rest", "dynamicName", "parseRouteSegments", "segments", "split", "map", "filter", "Boolean", "join", "convertRouteNodeToScreen", "node", "metaOnly", "path", "route", "children", "length", "screens", "_route", "getReactNavigationScreensConfig", "screen", "initialRouteName", "nodes", "Object", "fromEntries", "getReactNavigationConfig", "routes"]
|
6
|
+
}
|