@rspress/core 2.0.13 → 2.0.15
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/0~execa.js +1 -1
- package/dist/0~rslib-runtime.js +9 -5
- package/dist/3358.js +1 -1
- package/dist/5580.js +2 -2
- package/dist/{2633.js → 6010.js} +12 -9
- package/dist/6646.js +3 -0
- package/dist/8005.js +1 -1
- package/dist/{7275.js → 9958.js} +3 -2
- package/dist/cli/index.js +1 -1
- package/dist/eject-theme/components/Banner/index.scss +11 -0
- package/dist/eject-theme/components/Banner/index.tsx +5 -1
- package/dist/eject-theme/components/DocContent/doc.scss +2 -2
- package/dist/eject-theme/components/HomeBackground/useNavTransparent.tsx +2 -2
- package/dist/eject-theme/components/HoverGroup/index.scss +1 -1
- package/dist/eject-theme/components/LastUpdated/index.tsx +8 -2
- package/dist/eject-theme/components/Link/index.tsx +6 -0
- package/dist/eject-theme/components/Nav/NavMenu.scss +1 -1
- package/dist/eject-theme/components/Nav/hooks.tsx +18 -14
- package/dist/eject-theme/components/Nav/index.tsx +4 -1
- package/dist/eject-theme/components/NavScreen/NavScreenAppearance.tsx +4 -1
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.scss +3 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenuOthers.tsx +4 -1
- package/dist/eject-theme/components/Outline/index.tsx +0 -6
- package/dist/eject-theme/components/Search/SearchPanel.tsx +24 -17
- package/dist/eject-theme/components/Search/logic/search.ts +15 -16
- package/dist/eject-theme/components/SidebarMenu/index.tsx +10 -3
- package/dist/eject-theme/components/SidebarMenu/useSidebarMenu.tsx +12 -3
- package/dist/eject-theme/components/SocialLinks/GithubStars.tsx +120 -0
- package/dist/eject-theme/components/SocialLinks/SocialLink.tsx +5 -0
- package/dist/eject-theme/components/SocialLinks/index.scss +17 -0
- package/dist/eject-theme/components/Tag/index.test.tsx +55 -0
- package/dist/eject-theme/components/Tag/index.tsx +19 -5
- package/dist/index.d.ts +1 -1
- package/dist/node/PluginDriver.js +4 -4
- 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 +1 -1
- package/dist/node/auto-nav-sidebar/utils.js +1 -1
- package/dist/node/auto-nav-sidebar/walk.d.ts +4 -2
- package/dist/node/auto-nav-sidebar/walk.js +3 -3
- package/dist/node/constants.d.ts +2 -1
- package/dist/node/constants.js +12 -6
- package/dist/node/initRsbuild.js +21 -19
- package/dist/node/last-updated/index.d.ts +3 -3
- package/dist/node/last-updated/index.js +24 -9
- package/dist/node/mdx/options.js +8 -1
- package/dist/node/mdx/processor.js +3 -1
- package/dist/node/mdx/rehypePlugins/headerAnchor.d.ts +1 -1
- package/dist/node/mdx/rehypePlugins/headerAnchor.js +10 -6
- package/dist/node/mdx/remarkPlugins/link.js +91 -16
- package/dist/node/mdx/remarkPlugins/toc.d.ts +8 -1
- package/dist/node/mdx/remarkPlugins/toc.js +44 -15
- package/dist/node/route/RoutePage.js +1 -1
- package/dist/node/route/RouteService.d.ts +6 -0
- package/dist/node/route/RouteService.js +41 -7
- package/dist/node/route/extractPageData.js +1 -1
- package/dist/node/route/normalizeRoutePath.js +1 -1
- package/dist/node/runtimeModule/DEFAULT_I18N_TEXT.d.ts +7 -0
- package/dist/node/runtimeModule/DEFAULT_I18N_TEXT.js +7 -0
- package/dist/node/runtimeModule/i18n.js +1 -1
- package/dist/node/runtimeModule/pageData/createPageData.js +2 -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 +12 -2
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +33 -9
- package/dist/node/serve.js +1 -1
- package/dist/node/ssg/htmlFile.d.ts +2 -0
- package/dist/node/ssg/htmlFile.js +14 -0
- package/dist/node/ssg/renderPage.js +1 -1
- package/dist/node/ssg/renderPageWorker.d.ts +3 -6
- package/dist/node/ssg/renderPageWorker.js +24 -4
- package/dist/node/ssg/renderPages.d.ts +1 -1
- package/dist/node/ssg/renderPages.js +18 -17
- package/dist/node/ssg/rsbuildPluginCSR.js +2 -1
- package/dist/node/ssg/rsbuildPluginSSG.js +6 -4
- 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/renderPage.js +1 -1
- package/dist/node/ssg-md/renderPages.js +2 -2
- package/dist/node/ssg-md/rsbuildPluginSSGMD.js +3 -2
- package/dist/node/utils/checkLanguageParity.js +1 -1
- package/dist/node/utils/createHash.js +1 -1
- package/dist/node/utils/flattenMdxContent.js +1 -1
- package/dist/node/utils/getPageKey.js +1 -1
- package/dist/node/utils/reactAlias.js +1 -1
- package/dist/runtime/App.d.ts +2 -1
- package/dist/runtime/ClientApp.d.ts +1 -1
- package/dist/runtime/Content.d.ts +1 -1
- package/dist/runtime/NoSSR.d.ts +1 -1
- package/dist/theme/components/Badge/index.d.ts +1 -1
- package/dist/theme/components/Banner/index.css +11 -0
- package/dist/theme/components/Banner/index.js +1 -0
- package/dist/theme/components/CodeBlock/index.d.ts +1 -1
- package/dist/theme/components/CodeButtonGroup/CopyCodeButton.d.ts +1 -1
- package/dist/theme/components/CodeButtonGroup/index.d.ts +1 -1
- package/dist/theme/components/DocContent/doc.css +2 -2
- package/dist/theme/components/DocContent/docComponents/a.d.ts +1 -1
- package/dist/theme/components/DocContent/docComponents/code.d.ts +1 -1
- package/dist/theme/components/DocContent/docComponents/hr.d.ts +1 -1
- package/dist/theme/components/DocContent/docComponents/img.d.ts +1 -1
- package/dist/theme/components/DocContent/docComponents/index.d.ts +18 -18
- package/dist/theme/components/DocContent/docComponents/list.d.ts +3 -3
- package/dist/theme/components/DocContent/docComponents/paragraph.d.ts +3 -3
- package/dist/theme/components/DocContent/docComponents/pre.d.ts +1 -1
- package/dist/theme/components/DocContent/docComponents/table.d.ts +3 -3
- package/dist/theme/components/DocContent/docComponents/title.d.ts +6 -6
- package/dist/theme/components/DocContent/index.d.ts +1 -1
- package/dist/theme/components/DocFooter/index.d.ts +1 -1
- package/dist/theme/components/EditLink/index.d.ts +1 -1
- package/dist/theme/components/FallbackHeading/index.d.ts +1 -1
- package/dist/theme/components/HomeBackground/index.d.ts +1 -1
- package/dist/theme/components/HomeBackground/useNavTransparent.d.ts +1 -1
- package/dist/theme/components/HomeBackground/useNavTransparent.js +2 -2
- package/dist/theme/components/HomeFeature/useCardAnimation.d.ts +1 -1
- package/dist/theme/components/HomeFooter/index.d.ts +1 -1
- package/dist/theme/components/HomeHero/index.d.ts +1 -1
- package/dist/theme/components/HoverGroup/index.css +1 -1
- package/dist/theme/components/HoverGroup/index.d.ts +1 -1
- package/dist/theme/components/HoverGroup/useHoverGroup.d.ts +1 -1
- package/dist/theme/components/LastUpdated/index.d.ts +1 -1
- package/dist/theme/components/LastUpdated/index.js +13 -3
- package/dist/theme/components/Link/index.js +6 -0
- package/dist/theme/components/Llms/LlmsContainer.d.ts +1 -1
- package/dist/theme/components/Llms/LlmsCopyButton.d.ts +1 -1
- package/dist/theme/components/Llms/LlmsCopyRow.d.ts +1 -1
- package/dist/theme/components/Llms/LlmsOpenRow.d.ts +1 -1
- package/dist/theme/components/Llms/LlmsViewOptions.d.ts +1 -1
- package/dist/theme/components/Nav/NavMenu.css +1 -1
- package/dist/theme/components/Nav/NavMenu.d.ts +9 -9
- package/dist/theme/components/Nav/hooks.js +6 -3
- package/dist/theme/components/Nav/index.d.ts +1 -1
- package/dist/theme/components/Nav/index.js +2 -1
- package/dist/theme/components/NavHamburger/index.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenAppearance.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenAppearance.js +2 -1
- package/dist/theme/components/NavScreen/NavScreenLangs.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenMenu.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenMenuItem.css +10 -1
- package/dist/theme/components/NavScreen/NavScreenMenuItem.d.ts +5 -5
- package/dist/theme/components/NavScreen/NavScreenMenuOthers.d.ts +1 -1
- package/dist/theme/components/NavScreen/NavScreenMenuOthers.js +2 -1
- package/dist/theme/components/NavScreen/NavScreenVersions.d.ts +1 -1
- package/dist/theme/components/NavScreen/index.d.ts +2 -2
- package/dist/theme/components/NavTitle/index.d.ts +1 -1
- package/dist/theme/components/Outline/ScrollToTop.d.ts +1 -1
- package/dist/theme/components/Outline/index.d.ts +1 -1
- package/dist/theme/components/Outline/index.js +1 -3
- package/dist/theme/components/Overview/index.d.ts +1 -1
- package/dist/theme/components/OverviewGroup/index.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/icons/Bun.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/icons/Deno.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/icons/Npm.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/icons/Pnpm.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/icons/Yarn.d.ts +1 -1
- package/dist/theme/components/PackageManagerTabs/index.d.ts +1 -1
- package/dist/theme/components/PrevNextPage/index.d.ts +1 -1
- package/dist/theme/components/Prompt/index.d.ts +1 -1
- package/dist/theme/components/ReadPercent/index.d.ts +1 -1
- package/dist/theme/components/Root/index.d.ts +1 -1
- package/dist/theme/components/Search/NoSearchResult.d.ts +1 -1
- package/dist/theme/components/Search/SearchButton.d.ts +1 -1
- package/dist/theme/components/Search/SearchPanel.d.ts +1 -1
- package/dist/theme/components/Search/SearchPanel.js +12 -7
- package/dist/theme/components/Search/SuggestItem.d.ts +1 -1
- package/dist/theme/components/Search/index.d.ts +1 -1
- package/dist/theme/components/Search/logic/search.js +12 -7
- package/dist/theme/components/Sidebar/SidebarDivider.d.ts +1 -1
- package/dist/theme/components/Sidebar/SidebarGroup.d.ts +1 -1
- package/dist/theme/components/Sidebar/SidebarItem.d.ts +2 -2
- package/dist/theme/components/Sidebar/SidebarSectionHeader.d.ts +1 -1
- package/dist/theme/components/Sidebar/index.d.ts +2 -2
- package/dist/theme/components/SidebarMenu/index.d.ts +3 -0
- package/dist/theme/components/SidebarMenu/index.js +4 -3
- package/dist/theme/components/SidebarMenu/useSidebarMenu.d.ts +3 -2
- package/dist/theme/components/SidebarMenu/useSidebarMenu.js +7 -3
- package/dist/theme/components/SocialLinks/GithubStars.d.ts +7 -0
- package/dist/theme/components/SocialLinks/GithubStars.js +85 -0
- package/dist/theme/components/SocialLinks/SocialLink.d.ts +1 -1
- package/dist/theme/components/SocialLinks/SocialLink.js +5 -0
- package/dist/theme/components/SocialLinks/index.css +19 -0
- package/dist/theme/components/SocialLinks/index.d.ts +1 -1
- package/dist/theme/components/SourceCode/index.d.ts +1 -1
- package/dist/theme/components/Steps/index.d.ts +1 -1
- package/dist/theme/components/SvgWrapper/index.d.ts +1 -1
- package/dist/theme/components/SwitchAppearance/index.d.ts +1 -1
- package/dist/theme/components/Tag/index.d.ts +1 -1
- package/dist/theme/components/Tag/index.js +9 -5
- package/dist/theme/components/Toc/TocItem.d.ts +1 -1
- package/dist/theme/components/Toc/index.d.ts +1 -1
- package/dist/theme/layout/DocLayout/index.d.ts +1 -1
- package/dist/theme/layout/DocLayout/index.js +1 -1
- package/dist/theme/layout/HomeLayout/index.d.ts +1 -1
- package/dist/theme/layout/Layout/index.d.ts +1 -1
- package/dist/theme/layout/NotFountLayout/index.d.ts +1 -1
- package/dist/theme/logic/useThemeState.d.ts +6 -7
- package/dist/theme/logic/useThemeState.js +19 -15
- package/package.json +20 -21
- package/dist/559.js +0 -1
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import { workerData } from "../../
|
|
1
|
+
import { writeFile, mkdir, dirname, workerData } from "../../6646.js";
|
|
2
2
|
import { createError } from "../utils/error.js";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveHtmlFilePath } from "./htmlFile.js";
|
|
4
|
+
import { pMap } from "../../9958.js";
|
|
4
5
|
import { renderPage } from "./renderPage.js";
|
|
5
6
|
const params = workerData?.[1]?.params;
|
|
6
7
|
if (!params) throw createError('SSG Worker Thread workerData params missing');
|
|
7
|
-
const { htmlTemplate: htmlTemplate, head: head, ssrBundlePath: ssrBundlePath } = params;
|
|
8
|
-
|
|
8
|
+
const { htmlTemplate: htmlTemplate, head: head, ssrBundlePath: ssrBundlePath, distPath: distPath } = params;
|
|
9
|
+
async function writeHtmlFile(routePath, html) {
|
|
10
|
+
if (!distPath) return;
|
|
11
|
+
const fileAbsolutePath = resolveHtmlFilePath(distPath, routePath);
|
|
12
|
+
await mkdir(dirname(fileAbsolutePath), {
|
|
13
|
+
recursive: true
|
|
14
|
+
});
|
|
15
|
+
await writeFile(fileAbsolutePath, html);
|
|
16
|
+
}
|
|
17
|
+
const exportWorkerGlueFn = async ({ routes })=>{
|
|
18
|
+
if (distPath) {
|
|
19
|
+
await pMap(routes, async (route)=>{
|
|
20
|
+
const html = await renderPage(route, htmlTemplate, head, ssrBundlePath);
|
|
21
|
+
await writeHtmlFile(route.routePath, html);
|
|
22
|
+
}, {
|
|
23
|
+
concurrency: 10
|
|
24
|
+
});
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
return pMap(routes, async (route)=>{
|
|
9
28
|
const html = await renderPage(route, htmlTemplate, head, ssrBundlePath);
|
|
10
29
|
return html;
|
|
11
30
|
}, {
|
|
12
31
|
concurrency: 10
|
|
13
32
|
});
|
|
33
|
+
};
|
|
14
34
|
const renderPageWorker = exportWorkerGlueFn;
|
|
15
35
|
export default renderPageWorker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { UserConfig } from '@rspress/shared';
|
|
2
2
|
import type { RouteService } from '../route/RouteService.js';
|
|
3
|
-
export declare function renderPages(routeService: RouteService, config: UserConfig, ssrBundlePath: string, htmlTemplate: string, emitAsset: (assetName: string, content: string | Buffer) => void): Promise<void>;
|
|
3
|
+
export declare function renderPages(routeService: RouteService, config: UserConfig, ssrBundlePath: string, htmlTemplate: string, emitAsset: (assetName: string, content: string | Buffer) => void, workerOutputDistPath?: string): Promise<void>;
|
|
4
4
|
export declare function renderCSRPages(routeService: RouteService, config: UserConfig, htmlTemplate: string, emitAsset: (assetName: string, content: string | Buffer) => void): Promise<void>;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
/*! LICENSE: renderPages.js.LICENSE.txt */
|
|
2
2
|
import { __webpack_require__ } from "../../0~rslib-runtime.js";
|
|
3
3
|
import "../../7986.js";
|
|
4
|
-
import { chunk, logger } from "../../
|
|
4
|
+
import { chunk, logger } from "../../6010.js";
|
|
5
5
|
import { SSGWorkerThreadTaskSize, getNumberOfThreads, SSGWorkerThreadRecyclerMaxMemory, SSGConcurrency } from "./ssgEnv.js";
|
|
6
|
-
import {
|
|
6
|
+
import { routePath2HtmlFileName } from "./htmlFile.js";
|
|
7
|
+
import { pMap } from "../../9958.js";
|
|
7
8
|
import { renderPage } from "./renderPage.js";
|
|
8
9
|
import { hintSSGFailed } from "../logger/hint.js";
|
|
9
10
|
import { renderHtmlTemplate } from "./renderHtmlTemplate.js";
|
|
10
11
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
11
12
|
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
12
|
-
|
|
13
|
-
let fileName = routePath;
|
|
14
|
-
fileName = fileName.endsWith('/') ? `${routePath}index.html` : `${routePath}.html`;
|
|
15
|
-
return fileName.replace(/^\/+/, '');
|
|
16
|
-
};
|
|
17
|
-
async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, emitAsset) {
|
|
18
|
-
logger.info('Rendering pages...');
|
|
13
|
+
async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, emitAsset, workerOutputDistPath) {
|
|
19
14
|
const startTime = Date.now();
|
|
20
15
|
const ssg = config.ssg ?? true;
|
|
21
16
|
try {
|
|
@@ -48,6 +43,7 @@ async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, em
|
|
|
48
43
|
}
|
|
49
44
|
if ('object' == typeof ssg && ssg?.experimentalWorker) {
|
|
50
45
|
const numberOfThreads = getNumberOfThreads(routes.length);
|
|
46
|
+
logger.info(`Rendering pages with experimental SSG worker (${picocolors_default().yellow(numberOfThreads)} threads)...`);
|
|
51
47
|
const Tinypool = await import("../../0~tinypool.js").then((m)=>m.default);
|
|
52
48
|
const pool = new Tinypool({
|
|
53
49
|
filename: new URL('./renderPageWorker.js', import.meta.url).href,
|
|
@@ -63,7 +59,8 @@ async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, em
|
|
|
63
59
|
params: {
|
|
64
60
|
htmlTemplate,
|
|
65
61
|
head: config.head,
|
|
66
|
-
ssrBundlePath
|
|
62
|
+
ssrBundlePath,
|
|
63
|
+
distPath: workerOutputDistPath
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
});
|
|
@@ -71,6 +68,7 @@ async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, em
|
|
|
71
68
|
const htmlList = await pool.run({
|
|
72
69
|
routes
|
|
73
70
|
});
|
|
71
|
+
if (workerOutputDistPath) return;
|
|
74
72
|
for(let i = 0; i < routes.length; i++){
|
|
75
73
|
const route = routes[i];
|
|
76
74
|
const html = htmlList[i];
|
|
@@ -79,13 +77,16 @@ async function renderPages(routeService, config, ssrBundlePath, htmlTemplate, em
|
|
|
79
77
|
}
|
|
80
78
|
}));
|
|
81
79
|
await pool.destroy();
|
|
82
|
-
} else
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
} else {
|
|
81
|
+
logger.info('Rendering pages...');
|
|
82
|
+
await pMap(routes, async (route)=>{
|
|
83
|
+
const html = await renderPage(route, htmlTemplate, config.head, ssrBundlePath);
|
|
84
|
+
const fileName = routePath2HtmlFileName(route.routePath);
|
|
85
|
+
emitAsset(fileName, html);
|
|
86
|
+
}, {
|
|
87
|
+
concurrency: SSGConcurrency()
|
|
88
|
+
});
|
|
89
|
+
}
|
|
89
90
|
const totalTime = Date.now() - startTime;
|
|
90
91
|
logger.success(`Pages rendered in ${picocolors_default().yellow(totalTime)} ms.`);
|
|
91
92
|
} catch (e) {
|
|
@@ -14,7 +14,8 @@ const rsbuildPluginCSR = ({ routeService, config })=>({
|
|
|
14
14
|
compilation.emitAsset(assetName, new compiler.webpack.sources.RawSource(content));
|
|
15
15
|
};
|
|
16
16
|
let htmlTemplate = '';
|
|
17
|
-
for (const
|
|
17
|
+
for (const assetName of Object.keys(assets))if ('index.html' === assetName) {
|
|
18
|
+
const assetSource = assets[assetName];
|
|
18
19
|
htmlTemplate = assetSource.source().toString();
|
|
19
20
|
compilation.deleteAsset(assetName);
|
|
20
21
|
break;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logger, writeFile, mkdir, rm, join, isDebugMode } from "../../
|
|
1
|
+
import { logger, writeFile, mkdir, rm, join, isDebugMode } from "../../6010.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 })=>({
|
|
@@ -31,7 +31,8 @@ const rsbuildPluginSSG = ({ routeService, config })=>({
|
|
|
31
31
|
resolveOnce();
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
for (const
|
|
34
|
+
for (const assetName of Object.keys(assets))if ('index.html' === assetName) {
|
|
35
|
+
const assetSource = assets[assetName];
|
|
35
36
|
htmlTemplate = assetSource.source().toString();
|
|
36
37
|
compilation.deleteAsset(assetName);
|
|
37
38
|
resolveOnce();
|
|
@@ -64,8 +65,9 @@ const rsbuildPluginSSG = ({ routeService, config })=>({
|
|
|
64
65
|
await mkdir(ssgFolderPath, {
|
|
65
66
|
recursive: true
|
|
66
67
|
});
|
|
67
|
-
await Promise.all(Object.
|
|
68
|
+
await Promise.all(Object.keys(assets).map(async (assetName)=>{
|
|
68
69
|
if (assetName.startsWith(`${NODE_SSG_BUNDLE_FOLDER}/`)) {
|
|
70
|
+
const assetSource = assets[assetName];
|
|
69
71
|
const fileAbsolutePath = join(distPath, assetName);
|
|
70
72
|
await writeFile(fileAbsolutePath, assetSource.source().toString());
|
|
71
73
|
compilation.deleteAsset(assetName);
|
|
@@ -73,7 +75,7 @@ const rsbuildPluginSSG = ({ routeService, config })=>({
|
|
|
73
75
|
}));
|
|
74
76
|
await indexHtmlEmittedInWeb;
|
|
75
77
|
if (hasError) return;
|
|
76
|
-
await renderPages(routeService, config, mainCjsAbsolutePath, htmlTemplate, emitAsset);
|
|
78
|
+
await renderPages(routeService, config, mainCjsAbsolutePath, htmlTemplate, emitAsset, distPath);
|
|
77
79
|
if (!isDebugMode()) await rm(ssgFolderPath, {
|
|
78
80
|
recursive: true
|
|
79
81
|
});
|
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 "../../6010.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 "../../../6010.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, logger, withBase } from "../../../
|
|
1
|
+
import { normalizeHref, logger, withBase } from "../../../6010.js";
|
|
2
2
|
import { extractInfoFromFrontmatterWithAbsolutePath } from "../../auto-nav-sidebar/utils.js";
|
|
3
3
|
function routePathToMdPath(routePath, base) {
|
|
4
4
|
let url = routePath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../../0~rslib-runtime.js";
|
|
2
2
|
import "../../7986.js";
|
|
3
|
-
import { createHead, pathToFileURL, logger } from "../../
|
|
3
|
+
import { createHead, pathToFileURL, logger } from "../../6010.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
1
|
import { __webpack_require__ } from "../../0~rslib-runtime.js";
|
|
2
2
|
import "../../7986.js";
|
|
3
|
-
import { logger } from "../../
|
|
4
|
-
import { pMap } from "../../
|
|
3
|
+
import { logger } from "../../6010.js";
|
|
4
|
+
import { pMap } from "../../9958.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 "../../6010.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";
|
|
@@ -27,8 +27,9 @@ const rsbuildPluginSSGMD = ({ routeService, config })=>({
|
|
|
27
27
|
await mkdir(ssgFolderPath, {
|
|
28
28
|
recursive: true
|
|
29
29
|
});
|
|
30
|
-
await Promise.all(Object.
|
|
30
|
+
await Promise.all(Object.keys(assets).map(async (assetName)=>{
|
|
31
31
|
if (assetName.startsWith(`${NODE_SSG_MD_BUNDLE_FOLDER}/`)) {
|
|
32
|
+
const assetSource = assets[assetName];
|
|
32
33
|
const fileAbsolutePath = join(distPath, assetName);
|
|
33
34
|
await writeFile(fileAbsolutePath, assetSource.source().toString());
|
|
34
35
|
compilation.deleteAsset(assetName);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHash as external_node_crypto_createHash } from "../../
|
|
1
|
+
import { createHash as external_node_crypto_createHash } from "../../6010.js";
|
|
2
2
|
function createHash(str) {
|
|
3
3
|
return external_node_crypto_createHash('sha256').update(str).digest('hex').slice(0, 8);
|
|
4
4
|
}
|
|
@@ -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 "../../6010.js";
|
|
2
2
|
import { createError } from "./error.js";
|
|
3
3
|
import { importStatementRegex } from "../constants.js";
|
|
4
4
|
const RspackResolveFactory = core_rspack.experiments.resolver.ResolverFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __webpack_require__ } from "../../0~rslib-runtime.js";
|
|
2
2
|
import "../../7986.js";
|
|
3
|
-
import { node_path, core_rspack, logger } from "../../
|
|
3
|
+
import { node_path, core_rspack, logger } from "../../6010.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.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function App(): React.JSX.Element;
|
package/dist/runtime/NoSSR.d.ts
CHANGED
|
@@ -40,4 +40,4 @@ export interface BadgeProps {
|
|
|
40
40
|
* <Badge text="Experimental" type="warning" outline />
|
|
41
41
|
* <Badge text="Deprecated" type="danger" />
|
|
42
42
|
*/
|
|
43
|
-
export declare function Badge({ children, type, text, outline, }: BadgeProps): import("react
|
|
43
|
+
export declare function Badge({ children, type, text, outline, }: BadgeProps): import("react").JSX.Element;
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
color: #fff;
|
|
7
7
|
z-index: 999;
|
|
8
8
|
background: var(--rp-banner-background);
|
|
9
|
+
box-sizing: border-box;
|
|
9
10
|
justify-content: center;
|
|
10
11
|
align-items: center;
|
|
11
12
|
height: 36px;
|
|
13
|
+
padding: 0 3.5rem;
|
|
12
14
|
display: flex;
|
|
13
15
|
position: sticky;
|
|
14
16
|
top: 0;
|
|
@@ -17,8 +19,17 @@
|
|
|
17
19
|
|
|
18
20
|
.rp-banner__link {
|
|
19
21
|
color: #fff;
|
|
22
|
+
text-align: center;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
flex: auto;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
max-width: 100%;
|
|
20
28
|
font-weight: 700;
|
|
29
|
+
line-height: 36px;
|
|
21
30
|
text-decoration: none;
|
|
31
|
+
display: block;
|
|
32
|
+
overflow: hidden;
|
|
22
33
|
}
|
|
23
34
|
|
|
24
35
|
.rp-banner__link:hover {
|
|
@@ -56,4 +56,4 @@ export type CodeBlockProps = {
|
|
|
56
56
|
*</div>
|
|
57
57
|
*```
|
|
58
58
|
*/
|
|
59
|
-
export declare function CodeBlock({ containerElementClassName, title, lang, wrapCode: wrapCodeProp, lineNumbers: lineNumbersProp, fold, height, codeButtonGroupProps, children, }: CodeBlockProps): import("react
|
|
59
|
+
export declare function CodeBlock({ containerElementClassName, title, lang, wrapCode: wrapCodeProp, lineNumbers: lineNumbersProp, fold, height, codeButtonGroupProps, children, }: CodeBlockProps): import("react").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export declare const useCodeButtonGroup: (initialWrapCode?: boolean) => {
|
|
|
17
17
|
wrapCode: boolean;
|
|
18
18
|
toggleWrapCode: () => void;
|
|
19
19
|
};
|
|
20
|
-
export declare function CodeButtonGroup({ wrapCode, toggleWrapCode, copyElementRef, showWrapCodeButton, showCopyButton, }: CodeButtonGroupProps): import("react
|
|
20
|
+
export declare function CodeButtonGroup({ wrapCode, toggleWrapCode, copyElementRef, showWrapCodeButton, showCopyButton, }: CodeButtonGroupProps): import("react").JSX.Element;
|
|
@@ -225,12 +225,12 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.rp-doc :not(:where(.rp-not-doc, .rp-not-doc *)):where(a > code) {
|
|
228
|
-
color: var(--rp-c-
|
|
228
|
+
color: var(--rp-c-link);
|
|
229
229
|
transition: color .25s;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.rp-doc :not(:where(.rp-not-doc, .rp-not-doc *)):where(a:hover > code) {
|
|
233
|
-
color: var(--rp-c-
|
|
233
|
+
color: var(--rp-c-link);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.rp-doc :not(:where(.rp-not-doc, .rp-not-doc *)):where(details) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare const A: (props: ComponentProps<'a'>) => import("react
|
|
2
|
+
export declare const A: (props: ComponentProps<'a'>) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export declare function Code(props: React.HTMLProps<HTMLElement>):
|
|
2
|
+
export declare function Code(props: React.HTMLProps<HTMLElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare const Hr: (props: ComponentProps<'hr'>) => import("react
|
|
2
|
+
export declare const Hr: (props: ComponentProps<'hr'>) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare const Img: (props: ComponentProps<'img'>) => import("react
|
|
2
|
+
export declare const Img: (props: ComponentProps<'img'>) => import("react").JSX.Element;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Code } from './code.js';
|
|
2
2
|
import { ShikiPre } from './pre.js';
|
|
3
3
|
export declare function getCustomMDXComponent(): {
|
|
4
|
-
h1: (props: React.ComponentProps<'h1'>) => import("react
|
|
5
|
-
h2: (props: React.ComponentProps<'h2'>) => import("react
|
|
6
|
-
h3: (props: React.ComponentProps<'h3'>) => import("react
|
|
7
|
-
h4: (props: React.ComponentProps<'h4'>) => import("react
|
|
8
|
-
h5: (props: React.ComponentProps<'h5'>) => import("react
|
|
9
|
-
h6: (props: React.ComponentProps<'h6'>) => import("react
|
|
10
|
-
ul: (props: import("react").ComponentProps<'ul'>) => import("react
|
|
11
|
-
ol: (props: import("react").ComponentProps<'ol'>) => import("react
|
|
12
|
-
li: (props: import("react").ComponentProps<'li'>) => import("react
|
|
4
|
+
h1: (props: React.ComponentProps<'h1'>) => import("react").JSX.Element;
|
|
5
|
+
h2: (props: React.ComponentProps<'h2'>) => import("react").JSX.Element;
|
|
6
|
+
h3: (props: React.ComponentProps<'h3'>) => import("react").JSX.Element;
|
|
7
|
+
h4: (props: React.ComponentProps<'h4'>) => import("react").JSX.Element;
|
|
8
|
+
h5: (props: React.ComponentProps<'h5'>) => import("react").JSX.Element;
|
|
9
|
+
h6: (props: React.ComponentProps<'h6'>) => import("react").JSX.Element;
|
|
10
|
+
ul: (props: import("react").ComponentProps<'ul'>) => import("react").JSX.Element;
|
|
11
|
+
ol: (props: import("react").ComponentProps<'ol'>) => import("react").JSX.Element;
|
|
12
|
+
li: (props: import("react").ComponentProps<'li'>) => import("react").JSX.Element;
|
|
13
13
|
table: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
14
|
-
td: (props: import("react").ComponentProps<'td'>) => import("react
|
|
15
|
-
th: (props: import("react").ComponentProps<'th'>) => import("react
|
|
16
|
-
tr: (props: import("react").ComponentProps<'tr'>) => import("react
|
|
17
|
-
hr: (props: import("react").ComponentProps<'hr'>) => import("react
|
|
18
|
-
p: (props: import("react").ComponentProps<'p'>) => import("react
|
|
19
|
-
blockquote: (props: import("react").ComponentProps<'blockquote'>) => import("react
|
|
20
|
-
strong: (props: import("react").ComponentProps<'strong'>) => import("react
|
|
21
|
-
a: (props: import("react").ComponentProps<'a'>) => import("react
|
|
14
|
+
td: (props: import("react").ComponentProps<'td'>) => import("react").JSX.Element;
|
|
15
|
+
th: (props: import("react").ComponentProps<'th'>) => import("react").JSX.Element;
|
|
16
|
+
tr: (props: import("react").ComponentProps<'tr'>) => import("react").JSX.Element;
|
|
17
|
+
hr: (props: import("react").ComponentProps<'hr'>) => import("react").JSX.Element;
|
|
18
|
+
p: (props: import("react").ComponentProps<'p'>) => import("react").JSX.Element;
|
|
19
|
+
blockquote: (props: import("react").ComponentProps<'blockquote'>) => import("react").JSX.Element;
|
|
20
|
+
strong: (props: import("react").ComponentProps<'strong'>) => import("react").JSX.Element;
|
|
21
|
+
a: (props: import("react").ComponentProps<'a'>) => import("react").JSX.Element;
|
|
22
22
|
code: typeof Code;
|
|
23
|
-
img: (props: import("react").ComponentProps<'img'>) => import("react
|
|
23
|
+
img: (props: import("react").ComponentProps<'img'>) => import("react").JSX.Element;
|
|
24
24
|
pre: typeof ShikiPre;
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare const Ol: (props: ComponentProps<'ol'>) => import("react
|
|
3
|
-
export declare const Ul: (props: ComponentProps<'ul'>) => import("react
|
|
4
|
-
export declare const Li: (props: ComponentProps<'li'>) => import("react
|
|
2
|
+
export declare const Ol: (props: ComponentProps<'ol'>) => import("react").JSX.Element;
|
|
3
|
+
export declare const Ul: (props: ComponentProps<'ul'>) => import("react").JSX.Element;
|
|
4
|
+
export declare const Li: (props: ComponentProps<'li'>) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export declare const P: (props: ComponentProps<'p'>) => import("react
|
|
3
|
-
export declare const Blockquote: (props: ComponentProps<'blockquote'>) => import("react
|
|
4
|
-
export declare const Strong: (props: ComponentProps<'strong'>) => import("react
|
|
2
|
+
export declare const P: (props: ComponentProps<'p'>) => import("react").JSX.Element;
|
|
3
|
+
export declare const Blockquote: (props: ComponentProps<'blockquote'>) => import("react").JSX.Element;
|
|
4
|
+
export declare const Strong: (props: ComponentProps<'strong'>) => import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type CodeBlockProps } from '@rspress/core/theme';
|
|
2
2
|
export type ShikiPreProps = CodeBlockProps & React.HTMLAttributes<HTMLPreElement>;
|
|
3
|
-
export declare function ShikiPre({ title, lang, wrapCode, lineNumbers, fold, height, containerElementClassName, codeButtonGroupProps, ...otherProps }: ShikiPreProps): import("react
|
|
3
|
+
export declare function ShikiPre({ title, lang, wrapCode, lineNumbers, fold, height, containerElementClassName, codeButtonGroupProps, ...otherProps }: ShikiPreProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
export declare const Table: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
3
|
-
export declare const Tr: (props: ComponentProps<'tr'>) => import("react
|
|
4
|
-
export declare const Td: (props: ComponentProps<'td'>) => import("react
|
|
5
|
-
export declare const Th: (props: ComponentProps<'th'>) => import("react
|
|
3
|
+
export declare const Tr: (props: ComponentProps<'tr'>) => import("react").JSX.Element;
|
|
4
|
+
export declare const Td: (props: ComponentProps<'td'>) => import("react").JSX.Element;
|
|
5
|
+
export declare const Th: (props: ComponentProps<'th'>) => import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export declare const H1: (props: React.ComponentProps<'h1'>) =>
|
|
3
|
-
export declare const H2: (props: React.ComponentProps<'h2'>) =>
|
|
4
|
-
export declare const H3: (props: React.ComponentProps<'h3'>) =>
|
|
5
|
-
export declare const H4: (props: React.ComponentProps<'h4'>) =>
|
|
6
|
-
export declare const H5: (props: React.ComponentProps<'h5'>) =>
|
|
7
|
-
export declare const H6: (props: React.ComponentProps<'h6'>) =>
|
|
2
|
+
export declare const H1: (props: React.ComponentProps<'h1'>) => React.JSX.Element;
|
|
3
|
+
export declare const H2: (props: React.ComponentProps<'h2'>) => React.JSX.Element;
|
|
4
|
+
export declare const H3: (props: React.ComponentProps<'h3'>) => React.JSX.Element;
|
|
5
|
+
export declare const H4: (props: React.ComponentProps<'h4'>) => React.JSX.Element;
|
|
6
|
+
export declare const H5: (props: React.ComponentProps<'h5'>) => React.JSX.Element;
|
|
7
|
+
export declare const H6: (props: React.ComponentProps<'h6'>) => React.JSX.Element;
|
|
@@ -12,4 +12,4 @@ export declare function DocContent({ components, isOverviewPage, afterDocContent
|
|
|
12
12
|
* Can be used for footers, navigation, or other content at the bottom of the page.
|
|
13
13
|
*/
|
|
14
14
|
afterDocContent?: React.ReactNode;
|
|
15
|
-
}): import("react
|
|
15
|
+
}): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
|
-
export declare function DocFooter(): import("react
|
|
2
|
+
export declare function DocFooter(): import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
|
-
declare function HomeBackground({ className, ...otherProps }: React.HTMLAttributes<HTMLDivElement>): import("react
|
|
2
|
+
declare function HomeBackground({ className, ...otherProps }: React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
3
3
|
export { HomeBackground };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useNavTransparent: () => import("react
|
|
1
|
+
export declare const useNavTransparent: () => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
2
|
+
import { useEffect, useLayoutEffect, useState } from "react";
|
|
3
3
|
const useTopArrived = ()=>{
|
|
4
4
|
const [scrollY, setScrollY] = useState(0);
|
|
5
5
|
const topArrived = scrollY < 100;
|
|
@@ -22,7 +22,7 @@ const useTopArrived = ()=>{
|
|
|
22
22
|
};
|
|
23
23
|
const useNavTransparent = ()=>{
|
|
24
24
|
const { topArrived } = useTopArrived();
|
|
25
|
-
|
|
25
|
+
useLayoutEffect(()=>{
|
|
26
26
|
if (topArrived) document.body.classList.remove('notTopArrived');
|
|
27
27
|
else document.body.classList.add('notTopArrived');
|
|
28
28
|
}, [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
|
-
export declare function HomeFooter(): import("react
|
|
2
|
+
export declare function HomeFooter(): import("react").JSX.Element | null;
|
|
@@ -4,6 +4,6 @@ interface HomeHeroProps {
|
|
|
4
4
|
afterHeroActions?: React.ReactNode;
|
|
5
5
|
image?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare function HomeHero({ beforeHeroActions, afterHeroActions, image, }: HomeHeroProps): import("react
|
|
7
|
+
declare function HomeHero({ beforeHeroActions, afterHeroActions, image, }: HomeHeroProps): import("react").JSX.Element;
|
|
8
8
|
export type { HomeHeroProps };
|
|
9
9
|
export { HomeHero };
|
|
@@ -11,6 +11,6 @@ interface HoverGroupProps {
|
|
|
11
11
|
position?: 'left' | 'center' | 'right';
|
|
12
12
|
activeMatcher?: (item: Items[number]) => boolean;
|
|
13
13
|
}
|
|
14
|
-
declare function HoverGroup({ items, customChildren, isOpen, position, activeMatcher, }: HoverGroupProps): import("react
|
|
14
|
+
declare function HoverGroup({ items, customChildren, isOpen, position, activeMatcher, }: HoverGroupProps): import("react").JSX.Element;
|
|
15
15
|
export type { HoverGroupProps, Items };
|
|
16
16
|
export { HoverGroup };
|
|
@@ -7,7 +7,7 @@ declare function useHoverGroup(props: {
|
|
|
7
7
|
customChildren?: React.ReactNode;
|
|
8
8
|
position?: 'left' | 'center' | 'right';
|
|
9
9
|
}): {
|
|
10
|
-
hoverGroup: import("react
|
|
10
|
+
hoverGroup: import("react").JSX.Element;
|
|
11
11
|
handleMouseEnter: () => void;
|
|
12
12
|
handleMouseLeave: () => void;
|
|
13
13
|
};
|