@deot/docs-client 1.1.4 → 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 +86 -1
- package/dist/chunks/{cdn-DEvdGJu2-bmlgKy4E.js → cdn-DQoETju_-DS-873Vi.js} +3 -3
- package/dist/chunks/{compile-Bw7v7QE--Dd1-R95H.js → compile-BHD98Ttf-BJaenUUQ.js} +1103 -1108
- package/dist/chunks/{dist-Bm7SK-km.js → dist-9UPCn_ag.js} +8347 -8263
- package/dist/chunks/{dist-DlmO7OlF.js → dist-B44jICwZ.js} +1 -1
- package/dist/chunks/{dist-CuJyl-ef.js → dist-BQyOK8Qy.js} +6 -6
- package/dist/chunks/dist-DWn6r6un.js +76 -0
- package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +148 -0
- package/dist/chunks/{linker-JHdz37DK-CWgUtxZ5.js → linker-xqjVl0X0-CWWI367H.js} +10 -10
- package/dist/chunks/{local-sandbox-B8IJ5jWb-BgfU3iQ4.js → local-sandbox-DvcgaBOa-CzJxrdVx.js} +91 -93
- package/dist/chunks/{modules-DlLJF_vd-DcNdL6sc.js → modules-BGzPcoRR-C9BWX8hC.js} +49 -48
- package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +104 -0
- package/dist/chunks/{script-xKUjE8pf-oF69rg-w.js → script-DjUf9uWK-Cu5Kla_E.js} +2664 -2550
- package/dist/chunks/{store-D8vwi-HV-RFStijWr.js → store-BOyC8F2y-CbodPye0.js} +2913 -2812
- package/dist/index.cjs +980 -323
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7962 -7545
- package/dist/index.style.css +2 -2
- package/package.json +8 -8
- package/dist/chunks/dist-DN0sqx7H.js +0 -39
- package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +0 -110
- package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +0 -75
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
globalThis.process;
|
|
2
2
|
import { i as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
-
import { a as t } from "./cdn-
|
|
4
|
-
//#region packages/playground/dist/modules-
|
|
5
|
-
var
|
|
3
|
+
import { a as t, c as n } from "./cdn-DQoETju_-DS-873Vi.js";
|
|
4
|
+
//#region packages/playground/dist/modules-BGzPcoRR.js
|
|
5
|
+
var r = {
|
|
6
6
|
vue: () => import("./vue.runtime.esm-bundler-XxHGOLq2.js").then((e) => e.t),
|
|
7
7
|
"vue-router": () => import("./vue-router-C0mj8Ot5.js").then((e) => e.o),
|
|
8
8
|
pinia: () => import("./pinia-pDJilYOg.js"),
|
|
9
|
-
"@deot/helper": () => import("./dist-
|
|
9
|
+
"@deot/helper": () => import("./dist-BQyOK8Qy.js"),
|
|
10
10
|
"@deot/helper-cache": () => import("./dist-CQir6D4y.js").then((e) => e.a),
|
|
11
11
|
"@deot/helper-device": () => import("./dist-kiZUqqzR.js"),
|
|
12
12
|
"@deot/helper-dom": () => import("./dist-va7FmnW4.js").then((e) => e.i),
|
|
@@ -14,11 +14,11 @@ var n = {
|
|
|
14
14
|
"@deot/helper-fp": () => import("./dist-COjpr4FU.js").then((e) => e.i),
|
|
15
15
|
"@deot/helper-is": () => import("./dist-DLj8yJdm.js").then((e) => e.o),
|
|
16
16
|
"@deot/helper-load": () => import("./dist-D_Uqh6m9.js").then((e) => e.t),
|
|
17
|
-
"@deot/helper-resize": () => import("./dist-
|
|
17
|
+
"@deot/helper-resize": () => import("./dist-DWn6r6un.js").then((e) => e.n),
|
|
18
18
|
"@deot/helper-route": () => import("./dist-DF4kisl2.js"),
|
|
19
19
|
"@deot/helper-scheduler": () => import("./dist-C8z9l0mA.js").then((e) => e.n),
|
|
20
20
|
"@deot/helper-shared": () => import("./dist-oZ12SGqg.js"),
|
|
21
|
-
"@deot/helper-unicode": () => import("./dist-
|
|
21
|
+
"@deot/helper-unicode": () => import("./dist-B44jICwZ.js").then((e) => e.n),
|
|
22
22
|
"@deot/helper-utils": () => import("./dist-C3V7reR4.js").then((e) => e.r),
|
|
23
23
|
"@deot/helper-validator": () => import("./dist-DcIU51zW.js").then((e) => e.n),
|
|
24
24
|
"@deot/helper-wheel": () => import("./dist-CI9Lp9Cj.js").then((e) => e.n),
|
|
@@ -27,7 +27,7 @@ var n = {
|
|
|
27
27
|
"@deot/http-hooks": () => import("./dist-BUw25nXJ.js").then((e) => e.t),
|
|
28
28
|
"@deot/http": () => import("../index.js").then((e) => e.t),
|
|
29
29
|
"@deot/vc": () => import("../index.js").then((e) => e.n),
|
|
30
|
-
"@deot/vc-components": () => import("./dist-
|
|
30
|
+
"@deot/vc-components": () => import("./dist-9UPCn_ag.js").then((e) => e.ai),
|
|
31
31
|
"@deot/vc-hooks": () => import("./dist-uXnwGrO3.js").then((e) => e.t),
|
|
32
32
|
"@deot/vc-locale": () => import("./dist-0ySyXNpo.js").then((e) => e.t),
|
|
33
33
|
"lodash-es": () => import("./lodash-Cxf6dD_I.js").then((e) => e.t),
|
|
@@ -36,22 +36,22 @@ var n = {
|
|
|
36
36
|
jszip: () => import("./jszip.min-BbVwZKYP.js").then((t) => /* @__PURE__ */ e(t.default)),
|
|
37
37
|
jspdf: () => import("./jspdf.es.min-CJc40v7q.js").then((e) => e.t),
|
|
38
38
|
dayjs: async () => (await import("./dayjs.min-B3g34Qcz.js").then((t) => /* @__PURE__ */ e(t.default))).default
|
|
39
|
-
},
|
|
40
|
-
let t =
|
|
39
|
+
}, i = /* @__PURE__ */ new Map(), a = new Set(Object.keys(r)), o = (e) => {
|
|
40
|
+
let t = r[e];
|
|
41
41
|
if (!t) return Promise.reject(/* @__PURE__ */ Error(`[Playground] 没有本地模块 "${e}"`));
|
|
42
|
-
let
|
|
43
|
-
return
|
|
44
|
-
},
|
|
42
|
+
let n = i.get(e);
|
|
43
|
+
return n || (n = t(), i.set(e, n)), n;
|
|
44
|
+
}, s = /* @__PURE__ */ new Set([
|
|
45
45
|
"prototype",
|
|
46
46
|
"caller",
|
|
47
47
|
"arguments"
|
|
48
|
-
]),
|
|
48
|
+
]), c = (e) => {
|
|
49
49
|
if (e == null || typeof e != "object" && typeof e != "function") return {
|
|
50
50
|
__esModule: !0,
|
|
51
51
|
default: e
|
|
52
52
|
};
|
|
53
53
|
let t = e, n = { __esModule: !0 }, r = (e) => {
|
|
54
|
-
if (!(
|
|
54
|
+
if (!(s.has(e) || e === "__esModule")) try {
|
|
55
55
|
n[e] = t[e];
|
|
56
56
|
} catch {}
|
|
57
57
|
};
|
|
@@ -62,7 +62,7 @@ var n = {
|
|
|
62
62
|
Object.getOwnPropertyNames(t).forEach(r);
|
|
63
63
|
} catch {}
|
|
64
64
|
return (!("default" in n) || n.default === void 0) && (n.default = t.default === void 0 ? t : t.default), n;
|
|
65
|
-
},
|
|
65
|
+
}, l = (e, t) => Object.prototype.hasOwnProperty.call(t, e) ? c(t[e]) : null, u = (e, t) => {
|
|
66
66
|
if (!t) return;
|
|
67
67
|
let n = t.split("/").filter(Boolean), r = e;
|
|
68
68
|
for (let e of n) {
|
|
@@ -72,22 +72,22 @@ var n = {
|
|
|
72
72
|
r = t[e];
|
|
73
73
|
}
|
|
74
74
|
return r;
|
|
75
|
-
},
|
|
76
|
-
let n =
|
|
75
|
+
}, d = (e, t) => {
|
|
76
|
+
let n = l(e, t);
|
|
77
77
|
if (n) return n;
|
|
78
78
|
let r = e;
|
|
79
79
|
for (;;) {
|
|
80
80
|
let n = r.lastIndexOf("/");
|
|
81
81
|
if (n <= 0) break;
|
|
82
|
-
let i = r.slice(0, n), a = e.slice(i.length + 1), o =
|
|
82
|
+
let i = r.slice(0, n), a = e.slice(i.length + 1), o = l(i, t);
|
|
83
83
|
if (o) {
|
|
84
|
-
let e =
|
|
85
|
-
if (e !== void 0) return
|
|
84
|
+
let e = u(o, a);
|
|
85
|
+
if (e !== void 0) return c(e);
|
|
86
86
|
}
|
|
87
87
|
r = i;
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
|
-
},
|
|
90
|
+
}, f = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), p = (e) => e instanceof Error ? e.message : String(e), m = (e, t) => {
|
|
91
91
|
if (t[e]) return e;
|
|
92
92
|
let n = e;
|
|
93
93
|
for (;;) {
|
|
@@ -97,57 +97,58 @@ var n = {
|
|
|
97
97
|
if (t[r]) return r;
|
|
98
98
|
n = r;
|
|
99
99
|
}
|
|
100
|
-
},
|
|
101
|
-
if (!
|
|
102
|
-
let
|
|
103
|
-
return !
|
|
104
|
-
},
|
|
105
|
-
let
|
|
106
|
-
vue:
|
|
107
|
-
"vue-router":
|
|
108
|
-
},
|
|
100
|
+
}, h = (e, n, r) => {
|
|
101
|
+
if (!a.has(e) && !f.has(e)) return !1;
|
|
102
|
+
let i = n[e];
|
|
103
|
+
return !i || i === t(r)[e];
|
|
104
|
+
}, g = async (e, t, r, i, a) => {
|
|
105
|
+
let s = {
|
|
106
|
+
vue: r.vue,
|
|
107
|
+
"vue-router": r.vueRouter
|
|
108
|
+
}, c = [], l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
109
109
|
e.forEach((e) => {
|
|
110
|
-
|
|
110
|
+
let r = !1;
|
|
111
|
+
if (h(e, t, a)) u.add(e);
|
|
111
112
|
else {
|
|
112
113
|
let n = e;
|
|
113
114
|
for (;;) {
|
|
114
115
|
let e = n.lastIndexOf("/");
|
|
115
116
|
if (e <= 0) break;
|
|
116
|
-
let
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
let i = n.slice(0, e);
|
|
118
|
+
if (h(i, t, a)) {
|
|
119
|
+
u.add(i), r = !0;
|
|
119
120
|
break;
|
|
120
121
|
}
|
|
121
|
-
n =
|
|
122
|
+
n = i;
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
if (e === "vue-router") {
|
|
125
|
-
t["vue-router"] &&
|
|
126
|
+
t["vue-router"] && l.add("vue-router");
|
|
126
127
|
return;
|
|
127
128
|
}
|
|
128
|
-
let
|
|
129
|
-
|
|
130
|
-
}), await Promise.all([...
|
|
129
|
+
let i = m(e, t);
|
|
130
|
+
i && h(i, t, a) ? u.add(i) : i ? l.add(i) : !r && !u.has(e) && (t[e] = n(e), l.add(e));
|
|
131
|
+
}), await Promise.all([...u].map(async (e) => {
|
|
131
132
|
if (e !== "vue" && e !== "vue-router") {
|
|
132
133
|
if (e === "vue/server-renderer") {
|
|
133
|
-
|
|
134
|
+
s[e] = r.vue;
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
+
s[e] = await o(e);
|
|
137
138
|
}
|
|
138
139
|
}));
|
|
139
|
-
for (let e of
|
|
140
|
+
for (let e of l) {
|
|
140
141
|
let n = t[e];
|
|
141
|
-
if (n && !
|
|
142
|
-
|
|
142
|
+
if (n && !h(e, t, a)) try {
|
|
143
|
+
s[e] = await i(n);
|
|
143
144
|
} catch (t) {
|
|
144
|
-
|
|
145
|
+
c.push(`[Playground] 无法加载模块 "${e}" (${n}): ${p(t)}`);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
return {
|
|
148
|
-
modules:
|
|
149
|
-
errors:
|
|
149
|
+
modules: s,
|
|
150
|
+
errors: c
|
|
150
151
|
};
|
|
151
152
|
};
|
|
152
153
|
//#endregion
|
|
153
|
-
export {
|
|
154
|
+
export { g as loadLocalModules, a as n, h as prefersLocalBuiltin, d as resolveHostModule, m as resolveImportTarget, o as t, c as toHostModule };
|
|
@@ -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 };
|