@deot/docs-client 1.1.3 → 1.1.5
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 +88 -4
- package/dist/chunks/browser-Cmwcvs-d.js +505 -0
- package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +38 -0
- package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
- package/dist/chunks/compile-BHD98Ttf-BJaenUUQ.js +79915 -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-9UPCn_ag.js +24601 -0
- package/dist/chunks/dist-B44jICwZ.js +22 -0
- package/dist/chunks/dist-BQyOK8Qy.js +17 -0
- package/dist/chunks/dist-BUw25nXJ.js +65 -0
- package/dist/chunks/dist-BeOE8qTX.js +345 -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-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-DWn6r6un.js +76 -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-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-BqucFldk-B-hTQ-ip.js +148 -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-xqjVl0X0-CWWI367H.js +118 -0
- package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +298 -0
- package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
- package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +154 -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-mq4zvrI1-Bib9tTkb.js +104 -0
- package/dist/chunks/script-DjUf9uWK-Cu5Kla_E.js +15055 -0
- package/dist/chunks/store-BOyC8F2y-CbodPye0.js +17037 -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 +997 -340
- package/dist/index.d.ts +2 -1
- package/dist/index.js +42205 -103464
- 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,104 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { i as e, o as t, r as n, t as r } from "./script-DjUf9uWK-Cu5Kla_E.js";
|
|
3
|
+
import { u as i } from "./files-BqucFldk-B-hTQ-ip.js";
|
|
4
|
+
import { c as a } from "./cdn-DQoETju_-DS-873Vi.js";
|
|
5
|
+
import { n as o, prefersLocalBuiltin as s, resolveHostModule as c, resolveImportTarget as l, t as u, toHostModule as d } from "./modules-BGzPcoRR-C9BWX8hC.js";
|
|
6
|
+
//#region packages/playground/dist/remote-mq4zvrI1.js
|
|
7
|
+
var f = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), p = (p, m, h, g = (e) => import(
|
|
8
|
+
/* @vite-ignore */
|
|
9
|
+
e
|
|
10
|
+
)) => {
|
|
11
|
+
let _ = {
|
|
12
|
+
vue: m.vue,
|
|
13
|
+
"vue-router": m.vueRouter
|
|
14
|
+
}, v = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Map(), C = (e) => {
|
|
15
|
+
let t = S.get(e);
|
|
16
|
+
return t || (t = g(e).then((t) => {
|
|
17
|
+
let n = d(t);
|
|
18
|
+
return b.set(e, n), n;
|
|
19
|
+
}), S.set(e, t)), t;
|
|
20
|
+
}, w = (e) => {
|
|
21
|
+
if (p[e] && !s(e, p, h)) return null;
|
|
22
|
+
if (s(e, p, h)) return e;
|
|
23
|
+
let t = e;
|
|
24
|
+
for (;;) {
|
|
25
|
+
let e = t.lastIndexOf("/");
|
|
26
|
+
if (e <= 0) return null;
|
|
27
|
+
let n = t.slice(0, e);
|
|
28
|
+
if (s(n, p, h)) return n;
|
|
29
|
+
t = n;
|
|
30
|
+
}
|
|
31
|
+
}, T = (e, t) => {
|
|
32
|
+
if (i(t) || /^https?:\/\//.test(t)) return new URL(t, e).href;
|
|
33
|
+
if (p[t] && !s(t, p, h)) return p[t];
|
|
34
|
+
if (f.has(t) && s(t, p, h)) return null;
|
|
35
|
+
let n = t;
|
|
36
|
+
for (; n;) {
|
|
37
|
+
if (o.has(n) && s(n, p, h)) return v.add(n), null;
|
|
38
|
+
let e = n.lastIndexOf("/");
|
|
39
|
+
if (e <= 0) break;
|
|
40
|
+
n = n.slice(0, e);
|
|
41
|
+
}
|
|
42
|
+
let r = p[t] ? t : l(t, p);
|
|
43
|
+
return r ? p[r] : (p[t] = a(t), p[t]);
|
|
44
|
+
}, E = async (n) => {
|
|
45
|
+
if (/\/\+esm(?:[?#]|$)/.test(n)) {
|
|
46
|
+
await C(n);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (x.has(n)) return;
|
|
50
|
+
x.add(n);
|
|
51
|
+
let r = await fetch(n);
|
|
52
|
+
if (!r.ok) throw Error(`${r.status} ${n}`);
|
|
53
|
+
let i = await r.text();
|
|
54
|
+
await e;
|
|
55
|
+
let [a] = t(i), o = i;
|
|
56
|
+
for (let e of [...a].reverse()) e.d >= 0 && (o = o.slice(0, e.ss) + "__import" + o.slice(e.ss + 6));
|
|
57
|
+
y.set(n, o), await Promise.all(a.filter((e) => e.d === -1).map(async (e) => {
|
|
58
|
+
let t = T(n, e.n);
|
|
59
|
+
t && await E(t);
|
|
60
|
+
}));
|
|
61
|
+
}, D = (e) => (t) => {
|
|
62
|
+
if (f.has(t) && s(t, p, h)) return d(m.vue);
|
|
63
|
+
let n = w(t);
|
|
64
|
+
if (n) return d(_[n]);
|
|
65
|
+
if (i(t) || /^https?:\/\//.test(t)) return O(new URL(t, e).href);
|
|
66
|
+
let r = p[t] ? t : l(t, p);
|
|
67
|
+
if (!r || !p[r]) throw Error(`[Playground] 未注册的模块 "${t}"`);
|
|
68
|
+
let a = O(p[r]);
|
|
69
|
+
if (r === t) return a;
|
|
70
|
+
if (!c(t, { [r]: a }))
|
|
71
|
+
/* istanbul ignore next -- 父包没有对应导出时才拒绝 */
|
|
72
|
+
throw Error(`[Playground] 未注册的模块 "${t}"`);
|
|
73
|
+
return a;
|
|
74
|
+
}, O = (e) => {
|
|
75
|
+
if (b.has(e)) return b.get(e);
|
|
76
|
+
let t = y.get(e);
|
|
77
|
+
if (t == null) throw Error(`[Playground] 远程模块尚未下载: ${e}`);
|
|
78
|
+
let i = n(r(t, e), {
|
|
79
|
+
transforms: ["imports"],
|
|
80
|
+
disableESTransforms: !0,
|
|
81
|
+
production: !0,
|
|
82
|
+
filePath: e
|
|
83
|
+
}).code, a = { exports: {} };
|
|
84
|
+
return b.set(e, a.exports), Function("require", "module", "exports", "__import", i)(D(e), a, a.exports, async (t) => {
|
|
85
|
+
let n = T(e, t);
|
|
86
|
+
if (n) await A(n);
|
|
87
|
+
else {
|
|
88
|
+
let e = w(t);
|
|
89
|
+
e && !(e in _) && (_[e] = await u(e));
|
|
90
|
+
}
|
|
91
|
+
return D(e)(t);
|
|
92
|
+
}), b.set(e, a.exports), a.exports;
|
|
93
|
+
}, k = /* @__PURE__ */ new Map(), A = (e) => {
|
|
94
|
+
let t = k.get(e);
|
|
95
|
+
if (t) return t;
|
|
96
|
+
let n = (async () => (await E(e), await Promise.all([...v].map(async (e) => {
|
|
97
|
+
e !== "vue" && e !== "vue-router" && (_[e] = await u(e));
|
|
98
|
+
})), O(e)))();
|
|
99
|
+
return k.set(e, n), n;
|
|
100
|
+
};
|
|
101
|
+
return { load: A };
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
export { p as createRemoteLoader };
|