boltdocs 3.3.4 → 3.3.6
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/{build-COgv-rkY.mjs → build-BJnL-FHG.mjs} +1 -1
- package/dist/{build-1CsvBIsN.cjs → build-CxT38vPv.cjs} +1 -1
- package/dist/client/index.cjs +80 -32
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +78 -31
- package/dist/client/mdx.cjs +1 -1
- package/dist/client/mdx.js +1 -1
- package/dist/client/primitives.cjs +4 -4
- package/dist/client/primitives.d.cts +40 -9
- package/dist/client/primitives.d.ts +40 -9
- package/dist/client/primitives.js +4 -4
- package/dist/config-B3_iVsbi.mjs +7 -0
- package/dist/{config-PLvresCv.cjs → config-BC_qhXws.cjs} +1 -1
- package/dist/config-BJp3lGzE.cjs +7 -0
- package/dist/{dev-C_9iBwmu.cjs → dev-46NiL0MC.cjs} +1 -1
- package/dist/{dev-UWVM3ah-.mjs → dev-C4kjO5xs.mjs} +1 -1
- package/dist/{docs-layout-CbZ7LDRe.js → docs-layout-D3Fmb0Wd.js} +16 -117
- package/dist/{docs-layout-vzfXed1Q.cjs → docs-layout-SgphExoE.cjs} +16 -123
- package/dist/{doctor-DMECtdK6.cjs → doctor-BqxOFRt3.cjs} +1 -1
- package/dist/{doctor-i8Qmd8DJ.mjs → doctor-Cv5lXnay.mjs} +1 -1
- package/dist/{doctor-FuFY1jBz.cjs → doctor-TS3JGNEU.cjs} +1 -1
- package/dist/{image-B-NDSDuY.js → image-BAiDReNd.js} +1 -1
- package/dist/{image-Hnaa2bJd.cjs → image-Bkx85rsq.cjs} +1 -1
- package/dist/{index-Cg3TmXIZ.d.ts → index-B1Mx0dHl.d.ts} +30 -6
- package/dist/{index-CSiMUBhC.d.cts → index-DLaHgD-i.d.cts} +30 -6
- package/dist/{link-vZjmD-es.cjs → link-hLWOsx0x.cjs} +59 -28
- package/dist/{link-CgdI6O2o.js → link-q1qHNGK_.js} +54 -29
- package/dist/{mdx-BRT71V5Q.js → mdx-CJGWzBGy.js} +2 -2
- package/dist/{mdx-D0Absdq5.cjs → mdx-Qi0DmaY8.cjs} +2 -2
- package/dist/node/cli-entry.cjs +1 -1
- package/dist/node/cli-entry.mjs +1 -1
- package/dist/node/highlight.d.cts +2 -2
- package/dist/node/highlight.d.mts +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +7 -4
- package/dist/node/index.d.mts +7 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/mdx/shiki-adapter.cjs +1 -1
- package/dist/node/mdx/shiki-adapter.d.cts +7 -2
- package/dist/node/mdx/shiki-adapter.d.mts +7 -2
- package/dist/node/mdx/shiki-adapter.mjs +1 -1
- package/dist/node-7Cfw6nMr.cjs +23 -0
- package/dist/node-CT2E84nY.mjs +23 -0
- package/dist/{package-Cwma8oO7.cjs → package-Bah2tHjK.cjs} +1 -1
- package/dist/{package-CKC-4LtU.mjs → package-D6bf68FR.mjs} +1 -1
- package/dist/plugin-AgNI3ktz.cjs +69 -0
- package/dist/plugin-BAv_pYLt.mjs +69 -0
- package/dist/{plugin-context-BxF88sW4.cjs → plugin-context-BZs5lvDu.cjs} +3 -3
- package/dist/{plugin-context-BKK-nfOd.mjs → plugin-context-b5qVVQSU.mjs} +2 -2
- package/dist/{plugin-lifecycle-BjMclfc3.cjs → plugin-lifecycle-s89gzTlh.cjs} +1 -1
- package/dist/{registry-BbB6NqSv.d.cts → registry-B8pt41zj.d.cts} +1 -1
- package/dist/{registry-sJqDv0kE.d.mts → registry-BrrH2X9c.d.mts} +1 -1
- package/dist/routes-CzhKOw67.cjs +6 -0
- package/dist/{routes-C3_w9fLX.cjs → routes-Dq_2EUIB.cjs} +1 -1
- package/dist/routes-Dw6g0bfF.mjs +6 -0
- package/dist/search-dialog-BYZS9aeO.cjs +747 -0
- package/dist/{search-dialog-x_qHU8ty.cjs → search-dialog-CguKVtUu.cjs} +145 -5
- package/dist/{search-dialog-MmwxFMmE.js → search-dialog-DQwod5Xc.js} +1 -1
- package/dist/search-dialog-DzObE-Ar.js +717 -0
- package/dist/{search-dialog-DmirOMPg.cjs → search-dialog-QgKRRbsI.cjs} +1 -1
- package/dist/{search-dialog-BqkzDTq2.js → search-dialog-mYnqU4v7.js} +134 -6
- package/dist/{types-Db6zToZH.d.mts → types-74i_xUe2.d.mts} +1 -1
- package/dist/{types-o7iZ2BAR.d.cts → types-X_Pwk8Cg.d.cts} +1 -1
- package/dist/virtual-modules-C3S3Nz8r.cjs +40 -0
- package/dist/virtual-modules-CaxqrFd6.mjs +40 -0
- package/package.json +4 -3
- package/dist/config-CrsQJHQz.cjs +0 -7
- package/dist/config-DC0nMMk7.mjs +0 -7
- package/dist/node-C3HctGaH.cjs +0 -23
- package/dist/node-CUiheODn.mjs +0 -23
- package/dist/plugin-BX6TXR8x.cjs +0 -69
- package/dist/plugin-C8UMIA-4.mjs +0 -69
- package/dist/routes-C0kb4ue6.cjs +0 -6
- package/dist/routes-C4wrLWwu.mjs +0 -6
- package/dist/search-dialog-D3jtaw6w.cjs +0 -525
- package/dist/search-dialog-DRiXejws.js +0 -501
- package/dist/virtual-modules-XBiJoTsp.mjs +0 -39
- package/dist/virtual-modules-hndVivLR.cjs +0 -39
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{d as e,n as t}from"./node-CT2E84nY.mjs";import{flushCache as n}from"./node/cache.mjs";import{a as r,c as i,t as a}from"./update-check-BXD1atVv.mjs";import o from"node:path";import s from"node:fs";import{error as c}from"@bdocs/dui";import{preview as l}from"vite";const u=new Set([`Client build`,`Server build`,`Render pages`,`Static loader data`,`Build metrics`]);function d(e,t){let n=o.join(e,`.boltdocs`,`benchmarks`);s.existsSync(n)||s.mkdirSync(n,{recursive:!0});let r=o.join(n,`phases-report-${new Date().toISOString().replace(/[:.]/g,`-`).slice(0,19)}.json`),i={timestamp:new Date().toISOString(),root:e,...t,error:t.error?.message||t.error?.toString()};return s.writeFileSync(r,JSON.stringify(i,null,2)),r}async function f(t=process.cwd(),i={}){process.env.NODE_ENV=`production`,a();let o=process.env.BOLTDOCS_BENCHMARK_PHASES===`true`;try{let i=await e().run({root:t,timing:{}});if(o&&console.log(`[boltdocs] ${JSON.stringify({name:`Build pipeline`,success:i.success,steps:i.stepResults.map(e=>({name:e.name,duration:Math.round(e.duration),success:e.success,...e.details?{details:e.details}:{}}))})}`),!i.success){if(c(`Build failed at step "${i.failedStep}":`,i.error),o){let e=d(t,i);console.log(`[benchmark] failure report written to ${e}`)}await n(),process.exit(1)}if(o){let e=d(t,i);console.log(`[benchmark] phase report written to ${e}`),await n(),process.exit(0)}let a=i.stepResults.filter(e=>!u.has(e.name)),s=i.stepResults.find(e=>e.name===`Build metrics`)?.metrics,l=e=>(e/1024).toFixed(0),f=e=>(e/1024/1024).toFixed(1),p=e=>e>1024*1024?`${f(e)} MB`:`${l(e)} kB`;console.log(r({totalMs:i.timing.total,steps:a.map(e=>({name:e.name,success:e.success,duration:e.duration,details:e.details})),pages:s?.totalPages,jsSize:typeof s?.jsSize==`number`?p(s.jsSize):void 0,cssSize:typeof s?.cssSize==`number`?p(s.cssSize):void 0,outDir:`dist/`})),await n(),process.exit(0)}catch(e){c(`Build failed:`,e),await n(),process.exit(1)}}async function p(e=process.cwd(),n={}){try{let r=await t(e,`production`,void 0,{skipTypes:!0,skipLinkTree:!0});r.logLevel=`warn`,r.clearScreen=!1,n.port!==void 0&&(r.preview=r.preview||{},r.preview.port=Number(n.port)),n.host!==void 0&&(r.preview=r.preview||{},r.preview.host=n.host);let a=performance.now(),o=(await l(r)).resolvedUrls;console.log(i(o?.local?.[0]??`http://localhost:${n.port??4173}`,o?.network?.[0]??null,{readyIn:performance.now()-a}))}catch(e){c(`Failed to start preview server:`,e),process.exit(1)}}export{f as buildAction,p as previewAction};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const e=require(`./chunk-D1Md3oWO.cjs`),t=require(`./node-
|
|
6
|
+
const e=require(`./chunk-D1Md3oWO.cjs`),t=require(`./node-7Cfw6nMr.cjs`),n=require(`./node/cache.cjs`),r=require(`./update-check-DFQZyoSU.cjs`);let i=require(`node:path`);i=e.r(i);let a=require(`node:fs`);a=e.r(a);let o=require(`@bdocs/dui`),s=require(`vite`);const c=new Set([`Client build`,`Server build`,`Render pages`,`Static loader data`,`Build metrics`]);function l(e,t){let n=i.default.join(e,`.boltdocs`,`benchmarks`);a.default.existsSync(n)||a.default.mkdirSync(n,{recursive:!0});let r=i.default.join(n,`phases-report-${new Date().toISOString().replace(/[:.]/g,`-`).slice(0,19)}.json`),o={timestamp:new Date().toISOString(),root:e,...t,error:t.error?.message||t.error?.toString()};return a.default.writeFileSync(r,JSON.stringify(o,null,2)),r}async function u(e=process.cwd(),i={}){process.env.NODE_ENV=`production`,r.t();let a=process.env.BOLTDOCS_BENCHMARK_PHASES===`true`;try{let i=await t.u().run({root:e,timing:{}});if(a&&console.log(`[boltdocs] ${JSON.stringify({name:`Build pipeline`,success:i.success,steps:i.stepResults.map(e=>({name:e.name,duration:Math.round(e.duration),success:e.success,...e.details?{details:e.details}:{}}))})}`),!i.success){if((0,o.error)(`Build failed at step "${i.failedStep}":`,i.error),a){let t=l(e,i);console.log(`[benchmark] failure report written to ${t}`)}await n.flushCache(),process.exit(1)}if(a){let t=l(e,i);console.log(`[benchmark] phase report written to ${t}`),await n.flushCache(),process.exit(0)}let s=i.stepResults.filter(e=>!c.has(e.name)),u=i.stepResults.find(e=>e.name===`Build metrics`)?.metrics,d=e=>(e/1024).toFixed(0),f=e=>(e/1024/1024).toFixed(1),p=e=>e>1024*1024?`${f(e)} MB`:`${d(e)} kB`;console.log(r.a({totalMs:i.timing.total,steps:s.map(e=>({name:e.name,success:e.success,duration:e.duration,details:e.details})),pages:u?.totalPages,jsSize:typeof u?.jsSize==`number`?p(u.jsSize):void 0,cssSize:typeof u?.cssSize==`number`?p(u.cssSize):void 0,outDir:`dist/`})),await n.flushCache(),process.exit(0)}catch(e){(0,o.error)(`Build failed:`,e),await n.flushCache(),process.exit(1)}}async function d(e=process.cwd(),n={}){try{let i=await t.n(e,`production`,void 0,{skipTypes:!0,skipLinkTree:!0});i.logLevel=`warn`,i.clearScreen=!1,n.port!==void 0&&(i.preview=i.preview||{},i.preview.port=Number(n.port)),n.host!==void 0&&(i.preview=i.preview||{},i.preview.host=n.host);let a=performance.now(),o=(await(0,s.preview)(i)).resolvedUrls;console.log(r.c(o?.local?.[0]??`http://localhost:${n.port??4173}`,o?.network?.[0]??null,{readyIn:performance.now()-a}))}catch(e){(0,o.error)(`Failed to start preview server:`,e),process.exit(1)}}exports.buildAction=u,exports.previewAction=d;
|
package/dist/client/index.cjs
CHANGED
|
@@ -5,17 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
7
7
|
const require_router = require('../router-C3kygdRK.cjs');
|
|
8
|
-
const require_link = require('../link-
|
|
9
|
-
const require_image = require('../image-
|
|
10
|
-
const require_mdx = require('../mdx-
|
|
11
|
-
const require_docs_layout = require('../docs-layout-
|
|
12
|
-
const require_search_dialog = require('../search-dialog-
|
|
13
|
-
const require_search_dialog$1 = require('../search-dialog-
|
|
8
|
+
const require_link = require('../link-hLWOsx0x.cjs');
|
|
9
|
+
const require_image = require('../image-Bkx85rsq.cjs');
|
|
10
|
+
const require_mdx = require('../mdx-Qi0DmaY8.cjs');
|
|
11
|
+
const require_docs_layout = require('../docs-layout-SgphExoE.cjs');
|
|
12
|
+
const require_search_dialog = require('../search-dialog-BYZS9aeO.cjs');
|
|
13
|
+
const require_search_dialog$1 = require('../search-dialog-CguKVtUu.cjs');
|
|
14
14
|
let react = require("react");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
let react_aria_components = require("react-aria-components");
|
|
17
17
|
let react_helmet_async = require("react-helmet-async");
|
|
18
18
|
react_helmet_async = require_router.__toESM(react_helmet_async);
|
|
19
|
+
let virtual_boltdocs_client_registry = require("virtual:boltdocs-client-registry");
|
|
20
|
+
virtual_boltdocs_client_registry = require_router.__toESM(virtual_boltdocs_client_registry);
|
|
19
21
|
let virtual_boltdocs_mdx_components = require("virtual:boltdocs-mdx-components");
|
|
20
22
|
virtual_boltdocs_mdx_components = require_router.__toESM(virtual_boltdocs_mdx_components);
|
|
21
23
|
let virtual_boltdocs_page_source = require("virtual:boltdocs-page-source");
|
|
@@ -455,6 +457,20 @@ function useCurrentPostData() {
|
|
|
455
457
|
return (0, react.use)(CurrentPostContext);
|
|
456
458
|
}
|
|
457
459
|
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/client/components/plugin-floating-slots.tsx
|
|
462
|
+
const floatingComponents = (virtual_boltdocs_client_registry.default["floating:after"] ?? []).map((entry) => ({
|
|
463
|
+
id: entry.id,
|
|
464
|
+
Component: (0, react.lazy)(entry.load)
|
|
465
|
+
}));
|
|
466
|
+
function PluginFloatingSlots() {
|
|
467
|
+
if (floatingComponents.length === 0) return null;
|
|
468
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
469
|
+
fallback: null,
|
|
470
|
+
children: floatingComponents.map(({ id, Component }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {}, id))
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
|
|
458
474
|
//#endregion
|
|
459
475
|
//#region src/client/ssg/boltdocs-shell.tsx
|
|
460
476
|
/**
|
|
@@ -480,6 +496,27 @@ function I18nUpdater({ config }) {
|
|
|
480
496
|
dir: direction
|
|
481
497
|
} });
|
|
482
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Removes the per-page critical-CSS inline blocks once the app is hydrated.
|
|
501
|
+
*
|
|
502
|
+
* The critters pass inlines one `<style data-zig-critters>` per rendered page.
|
|
503
|
+
* On a full page load the block belongs to the current page and is redundant:
|
|
504
|
+
* the external stylesheet ships in the initial HTML and is loaded before
|
|
505
|
+
* hydration. After a client-side navigation, however, the block left by the
|
|
506
|
+
* *first* page stays in `<head>` and — emitted after the external stylesheet
|
|
507
|
+
* — wins the cascade for every utility it contains, breaking pages reached
|
|
508
|
+
* via SPA that rely on utilities the first page never used (e.g. `xl:flex`
|
|
509
|
+
* hiding the OnThisPage rail for the rest of the session).
|
|
510
|
+
*/
|
|
511
|
+
function CrittersStyleCleanup() {
|
|
512
|
+
(0, react.useEffect)(() => {
|
|
513
|
+
if (typeof document === "undefined") return;
|
|
514
|
+
document.querySelectorAll("style[data-zig-critters]").forEach((el) => {
|
|
515
|
+
el.remove();
|
|
516
|
+
});
|
|
517
|
+
}, []);
|
|
518
|
+
return null;
|
|
519
|
+
}
|
|
483
520
|
function StoreSync({ config, routeMap }) {
|
|
484
521
|
const location = require_router.useLocation();
|
|
485
522
|
const { currentLocale, currentVersion, setLocale, setVersion } = require_link.useBoltdocsContext();
|
|
@@ -548,26 +585,30 @@ function BoltdocsShell({ config, routes, components = {}, collectionsData, conte
|
|
|
548
585
|
value: config,
|
|
549
586
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CollectionsProvider, {
|
|
550
587
|
collectionsData: collectionsData || {},
|
|
551
|
-
children: [
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
588
|
+
children: [
|
|
589
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollHandler, {}),
|
|
590
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CrittersStyleCleanup, {}),
|
|
591
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_link.BoltdocsProvider, {
|
|
592
|
+
initialLocale: initialData.initLocale,
|
|
593
|
+
initialVersion: initialData.initVersion,
|
|
594
|
+
children: [
|
|
595
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoreSync, {
|
|
596
|
+
config,
|
|
597
|
+
routeMap
|
|
598
|
+
}),
|
|
599
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(I18nUpdater, { config }),
|
|
600
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Head, {
|
|
601
|
+
siteTitle: config.theme?.title,
|
|
602
|
+
siteDescription: config.theme?.description,
|
|
603
|
+
routes
|
|
604
|
+
}),
|
|
605
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_search_dialog.InternalErrorBoundary, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
606
|
+
className: require_link.cn("boltdocs-shell-content h-screen overflow-hidden", contentClassName),
|
|
607
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_router.Outlet, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PluginFloatingSlots, {})]
|
|
608
|
+
}) })
|
|
609
|
+
]
|
|
610
|
+
})
|
|
611
|
+
]
|
|
571
612
|
})
|
|
572
613
|
})
|
|
573
614
|
}) }) })
|
|
@@ -1127,6 +1168,7 @@ function Tabs({ tabs, routes, allRoutes, className }) {
|
|
|
1127
1168
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1128
1169
|
className: require_link.cn("mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6 select-none", className),
|
|
1129
1170
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_docs_layout.Tabs.List, {
|
|
1171
|
+
role: "none",
|
|
1130
1172
|
className: "border-none py-0 scrollbar-hide relative flex flex-row items-center overflow-x-auto",
|
|
1131
1173
|
children: [tabs.map((tab, index) => {
|
|
1132
1174
|
const isActive = index === activeIndex;
|
|
@@ -1694,7 +1736,7 @@ function I18nSelector({ className }) {
|
|
|
1694
1736
|
|
|
1695
1737
|
//#endregion
|
|
1696
1738
|
//#region src/client/components/ui-base/navbar.tsx
|
|
1697
|
-
const SearchDialog$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("../search-dialog-
|
|
1739
|
+
const SearchDialog$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("../search-dialog-QgKRRbsI.cjs")).then((m) => ({ default: m.SearchDialog })));
|
|
1698
1740
|
function Navbar({ className }) {
|
|
1699
1741
|
const { links, title, logo, logoProps, github, social, config } = useNavbar();
|
|
1700
1742
|
const { routes, allRoutes, currentRoute, isCollectionPage, currentVersion, currentLocale } = require_search_dialog.useRoutes();
|
|
@@ -2098,7 +2140,7 @@ function Feedback({ className }) {
|
|
|
2098
2140
|
className: "flex flex-col gap-4",
|
|
2099
2141
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2100
2142
|
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",
|
|
2101
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
2143
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
2102
2144
|
className: "text-base font-semibold text-default",
|
|
2103
2145
|
children: "Was this page helpful?"
|
|
2104
2146
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -2621,7 +2663,7 @@ function buildDocRoutes(options) {
|
|
|
2621
2663
|
//#endregion
|
|
2622
2664
|
//#region src/client/ssg/external-page-wrapper.tsx
|
|
2623
2665
|
function ExternalPageWrapper({ children }) {
|
|
2624
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
2666
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("main", {
|
|
2625
2667
|
className: "boltdocs-external-content h-screen overflow-y-auto",
|
|
2626
2668
|
children
|
|
2627
2669
|
});
|
|
@@ -2686,8 +2728,14 @@ function buildExternalRouteRecord(options) {
|
|
|
2686
2728
|
};
|
|
2687
2729
|
const ExternalLayout = externalLayout;
|
|
2688
2730
|
const ExternalComponent = component;
|
|
2689
|
-
if (ExternalComponent)
|
|
2690
|
-
|
|
2731
|
+
if (ExternalComponent) {
|
|
2732
|
+
const LazyExternal = typeof ExternalComponent === "function" && !ExternalComponent.prototype?.render ? (0, react.lazy)(ExternalComponent) : null;
|
|
2733
|
+
if (LazyExternal) record.element = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalPageWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
|
2734
|
+
fallback: null,
|
|
2735
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LazyExternal, {})
|
|
2736
|
+
}) }) });
|
|
2737
|
+
else record.element = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalPageWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalComponent, {}) }) });
|
|
2738
|
+
} else if (mdxLoader) record.lazy = async () => {
|
|
2691
2739
|
const module = await resolveModuleLoader(mdxLoader);
|
|
2692
2740
|
return { Component: function ExternalMdxRoute() {
|
|
2693
2741
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalPageWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalMdxContent, {
|
|
@@ -3483,7 +3531,7 @@ exports.useRecentPosts = useRecentPosts;
|
|
|
3483
3531
|
exports.useRouteData = require_router.useRouteData;
|
|
3484
3532
|
exports.useRoutes = require_search_dialog.useRoutes;
|
|
3485
3533
|
exports.useSearch = require_search_dialog.useSearch;
|
|
3486
|
-
exports.useSearchHighlight =
|
|
3534
|
+
exports.useSearchHighlight = require_search_dialog$1.useSearchHighlight;
|
|
3487
3535
|
exports.useSidebar = require_docs_layout.useSidebar;
|
|
3488
3536
|
exports.useTabs = useTabs;
|
|
3489
3537
|
exports.useTheme = require_image.useTheme;
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
import { $ as LazyRouteResult, A as matchRouteBranch, B as useRouteData, C as stripSiteProtocol, D as normalizeBasename, E as hasBasename, F as useLoaderData, G as MatchesContext, H as LocationProvider, I as useLocation, J as PrefetchContext, K as NavigateContext, L as useMatches, M as resolveRouteBranch, N as Outlet, O as stripBasename, P as OutletContext, Q as CreateRoutesResult, R as useNavigate, S as splitUrlReference, T as addBasename, U as LocationProviderProps, V as LocationContext, W as LocationState, X as RouteDataContext, Y as PrefetchFunction, Z as defaultNavigate, _ as isConfiguredVersion, a as UrlRouteHint, at as RouterOptions, b as parseUrlReference, c as buildUrl, d as getConfiguredVersions, dt as BoltdocsRoutePath, et as LoaderFunction, f as getVersionPrefixSegments, ft as BoltdocsRoutePathWithFallback, g as isConfiguredLocale, h as hasUrlBase, ht as BoltdocsVersion, i as UrlContractConfig, it as RouteRendererProps, j as matchRouteBranchWithParams, k as RouteRenderer, l as classifyUrlPath, lt as BoltdocsLocale, m as hasUriScheme, mt as BoltdocsTypes, n as ParsedUrl, nt as RouteMatch, o as UrlRouteKind, p as getVersionSegments, q as NavigateFunction, r as ResolveUrlOptions, rt as RouteRecord, s as addUrlBase, st as BoltdocsConfig, t as BuildUrlOptions, tt as LoaderFunctionArgs, u as getConfiguredLocales, v as normalizeUrlBase, w as stripUrlBase, x as resolveUrlReference, y as normalizeUrlPath, z as usePrefetch } from "../index-CgWkOCCn.cjs";
|
|
3
|
-
import { A as cn, At as useUI, B as NotFound, Bt as CollectionsData, C as createArticleStructuredData, Ct as usePageNav, D as defineStructuredData, Dt as useSearch, E as createWebSiteStructuredData, Et as useTabs, F as TimelineVariant, Ft as BoltdocsShell, G as Breadcrumbs, Gt as ComponentRoute, H as CopyMarkdown, Ht as BoltdocsTab, I as usePost, It as MdxPage, Jt as OnThisPageProps, K as OnThisPage, Kt as LayoutProps, L as usePosts, Lt as createRoutes, M as TimelineBadgeConfig, Mt as useTheme, N as TimelineItemProps, Nt as useConfig, O as getTranslated, Ot as useSidebar, P as TimelineProps, Pt as ViteReactSSG, R as useRecentPosts, Rt as CollectionPost, S as WebSiteStructuredDataOptions, St as useBreadcrumbs, T as createStructuredData, Tt as useVersion, U as ErrorBoundary, Ut as CollectionListLoaderData, V as SearchDialog, Vt as CurrentPostProvider, W as PageNav, Wt as CollectionPostLoaderData, Xt as SiteConfig, Yt as SidebarProps, Zt as TabsProps, _ as StructuredData, _t as useTrackEvent, a as useExpandable, b as BreadcrumbStructuredDataItem, bt as useLocalizedTo, c as getStarsRepo, d as ViewTransitionHandle, dt as Navbar, f as ViewTransitionOptions, ft as DocsLayoutComponent, g as useViewTransition, gt as useAnalytics, h as startViewTransition, ht as useHeadings, i as UseExpandableOptions, j as Timeline, jt as useMdxComponents, k as resolvePublicAssetUrl, kt as useNavbar, l as copyToClipboard, m as ViewTransitionUpdate, mt as useMergedComponents, n as UseCodeBlockFeedbackOptions, o as useCopyButton, p as ViewTransitionRunner, pt as useFeedback, q as Sidebar, qt as NavbarLink, r as useCodeBlockFeedback, s as useCodeBlock, t as CodeBlockFeedbackPayload, u as reactToText, v as StructuredDataProps, vt as useTrackPageView, w as createBreadcrumbStructuredData, wt as useI18n, x as StructuredDataFactoryOptions, xt as useRoutes, y as ArticleStructuredDataOptions, yt as useSearchHighlight, z as Banner, zt as CollectionsContext } from "../index-
|
|
3
|
+
import { A as cn, At as useUI, B as NotFound, Bt as CollectionsData, C as createArticleStructuredData, Ct as usePageNav, D as defineStructuredData, Dt as useSearch, E as createWebSiteStructuredData, Et as useTabs, F as TimelineVariant, Ft as BoltdocsShell, G as Breadcrumbs, Gt as ComponentRoute, H as CopyMarkdown, Ht as BoltdocsTab, I as usePost, It as MdxPage, Jt as OnThisPageProps, K as OnThisPage, Kt as LayoutProps, L as usePosts, Lt as createRoutes, M as TimelineBadgeConfig, Mt as useTheme, N as TimelineItemProps, Nt as useConfig, O as getTranslated, Ot as useSidebar, P as TimelineProps, Pt as ViteReactSSG, R as useRecentPosts, Rt as CollectionPost, S as WebSiteStructuredDataOptions, St as useBreadcrumbs, T as createStructuredData, Tt as useVersion, U as ErrorBoundary, Ut as CollectionListLoaderData, V as SearchDialog, Vt as CurrentPostProvider, W as PageNav, Wt as CollectionPostLoaderData, Xt as SiteConfig, Yt as SidebarProps, Zt as TabsProps, _ as StructuredData, _t as useTrackEvent, a as useExpandable, b as BreadcrumbStructuredDataItem, bt as useLocalizedTo, c as getStarsRepo, d as ViewTransitionHandle, dt as Navbar, f as ViewTransitionOptions, ft as DocsLayoutComponent, g as useViewTransition, gt as useAnalytics, h as startViewTransition, ht as useHeadings, i as UseExpandableOptions, j as Timeline, jt as useMdxComponents, k as resolvePublicAssetUrl, kt as useNavbar, l as copyToClipboard, m as ViewTransitionUpdate, mt as useMergedComponents, n as UseCodeBlockFeedbackOptions, o as useCopyButton, p as ViewTransitionRunner, pt as useFeedback, q as Sidebar, qt as NavbarLink, r as useCodeBlockFeedback, s as useCodeBlock, t as CodeBlockFeedbackPayload, u as reactToText, v as StructuredDataProps, vt as useTrackPageView, w as createBreadcrumbStructuredData, wt as useI18n, x as StructuredDataFactoryOptions, xt as useRoutes, y as ArticleStructuredDataOptions, yt as useSearchHighlight, z as Banner, zt as CollectionsContext } from "../index-DLaHgD-i.cjs";
|
|
4
4
|
export { ArticleStructuredDataOptions, Banner, BoltdocsConfig, BoltdocsLocale, BoltdocsRoutePath, BoltdocsRoutePathWithFallback, BoltdocsShell, BoltdocsTab, BoltdocsTypes, BoltdocsVersion, BreadcrumbStructuredDataItem, Breadcrumbs, BuildUrlOptions, CodeBlockFeedbackPayload, CollectionListLoaderData, CollectionPost, CollectionPostLoaderData, CollectionsContext, CollectionsData, ComponentRoute, CopyMarkdown, CreateRoutesResult, CurrentPostProvider, DocsLayoutComponent as DocsLayout, ErrorBoundary, LayoutProps, LazyRouteResult, LoaderFunction, LoaderFunctionArgs, LocationContext, LocationProvider, LocationProviderProps, LocationState, MatchesContext, MdxPage, Navbar, NavbarLink, NavigateContext, NavigateFunction, NotFound, OnThisPage, OnThisPageProps, Outlet, OutletContext, PageNav, ParsedUrl, PrefetchContext, PrefetchFunction, ResolveUrlOptions, RouteDataContext, RouteMatch, RouteRecord, RouteRenderer, RouteRendererProps, RouterOptions, SearchDialog, Sidebar, SidebarProps, SiteConfig, StructuredData, StructuredDataFactoryOptions, StructuredDataProps, TabsProps, Timeline, TimelineBadgeConfig, TimelineItemProps, TimelineProps, TimelineVariant, UrlContractConfig, UrlRouteHint, UrlRouteKind, UseCodeBlockFeedbackOptions, UseExpandableOptions, ViewTransitionHandle, ViewTransitionOptions, ViewTransitionRunner, ViewTransitionUpdate, ViteReactSSG, WebSiteStructuredDataOptions, addBasename, addUrlBase, buildUrl, classifyUrlPath, cn, copyToClipboard, createArticleStructuredData, createBreadcrumbStructuredData, createRoutes, createStructuredData, createWebSiteStructuredData, defaultNavigate, defineStructuredData, getConfiguredLocales, getConfiguredVersions, getStarsRepo, getTranslated, getVersionPrefixSegments, getVersionSegments, hasBasename, hasUriScheme, hasUrlBase, isConfiguredLocale, isConfiguredVersion, matchRouteBranch, matchRouteBranchWithParams, normalizeBasename, normalizeUrlBase, normalizeUrlPath, parseUrlReference, reactToText, resolvePublicAssetUrl, resolveRouteBranch, resolveUrlReference, splitUrlReference, startViewTransition, stripBasename, stripSiteProtocol, stripUrlBase, useAnalytics, useBreadcrumbs, useCodeBlock, useCodeBlockFeedback, useConfig, useCopyButton, useExpandable, useFeedback, useHeadings, useI18n, useLoaderData, useLocalizedTo, useLocation, useMatches, useMdxComponents, useMergedComponents, useNavbar, useNavigate, usePageNav, usePost, usePosts, usePrefetch, useRecentPosts, useRouteData, useRoutes, useSearch, useSearchHighlight, useSidebar, useTabs, useTheme, useTrackEvent, useTrackPageView, useUI, useVersion, useViewTransition };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
import { $ as LazyRouteResult, A as matchRouteBranch, B as useRouteData, C as stripSiteProtocol, D as normalizeBasename, E as hasBasename, F as useLoaderData, G as MatchesContext, H as LocationProvider, I as useLocation, J as PrefetchContext, K as NavigateContext, L as useMatches, M as resolveRouteBranch, N as Outlet, O as stripBasename, P as OutletContext, Q as CreateRoutesResult, R as useNavigate, S as splitUrlReference, T as addBasename, U as LocationProviderProps, V as LocationContext, W as LocationState, X as RouteDataContext, Y as PrefetchFunction, Z as defaultNavigate, _ as isConfiguredVersion, a as UrlRouteHint, at as RouterOptions, b as parseUrlReference, c as buildUrl, d as getConfiguredVersions, dt as BoltdocsRoutePath, et as LoaderFunction, f as getVersionPrefixSegments, ft as BoltdocsRoutePathWithFallback, g as isConfiguredLocale, h as hasUrlBase, ht as BoltdocsVersion, i as UrlContractConfig, it as RouteRendererProps, j as matchRouteBranchWithParams, k as RouteRenderer, l as classifyUrlPath, lt as BoltdocsLocale, m as hasUriScheme, mt as BoltdocsTypes, n as ParsedUrl, nt as RouteMatch, o as UrlRouteKind, p as getVersionSegments, q as NavigateFunction, r as ResolveUrlOptions, rt as RouteRecord, s as addUrlBase, st as BoltdocsConfig, t as BuildUrlOptions, tt as LoaderFunctionArgs, u as getConfiguredLocales, v as normalizeUrlBase, w as stripUrlBase, x as resolveUrlReference, y as normalizeUrlPath, z as usePrefetch } from "../index-CuNSD3E2.js";
|
|
3
|
-
import { A as cn, At as useUI, B as NotFound, Bt as CollectionsData, C as createArticleStructuredData, Ct as usePageNav, D as defineStructuredData, Dt as useSearch, E as createWebSiteStructuredData, Et as useTabs, F as TimelineVariant, Ft as BoltdocsShell, G as Breadcrumbs, Gt as ComponentRoute, H as CopyMarkdown, Ht as BoltdocsTab, I as usePost, It as MdxPage, Jt as OnThisPageProps, K as OnThisPage, Kt as LayoutProps, L as usePosts, Lt as createRoutes, M as TimelineBadgeConfig, Mt as useTheme, N as TimelineItemProps, Nt as useConfig, O as getTranslated, Ot as useSidebar, P as TimelineProps, Pt as ViteReactSSG, R as useRecentPosts, Rt as CollectionPost, S as WebSiteStructuredDataOptions, St as useBreadcrumbs, T as createStructuredData, Tt as useVersion, U as ErrorBoundary, Ut as CollectionListLoaderData, V as SearchDialog, Vt as CurrentPostProvider, W as PageNav, Wt as CollectionPostLoaderData, Xt as SiteConfig, Yt as SidebarProps, Zt as TabsProps, _ as StructuredData, _t as useTrackEvent, a as useExpandable, b as BreadcrumbStructuredDataItem, bt as useLocalizedTo, c as getStarsRepo, d as ViewTransitionHandle, dt as Navbar, f as ViewTransitionOptions, ft as DocsLayoutComponent, g as useViewTransition, gt as useAnalytics, h as startViewTransition, ht as useHeadings, i as UseExpandableOptions, j as Timeline, jt as useMdxComponents, k as resolvePublicAssetUrl, kt as useNavbar, l as copyToClipboard, m as ViewTransitionUpdate, mt as useMergedComponents, n as UseCodeBlockFeedbackOptions, o as useCopyButton, p as ViewTransitionRunner, pt as useFeedback, q as Sidebar, qt as NavbarLink, r as useCodeBlockFeedback, s as useCodeBlock, t as CodeBlockFeedbackPayload, u as reactToText, v as StructuredDataProps, vt as useTrackPageView, w as createBreadcrumbStructuredData, wt as useI18n, x as StructuredDataFactoryOptions, xt as useRoutes, y as ArticleStructuredDataOptions, yt as useSearchHighlight, z as Banner, zt as CollectionsContext } from "../index-
|
|
3
|
+
import { A as cn, At as useUI, B as NotFound, Bt as CollectionsData, C as createArticleStructuredData, Ct as usePageNav, D as defineStructuredData, Dt as useSearch, E as createWebSiteStructuredData, Et as useTabs, F as TimelineVariant, Ft as BoltdocsShell, G as Breadcrumbs, Gt as ComponentRoute, H as CopyMarkdown, Ht as BoltdocsTab, I as usePost, It as MdxPage, Jt as OnThisPageProps, K as OnThisPage, Kt as LayoutProps, L as usePosts, Lt as createRoutes, M as TimelineBadgeConfig, Mt as useTheme, N as TimelineItemProps, Nt as useConfig, O as getTranslated, Ot as useSidebar, P as TimelineProps, Pt as ViteReactSSG, R as useRecentPosts, Rt as CollectionPost, S as WebSiteStructuredDataOptions, St as useBreadcrumbs, T as createStructuredData, Tt as useVersion, U as ErrorBoundary, Ut as CollectionListLoaderData, V as SearchDialog, Vt as CurrentPostProvider, W as PageNav, Wt as CollectionPostLoaderData, Xt as SiteConfig, Yt as SidebarProps, Zt as TabsProps, _ as StructuredData, _t as useTrackEvent, a as useExpandable, b as BreadcrumbStructuredDataItem, bt as useLocalizedTo, c as getStarsRepo, d as ViewTransitionHandle, dt as Navbar, f as ViewTransitionOptions, ft as DocsLayoutComponent, g as useViewTransition, gt as useAnalytics, h as startViewTransition, ht as useHeadings, i as UseExpandableOptions, j as Timeline, jt as useMdxComponents, k as resolvePublicAssetUrl, kt as useNavbar, l as copyToClipboard, m as ViewTransitionUpdate, mt as useMergedComponents, n as UseCodeBlockFeedbackOptions, o as useCopyButton, p as ViewTransitionRunner, pt as useFeedback, q as Sidebar, qt as NavbarLink, r as useCodeBlockFeedback, s as useCodeBlock, t as CodeBlockFeedbackPayload, u as reactToText, v as StructuredDataProps, vt as useTrackPageView, w as createBreadcrumbStructuredData, wt as useI18n, x as StructuredDataFactoryOptions, xt as useRoutes, y as ArticleStructuredDataOptions, yt as useSearchHighlight, z as Banner, zt as CollectionsContext } from "../index-B1Mx0dHl.js";
|
|
4
4
|
export { ArticleStructuredDataOptions, Banner, BoltdocsConfig, BoltdocsLocale, BoltdocsRoutePath, BoltdocsRoutePathWithFallback, BoltdocsShell, BoltdocsTab, BoltdocsTypes, BoltdocsVersion, BreadcrumbStructuredDataItem, Breadcrumbs, BuildUrlOptions, CodeBlockFeedbackPayload, CollectionListLoaderData, CollectionPost, CollectionPostLoaderData, CollectionsContext, CollectionsData, ComponentRoute, CopyMarkdown, CreateRoutesResult, CurrentPostProvider, DocsLayoutComponent as DocsLayout, ErrorBoundary, LayoutProps, LazyRouteResult, LoaderFunction, LoaderFunctionArgs, LocationContext, LocationProvider, LocationProviderProps, LocationState, MatchesContext, MdxPage, Navbar, NavbarLink, NavigateContext, NavigateFunction, NotFound, OnThisPage, OnThisPageProps, Outlet, OutletContext, PageNav, ParsedUrl, PrefetchContext, PrefetchFunction, ResolveUrlOptions, RouteDataContext, RouteMatch, RouteRecord, RouteRenderer, RouteRendererProps, RouterOptions, SearchDialog, Sidebar, SidebarProps, SiteConfig, StructuredData, StructuredDataFactoryOptions, StructuredDataProps, TabsProps, Timeline, TimelineBadgeConfig, TimelineItemProps, TimelineProps, TimelineVariant, UrlContractConfig, UrlRouteHint, UrlRouteKind, UseCodeBlockFeedbackOptions, UseExpandableOptions, ViewTransitionHandle, ViewTransitionOptions, ViewTransitionRunner, ViewTransitionUpdate, ViteReactSSG, WebSiteStructuredDataOptions, addBasename, addUrlBase, buildUrl, classifyUrlPath, cn, copyToClipboard, createArticleStructuredData, createBreadcrumbStructuredData, createRoutes, createStructuredData, createWebSiteStructuredData, defaultNavigate, defineStructuredData, getConfiguredLocales, getConfiguredVersions, getStarsRepo, getTranslated, getVersionPrefixSegments, getVersionSegments, hasBasename, hasUriScheme, hasUrlBase, isConfiguredLocale, isConfiguredVersion, matchRouteBranch, matchRouteBranchWithParams, normalizeBasename, normalizeUrlBase, normalizeUrlPath, parseUrlReference, reactToText, resolvePublicAssetUrl, resolveRouteBranch, resolveUrlReference, splitUrlReference, startViewTransition, stripBasename, stripSiteProtocol, stripUrlBase, useAnalytics, useBreadcrumbs, useCodeBlock, useCodeBlockFeedback, useConfig, useCopyButton, useExpandable, useFeedback, useHeadings, useI18n, useLoaderData, useLocalizedTo, useLocation, useMatches, useMdxComponents, useMergedComponents, useNavbar, useNavigate, usePageNav, usePost, usePosts, usePrefetch, useRecentPosts, useRouteData, useRoutes, useSearch, useSearchHighlight, useSidebar, useTabs, useTheme, useTrackEvent, useTrackPageView, useUI, useVersion, useViewTransition };
|
package/dist/client/index.js
CHANGED
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { B as Sun, C as ExternalLink, E as FaceRegular, F as Monitor, G as useConfig, H as X, I as Moon, J as useBoltdocsContext, P as Menu, R as Pencil, T as FaceGood, V as TextAlignStart, W as ConfigContext, _ as ChevronDown, a as useViewTransition, b as CircleHelp, c as RoutesProvider, d as normalizePath, f as resolvePublicAssetUrl, g as Check, h as ArrowLeft, i as startViewTransition, j as Languages, k as Home, o as cn, q as BoltdocsProvider, s as useLocalizedTo, t as Link, v as ChevronLeft, w as FaceBad, x as Copy, y as ChevronRight } from "../link-q1qHNGK_.js";
|
|
7
7
|
import { A as useRouteData, B as normalizeBasename, C as Outlet, D as useMatches, E as useLocation, F as PrefetchContext, I as RouteDataContext, L as defaultNavigate, M as LocationProvider, N as MatchesContext, O as useNavigate, P as NavigateContext, R as addBasename, S as resolveRouteBranch, T as useLoaderData, V as stripBasename, _ as stripSiteProtocol, a as getConfiguredVersions, b as matchRouteBranch, c as hasUriScheme, d as isConfiguredVersion, f as normalizeUrlBase, g as splitUrlReference, h as resolveUrlReference, i as getConfiguredLocales, j as LocationContext, k as usePrefetch, l as hasUrlBase, m as parseUrlReference, n as buildUrl, o as getVersionPrefixSegments, p as normalizeUrlPath, r as classifyUrlPath, s as getVersionSegments, t as addUrlBase, u as isConfiguredLocale, v as stripUrlBase, w as OutletContext, x as matchRouteBranchWithParams, y as RouteRenderer, z as hasBasename } from "../router-CZBxMRAH.js";
|
|
8
|
-
import { _ as useTheme, g as ThemeProvider } from "../image-
|
|
9
|
-
import { a as useCopyButton, i as useExpandable, n as Timeline, o as copyToClipboard, r as useCodeBlockFeedback, t as mdx_components_default } from "../mdx-
|
|
10
|
-
import { A as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { _ as useTheme, g as ThemeProvider } from "../image-BAiDReNd.js";
|
|
9
|
+
import { a as useCopyButton, i as useExpandable, n as Timeline, o as copyToClipboard, r as useCodeBlockFeedback, t as mdx_components_default } from "../mdx-CJGWzBGy.js";
|
|
10
|
+
import { A as useUI, C as resolveIcon, D as ButtonGroup, O as Breadcrumbs$2, S as IconRenderer, T as Menu$1, f as PageNav$1, k as UIProvider, m as OnThisPage$1, n as Sidebar$1, t as DocsLayout$1, w as Tabs$1, x as useSidebar } from "../docs-layout-D3Fmb0Wd.js";
|
|
11
|
+
import { a as useRoutes, i as InternalErrorBoundary, r as useSearch, t as SearchDialog } from "../search-dialog-DzObE-Ar.js";
|
|
12
|
+
import { a as Github, c as Button$1, i as Navbar$1, o as ErrorBoundary$1, r as useSearchHighlight } from "../search-dialog-mYnqU4v7.js";
|
|
13
13
|
import { ViteReactSSG } from "@bdocs/ssg";
|
|
14
14
|
import { Suspense, createContext, isValidElement, lazy, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { Button } from "react-aria-components";
|
|
17
17
|
import * as ReactHelmetAsync from "react-helmet-async";
|
|
18
|
+
import pluginSlots from "virtual:boltdocs-client-registry";
|
|
18
19
|
import virtualCustomComponents from "virtual:boltdocs-mdx-components";
|
|
19
20
|
import fetchPageSource from "virtual:boltdocs-page-source";
|
|
20
21
|
import UserLayout from "virtual:boltdocs-layout";
|
|
@@ -450,6 +451,20 @@ function useCurrentPostData() {
|
|
|
450
451
|
return use(CurrentPostContext);
|
|
451
452
|
}
|
|
452
453
|
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region src/client/components/plugin-floating-slots.tsx
|
|
456
|
+
const floatingComponents = (pluginSlots["floating:after"] ?? []).map((entry) => ({
|
|
457
|
+
id: entry.id,
|
|
458
|
+
Component: lazy(entry.load)
|
|
459
|
+
}));
|
|
460
|
+
function PluginFloatingSlots() {
|
|
461
|
+
if (floatingComponents.length === 0) return null;
|
|
462
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
463
|
+
fallback: null,
|
|
464
|
+
children: floatingComponents.map(({ id, Component }) => /* @__PURE__ */ jsx(Component, {}, id))
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
|
|
453
468
|
//#endregion
|
|
454
469
|
//#region src/client/ssg/boltdocs-shell.tsx
|
|
455
470
|
/**
|
|
@@ -475,6 +490,27 @@ function I18nUpdater({ config }) {
|
|
|
475
490
|
dir: direction
|
|
476
491
|
} });
|
|
477
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* Removes the per-page critical-CSS inline blocks once the app is hydrated.
|
|
495
|
+
*
|
|
496
|
+
* The critters pass inlines one `<style data-zig-critters>` per rendered page.
|
|
497
|
+
* On a full page load the block belongs to the current page and is redundant:
|
|
498
|
+
* the external stylesheet ships in the initial HTML and is loaded before
|
|
499
|
+
* hydration. After a client-side navigation, however, the block left by the
|
|
500
|
+
* *first* page stays in `<head>` and — emitted after the external stylesheet
|
|
501
|
+
* — wins the cascade for every utility it contains, breaking pages reached
|
|
502
|
+
* via SPA that rely on utilities the first page never used (e.g. `xl:flex`
|
|
503
|
+
* hiding the OnThisPage rail for the rest of the session).
|
|
504
|
+
*/
|
|
505
|
+
function CrittersStyleCleanup() {
|
|
506
|
+
useEffect(() => {
|
|
507
|
+
if (typeof document === "undefined") return;
|
|
508
|
+
document.querySelectorAll("style[data-zig-critters]").forEach((el) => {
|
|
509
|
+
el.remove();
|
|
510
|
+
});
|
|
511
|
+
}, []);
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
478
514
|
function StoreSync({ config, routeMap }) {
|
|
479
515
|
const location = useLocation();
|
|
480
516
|
const { currentLocale, currentVersion, setLocale, setVersion } = useBoltdocsContext();
|
|
@@ -543,26 +579,30 @@ function BoltdocsShell({ config, routes, components = {}, collectionsData, conte
|
|
|
543
579
|
value: config,
|
|
544
580
|
children: /* @__PURE__ */ jsxs(CollectionsProvider, {
|
|
545
581
|
collectionsData: collectionsData || {},
|
|
546
|
-
children: [
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
582
|
+
children: [
|
|
583
|
+
/* @__PURE__ */ jsx(ScrollHandler, {}),
|
|
584
|
+
/* @__PURE__ */ jsx(CrittersStyleCleanup, {}),
|
|
585
|
+
/* @__PURE__ */ jsxs(BoltdocsProvider, {
|
|
586
|
+
initialLocale: initialData.initLocale,
|
|
587
|
+
initialVersion: initialData.initVersion,
|
|
588
|
+
children: [
|
|
589
|
+
/* @__PURE__ */ jsx(StoreSync, {
|
|
590
|
+
config,
|
|
591
|
+
routeMap
|
|
592
|
+
}),
|
|
593
|
+
/* @__PURE__ */ jsx(I18nUpdater, { config }),
|
|
594
|
+
/* @__PURE__ */ jsx(Head, {
|
|
595
|
+
siteTitle: config.theme?.title,
|
|
596
|
+
siteDescription: config.theme?.description,
|
|
597
|
+
routes
|
|
598
|
+
}),
|
|
599
|
+
/* @__PURE__ */ jsx(InternalErrorBoundary, { children: /* @__PURE__ */ jsxs("div", {
|
|
600
|
+
className: cn("boltdocs-shell-content h-screen overflow-hidden", contentClassName),
|
|
601
|
+
children: [/* @__PURE__ */ jsx(Outlet, {}), /* @__PURE__ */ jsx(PluginFloatingSlots, {})]
|
|
602
|
+
}) })
|
|
603
|
+
]
|
|
604
|
+
})
|
|
605
|
+
]
|
|
566
606
|
})
|
|
567
607
|
})
|
|
568
608
|
}) }) })
|
|
@@ -1122,6 +1162,7 @@ function Tabs({ tabs, routes, allRoutes, className }) {
|
|
|
1122
1162
|
return /* @__PURE__ */ jsx("div", {
|
|
1123
1163
|
className: cn("mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6 select-none", className),
|
|
1124
1164
|
children: /* @__PURE__ */ jsxs(Tabs$1.List, {
|
|
1165
|
+
role: "none",
|
|
1125
1166
|
className: "border-none py-0 scrollbar-hide relative flex flex-row items-center overflow-x-auto",
|
|
1126
1167
|
children: [tabs.map((tab, index) => {
|
|
1127
1168
|
const isActive = index === activeIndex;
|
|
@@ -1689,7 +1730,7 @@ function I18nSelector({ className }) {
|
|
|
1689
1730
|
|
|
1690
1731
|
//#endregion
|
|
1691
1732
|
//#region src/client/components/ui-base/navbar.tsx
|
|
1692
|
-
const SearchDialog$1 = lazy(() => import("../search-dialog-
|
|
1733
|
+
const SearchDialog$1 = lazy(() => import("../search-dialog-DQwod5Xc.js").then((m) => ({ default: m.SearchDialog })));
|
|
1693
1734
|
function Navbar({ className }) {
|
|
1694
1735
|
const { links, title, logo, logoProps, github, social, config } = useNavbar();
|
|
1695
1736
|
const { routes, allRoutes, currentRoute, isCollectionPage, currentVersion, currentLocale } = useRoutes();
|
|
@@ -2093,7 +2134,7 @@ function Feedback({ className }) {
|
|
|
2093
2134
|
className: "flex flex-col gap-4",
|
|
2094
2135
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2095
2136
|
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",
|
|
2096
|
-
children: [/* @__PURE__ */ jsx("
|
|
2137
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
2097
2138
|
className: "text-base font-semibold text-default",
|
|
2098
2139
|
children: "Was this page helpful?"
|
|
2099
2140
|
}), /* @__PURE__ */ jsxs("div", {
|
|
@@ -2616,7 +2657,7 @@ function buildDocRoutes(options) {
|
|
|
2616
2657
|
//#endregion
|
|
2617
2658
|
//#region src/client/ssg/external-page-wrapper.tsx
|
|
2618
2659
|
function ExternalPageWrapper({ children }) {
|
|
2619
|
-
return /* @__PURE__ */ jsx("
|
|
2660
|
+
return /* @__PURE__ */ jsx("main", {
|
|
2620
2661
|
className: "boltdocs-external-content h-screen overflow-y-auto",
|
|
2621
2662
|
children
|
|
2622
2663
|
});
|
|
@@ -2681,8 +2722,14 @@ function buildExternalRouteRecord(options) {
|
|
|
2681
2722
|
};
|
|
2682
2723
|
const ExternalLayout = externalLayout;
|
|
2683
2724
|
const ExternalComponent = component;
|
|
2684
|
-
if (ExternalComponent)
|
|
2685
|
-
|
|
2725
|
+
if (ExternalComponent) {
|
|
2726
|
+
const LazyExternal = typeof ExternalComponent === "function" && !ExternalComponent.prototype?.render ? lazy(ExternalComponent) : null;
|
|
2727
|
+
if (LazyExternal) record.element = /* @__PURE__ */ jsx(ExternalPageWrapper, { children: /* @__PURE__ */ jsx(ExternalLayout, { children: /* @__PURE__ */ jsx(Suspense, {
|
|
2728
|
+
fallback: null,
|
|
2729
|
+
children: /* @__PURE__ */ jsx(LazyExternal, {})
|
|
2730
|
+
}) }) });
|
|
2731
|
+
else record.element = /* @__PURE__ */ jsx(ExternalPageWrapper, { children: /* @__PURE__ */ jsx(ExternalLayout, { children: /* @__PURE__ */ jsx(ExternalComponent, {}) }) });
|
|
2732
|
+
} else if (mdxLoader) record.lazy = async () => {
|
|
2686
2733
|
const module = await resolveModuleLoader(mdxLoader);
|
|
2687
2734
|
return { Component: function ExternalMdxRoute() {
|
|
2688
2735
|
return /* @__PURE__ */ jsx(ExternalPageWrapper, { children: /* @__PURE__ */ jsx(ExternalLayout, { children: /* @__PURE__ */ jsx(ExternalMdxContent, {
|
package/dist/client/mdx.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
7
|
-
const require_mdx = require('../mdx-
|
|
7
|
+
const require_mdx = require('../mdx-Qi0DmaY8.cjs');
|
|
8
8
|
|
|
9
9
|
//#region src/client/mdx.ts
|
|
10
10
|
const { Card, Cards, Callout, Field, Image } = require_mdx.mdx_components_default;
|
package/dist/client/mdx.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { t as mdx_components_default } from "../mdx-
|
|
6
|
+
import { t as mdx_components_default } from "../mdx-CJGWzBGy.js";
|
|
7
7
|
|
|
8
8
|
//#region src/client/mdx.ts
|
|
9
9
|
const { Card, Cards, Callout, Field, Image } = mdx_components_default;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
7
7
|
const require_router = require('../router-C3kygdRK.cjs');
|
|
8
|
-
const require_link = require('../link-
|
|
9
|
-
const require_image = require('../image-
|
|
10
|
-
const require_docs_layout = require('../docs-layout-
|
|
11
|
-
const require_search_dialog = require('../search-dialog-
|
|
8
|
+
const require_link = require('../link-hLWOsx0x.cjs');
|
|
9
|
+
const require_image = require('../image-Bkx85rsq.cjs');
|
|
10
|
+
const require_docs_layout = require('../docs-layout-SgphExoE.cjs');
|
|
11
|
+
const require_search_dialog = require('../search-dialog-CguKVtUu.cjs');
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
|
|
14
14
|
//#region src/client/components/primitives/skeleton.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { ft as BoltdocsRoutePathWithFallback } from "../index-CgWkOCCn.cjs";
|
|
3
|
-
import { $ as SidebarItem, J as Sidebar, Q as SidebarHeader, X as SidebarGroup, Y as SidebarContent, Z as SidebarGroupRenderProps, at as SidebarLinkProps, ct as SidebarSlots, et as SidebarItemProps, it as SidebarLink, lt as SidebarSubGroup, nt as SidebarItems, ot as SidebarMobile, qt as NavbarLink$1, rt as SidebarItemsProps, st as SidebarRoot, tt as SidebarItemRenderProps, ut as ComponentBase } from "../index-
|
|
3
|
+
import { $ as SidebarItem, J as Sidebar, Q as SidebarHeader, X as SidebarGroup, Y as SidebarContent, Z as SidebarGroupRenderProps, at as SidebarLinkProps, ct as SidebarSlots, et as SidebarItemProps, it as SidebarLink, lt as SidebarSubGroup, nt as SidebarItems, ot as SidebarMobile, qt as NavbarLink$1, rt as SidebarItemsProps, st as SidebarRoot, tt as SidebarItemRenderProps, ut as ComponentBase } from "../index-DLaHgD-i.cjs";
|
|
4
4
|
import { a as CalloutRoot, c as CalloutTitleProps, i as CalloutProps, l as CalloutVariant, n as CalloutBody, o as CalloutRootProps, r as CalloutIcon, s as CalloutTitle, t as Callout } from "../callout-plqx9Dw-.cjs";
|
|
5
5
|
import * as _$react from "react";
|
|
6
6
|
import { CSSProperties, Component, ComponentProps, ComponentType, ErrorInfo, FC, HTMLAttributes, ImgHTMLAttributes, ReactNode, Ref, RefObject } from "react";
|
|
@@ -93,8 +93,16 @@ declare namespace Tabs {
|
|
|
93
93
|
}
|
|
94
94
|
declare function TabsList({
|
|
95
95
|
children,
|
|
96
|
-
className
|
|
97
|
-
|
|
96
|
+
className,
|
|
97
|
+
role
|
|
98
|
+
}: ComponentBase & {
|
|
99
|
+
/**
|
|
100
|
+
* Pass `null` when the "tabs" are plain navigation links (e.g. section
|
|
101
|
+
* tabs rendered as anchors): an ARIA `tablist` requires `tab` children and
|
|
102
|
+
* breaks otherwise. Omit to get the standard widget role.
|
|
103
|
+
*/
|
|
104
|
+
role?: string | null;
|
|
105
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
98
106
|
declare function TabsItem({
|
|
99
107
|
children,
|
|
100
108
|
id,
|
|
@@ -183,8 +191,11 @@ declare function AnchorProvider({
|
|
|
183
191
|
}: AnchorProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
184
192
|
declare function OnThisPage({
|
|
185
193
|
children,
|
|
186
|
-
className
|
|
187
|
-
|
|
194
|
+
className,
|
|
195
|
+
label
|
|
196
|
+
}: ComponentBase & {
|
|
197
|
+
/** Accessible name for the TOC nav landmark. */label?: string;
|
|
198
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
188
199
|
declare namespace OnThisPage {
|
|
189
200
|
var Root: typeof OnThisPage;
|
|
190
201
|
var Header: typeof OnThisPageHeader;
|
|
@@ -525,6 +536,12 @@ interface ErrorBoundaryProps {
|
|
|
525
536
|
FallbackComponent?: ComponentType<FallbackProps>;
|
|
526
537
|
onError?: (error: Error, info: ErrorInfo) => void;
|
|
527
538
|
onReset?: () => void;
|
|
539
|
+
/**
|
|
540
|
+
* When any of these values change, a caught error is automatically
|
|
541
|
+
* reset (e.g. pass the current route path so navigation clears stale
|
|
542
|
+
* render errors).
|
|
543
|
+
*/
|
|
544
|
+
resetKeys?: unknown[];
|
|
528
545
|
}
|
|
529
546
|
interface ErrorBoundaryState {
|
|
530
547
|
hasError: boolean;
|
|
@@ -535,6 +552,8 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
535
552
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
536
553
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
537
554
|
resetErrorBoundary: () => void;
|
|
555
|
+
private prevResetKeys;
|
|
556
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps): void;
|
|
538
557
|
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react_jsx_runtime0.JSX.Element | null | undefined;
|
|
539
558
|
}
|
|
540
559
|
interface ErrorBoundaryFallbackProps {
|
|
@@ -876,6 +895,8 @@ interface NavbarLogoProps extends Omit<ComponentBase, 'children'> {
|
|
|
876
895
|
}
|
|
877
896
|
interface NavbarSearchTriggerProps extends ComponentBase {
|
|
878
897
|
onPress: () => void;
|
|
898
|
+
'aria-label'?: string;
|
|
899
|
+
'aria-keyshortcuts'?: string;
|
|
879
900
|
}
|
|
880
901
|
interface NavbarThemeProps {
|
|
881
902
|
className?: string;
|
|
@@ -953,8 +974,16 @@ declare function NavbarTitle({
|
|
|
953
974
|
}): _$react_jsx_runtime0.JSX.Element;
|
|
954
975
|
declare function NavbarLinks({
|
|
955
976
|
children,
|
|
956
|
-
className
|
|
957
|
-
|
|
977
|
+
className,
|
|
978
|
+
label
|
|
979
|
+
}: ComponentBase & {
|
|
980
|
+
/**
|
|
981
|
+
* Accessible name for the nav landmark. Required when the page renders
|
|
982
|
+
* multiple navs (e.g. a docs navbar plus a sidebar) so landmarks stay
|
|
983
|
+
* distinguishable.
|
|
984
|
+
*/
|
|
985
|
+
label?: string;
|
|
986
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
958
987
|
declare function NavbarLink({
|
|
959
988
|
label,
|
|
960
989
|
href,
|
|
@@ -999,12 +1028,14 @@ declare function NavbarDropdownItem({
|
|
|
999
1028
|
declare function NavbarSearchTriggerDesktop({
|
|
1000
1029
|
className,
|
|
1001
1030
|
onPress,
|
|
1002
|
-
children
|
|
1031
|
+
children,
|
|
1032
|
+
...props
|
|
1003
1033
|
}: NavbarSearchTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
1004
1034
|
declare function NavbarSearchTriggerMobile({
|
|
1005
1035
|
className,
|
|
1006
1036
|
onPress,
|
|
1007
|
-
children
|
|
1037
|
+
children,
|
|
1038
|
+
...props
|
|
1008
1039
|
}: NavbarSearchTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
1009
1040
|
declare function NavbarSearchTriggerKbd({
|
|
1010
1041
|
className,
|