zudoku 0.48.1 → 0.48.3
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/config/loader.js +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +3 -2
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +23 -2
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +5 -4
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -2
- package/dist/lib/ui/CodeBlock.js +9 -9
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +3 -1
- package/dist/vite/config.js +11 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +2 -0
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/lib/{Markdown-DCAIYXF5.js → Markdown-BQ8YqLsz.js} +80 -88
- package/lib/{Markdown-DCAIYXF5.js.map → Markdown-BQ8YqLsz.js.map} +1 -1
- package/lib/{MdxPage-Cf9YXWoC.js → MdxPage-DJvKmI-r.js} +3 -3
- package/lib/{MdxPage-Cf9YXWoC.js.map → MdxPage-DJvKmI-r.js.map} +1 -1
- package/lib/{OasProvider-JMVTfG6_.js → OasProvider-BC0q5m3u.js} +2 -2
- package/lib/{OasProvider-JMVTfG6_.js.map → OasProvider-BC0q5m3u.js.map} +1 -1
- package/lib/{OperationList-m4tFCI4S.js → OperationList-Dpip6ozi.js} +6 -5
- package/lib/{OperationList-m4tFCI4S.js.map → OperationList-Dpip6ozi.js.map} +1 -1
- package/lib/{SchemaList-_wRy4aQ0.js → SchemaList-t4BIfh6Z.js} +5 -5
- package/lib/{SchemaList-_wRy4aQ0.js.map → SchemaList-t4BIfh6Z.js.map} +1 -1
- package/lib/{SchemaView-CRl_cQYH.js → SchemaView-CLxthVcA.js} +3 -3
- package/lib/{SchemaView-CRl_cQYH.js.map → SchemaView-CLxthVcA.js.map} +1 -1
- package/lib/{Slot-BkYrj_uC.js → Slot-CSEIvwwO.js} +57 -56
- package/lib/Slot-CSEIvwwO.js.map +1 -0
- package/lib/{SyntaxHighlight-CH9OUJre.js → SyntaxHighlight-C5ja40ix.js} +715 -714
- package/lib/{SyntaxHighlight-CH9OUJre.js.map → SyntaxHighlight-C5ja40ix.js.map} +1 -1
- package/lib/{Toc-DRxqEsFc.js → Toc-BS0f4GTe.js} +2 -2
- package/lib/{Toc-DRxqEsFc.js.map → Toc-BS0f4GTe.js.map} +1 -1
- package/lib/{circular-wJaV4vh_.js → circular-DfOaDE_x.js} +2 -2
- package/lib/{circular-wJaV4vh_.js.map → circular-DfOaDE_x.js.map} +1 -1
- package/lib/{createServer-DN5AJLcN.js → createServer-DjOMygls.js} +3 -3
- package/lib/{createServer-DN5AJLcN.js.map → createServer-DjOMygls.js.map} +1 -1
- package/lib/{index-DJVaRmzI.js → index-DW2qmCJa.js} +7 -7
- package/lib/{index-DJVaRmzI.js.map → index-DW2qmCJa.js.map} +1 -1
- package/lib/ui/Alert.js +54 -38
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/CodeBlock.js +54 -62
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +3 -2
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +268 -200
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +4 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +22 -3
- package/src/lib/plugins/api-keys/index.tsx +26 -4
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -0
- package/src/lib/ui/Alert.tsx +44 -38
- package/src/lib/ui/CodeBlock.tsx +39 -53
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/SyntaxHighlight.tsx +11 -3
- package/lib/Slot-BkYrj_uC.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as P } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as is from "react";
|
|
3
3
|
import { useState as et, useEffect as Ye, useRef as Je, createContext as as, use as ss, useCallback as ti, useMemo as sn, memo as ni } from "react";
|
|
4
|
-
import { s as en, p as qe, a as or, v as Tn, b as os, V as ls, u as cs, t as fs, c as vr, d as zr, o as Me, z as ri, e as hs, f as ds, g as ms, i as ui, j as ps, k as Yr, E as Es, S as Ts, l as bs } from "./SyntaxHighlight-
|
|
4
|
+
import { s as en, p as qe, a as or, v as Tn, b as os, V as ls, u as cs, t as fs, c as vr, d as zr, o as Me, z as ri, e as hs, f as ds, g as ms, i as ui, j as ps, k as Yr, E as Es, S as Ts, l as bs } from "./SyntaxHighlight-C5ja40ix.js";
|
|
5
5
|
import { CheckIcon as gs, CopyIcon as As, ChevronRightIcon as _s, ExternalLinkIcon as Cs, LinkIcon as Is } from "lucide-react";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as ae } from "./cn-wvCW-ho6.js";
|
|
7
7
|
import { u as bn, d as xs, g as lr, j as Ns } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
8
8
|
import * as Et from "@radix-ui/react-tooltip";
|
|
9
9
|
import { U as ks, V as tn, j as ii, k as Ss } from "./hook-CHXroBFt.js";
|
|
@@ -6872,21 +6872,21 @@ function j0(e) {
|
|
|
6872
6872
|
function V0(e) {
|
|
6873
6873
|
return e === se.EQUALS || j0(e);
|
|
6874
6874
|
}
|
|
6875
|
-
var
|
|
6875
|
+
var ie;
|
|
6876
6876
|
(function(e) {
|
|
6877
6877
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
6878
|
-
})(
|
|
6878
|
+
})(ie || (ie = {}));
|
|
6879
6879
|
var we;
|
|
6880
6880
|
(function(e) {
|
|
6881
6881
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
6882
6882
|
})(we || (we = {}));
|
|
6883
6883
|
class Wi {
|
|
6884
6884
|
constructor(t, n, r) {
|
|
6885
|
-
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state =
|
|
6885
|
+
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = ie.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = we.Strict;
|
|
6886
6886
|
}
|
|
6887
6887
|
/** Resets the instance to make it reusable. */
|
|
6888
6888
|
startEntity(t) {
|
|
6889
|
-
this.decodeMode = t, this.state =
|
|
6889
|
+
this.decodeMode = t, this.state = ie.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
6890
6890
|
}
|
|
6891
6891
|
/**
|
|
6892
6892
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -6901,15 +6901,15 @@ class Wi {
|
|
|
6901
6901
|
*/
|
|
6902
6902
|
write(t, n) {
|
|
6903
6903
|
switch (this.state) {
|
|
6904
|
-
case
|
|
6905
|
-
return t.charCodeAt(n) === se.NUM ? (this.state =
|
|
6906
|
-
case
|
|
6904
|
+
case ie.EntityStart:
|
|
6905
|
+
return t.charCodeAt(n) === se.NUM ? (this.state = ie.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = ie.NamedEntity, this.stateNamedEntity(t, n));
|
|
6906
|
+
case ie.NumericStart:
|
|
6907
6907
|
return this.stateNumericStart(t, n);
|
|
6908
|
-
case
|
|
6908
|
+
case ie.NumericDecimal:
|
|
6909
6909
|
return this.stateNumericDecimal(t, n);
|
|
6910
|
-
case
|
|
6910
|
+
case ie.NumericHex:
|
|
6911
6911
|
return this.stateNumericHex(t, n);
|
|
6912
|
-
case
|
|
6912
|
+
case ie.NamedEntity:
|
|
6913
6913
|
return this.stateNamedEntity(t, n);
|
|
6914
6914
|
}
|
|
6915
6915
|
}
|
|
@@ -6923,7 +6923,7 @@ class Wi {
|
|
|
6923
6923
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
6924
6924
|
*/
|
|
6925
6925
|
stateNumericStart(t, n) {
|
|
6926
|
-
return n >= t.length ? -1 : (t.charCodeAt(n) | Y0) === se.LOWER_X ? (this.state =
|
|
6926
|
+
return n >= t.length ? -1 : (t.charCodeAt(n) | Y0) === se.LOWER_X ? (this.state = ie.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = ie.NumericDecimal, this.stateNumericDecimal(t, n));
|
|
6927
6927
|
}
|
|
6928
6928
|
addToNumericResult(t, n, r, u) {
|
|
6929
6929
|
if (n !== r) {
|
|
@@ -7054,16 +7054,16 @@ class Wi {
|
|
|
7054
7054
|
end() {
|
|
7055
7055
|
var t;
|
|
7056
7056
|
switch (this.state) {
|
|
7057
|
-
case
|
|
7057
|
+
case ie.NamedEntity:
|
|
7058
7058
|
return this.result !== 0 && (this.decodeMode !== we.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
7059
7059
|
// Otherwise, emit a numeric entity if we have one.
|
|
7060
|
-
case
|
|
7060
|
+
case ie.NumericDecimal:
|
|
7061
7061
|
return this.emitNumericEntity(0, 2);
|
|
7062
|
-
case
|
|
7062
|
+
case ie.NumericHex:
|
|
7063
7063
|
return this.emitNumericEntity(0, 3);
|
|
7064
|
-
case
|
|
7064
|
+
case ie.NumericStart:
|
|
7065
7065
|
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
7066
|
-
case
|
|
7066
|
+
case ie.EntityStart:
|
|
7067
7067
|
return 0;
|
|
7068
7068
|
}
|
|
7069
7069
|
}
|
|
@@ -14489,74 +14489,66 @@ function M1(e) {
|
|
|
14489
14489
|
}
|
|
14490
14490
|
const B1 = ({
|
|
14491
14491
|
children: e,
|
|
14492
|
-
title: t,
|
|
14492
|
+
title: t = "Code",
|
|
14493
14493
|
language: n,
|
|
14494
14494
|
showCopy: r = "hover",
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
...o
|
|
14495
|
+
showLanguageIndicator: u = !1,
|
|
14496
|
+
showLineNumbers: a,
|
|
14497
|
+
...i
|
|
14499
14498
|
}) => {
|
|
14500
|
-
const [
|
|
14499
|
+
const [o, l] = et(!1), c = Je(null);
|
|
14501
14500
|
return e ? /* @__PURE__ */ P.jsxs(
|
|
14502
14501
|
"div",
|
|
14503
14502
|
{
|
|
14504
|
-
className:
|
|
14505
|
-
"code-block-wrapper relative group bg-muted/50 rounded-md",
|
|
14506
|
-
|
|
14503
|
+
className: ae(
|
|
14504
|
+
"border code-block-wrapper relative group bg-muted/50 rounded-md overflow-hidden",
|
|
14505
|
+
a && "line-numbers"
|
|
14507
14506
|
),
|
|
14508
14507
|
children: [
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
)
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
"button",
|
|
14534
|
-
{
|
|
14535
|
-
type: "button",
|
|
14536
|
-
"aria-label": "Copy code",
|
|
14537
|
-
title: "Copy code",
|
|
14538
|
-
className: ie(
|
|
14539
|
-
"absolute top-2 end-2 p-2 transition hover:shadow-xs active:shadow-none active:inset-shadow-xs hover:outline outline-border rounded-md text-sm text-muted-foreground",
|
|
14540
|
-
t && "top-10",
|
|
14541
|
-
r === "hover" && "opacity-0 group-hover:opacity-100",
|
|
14542
|
-
u && "flex gap-2 items-center font-medium"
|
|
14543
|
-
),
|
|
14544
|
-
disabled: l,
|
|
14545
|
-
onClick: () => {
|
|
14546
|
-
h.current?.textContent && (c(!0), navigator.clipboard.writeText(h.current.textContent), setTimeout(() => c(!1), 2e3));
|
|
14547
|
-
},
|
|
14548
|
-
children: [
|
|
14549
|
-
l ? /* @__PURE__ */ P.jsx(
|
|
14508
|
+
/* @__PURE__ */ P.jsxs("div", { className: "border-b flex items-center h-10 font-sans bg-black/2", children: [
|
|
14509
|
+
/* @__PURE__ */ P.jsxs("div", { className: "flex-1 text-sm w-full px-4", children: [
|
|
14510
|
+
t,
|
|
14511
|
+
u && /* @__PURE__ */ P.jsxs("span", { className: "text-muted-foreground ml-2", children: [
|
|
14512
|
+
"(",
|
|
14513
|
+
n,
|
|
14514
|
+
")"
|
|
14515
|
+
] })
|
|
14516
|
+
] }),
|
|
14517
|
+
" ",
|
|
14518
|
+
r !== "never" && /* @__PURE__ */ P.jsx(
|
|
14519
|
+
"button",
|
|
14520
|
+
{
|
|
14521
|
+
type: "button",
|
|
14522
|
+
"aria-label": "Copy code",
|
|
14523
|
+
title: "Copy code",
|
|
14524
|
+
className: ae(
|
|
14525
|
+
"cursor:pointer h-full hover:border-l-border active:shadow-none active:inset-shadow-xs hover:inset-shadow-xs flex items-center gap-2 px-4 outline-border text-sm hover:bg-black/5 transition-all"
|
|
14526
|
+
),
|
|
14527
|
+
disabled: o,
|
|
14528
|
+
onClick: () => {
|
|
14529
|
+
c.current?.textContent && (l(!0), navigator.clipboard.writeText(c.current.textContent), setTimeout(() => l(!1), 2e3));
|
|
14530
|
+
},
|
|
14531
|
+
children: o ? /* @__PURE__ */ P.jsx(
|
|
14550
14532
|
gs,
|
|
14551
14533
|
{
|
|
14552
14534
|
className: "text-emerald-600",
|
|
14553
|
-
size:
|
|
14535
|
+
size: 14,
|
|
14554
14536
|
strokeWidth: 2.5,
|
|
14555
14537
|
absoluteStrokeWidth: !0
|
|
14556
14538
|
}
|
|
14557
|
-
) : /* @__PURE__ */ P.jsx(As, { size:
|
|
14558
|
-
|
|
14559
|
-
|
|
14539
|
+
) : /* @__PURE__ */ P.jsx(As, { size: 14 })
|
|
14540
|
+
}
|
|
14541
|
+
)
|
|
14542
|
+
] }),
|
|
14543
|
+
/* @__PURE__ */ P.jsx(
|
|
14544
|
+
"div",
|
|
14545
|
+
{
|
|
14546
|
+
className: ae(
|
|
14547
|
+
"code-block text-sm not-prose scrollbar overflow-x-auto scrollbar p-4",
|
|
14548
|
+
i.className
|
|
14549
|
+
),
|
|
14550
|
+
ref: c,
|
|
14551
|
+
children: e
|
|
14560
14552
|
}
|
|
14561
14553
|
)
|
|
14562
14554
|
]
|
|
@@ -14628,14 +14620,14 @@ const B1 = ({
|
|
|
14628
14620
|
Et.Arrow,
|
|
14629
14621
|
{
|
|
14630
14622
|
...e,
|
|
14631
|
-
className:
|
|
14623
|
+
className: ae(e.className, "fill-border")
|
|
14632
14624
|
}
|
|
14633
14625
|
), Va = is.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ P.jsx(
|
|
14634
14626
|
Et.Content,
|
|
14635
14627
|
{
|
|
14636
14628
|
ref: r,
|
|
14637
14629
|
sideOffset: t,
|
|
14638
|
-
className:
|
|
14630
|
+
className: ae(
|
|
14639
14631
|
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
14640
14632
|
e
|
|
14641
14633
|
),
|
|
@@ -14669,7 +14661,7 @@ const Y1 = {
|
|
|
14669
14661
|
}) => /* @__PURE__ */ P.jsx(
|
|
14670
14662
|
"span",
|
|
14671
14663
|
{
|
|
14672
|
-
className:
|
|
14664
|
+
className: ae(
|
|
14673
14665
|
"flex items-center duration-200 transition-opacity text-center uppercase text-[0.65rem] leading-5 font-bold rounded-sm text-background dark:text-zinc-50 h-full",
|
|
14674
14666
|
e === "outline" ? "px-3" : "mt-0.5 px-1",
|
|
14675
14667
|
r ? q1[e] : Y1[e],
|
|
@@ -14961,7 +14953,7 @@ const Np = ({
|
|
|
14961
14953
|
_s,
|
|
14962
14954
|
{
|
|
14963
14955
|
size: 16,
|
|
14964
|
-
className:
|
|
14956
|
+
className: ae(
|
|
14965
14957
|
r && "transition",
|
|
14966
14958
|
"shrink-0 group-data-[state=open]:rotate-90 rtl:rotate-180"
|
|
14967
14959
|
)
|
|
@@ -14972,7 +14964,7 @@ const Np = ({
|
|
|
14972
14964
|
e.icon,
|
|
14973
14965
|
{
|
|
14974
14966
|
size: 16,
|
|
14975
|
-
className:
|
|
14967
|
+
className: ae("align-[-0.125em] ", f && "text-primary")
|
|
14976
14968
|
}
|
|
14977
14969
|
), A = tn({
|
|
14978
14970
|
className: [
|
|
@@ -15017,7 +15009,7 @@ const Np = ({
|
|
|
15017
15009
|
/* @__PURE__ */ P.jsx(
|
|
15018
15010
|
yn.Content,
|
|
15019
15011
|
{
|
|
15020
|
-
className:
|
|
15012
|
+
className: ae(
|
|
15021
15013
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
15022
15014
|
r && "CollapsibleContent",
|
|
15023
15015
|
e.items.length === 0 && "hidden",
|
|
@@ -15049,7 +15041,7 @@ const ei = ({
|
|
|
15049
15041
|
/* @__PURE__ */ P.jsx(
|
|
15050
15042
|
"span",
|
|
15051
15043
|
{
|
|
15052
|
-
className:
|
|
15044
|
+
className: ae("truncate flex-1", t),
|
|
15053
15045
|
title: e,
|
|
15054
15046
|
ref: n,
|
|
15055
15047
|
children: e
|
|
@@ -15198,7 +15190,7 @@ const ei = ({
|
|
|
15198
15190
|
size: n = "xl",
|
|
15199
15191
|
align: r = "center",
|
|
15200
15192
|
children: u
|
|
15201
|
-
}) => /* @__PURE__ */ P.jsxs("figure", { className:
|
|
15193
|
+
}) => /* @__PURE__ */ P.jsxs("figure", { className: ae(Op({ size: n, align: r }), t), children: [
|
|
15202
15194
|
/* @__PURE__ */ P.jsx("div", { className: "relative overflow-hidden rounded-lg border border-border bg-muted/50 p-1 shadow-sm", children: /* @__PURE__ */ P.jsx("div", { className: "not-prose rounded-md [&_img]:rounded-md! relative overflow-hidden bg-background", children: u }) }),
|
|
15203
15195
|
e && /* @__PURE__ */ P.jsx("figcaption", { className: "mt-3 text-center text-sm text-muted-foreground", children: e })
|
|
15204
15196
|
] }), Lp = ai("group relative", {
|
|
@@ -15244,7 +15236,7 @@ const ei = ({
|
|
|
15244
15236
|
a,
|
|
15245
15237
|
{
|
|
15246
15238
|
className: Lp({
|
|
15247
|
-
className:
|
|
15239
|
+
className: ae(r, "flex items-center gap-[0.33em]"),
|
|
15248
15240
|
level: e
|
|
15249
15241
|
}),
|
|
15250
15242
|
ref: u ? i : void 0,
|
|
@@ -15293,7 +15285,7 @@ const ei = ({
|
|
|
15293
15285
|
}) => /* @__PURE__ */ P.jsx(Dp, { asChild: !0, enabled: n, onClick: r, children: /* @__PURE__ */ P.jsx(
|
|
15294
15286
|
"code",
|
|
15295
15287
|
{
|
|
15296
|
-
className:
|
|
15288
|
+
className: ae(
|
|
15297
15289
|
"font-mono border p-1 py-0.5 rounded-sm bg-border/50 dark:bg-border/70 [overflow-wrap:anywhere]",
|
|
15298
15290
|
e
|
|
15299
15291
|
),
|
|
@@ -15308,9 +15300,9 @@ const ei = ({
|
|
|
15308
15300
|
playsInline: !0,
|
|
15309
15301
|
autoPlay: !0,
|
|
15310
15302
|
loop: !0,
|
|
15311
|
-
className:
|
|
15303
|
+
className: ae("rounded-lg", t.className)
|
|
15312
15304
|
}
|
|
15313
|
-
) : /* @__PURE__ */ P.jsx("img", { ...t, className:
|
|
15305
|
+
) : /* @__PURE__ */ P.jsx("img", { ...t, className: ae("rounded-lg", t.className) }),
|
|
15314
15306
|
Framed: yp,
|
|
15315
15307
|
h1: ({ children: e, id: t }) => /* @__PURE__ */ P.jsx(lt, { level: 1, id: t, children: e }),
|
|
15316
15308
|
h2: ({ children: e, id: t }) => /* @__PURE__ */ P.jsx(lt, { level: 2, id: t, children: e }),
|
|
@@ -15329,7 +15321,7 @@ const ei = ({
|
|
|
15329
15321
|
caution: (e) => /* @__PURE__ */ P.jsx(Xe, { type: "caution", ...e }),
|
|
15330
15322
|
warning: (e) => /* @__PURE__ */ P.jsx(Xe, { type: "caution", ...e }),
|
|
15331
15323
|
danger: (e) => /* @__PURE__ */ P.jsx(Xe, { type: "danger", ...e }),
|
|
15332
|
-
pre: (e) => /* @__PURE__ */ P.jsx("pre", { className:
|
|
15324
|
+
pre: (e) => /* @__PURE__ */ P.jsx("pre", { className: ae("not-prose my-4", e.className), ...e }),
|
|
15333
15325
|
code: ({
|
|
15334
15326
|
className: e,
|
|
15335
15327
|
node: t,
|
|
@@ -15340,14 +15332,14 @@ const ei = ({
|
|
|
15340
15332
|
...i
|
|
15341
15333
|
}) => {
|
|
15342
15334
|
const o = e?.match(/language?-(\w+)/);
|
|
15343
|
-
return u === "true" || u === !0 ? /* @__PURE__ */ P.jsx(Pp, { className:
|
|
15335
|
+
return u === "true" || u === !0 ? /* @__PURE__ */ P.jsx(Pp, { className: ae(e, "inline"), children: n }) : /* @__PURE__ */ P.jsx(
|
|
15344
15336
|
B1,
|
|
15345
15337
|
{
|
|
15346
15338
|
language: o?.[1],
|
|
15347
15339
|
showLanguageIndicator: !0,
|
|
15348
15340
|
showLineNumbers: a,
|
|
15349
15341
|
title: r,
|
|
15350
|
-
children: /* @__PURE__ */ P.jsx("code", { className:
|
|
15342
|
+
children: /* @__PURE__ */ P.jsx("code", { className: ae(e, "not-inline"), ...i, children: n })
|
|
15351
15343
|
}
|
|
15352
15344
|
);
|
|
15353
15345
|
}
|
|
@@ -15394,4 +15386,4 @@ export {
|
|
|
15394
15386
|
Sp as s,
|
|
15395
15387
|
wr as u
|
|
15396
15388
|
};
|
|
15397
|
-
//# sourceMappingURL=Markdown-
|
|
15389
|
+
//# sourceMappingURL=Markdown-BQ8YqLsz.js.map
|