one 1.1.298 → 1.1.299
Sign up to get free protection for your applications and to get access to all the features.
- 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.native.js +12 -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/vite/replaceLoader.ts +7 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
|
|
1
|
-
{"version":3,"names":["getDefaultRenderMode","matchArrayGroupName","matchDeepDynamicRouteName","matchDynamicName","matchGroupName","removeSupportedExtensions","getPageExport","validPlatforms","Set","getRoutes","contextModule","options","arguments","length","directoryTree","getDirectoryTree","rootNode","flattenDirectoryTreeToRoutes","ignoreEntryPoints","crawlAndAppendInitialRoutesAndEntryFiles","getExactRoutes","skipGenerated","importMode","process","env","One_ROUTER_IMPORT_MODE","ignoreList","ignore","push","preserveApiRoutes","rootDirectory","files","Map","subdirectories","hasRoutes","isValid","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","filePath","_step","value","some","regex","test","meta","getFileMeta","specificity","type","isLayout","renderMode","node","loadRoute","ignoreRequireErrors","contextKey","route","dynamic","children","NODE_ENV","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","extrapolateGroups","Symbol","iterator","_step1","next","done","subdirectoryParts","split","slice","directory","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step2","part","subDirectory","get","set","err","return","_directory","_layout","layout","existing","Error","getLayoutNode","fileKey","nodes","existing1","nodes1","existing2","_iterator","keys","default","require","DefaultNavigator","generated","appendSitemapRoute","appendNotFoundRoute","pathToRemove","previousLayout","getMostSpecific","internal_stripLoadRoute","newRoute","replace","generateDynamic","values","routes","routeNode","child","key","parts","filename","filenameWithoutExtensions","startsWith","_fullname","renderModeFound","match","endsWith","renamedRoute","join","platformExtension","hasPlatformExtension","has","_options_platformRoutes","usePlatformRoutes","platformRoutes","platform","RegExp","map","r","getIgnoreList","_options_ignore","add","groups","groupsSet","size","group","trim","path","name","deep","notFound","deepDynamicName","dynamicName"],"sources":["../../src/getRoutes.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AACrC,SAAAC,mBAAA,EAAAC,yBAAA,EAAAC,gBAAA,EAAAC,cAAA,EAAAC,yBAAA;AAAA,SACEC,aAAA;AAAA,IACAC,cAAA,sBAAAC,GAAA,EACA,WACA,OACA,eACK,CAEP;AAyBA,SAAMC,UAAAC,aAAiB;EAchB,IAAAC,OAAS,GAAAC,SACd,CAAAC,MAAA,GACA,KAAAD,SACkB,iBAAAA,SAAA;IAAAE,aAAA,GAAAC,gBAAA,CAAAL,aAAA,EAAAC,OAAA;EAClB,KAAAG,aAAM,EAGN,OAAK;EACH,IAAAE,QAAO,GAAAC,4BAAA,CAAAH,aAAA,EAAAH,OAAA;EAGT,OAAMA,OAAA,CAAAO,iBAAW,IAAAC,wCAAmD,CAAAH,QAAA,EAAAL,OAAA,GAAAK,QAAA;AAEpE;AAKF,SAAAI,eAAAV,aAAA;EAEO,IAAAC,OAAS,GAAAC,SACd,CAAAC,MAAA,QACAD,SAAmB,CAAC,OACF,SAAAA,SAAA;EAClB,OAAOH,SAAA,CAAUC,aAAA,EAAe;IAC9B,GAAGC,OAAA;IACHU,aAAA,EAAe;EACjB,CAAC;AACH;AAKA,SAASN,iBAAiBL,aAAA,EAAiCC,OAAA,EAAkB;EAC3E,IAAAW,UAAM,GAAAX,OAAa,CAAAW,UAAQ,IAAAC,OAAc,CAAAC,G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;WACzBiC,IAAI,SAACpB,QAAAA;iBAAU,IAAIA,OAAMxC,KAAK;WAC9BoD,KAAK,IAAA;AAER,cAAI0B,YACI,IAAI3D,MACR,UAAUvB,KAAKG,UAAU,kCAAkCkF,gBAAAA,iBAAiCH,SAAAA,0BAAmCS,kBAAAA,EAAoB,IAGjJ,IAAIpE,MACR,UAAUvB,KAAKG,UAAU,kCAAkCkF,gBAAAA,yBAAyCM,kBAAAA,EAAoB;MAE5H;AAGA3F,WAAKqF,mBAAmBA,kBACxBC,YAAYxG,KAAK4G,aAAavF,UAAU;IAC1C;QAEK,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAeH,KAAKM,SAAQ,OAAA,QAAA,EAAA,GAA5B,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA8B;AAA9B,YAAMsC,QAAN,MAAA;AACHvE,iDAAyCuE,OAAO7E,SAASuH,WAAAA;MAC3D;;AAFK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAGP;AACF;",
|
5
|
+
"names": ["getDefaultRenderMode", "matchArrayGroupName", "matchDeepDynamicRouteName", "matchDynamicName", "matchGroupName", "removeSupportedExtensions", "getPageExport", "validPlatforms", "Set", "getRoutes", "contextModule", "options", "directoryTree", "getDirectoryTree", "rootNode", "flattenDirectoryTreeToRoutes", "ignoreEntryPoints", "crawlAndAppendInitialRoutesAndEntryFiles", "getExactRoutes", "skipGenerated", "importMode", "process", "env", "One_ROUTER_IMPORT_MODE", "ignoreList", "ignore", "push", "preserveApiRoutes", "rootDirectory", "files", "Map", "subdirectories", "hasRoutes", "isValid", "filePath", "some", "regex", "test", "meta", "getFileMeta", "specificity", "type", "isLayout", "renderMode", "node", "loadRoute", "ignoreRequireErrors", "contextKey", "route", "dynamic", "children", "NODE_ENV", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "extrapolateGroups", "subdirectoryParts", "split", "slice", "directory", "part", "subDirectory", "get", "set", "layout", "existing", "Error", "getLayoutNode", "fileKey", "nodes", "keys", "default", "require", "DefaultNavigator", "generated", "appendSitemapRoute", "appendNotFoundRoute", "pathToRemove", "previousLayout", "getMostSpecific", "internal_stripLoadRoute", "newRoute", "replace", "generateDynamic", "values", "routes", "routeNode", "child", "key", "parts", "filename", "length", "filenameWithoutExtensions", "startsWith", "_fullname", "renderModeFound", "match", "endsWith", "renamedRoute", "join", "platformExtension", "hasPlatformExtension", "has", "usePlatformRoutes", "platformRoutes", "platform", "RegExp", "map", "r", "getIgnoreList", "add", "groups", "groupsSet", "size", "group", "trim", "path", "name", "deep", "notFound", "deepDynamicName", "dynamicName", "filter", "getNavOptions", "internal", "groupName", "childMatchingGroup", "find", "initialRouteName", "entryPoints", "loaded", "unstable_settings", "groupSpecificInitialRouteName", "initialRoute", "validInitialRoutes"]
|
6
|
+
}
|
@@ -3,12 +3,12 @@ function getURL() {
|
|
3
3
|
var url = process.env.ONE_SERVER_URL;
|
4
4
|
if (__DEV__) {
|
5
5
|
url || console.warn("The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work.");
|
6
|
-
var {
|
7
|
-
url: devServerUrl
|
8
|
-
} = getDevServer();
|
6
|
+
var { url: devServerUrl } = getDevServer();
|
9
7
|
url = devServerUrl;
|
10
8
|
}
|
11
9
|
return url || (url = "http://one-server.example.com"), url.replace(/\/+$/, "");
|
12
10
|
}
|
13
|
-
export {
|
11
|
+
export {
|
12
|
+
getURL
|
13
|
+
};
|
14
14
|
//# sourceMappingURL=getURL.native.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/one/src/getURL.native.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,kBAAkB;AAElB,SAASC,SAAAA;AACd,MAAIC,MAAMC,QAAQC,IAAIC;AAEtB,MAAIC,SAAS;AAEX,IAAKJ,OACHK,QAAQC,KACN,qOAAqO;AAIzO,QAAM,EAAEN,KAAKO,aAAY,IAAKT,aAAAA;AAC9BE,UAAMO;EACR;AAEA,SAAKP,QAEHA,MAAM,kCAGDA,IAAIQ,QAAQ,QAAQ,EAAA;AAC7B;",
|
5
|
+
"names": ["getDevServer", "getURL", "url", "process", "env", "ONE_SERVER_URL", "__DEV__", "console", "warn", "devServerUrl", "replace"]
|
6
|
+
}
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { HeadModule } from "./HeadModule
|
2
|
-
var Head = function
|
1
|
+
import { HeadModule } from "./HeadModule";
|
2
|
+
var Head = function(props) {
|
3
3
|
return null;
|
4
4
|
};
|
5
5
|
Object.assign(Head, HeadModule);
|
6
|
-
export {
|
6
|
+
export {
|
7
|
+
Head
|
8
|
+
};
|
7
9
|
//# sourceMappingURL=Head.android.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/head/Users/n8/one/packages/one/src/head/Head.android.tsx"],
|
4
|
+
"mappings": "AACA,SAASA,kBAAkB;AAIpB,IAAMC,OAAiB,SAACC,OAAAA;SAA6B;;AAE5DC,OAAOC,OAAOH,MAAMD,UAAAA;",
|
5
|
+
"names": ["HeadModule", "Head", "props", "Object", "assign"]
|
6
|
+
}
|
@@ -1,21 +1,18 @@
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
2
2
|
import { useIsFocused } from "@react-navigation/core";
|
3
3
|
import React from "react";
|
4
|
-
import { HeadModule } from "./HeadModule
|
5
|
-
import { getStaticUrlFromOneRouter } from "./url
|
6
|
-
import { useParams, useUnstableGlobalHref, usePathname, useSegments } from "../hooks
|
4
|
+
import { HeadModule } from "./HeadModule";
|
5
|
+
import { getStaticUrlFromOneRouter } from "./url";
|
6
|
+
import { useParams, useUnstableGlobalHref, usePathname, useSegments } from "../hooks";
|
7
7
|
function urlToId(url) {
|
8
8
|
return url.replace(/[^a-zA-Z0-9]/g, "-");
|
9
9
|
}
|
10
10
|
function getLastSegment(path) {
|
11
|
-
var _path_split_pop,
|
12
|
-
lastSegment = (_path_split_pop = path.split("/").pop()) !== null && _path_split_pop !== void 0 ? _path_split_pop : "";
|
11
|
+
var _path_split_pop, lastSegment = (_path_split_pop = path.split("/").pop()) !== null && _path_split_pop !== void 0 ? _path_split_pop : "";
|
13
12
|
return lastSegment.replace(/\.[^/.]+$/, "").split("?")[0];
|
14
13
|
}
|
15
14
|
function useAddressableLink() {
|
16
|
-
var pathname = useUnstableGlobalHref(),
|
17
|
-
params = useParams(),
|
18
|
-
url = getStaticUrlFromOneRouter(pathname);
|
15
|
+
var pathname = useUnstableGlobalHref(), params = useParams(), url = getStaticUrlFromOneRouter(pathname);
|
19
16
|
return {
|
20
17
|
url,
|
21
18
|
pathname,
|
@@ -23,22 +20,23 @@ function useAddressableLink() {
|
|
23
20
|
};
|
24
21
|
}
|
25
22
|
function useMetaChildren(children) {
|
26
|
-
return React.useMemo(function
|
27
|
-
var renderableChildren = [],
|
28
|
-
|
29
|
-
|
30
|
-
/* @__PURE__ */React.isValidElement(child) && (typeof child.type == "string" ? metaChildren.push(child) : renderableChildren.push(child));
|
23
|
+
return React.useMemo(function() {
|
24
|
+
var renderableChildren = [], metaChildren = [];
|
25
|
+
return React.Children.forEach(children, function(child) {
|
26
|
+
/* @__PURE__ */ React.isValidElement(child) && (typeof child.type == "string" ? metaChildren.push(child) : renderableChildren.push(child));
|
31
27
|
}), {
|
32
28
|
children: renderableChildren,
|
33
29
|
metaChildren
|
34
30
|
};
|
35
|
-
}, [
|
31
|
+
}, [
|
32
|
+
children
|
33
|
+
]);
|
36
34
|
}
|
37
35
|
function serializedMetaChildren(meta) {
|
38
|
-
var validMeta = meta.filter(function
|
36
|
+
var validMeta = meta.filter(function(child) {
|
39
37
|
return child.type === "meta" || child.type === "title";
|
40
38
|
});
|
41
|
-
return validMeta.map(function
|
39
|
+
return validMeta.map(function(child) {
|
42
40
|
return child.type === "title" ? {
|
43
41
|
type: "title",
|
44
42
|
props: {
|
@@ -54,147 +52,159 @@ function serializedMetaChildren(meta) {
|
|
54
52
|
});
|
55
53
|
}
|
56
54
|
function useActivityFromMetaChildren(meta) {
|
57
|
-
var {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
55
|
+
var { url: href, pathname } = useAddressableLink(), previousMeta = React.useRef([]), cachedActivity = React.useRef({}), sortedMeta = React.useMemo(function() {
|
56
|
+
return serializedMetaChildren(meta);
|
57
|
+
}, [
|
58
|
+
meta
|
59
|
+
]), url = React.useMemo(function() {
|
60
|
+
var urlMeta = sortedMeta.find(function(child) {
|
61
|
+
return child.type === "meta" && child.props.property === "og:url";
|
62
|
+
});
|
63
|
+
if (urlMeta) {
|
64
|
+
var _urlMeta_props_content;
|
65
|
+
return !((_urlMeta_props_content = urlMeta.props.content) === null || _urlMeta_props_content === void 0) && _urlMeta_props_content.startsWith("/") ? getStaticUrlFromOneRouter(urlMeta.props.content) : urlMeta.props.content;
|
66
|
+
}
|
67
|
+
return href;
|
68
|
+
}, [
|
69
|
+
sortedMeta,
|
70
|
+
href
|
71
|
+
]), title = React.useMemo(function() {
|
72
|
+
var titleTag = sortedMeta.find(function(child) {
|
73
|
+
return child.type === "title";
|
74
|
+
});
|
75
|
+
if (titleTag) {
|
76
|
+
var _titleTag_props_children;
|
77
|
+
return (_titleTag_props_children = titleTag.props.children) !== null && _titleTag_props_children !== void 0 ? _titleTag_props_children : "";
|
78
|
+
}
|
79
|
+
var titleMeta = sortedMeta.find(function(child) {
|
80
|
+
return child.type === "meta" && child.props.property === "og:title";
|
81
|
+
});
|
82
|
+
if (titleMeta) {
|
83
|
+
var _titleMeta_props_content;
|
84
|
+
return (_titleMeta_props_content = titleMeta.props.content) !== null && _titleMeta_props_content !== void 0 ? _titleMeta_props_content : "";
|
85
|
+
}
|
86
|
+
return getLastSegment(pathname);
|
87
|
+
}, [
|
88
|
+
sortedMeta,
|
89
|
+
pathname
|
90
|
+
]), activity = React.useMemo(function() {
|
91
|
+
if (previousMeta.current && cachedActivity.current && deepObjectCompare(previousMeta.current, sortedMeta))
|
92
|
+
return cachedActivity.current;
|
93
|
+
previousMeta.current = sortedMeta;
|
94
|
+
var userActivity = {};
|
95
|
+
return sortedMeta.forEach(function(child) {
|
96
|
+
if (
|
99
97
|
// <meta />
|
100
|
-
child.type === "meta"
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
userActivity.isEligibleForSearch = isTruthy(content);
|
115
|
-
break;
|
116
|
-
}
|
98
|
+
child.type === "meta"
|
99
|
+
) {
|
100
|
+
var { property, content } = child.props;
|
101
|
+
switch (property) {
|
102
|
+
case "og:description":
|
103
|
+
userActivity.description = content;
|
104
|
+
break;
|
105
|
+
// Custom properties
|
106
|
+
case "expo:handoff":
|
107
|
+
userActivity.isEligibleForHandoff = isTruthy(content);
|
108
|
+
break;
|
109
|
+
case "expo:spotlight":
|
110
|
+
userActivity.isEligibleForSearch = isTruthy(content);
|
111
|
+
break;
|
117
112
|
}
|
118
|
-
}), cachedActivity.current = userActivity, userActivity;
|
119
|
-
}, [sortedMeta]),
|
120
|
-
parsedActivity = {
|
121
|
-
keywords: [title],
|
122
|
-
...activity,
|
123
|
-
title,
|
124
|
-
webpageURL: url,
|
125
|
-
activityType: Head.activities.INDEXED_ROUTE,
|
126
|
-
userInfo: {
|
127
|
-
// TODO: This may need to be versioned in the future, e.g. `_v1` if we change the format.
|
128
|
-
href
|
129
113
|
}
|
130
|
-
};
|
114
|
+
}), cachedActivity.current = userActivity, userActivity;
|
115
|
+
}, [
|
116
|
+
sortedMeta
|
117
|
+
]), parsedActivity = {
|
118
|
+
keywords: [
|
119
|
+
title
|
120
|
+
],
|
121
|
+
...activity,
|
122
|
+
title,
|
123
|
+
webpageURL: url,
|
124
|
+
activityType: Head.activities.INDEXED_ROUTE,
|
125
|
+
userInfo: {
|
126
|
+
// TODO: This may need to be versioned in the future, e.g. `_v1` if we change the format.
|
127
|
+
href
|
128
|
+
}
|
129
|
+
};
|
131
130
|
return parsedActivity;
|
132
131
|
}
|
133
132
|
function isTruthy(value) {
|
134
|
-
return [
|
133
|
+
return [
|
134
|
+
!0,
|
135
|
+
"true"
|
136
|
+
].includes(value);
|
135
137
|
}
|
136
138
|
function HeadNative(props) {
|
137
139
|
var isFocused = useIsFocused();
|
138
|
-
return isFocused ? /* @__PURE__ */_jsx(FocusedHead, {
|
140
|
+
return isFocused ? /* @__PURE__ */ _jsx(FocusedHead, {
|
139
141
|
...props
|
140
|
-
}) : /* @__PURE__ */_jsx(UnfocusedHead, {});
|
142
|
+
}) : /* @__PURE__ */ _jsx(UnfocusedHead, {});
|
141
143
|
}
|
142
144
|
function UnfocusedHead(props) {
|
143
|
-
var {
|
144
|
-
|
145
|
-
} = useMetaChildren(props.children);
|
146
|
-
return /* @__PURE__ */_jsx(_Fragment, {
|
145
|
+
var { children } = useMetaChildren(props.children);
|
146
|
+
return /* @__PURE__ */ _jsx(_Fragment, {
|
147
147
|
children
|
148
148
|
});
|
149
149
|
}
|
150
150
|
function FocusedHead(props) {
|
151
|
-
var {
|
152
|
-
|
153
|
-
children
|
154
|
-
} = useMetaChildren(props.children),
|
155
|
-
activity = useActivityFromMetaChildren(metaChildren);
|
156
|
-
return useRegisterCurrentActivity(activity), /* @__PURE__ */_jsx(_Fragment, {
|
151
|
+
var { metaChildren, children } = useMetaChildren(props.children), activity = useActivityFromMetaChildren(metaChildren);
|
152
|
+
return useRegisterCurrentActivity(activity), /* @__PURE__ */ _jsx(_Fragment, {
|
157
153
|
children
|
158
154
|
});
|
159
155
|
}
|
160
|
-
var activities = /* @__PURE__ */new Map();
|
156
|
+
var activities = /* @__PURE__ */ new Map();
|
161
157
|
function useRegisterCurrentActivity(activity) {
|
162
|
-
var activityId = urlToId(usePathname() || "/"),
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
158
|
+
var activityId = urlToId(usePathname() || "/"), cascadingId = urlToId(useSegments().join("-") || "-"), cascadingActivity = React.useMemo(function() {
|
159
|
+
var cascadingActivity2 = activities.has(cascadingId) ? {
|
160
|
+
...activities.get(cascadingId),
|
161
|
+
...activity,
|
162
|
+
id: activityId
|
163
|
+
} : {
|
164
|
+
...activity,
|
165
|
+
id: activityId
|
166
|
+
};
|
167
|
+
return activities.set(cascadingId, cascadingActivity2), cascadingActivity2;
|
168
|
+
}, [
|
169
|
+
cascadingId,
|
170
|
+
activityId,
|
171
|
+
activity
|
172
|
+
]), previousActivity = React.useRef(null);
|
173
|
+
React.useEffect(function() {
|
174
|
+
if (!cascadingActivity)
|
175
|
+
return function() {
|
176
|
+
};
|
177
|
+
if (previousActivity.current && deepObjectCompare(previousActivity.current, cascadingActivity))
|
178
|
+
return function() {
|
172
179
|
};
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
return
|
181
|
-
}, [cascadingActivity]), React.useEffect(function () {
|
182
|
-
return function () {
|
180
|
+
if (previousActivity.current = cascadingActivity, !cascadingActivity.id)
|
181
|
+
throw new Error("Activity must have an ID");
|
182
|
+
return (cascadingActivity.isEligibleForHandoff || cascadingActivity.isEligibleForSearch) && Head?.createActivity(cascadingActivity), function() {
|
183
|
+
};
|
184
|
+
}, [
|
185
|
+
cascadingActivity
|
186
|
+
]), React.useEffect(function() {
|
187
|
+
return function() {
|
183
188
|
activityId && (HeadModule === null || HeadModule === void 0 || HeadModule.suspendActivity(activityId));
|
184
189
|
};
|
185
|
-
}, [
|
190
|
+
}, [
|
191
|
+
activityId
|
192
|
+
]);
|
186
193
|
}
|
187
194
|
function deepObjectCompare(a, b) {
|
188
|
-
if (typeof a != typeof b)
|
195
|
+
if (typeof a != typeof b)
|
196
|
+
return !1;
|
189
197
|
if (typeof a == "object") {
|
190
|
-
if (Array.isArray(a) !== Array.isArray(b))
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
+
if (Array.isArray(a) !== Array.isArray(b))
|
199
|
+
return !1;
|
200
|
+
if (Array.isArray(a))
|
201
|
+
return a.length !== b.length ? !1 : a.every(function(item, index) {
|
202
|
+
return deepObjectCompare(item, b[index]);
|
203
|
+
});
|
204
|
+
if (a === null || b === null)
|
205
|
+
return a === b;
|
206
|
+
var aKeys = Object.keys(a), bKeys = Object.keys(b);
|
207
|
+
return aKeys.length !== bKeys.length ? !1 : aKeys.every(function(key) {
|
198
208
|
return deepObjectCompare(a[key], b[key]);
|
199
209
|
});
|
200
210
|
}
|
@@ -207,5 +217,7 @@ function HeadShim(props) {
|
|
207
217
|
HeadShim.Provider = React.Fragment;
|
208
218
|
var Head = HeadModule ? HeadNative : HeadShim;
|
209
219
|
Object.assign(Head, HeadModule);
|
210
|
-
export {
|
220
|
+
export {
|
221
|
+
Head
|
222
|
+
};
|
211
223
|
//# sourceMappingURL=Head.ios.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/head/Users/n8/one/packages/one/src/head/Head.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OAAOD,KAAM,UAAU;AACzB,QAAIE,MAAMC,QAAQH,CAAAA,MAAOE,MAAMC,QAAQF,CAAAA;AACrC,aAAO;AAET,QAAIC,MAAMC,QAAQH,CAAAA;AAChB,aAAIA,EAAEI,WAAWH,EAAEG,SACV,KAEFJ,EAAEK,MAAM,SAACC,MAAMC,OAAAA;eAAU1C,kBAAkByC,MAAML,EAAEM,KAAAA,CAAM;;AAGlE,QAAIP,MAAM,QAAQC,MAAM;AACtB,aAAOD,MAAMC;AAEf,QAAMO,QAAQC,OAAOC,KAAKV,CAAAA,GACpBW,QAAQF,OAAOC,KAAKT,CAAAA;AAC1B,WAAIO,MAAMJ,WAAWO,MAAMP,SAClB,KAEFI,MAAMH,MAAM,SAACO,KAAAA;aAAQ/C,kBAAkBmC,EAAEY,GAAAA,GAAMX,EAAEW,GAAAA,CAAI;;EAC9D;AACA,SAAOZ,MAAMC;AACf;AAEApB,WAAWgC,WAAWpG,MAAMqG;AAE5B,SAASC,SAASpE,OAA8B;AAC9C,SAAO;AACT;AAEAoE,SAASF,WAAWpG,MAAMqG;AAInB,IAAMvC,OAAiB7D,aAAamE,aAAakC;AAExDN,OAAOO,OAAOzC,MAAM7D,UAAAA;",
|
5
|
+
"names": ["useIsFocused", "React", "HeadModule", "getStaticUrlFromOneRouter", "useParams", "useUnstableGlobalHref", "usePathname", "useSegments", "urlToId", "url", "replace", "getLastSegment", "path", "lastSegment", "split", "pop", "useAddressableLink", "pathname", "params", "useMetaChildren", "children", "useMemo", "renderableChildren", "metaChildren", "Children", "forEach", "child", "isValidElement", "type", "push", "serializedMetaChildren", "meta", "validMeta", "filter", "map", "props", "undefined", "property", "content", "useActivityFromMetaChildren", "href", "previousMeta", "useRef", "cachedActivity", "sortedMeta", "urlMeta", "find", "startsWith", "title", "titleTag", "titleMeta", "activity", "current", "deepObjectCompare", "userActivity", "description", "isEligibleForHandoff", "isTruthy", "isEligibleForSearch", "parsedActivity", "keywords", "webpageURL", "activityType", "Head", "activities", "INDEXED_ROUTE", "userInfo", "value", "includes", "HeadNative", "isFocused", "FocusedHead", "UnfocusedHead", "useRegisterCurrentActivity", "Map", "activityId", "cascadingId", "join", "cascadingActivity", "has", "get", "id", "set", "previousActivity", "useEffect", "Error", "createActivity", "suspendActivity", "a", "b", "Array", "isArray", "length", "every", "item", "index", "aKeys", "Object", "keys", "bKeys", "key", "Provider", "Fragment", "HeadShim", "assign"]
|
6
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { HeadModule } from "./HeadModule
|
2
|
-
var Head = function
|
3
|
-
var {
|
4
|
-
children
|
5
|
-
} = param;
|
1
|
+
import { HeadModule } from "./HeadModule";
|
2
|
+
var Head = function(param) {
|
3
|
+
var { children } = param;
|
6
4
|
return children;
|
7
5
|
};
|
8
6
|
Object.assign(Head, HeadModule);
|
9
|
-
export {
|
10
|
-
|
7
|
+
export {
|
8
|
+
Head
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=Head.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/head/Users/n8/one/packages/one/src/head/Head.tsx"],
|
4
|
+
"mappings": "AAAA,SAASA,kBAAkB;AAIpB,IAAMC,OAAiB,SAAA,OAAA;MAAC,EAAEC,SAAQ,IAAsB;AAC7D,SAAOA;AACT;AAEAC,OAAOC,OAAOH,MAAMD,UAAAA;",
|
5
|
+
"names": ["HeadModule", "Head", "children", "Object", "assign"]
|
6
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
var _globalThis_expo_modules,
|
2
|
-
|
3
|
-
HeadModule = null;
|
4
|
-
if (typeof expo < "u" && !((_globalThis_expo = globalThis.expo) === null || _globalThis_expo === void 0 || (_globalThis_expo_modules = _globalThis_expo.modules) === null || _globalThis_expo_modules === void 0) && _globalThis_expo_modules.ExpoGo) {
|
1
|
+
var _globalThis_expo_modules, _globalThis_expo, HeadModule = null;
|
2
|
+
if (typeof expo < "u" && (!((_globalThis_expo = globalThis.expo) === null || _globalThis_expo === void 0 || (_globalThis_expo_modules = _globalThis_expo.modules) === null || _globalThis_expo_modules === void 0) && _globalThis_expo_modules.ExpoGo)) {
|
5
3
|
var _globalThis_expo_modules1, _globalThis_expo1;
|
6
4
|
HeadModule = (_globalThis_expo1 = globalThis.expo) === null || _globalThis_expo1 === void 0 || (_globalThis_expo_modules1 = _globalThis_expo1.modules) === null || _globalThis_expo_modules1 === void 0 ? void 0 : _globalThis_expo_modules1.HeadModule;
|
7
5
|
}
|
8
|
-
export {
|
9
|
-
|
6
|
+
export {
|
7
|
+
HeadModule
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=HeadModule.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/head/Users/n8/one/packages/one/src/head/HeadModule.ts"],
|
4
|
+
"mappings": "IA6CmCA,0BAAAA,kBAb/BC,aASO;AAIX,IAAI,OAAOC,OAAS,QAAeF,sBAAAA,WAAWE,UAAI,QAAfF,qBAAAA,WAAAA,2BAAAA,iBAAiBG,aAAO,QAAxBH,6BAAAA,WAAAA,yBAA0BI,SAAQ;MACtDJ,2BAAAA;AAAbC,gBAAaD,oBAAAA,WAAWE,UAAI,QAAfF,sBAAAA,WAAAA,4BAAAA,kBAAiBG,aAAO,QAAxBH,8BAAAA,SAAAA,SAAAA,0BAA0BC;AACzC;",
|
5
|
+
"names": ["globalThis", "HeadModule", "expo", "modules", "ExpoGo"]
|
6
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./Head
|
2
|
-
//# sourceMappingURL=index.
|
1
|
+
export * from "./Head";
|
2
|
+
//# sourceMappingURL=index.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/head/Users/n8/one/packages/one/src/head/index.ts"],
|
4
|
+
"mappings": "AAAA,cAAc;",
|
5
|
+
"names": []
|
6
|
+
}
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
//# sourceMappingURL=types.native.js.map
|
1
|
+
//# sourceMappingURL=types.js.map
|
@@ -1,18 +1,18 @@
|
|
1
1
|
var protocolWarningString = '{ plugins: [["router", { origin: "...<URL>..." }]] }';
|
2
2
|
function memoize(fn) {
|
3
3
|
var cache = {};
|
4
|
-
return function
|
5
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
4
|
+
return function() {
|
5
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
6
|
+
args[_key] = arguments[_key];
|
6
7
|
var key = JSON.stringify(args);
|
7
|
-
if (cache[key])
|
8
|
+
if (cache[key])
|
9
|
+
return cache[key];
|
8
10
|
var result = fn(...args);
|
9
11
|
return cache[key] = result, result;
|
10
12
|
};
|
11
13
|
}
|
12
14
|
function sanitizeUrl(url) {
|
13
|
-
var _parsed,
|
14
|
-
parsed = new URL(url),
|
15
|
-
validProtocol = !parsed.protocol || parsed.protocol === "http:" || parsed.protocol === "https:";
|
15
|
+
var _parsed, parsed = new URL(url), validProtocol = !parsed.protocol || parsed.protocol === "http:" || parsed.protocol === "https:";
|
16
16
|
validProtocol || throwOrAlert(`One Head: Native origin has invalid protocol "${parsed.protocol}" for URL in Config: ${protocolWarningString}.`), parsed.pathname = "", parsed.search = "", parsed.hash = "";
|
17
17
|
var _protocol;
|
18
18
|
return (_protocol = (_parsed = parsed).protocol) !== null && _protocol !== void 0 || (_parsed.protocol = "https:"), parsed.toString().replace(/\/$/, "");
|
@@ -28,5 +28,7 @@ function throwOrAlert(msg) {
|
|
28
28
|
function getStaticUrlFromOneRouter(pathname) {
|
29
29
|
return getUrlFromConstants() + pathname;
|
30
30
|
}
|
31
|
-
export {
|
32
|
-
|
31
|
+
export {
|
32
|
+
getStaticUrlFromOneRouter
|
33
|
+
};
|
34
|
+
//# sourceMappingURL=url.js.map
|