@rspress/core 2.0.18 → 2.0.20
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.
- package/dist/2711~0.js +3007 -0
- package/dist/{4538.js → 4538~0.js} +1 -1
- package/dist/{5357.js → 5357~0.js} +1 -1
- package/dist/{3553.js → 8472~0.js} +3 -3
- package/dist/{0~execa.js → 864~0.js} +11 -11
- package/dist/cli/index.js +13 -40
- package/dist/config/defineConfig.d.ts +15 -15
- package/dist/config/loadConfigFile.js +2 -3
- package/dist/eject-theme/components/HoverGroup/index.scss +16 -0
- package/dist/eject-theme/components/HoverGroup/index.tsx +22 -1
- package/dist/eject-theme/components/Llms/LlmsCopyButton.tsx +2 -6
- package/dist/eject-theme/components/Llms/LlmsCopyRow.tsx +2 -5
- package/dist/eject-theme/components/Llms/LlmsHint.test.tsx +104 -0
- package/dist/eject-theme/components/Llms/LlmsHint.tsx +74 -0
- package/dist/eject-theme/components/Llms/getLlmsCopyContent.test.ts +21 -0
- package/dist/eject-theme/components/Llms/getLlmsCopyContent.ts +20 -0
- package/dist/eject-theme/components/Llms/index.tsx +1 -1
- package/dist/eject-theme/components/Nav/NavMenu.scss +16 -0
- package/dist/eject-theme/components/Nav/NavMenu.tsx +12 -0
- package/dist/eject-theme/components/Nav/hooks.tsx +1 -2
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.scss +18 -2
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.tsx +27 -19
- package/dist/eject-theme/components/NavScreen/index.scss +4 -0
- package/dist/eject-theme/components/Outline/index.scss +4 -0
- package/dist/eject-theme/components/Search/logic/providers/LocalProvider.ts +1 -1
- package/dist/eject-theme/components/Sidebar/SidebarGroup.tsx +3 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.scss +16 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.test.tsx +51 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.tsx +10 -1
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.scss +15 -0
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.tsx +6 -1
- package/dist/eject-theme/components/Sidebar/index.tsx +1 -0
- package/dist/index.js +1 -1
- package/dist/node/PluginDriver.js +1 -1
- package/dist/node/auto-nav-sidebar/index.js +1 -1
- package/dist/node/auto-nav-sidebar/locales.js +1 -1
- package/dist/node/auto-nav-sidebar/normalize.js +40 -12
- package/dist/node/auto-nav-sidebar/type.d.ts +7 -0
- package/dist/node/auto-nav-sidebar/utils.d.ts +1 -0
- package/dist/node/auto-nav-sidebar/utils.js +2 -1
- package/dist/node/auto-nav-sidebar/walk.js +1 -1
- package/dist/node/constants.d.ts +2 -1
- package/dist/node/constants.js +50 -2
- package/dist/node/dev.d.ts +2 -1
- package/dist/node/dev.js +7 -2
- package/dist/node/eject.js +3 -3
- package/dist/node/initRsbuild.d.ts +6 -2
- package/dist/node/initRsbuild.js +37 -13
- package/dist/node/last-updated/index.js +113 -16
- package/dist/node/logger/hint.js +2 -2
- package/dist/node/mdx/options.js +3 -2
- package/dist/node/mdx/processor.js +1 -1
- package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
- package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -1
- package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
- package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
- package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +3 -3
- package/dist/node/mdx/remarkPlugins/image.js +3 -3
- package/dist/node/mdx/remarkPlugins/link.d.ts +2 -1
- package/dist/node/mdx/remarkPlugins/link.js +8 -7
- package/dist/node/mdx/remarkPlugins/toc.js +1 -1
- package/dist/node/medium-zoom/index.js +1 -1
- package/dist/node/route/RoutePage.d.ts +0 -1
- package/dist/node/route/RoutePage.js +4 -6
- package/dist/node/route/RouteService.js +1 -1
- package/dist/node/route/extractPageData.js +3 -15
- package/dist/node/route/normalizeRoutePath.js +2 -3
- package/dist/node/runtimeModule/i18n.js +3 -3
- package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
- package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
- package/dist/node/runtimeModule/searchHooks.js +1 -1
- package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
- package/dist/node/serve.js +1 -1
- package/dist/node/ssg/alternateLinks.js +1 -1
- package/dist/node/ssg/htmlFile.js +1 -1
- package/dist/node/ssg/renderHtmlTemplate.js +1 -1
- package/dist/node/ssg/renderPage.js +3 -3
- package/dist/node/ssg/renderPageWorker.js +2 -2
- package/dist/node/ssg/renderPages.js +6 -6
- package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
- package/dist/node/ssg/ssgEnv.js +1 -1
- package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
- package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
- package/dist/node/ssg-md/remarkSplitMdx.js +8 -10
- package/dist/node/ssg-md/renderPage.js +3 -3
- package/dist/node/ssg-md/renderPages.js +4 -4
- package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
- package/dist/node/utils/checkLanguageParity.js +1 -1
- package/dist/node/utils/createHash.js +1 -1
- package/dist/node/utils/error.js +2 -2
- package/dist/node/utils/flattenMdxContent.js +2 -2
- package/dist/node/utils/fs.js +1 -1
- package/dist/node/utils/getPageKey.js +1 -1
- package/dist/node/utils/normalizePath.js +1 -1
- package/dist/node/utils/reactAlias.js +3 -3
- package/dist/runtime/App.js +7 -4
- package/dist/runtime/csrClientEntry.js +7 -2
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/reactDom.d.ts +19 -0
- package/dist/runtime/reactDom.js +5 -0
- package/dist/runtime/route.d.ts +10 -0
- package/dist/runtime/route.js +13 -2
- package/dist/runtime/ssrClientEntry.js +2 -0
- package/dist/theme/components/HoverGroup/index.css +15 -0
- package/dist/theme/components/HoverGroup/index.js +17 -1
- package/dist/theme/components/Llms/LlmsCopyButton.js +3 -4
- package/dist/theme/components/Llms/LlmsCopyRow.js +2 -3
- package/dist/theme/components/Llms/LlmsHint.d.ts +2 -0
- package/dist/theme/components/Llms/LlmsHint.js +44 -0
- package/dist/theme/components/Llms/getLlmsCopyContent.d.ts +1 -0
- package/dist/theme/components/Llms/getLlmsCopyContent.js +14 -0
- package/dist/theme/components/Llms/index.d.ts +1 -1
- package/dist/theme/components/Llms/index.js +1 -1
- package/dist/theme/components/Nav/NavMenu.css +15 -0
- package/dist/theme/components/Nav/NavMenu.js +8 -0
- package/dist/theme/components/Nav/hooks.js +1 -2
- package/dist/theme/components/NavScreen/NavScreenMenuItem.css +17 -2
- package/dist/theme/components/NavScreen/NavScreenMenuItem.js +21 -22
- package/dist/theme/components/NavScreen/index.css +4 -0
- package/dist/theme/components/Outline/index.css +4 -0
- package/dist/theme/components/Search/logic/providers/LocalProvider.js +1 -1
- package/dist/theme/components/Sidebar/SidebarGroup.js +4 -1
- package/dist/theme/components/Sidebar/SidebarItem.css +15 -0
- package/dist/theme/components/Sidebar/SidebarItem.d.ts +2 -1
- package/dist/theme/components/Sidebar/SidebarItem.js +7 -2
- package/dist/theme/components/Sidebar/SidebarSectionHeader.css +14 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.d.ts +2 -1
- package/dist/theme/components/Sidebar/SidebarSectionHeader.js +12 -6
- package/dist/theme/components/Sidebar/index.js +1 -0
- package/dist/theme/components/SwitchAppearance/global.css +3 -16
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.js +1 -2
- package/dist/theme/layout/Layout/index.js +1 -2
- package/dist/theme/logic/utils.d.ts +4 -0
- package/dist/theme/logic/utils.js +23 -2
- package/dist/theme/styles/preflight.css +0 -2
- package/meta-json-schema.json +33 -3
- package/nav-json-schema.json +9 -0
- package/package.json +18 -23
- package/dist/5871.js +0 -7275
- package/dist/5871.js.LICENSE.txt +0 -41
- package/dist/eject-theme/components/Llms/LlmsHiddenHint.test.tsx +0 -23
- package/dist/eject-theme/components/Llms/LlmsHiddenHint.tsx +0 -15
- package/dist/theme/components/Llms/LlmsHiddenHint.d.ts +0 -1
- package/dist/theme/components/Llms/LlmsHiddenHint.js +0 -18
- package/dist/theme/logic/useRedirect4FirstVisit.d.ts +0 -5
- package/dist/theme/logic/useRedirect4FirstVisit.js +0 -31
- /package/dist/{102.js → 102~0.js} +0 -0
- /package/dist/{7748.js → 7748~0.js} +0 -0
- /package/dist/{0~8016.js → 8016~0.js} +0 -0
- /package/dist/{9857.js → 9857~0.js} +0 -0
- /package/dist/{9940.js → 9940~0.js} +0 -0
- /package/dist/{0~rslib-runtime.js → rslib-runtime~0.js} +0 -0
- /package/dist/{0~tinypool.js → tinypool~0.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { unified, node_path, promises, loadFrontMatter,
|
|
1
|
+
import { unified, node_path, promises, loadFrontMatter, remark_gfm, MDX_OR_MD_REGEXP, remark_parse } from "../../2711~0.js";
|
|
2
2
|
import { applyReplaceRules } from "../utils/applyReplaceRules.js";
|
|
3
3
|
import { flattenMdxContent } from "../utils/flattenMdxContent.js";
|
|
4
4
|
import { importStatementRegex } from "../constants.js";
|
|
@@ -8,17 +8,7 @@ function applyReplaceRulesToNestedObject(obj, replaceRules) {
|
|
|
8
8
|
else if ('object' == typeof obj[key] && null !== obj[key]) obj[key] = applyReplaceRulesToNestedObject(obj[key], replaceRules);
|
|
9
9
|
return obj;
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
remove(tree, 'code');
|
|
13
|
-
};
|
|
14
|
-
const remarkRemoveImages = ()=>(tree)=>{
|
|
15
|
-
remove(tree, 'image');
|
|
16
|
-
};
|
|
17
|
-
const createProcessor = (searchCodeBlocks)=>unified().use(remark_parse).use(remark_gfm).use(remarkRemoveImages).use(searchCodeBlocks ? [] : [
|
|
18
|
-
remarkRemoveCodeBlocks
|
|
19
|
-
]);
|
|
20
|
-
const processorWithCode = createProcessor(true);
|
|
21
|
-
const processorWithoutCode = createProcessor(false);
|
|
11
|
+
const processor = unified().use(remark_parse).use(remark_gfm);
|
|
22
12
|
function extractTextFromNode(node) {
|
|
23
13
|
if ('value' in node && 'string' == typeof node.value) return node.value;
|
|
24
14
|
if ('children' in node && Array.isArray(node.children)) return node.children.map(extractTextFromNode).join('');
|
|
@@ -164,7 +154,6 @@ async function getPageIndexInfoByRoute(route, options) {
|
|
|
164
154
|
const { flattenContent } = await flattenMdxContent(applyReplaceRules(contentWithoutFrontMatter, replaceRules), route.absolutePath, alias);
|
|
165
155
|
content = flattenContent.replace(importStatementRegex, '');
|
|
166
156
|
content = content.replace(/\r\n/g, '\n');
|
|
167
|
-
const processor = searchCodeBlocks ? processorWithCode : processorWithoutCode;
|
|
168
157
|
const tree = processor.parse(content);
|
|
169
158
|
const { title, toc: rawToc } = parseToc(tree);
|
|
170
159
|
const extractedDescription = frontmatter.description || !extractDescriptionConfig ? '' : extractDescription(tree);
|
|
@@ -183,8 +172,7 @@ async function getPageIndexInfoByRoute(route, options) {
|
|
|
183
172
|
__content: void 0
|
|
184
173
|
}
|
|
185
174
|
};
|
|
186
|
-
const
|
|
187
|
-
const { content: processedContent, toc } = buildSearchContent(processedTree, rawToc, searchCodeBlocks);
|
|
175
|
+
const { content: processedContent, toc } = buildSearchContent(tree, rawToc, searchCodeBlocks);
|
|
188
176
|
return {
|
|
189
177
|
...defaultIndexInfo,
|
|
190
178
|
title: frontmatter.title || title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTrailingSlash, DEFAULT_PAGE_EXTENSIONS, addLeadingSlash } from "../../
|
|
1
|
+
import { addTrailingSlash, DEFAULT_PAGE_EXTENSIONS, addLeadingSlash } from "../../2711~0.js";
|
|
2
2
|
const getRoutePathParts = (relativePath, lang, version, langs, versions)=>{
|
|
3
3
|
const [versionPart, langPart, purePath] = splitRoutePathParts(relativePath, lang, version, langs, versions);
|
|
4
4
|
return [
|
|
@@ -11,7 +11,6 @@ const splitRoutePathParts = (relativePath, lang, version, langs, versions)=>{
|
|
|
11
11
|
const hasTrailSlash = relativePath.endsWith('/');
|
|
12
12
|
let versionPart = '';
|
|
13
13
|
let langPart = '';
|
|
14
|
-
let purePathPart = '';
|
|
15
14
|
const parts = relativePath.split('/').filter(Boolean);
|
|
16
15
|
if (version) {
|
|
17
16
|
const versionToMatch = parts[0];
|
|
@@ -21,7 +20,7 @@ const splitRoutePathParts = (relativePath, lang, version, langs, versions)=>{
|
|
|
21
20
|
const langToMatch = parts[0];
|
|
22
21
|
if (langs.includes(langToMatch)) langPart = parts.shift() ?? '';
|
|
23
22
|
}
|
|
24
|
-
purePathPart = parts.join('/');
|
|
23
|
+
const purePathPart = parts.join('/');
|
|
25
24
|
return [
|
|
26
25
|
versionPart,
|
|
27
26
|
langPart,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
3
|
-
import { createRequire, join, logger } from "../../
|
|
1
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
2
|
+
import "../../4538~0.js";
|
|
3
|
+
import { createRequire, join, logger } from "../../2711~0.js";
|
|
4
4
|
import { DEFAULT_I18N_TEXT } from "./DEFAULT_I18N_TEXT.js";
|
|
5
5
|
import { createError } from "../utils/error.js";
|
|
6
6
|
import { pathExists } from "../utils/fs.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SEARCH_INDEX_NAME, groupBy } from "../../../
|
|
1
|
+
import { SEARCH_INDEX_NAME, groupBy } from "../../../2711~0.js";
|
|
2
2
|
import { extractPageData } from "../../route/extractPageData.js";
|
|
3
3
|
import { createHash } from "../../utils/createHash.js";
|
|
4
4
|
function deletePrivateField(obj) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logger, pluginVirtualModule } from "../../../
|
|
1
|
+
import { logger, pluginVirtualModule } from "../../../2711~0.js";
|
|
2
2
|
import { createPageData } from "./createPageData.js";
|
|
3
3
|
const rsbuildPluginDocVM = async ({ config, userDocRoot, routeService, pluginDriver })=>{
|
|
4
4
|
const ref = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getIconUrlPath } from "../../../
|
|
1
|
+
import { getIconUrlPath } from "../../../2711~0.js";
|
|
2
2
|
import { normalizeThemeConfig } from "./normalizeThemeConfig.js";
|
|
3
3
|
async function createSiteData(userConfig) {
|
|
4
4
|
const tempSearchObj = Object.assign({}, userConfig.search);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isExternalUrl, slash, addLeadingSlash, normalizeHref } from "../../../
|
|
1
|
+
import { isExternalUrl, slash, addLeadingSlash, normalizeHref } from "../../../2711~0.js";
|
|
2
2
|
import { getI18nData } from "../i18n.js";
|
|
3
3
|
import { applyReplaceRules } from "../../utils/applyReplaceRules.js";
|
|
4
4
|
async function normalizeThemeConfig(docConfig) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isProduction, logger } from "../../../
|
|
1
|
+
import { isProduction, logger } from "../../../2711~0.js";
|
|
2
2
|
import { modifyConfigWithAutoNavSide } from "../../auto-nav-sidebar/index.js";
|
|
3
3
|
import { createSiteData } from "./createSiteData.js";
|
|
4
4
|
const siteDataVMPlugin = (context)=>{
|
package/dist/node/serve.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalizeHref, removeTrailingSlash, addLeadingSlash, normalizePosixPath, withSiteOrigin } from "../../
|
|
1
|
+
import { normalizeHref, removeTrailingSlash, addLeadingSlash, normalizePosixPath, withSiteOrigin } from "../../2711~0.js";
|
|
2
2
|
function createAlternateLinksByRoute(routes, config) {
|
|
3
3
|
const routeGroups = new Map();
|
|
4
4
|
for (const route of routes){
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { external_node_path_resolve, relative, isAbsolute } from "../../
|
|
1
|
+
import { external_node_path_resolve, relative, isAbsolute } from "../../8472~0.js";
|
|
2
2
|
const routePath2HtmlFileName = (routePath)=>{
|
|
3
3
|
let fileName = routePath;
|
|
4
4
|
fileName = fileName.endsWith('/') ? `${routePath}index.html` : `${routePath}.html`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { posix } from "../../
|
|
1
|
+
import { posix } from "../../8472~0.js";
|
|
2
2
|
import { META_GENERATOR, RSPRESS_VERSION, APP_HTML_MARKER, HEAD_MARKER } from "../constants.js";
|
|
3
3
|
import { routePath2HtmlFileName } from "./htmlFile.js";
|
|
4
4
|
import { createError } from "../utils/error.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
3
|
-
import { createHead, logger, transformHtmlTemplate, pathToFileURL } from "../../
|
|
1
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
2
|
+
import "../../4538~0.js";
|
|
3
|
+
import { createHead, logger, transformHtmlTemplate, pathToFileURL } from "../../8472~0.js";
|
|
4
4
|
import { hintSSGFailed } from "../logger/hint.js";
|
|
5
5
|
import { renderHtmlTemplate } from "./renderHtmlTemplate.js";
|
|
6
6
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { writeFile, mkdir, dirname, workerData } from "../../9857.js";
|
|
1
|
+
import { writeFile, mkdir, dirname, workerData } from "../../9857~0.js";
|
|
2
2
|
import { createError } from "../utils/error.js";
|
|
3
3
|
import { resolveHtmlFilePath } from "./htmlFile.js";
|
|
4
|
-
import { pMap } from "../../
|
|
4
|
+
import { pMap } from "../../8472~0.js";
|
|
5
5
|
import { renderPage } from "./renderPage.js";
|
|
6
6
|
const params = workerData?.[1]?.params;
|
|
7
7
|
if (!params) throw createError('SSG Worker Thread workerData params missing');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! LICENSE: renderPages.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "../../
|
|
3
|
-
import "../../4538.js";
|
|
4
|
-
import {
|
|
2
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
3
|
+
import "../../4538~0.js";
|
|
4
|
+
import { node_path, fileURLToPath, logger, chunk } from "../../2711~0.js";
|
|
5
5
|
import { createAlternateLinksByRoute } from "./alternateLinks.js";
|
|
6
6
|
import { SSGWorkerThreadTaskSize, getNumberOfThreads, SSGWorkerThreadRecyclerMaxMemory, SSGConcurrency } from "./ssgEnv.js";
|
|
7
7
|
import { routePath2HtmlFileName } from "./htmlFile.js";
|
|
8
|
-
import { pMap } from "../../
|
|
8
|
+
import { pMap } from "../../8472~0.js";
|
|
9
9
|
import { renderPage } from "./renderPage.js";
|
|
10
10
|
import { hintSSGFailed } from "../logger/hint.js";
|
|
11
11
|
import { renderHtmlTemplate } from "./renderHtmlTemplate.js";
|
|
@@ -46,9 +46,9 @@ async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, em
|
|
|
46
46
|
if ('object' == typeof ssg && ssg?.experimentalWorker) {
|
|
47
47
|
const numberOfThreads = getNumberOfThreads(routes.length);
|
|
48
48
|
logger.info(`Rendering pages with experimental SSG worker (${picocolors_default().yellow(numberOfThreads)} threads)...`);
|
|
49
|
-
const Tinypool = await import("../../0
|
|
49
|
+
const Tinypool = await import("../../tinypool~0.js").then((m)=>m.default);
|
|
50
50
|
const pool = new Tinypool({
|
|
51
|
-
filename:
|
|
51
|
+
filename: node_path.join(node_path.dirname(fileURLToPath(import.meta.url)), 'renderPageWorker.js'),
|
|
52
52
|
concurrentTasksPerWorker: 1,
|
|
53
53
|
minThreads: numberOfThreads,
|
|
54
54
|
maxThreads: numberOfThreads,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logger, writeFile, mkdir, rm, join, isDebugMode } from "../../
|
|
1
|
+
import { logger, writeFile, mkdir, rm, join, isDebugMode } from "../../2711~0.js";
|
|
2
2
|
import { NODE_SSG_BUNDLE_FOLDER, NODE_SSG_BUNDLE_NAME } from "../constants.js";
|
|
3
3
|
import { renderPages } from "./renderPages.js";
|
|
4
4
|
const rsbuildPluginSSG = ({ routeService, config, routeChunkAssets })=>({
|
package/dist/node/ssg/ssgEnv.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! LICENSE: ssgEnv.js.LICENSE.txt */
|
|
2
|
-
import { node_os } from "../../
|
|
2
|
+
import { node_os } from "../../2711~0.js";
|
|
3
3
|
/**
|
|
4
4
|
* these codes are copied from
|
|
5
5
|
* @link https://github.com/facebook/docusaurus/blob/45065e8d2b5831117b8d69fec1be28f5520cf105/packages/docusaurus/src/ssg/ssgEnv.ts#L11
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { matchPath, getSidebarDataGroup } from "../../../
|
|
1
|
+
import { matchPath, getSidebarDataGroup } from "../../../2711~0.js";
|
|
2
2
|
import { generateLlmsTxt, generateLlmsFullTxt } from "./llmsTxt.js";
|
|
3
3
|
async function emitLlmsTxt(config, routeService, emitAsset, mdContents) {
|
|
4
4
|
const base = config.base ?? '/';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalizeHref, withSiteOrigin, logger, withBase } from "../../../
|
|
1
|
+
import { normalizeHref, withSiteOrigin, logger, withBase } from "../../../2711~0.js";
|
|
2
2
|
import { extractInfoFromFrontmatterWithAbsolutePath } from "../../auto-nav-sidebar/utils.js";
|
|
3
3
|
function routePathToMdPath(routePath, base, siteOrigin) {
|
|
4
4
|
let url = routePath;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { unified, visit, remark_gfm, remark_mdx, remark_stringify } from "../../9940.js";
|
|
1
|
+
import { unified, visit, remark_gfm, remark_mdx, remark_stringify } from "../../9940~0.js";
|
|
2
2
|
function remarkSplitMdx(options = {}) {
|
|
3
3
|
return (tree)=>{
|
|
4
4
|
const newChildren = [];
|
|
5
|
-
const { importMap,
|
|
6
|
-
newChildren.push(...
|
|
5
|
+
const { importMap, esmNodes } = collectEsmMetadata(tree);
|
|
6
|
+
newChildren.push(...esmNodes);
|
|
7
7
|
for (const node of tree.children){
|
|
8
8
|
if ('mdxjsEsm' === node.type) continue;
|
|
9
9
|
if ('mdxFlowExpression' === node.type || 'mdxTextExpression' === node.type) {
|
|
@@ -212,10 +212,11 @@ function serializeNodeToMarkdown(node) {
|
|
|
212
212
|
const result = processor.stringify(tempRoot);
|
|
213
213
|
return result;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function collectEsmMetadata(tree) {
|
|
216
216
|
const importMap = new Map();
|
|
217
|
-
const
|
|
217
|
+
const esmNodes = new Set();
|
|
218
218
|
visit(tree, 'mdxjsEsm', (node)=>{
|
|
219
|
+
esmNodes.add(node);
|
|
219
220
|
const estree = node.data?.estree;
|
|
220
221
|
if (!estree) return;
|
|
221
222
|
for (const statement of estree.body){
|
|
@@ -223,16 +224,13 @@ function buildImportMap(tree) {
|
|
|
223
224
|
const source = statement.source.value;
|
|
224
225
|
for (const specifier of statement.specifiers){
|
|
225
226
|
const localName = specifier.local?.name;
|
|
226
|
-
if (localName)
|
|
227
|
-
importMap.set(localName, source);
|
|
228
|
-
importNodes.add(node);
|
|
229
|
-
}
|
|
227
|
+
if (localName) importMap.set(localName, source);
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
});
|
|
233
231
|
return {
|
|
234
232
|
importMap,
|
|
235
|
-
|
|
233
|
+
esmNodes
|
|
236
234
|
};
|
|
237
235
|
}
|
|
238
236
|
function shouldKeepJsxElement(nameField, importMap, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
3
|
-
import { createHead, pathToFileURL, logger } from "../../
|
|
1
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
2
|
+
import "../../4538~0.js";
|
|
3
|
+
import { createHead, pathToFileURL, logger } from "../../2711~0.js";
|
|
4
4
|
import { hintSSGFailed } from "../logger/hint.js";
|
|
5
5
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
6
6
|
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
3
|
-
import { logger } from "../../
|
|
4
|
-
import { pMap } from "../../
|
|
1
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
2
|
+
import "../../4538~0.js";
|
|
3
|
+
import { logger } from "../../2711~0.js";
|
|
4
|
+
import { pMap } from "../../8472~0.js";
|
|
5
5
|
import { renderPage } from "./renderPage.js";
|
|
6
6
|
import { SSGConcurrency } from "../ssg/ssgEnv.js";
|
|
7
7
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { writeFile, mkdir, rm, join, isDebugMode } from "../../
|
|
1
|
+
import { writeFile, mkdir, rm, join, isDebugMode } from "../../2711~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,4 +1,4 @@
|
|
|
1
|
-
import { createHash as external_node_crypto_createHash } from "../../
|
|
1
|
+
import { createHash as external_node_crypto_createHash } from "../../2711~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
|
}
|
package/dist/node/utils/error.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
1
|
+
import { __webpack_require__ } from "../../rslib-runtime~0.js";
|
|
2
|
+
import "../../4538~0.js";
|
|
3
3
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
4
4
|
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
5
5
|
function createError(message, maxStackLines = 5) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../
|
|
1
|
+
import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../2711~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;
|
|
@@ -53,7 +53,7 @@ async function flattenMdxContent(content, basePath, alias) {
|
|
|
53
53
|
let absoluteImportPath;
|
|
54
54
|
try {
|
|
55
55
|
absoluteImportPath = await resolveDepPath(importPath, node_path.dirname(basePath), alias);
|
|
56
|
-
} catch
|
|
56
|
+
} catch {
|
|
57
57
|
continue;
|
|
58
58
|
}
|
|
59
59
|
if (MDX_OR_MD_REGEXP.test(absoluteImportPath)) {
|
package/dist/node/utils/fs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __webpack_require__ } from "../../
|
|
2
|
-
import "../../4538.js";
|
|
3
|
-
import { node_path, core_rspack, logger } from "../../
|
|
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";
|
|
4
4
|
import { pathExists, readJson } from "./fs.js";
|
|
5
5
|
import { PACKAGE_ROOT } from "../constants.js";
|
|
6
6
|
import { hintReactVersion } from "../logger/hint.js";
|
package/dist/runtime/App.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { PageContext, useLocation } from "@rspress/core/runtime";
|
|
3
3
|
import { Layout, Root } from "@rspress/core/theme";
|
|
4
|
-
import {
|
|
4
|
+
import { LlmsHint } from "@rspress/core/theme-original";
|
|
5
5
|
import react, { useContext, useLayoutEffect } from "react";
|
|
6
6
|
import virtual_global_components from "virtual-global-components";
|
|
7
7
|
import { consumeCachedPageData, initPageData, setCurrentPageData } from "./initPageData.js";
|
|
@@ -30,12 +30,15 @@ function App() {
|
|
|
30
30
|
const GLOBAL_COMPONENTS_KEY = 'globalUIComponents';
|
|
31
31
|
const query = new URLSearchParams(search);
|
|
32
32
|
const hideGlobalUIComponents = false === frontmatter[GLOBAL_COMPONENTS_KEY] || "0" === query.get(GLOBAL_COMPONENTS_KEY);
|
|
33
|
-
if (import.meta.env.SSG_MD) return /*#__PURE__*/
|
|
34
|
-
children:
|
|
33
|
+
if (import.meta.env.SSG_MD) return /*#__PURE__*/ jsxs(Root, {
|
|
34
|
+
children: [
|
|
35
|
+
import.meta.env.ENABLE_LLMS_HINT && /*#__PURE__*/ jsx(LlmsHint, {}),
|
|
36
|
+
/*#__PURE__*/ jsx(Layout, {})
|
|
37
|
+
]
|
|
35
38
|
});
|
|
36
39
|
return /*#__PURE__*/ jsxs(Root, {
|
|
37
40
|
children: [
|
|
38
|
-
import.meta.env.ENABLE_LLMS_HINT && /*#__PURE__*/ jsx(
|
|
41
|
+
import.meta.env.ENABLE_LLMS_HINT && /*#__PURE__*/ jsx(LlmsHint, {}),
|
|
39
42
|
/*#__PURE__*/ jsx(Layout, {}),
|
|
40
43
|
!hideGlobalUIComponents && virtual_global_components.map((componentInfo, index)=>{
|
|
41
44
|
if (Array.isArray(componentInfo)) {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot } from "react-dom/client";
|
|
3
3
|
import { ClientApp } from "./ClientApp.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { redirectToCleanUrl } from "./route.js";
|
|
5
|
+
function renderInBrowser() {
|
|
6
|
+
redirectToCleanUrl(window.location, window.history);
|
|
7
|
+
const container = document.getElementById('__rspress_root');
|
|
8
|
+
createRoot(container).render(/*#__PURE__*/ jsx(ClientApp, {}));
|
|
9
|
+
}
|
|
10
|
+
renderInBrowser();
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export { useVersion } from './hooks/useVersion.js';
|
|
|
19
19
|
export { useWindowSize } from './hooks/useWindowSize.js';
|
|
20
20
|
export { initPageData, warmPageData } from './initPageData.js';
|
|
21
21
|
export { NoSSR } from './NoSSR.js';
|
|
22
|
+
export { safePreconnect, safePreload } from './reactDom.js';
|
|
22
23
|
export { isActive, pathnameToRouteService, preloadLink } from './route.js';
|
|
23
24
|
export { addLeadingSlash, addTrailingSlash, cleanUrlByConfig, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, removeBase, removeTrailingSlash, routePathToMdPath, withBase, withSiteOrigin, } from './utils.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -19,5 +19,6 @@ export { useVersion } from "./hooks/useVersion.js";
|
|
|
19
19
|
export { useWindowSize } from "./hooks/useWindowSize.js";
|
|
20
20
|
export { initPageData, warmPageData } from "./initPageData.js";
|
|
21
21
|
export { NoSSR } from "./NoSSR.js";
|
|
22
|
+
export { safePreconnect, safePreload } from "./reactDom.js";
|
|
22
23
|
export { isActive, pathnameToRouteService, preloadLink } from "./route.js";
|
|
23
24
|
export { addLeadingSlash, addTrailingSlash, cleanUrlByConfig, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, removeBase, removeTrailingSlash, routePathToMdPath, withBase, withSiteOrigin } from "./utils.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type CrossOrigin = '' | 'anonymous' | 'use-credentials';
|
|
2
|
+
type Preconnect = (href: string, options?: {
|
|
3
|
+
crossOrigin?: CrossOrigin;
|
|
4
|
+
}) => void;
|
|
5
|
+
type Preload = (href: string, options?: {
|
|
6
|
+
as: 'audio' | 'document' | 'embed' | 'fetch' | 'font' | 'image' | 'object' | 'script' | 'style' | 'track' | 'video' | 'worker';
|
|
7
|
+
crossOrigin?: CrossOrigin;
|
|
8
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
9
|
+
imageSizes?: string;
|
|
10
|
+
imageSrcSet?: string;
|
|
11
|
+
integrity?: string;
|
|
12
|
+
media?: string;
|
|
13
|
+
nonce?: string;
|
|
14
|
+
referrerPolicy?: ReferrerPolicy;
|
|
15
|
+
type?: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
export declare const safePreconnect: Preconnect | undefined;
|
|
18
|
+
export declare const safePreload: Preload | undefined;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as __rspack_external_react_dom_20ef40a6 from "react-dom";
|
|
2
|
+
const reactDOM = __rspack_external_react_dom_20ef40a6;
|
|
3
|
+
const safePreconnect = reactDOM.preconnect ?? reactDOM.default?.preconnect;
|
|
4
|
+
const safePreload = reactDOM.preload ?? reactDOM.default?.preload;
|
|
5
|
+
export { safePreconnect, safePreload };
|
package/dist/runtime/route.d.ts
CHANGED
|
@@ -20,6 +20,16 @@ export declare function matchPath(pattern: string, pathname: string): {
|
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
22
|
export declare function pathnameToRouteService(pathname: string): Route | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Redirects a pathname to the matching route's canonical URL with the History
|
|
25
|
+
* API.
|
|
26
|
+
*
|
|
27
|
+
* The URL format follows the `cleanUrls` setting. Query strings, hashes, and
|
|
28
|
+
* history state are preserved.
|
|
29
|
+
*
|
|
30
|
+
* @returns Whether the URL was updated.
|
|
31
|
+
*/
|
|
32
|
+
export declare function redirectToCleanUrl(location: Pick<Location, 'hash' | 'pathname' | 'search'>, history: Pick<History, 'replaceState' | 'state'>): boolean;
|
|
23
33
|
/**
|
|
24
34
|
* link: /api/config
|
|
25
35
|
* currentPathname:
|
package/dist/runtime/route.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { cleanUrl } from "@rspress/shared";
|
|
1
|
+
import { cleanUrl, normalizeHref } from "@rspress/shared";
|
|
2
2
|
import { routes } from "virtual-routes";
|
|
3
3
|
import virtual_site_data from "virtual-site-data";
|
|
4
|
+
import { removeBase, removeTrailingSlash } from "./utils.js";
|
|
4
5
|
function normalizeRoutePath(routePath) {
|
|
5
6
|
return cleanUrl(decodeURIComponent(routePath)).replace(/\.html$/, '').replace(/\/index$/, '/').toLowerCase();
|
|
6
7
|
}
|
|
@@ -43,6 +44,16 @@ function pathnameToRouteService(pathname) {
|
|
|
43
44
|
if (route) cache.set(normalizedPathname, route);
|
|
44
45
|
return route;
|
|
45
46
|
}
|
|
47
|
+
function redirectToCleanUrl(location, history) {
|
|
48
|
+
if (virtual_site_data.route?.cleanUrlsRedirect === false) return false;
|
|
49
|
+
const matchedRoute = pathnameToRouteService(removeBase(location.pathname));
|
|
50
|
+
if (!matchedRoute) return false;
|
|
51
|
+
const canonicalRoutePath = normalizeHref(matchedRoute.path, Boolean(virtual_site_data.route?.cleanUrls));
|
|
52
|
+
const canonicalPathname = `${removeTrailingSlash(virtual_site_data.base)}${canonicalRoutePath}`;
|
|
53
|
+
if (location.pathname === canonicalPathname) return false;
|
|
54
|
+
history.replaceState(history.state, '', `${canonicalPathname}${location.search}${location.hash}`);
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
46
57
|
function isActive(itemLink, currentPathname) {
|
|
47
58
|
const linkMatched = matchPath(itemLink, currentPathname);
|
|
48
59
|
return null !== linkMatched;
|
|
@@ -52,4 +63,4 @@ const preloadLink = (link)=>{
|
|
|
52
63
|
const route = pathnameToRouteService(link);
|
|
53
64
|
if (route) route.preload();
|
|
54
65
|
};
|
|
55
|
-
export { isActive, matchPath, pathnameToRouteService, preloadLink };
|
|
66
|
+
export { isActive, matchPath, pathnameToRouteService, preloadLink, redirectToCleanUrl };
|
|
@@ -4,7 +4,9 @@ import { startTransition } from "react";
|
|
|
4
4
|
import { hydrateRoot } from "react-dom/client";
|
|
5
5
|
import { ClientApp } from "./ClientApp.js";
|
|
6
6
|
import { initPageData, setCurrentPageData } from "./initPageData.js";
|
|
7
|
+
import { redirectToCleanUrl } from "./route.js";
|
|
7
8
|
async function renderInBrowser() {
|
|
9
|
+
redirectToCleanUrl(window.location, window.history);
|
|
8
10
|
const container = document.getElementById('__rspress_root');
|
|
9
11
|
const pathname = removeBase(window.location.pathname);
|
|
10
12
|
const initialPageData = await initPageData(pathname);
|
|
@@ -68,6 +68,21 @@
|
|
|
68
68
|
display: flex;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.rp-hover-group__item__icon {
|
|
72
|
+
object-fit: contain;
|
|
73
|
+
flex: 0 0 16px;
|
|
74
|
+
width: 16px;
|
|
75
|
+
height: 16px;
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
line-height: 16px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rp-hover-group__item__icon > svg, .rp-hover-group__item__icon > img {
|
|
81
|
+
object-fit: contain;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
.rp-hover-group__item--active {
|
|
72
87
|
color: var(--rp-c-brand);
|
|
73
88
|
cursor: auto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { matchNavbar, useLocation } from "@rspress/core/runtime";
|
|
3
|
-
import { Link, Tag } from "@rspress/core/theme";
|
|
3
|
+
import { Link, SvgWrapper, Tag } from "@rspress/core/theme";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import "./index.css";
|
|
6
6
|
function HoverGroupItem({ item, activeMatcher, depth = 0 }) {
|
|
@@ -24,6 +24,10 @@ function HoverGroupItem({ item, activeMatcher, depth = 0 }) {
|
|
|
24
24
|
hrefLang: item.lang,
|
|
25
25
|
rel: item.rel,
|
|
26
26
|
children: [
|
|
27
|
+
item.icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
28
|
+
icon: item.icon,
|
|
29
|
+
className: "rp-hover-group__item__icon"
|
|
30
|
+
}),
|
|
27
31
|
item.text,
|
|
28
32
|
'tag' in item && item.tag && /*#__PURE__*/ jsx(Tag, {
|
|
29
33
|
tag: item.tag
|
|
@@ -60,6 +64,10 @@ function HoverGroupItem({ item, activeMatcher, depth = 0 }) {
|
|
|
60
64
|
hrefLang: lang,
|
|
61
65
|
rel: rel,
|
|
62
66
|
children: [
|
|
67
|
+
item.icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
68
|
+
icon: item.icon,
|
|
69
|
+
className: "rp-hover-group__item__icon"
|
|
70
|
+
}),
|
|
63
71
|
text,
|
|
64
72
|
'tag' in item && item.tag && /*#__PURE__*/ jsx(Tag, {
|
|
65
73
|
tag: item.tag
|
|
@@ -69,6 +77,10 @@ function HoverGroupItem({ item, activeMatcher, depth = 0 }) {
|
|
|
69
77
|
className: "rp-hover-group__item__link",
|
|
70
78
|
lang: lang,
|
|
71
79
|
children: [
|
|
80
|
+
item.icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
81
|
+
icon: item.icon,
|
|
82
|
+
className: "rp-hover-group__item__icon"
|
|
83
|
+
}),
|
|
72
84
|
text,
|
|
73
85
|
'tag' in item && item.tag && /*#__PURE__*/ jsx(Tag, {
|
|
74
86
|
tag: item.tag
|
|
@@ -86,6 +98,10 @@ function HoverGroupItem({ item, activeMatcher, depth = 0 }) {
|
|
|
86
98
|
children: /*#__PURE__*/ jsxs("div", {
|
|
87
99
|
className: "rp-hover-group__item__link",
|
|
88
100
|
children: [
|
|
101
|
+
item.icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
102
|
+
icon: item.icon,
|
|
103
|
+
className: "rp-hover-group__item__icon"
|
|
104
|
+
}),
|
|
89
105
|
item.text,
|
|
90
106
|
'tag' in item && item.tag && /*#__PURE__*/ jsx(Tag, {
|
|
91
107
|
tag: item.tag
|