@rspress/core 2.0.21 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/bin/rspress.js +3 -1
  2. package/dist/{2711~0.js → a~0.js} +90 -70
  3. package/dist/{8472~0.js → b~0.js} +19 -14
  4. package/dist/cli/index.js +12 -13
  5. package/dist/config/loadConfigFile.d.ts +3 -4
  6. package/dist/config/loadConfigFile.js +13 -17
  7. package/dist/{7748~0.js → d~0.js} +0 -2
  8. package/dist/eject-theme/components/Llms/LlmsHint.test.tsx +8 -0
  9. package/dist/eject-theme/components/Llms/LlmsHint.tsx +11 -3
  10. package/dist/eject-theme/components/Nav/NavMenu.scss +4 -0
  11. package/dist/eject-theme/components/Nav/NavMenu.tsx +20 -13
  12. package/dist/eject-theme/components/Nav/index.tsx +30 -4
  13. package/dist/eject-theme/components/NavHamburger/index.tsx +11 -3
  14. package/dist/eject-theme/components/NavList/context.ts +3 -0
  15. package/dist/eject-theme/components/NavList/index.tsx +24 -0
  16. package/dist/eject-theme/components/NavScreen/NavScreenMenu.test.tsx +59 -0
  17. package/dist/eject-theme/components/NavScreen/NavScreenMenu.tsx +43 -2
  18. package/dist/eject-theme/components/NavScreen/index.scss +0 -6
  19. package/dist/eject-theme/components/NavScreen/index.tsx +20 -3
  20. package/dist/eject-theme/components/ReadPercent/useReadPercent.ts +1 -1
  21. package/dist/eject-theme/components/Search/SearchButton.scss +1 -0
  22. package/dist/eject-theme/components/Search/SearchPanel.scss +51 -12
  23. package/dist/eject-theme/components/Search/SearchPanel.tsx +62 -216
  24. package/dist/eject-theme/components/Search/logic/providers/LocalProvider.ts +39 -17
  25. package/dist/eject-theme/components/Search/useSearchPanel.ts +217 -0
  26. package/dist/eject-theme/components/SocialLinks/SocialLink.tsx +2 -2
  27. package/dist/eject-theme/components/SourceCode/index.tsx +1 -1
  28. package/dist/eject-theme/components/Steps/index.scss +1 -1
  29. package/dist/eject-theme/components/SwitchAppearance/getClipPath.test.ts +15 -0
  30. package/dist/eject-theme/components/SwitchAppearance/getClipPath.ts +26 -0
  31. package/dist/eject-theme/components/SwitchAppearance/index.tsx +22 -26
  32. package/dist/eject-theme/components/Tabs/index.tsx +14 -14
  33. package/dist/index.js +1 -1
  34. package/dist/node/PluginDriver.d.ts +1 -1
  35. package/dist/node/PluginDriver.js +5 -9
  36. package/dist/node/auto-nav-sidebar/index.js +1 -1
  37. package/dist/node/auto-nav-sidebar/locales.js +1 -1
  38. package/dist/node/auto-nav-sidebar/normalize.js +6 -6
  39. package/dist/node/auto-nav-sidebar/utils.js +1 -1
  40. package/dist/node/auto-nav-sidebar/walk.js +1 -1
  41. package/dist/node/build.d.ts +3 -2
  42. package/dist/node/build.js +9 -3
  43. package/dist/node/constants.js +1 -1
  44. package/dist/node/dev.d.ts +4 -4
  45. package/dist/node/dev.js +8 -6
  46. package/dist/node/eject.js +5 -5
  47. package/dist/node/initRsbuild.d.ts +2 -3
  48. package/dist/node/initRsbuild.js +9 -7
  49. package/dist/node/last-updated/index.js +2 -2
  50. package/dist/node/logger/hint.js +4 -4
  51. package/dist/node/mdx/options.js +1 -1
  52. package/dist/node/mdx/processor.js +3 -3
  53. package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
  54. package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -1
  55. package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
  56. package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
  57. package/dist/node/mdx/remarkPlugins/containerSyntax.js +6 -5
  58. package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +5 -5
  59. package/dist/node/mdx/remarkPlugins/image.js +5 -5
  60. package/dist/node/mdx/remarkPlugins/link.js +5 -5
  61. package/dist/node/mdx/remarkPlugins/toc.js +1 -1
  62. package/dist/node/medium-zoom/index.js +1 -1
  63. package/dist/node/route/RoutePage.js +6 -4
  64. package/dist/node/route/RouteService.js +3 -3
  65. package/dist/node/route/extractPageData.js +20 -7
  66. package/dist/node/route/normalizeRoutePath.js +1 -1
  67. package/dist/node/runtimeModule/i18n.js +5 -5
  68. package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
  69. package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
  70. package/dist/node/runtimeModule/searchHooks.js +1 -1
  71. package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
  72. package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
  73. package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
  74. package/dist/node/serve.d.ts +3 -3
  75. package/dist/node/serve.js +10 -4
  76. package/dist/node/ssg/alternateLinks.js +1 -1
  77. package/dist/node/ssg/htmlFile.js +1 -1
  78. package/dist/node/ssg/renderHtmlTemplate.js +4 -3
  79. package/dist/node/ssg/renderPage.js +5 -5
  80. package/dist/node/ssg/renderPageWorker.js +2 -2
  81. package/dist/node/ssg/renderPages.js +6 -6
  82. package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
  83. package/dist/node/ssg/ssgEnv.js +1 -1
  84. package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
  85. package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
  86. package/dist/node/ssg-md/remarkSplitMdx.js +1 -1
  87. package/dist/node/ssg-md/renderPage.js +5 -5
  88. package/dist/node/ssg-md/renderPages.js +6 -6
  89. package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
  90. package/dist/node/utils/checkLanguageParity.js +5 -7
  91. package/dist/node/utils/createHash.js +1 -1
  92. package/dist/node/utils/error.js +4 -4
  93. package/dist/node/utils/flattenMdxContent.js +2 -2
  94. package/dist/node/utils/fs.js +1 -1
  95. package/dist/node/utils/getPageKey.js +1 -1
  96. package/dist/node/utils/index.d.ts +1 -1
  97. package/dist/node/utils/reactAlias.js +5 -5
  98. package/dist/node/utils/slash.d.ts +1 -0
  99. package/dist/node/utils/slash.js +4 -0
  100. package/dist/{864~0.js → n~0.js} +42 -41
  101. package/dist/rslib-runtime~0.js +27 -35
  102. package/dist/runtime/App.js +3 -2
  103. package/dist/runtime/hooks/createExternalStore.d.ts +4 -0
  104. package/dist/runtime/hooks/createExternalStore.js +20 -0
  105. package/dist/runtime/hooks/useGlobalComponents.d.ts +1 -0
  106. package/dist/runtime/hooks/useGlobalComponents.js +10 -0
  107. package/dist/runtime/hooks/useI18n.js +5 -3
  108. package/dist/runtime/hooks/useI18nText.d.ts +1 -0
  109. package/dist/runtime/hooks/useI18nText.js +10 -0
  110. package/dist/runtime/hooks/usePages.d.ts +2 -0
  111. package/dist/runtime/hooks/usePages.js +12 -3
  112. package/dist/runtime/hooks/useSearchHooks.d.ts +8 -0
  113. package/dist/runtime/hooks/useSearchHooks.js +14 -0
  114. package/dist/runtime/hooks/useSite.d.ts +1 -0
  115. package/dist/runtime/hooks/useSite.js +9 -2
  116. package/dist/runtime/index.d.ts +3 -1
  117. package/dist/runtime/index.js +5 -1
  118. package/dist/runtime/initPageData.js +10 -10
  119. package/dist/runtime/route.js +5 -5
  120. package/dist/runtime/utils.js +6 -6
  121. package/dist/theme/components/Link/useLinkNavigate.js +1 -1
  122. package/dist/theme/components/Llms/LlmsHint.js +23 -6
  123. package/dist/theme/components/Nav/NavMenu.css +4 -0
  124. package/dist/theme/components/Nav/NavMenu.d.ts +4 -2
  125. package/dist/theme/components/Nav/NavMenu.js +17 -9
  126. package/dist/theme/components/Nav/index.d.ts +7 -1
  127. package/dist/theme/components/Nav/index.js +13 -4
  128. package/dist/theme/components/NavHamburger/index.d.ts +2 -1
  129. package/dist/theme/components/NavHamburger/index.js +8 -2
  130. package/dist/theme/components/NavList/context.d.ts +1 -0
  131. package/dist/theme/components/NavList/context.js +3 -0
  132. package/dist/theme/components/NavList/index.d.ts +6 -0
  133. package/dist/theme/components/NavList/index.js +17 -0
  134. package/dist/theme/components/NavScreen/NavScreenMenu.d.ts +3 -2
  135. package/dist/theme/components/NavScreen/NavScreenMenu.js +42 -6
  136. package/dist/theme/components/NavScreen/index.css +0 -10
  137. package/dist/theme/components/NavScreen/index.d.ts +2 -1
  138. package/dist/theme/components/NavScreen/index.js +11 -3
  139. package/dist/theme/components/PackageManagerTabs/index.js +2 -2
  140. package/dist/theme/components/ReadPercent/useReadPercent.js +1 -0
  141. package/dist/theme/components/Search/SearchButton.css +1 -0
  142. package/dist/theme/components/Search/SearchPanel.css +47 -9
  143. package/dist/theme/components/Search/SearchPanel.js +104 -210
  144. package/dist/theme/components/Search/logic/providers/LocalProvider.d.ts +1 -0
  145. package/dist/theme/components/Search/logic/providers/LocalProvider.js +24 -14
  146. package/dist/theme/components/Search/logic/search.js +1 -1
  147. package/dist/theme/components/Search/useSearchPanel.d.ts +23 -0
  148. package/dist/theme/components/Search/useSearchPanel.js +155 -0
  149. package/dist/theme/components/SocialLinks/SocialLink.js +2 -2
  150. package/dist/theme/components/SourceCode/index.js +1 -1
  151. package/dist/theme/components/Steps/index.css +3 -3
  152. package/dist/theme/components/SwitchAppearance/getClipPath.d.ts +8 -0
  153. package/dist/theme/components/SwitchAppearance/getClipPath.js +13 -0
  154. package/dist/theme/components/SwitchAppearance/index.js +9 -7
  155. package/dist/theme/components/Tabs/index.js +4 -4
  156. package/dist/theme/components/Tag/index.js +2 -2
  157. package/dist/theme/index.d.ts +1 -0
  158. package/dist/theme/index.js +1 -0
  159. package/dist/theme/layout/DocLayout/index.js +2 -2
  160. package/dist/theme/layout/Layout/index.js +12 -4
  161. package/dist/theme/logic/useFullTextSearch.js +6 -1
  162. package/dist/theme/logic/utils.d.ts +0 -2
  163. package/dist/theme/logic/utils.js +56 -6
  164. package/dist/theme/styles/vars/shiki-vars.css +1 -1
  165. package/dist/tinypool~0.js +5 -3
  166. package/dist/{4538~0.js → t~0.js} +2 -2
  167. package/package.json +15 -16
  168. package/dist/eject-theme/components/NavScreen/NavScreenMenuOthers.tsx +0 -29
  169. package/dist/node/utils/normalizePath.d.ts +0 -3
  170. package/dist/node/utils/normalizePath.js +0 -10
  171. package/dist/theme/components/NavScreen/NavScreenMenuOthers.d.ts +0 -2
  172. package/dist/theme/components/NavScreen/NavScreenMenuOthers.js +0 -30
  173. package/dist/theme/logic/useHandler.d.ts +0 -6
  174. package/dist/theme/logic/useHandler.js +0 -7
  175. /package/dist/{9857~0.js → 4~0.js} +0 -0
  176. /package/dist/{8016~0.js → i~0.js} +0 -0
  177. /package/dist/{5357~0.js → r~0.js} +0 -0
  178. /package/dist/{102~0.js → t2~0.js} +0 -0
  179. /package/dist/{9940~0.js → tx~0.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { writeFile, mkdir, rm, join, isDebugMode } from "../../2711~0.js";
1
+ import { writeFile, mkdir, rm, join, isDebugMode } from "../../a~0.js";
2
2
  import { NODE_SSG_MD_BUNDLE_FOLDER, NODE_SSG_MD_BUNDLE_NAME } from "../constants.js";
3
3
  import { renderPages } from "./renderPages.js";
4
4
  import { emitLlmsTxt } from "./llms/emitLlmsTxt.js";
@@ -1,8 +1,6 @@
1
- import { node_path, logger, promises } from "../../2711~0.js";
1
+ import { node_path, logger, promises } from "../../a~0.js";
2
+ import { slash } from "./slash.js";
2
3
  import { createError } from "./error.js";
3
- function normalizePath(filePath) {
4
- return filePath.split(node_path.sep).join('/');
5
- }
6
4
  async function getAllMarkdownFilesFrom(dirPath) {
7
5
  const files = await promises.readdir(dirPath, {
8
6
  withFileTypes: true
@@ -28,7 +26,7 @@ async function collectModuleFiles(contentPath, lang, includedDir, excludedDirs,
28
26
  if (!moduleDirStats.isDirectory()) return fileLangMap;
29
27
  const files = await getAllMarkdownFilesFrom(langModuleDir);
30
28
  for (const file of files){
31
- const relativePath = normalizePath(node_path.relative(langDirPath, file));
29
+ const relativePath = slash(node_path.relative(langDirPath, file));
32
30
  if (excludedDirs.some((excludedDir)=>{
33
31
  const isFilePath = /\.(md|mdx)$/.test(excludedDir);
34
32
  return relativePath.includes(excludedDir + (isFilePath ? '' : '/'));
@@ -39,7 +37,7 @@ async function collectModuleFiles(contentPath, lang, includedDir, excludedDirs,
39
37
  }
40
38
  } catch (e) {
41
39
  logger.error(e);
42
- throw createError(`Failed to access directory: ${normalizePath(langModuleDir)}`);
40
+ throw createError(`Failed to access directory: ${slash(langModuleDir)}`);
43
41
  }
44
42
  return fileLangMap;
45
43
  }
@@ -67,7 +65,7 @@ async function checkLanguageParity(config) {
67
65
  });
68
66
  }
69
67
  }
70
- if (missingLanguagesFile.length > 0) throw createError(`Check language parity failed! Missing content:\n${missingLanguagesFile.map((file)=>` - ${normalizePath(file)}`).join('\n')}`);
68
+ if (missingLanguagesFile.length > 0) throw createError(`Check language parity failed! Missing content:\n${missingLanguagesFile.map((file)=>` - ${slash(file)}`).join('\n')}`);
71
69
  logger.success('Language parity checked successfully.');
72
70
  } catch (err) {
73
71
  logger.error('Error during language parity check: \n', err);
@@ -1,4 +1,4 @@
1
- import { createHash as external_node_crypto_createHash } from "../../2711~0.js";
1
+ import { createHash as external_node_crypto_createHash } from "../../a~0.js";
2
2
  function createHash(str, length = 8) {
3
3
  return external_node_crypto_createHash('sha256').update(str).digest('hex').slice(0, length);
4
4
  }
@@ -1,7 +1,7 @@
1
- import { __webpack_require__ } from "../../rslib-runtime~0.js";
2
- import "../../4538~0.js";
3
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
4
- var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
1
+ import { rspackRequire, compatGetDefaultExport } from "../../rslib-runtime~0.js";
2
+ import "../../t~0.js";
3
+ const picocolors = rspackRequire("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
4
+ var picocolors_default = /*#__PURE__*/ compatGetDefaultExport(picocolors);
5
5
  function createError(message, maxStackLines = 5) {
6
6
  const error = new Error(message);
7
7
  if (error.stack) {
@@ -1,4 +1,4 @@
1
- import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../2711~0.js";
1
+ import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../a~0.js";
2
2
  import { createError } from "./error.js";
3
3
  import { importStatementRegex } from "../constants.js";
4
4
  const RspackResolveFactory = core_rspack.experiments.resolver.ResolverFactory;
@@ -15,7 +15,7 @@ async function resolveDepPath(moduleSpecifier, importer, alias) {
15
15
  });
16
16
  const resolved = await resolver.async(importer, moduleSpecifier);
17
17
  if (resolved.path) return resolved.path;
18
- throw createError(`Empty result when resolving ${moduleSpecifier} from ${importer}`);
18
+ else throw createError(`Empty result when resolving ${moduleSpecifier} from ${importer}`);
19
19
  }
20
20
  async function flattenMdxContent(content, basePath, alias) {
21
21
  const deps = [];
@@ -1,4 +1,4 @@
1
- import { promises } from "../../4538~0.js";
1
+ import { promises } from "../../t~0.js";
2
2
  async function pathExists(path) {
3
3
  try {
4
4
  await promises.access(path);
@@ -1,4 +1,4 @@
1
- import { removeLeadingSlash } from "../../2711~0.js";
1
+ import { removeLeadingSlash } from "../../a~0.js";
2
2
  function getPageKey(route) {
3
3
  const cleanRoute = removeLeadingSlash(route);
4
4
  return cleanRoute.replace(/\//g, '_').replace(/\.[^.]+$/, '') || 'index';
@@ -6,5 +6,5 @@ export * from './flattenMdxContent.js';
6
6
  export * from './fs.js';
7
7
  export * from './getImportAstNode.js';
8
8
  export * from './getPageKey.js';
9
- export * from './normalizePath.js';
10
9
  export * from './reactAlias.js';
10
+ export * from './slash.js';
@@ -1,11 +1,11 @@
1
- import { __webpack_require__ } from "../../rslib-runtime~0.js";
2
- import "../../4538~0.js";
3
- import { node_path, core_rspack, logger } from "../../2711~0.js";
1
+ import { rspackRequire, compatGetDefaultExport } from "../../rslib-runtime~0.js";
2
+ import "../../t~0.js";
3
+ import { node_path, core_rspack, logger } from "../../a~0.js";
4
4
  import { pathExists, readJson } from "./fs.js";
5
5
  import { PACKAGE_ROOT } from "../constants.js";
6
6
  import { hintReactVersion } from "../logger/hint.js";
7
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
8
- var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
7
+ const picocolors = rspackRequire("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
8
+ var picocolors_default = /*#__PURE__*/ compatGetDefaultExport(picocolors);
9
9
  const Resolver = core_rspack.experiments.resolver.ResolverFactory;
10
10
  async function detectPackageMajorVersion(name) {
11
11
  const cwd = process.cwd();
@@ -0,0 +1 @@
1
+ export declare function slash(p: string): string;
@@ -0,0 +1,4 @@
1
+ function slash(p) {
2
+ return p.replace(/\\/g, '/');
3
+ }
4
+ export { slash };
@@ -1,3 +1,4 @@
1
+ import { rspackRequire, moduleFactories } from "./rslib-runtime~0.js";
1
2
  import node_path from "node:path";
2
3
  import { Buffer } from "node:buffer";
3
4
  import node_child_process, { ChildProcess } from "node:child_process";
@@ -7,13 +8,13 @@ import node_os, { constants } from "node:os";
7
8
  import { createReadStream, createWriteStream, readFileSync } from "node:fs";
8
9
  import { setTimeout as promises_setTimeout } from "node:timers/promises";
9
10
  import { debuglog } from "node:util";
10
- import { __webpack_require__ } from "./rslib-runtime~0.js";
11
- import "./2711~0.js";
12
- __webpack_require__.add({
13
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module, __unused_rspack_exports, __webpack_require__) {
14
- const cp = __webpack_require__("child_process");
15
- const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
16
- const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
11
+ import { createRequire as __rspack_createRequire } from "node:module";
12
+ const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
13
+ moduleFactories.add({
14
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module) {
15
+ const cp = __rspack_createRequire_require("child_process");
16
+ const parse = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
17
+ const enoent = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
17
18
  function spawn(command, args, options) {
18
19
  const parsed = parse(command, args, options);
19
20
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
@@ -69,11 +70,11 @@ __webpack_require__.add({
69
70
  notFoundError
70
71
  };
71
72
  },
72
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
73
- const path = __webpack_require__("path?37f5");
74
- const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
75
- const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
76
- const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
73
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module) {
74
+ const path = __rspack_createRequire_require("path");
75
+ const resolveCommand = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
76
+ const escape = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
77
+ const readShebang = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
77
78
  const isWin = 'win32' === process.platform;
78
79
  const isExecutableRegExp = /\.(?:com|exe)$/i;
79
80
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -149,9 +150,9 @@ __webpack_require__.add({
149
150
  module.exports.command = escapeCommand;
150
151
  module.exports.argument = escapeArgument;
151
152
  },
152
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module, __unused_rspack_exports, __webpack_require__) {
153
- const fs = __webpack_require__("fs?cdbd");
154
- const shebangCommand = __webpack_require__("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
153
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module) {
154
+ const fs = __rspack_createRequire_require("fs");
155
+ const shebangCommand = rspackRequire("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
155
156
  function readShebang(command) {
156
157
  const size = 150;
157
158
  const buffer = Buffer.alloc(size);
@@ -165,10 +166,10 @@ __webpack_require__.add({
165
166
  }
166
167
  module.exports = readShebang;
167
168
  },
168
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module, __unused_rspack_exports, __webpack_require__) {
169
- const path = __webpack_require__("path?37f5");
170
- const which = __webpack_require__("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
171
- const getPathKey = __webpack_require__("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
169
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module) {
170
+ const path = __rspack_createRequire_require("path");
171
+ const which = rspackRequire("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
172
+ const getPathKey = rspackRequire("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
172
173
  function resolveCommandAttempt(parsed, withoutPathExt) {
173
174
  const env = parsed.options.env || process.env;
174
175
  const cwd = process.cwd();
@@ -196,10 +197,10 @@ __webpack_require__.add({
196
197
  }
197
198
  module.exports = resolveCommand;
198
199
  },
199
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module, __unused_rspack_exports, __webpack_require__) {
200
- __webpack_require__("fs?cdbd");
200
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module) {
201
+ __rspack_createRequire_require("fs");
201
202
  var core;
202
- core = 'win32' === process.platform || global.TESTING_WINDOWS ? __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
203
+ core = 'win32' === process.platform || global.TESTING_WINDOWS ? rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
203
204
  module.exports = isexe;
204
205
  isexe.sync = sync;
205
206
  function isexe(path, options, cb) {
@@ -231,14 +232,14 @@ __webpack_require__.add({
231
232
  return core.sync(path, options || {});
232
233
  } catch (er) {
233
234
  if (options && options.ignoreErrors || 'EACCES' === er.code) return false;
234
- throw er;
235
+ else throw er;
235
236
  }
236
237
  }
237
238
  },
238
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module, __unused_rspack_exports, __webpack_require__) {
239
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module) {
239
240
  module.exports = isexe;
240
241
  isexe.sync = sync;
241
- var fs = __webpack_require__("fs?cdbd");
242
+ var fs = __rspack_createRequire_require("fs");
242
243
  function isexe(path, options, cb) {
243
244
  fs.stat(path, function(er, stat) {
244
245
  cb(er, er ? false : checkStat(stat, options));
@@ -264,10 +265,10 @@ __webpack_require__.add({
264
265
  return ret;
265
266
  }
266
267
  },
267
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module, __unused_rspack_exports, __webpack_require__) {
268
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module) {
268
269
  module.exports = isexe;
269
270
  isexe.sync = sync;
270
- var fs = __webpack_require__("fs?cdbd");
271
+ var fs = __rspack_createRequire_require("fs");
271
272
  function checkPathExt(path, options) {
272
273
  var pathext = void 0 !== options.pathExt ? options.pathExt : process.env.PATHEXT;
273
274
  if (!pathext) return true;
@@ -292,8 +293,8 @@ __webpack_require__.add({
292
293
  return checkStat(fs.statSync(path), path, options);
293
294
  }
294
295
  },
295
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module, __unused_rspack_exports, __webpack_require__) {
296
- const { PassThrough } = __webpack_require__("stream");
296
+ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module) {
297
+ const { PassThrough } = __rspack_createRequire_require("stream");
297
298
  module.exports = function() {
298
299
  var sources = [];
299
300
  var output = new PassThrough({
@@ -339,8 +340,8 @@ __webpack_require__.add({
339
340
  module.exports = pathKey;
340
341
  module.exports["default"] = pathKey;
341
342
  },
342
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module, __unused_rspack_exports, __webpack_require__) {
343
- const shebangRegex = __webpack_require__("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
343
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module) {
344
+ const shebangRegex = rspackRequire("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
344
345
  module.exports = (string = '')=>{
345
346
  const match = string.match(shebangRegex);
346
347
  if (!match) return null;
@@ -353,11 +354,11 @@ __webpack_require__.add({
353
354
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js" (module) {
354
355
  module.exports = /^#!(.*)/;
355
356
  },
356
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module, __unused_rspack_exports, __webpack_require__) {
357
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module) {
357
358
  const isWindows = 'win32' === process.platform || 'cygwin' === process.env.OSTYPE || 'msys' === process.env.OSTYPE;
358
- const path = __webpack_require__("path?37f5");
359
+ const path = __rspack_createRequire_require("path");
359
360
  const COLON = isWindows ? ';' : ':';
360
- const isexe = __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
361
+ const isexe = rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
361
362
  const getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {
362
363
  code: 'ENOENT'
363
364
  });
@@ -975,7 +976,7 @@ if ('win32' !== process.platform) signals_signals.push('SIGALRM', 'SIGABRT', 'SI
975
976
  if ('linux' === process.platform) signals_signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT');
976
977
  const processOk = (process1)=>!!process1 && 'object' == typeof process1 && 'function' == typeof process1.removeListener && 'function' == typeof process1.emit && 'function' == typeof process1.reallyExit && 'function' == typeof process1.listeners && 'function' == typeof process1.kill && 'number' == typeof process1.pid && 'function' == typeof process1.on;
977
978
  const kExitEmitter = Symbol.for('signal-exit emitter');
978
- const global = globalThis;
979
+ const mjs_global = globalThis;
979
980
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
980
981
  class Emitter {
981
982
  emitted = {
@@ -989,8 +990,8 @@ class Emitter {
989
990
  count = 0;
990
991
  id = Math.random();
991
992
  constructor(){
992
- if (global[kExitEmitter]) return global[kExitEmitter];
993
- ObjectDefineProperty(global, kExitEmitter, {
993
+ if (mjs_global[kExitEmitter]) return mjs_global[kExitEmitter];
994
+ ObjectDefineProperty(mjs_global, kExitEmitter, {
994
995
  value: this,
995
996
  writable: false,
996
997
  enumerable: false,
@@ -1107,7 +1108,7 @@ class SignalExit extends SignalExitBase {
1107
1108
  #processEmit(ev, ...args) {
1108
1109
  const og = this.#originalProcessEmit;
1109
1110
  if (!('exit' === ev && processOk(this.#process))) return og.call(this.#process, ev, ...args);
1110
- {
1111
+ else {
1111
1112
  if ('number' == typeof args[0]) this.#process.exitCode = args[0];
1112
1113
  const ret = og.call(this.#process, ev, ...args);
1113
1114
  this.#emitter.emit('exit', this.#process.exitCode, null);
@@ -1116,7 +1117,7 @@ class SignalExit extends SignalExitBase {
1116
1117
  }
1117
1118
  }
1118
1119
  const mjs_process = globalThis.process;
1119
- const { onExit: onExit, load: load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1120
+ const { onExit: onExit, load: mjs_load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1120
1121
  const DEFAULT_FORCE_KILL_TIMEOUT = 5000;
1121
1122
  const spawnedKill = (kill, signal = 'SIGTERM', options = {})=>{
1122
1123
  const killResult = kill(signal);
@@ -1379,7 +1380,7 @@ const stringMethods = {
1379
1380
  getFinalChunk: getFinalStringChunk,
1380
1381
  finalize: utils_getContentsProp
1381
1382
  };
1382
- const merge_stream = __webpack_require__("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1383
+ const merge_stream = rspackRequire("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1383
1384
  const validateInputOptions = (input)=>{
1384
1385
  if (void 0 !== input) throw new TypeError('The `input` and `inputFile` options cannot be both set.');
1385
1386
  };
@@ -1574,7 +1575,7 @@ const logCommand = (escapedCommand, { verbose })=>{
1574
1575
  if (!verbose) return;
1575
1576
  node_process.stderr.write(`[${getTimestamp()}] ${escapedCommand}\n`);
1576
1577
  };
1577
- const cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1578
+ const cross_spawn = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1578
1579
  const DEFAULT_MAX_BUFFER = 100000000;
1579
1580
  const getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath })=>{
1580
1581
  const env = extendEnv ? {
@@ -1,42 +1,34 @@
1
- var __webpack_modules__ = {};
2
- var __webpack_module_cache__ = {};
3
- function __webpack_require__(moduleId) {
4
- var cachedModule = __webpack_module_cache__[moduleId];
1
+ var modules = {};
2
+ var moduleCache = {};
3
+ function rspackRequire(moduleId) {
4
+ var cachedModule = moduleCache[moduleId];
5
5
  if (void 0 !== cachedModule) return cachedModule.exports;
6
- var module = __webpack_module_cache__[moduleId] = {
6
+ var module = moduleCache[moduleId] = {
7
7
  exports: {}
8
8
  };
9
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
9
+ modules[moduleId](module, module.exports, rspackRequire);
10
10
  return module.exports;
11
11
  }
12
- __webpack_require__.m = __webpack_modules__;
13
- (()=>{
14
- __webpack_require__.n = (module)=>{
15
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
16
- __webpack_require__.d(getter, {
17
- a: getter
12
+ var moduleFactories = modules;
13
+ var compatGetDefaultExport = (module)=>{
14
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
15
+ definePropertyGetters(getter, {
16
+ a: getter
17
+ });
18
+ return getter;
19
+ };
20
+ var definePropertyGetters = (exports, getters, values)=>{
21
+ var define = (defs, kind)=>{
22
+ for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports, key)) Object.defineProperty(exports, key, {
23
+ enumerable: true,
24
+ [kind]: defs[key]
18
25
  });
19
- return getter;
20
26
  };
21
- })();
22
- (()=>{
23
- __webpack_require__.d = (exports, getters, values)=>{
24
- var define = (defs, kind)=>{
25
- for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- [kind]: defs[key]
28
- });
29
- };
30
- define(getters, "get");
31
- define(values, "value");
32
- };
33
- })();
34
- (()=>{
35
- __webpack_require__.add = function(modules) {
36
- Object.assign(__webpack_require__.m, modules);
37
- };
38
- })();
39
- (()=>{
40
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
41
- })();
42
- export { __webpack_require__ };
27
+ define(getters, "get");
28
+ define(values, "value");
29
+ };
30
+ moduleFactories.add = function(modules) {
31
+ Object.assign(moduleFactories, modules);
32
+ };
33
+ var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
34
+ export { rspackRequire, moduleFactories, compatGetDefaultExport };
@@ -3,9 +3,10 @@ import { PageContext, useLocation } from "@rspress/core/runtime";
3
3
  import { Layout, Root } from "@rspress/core/theme";
4
4
  import { LlmsHint } from "@rspress/core/theme-original";
5
5
  import react, { useContext, useLayoutEffect } from "react";
6
- import virtual_global_components from "virtual-global-components";
6
+ import { useGlobalComponents } from "./hooks/useGlobalComponents.js";
7
7
  import { consumeCachedPageData, initPageData, setCurrentPageData } from "./initPageData.js";
8
8
  function App() {
9
+ const globalComponents = useGlobalComponents();
9
10
  const { setData: setPageData, data } = useContext(PageContext);
10
11
  const { pathname, search } = useLocation();
11
12
  useLayoutEffect(()=>{
@@ -40,7 +41,7 @@ function App() {
40
41
  children: [
41
42
  import.meta.env.ENABLE_LLMS_HINT && /*#__PURE__*/ jsx(LlmsHint, {}),
42
43
  /*#__PURE__*/ jsx(Layout, {}),
43
- !hideGlobalUIComponents && virtual_global_components.map((componentInfo, index)=>{
44
+ !hideGlobalUIComponents && globalComponents.map((componentInfo, index)=>{
44
45
  if (Array.isArray(componentInfo)) {
45
46
  const [component, props] = componentInfo;
46
47
  return /*#__PURE__*/ react.createElement(component, {
@@ -0,0 +1,4 @@
1
+ export declare function createExternalStore<T>(initialValue: T): {
2
+ update(nextValue: T): void;
3
+ useValue(): T;
4
+ };
@@ -0,0 +1,20 @@
1
+ import { useSyncExternalStore } from "react";
2
+ function createExternalStore(initialValue) {
3
+ let value = initialValue;
4
+ const listeners = new Set();
5
+ const getSnapshot = ()=>value;
6
+ const subscribe = (listener)=>{
7
+ listeners.add(listener);
8
+ return ()=>listeners.delete(listener);
9
+ };
10
+ return {
11
+ update (nextValue) {
12
+ value = nextValue;
13
+ for (const listener of listeners)listener();
14
+ },
15
+ useValue () {
16
+ return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
17
+ }
18
+ };
19
+ }
20
+ export { createExternalStore };
@@ -0,0 +1 @@
1
+ export declare function useGlobalComponents(): ([import("react").ComponentType, object] | import("react").ComponentType)[];
@@ -0,0 +1,10 @@
1
+ import virtual_global_components from "virtual-global-components";
2
+ import { createExternalStore } from "./createExternalStore.js";
3
+ const store = createExternalStore(virtual_global_components);
4
+ function useGlobalComponents() {
5
+ return store.useValue();
6
+ }
7
+ if (import.meta.webpackHot) import.meta.webpackHot.accept('virtual-global-components', ()=>{
8
+ store.update(virtual_global_components);
9
+ });
10
+ export { useGlobalComponents };
@@ -1,14 +1,16 @@
1
1
  import { useCallback } from "react";
2
- import virtual_i18n_text from "virtual-i18n-text";
2
+ import { useI18nText } from "./useI18nText.js";
3
3
  import { useLang } from "./useLang.js";
4
4
  function useI18n() {
5
5
  const lang = useLang();
6
+ const i18nTextData = useI18nText();
6
7
  return useCallback((key, params)=>{
7
- const text = virtual_i18n_text[key]?.[lang];
8
+ const text = i18nTextData[key]?.[lang];
8
9
  if ('string' != typeof text) throw new Error(`i18n key "${key}" not found for language "${lang}"`);
9
10
  return text.replace(/\{\{(\w+)\}\}/g, (_, p1)=>params?.[p1] ?? `${p1}`);
10
11
  }, [
11
- lang
12
+ lang,
13
+ i18nTextData
12
14
  ]);
13
15
  }
14
16
  export { useI18n };
@@ -0,0 +1 @@
1
+ export declare function useI18nText(): Record<string, Record<string, string>>;
@@ -0,0 +1,10 @@
1
+ import virtual_i18n_text from "virtual-i18n-text";
2
+ import { createExternalStore } from "./createExternalStore.js";
3
+ const store = createExternalStore(virtual_i18n_text);
4
+ function useI18nText() {
5
+ return store.useValue();
6
+ }
7
+ if (import.meta.webpackHot) import.meta.webpackHot.accept('virtual-i18n-text', ()=>{
8
+ store.update(virtual_i18n_text);
9
+ });
10
+ export { useI18nText };
@@ -1,4 +1,6 @@
1
1
  import type { PageData } from '@rspress/shared';
2
+ export declare let pageData: PageData;
3
+ export declare let searchIndexHash: Record<string, string>;
2
4
  export declare function usePages(): {
3
5
  pages: PageData['pages'];
4
6
  };
@@ -1,7 +1,16 @@
1
- import { pageData } from "virtual-page-data";
1
+ import { pageData, searchIndexHash } from "virtual-page-data";
2
+ import { createExternalStore } from "./createExternalStore.js";
3
+ let usePages_pageData = pageData;
4
+ let usePages_searchIndexHash = searchIndexHash;
5
+ const store = createExternalStore(usePages_pageData);
2
6
  function usePages() {
3
7
  return {
4
- pages: pageData.pages
8
+ pages: store.useValue().pages
5
9
  };
6
10
  }
7
- export { usePages };
11
+ if (import.meta.webpackHot) import.meta.webpackHot.accept('virtual-page-data', ()=>{
12
+ usePages_pageData = pageData;
13
+ usePages_searchIndexHash = searchIndexHash;
14
+ store.update(usePages_pageData);
15
+ });
16
+ export { usePages, usePages_pageData as pageData, usePages_searchIndexHash as searchIndexHash };
@@ -0,0 +1,8 @@
1
+ import type { BeforeSearch, OnSearch, AfterSearch, RenderSearchFunction } from '@rspress/core/theme';
2
+ export interface SearchHooks {
3
+ beforeSearch?: BeforeSearch;
4
+ onSearch?: OnSearch;
5
+ afterSearch?: AfterSearch;
6
+ render?: RenderSearchFunction;
7
+ }
8
+ export declare function useSearchHooks(): SearchHooks;
@@ -0,0 +1,14 @@
1
+ import * as __rspack_external_virtual_search_hooks_705b6e40 from "virtual-search-hooks";
2
+ import { createExternalStore } from "./createExternalStore.js";
3
+ const store = createExternalStore({
4
+ ...__rspack_external_virtual_search_hooks_705b6e40
5
+ });
6
+ function useSearchHooks() {
7
+ return store.useValue();
8
+ }
9
+ if (import.meta.webpackHot) import.meta.webpackHot.accept('virtual-search-hooks', ()=>{
10
+ store.update({
11
+ ...__rspack_external_virtual_search_hooks_705b6e40
12
+ });
13
+ });
14
+ export { useSearchHooks };
@@ -1,4 +1,5 @@
1
1
  import type { SiteData } from '@rspress/shared';
2
+ export declare let siteData: SiteData;
2
3
  export declare function useSite(): {
3
4
  site: SiteData;
4
5
  };
@@ -1,7 +1,14 @@
1
1
  import virtual_site_data from "virtual-site-data";
2
+ import { createExternalStore } from "./createExternalStore.js";
3
+ let siteData = virtual_site_data;
4
+ const store = createExternalStore(siteData);
2
5
  function useSite() {
3
6
  return {
4
- site: virtual_site_data
7
+ site: store.useValue()
5
8
  };
6
9
  }
7
- export { useSite };
10
+ if (import.meta.webpackHot) import.meta.webpackHot.accept('virtual-site-data', ()=>{
11
+ siteData = virtual_site_data;
12
+ store.update(siteData);
13
+ });
14
+ export { siteData, useSite };
@@ -12,7 +12,7 @@ export { useLocaleSiteData } from './hooks/useLocaleSiteData.js';
12
12
  export { useNav } from './hooks/useNav.js';
13
13
  export { PageContext, usePage } from './hooks/usePage.js';
14
14
  export { usePageData } from './hooks/usePageData.js';
15
- export { usePages } from './hooks/usePages.js';
15
+ export { usePages, searchIndexHash } from './hooks/usePages.js';
16
16
  export { getSidebarDataGroup, useSidebar, useSidebarDynamic, } from './hooks/useSidebar.js';
17
17
  export { useSite } from './hooks/useSite.js';
18
18
  export { useVersion } from './hooks/useVersion.js';
@@ -22,3 +22,5 @@ export { NoSSR } from './NoSSR.js';
22
22
  export { safePreconnect, safePreload } from './reactDom.js';
23
23
  export { isActive, pathnameToRouteService, preloadLink } from './route.js';
24
24
  export { addLeadingSlash, addTrailingSlash, cleanUrlByConfig, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, removeBase, removeTrailingSlash, routePathToMdPath, withBase, withSiteOrigin, } from './utils.js';
25
+ export declare const socialLinks: Record<string, string>;
26
+ export { useSearchHooks, type SearchHooks } from './hooks/useSearchHooks.js';
@@ -1,4 +1,6 @@
1
+ import virtual_social_links from "virtual-social-links";
1
2
  export * from "react-router-dom";
3
+ const socialLinks = virtual_social_links;
2
4
  export { isDataUrl, isExternalUrl, matchNavbar, matchSidebar, normalizeHref } from "@rspress/shared";
3
5
  export { Head, useHead } from "@unhead/react";
4
6
  export { BrowserOnly } from "./BrowserOnly.js";
@@ -12,7 +14,7 @@ export { useLocaleSiteData } from "./hooks/useLocaleSiteData.js";
12
14
  export { useNav } from "./hooks/useNav.js";
13
15
  export { PageContext, usePage } from "./hooks/usePage.js";
14
16
  export { usePageData } from "./hooks/usePageData.js";
15
- export { usePages } from "./hooks/usePages.js";
17
+ export { searchIndexHash, usePages } from "./hooks/usePages.js";
16
18
  export { getSidebarDataGroup, useSidebar, useSidebarDynamic } from "./hooks/useSidebar.js";
17
19
  export { useSite } from "./hooks/useSite.js";
18
20
  export { useVersion } from "./hooks/useVersion.js";
@@ -22,3 +24,5 @@ export { NoSSR } from "./NoSSR.js";
22
24
  export { safePreconnect, safePreload } from "./reactDom.js";
23
25
  export { isActive, pathnameToRouteService, preloadLink } from "./route.js";
24
26
  export { addLeadingSlash, addTrailingSlash, cleanUrlByConfig, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, removeBase, removeTrailingSlash, routePathToMdPath, withBase, withSiteOrigin } from "./utils.js";
27
+ export { useSearchHooks } from "./hooks/useSearchHooks.js";
28
+ export { socialLinks };