@deot/docs-client 1.1.2 → 1.1.4
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/README.md +2 -3
- package/dist/chunks/browser-Cmwcvs-d.js +505 -0
- package/dist/chunks/cdn-DEvdGJu2-bmlgKy4E.js +38 -0
- package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
- package/dist/chunks/compile-Bw7v7QE--Dd1-R95H.js +79920 -0
- package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
- package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
- package/dist/chunks/dist-0ySyXNpo.js +415 -0
- package/dist/chunks/dist-BUw25nXJ.js +65 -0
- package/dist/chunks/dist-BeOE8qTX.js +345 -0
- package/dist/chunks/dist-Bm7SK-km.js +24517 -0
- package/dist/chunks/dist-C3V7reR4.js +197 -0
- package/dist/chunks/dist-C8z9l0mA.js +58 -0
- package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
- package/dist/chunks/dist-COjpr4FU.js +426 -0
- package/dist/chunks/dist-CQir6D4y.js +244 -0
- package/dist/chunks/dist-CuJyl-ef.js +17 -0
- package/dist/chunks/dist-Cxf7_ocf.js +44 -0
- package/dist/chunks/dist-DF4kisl2.js +43 -0
- package/dist/chunks/dist-DLj8yJdm.js +38 -0
- package/dist/chunks/dist-DN0sqx7H.js +39 -0
- package/dist/chunks/dist-DWqBe2Ah.js +132 -0
- package/dist/chunks/dist-D_Uqh6m9.js +80 -0
- package/dist/chunks/dist-DcIU51zW.js +166 -0
- package/dist/chunks/dist-DlmO7OlF.js +22 -0
- package/dist/chunks/dist-kiZUqqzR.js +27 -0
- package/dist/chunks/dist-oZ12SGqg.js +6 -0
- package/dist/chunks/dist-uXnwGrO3.js +76 -0
- package/dist/chunks/dist-va7FmnW4.js +156 -0
- package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
- package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +110 -0
- package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
- package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
- package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
- package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
- package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
- package/dist/chunks/linker-JHdz37DK-CWgUtxZ5.js +118 -0
- package/dist/chunks/local-sandbox-B8IJ5jWb-BgfU3iQ4.js +300 -0
- package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
- package/dist/chunks/modules-DlLJF_vd-DcNdL6sc.js +153 -0
- package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
- package/dist/chunks/pinia-pDJilYOg.js +326 -0
- package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
- package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +75 -0
- package/dist/chunks/script-xKUjE8pf-oF69rg-w.js +14941 -0
- package/dist/chunks/store-D8vwi-HV-RFStijWr.js +16936 -0
- package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
- package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
- package/dist/index.cjs +17 -17
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41759 -103263
- package/dist/index.style.css +3 -4
- package/package.json +9 -9
- package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
- package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
//#region packages/playground/dist/files-C5UMzYxA.js
|
|
3
|
+
var e = /* @__PURE__ */ new Set(["import-map.json", "tsconfig.json"]), t = (e) => {
|
|
4
|
+
let t = String(e || "").replace(/\\/gu, "/").trim();
|
|
5
|
+
if (!t) return "/";
|
|
6
|
+
let n = (t.startsWith("/") ? t : `/${t}`).split("/"), r = [];
|
|
7
|
+
for (let e of n) if (e && e !== ".") {
|
|
8
|
+
if (e === "..") {
|
|
9
|
+
r.length && r.pop();
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
r.push(e);
|
|
13
|
+
}
|
|
14
|
+
return `/${r.join("/")}`;
|
|
15
|
+
}, n = (e) => {
|
|
16
|
+
let n = t(e), r = n.lastIndexOf("/");
|
|
17
|
+
return r <= 0 ? "/" : n.slice(0, r) || "/";
|
|
18
|
+
}, r = (e) => {
|
|
19
|
+
let n = t(e), r = n.lastIndexOf("/");
|
|
20
|
+
return r === -1 ? n : n.slice(r + 1);
|
|
21
|
+
}, i = (e, n) => {
|
|
22
|
+
let r = String(n || "").replace(/\\/gu, "/");
|
|
23
|
+
if (r.startsWith("/")) return t(r);
|
|
24
|
+
let i = t(e);
|
|
25
|
+
return t(`${i === "/" ? "" : i}/${r}`);
|
|
26
|
+
}, a = (e) => {
|
|
27
|
+
let t = r(e), n = t.lastIndexOf(".");
|
|
28
|
+
return n <= 0 ? "" : t.slice(n).toLowerCase();
|
|
29
|
+
}, o = (t) => e.has(r(t)), s = (e) => {
|
|
30
|
+
let n = /* @__PURE__ */ new Map();
|
|
31
|
+
return Object.entries(e || {}).forEach(([e, r]) => {
|
|
32
|
+
let i = t(e);
|
|
33
|
+
o(i) || n.set(i, r);
|
|
34
|
+
}), n;
|
|
35
|
+
}, c = (e, n) => {
|
|
36
|
+
let i = s(e);
|
|
37
|
+
if (!i.size) throw Error("[Playground] files 为空,无法确定入口");
|
|
38
|
+
if (n) {
|
|
39
|
+
let e = t(n);
|
|
40
|
+
if (o(e)) throw Error(`[Playground] entry 不能是 ${r(e)}`);
|
|
41
|
+
if (!i.has(e)) throw Error(`[Playground] entry 不在 files 中: ${n}`);
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
for (let n of Object.keys(e || {})) {
|
|
45
|
+
let e = t(n);
|
|
46
|
+
if (!o(e) && i.has(e)) return e;
|
|
47
|
+
}
|
|
48
|
+
/* istanbul ignore next -- 忽略文件已在前面排除,正常 files 不会走到这里 */
|
|
49
|
+
throw Error("[Playground] files 中没有可用的入口文件");
|
|
50
|
+
}, l = [
|
|
51
|
+
".vue",
|
|
52
|
+
".ts",
|
|
53
|
+
".js",
|
|
54
|
+
".tsx",
|
|
55
|
+
".jsx",
|
|
56
|
+
".json",
|
|
57
|
+
".css",
|
|
58
|
+
".scss",
|
|
59
|
+
".sass"
|
|
60
|
+
], u = (e, t, r) => {
|
|
61
|
+
if (!t || !(t.startsWith("./") || t.startsWith("../") || t.startsWith("/"))) return null;
|
|
62
|
+
let a = i(n(e), t);
|
|
63
|
+
if (r.has(a)) return a;
|
|
64
|
+
for (let e of l) {
|
|
65
|
+
let t = `${a}${e}`;
|
|
66
|
+
if (r.has(t)) return t;
|
|
67
|
+
}
|
|
68
|
+
for (let e of l) {
|
|
69
|
+
let t = `${a}/index${e}`;
|
|
70
|
+
if (r.has(t)) return t;
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}, d = (e) => {
|
|
74
|
+
let r = e.map(t);
|
|
75
|
+
if (!r.length) return "/";
|
|
76
|
+
let i = r.map((e) => e.split("/").filter(Boolean)), a = i[0], o = a.length;
|
|
77
|
+
for (let e = 1; e < i.length; e += 1) {
|
|
78
|
+
let t = 0;
|
|
79
|
+
for (; t < o && t < i[e].length && a[t] === i[e][t];) t += 1;
|
|
80
|
+
o = t;
|
|
81
|
+
}
|
|
82
|
+
if (!o) return "/";
|
|
83
|
+
let s = `/${a.slice(0, o).join("/")}`;
|
|
84
|
+
return r.some((e) => e === s) ? n(s) : s;
|
|
85
|
+
}, f = (e, n) => {
|
|
86
|
+
let r = t(e), i = t(n);
|
|
87
|
+
return i === "/" || r === i || r.startsWith(`${i}/`);
|
|
88
|
+
}, p = (e) => {
|
|
89
|
+
let t = [], n = String(e || "");
|
|
90
|
+
for (let e of n.matchAll(/(?:\bfrom\s+|import\s*\(\s*|import\s+)['"]([^'"]+)['"]/gu)) e[1] && t.push(e[1]);
|
|
91
|
+
return t;
|
|
92
|
+
}, m = (e) => e.startsWith("./") || e.startsWith("../") || e.startsWith("/"), h = (e, n) => {
|
|
93
|
+
let r = s(e), i = [], a = /* @__PURE__ */ new Set(), o = (e) => {
|
|
94
|
+
let n = t(e);
|
|
95
|
+
!a.has(n) && r.has(n) && (a.add(n), i.push(n), p(r.get(n) || "").forEach((e) => {
|
|
96
|
+
let t = u(n, e, r);
|
|
97
|
+
t && o(t);
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
return o(n), i;
|
|
101
|
+
}, g = (e, n) => {
|
|
102
|
+
let r = s(e), i = [], a = /* @__PURE__ */ new Set();
|
|
103
|
+
return n.forEach((e) => {
|
|
104
|
+
p(r.get(t(e)) || "").forEach((e) => {
|
|
105
|
+
!e || m(e) || a.has(e) || (a.add(e), i.push(e));
|
|
106
|
+
});
|
|
107
|
+
}), i;
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
export { r as basename, g as collectBareSpecifiers, h as collectReachableFilenames, s as createFileIndex, n as dirname, d as getCommonRoot, a as getExtension, o as isIgnoredFilename, f as isInsideRoot, m as isRelativeSpecifier, i as joinVirtualPath, p as listImportSpecifiers, t as normalizeVirtualPath, c as resolveEntry, u as resolveModulePath };
|