zudoku 0.3.0-dev.21 → 0.3.0-dev.22
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/config.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +1 -19
- package/dist/lib/plugins/openapi/index.js +17 -18
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
- package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
- package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
- package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
- package/lib/MdxPage-DQ7lZBzE.js +216 -0
- package/lib/OperationList-DuIBqFNA.js +5545 -0
- package/lib/Route-B98Y2MdH.js +13 -0
- package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
- package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
- package/lib/cn-DpqTslo9.js +2341 -0
- package/lib/context-_fYfJFgk.js +13 -0
- package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
- package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
- package/lib/index-CKvOcM7w.js +712 -0
- package/lib/index-Cg6lXS1z.js +709 -0
- package/lib/index-ClDDiRmC.js +463 -0
- package/lib/router-DibNxKUP.js +3008 -0
- package/lib/util-CaVongBq.js +40 -0
- package/lib/zudoku.auth-openid.js +7 -6
- package/lib/zudoku.components.js +73 -69
- package/lib/zudoku.plugin-api-keys.js +26 -23
- package/lib/zudoku.plugin-markdown.js +33 -237
- package/lib/zudoku.plugin-openapi.js +5 -6238
- package/lib/zudoku.plugin-redirect.js +7 -6
- package/package.json +1 -1
- package/src/lib/authentication/authentication.ts +1 -1
- package/src/lib/plugins/api-keys/index.tsx +1 -0
- package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/index.tsx +19 -46
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
- package/lib/index-PyGcnQFX.js +0 -3462
|
@@ -1,255 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const V = P("ListTree", [
|
|
15
|
-
["path", { d: "M21 12h-8", key: "1bmf0i" }],
|
|
16
|
-
["path", { d: "M21 6H8", key: "1pqkrb" }],
|
|
17
|
-
["path", { d: "M21 18h-8", key: "1tm79t" }],
|
|
18
|
-
["path", { d: "M3 6v4c0 1.1.9 2 2 2h3", key: "1ywdgy" }],
|
|
19
|
-
["path", { d: "M3 10v6c0 1.1.9 2 2 2h3", key: "2wc746" }]
|
|
20
|
-
]);
|
|
21
|
-
var z = { exports: {} };
|
|
22
|
-
(function(a, t) {
|
|
23
|
-
(function(s, i, n) {
|
|
24
|
-
a.exports = n(), a.exports.default = n();
|
|
25
|
-
})("slugify", B, function() {
|
|
26
|
-
var s = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), i = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
27
|
-
function n(o, r) {
|
|
28
|
-
if (typeof o != "string")
|
|
29
|
-
throw new Error("slugify: string argument expected");
|
|
30
|
-
r = typeof r == "string" ? { replacement: r } : r || {};
|
|
31
|
-
var l = i[r.locale] || {}, h = r.replacement === void 0 ? "-" : r.replacement, b = r.trim === void 0 ? !0 : r.trim, c = o.normalize().split("").reduce(function(x, p) {
|
|
32
|
-
var u = l[p];
|
|
33
|
-
return u === void 0 && (u = s[p]), u === void 0 && (u = p), u === h && (u = " "), x + u.replace(r.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
34
|
-
}, "");
|
|
35
|
-
return r.strict && (c = c.replace(/[^A-Za-z0-9\s]/g, "")), b && (c = c.trim()), c = c.replace(/\s+/g, h), r.lower && (c = c.toLowerCase()), c;
|
|
36
|
-
}
|
|
37
|
-
return n.extend = function(o) {
|
|
38
|
-
Object.assign(s, o);
|
|
39
|
-
}, n;
|
|
40
|
-
});
|
|
41
|
-
})(z);
|
|
42
|
-
var X = z.exports;
|
|
43
|
-
const Q = /* @__PURE__ */ K(X), C = "data-active", H = ({
|
|
44
|
-
item: a,
|
|
45
|
-
children: t,
|
|
46
|
-
className: s,
|
|
47
|
-
isActive: i
|
|
48
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
49
|
-
"li",
|
|
50
|
-
{
|
|
51
|
-
className: j(
|
|
52
|
-
"truncate",
|
|
53
|
-
i ? "text-primary" : "text-foreground/65 dark:text-foreground/75",
|
|
54
|
-
s
|
|
55
|
-
),
|
|
56
|
-
title: a.value,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ e.jsx(
|
|
59
|
-
M,
|
|
60
|
-
{
|
|
61
|
-
to: `#${a.id}`,
|
|
62
|
-
[C]: a.id,
|
|
63
|
-
className: j(
|
|
64
|
-
i ? "text-primary" : "text-foreground/65 dark:text-foreground/75 hover:text-foreground"
|
|
65
|
-
),
|
|
66
|
-
children: a.value
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
t
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
), ee = ({ entries: a }) => {
|
|
73
|
-
const { activeAnchor: t } = _(), s = G(null), [i, n] = $({});
|
|
74
|
-
return Z(() => {
|
|
75
|
-
if (!s.current) return;
|
|
76
|
-
const o = s.current.querySelector(
|
|
77
|
-
`[${C}='${t}']`
|
|
78
|
-
);
|
|
79
|
-
if (!o) {
|
|
80
|
-
n({
|
|
81
|
-
"--indicator-top": "0",
|
|
82
|
-
"--indicator-opacity": 0
|
|
83
|
-
});
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
const r = s.current.getBoundingClientRect().top, l = o.getBoundingClientRect().top;
|
|
87
|
-
n({
|
|
88
|
-
"--indicator-top": `${l - r}px`,
|
|
89
|
-
"--indicator-opacity": 1
|
|
90
|
-
});
|
|
91
|
-
}, [t]), /* @__PURE__ */ e.jsxs("aside", { className: "sticky top-[--header-height] h-[calc(100vh-var(--header-height))] pt-[--padding-content-top] pb-[--padding-content-bottom] overflow-y-auto ps-1 text-sm", children: [
|
|
92
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 font-medium mb-2", children: [
|
|
93
|
-
/* @__PURE__ */ e.jsx(V, { size: 16 }),
|
|
94
|
-
"On this page"
|
|
95
|
-
] }),
|
|
96
|
-
/* @__PURE__ */ e.jsx(
|
|
97
|
-
"ul",
|
|
98
|
-
{
|
|
99
|
-
ref: s,
|
|
100
|
-
style: i,
|
|
101
|
-
className: j(
|
|
102
|
-
"relative ms-2 ps-4 font-medium list-none mt-0 space-y-2",
|
|
103
|
-
"before:absolute before:inset-0 before:right-auto before:bg-border before:w-[2px]",
|
|
104
|
-
"after:absolute after:-left-px after:-translate-y-1 after:top-[--indicator-top] after:opacity-[--indicator-opacity] after:h-6 after:bg-primary after:w-[4px] after:rounded after:ease-out after:[transition:top__150ms,opacity_325ms]"
|
|
105
|
-
),
|
|
106
|
-
children: a.map((o) => /* @__PURE__ */ e.jsx(
|
|
107
|
-
H,
|
|
108
|
-
{
|
|
109
|
-
isActive: o.id === t,
|
|
110
|
-
item: o,
|
|
111
|
-
className: "pl-0",
|
|
112
|
-
children: o.children && /* @__PURE__ */ e.jsx("ul", { className: "list-none pl-4 pt-2 space-y-2", children: o.children.map((r) => /* @__PURE__ */ e.jsx(
|
|
113
|
-
H,
|
|
114
|
-
{
|
|
115
|
-
item: r,
|
|
116
|
-
isActive: r.id === t
|
|
117
|
-
},
|
|
118
|
-
r.id
|
|
119
|
-
)) })
|
|
120
|
-
},
|
|
121
|
-
o.id
|
|
122
|
-
))
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] });
|
|
126
|
-
}, te = {
|
|
127
|
-
h2: ({ children: a, id: t }) => /* @__PURE__ */ e.jsx(N, { level: 2, id: t, registerSidebarAnchor: !0, children: a }),
|
|
128
|
-
h3: ({ children: a, id: t }) => /* @__PURE__ */ e.jsxs(N, { level: 3, id: t, registerSidebarAnchor: !0, children: [
|
|
129
|
-
" ",
|
|
130
|
-
a
|
|
131
|
-
] })
|
|
132
|
-
}, re = ({
|
|
133
|
-
mdxComponent: a,
|
|
134
|
-
frontmatter: t = {},
|
|
135
|
-
defaultOptions: s,
|
|
136
|
-
tableOfContents: i
|
|
137
|
-
}) => {
|
|
138
|
-
var w, k;
|
|
139
|
-
const n = U(), o = R(), r = n ? A(n, (d, y, v) => {
|
|
140
|
-
var m;
|
|
141
|
-
if (y === o.pathname)
|
|
142
|
-
return (m = v.at(0)) == null ? void 0 : m.label;
|
|
143
|
-
}) : void 0, l = t.title, h = t.category ?? r, b = t.toc === !1 || (s == null ? void 0 : s.toc) === !1, c = ((w = i.find((d) => d.depth === 1)) == null ? void 0 : w.value) ?? l, x = t.disablePager ?? (s == null ? void 0 : s.disablePager) ?? !1, p = ((k = i.find((d) => d.depth === 1)) == null ? void 0 : k.children) ?? // if `title` is provided by frontmatter it does not appear in the table of contents
|
|
144
|
-
i.filter((d) => d.depth === 2), u = !b && p.length > 0, { prev: f, next: g } = W(() => {
|
|
145
|
-
let d = { path: "", label: "" }, y = { path: "", label: "" }, v = !1;
|
|
146
|
-
return n ? (A(n, (m, S) => {
|
|
147
|
-
var I, T;
|
|
148
|
-
const O = { path: S, label: m.label };
|
|
149
|
-
if (v && E(m) && !((I = m.children) != null && I.length))
|
|
150
|
-
return y = O, !0;
|
|
151
|
-
S === o.pathname && (v = !0), !v && E(m) && !((T = m.children) != null && T.length) && (d = O);
|
|
152
|
-
}), { prev: d, next: y }) : { prev: d, next: y };
|
|
153
|
-
}, [n, o.pathname]);
|
|
154
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "xl:grid grid-cols-[--sidecar-grid-cols] gap-8 justify-between", children: [
|
|
155
|
-
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
|
|
156
|
-
/* @__PURE__ */ e.jsxs(
|
|
157
|
-
"div",
|
|
158
|
-
{
|
|
159
|
-
className: j(
|
|
160
|
-
q,
|
|
161
|
-
"max-w-full xl:w-full xl:max-w-prose flex-1 flex-shrink pt-[--padding-content-top] pb-[--padding-content-bottom]"
|
|
162
|
-
),
|
|
163
|
-
children: [
|
|
164
|
-
/* @__PURE__ */ e.jsxs("header", { children: [
|
|
165
|
-
h && /* @__PURE__ */ e.jsx(F, { children: h }),
|
|
166
|
-
l && /* @__PURE__ */ e.jsx(N, { level: 1, id: Q(l, { lower: !0 }), children: l }),
|
|
167
|
-
t.description && /* @__PURE__ */ e.jsx("p", { className: "prose-lg", children: t.description })
|
|
168
|
-
] }),
|
|
169
|
-
/* @__PURE__ */ e.jsx(
|
|
170
|
-
a,
|
|
171
|
-
{
|
|
172
|
-
components: { ...J(), ...te }
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
!x && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
176
|
-
/* @__PURE__ */ e.jsx("hr", {}),
|
|
177
|
-
/* @__PURE__ */ e.jsxs("div", { className: "not-prose flex items-center justify-between gap-8", children: [
|
|
178
|
-
f.path ? /* @__PURE__ */ e.jsxs(
|
|
179
|
-
Y,
|
|
180
|
-
{
|
|
181
|
-
to: f.path,
|
|
182
|
-
className: "flex flex-col items-stretch gap-2 flex-1 truncate border border-border rounded px-6 py-4 text-start hover:border-primary/85 transition shadow-sm hover:shadow-md",
|
|
183
|
-
title: typeof f.label == "string" ? f.label : void 0,
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-sm text-muted-foreground", children: "← Previous page" }),
|
|
186
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-lg text-primary truncate", children: f.label })
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
) : /* @__PURE__ */ e.jsx("div", { className: "flex-1" }),
|
|
190
|
-
g.path ? /* @__PURE__ */ e.jsxs(
|
|
191
|
-
Y,
|
|
192
|
-
{
|
|
193
|
-
to: g.path,
|
|
194
|
-
className: "flex flex-col items-stretch gap-2 flex-1 truncate border border-border rounded px-6 py-4 text-end hover:border-primary/85 transition shadow-sm hover:shadow-md",
|
|
195
|
-
title: typeof g.label == "string" ? g.label : void 0,
|
|
196
|
-
children: [
|
|
197
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-sm text-muted-foreground", children: "Next page →" }),
|
|
198
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-lg text-primary truncate", children: g.label })
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
) : /* @__PURE__ */ e.jsx("div", { className: "flex-1" })
|
|
202
|
-
] })
|
|
203
|
-
] })
|
|
204
|
-
]
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
/* @__PURE__ */ e.jsx("div", { className: "hidden xl:block", children: u && /* @__PURE__ */ e.jsx(ee, { entries: p }) })
|
|
208
|
-
] });
|
|
209
|
-
}, ae = (a, t) => {
|
|
210
|
-
const s = Object.entries(a).flatMap(
|
|
211
|
-
([n, o]) => {
|
|
212
|
-
const r = n.match(/pages\/(.*).mdx?$/), l = r == null ? void 0 : r.at(1);
|
|
213
|
-
if (!l) return [];
|
|
214
|
-
const h = l.split("/");
|
|
1
|
+
import { j as s } from "./router-DibNxKUP.js";
|
|
2
|
+
import { j as x } from "./DevPortalProvider-gzyAGqHT.js";
|
|
3
|
+
import { t as f, i as d } from "./util-CaVongBq.js";
|
|
4
|
+
import { N as g } from "./index-ClDDiRmC.js";
|
|
5
|
+
const h = (t, e) => {
|
|
6
|
+
const n = Object.entries(t).flatMap(
|
|
7
|
+
([r, p]) => {
|
|
8
|
+
const o = r.match(/pages\/(.*).mdx?$/), a = o == null ? void 0 : o.at(1);
|
|
9
|
+
if (!a) return [];
|
|
10
|
+
const i = a.split("/");
|
|
215
11
|
return {
|
|
216
|
-
path:
|
|
12
|
+
path: i.at(-1) === "index" ? i.slice(0, -1).join("/") : a,
|
|
217
13
|
lazy: async () => {
|
|
218
|
-
const { default:
|
|
14
|
+
const { MdxPage: u } = await import("./MdxPage-DQ7lZBzE.js"), { default: c, ...l } = await p();
|
|
219
15
|
return {
|
|
220
|
-
element: /* @__PURE__ */
|
|
221
|
-
|
|
16
|
+
element: /* @__PURE__ */ s.jsx(
|
|
17
|
+
u,
|
|
222
18
|
{
|
|
223
|
-
mdxComponent:
|
|
224
|
-
...
|
|
225
|
-
defaultOptions:
|
|
19
|
+
mdxComponent: c,
|
|
20
|
+
...l,
|
|
21
|
+
defaultOptions: e
|
|
226
22
|
}
|
|
227
23
|
)
|
|
228
24
|
};
|
|
229
25
|
}
|
|
230
26
|
};
|
|
231
27
|
}
|
|
232
|
-
),
|
|
233
|
-
new Set(
|
|
234
|
-
).map((
|
|
235
|
-
path: `/${
|
|
236
|
-
element: /* @__PURE__ */
|
|
28
|
+
), m = Array.from(
|
|
29
|
+
new Set(n.map((r) => r.path.split("/").at(0)))
|
|
30
|
+
).map((r) => ({
|
|
31
|
+
path: `/${r}`,
|
|
32
|
+
element: /* @__PURE__ */ s.jsx(j, {})
|
|
237
33
|
}));
|
|
238
|
-
return [...
|
|
239
|
-
},
|
|
240
|
-
const
|
|
241
|
-
return
|
|
242
|
-
if (!("children" in
|
|
243
|
-
return /* @__PURE__ */
|
|
34
|
+
return [...n, ...m];
|
|
35
|
+
}, j = () => {
|
|
36
|
+
const t = x();
|
|
37
|
+
return t ? f(t, (e, n) => {
|
|
38
|
+
if (!("children" in e || !d(e)))
|
|
39
|
+
return /* @__PURE__ */ s.jsx(g, { to: n, replace: !0 });
|
|
244
40
|
}) : null;
|
|
245
|
-
},
|
|
246
|
-
markdownFiles:
|
|
247
|
-
defaultOptions:
|
|
41
|
+
}, y = ({
|
|
42
|
+
markdownFiles: t,
|
|
43
|
+
defaultOptions: e
|
|
248
44
|
}) => ({
|
|
249
45
|
getRoutes() {
|
|
250
|
-
return
|
|
46
|
+
return h(t, e);
|
|
251
47
|
}
|
|
252
48
|
});
|
|
253
49
|
export {
|
|
254
|
-
|
|
50
|
+
y as markdownPlugin
|
|
255
51
|
};
|