boltdocs 3.2.1 → 3.3.0
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/bin/boltdocs.js +20 -1
- package/bin/preloader.mjs +28 -0
- package/dist/{adapters-ByYY44Zy.mjs → adapters-BmB4TKCc.mjs} +1 -1
- package/dist/{adapters-DvmtpdSF.cjs → adapters-Cp1Maurn.cjs} +1 -1
- package/dist/audit-CLXjMzwQ.mjs +11 -0
- package/dist/audit-COgjnQ5n.cjs +11 -0
- package/dist/build-BS2hefiL.cjs +6 -0
- package/dist/build-C5mNh9D-.mjs +6 -0
- package/dist/cache-CJE9nWLE.cjs +6 -0
- package/dist/cache-OY4HzIXl.mjs +6 -0
- package/dist/callout-oI_LCbxS.d.ts +71 -0
- package/dist/callout-plqx9Dw-.d.cts +71 -0
- package/dist/client/index.cjs +1265 -569
- package/dist/client/index.d.cts +3 -542
- package/dist/client/index.d.ts +3 -542
- package/dist/client/index.js +1167 -521
- package/dist/client/mdx.cjs +1 -1
- package/dist/client/mdx.d.cts +24 -2
- package/dist/client/mdx.d.ts +24 -2
- package/dist/client/mdx.js +1 -1
- package/dist/client/primitives.cjs +14 -4
- package/dist/client/primitives.d.cts +281 -38
- package/dist/client/primitives.d.ts +281 -38
- package/dist/client/primitives.js +5 -5
- package/dist/client/router.cjs +49 -0
- package/dist/client/router.d.cts +3 -0
- package/dist/client/router.d.ts +3 -0
- package/dist/client/router.js +8 -0
- package/dist/client/theme/reset.css +40 -4
- package/dist/{config-BpzaPsJj.d.cts → config-BoRlz0Ca.d.mts} +157 -14
- package/dist/{config-xtS0ZkMm.d.mts → config-CTsX_tGM.d.cts} +157 -14
- package/dist/config-Ceib-AOH.cjs +7 -0
- package/dist/config-DGLQsy7y.mjs +7 -0
- package/dist/{package-BcISI5-P.cjs → config-files-BYHDOrKn.mjs} +1 -1
- package/dist/config-files-D9cdBMl2.cjs +6 -0
- package/dist/config-jJh8WYJI.cjs +6 -0
- package/dist/csp-C4LmN1ko.cjs +6 -0
- package/dist/csp-D6JEOqKh.mjs +6 -0
- package/dist/dev-Ch3hEe5Y.cjs +6 -0
- package/dist/dev-QPNxysrd.mjs +6 -0
- package/dist/{docs-layout-BdtZ9z6s.js → docs-layout-CbZ7LDRe.js} +504 -249
- package/dist/{docs-layout-CFWI15Id.cjs → docs-layout-vzfXed1Q.cjs} +516 -254
- package/dist/{doctor-BBtmNJE0.cjs → doctor-B1_YL0Wt.cjs} +1 -1
- package/dist/doctor-C7whl4ED.cjs +6 -0
- package/dist/doctor-DmQnml2k.mjs +6 -0
- package/dist/{generator-COepVWGi.cjs → generator-BlW45ST7.cjs} +5 -3
- package/dist/{generator-CcOBN5vI.mjs → generator-BwknNejd.mjs} +5 -3
- package/dist/{handler-XX7cLTqe.cjs → handler-CDEoKARD.cjs} +2 -2
- package/dist/{handler-DzQae4eA.mjs → handler-D7UyZlPm.mjs} +2 -2
- package/dist/{image-Bz87fCla.js → image-B-NDSDuY.js} +129 -11
- package/dist/{image-C4TlpMHn.cjs → image-Hnaa2bJd.cjs} +175 -9
- package/dist/index-C56bL-A-.d.cts +1344 -0
- package/dist/{sidebar-COTaMHR-.d.ts → index-CPUUKzxD.d.cts} +344 -327
- package/dist/{sidebar-CrEdJuHX.d.cts → index-Ci4kfOHF.d.ts} +344 -327
- package/dist/index-Cu9H6CRa.d.ts +1344 -0
- package/dist/link-CgdI6O2o.js +872 -0
- package/dist/{link-D1Gjkb-2.cjs → link-vZjmD-es.cjs} +406 -223
- package/dist/{mdx-BuO6a1f7.js → mdx-BRT71V5Q.js} +211 -168
- package/dist/{mdx-CD-tSjRG.cjs → mdx-D0Absdq5.cjs} +225 -169
- package/dist/native-BNCY7PRF.cjs +6 -0
- package/dist/native-Di9Fnfrv.mjs +6 -0
- package/dist/native-Kre2T5eS.cjs +6 -0
- package/dist/node/cache.cjs +1 -1
- package/dist/node/cache.d.cts +19 -3
- package/dist/node/cache.d.mts +19 -3
- package/dist/node/cache.mjs +1 -1
- package/dist/node/cli-entry.cjs +1 -9
- package/dist/node/cli-entry.mjs +1 -9
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +245 -17
- package/dist/node/index.d.mts +246 -18
- package/dist/node/index.mjs +1 -1
- package/dist/node/mdx/shiki-adapter.cjs +1 -1
- package/dist/node/mdx/shiki-adapter.d.cts +24 -3
- package/dist/node/mdx/shiki-adapter.d.mts +24 -2
- package/dist/node/mdx/shiki-adapter.mjs +1 -1
- package/dist/node-Du5UL5wo.mjs +23 -0
- package/dist/node-DunuGqyp.cjs +23 -0
- package/dist/{package-CCYEAYeA.mjs → package-DA848keM.mjs} +1 -1
- package/dist/package-wplzySjz.cjs +6 -0
- package/dist/pages-external-BBw8ObVK.mjs +6 -0
- package/dist/pages-external-DPiPFxxP.cjs +6 -0
- package/dist/parser-BqTOsEUa.cjs +6 -0
- package/dist/parser-CGMY2lJ7.mjs +6 -0
- package/dist/plugin-BcTzvHAJ.mjs +69 -0
- package/dist/plugin-TulVMt1z.cjs +69 -0
- package/dist/plugin-context-C-l90hFt.cjs +15 -0
- package/dist/plugin-context-wqHNSZum.mjs +15 -0
- package/dist/plugin-lifecycle-B1BzSHdn.cjs +6 -0
- package/dist/resolve-B7vWOd8R.cjs +6 -0
- package/dist/resolve-C2kKnk_5.mjs +6 -0
- package/dist/resolve-It1Iug83.cjs +6 -0
- package/dist/resolve-YdTrt_FG.mjs +6 -0
- package/dist/router-C3kygdRK.cjs +1285 -0
- package/dist/router-CZBxMRAH.js +987 -0
- package/dist/routes-BL4y79tb.mjs +6 -0
- package/dist/routes-C2nPecwu.cjs +6 -0
- package/dist/routes-U9L8psZ9.cjs +6 -0
- package/dist/{search-dialog-DHqwjJuG.cjs → search-dialog-BCOHQGSt.cjs} +1 -1
- package/dist/search-dialog-Bp_P1MPP.js +481 -0
- package/dist/{search-dialog-DFnlx8LO.js → search-dialog-BqkzDTq2.js} +107 -57
- package/dist/{search-dialog-BRFno7HD.cjs → search-dialog-CIeIUhAn.cjs} +218 -43
- package/dist/{search-dialog-D6TvjcuV.js → search-dialog-DtmxmfEu.js} +1 -1
- package/dist/{search-dialog-B1NERUNx.cjs → search-dialog-x_qHU8ty.cjs} +107 -58
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/update-check-BKqmYfwT.cjs +11 -0
- package/dist/update-check-QnrVR3q1.mjs +11 -0
- package/dist/utils-8lzafE49.mjs +7 -0
- package/dist/utils-ej6_SjIZ.cjs +7 -0
- package/dist/virtual-modules-Ca5tHk1X.cjs +30 -0
- package/dist/virtual-modules-Dlgt1fP0.mjs +30 -0
- package/package.json +18 -16
- package/src/shared/mdx-path.ts +12 -0
- package/src/shared/structured-data.ts +145 -0
- package/src/shared/types.ts +220 -16
- package/dist/banner-BMop1KLF.d.ts +0 -100
- package/dist/banner-CVD0GugR.d.cts +0 -100
- package/dist/cache-CO4Dy2uQ.cjs +0 -6
- package/dist/cache-Dk53iOo6.mjs +0 -6
- package/dist/config-CCXp3aXO.mjs +0 -7
- package/dist/config-CMd4XoFq.cjs +0 -6
- package/dist/config-DlGoEM9D.cjs +0 -7
- package/dist/csp-CRp_3U7a.cjs +0 -6
- package/dist/csp-oTC2ygvF.mjs +0 -6
- package/dist/doctor-Bv16QSrI.cjs +0 -7
- package/dist/doctor-DOAbSaiL.mjs +0 -7
- package/dist/headers-Ddwek8K7.mjs +0 -6
- package/dist/headers-dg4SDrjY.cjs +0 -6
- package/dist/link-2PzgTnaP.js +0 -673
- package/dist/meta-loader-C4Hu9RN9.mjs +0 -6
- package/dist/meta-loader-Dq1zcFnh.cjs +0 -6
- package/dist/node-BXtqM1uH.mjs +0 -6
- package/dist/node-BlVk4EVg.cjs +0 -104
- package/dist/node-DOf4zhWc.mjs +0 -104
- package/dist/node-aD1eisrR.cjs +0 -6
- package/dist/pages-external-BYa4JSda.mjs +0 -6
- package/dist/pages-external-XkYIs-d5.cjs +0 -6
- package/dist/parser-DCiEWkSk.cjs +0 -8
- package/dist/parser-qk9FIHJ7.mjs +0 -8
- package/dist/plugin-C95kvu6h.mjs +0 -73
- package/dist/plugin-DM3u2bVj.cjs +0 -73
- package/dist/routes-BW6zsk7Z.mjs +0 -6
- package/dist/routes-BgoIB5wb.cjs +0 -6
- package/dist/routes-CORVxc02.cjs +0 -6
- package/dist/search-dialog-BmxHiKwt.js +0 -312
- package/dist/shiki-adapter-CoQ6jyJ4.cjs +0 -6
- package/dist/shiki-adapter-D-aKw7PP.mjs +0 -6
- package/dist/utils-Crm9oPcV.mjs +0 -7
- package/dist/utils-D6Xtj0FZ.cjs +0 -7
- /package/dist/{errors-0zGHRLue.mjs → errors-N-b6Sn2G.mjs} +0 -0
- /package/dist/{index-1KsTDq4o.d.mts → index-lFoyzCXy.d.mts} +0 -0
- /package/dist/{types-generator-BXhv7Ill.cjs → types-generator-DDSA93P3.cjs} +0 -0
- /package/dist/{types-generator-bDPvUztF.mjs → types-generator-DG1GX1EZ.mjs} +0 -0
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const require_router = require('./router-C3kygdRK.cjs');
|
|
7
|
+
const require_link = require('./link-vZjmD-es.cjs');
|
|
7
8
|
let react = require("react");
|
|
8
|
-
react =
|
|
9
|
+
react = require_router.__toESM(react);
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let react_aria_components = require("react-aria-components");
|
|
11
|
-
react_aria_components =
|
|
12
|
+
react_aria_components = require_router.__toESM(react_aria_components);
|
|
12
13
|
|
|
13
14
|
//#region src/client/app/theme-context.tsx
|
|
14
15
|
const THEME_CONTEXT_SYMBOL = Symbol.for("__BDOCS_THEME_CONTEXT__");
|
|
@@ -91,11 +92,11 @@ function useTheme() {
|
|
|
91
92
|
|
|
92
93
|
//#endregion
|
|
93
94
|
//#region src/client/components/primitives/heading.tsx
|
|
94
|
-
const Heading = react.forwardRef(({ level, id, children, className, showAnchor = true, anchorPosition = "wrap", anchorIcon, anchorClassName, ...props }, ref) => {
|
|
95
|
+
const Heading = react.forwardRef(({ level, id, children, className, showAnchor = true, anchorPosition = "wrap", anchorIcon, anchorClassName, anchorIconClassName, ...props }, ref) => {
|
|
95
96
|
const Tag = `h${Math.min(Math.max(Math.floor(level), 1), 6)}`;
|
|
96
97
|
const hasAnchor = !!(id && showAnchor);
|
|
97
98
|
const defaultIcon = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_link.Link$1, {
|
|
98
|
-
className: require_link.cn("transition-all duration-200", anchorPosition === "wrap" ? "opacity-0 ml-2 text-muted/50 group-hover:text-primary-500 group-hover:opacity-100" : "text-muted/50 hover:text-primary-500"),
|
|
99
|
+
className: require_link.cn("transition-all duration-200", anchorPosition === "wrap" ? "opacity-0 ml-2 text-muted/50 group-hover:text-primary-500 group-hover:opacity-100" : "text-muted/50 hover:text-primary-500", anchorIconClassName),
|
|
99
100
|
size: 16
|
|
100
101
|
});
|
|
101
102
|
const icon = anchorIcon ?? defaultIcon;
|
|
@@ -133,6 +134,66 @@ const Heading = react.forwardRef(({ level, id, children, className, showAnchor =
|
|
|
133
134
|
});
|
|
134
135
|
Heading.displayName = "Heading";
|
|
135
136
|
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/client/components/primitives/callout.tsx
|
|
139
|
+
/**
|
|
140
|
+
* Style-neutral callout primitives.
|
|
141
|
+
*
|
|
142
|
+
* Own structure and expose state via `data-callout-root` / `data-variant`.
|
|
143
|
+
* No colors, borders, or sizes are baked in — the theme owns all visuals.
|
|
144
|
+
*/
|
|
145
|
+
function Callout({ children, variant = "note", title, icon, className, iconClassName, titleClassName, bodyClassName, ...props }) {
|
|
146
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CalloutRoot, {
|
|
147
|
+
variant,
|
|
148
|
+
className,
|
|
149
|
+
...props,
|
|
150
|
+
children: [icon != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalloutIcon, {
|
|
151
|
+
className: iconClassName,
|
|
152
|
+
children: icon
|
|
153
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
154
|
+
className: require_link.cn("flex-1", bodyClassName),
|
|
155
|
+
children: [title != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalloutTitle, {
|
|
156
|
+
className: titleClassName,
|
|
157
|
+
children: title
|
|
158
|
+
}), children]
|
|
159
|
+
})]
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function CalloutRoot({ variant, children, className, ...props }) {
|
|
163
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
164
|
+
"data-callout-root": true,
|
|
165
|
+
"data-variant": variant,
|
|
166
|
+
className: require_link.cn("flex gap-4", className),
|
|
167
|
+
...props,
|
|
168
|
+
children
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function CalloutIcon({ children, className, ...props }) {
|
|
172
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
173
|
+
className: require_link.cn("shrink-0", className),
|
|
174
|
+
...props,
|
|
175
|
+
children
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function CalloutTitle({ children, className, as: Tag = "div", ...props }) {
|
|
179
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
180
|
+
className,
|
|
181
|
+
...props,
|
|
182
|
+
children
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function CalloutBody({ children, className, ...props }) {
|
|
186
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
187
|
+
className,
|
|
188
|
+
...props,
|
|
189
|
+
children
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
Callout.Root = CalloutRoot;
|
|
193
|
+
Callout.Icon = CalloutIcon;
|
|
194
|
+
Callout.Title = CalloutTitle;
|
|
195
|
+
Callout.Body = CalloutBody;
|
|
196
|
+
|
|
136
197
|
//#endregion
|
|
137
198
|
//#region src/client/components/primitives/code-block.tsx
|
|
138
199
|
/**
|
|
@@ -168,6 +229,16 @@ function CodeBlockGroup({ children, className, ...props }) {
|
|
|
168
229
|
});
|
|
169
230
|
}
|
|
170
231
|
/**
|
|
232
|
+
* Trailing action area in the header (copy, feedback, custom actions).
|
|
233
|
+
*/
|
|
234
|
+
function CodeBlockActions({ children, className, ...props }) {
|
|
235
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
236
|
+
className: require_link.cn("flex items-center gap-1 bg-(--color-code-bg) pl-2 z-10", className),
|
|
237
|
+
...props,
|
|
238
|
+
children
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
171
242
|
* Content area of the code block.
|
|
172
243
|
* Wraps the `<pre>` or `<div>` containing the code.
|
|
173
244
|
*/
|
|
@@ -178,9 +249,53 @@ function CodeBlockContent({ className, children, shouldTruncate = false, ...prop
|
|
|
178
249
|
children
|
|
179
250
|
});
|
|
180
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* The code area itself. Renders pre-rendered Shiki HTML when `highlightedHtml`
|
|
254
|
+
* is provided, otherwise a plain `<pre>` with the default code styling.
|
|
255
|
+
*/
|
|
256
|
+
function CodeBlockPre({ className, highlightedHtml, isHighlighted = false, ref, children, ...props }) {
|
|
257
|
+
if (highlightedHtml) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
258
|
+
ref,
|
|
259
|
+
className: require_link.cn("shiki-wrapper overflow-x-auto", className),
|
|
260
|
+
dangerouslySetInnerHTML: { __html: highlightedHtml },
|
|
261
|
+
...props
|
|
262
|
+
});
|
|
263
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
264
|
+
ref,
|
|
265
|
+
className: require_link.cn("m-0 rounded-none border-none bg-transparent", "text-[0.875rem] leading-[1.6] overflow-x-auto", {
|
|
266
|
+
"p-0 [&>code]:grid [&>code]:p-5 [&>code]:bg-transparent [&>code]:whitespace-pre": isHighlighted,
|
|
267
|
+
"p-5": !isHighlighted
|
|
268
|
+
}, className),
|
|
269
|
+
...props,
|
|
270
|
+
children
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Expand / collapse region for long code blocks. Renders nothing when the
|
|
275
|
+
* block is not expandable.
|
|
276
|
+
*/
|
|
277
|
+
function CodeBlockExpand({ className, buttonClassName, isExpandable, shouldTruncate, isExpanded, onToggle, expandLabel = "Expand code", collapseLabel = "Show less", expandIcon, ...props }) {
|
|
278
|
+
if (!isExpandable) return null;
|
|
279
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
280
|
+
className: require_link.cn({
|
|
281
|
+
"absolute bottom-0 inset-x-0 h-32 flex items-end justify-center pb-4 z-10": shouldTruncate,
|
|
282
|
+
"relative flex justify-center pb-4 pt-1 -mt-4": !shouldTruncate
|
|
283
|
+
}, className),
|
|
284
|
+
style: shouldTruncate ? { backgroundImage: "linear-gradient(to top, var(--color-code-bg) 10%, transparent)" } : void 0,
|
|
285
|
+
...props,
|
|
286
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Button, {
|
|
287
|
+
onPress: onToggle,
|
|
288
|
+
className: require_link.cn("inline-flex items-center gap-2 rounded-full bg-surface border border-subtle px-5 py-2 text-[0.8125rem] font-medium text-body outline-none cursor-pointer transition-all hover:bg-soft hover:-translate-y-px backdrop-blur-md", buttonClassName),
|
|
289
|
+
children: [expandIcon, isExpanded ? collapseLabel : expandLabel]
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
}
|
|
181
293
|
CodeBlock.Header = CodeBlockHeader;
|
|
182
294
|
CodeBlock.Group = CodeBlockGroup;
|
|
295
|
+
CodeBlock.Actions = CodeBlockActions;
|
|
183
296
|
CodeBlock.Content = CodeBlockContent;
|
|
297
|
+
CodeBlock.Pre = CodeBlockPre;
|
|
298
|
+
CodeBlock.Expand = CodeBlockExpand;
|
|
184
299
|
|
|
185
300
|
//#endregion
|
|
186
301
|
//#region src/client/components/primitives/tooltip.tsx
|
|
@@ -188,7 +303,7 @@ CodeBlock.Content = CodeBlockContent;
|
|
|
188
303
|
* Modern, accessible Tooltip component built with React Aria Components.
|
|
189
304
|
* Featuring glassmorphism, animations, and smart positioning.
|
|
190
305
|
*/
|
|
191
|
-
function TooltipContent({ className, children, ...props }) {
|
|
306
|
+
function TooltipContent({ className, arrowClassName, children, ...props }) {
|
|
192
307
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Tooltip, {
|
|
193
308
|
...props,
|
|
194
309
|
offset: 8,
|
|
@@ -197,7 +312,7 @@ function TooltipContent({ className, children, ...props }) {
|
|
|
197
312
|
width: 8,
|
|
198
313
|
height: 8,
|
|
199
314
|
viewBox: "0 0 8 8",
|
|
200
|
-
className: "fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",
|
|
315
|
+
className: require_link.cn("fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90", arrowClassName),
|
|
201
316
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("title", { children: "Arrow" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M0 0 L4 4 L8 0" })]
|
|
202
317
|
}) }), typeof children === "function" ? children(values) : children] })
|
|
203
318
|
});
|
|
@@ -221,28 +336,73 @@ Tooltip.Content = TooltipContent;
|
|
|
221
336
|
* A responsive image component that automatically supports dark and light theme variations
|
|
222
337
|
* via the `theme` prop.
|
|
223
338
|
*/
|
|
224
|
-
function Image({ theme, className, ...props }) {
|
|
339
|
+
function Image({ theme, className, src, alt, ...props }) {
|
|
225
340
|
const { resolvedTheme } = useTheme();
|
|
341
|
+
const config = require_link.useConfig();
|
|
226
342
|
if (theme && theme !== resolvedTheme) return null;
|
|
227
343
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
228
344
|
className: require_link.cn("max-w-full h-auto rounded-lg my-8", className),
|
|
229
|
-
|
|
345
|
+
alt: alt ?? "",
|
|
346
|
+
...props,
|
|
347
|
+
src: typeof src === "string" ? require_link.resolvePublicAssetUrl(src, config.base) : src
|
|
230
348
|
});
|
|
231
349
|
}
|
|
232
350
|
|
|
233
351
|
//#endregion
|
|
352
|
+
Object.defineProperty(exports, 'Callout', {
|
|
353
|
+
enumerable: true,
|
|
354
|
+
get: function () {
|
|
355
|
+
return Callout;
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
Object.defineProperty(exports, 'CalloutBody', {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
get: function () {
|
|
361
|
+
return CalloutBody;
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
Object.defineProperty(exports, 'CalloutIcon', {
|
|
365
|
+
enumerable: true,
|
|
366
|
+
get: function () {
|
|
367
|
+
return CalloutIcon;
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
Object.defineProperty(exports, 'CalloutRoot', {
|
|
371
|
+
enumerable: true,
|
|
372
|
+
get: function () {
|
|
373
|
+
return CalloutRoot;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
Object.defineProperty(exports, 'CalloutTitle', {
|
|
377
|
+
enumerable: true,
|
|
378
|
+
get: function () {
|
|
379
|
+
return CalloutTitle;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
234
382
|
Object.defineProperty(exports, 'CodeBlock', {
|
|
235
383
|
enumerable: true,
|
|
236
384
|
get: function () {
|
|
237
385
|
return CodeBlock;
|
|
238
386
|
}
|
|
239
387
|
});
|
|
388
|
+
Object.defineProperty(exports, 'CodeBlockActions', {
|
|
389
|
+
enumerable: true,
|
|
390
|
+
get: function () {
|
|
391
|
+
return CodeBlockActions;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
240
394
|
Object.defineProperty(exports, 'CodeBlockContent', {
|
|
241
395
|
enumerable: true,
|
|
242
396
|
get: function () {
|
|
243
397
|
return CodeBlockContent;
|
|
244
398
|
}
|
|
245
399
|
});
|
|
400
|
+
Object.defineProperty(exports, 'CodeBlockExpand', {
|
|
401
|
+
enumerable: true,
|
|
402
|
+
get: function () {
|
|
403
|
+
return CodeBlockExpand;
|
|
404
|
+
}
|
|
405
|
+
});
|
|
246
406
|
Object.defineProperty(exports, 'CodeBlockGroup', {
|
|
247
407
|
enumerable: true,
|
|
248
408
|
get: function () {
|
|
@@ -255,6 +415,12 @@ Object.defineProperty(exports, 'CodeBlockHeader', {
|
|
|
255
415
|
return CodeBlockHeader;
|
|
256
416
|
}
|
|
257
417
|
});
|
|
418
|
+
Object.defineProperty(exports, 'CodeBlockPre', {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
get: function () {
|
|
421
|
+
return CodeBlockPre;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
258
424
|
Object.defineProperty(exports, 'Heading', {
|
|
259
425
|
enumerable: true,
|
|
260
426
|
get: function () {
|