@wanlianyida/portal-kit 0.1.10 → 0.1.12
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/index.js +1 -1
- package/dist/navigation/session.d.ts +19 -0
- package/dist/navigation/session.js +332 -55
- package/dist/session/bridge.html +10 -0
- package/dist/session/vite.d.mts +2 -0
- package/dist/session/vite.mjs +43 -0
- package/dist/style.css +1 -1
- package/package.json +9 -3
package/dist/index.js
CHANGED
|
@@ -5663,7 +5663,7 @@ const Gi = { class: "portal-code-preview portal-code-theme" }, Wi = { class: "po
|
|
|
5663
5663
|
])
|
|
5664
5664
|
]));
|
|
5665
5665
|
}
|
|
5666
|
-
}), sa = /* @__PURE__ */ gr(Qi, [["__scopeId", "data-v-
|
|
5666
|
+
}), sa = /* @__PURE__ */ gr(Qi, [["__scopeId", "data-v-d2c9290b"]]);
|
|
5667
5667
|
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
|
|
5668
5668
|
function fs(t, e) {
|
|
5669
5669
|
(e == null || e > t.length) && (e = t.length);
|
|
@@ -3,6 +3,8 @@ export declare function cleanSsoUrl(href: string): string;
|
|
|
3
3
|
export declare function createSharedSession(config: SharedSessionConfig): {
|
|
4
4
|
tokenCookieName: string;
|
|
5
5
|
changeKey: string;
|
|
6
|
+
/** Await once before router/store/component initialization. Repeated reads share one task. */
|
|
7
|
+
readonly ready: Promise<void>;
|
|
6
8
|
getToken: () => string;
|
|
7
9
|
setToken: (token: string) => void;
|
|
8
10
|
clearToken: () => void;
|
|
@@ -15,10 +17,27 @@ export declare function createSharedSession(config: SharedSessionConfig): {
|
|
|
15
17
|
|
|
16
18
|
export declare const LOCAL_SESSION_CHANGE_EVENT = "wop-developer:session-local-change";
|
|
17
19
|
|
|
20
|
+
export declare const SESSION_LOG_EVENT = "portal-kit:session-log";
|
|
21
|
+
|
|
22
|
+
export declare interface SessionLog {
|
|
23
|
+
event: "migration_trigger" | "migration_success" | "migration_failure" | "cookie_cleanup";
|
|
24
|
+
reason?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
path?: string;
|
|
27
|
+
domain?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
18
30
|
/** 配置由接入应用传入,包构建不读取宿主的 import.meta.env。 */
|
|
19
31
|
export declare interface SharedSessionConfig {
|
|
20
32
|
mode: string;
|
|
33
|
+
/** Root-scope endpoint; inert assets and script-disabled same-origin fallback pages are supported. */
|
|
34
|
+
bridgeUrl?: string;
|
|
35
|
+
historicalCookieNames?: readonly string[];
|
|
36
|
+
historicalCookieDomains?: readonly string[];
|
|
37
|
+
onLog?: (record: SessionLog) => void;
|
|
21
38
|
loginUrl?: string | (() => string);
|
|
39
|
+
/** Site that consumes SSO tickets; defaults to the current page. */
|
|
40
|
+
loginReturnUrl?: string | (() => string);
|
|
22
41
|
sysType?: string | (() => string);
|
|
23
42
|
}
|
|
24
43
|
|
|
@@ -1,81 +1,358 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const I = "portal-session-bridge.html";
|
|
2
|
+
function N(t) {
|
|
3
|
+
return new Promise((n, r) => {
|
|
4
|
+
const a = document.createElement("iframe");
|
|
5
|
+
a.hidden = !0, a.setAttribute("aria-hidden", "true"), a.setAttribute("sandbox", "allow-same-origin"), a.referrerPolicy = "no-referrer";
|
|
6
|
+
const e = setTimeout(i, 5e3);
|
|
7
|
+
function i() {
|
|
8
|
+
clearTimeout(e), a.remove(), r(new Error("BRIDGE_UNAVAILABLE"));
|
|
9
|
+
}
|
|
10
|
+
a.onerror = i, a.onload = () => {
|
|
11
|
+
try {
|
|
12
|
+
const l = a.contentWindow;
|
|
13
|
+
if (!l || l.location.href !== t.href) {
|
|
14
|
+
i();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
l.document.cookie, clearTimeout(e), n(a);
|
|
18
|
+
} catch {
|
|
19
|
+
i();
|
|
20
|
+
}
|
|
21
|
+
}, a.src = t.href, (document.body ?? document.documentElement).append(a);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function B(t = `/${I}`) {
|
|
25
|
+
const n = new URL(t, window.location.href);
|
|
26
|
+
if (n.origin !== window.location.origin || !/^https?:$/.test(n.protocol) || n.pathname !== `/${I}` || n.search || n.hash)
|
|
27
|
+
throw new Error("INVALID_BRIDGE_ORIGIN_OR_PATH");
|
|
28
|
+
const r = /* @__PURE__ */ new Map();
|
|
29
|
+
r.set("/", await N(n));
|
|
30
|
+
const a = [];
|
|
31
|
+
return await Promise.all(
|
|
32
|
+
["/develop/", "/developer/"].map(async (e) => {
|
|
33
|
+
try {
|
|
34
|
+
r.set(
|
|
35
|
+
e,
|
|
36
|
+
await N(new URL(`${e}${I}`, n))
|
|
37
|
+
);
|
|
38
|
+
} catch {
|
|
39
|
+
a.push(e);
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
), {
|
|
43
|
+
read(e) {
|
|
44
|
+
var i, l;
|
|
45
|
+
return ((l = (i = r.get(e)) == null ? void 0 : i.contentDocument) == null ? void 0 : l.cookie) ?? "";
|
|
46
|
+
},
|
|
47
|
+
write(e) {
|
|
48
|
+
r.get("/").contentDocument.cookie = e;
|
|
49
|
+
},
|
|
50
|
+
unavailablePaths: a,
|
|
51
|
+
close() {
|
|
52
|
+
r.forEach((e) => e.remove());
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const F = [
|
|
57
|
+
"/",
|
|
58
|
+
"/develop",
|
|
59
|
+
"/develop/",
|
|
60
|
+
"/developer",
|
|
61
|
+
"/developer/"
|
|
62
|
+
];
|
|
63
|
+
function k(t) {
|
|
64
|
+
return t.split(";").flatMap((n) => {
|
|
65
|
+
const r = n.indexOf("=");
|
|
66
|
+
if (r < 0) return [];
|
|
67
|
+
try {
|
|
68
|
+
return [
|
|
69
|
+
{
|
|
70
|
+
name: n.slice(0, r).trim(),
|
|
71
|
+
value: decodeURIComponent(n.slice(r + 1))
|
|
72
|
+
}
|
|
73
|
+
];
|
|
74
|
+
} catch {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
});
|
|
5
78
|
}
|
|
6
79
|
function O(t) {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
80
|
+
const n = k(t("/"));
|
|
81
|
+
return [
|
|
82
|
+
...n.map((r) => ({ ...r, path: "/" })),
|
|
83
|
+
...["/develop/", "/developer/"].flatMap((r) => {
|
|
84
|
+
const a = [...n];
|
|
85
|
+
return k(t(r)).filter((e) => {
|
|
86
|
+
const i = a.findIndex(
|
|
87
|
+
(l) => l.name === e.name && l.value === e.value
|
|
88
|
+
);
|
|
89
|
+
return i < 0 ? !0 : (a.splice(i, 1), !1);
|
|
90
|
+
}).map((e) => ({ ...e, path: r }));
|
|
91
|
+
})
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
function j(t = []) {
|
|
95
|
+
const n = window.location.hostname, r = n.split("."), a = r.map((e, i) => r.slice(i).join("."));
|
|
96
|
+
return [
|
|
97
|
+
void 0,
|
|
98
|
+
.../* @__PURE__ */ new Set([
|
|
99
|
+
...a,
|
|
100
|
+
...t.map((e) => e.replace(/^\./, ""))
|
|
101
|
+
])
|
|
102
|
+
].filter(
|
|
103
|
+
(e) => e === void 0 || n === e || n.endsWith(`.${e}`)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
const H = /* @__PURE__ */ new Set([
|
|
107
|
+
"401",
|
|
108
|
+
"100001",
|
|
109
|
+
"100004",
|
|
110
|
+
"ACOM0001",
|
|
111
|
+
"ACOM0004",
|
|
112
|
+
"ACOM0007",
|
|
113
|
+
"BCOM0401",
|
|
114
|
+
"PLATFROM0101",
|
|
115
|
+
"ERR2001",
|
|
116
|
+
"IM_A1_0001",
|
|
117
|
+
"UC_A1_0014",
|
|
118
|
+
"UC_A1_0023",
|
|
119
|
+
"UC_A1_0024",
|
|
120
|
+
"UC_A1_0025",
|
|
121
|
+
"UC_A1_0026",
|
|
122
|
+
"UC_A1_0028",
|
|
123
|
+
"UC_A1_0029",
|
|
124
|
+
"UC_A2_0011",
|
|
125
|
+
"AU-003"
|
|
126
|
+
]);
|
|
127
|
+
async function K(t, n) {
|
|
128
|
+
var r, a;
|
|
129
|
+
try {
|
|
130
|
+
const e = await fetch(
|
|
131
|
+
"/gtsp-wop-service-core/portal/user/login-info",
|
|
132
|
+
{
|
|
133
|
+
method: "POST",
|
|
134
|
+
credentials: "same-origin",
|
|
135
|
+
cache: "no-store",
|
|
136
|
+
headers: {
|
|
137
|
+
Authorization: t,
|
|
138
|
+
Systype: n,
|
|
139
|
+
"Content-Type": "application/json"
|
|
140
|
+
},
|
|
141
|
+
body: "{}",
|
|
142
|
+
signal: AbortSignal.timeout(15e3)
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
if (e.status === 401) return "expired";
|
|
146
|
+
if (e.status >= 500) return "unavailable";
|
|
147
|
+
const i = await e.json();
|
|
148
|
+
return (i == null ? void 0 : i.succeed) !== !0 && H.has(String(i == null ? void 0 : i.code)) ? "expired" : e.ok && (i == null ? void 0 : i.succeed) === !0 && ((a = (r = i == null ? void 0 : i.model) == null ? void 0 : r.loginName) != null && a.trim()) ? "valid" : "unavailable";
|
|
149
|
+
} catch {
|
|
150
|
+
return "unavailable";
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function z(t) {
|
|
154
|
+
window.location.assign(t);
|
|
155
|
+
}
|
|
156
|
+
const x = /* @__PURE__ */ new WeakMap(), R = "wop-developer:session-local-change", X = "portal-kit:session-log", v = (t) => (typeof t == "function" ? t() : t ?? "").trim();
|
|
157
|
+
function q(t) {
|
|
158
|
+
const n = new URL(t);
|
|
159
|
+
return n.searchParams.delete("ticket"), n.searchParams.delete("sysType"), n.href;
|
|
160
|
+
}
|
|
161
|
+
function J(t) {
|
|
162
|
+
const n = `WOP-DEVELOPER-TOKEN-${t.mode.toUpperCase()}`, r = `WOP-DEVELOPER-SESSION-${t.mode.toUpperCase()}`, a = () => encodeURIComponent(
|
|
163
|
+
`wop-developer:token:${v(t.loginUrl)}:${v(t.sysType)}`
|
|
164
|
+
);
|
|
165
|
+
let e, i, l = !1;
|
|
166
|
+
const m = new Set(t.historicalCookieNames ?? []), C = typeof window > "u" ? /* @__PURE__ */ new Map() : x.get(window) ?? /* @__PURE__ */ new Map();
|
|
167
|
+
typeof window < "u" && x.set(window, C);
|
|
168
|
+
const _ = () => C.get(r) ?? 0, $ = () => `; Path=/; SameSite=Lax${(typeof location < "u" ? location : window.location).protocol === "https:" ? "; Secure" : ""}`;
|
|
169
|
+
function f(o) {
|
|
170
|
+
var s;
|
|
12
171
|
try {
|
|
13
|
-
|
|
172
|
+
window.dispatchEvent(
|
|
173
|
+
new CustomEvent(X, { detail: o })
|
|
174
|
+
), (s = t.onLog) == null || s.call(t, o);
|
|
14
175
|
} catch {
|
|
15
|
-
return "";
|
|
16
176
|
}
|
|
17
177
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
178
|
+
function E(o) {
|
|
179
|
+
if (o === n || o === a() || m.has(o))
|
|
180
|
+
return !0;
|
|
21
181
|
try {
|
|
22
|
-
|
|
182
|
+
return decodeURIComponent(o).startsWith("wop-developer:token:");
|
|
23
183
|
} catch {
|
|
184
|
+
return !1;
|
|
24
185
|
}
|
|
25
186
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
187
|
+
function D(o) {
|
|
188
|
+
k(o).forEach(({ name: s }) => {
|
|
189
|
+
E(s) && m.add(s);
|
|
190
|
+
});
|
|
28
191
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
192
|
+
function M() {
|
|
193
|
+
const o = /^\/(develop|developer)(\/|$)/.test(
|
|
194
|
+
window.location.pathname
|
|
195
|
+
);
|
|
196
|
+
return k(
|
|
197
|
+
e ? e.read("/") : o && !l ? "" : document.cookie
|
|
198
|
+
);
|
|
31
199
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const n = w(p());
|
|
36
|
-
return n && E(n), n;
|
|
200
|
+
function w() {
|
|
201
|
+
var o;
|
|
202
|
+
return ((o = M().find((s) => s.name === n)) == null ? void 0 : o.value) ?? "";
|
|
37
203
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
204
|
+
function S() {
|
|
205
|
+
try {
|
|
206
|
+
return localStorage.getItem(r);
|
|
207
|
+
} catch {
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function U() {
|
|
212
|
+
var o;
|
|
213
|
+
C.set(r, _() + 1), (o = window.dispatchEvent) == null || o.call(window, new Event(R));
|
|
214
|
+
try {
|
|
215
|
+
localStorage.setItem(r, crypto.randomUUID());
|
|
216
|
+
} catch {
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function L(o) {
|
|
220
|
+
e ? e.write(o) : document.cookie = o;
|
|
221
|
+
}
|
|
222
|
+
function g(o = !1) {
|
|
223
|
+
D(document.cookie), e && O(e.read).forEach(({ name: s }) => {
|
|
224
|
+
E(s) && m.add(s);
|
|
225
|
+
}), m.add(a()), m.add(n);
|
|
226
|
+
for (const s of m)
|
|
227
|
+
for (const c of F)
|
|
228
|
+
if (!(o && s === n && c === "/"))
|
|
229
|
+
for (const p of j(t.historicalCookieDomains))
|
|
230
|
+
L(
|
|
231
|
+
`${s}=; Max-Age=0; Path=${c}; SameSite=Lax${p ? `; Domain=${p}` : ""}${window.location.protocol === "https:" ? "; Secure" : ""}`
|
|
232
|
+
), f({
|
|
233
|
+
event: "cookie_cleanup",
|
|
234
|
+
name: s,
|
|
235
|
+
path: c,
|
|
236
|
+
domain: p ?? "host-only"
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function G(o) {
|
|
240
|
+
g(), o && L(
|
|
241
|
+
`${n}=${encodeURIComponent(o)}${$()}`
|
|
242
|
+
), l = !0, U();
|
|
243
|
+
}
|
|
244
|
+
function P() {
|
|
245
|
+
g(), l = !0, U();
|
|
246
|
+
}
|
|
247
|
+
async function V() {
|
|
248
|
+
var c;
|
|
249
|
+
if (typeof window > "u") return;
|
|
250
|
+
const o = _(), s = S();
|
|
251
|
+
try {
|
|
252
|
+
e = await B(t.bridgeUrl);
|
|
253
|
+
const p = O(e.read);
|
|
254
|
+
if (p.forEach(({ name: d }) => {
|
|
255
|
+
E(d) && m.add(d);
|
|
256
|
+
}), _() !== o || S() !== s) {
|
|
257
|
+
g(!0);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
if (w() || new URL(window.location.href).searchParams.has("ticket"))
|
|
261
|
+
return;
|
|
262
|
+
const u = p.find(
|
|
263
|
+
({ name: d, value: A }) => A && E(d)
|
|
264
|
+
);
|
|
265
|
+
if (!u) {
|
|
266
|
+
(c = e.unavailablePaths) != null && c.length && f({
|
|
267
|
+
event: "migration_failure",
|
|
268
|
+
reason: "legacy_bridge_unavailable"
|
|
269
|
+
});
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
f({ event: "migration_trigger", path: u.path });
|
|
273
|
+
const h = await K(
|
|
274
|
+
u.value,
|
|
275
|
+
v(t.sysType)
|
|
276
|
+
);
|
|
277
|
+
if (_() !== o || S() !== s || w()) {
|
|
278
|
+
f({ event: "migration_failure", reason: "session_changed" });
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
if (!O(e.read).some(
|
|
282
|
+
(d) => d.name === u.name && d.path === u.path && d.value === u.value
|
|
283
|
+
)) {
|
|
284
|
+
f({ event: "migration_failure", reason: "legacy_cookie_removed" });
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
if (h === "unavailable") {
|
|
288
|
+
f({ event: "migration_failure", reason: "validation_unavailable" });
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (h === "expired") {
|
|
292
|
+
f({ event: "migration_failure", reason: "token_expired" }), P(), z(
|
|
293
|
+
T(
|
|
294
|
+
v(t.loginReturnUrl) || window.location.href
|
|
295
|
+
)
|
|
296
|
+
);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
if (L(
|
|
300
|
+
`${n}=${encodeURIComponent(u.value)}${$()}`
|
|
301
|
+
), w() !== u.value) {
|
|
302
|
+
f({ event: "migration_failure", reason: "cookie_write_failed" });
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
g(!0), l = !0, U(), f({ event: "migration_success", path: u.path });
|
|
306
|
+
} catch {
|
|
307
|
+
f({
|
|
308
|
+
event: "migration_failure",
|
|
309
|
+
reason: "bridge_or_configuration_unavailable"
|
|
310
|
+
});
|
|
311
|
+
}
|
|
40
312
|
}
|
|
41
|
-
function
|
|
42
|
-
let
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
if (document.hidden ||
|
|
313
|
+
function W(o, s = {}) {
|
|
314
|
+
let c = w();
|
|
315
|
+
const p = () => {
|
|
316
|
+
c = w();
|
|
317
|
+
}, u = (y = !1) => {
|
|
318
|
+
if (document.hidden || s.focusedOnly && !document.hasFocus())
|
|
47
319
|
return;
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
(
|
|
320
|
+
const b = w();
|
|
321
|
+
b === c && !y || (c = b, o());
|
|
322
|
+
}, h = () => u(s.revalidateOnFocus), d = (y) => {
|
|
323
|
+
(y.key === r || y.key === null) && u();
|
|
52
324
|
};
|
|
53
|
-
window.addEventListener(
|
|
54
|
-
const
|
|
325
|
+
window.addEventListener(R, p), window.addEventListener("storage", d), window.addEventListener("focus", h), document.addEventListener("visibilitychange", h);
|
|
326
|
+
const A = setInterval(u, 3e4);
|
|
55
327
|
return () => {
|
|
56
|
-
clearInterval(
|
|
328
|
+
clearInterval(A), window.removeEventListener(R, p), window.removeEventListener("storage", d), window.removeEventListener("focus", h), document.removeEventListener("visibilitychange", h);
|
|
57
329
|
};
|
|
58
330
|
}
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
if (!
|
|
62
|
-
const
|
|
63
|
-
if (!["https:", "http:"].includes(
|
|
331
|
+
function T(o) {
|
|
332
|
+
const s = v(t.sysType);
|
|
333
|
+
if (!s) throw new Error("登录配置暂不可用");
|
|
334
|
+
const c = new URL(v(t.loginUrl));
|
|
335
|
+
if (!["https:", "http:"].includes(c.protocol))
|
|
64
336
|
throw new Error("登录地址无效");
|
|
65
|
-
return
|
|
337
|
+
return c.searchParams.set("sysType", s), c.searchParams.set("clear", "true"), c.searchParams.set("redirectUrl", q(o)), c.href;
|
|
66
338
|
}
|
|
67
339
|
return {
|
|
68
|
-
tokenCookieName:
|
|
69
|
-
changeKey:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
340
|
+
tokenCookieName: n,
|
|
341
|
+
changeKey: r,
|
|
342
|
+
/** Await once before router/store/component initialization. Repeated reads share one task. */
|
|
343
|
+
get ready() {
|
|
344
|
+
return i ?? (i = V());
|
|
345
|
+
},
|
|
346
|
+
getToken: w,
|
|
347
|
+
setToken: G,
|
|
348
|
+
clearToken: P,
|
|
349
|
+
watch: W,
|
|
350
|
+
buildSsoLoginUrl: T
|
|
75
351
|
};
|
|
76
352
|
}
|
|
77
353
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
354
|
+
R as LOCAL_SESSION_CHANGE_EVENT,
|
|
355
|
+
X as SESSION_LOG_EVENT,
|
|
356
|
+
q as cleanSsoUrl,
|
|
357
|
+
J as createSharedSession
|
|
81
358
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
|
|
3
|
+
/** Emit a script-free, same-origin bridge at the configured Vite base. */
|
|
4
|
+
export function portalSessionBridge() {
|
|
5
|
+
const source = readFileSync(
|
|
6
|
+
new URL("./bridge.html", import.meta.url),
|
|
7
|
+
"utf8",
|
|
8
|
+
);
|
|
9
|
+
let base = "/";
|
|
10
|
+
const serve = (server) => {
|
|
11
|
+
server.middlewares.use((request, response, next) => {
|
|
12
|
+
if (
|
|
13
|
+
![base, "/", "/develop/", "/developer/"].some(
|
|
14
|
+
(path) =>
|
|
15
|
+
request.url?.split("?")[0] === `${path}portal-session-bridge.html`,
|
|
16
|
+
)
|
|
17
|
+
)
|
|
18
|
+
return next();
|
|
19
|
+
response.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
20
|
+
response.setHeader("Cache-Control", "no-store");
|
|
21
|
+
response.setHeader(
|
|
22
|
+
"Content-Security-Policy",
|
|
23
|
+
"default-src 'none'; frame-ancestors 'self'",
|
|
24
|
+
);
|
|
25
|
+
response.end(source);
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
name: "portal-session-bridge",
|
|
30
|
+
configResolved(config) {
|
|
31
|
+
base = config.base;
|
|
32
|
+
},
|
|
33
|
+
configureServer: serve,
|
|
34
|
+
configurePreviewServer: serve,
|
|
35
|
+
generateBundle() {
|
|
36
|
+
this.emitFile({
|
|
37
|
+
type: "asset",
|
|
38
|
+
fileName: "portal-session-bridge.html",
|
|
39
|
+
source,
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.feedback[data-v-eb86abea]{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff;position:fixed;right:24px;bottom:24px;z-index:30;width:56px}.feedback.is-placed[data-v-eb86abea]{right:auto;bottom:auto}.feedback-panel[data-v-eb86abea]{position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 112px));padding:20px;overflow:auto;background:#fff;border:1px solid #e5e6eb;border-radius:12px;box-shadow:0 4px 12px #0d253d1a}.feedback-panel.is-on-right[data-v-eb86abea]{right:auto;left:0}.feedback-panel.is-below[data-v-eb86abea]{top:72px;bottom:auto}.feedback-head[data-v-eb86abea]{display:flex;align-items:center;justify-content:space-between}.feedback-head h2[data-v-eb86abea]{margin:0;color:#1d2129;font-weight:600;font-size:16px;line-height:24px}.feedback-close[data-v-eb86abea]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;color:#86909c;font-size:20px;line-height:1;background:transparent;border:0;border-radius:4px;cursor:pointer}.feedback-close[data-v-eb86abea]:hover{color:#1d2129;background:#1d21290f}.feedback-hint[data-v-eb86abea],.feedback-context[data-v-eb86abea]{margin:0;color:#86909c;font-size:12px;line-height:20px}.feedback-hint[data-v-eb86abea]{margin:4px 0 16px}.feedback-scores[data-v-eb86abea]{display:flex;gap:8px;width:100%}.feedback-score[data-v-eb86abea]{flex:1;height:36px;padding:0 4px;color:var(--el-text-color-regular, #606266);font-size:13px;background:var(--el-fill-color-blank, #fff);border:1px solid var(--el-border-color, #dcdfe6);border-radius:6px;cursor:pointer}.feedback-score[data-v-eb86abea]:hover{color:var(--el-text-color-regular, #606266);background:var(--el-fill-color-light, #f5f7fa);border-color:var(--el-border-color-darker, #cdd0d6)}.feedback-score.is-active[data-v-eb86abea],.feedback-score.is-active[data-v-eb86abea]:hover{color:var(--el-color-primary, #165dff);font-weight:600;background:var(--el-fill-color-blank, #fff);border-color:var(--el-color-primary, #165dff)}.feedback-panel[data-v-eb86abea] .el-form-item{margin-bottom:16px}.feedback-panel[data-v-eb86abea] .el-radio{margin-right:16px}.feedback-context[data-v-eb86abea]{margin-bottom:16px}.feedback-actions[data-v-eb86abea]{display:flex;gap:8px;justify-content:flex-end}.feedback-mark[data-v-eb86abea]{display:block;width:28px;height:28px;object-fit:contain;pointer-events:none}.feedback-frame[data-v-eb86abea]{transform-box:fill-box;transform-origin:center}.feedback-frame.is-hopping[data-v-eb86abea]{animation:feedback-frame-hop-eb86abea 2.8s cubic-bezier(.37,.08,.2,1) infinite}@keyframes feedback-frame-hop-eb86abea{0%,42%,to{transform:translateY(0)}14%{transform:translateY(-3.2px)}26%{transform:translateY(0)}34%{transform:translateY(-1.2px)}}.feedback-entry[data-v-eb86abea]{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;color:#fff;background:#3c4043;border:0;border-radius:50%;box-shadow:0 2px 8px #1f23291f;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.feedback.is-dragging .feedback-entry[data-v-eb86abea]{cursor:grabbing}.feedback-entry[data-v-eb86abea]:hover,.feedback-entry[aria-expanded=true][data-v-eb86abea]{background:#2a2d31}.feedback-entry[data-v-eb86abea]:focus-visible,.feedback-close[data-v-eb86abea]:focus-visible,.feedback-score[data-v-eb86abea]:focus-visible{outline:2px solid var(--el-color-primary, #165dff);outline-offset:3px}.selection-comment-trigger[data-v-71561f2f]{position:fixed;z-index:3000;display:grid;width:36px;height:36px;padding:0;color:#1f2329;background:#fff;border:1px solid #e5e6eb;border-radius:8px;box-shadow:0 4px 16px #1f23291f;place-items:center;cursor:pointer}.selection-comment-trigger svg[data-v-71561f2f]{width:18px;height:18px}.selection-comment-trigger[data-v-71561f2f]:hover{color:#165dff;border-color:#165dff}.selection-comment-dialog{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff}.selection-comment-label{margin:0 0 8px;color:var(--el-text-color-regular, #606266);font-size:14px}.selection-comment-quote{margin:0 0 16px;padding:8px 12px;color:#1f2329;font-size:14px;line-height:1.6;background:#f7f8fa;border-left:3px solid #165dff}.selection-comment-field{display:block}.selection-comment-field textarea{box-sizing:border-box;width:100%;padding:8px 12px;color:#1f2329;font:inherit;border:1px solid #dcdfe6;border-radius:4px;resize:vertical}.selection-comment-field textarea:focus{border-color:#165dff;outline:none}.selection-comment-error{margin:8px 0 0;color:var(--el-color-danger, #f53f3f);font-size:13px}.portal-code-theme{--portal-code-background: #f7f8fa;--portal-code-foreground: #1f2329;--portal-code-border: #e5e7eb;--portal-code-font-size: 12.5px;--portal-code-line-height: 1.65;--portal-code-font-family: var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);--portal-code-comment: #6a737d;--portal-code-keyword: #d73a49;--portal-code-attr: #b2632a;--portal-code-string: #3a7d44;--portal-code-number: #2468f2;--portal-code-literal: #7c3aed;--portal-code-title: #6f42c1;--portal-code-punctuation: #4e5969;--portal-code-variable: #d73a49;--portal-code-builtin: #005cc5;--portal-code-tag: #22863a;--portal-code-meta: #005cc5}.portal-code-theme .hljs-comment,.portal-code-theme .hljs-quote{color:var(--portal-code-comment)}.portal-code-theme ::highlight(portal-code-comment){color:var(--portal-code-comment)}.portal-code-theme .hljs-keyword,.portal-code-theme .hljs-doctag,.portal-code-theme .hljs-selector-tag{color:var(--portal-code-keyword)}.portal-code-theme ::highlight(portal-code-keyword){color:var(--portal-code-keyword)}.portal-code-theme .hljs-attr,.portal-code-theme .hljs-attribute{color:var(--portal-code-attr)}.portal-code-theme ::highlight(portal-code-attr){color:var(--portal-code-attr)}.portal-code-theme .hljs-string,.portal-code-theme .hljs-regexp,.portal-code-theme .hljs-template-tag{color:var(--portal-code-string)}.portal-code-theme ::highlight(portal-code-string){color:var(--portal-code-string)}.portal-code-theme .hljs-number{color:var(--portal-code-number)}.portal-code-theme ::highlight(portal-code-number){color:var(--portal-code-number)}.portal-code-theme .hljs-literal,.portal-code-theme .hljs-symbol,.portal-code-theme .hljs-bullet{color:var(--portal-code-literal)}.portal-code-theme ::highlight(portal-code-literal){color:var(--portal-code-literal)}.portal-code-theme .hljs-title,.portal-code-theme .hljs-section,.portal-code-theme .hljs-selector-id,.portal-code-theme .hljs-selector-class{color:var(--portal-code-title)}.portal-code-theme ::highlight(portal-code-title){color:var(--portal-code-title)}.portal-code-theme .hljs-punctuation{color:var(--portal-code-punctuation)}.portal-code-theme ::highlight(portal-code-punctuation){color:var(--portal-code-punctuation)}.portal-code-theme .hljs-variable,.portal-code-theme .hljs-template-variable{color:var(--portal-code-variable)}.portal-code-theme ::highlight(portal-code-variable){color:var(--portal-code-variable)}.portal-code-theme .hljs-built_in,.portal-code-theme .hljs-type{color:var(--portal-code-builtin)}.portal-code-theme ::highlight(portal-code-builtin){color:var(--portal-code-builtin)}.portal-code-theme .hljs-name,.portal-code-theme .hljs-tag{color:var(--portal-code-tag)}.portal-code-theme ::highlight(portal-code-tag){color:var(--portal-code-tag)}.portal-code-theme .hljs-meta{color:var(--portal-code-meta)}.portal-code-theme ::highlight(portal-code-meta){color:var(--portal-code-meta)}.portal-code-theme .hljs-subst{color:var(--portal-code-foreground)}.portal-code-theme ::highlight(portal-code-plain){color:var(--portal-code-foreground)}.portal-code-preview[data-v-a98b0c8e]{min-width:0;max-width:100%;margin:0 0 14px;overflow:hidden;color:var(--portal-code-foreground);text-align:left;background:var(--portal-code-background);border:1px solid var(--portal-code-border);border-radius:8px}.portal-code-preview__bar[data-v-a98b0c8e]{display:flex;gap:10px;align-items:center;justify-content:space-between;box-sizing:border-box;height:40px;padding:0 12px;border-bottom:1px solid #e5e6eb}.portal-code-preview__title[data-v-a98b0c8e]{color:var(--portal-code-foreground);font-weight:600;font-size:14px}.portal-code-preview__copy[data-v-a98b0c8e]{--el-button-size: 28px;color:#4e5969}.portal-code-preview__copy[data-v-a98b0c8e]:hover,.portal-code-preview__copy[data-v-a98b0c8e]:focus-visible{color:var(--portal-markdown-link-color, #2468f2)}.portal-code-preview .portal-code-preview__content[data-v-a98b0c8e]{box-sizing:border-box;width:100%;min-height:120px;max-height:420px;margin:0;padding:14px 16px;overflow:auto;color:var(--portal-code-foreground);font-size:var(--portal-code-font-size);font-family:var(--portal-code-font-family);line-height:var(--portal-code-line-height);white-space:pre;word-break:normal;overflow-wrap:normal;background:var(--portal-code-background);border:0;border-radius:0;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#cdd3e2 var(--portal-code-background)}.portal-code-preview .portal-code-preview__content>code[data-v-a98b0c8e]{display:block;margin:0;padding:0;color:inherit;font:inherit;white-space:inherit;word-break:normal;overflow-wrap:normal;background:transparent;border:0;border-radius:0}.portal-markdown-preview{min-width:0;color:var(--portal-markdown-text-color, #646a73);font-size:var(--portal-markdown-font-size, 15px);line-height:var(--portal-markdown-line-height, 1.78);text-align:justify;overflow-wrap:break-word}.portal-markdown-preview :where(h1,h2,h3,h4,h5,h6){margin:32px 0 12px;color:var(--portal-markdown-heading-color, #1f2329);font-weight:700;line-height:1.4;scroll-margin-top:var(--portal-markdown-anchor-offset, 84px)}.portal-markdown-preview.vditor-wysiwyg :where(h1,h2,h3,h4,h5,h6),.portal-markdown-preview.vditor-ir :where(h1,h2,h3,h4,h5,h6){margin:32px 0 12px;color:var(--portal-markdown-heading-color, #1f2329);font-weight:700;line-height:1.4;scroll-margin-top:var(--portal-markdown-anchor-offset, 84px)}.portal-markdown-preview :where(h1){font-size:24px}.portal-markdown-preview.vditor-wysiwyg h1,.portal-markdown-preview.vditor-ir h1{font-size:24px}.portal-markdown-preview :where(h2){font-size:19px}.portal-markdown-preview.vditor-wysiwyg h2,.portal-markdown-preview.vditor-ir h2{font-size:19px}.portal-markdown-preview :where(h3){font-size:16px}.portal-markdown-preview.vditor-wysiwyg h3,.portal-markdown-preview.vditor-ir h3{font-size:16px}.portal-markdown-preview :where(h4){font-size:15px}.portal-markdown-preview.vditor-wysiwyg h4,.portal-markdown-preview.vditor-ir h4{font-size:15px}.portal-markdown-preview :where(h5,h6){font-size:14px}.portal-markdown-preview.vditor-wysiwyg h5,.portal-markdown-preview.vditor-wysiwyg h6,.portal-markdown-preview.vditor-ir h5,.portal-markdown-preview.vditor-ir h6{font-size:14px}.portal-markdown-preview__content>:first-child{margin-top:0}.portal-markdown-preview__content>:last-child{margin-bottom:0}.portal-markdown-preview :where(h1,h2,h3,h4,h5,h6):target{border-radius:6px;box-shadow:0 0 0 4px #4f5df01f}.portal-markdown-preview.vditor-wysiwyg :where(h1,h2,h3,h4,h5,h6):target,.portal-markdown-preview.vditor-ir :where(h1,h2,h3,h4,h5,h6):target{border-radius:6px;box-shadow:0 0 0 4px #4f5df01f}.portal-markdown-preview :where(p){margin:0 0 14px}.portal-markdown-preview.vditor-wysiwyg p,.portal-markdown-preview.vditor-ir p{margin:0 0 14px}.portal-markdown-preview :where(a){color:var(--portal-markdown-link-color, #2468f2);text-decoration:none;border-bottom:1px solid currentColor}.portal-markdown-preview.vditor-wysiwyg a,.portal-markdown-preview.vditor-ir a{color:var(--portal-markdown-link-color, #2468f2);text-decoration:none;border-bottom:1px solid currentColor}.portal-markdown-preview :where(a:hover){opacity:.8}.portal-markdown-preview.vditor-wysiwyg a:hover,.portal-markdown-preview.vditor-wysiwyg a:focus-visible,.portal-markdown-preview.vditor-ir a:hover,.portal-markdown-preview.vditor-ir a:focus-visible{opacity:.8}.portal-markdown-preview :where(strong){font-weight:600}.portal-markdown-preview.vditor-wysiwyg strong,.portal-markdown-preview.vditor-ir strong{font-weight:600}.portal-markdown-preview :where(ul,ol){margin:0 0 16px;padding-left:22px}.portal-markdown-preview.vditor-wysiwyg ul,.portal-markdown-preview.vditor-wysiwyg ol,.portal-markdown-preview.vditor-ir ul,.portal-markdown-preview.vditor-ir ol{margin:0 0 16px;padding-left:22px}.portal-markdown-preview :where(ul){list-style:disc}.portal-markdown-preview.vditor-wysiwyg ul,.portal-markdown-preview.vditor-ir ul{list-style:disc}.portal-markdown-preview :where(ol){list-style:decimal}.portal-markdown-preview.vditor-wysiwyg ol,.portal-markdown-preview.vditor-ir ol{list-style:decimal}.portal-markdown-preview :where(ul ul){list-style:circle}.portal-markdown-preview.vditor-wysiwyg ul ul,.portal-markdown-preview.vditor-ir ul ul{list-style:circle}.portal-markdown-preview :where(ul ul ul){list-style:square}.portal-markdown-preview.vditor-wysiwyg ul ul ul,.portal-markdown-preview.vditor-ir ul ul ul{list-style:square}.portal-markdown-preview :where(li){margin:6px 0}.portal-markdown-preview.vditor-wysiwyg li,.portal-markdown-preview.vditor-ir li{margin:6px 0}.portal-markdown-preview :where(li::marker){color:#8f959e}.portal-markdown-preview.vditor-wysiwyg li::marker,.portal-markdown-preview.vditor-ir li::marker{color:#8f959e}.portal-markdown-preview :where(input[type=checkbox]){margin:0 6px 0 0}.portal-markdown-preview.vditor-wysiwyg input[type=checkbox],.portal-markdown-preview.vditor-ir input[type=checkbox]{margin:0 6px 0 0}.portal-markdown-preview :where(blockquote){margin:0 0 16px;padding:12px 16px;background:linear-gradient(135deg,#4f5df014,#7c3aed0f);border-left:3px solid var(--portal-markdown-link-color, #2468f2);border-radius:0 8px 8px 0}.portal-markdown-preview.vditor-wysiwyg blockquote,.portal-markdown-preview.vditor-ir blockquote{margin:0 0 16px;padding:12px 16px;background:linear-gradient(135deg,#4f5df014,#7c3aed0f);border-left:3px solid var(--portal-markdown-link-color, #2468f2);border-radius:0 8px 8px 0}.portal-markdown-preview :where(blockquote>:last-child){margin-bottom:0}.portal-markdown-preview.vditor-wysiwyg blockquote>:last-child,.portal-markdown-preview.vditor-ir blockquote>:last-child{margin-bottom:0}.portal-markdown-preview .portal-markdown-callout,.portal-markdown-preview.vditor-wysiwyg .callout,.portal-markdown-preview.vditor-ir .callout,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout,.portal-markdown-preview.vditor-ir .portal-markdown-callout{--callout-color: #245eae;--callout-border-color: #abc7ff;--callout-background-color: #f2f6ff;display:grid;grid-template-columns:14px minmax(0,1fr);gap:5px;align-items:start;box-sizing:border-box;margin:20px 0;padding:16px 20px;color:var(--callout-color);line-height:1.6;text-align:left;background:var(--callout-background-color);border:1px solid var(--callout-border-color);border-radius:10px}.portal-markdown-preview .portal-markdown-callout--reminder,.portal-markdown-preview.vditor-wysiwyg .callout--reminder,.portal-markdown-preview.vditor-ir .callout--reminder,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout--reminder,.portal-markdown-preview.vditor-ir .portal-markdown-callout--reminder{--callout-color: #a95b20;--callout-border-color: #ffd59b;--callout-background-color: #fff9f3}.portal-markdown-preview .portal-markdown-callout--warning,.portal-markdown-preview.vditor-wysiwyg .callout--warning,.portal-markdown-preview.vditor-ir .callout--warning,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout--warning,.portal-markdown-preview.vditor-ir .portal-markdown-callout--warning{--callout-color: #b42318;--callout-border-color: #ffb3b8;--callout-background-color: #fff1f2}.portal-markdown-preview .portal-markdown-callout__icon{display:inline-flex;align-items:center;height:1.6em}.portal-markdown-preview .portal-markdown-callout__icon svg{width:14px;height:14px}.portal-markdown-preview .portal-markdown-callout__body>:first-child{margin-top:0}.portal-markdown-preview .portal-markdown-callout__body>:last-child{margin-bottom:0}.portal-markdown-preview.vditor-wysiwyg .callout>:last-child,.portal-markdown-preview.vditor-ir .callout>:last-child,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout>:last-child,.portal-markdown-preview.vditor-ir .portal-markdown-callout>:last-child{margin-bottom:0}.portal-markdown-preview :where(code:not(.portal-code-preview__code)){padding:2px 6px;color:var(--portal-markdown-link-color, #2468f2);font-size:.88em;font-family:var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);background:#f5f6f7;border-radius:5px}.portal-markdown-preview.vditor-wysiwyg code:not(.portal-code-preview__code):not(pre code),.portal-markdown-preview.vditor-ir code:not(.portal-code-preview__code):not(pre code){padding:2px 6px;color:var(--portal-markdown-link-color, #2468f2);font-size:.88em;font-family:var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);background:#f5f6f7;border-radius:5px}.portal-markdown-preview :where(pre:not(.portal-code-preview__content)){margin:0 0 18px;padding:16px 18px;overflow:auto;background:#f5f6f7;border-radius:8px}.portal-markdown-preview.vditor-wysiwyg pre:not(.portal-code-preview__content),.portal-markdown-preview.vditor-ir pre:not(.portal-code-preview__content){margin:0 0 18px;padding:16px 18px;overflow:auto;background:#f5f6f7;border-radius:8px}.portal-markdown-preview :where(img){max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px}.portal-markdown-preview.vditor-wysiwyg img,.portal-markdown-preview.vditor-ir img{max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px}.portal-markdown-preview :where(hr){margin:28px 0;border:0;border-top:1px solid #e5e7eb}.portal-markdown-preview.vditor-wysiwyg hr,.portal-markdown-preview.vditor-ir hr{margin:28px 0;border:0;border-top:1px solid #e5e7eb}.portal-markdown-preview .portal-markdown-link-broken,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-link-broken,.portal-markdown-preview.vditor-ir .portal-markdown-link-broken,.portal-markdown-preview.vditor-wysiwyg .doc-ref-broken,.portal-markdown-preview.vditor-ir .doc-ref-broken{color:#8f959e;text-decoration:line-through;border-bottom:0;cursor:not-allowed}.portal-markdown-preview .portal-markdown-table-scroll{box-sizing:border-box;min-width:0;max-width:100%;margin:0 0 18px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overscroll-behavior-inline:contain}.portal-markdown-preview .portal-markdown-table-scroll:focus-visible{outline:2px solid var(--portal-markdown-link-color, #2468f2);outline-offset:2px}.portal-markdown-preview :where(table){display:table;width:100%;margin:0;color:#646a73;font-size:13px;line-height:1.55;text-align:left;word-break:normal;overflow-wrap:anywhere;border-style:hidden;border-collapse:collapse;border-spacing:0}.portal-markdown-preview.vditor-wysiwyg table,.portal-markdown-preview.vditor-ir table{display:block;width:100%;margin:0;overflow:auto;color:#646a73;font-size:13px;line-height:1.55;text-align:left;word-break:normal;overflow-wrap:anywhere;border-style:hidden;border-collapse:collapse;border-spacing:0}.portal-markdown-preview :where(tr){background:transparent;border:0}.portal-markdown-preview.vditor-wysiwyg table tr,.portal-markdown-preview.vditor-ir table tr{background:transparent;border:0}.portal-markdown-preview :where(th,td){box-sizing:border-box;min-width:96px;padding:10px 12px;white-space:normal;text-align:left;vertical-align:top;background:#fff;border:1px solid #ebeef2}.portal-markdown-preview.vditor-wysiwyg table th,.portal-markdown-preview.vditor-wysiwyg table td,.portal-markdown-preview.vditor-ir table th,.portal-markdown-preview.vditor-ir table td{box-sizing:border-box;min-width:96px;padding:10px 12px;white-space:normal;text-align:left;vertical-align:top;background:#fff;border:1px solid #ebeef2}.portal-markdown-preview :where(th){padding:11px 12px;font-weight:600;font-size:12px;white-space:nowrap;background:#f2f3f5}.portal-markdown-preview.vditor-wysiwyg table th,.portal-markdown-preview.vditor-ir table th{padding:11px 12px;font-weight:600;font-size:12px;white-space:nowrap;background:#f2f3f5}.portal-markdown-preview :where([align=center]){text-align:center}.portal-markdown-preview :where([align=right]){text-align:right}.portal-markdown-preview :where(tbody tr:hover>td){background:#f7faff}.portal-markdown-preview.vditor-wysiwyg table tbody tr:hover>td,.portal-markdown-preview.vditor-ir table tbody tr:hover>td{background:#f7faff}.portal-markdown-preview :where(th>:first-child,td>:first-child){margin-top:0}.portal-markdown-preview :where(th>:last-child,td>:last-child){margin-bottom:0}.portal-callback-cards[data-v-77e0d862]{display:grid;gap:12px;min-width:0;color:#1d2129;font:13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;text-align:left}.portal-callback-card[data-v-77e0d862]{min-width:0;overflow:hidden;background:#fff;border:1px solid #e5e6eb;border-radius:6px}.portal-callback-card__header[data-v-77e0d862]{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;list-style:none;cursor:pointer}.portal-callback-card__header[data-v-77e0d862]::-webkit-details-marker{display:none}.portal-callback-card__header[data-v-77e0d862]:focus-visible,.portal-callback-card__schedule-toggle[data-v-77e0d862]:focus-visible{outline:2px solid #2468f2;outline-offset:-3px}.portal-callback-card__identity[data-v-77e0d862]{display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0;overflow-wrap:anywhere}.portal-callback-card__title[data-v-77e0d862]{margin:0;font-size:13px;font-weight:600}.portal-callback-card__path[data-v-77e0d862]{margin:0;padding:1px 5px;color:#526bff;font:12px/1.5 SFMono-Regular,Consolas,monospace;background:#eef2ff;border:1px solid #d5ddff;border-radius:3px;overflow-wrap:anywhere}.portal-callback-card__status[data-v-77e0d862]{flex-shrink:0;padding:1px 6px;color:#4e5969;font-size:12px;line-height:20px;white-space:nowrap;background:#f2f3f5;border-radius:3px}.portal-callback-card__status--enabled[data-v-77e0d862]{color:#16803c;background:#e8ffea}.portal-callback-card__chevron[data-v-77e0d862]{flex-shrink:0;width:16px;height:16px;color:#86909c}.portal-callback-card[open]>.portal-callback-card__header .portal-callback-card__chevron[data-v-77e0d862]{transform:rotate(180deg)}.portal-callback-card__body[data-v-77e0d862]{margin:0 16px;padding:14px 0 16px;border-top:1px solid #e5e6eb}.portal-callback-card__line[data-v-77e0d862]{display:flex;gap:10px;margin:0 0 10px;overflow-wrap:anywhere}.portal-callback-card__label[data-v-77e0d862]{flex-shrink:0;color:#4e5969;font-weight:500}.portal-callback-card__description[data-v-77e0d862]{white-space:pre-wrap}.portal-callback-card__policy[data-v-77e0d862]{display:flex;flex-wrap:wrap;gap:12px 28px;margin:14px 0;padding:12px;background:#f4f7fd;border:1px solid #e5ecf8;border-radius:4px}.portal-callback-card__setting[data-v-77e0d862]{min-width:0}.portal-callback-card__setting--delay[data-v-77e0d862]{flex:1 1 240px}.portal-callback-card__setting>dt[data-v-77e0d862]{margin:0 0 4px;color:#65758e;font-size:12px}.portal-callback-card__setting>dd[data-v-77e0d862]{margin:0;overflow-wrap:anywhere}.portal-callback-card__retry-count[data-v-77e0d862]{color:#245eae;font-weight:600}.portal-callback-card__required[data-v-77e0d862]{display:inline-block;padding:0 6px;color:#4e5969;background:#e9edf3;border-radius:3px}.portal-callback-card__required--yes[data-v-77e0d862]{color:#9a5517;background:#fff0db}.portal-callback-card__schedule[data-v-77e0d862]{margin-top:12px}.portal-callback-card__schedule-toggle[data-v-77e0d862]{color:#4e5969;font-size:12px;cursor:pointer}.portal-callback-card__table-wrap[data-v-77e0d862]{margin-top:8px;overflow-x:auto}.portal-callback-card__table[data-v-77e0d862]{width:100%;margin:0;font:inherit;text-align:left;border-collapse:collapse}.portal-callback-card__table th[data-v-77e0d862],.portal-callback-card__table td[data-v-77e0d862]{padding:8px 10px;color:#4e5969;font-weight:400;border:1px solid #e5e6eb}.portal-callback-card__table th[data-v-77e0d862]{background:#f7f8fa}.portal-callback-card__fields[data-v-77e0d862]{table-layout:fixed}.portal-callback-card__fields th[data-v-77e0d862],.portal-callback-card__fields td[data-v-77e0d862]{overflow-wrap:anywhere}.portal-callback-card__fields th[data-v-77e0d862]:first-child{width:40%}.portal-callback-card__fields th[data-v-77e0d862]:nth-child(2){width:16%}.portal-callback-card__note[data-v-77e0d862]{margin:12px 0 0;color:#86909c;font-size:12px}@media(max-width:600px){.portal-callback-card__header[data-v-77e0d862]{gap:8px;padding:12px}.portal-callback-card__body[data-v-77e0d862]{margin:0 12px;padding:12px 0}.portal-callback-card__setting--delay[data-v-77e0d862]{flex-basis:100%}}
|
|
1
|
+
.feedback[data-v-eb86abea]{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff;position:fixed;right:24px;bottom:24px;z-index:30;width:56px}.feedback.is-placed[data-v-eb86abea]{right:auto;bottom:auto}.feedback-panel[data-v-eb86abea]{position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 112px));padding:20px;overflow:auto;background:#fff;border:1px solid #e5e6eb;border-radius:12px;box-shadow:0 4px 12px #0d253d1a}.feedback-panel.is-on-right[data-v-eb86abea]{right:auto;left:0}.feedback-panel.is-below[data-v-eb86abea]{top:72px;bottom:auto}.feedback-head[data-v-eb86abea]{display:flex;align-items:center;justify-content:space-between}.feedback-head h2[data-v-eb86abea]{margin:0;color:#1d2129;font-weight:600;font-size:16px;line-height:24px}.feedback-close[data-v-eb86abea]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;color:#86909c;font-size:20px;line-height:1;background:transparent;border:0;border-radius:4px;cursor:pointer}.feedback-close[data-v-eb86abea]:hover{color:#1d2129;background:#1d21290f}.feedback-hint[data-v-eb86abea],.feedback-context[data-v-eb86abea]{margin:0;color:#86909c;font-size:12px;line-height:20px}.feedback-hint[data-v-eb86abea]{margin:4px 0 16px}.feedback-scores[data-v-eb86abea]{display:flex;gap:8px;width:100%}.feedback-score[data-v-eb86abea]{flex:1;height:36px;padding:0 4px;color:var(--el-text-color-regular, #606266);font-size:13px;background:var(--el-fill-color-blank, #fff);border:1px solid var(--el-border-color, #dcdfe6);border-radius:6px;cursor:pointer}.feedback-score[data-v-eb86abea]:hover{color:var(--el-text-color-regular, #606266);background:var(--el-fill-color-light, #f5f7fa);border-color:var(--el-border-color-darker, #cdd0d6)}.feedback-score.is-active[data-v-eb86abea],.feedback-score.is-active[data-v-eb86abea]:hover{color:var(--el-color-primary, #165dff);font-weight:600;background:var(--el-fill-color-blank, #fff);border-color:var(--el-color-primary, #165dff)}.feedback-panel[data-v-eb86abea] .el-form-item{margin-bottom:16px}.feedback-panel[data-v-eb86abea] .el-radio{margin-right:16px}.feedback-context[data-v-eb86abea]{margin-bottom:16px}.feedback-actions[data-v-eb86abea]{display:flex;gap:8px;justify-content:flex-end}.feedback-mark[data-v-eb86abea]{display:block;width:28px;height:28px;object-fit:contain;pointer-events:none}.feedback-frame[data-v-eb86abea]{transform-box:fill-box;transform-origin:center}.feedback-frame.is-hopping[data-v-eb86abea]{animation:feedback-frame-hop-eb86abea 2.8s cubic-bezier(.37,.08,.2,1) infinite}@keyframes feedback-frame-hop-eb86abea{0%,42%,to{transform:translateY(0)}14%{transform:translateY(-3.2px)}26%{transform:translateY(0)}34%{transform:translateY(-1.2px)}}.feedback-entry[data-v-eb86abea]{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;color:#fff;background:#3c4043;border:0;border-radius:50%;box-shadow:0 2px 8px #1f23291f;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.feedback.is-dragging .feedback-entry[data-v-eb86abea]{cursor:grabbing}.feedback-entry[data-v-eb86abea]:hover,.feedback-entry[aria-expanded=true][data-v-eb86abea]{background:#2a2d31}.feedback-entry[data-v-eb86abea]:focus-visible,.feedback-close[data-v-eb86abea]:focus-visible,.feedback-score[data-v-eb86abea]:focus-visible{outline:2px solid var(--el-color-primary, #165dff);outline-offset:3px}.selection-comment-trigger[data-v-71561f2f]{position:fixed;z-index:3000;display:grid;width:36px;height:36px;padding:0;color:#1f2329;background:#fff;border:1px solid #e5e6eb;border-radius:8px;box-shadow:0 4px 16px #1f23291f;place-items:center;cursor:pointer}.selection-comment-trigger svg[data-v-71561f2f]{width:18px;height:18px}.selection-comment-trigger[data-v-71561f2f]:hover{color:#165dff;border-color:#165dff}.selection-comment-dialog{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff}.selection-comment-label{margin:0 0 8px;color:var(--el-text-color-regular, #606266);font-size:14px}.selection-comment-quote{margin:0 0 16px;padding:8px 12px;color:#1f2329;font-size:14px;line-height:1.6;background:#f7f8fa;border-left:3px solid #165dff}.selection-comment-field{display:block}.selection-comment-field textarea{box-sizing:border-box;width:100%;padding:8px 12px;color:#1f2329;font:inherit;border:1px solid #dcdfe6;border-radius:4px;resize:vertical}.selection-comment-field textarea:focus{border-color:#165dff;outline:none}.selection-comment-error{margin:8px 0 0;color:var(--el-color-danger, #f53f3f);font-size:13px}.portal-code-theme{--portal-code-background: #f7f8fa;--portal-code-foreground: #1f2329;--portal-code-border: #e5e7eb;--portal-code-font-size: 12.5px;--portal-code-line-height: 1.65;--portal-code-font-family: var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);--portal-code-comment: #6a737d;--portal-code-keyword: #d73a49;--portal-code-attr: #b2632a;--portal-code-string: #3a7d44;--portal-code-number: #2468f2;--portal-code-literal: #7c3aed;--portal-code-title: #6f42c1;--portal-code-punctuation: #4e5969;--portal-code-variable: #d73a49;--portal-code-builtin: #005cc5;--portal-code-tag: #22863a;--portal-code-meta: #005cc5}.portal-code-theme .hljs-comment,.portal-code-theme .hljs-quote{color:var(--portal-code-comment)}.portal-code-theme ::highlight(portal-code-comment){color:var(--portal-code-comment)}.portal-code-theme .hljs-keyword,.portal-code-theme .hljs-doctag,.portal-code-theme .hljs-selector-tag{color:var(--portal-code-keyword)}.portal-code-theme ::highlight(portal-code-keyword){color:var(--portal-code-keyword)}.portal-code-theme .hljs-attr,.portal-code-theme .hljs-attribute{color:var(--portal-code-attr)}.portal-code-theme ::highlight(portal-code-attr){color:var(--portal-code-attr)}.portal-code-theme .hljs-string,.portal-code-theme .hljs-regexp,.portal-code-theme .hljs-template-tag{color:var(--portal-code-string)}.portal-code-theme ::highlight(portal-code-string){color:var(--portal-code-string)}.portal-code-theme .hljs-number{color:var(--portal-code-number)}.portal-code-theme ::highlight(portal-code-number){color:var(--portal-code-number)}.portal-code-theme .hljs-literal,.portal-code-theme .hljs-symbol,.portal-code-theme .hljs-bullet{color:var(--portal-code-literal)}.portal-code-theme ::highlight(portal-code-literal){color:var(--portal-code-literal)}.portal-code-theme .hljs-title,.portal-code-theme .hljs-section,.portal-code-theme .hljs-selector-id,.portal-code-theme .hljs-selector-class{color:var(--portal-code-title)}.portal-code-theme ::highlight(portal-code-title){color:var(--portal-code-title)}.portal-code-theme .hljs-punctuation{color:var(--portal-code-punctuation)}.portal-code-theme ::highlight(portal-code-punctuation){color:var(--portal-code-punctuation)}.portal-code-theme .hljs-variable,.portal-code-theme .hljs-template-variable{color:var(--portal-code-variable)}.portal-code-theme ::highlight(portal-code-variable){color:var(--portal-code-variable)}.portal-code-theme .hljs-built_in,.portal-code-theme .hljs-type{color:var(--portal-code-builtin)}.portal-code-theme ::highlight(portal-code-builtin){color:var(--portal-code-builtin)}.portal-code-theme .hljs-name,.portal-code-theme .hljs-tag{color:var(--portal-code-tag)}.portal-code-theme ::highlight(portal-code-tag){color:var(--portal-code-tag)}.portal-code-theme .hljs-meta{color:var(--portal-code-meta)}.portal-code-theme ::highlight(portal-code-meta){color:var(--portal-code-meta)}.portal-code-theme .hljs-subst{color:var(--portal-code-foreground)}.portal-code-theme ::highlight(portal-code-plain){color:var(--portal-code-foreground)}.portal-code-preview[data-v-d2c9290b]{min-width:0;max-width:100%;margin:0 0 14px;overflow:hidden;color:var(--portal-code-foreground);text-align:left;background:var(--portal-code-background);border:1px solid var(--portal-code-border);border-radius:8px}.portal-code-preview__bar[data-v-d2c9290b]{display:flex;gap:10px;align-items:center;justify-content:space-between;box-sizing:border-box;height:40px;padding:0 12px;border-bottom:1px solid #e5e6eb}.portal-code-preview__title[data-v-d2c9290b]{color:var(--portal-code-foreground);font-weight:600;font-size:14px}.portal-code-preview__copy[data-v-d2c9290b]{--el-button-size: 28px;color:#4e5969}.portal-code-preview__copy[data-v-d2c9290b]:hover,.portal-code-preview__copy[data-v-d2c9290b]:focus-visible{color:var(--portal-markdown-link-color, #2468f2)}.portal-code-preview .portal-code-preview__content[data-v-d2c9290b]{box-sizing:border-box;width:100%;min-height:120px;max-height:420px;margin:0;padding:14px 16px;overflow:auto;color:var(--portal-code-foreground);font-size:var(--portal-code-font-size);font-family:var(--portal-code-font-family);line-height:var(--portal-code-line-height);white-space:pre;word-break:normal;overflow-wrap:normal;background:var(--portal-code-background);border:0;border-radius:0;overscroll-behavior-inline:contain}.portal-code-preview .portal-code-preview__content[data-v-d2c9290b],.portal-code-preview .portal-code-preview__content>code[data-v-d2c9290b]{scrollbar-width:none}.portal-code-preview .portal-code-preview__content[data-v-d2c9290b]::-webkit-scrollbar,.portal-code-preview .portal-code-preview__content>code[data-v-d2c9290b]::-webkit-scrollbar{display:none}.portal-code-preview .portal-code-preview__content>code[data-v-d2c9290b]{display:block;margin:0;padding:0;color:inherit;font:inherit;white-space:inherit;word-break:normal;overflow-wrap:normal;background:transparent;border:0;border-radius:0}.portal-markdown-preview{min-width:0;color:var(--portal-markdown-text-color, #646a73);font-size:var(--portal-markdown-font-size, 15px);line-height:var(--portal-markdown-line-height, 1.78);text-align:justify;overflow-wrap:break-word}.vditor--fullscreen .portal-markdown-preview.vditor-wysiwyg>pre.vditor-reset,.vditor--fullscreen .portal-markdown-preview.vditor-ir>pre.vditor-reset,.vditor--fullscreen>.vditor-content>textarea.vditor-sv{overflow-y:auto;scrollbar-width:auto;scrollbar-color:auto}.vditor--fullscreen .portal-markdown-preview.vditor-wysiwyg>pre.vditor-reset::-webkit-scrollbar,.vditor--fullscreen .portal-markdown-preview.vditor-ir>pre.vditor-reset::-webkit-scrollbar,.vditor--fullscreen>.vditor-content>textarea.vditor-sv::-webkit-scrollbar{display:block;width:8px;height:8px}.vditor--fullscreen .portal-markdown-preview.vditor-wysiwyg>pre.vditor-reset::-webkit-scrollbar-thumb,.vditor--fullscreen .portal-markdown-preview.vditor-ir>pre.vditor-reset::-webkit-scrollbar-thumb,.vditor--fullscreen>.vditor-content>textarea.vditor-sv::-webkit-scrollbar-thumb{background-color:var(--el-border-color-darker, #cdd3e2);border-radius:4px}.portal-markdown-preview.vditor-wysiwyg>.vditor-reset>:is(h1,h2,h3,h4,h5,h6):before,.portal-markdown-preview.vditor-ir>.vditor-reset>:is(h1,h2,h3,h4,h5,h6):before,.portal-markdown-preview.vditor-wysiwyg div.vditor-wysiwyg__block:before{content:none}.portal-markdown-preview :where(h1,h2,h3,h4,h5,h6){margin:32px 0 12px;color:var(--portal-markdown-heading-color, #1f2329);font-weight:700;line-height:1.4;scroll-margin-top:var(--portal-markdown-anchor-offset, 84px)}.portal-markdown-preview.vditor-wysiwyg :where(h1,h2,h3,h4,h5,h6),.portal-markdown-preview.vditor-ir :where(h1,h2,h3,h4,h5,h6){margin:32px 0 12px;color:var(--portal-markdown-heading-color, #1f2329);font-weight:700;line-height:1.4;scroll-margin-top:var(--portal-markdown-anchor-offset, 84px)}.portal-markdown-preview :where(h1){font-size:24px}.portal-markdown-preview.vditor-wysiwyg h1,.portal-markdown-preview.vditor-ir h1{font-size:24px}.portal-markdown-preview :where(h2){font-size:19px}.portal-markdown-preview.vditor-wysiwyg h2,.portal-markdown-preview.vditor-ir h2{font-size:19px}.portal-markdown-preview :where(h3){font-size:16px}.portal-markdown-preview.vditor-wysiwyg h3,.portal-markdown-preview.vditor-ir h3{font-size:16px}.portal-markdown-preview :where(h4){font-size:15px}.portal-markdown-preview.vditor-wysiwyg h4,.portal-markdown-preview.vditor-ir h4{font-size:15px}.portal-markdown-preview :where(h5,h6){font-size:14px}.portal-markdown-preview.vditor-wysiwyg h5,.portal-markdown-preview.vditor-wysiwyg h6,.portal-markdown-preview.vditor-ir h5,.portal-markdown-preview.vditor-ir h6{font-size:14px}.portal-markdown-preview__content>:first-child{margin-top:0}.portal-markdown-preview__content>:last-child{margin-bottom:0}.portal-markdown-preview :where(h1,h2,h3,h4,h5,h6):target{border-radius:6px;box-shadow:0 0 0 4px #4f5df01f}.portal-markdown-preview.vditor-wysiwyg :where(h1,h2,h3,h4,h5,h6):target,.portal-markdown-preview.vditor-ir :where(h1,h2,h3,h4,h5,h6):target{border-radius:6px;box-shadow:0 0 0 4px #4f5df01f}.portal-markdown-preview :where(p){margin:0 0 14px}.portal-markdown-preview.vditor-wysiwyg p,.portal-markdown-preview.vditor-ir p{margin:0 0 14px}.portal-markdown-preview :where(a){color:var(--portal-markdown-link-color, #2468f2);text-decoration:none;border-bottom:1px solid currentColor}.portal-markdown-preview.vditor-wysiwyg a,.portal-markdown-preview.vditor-ir a{color:var(--portal-markdown-link-color, #2468f2);text-decoration:none;border-bottom:1px solid currentColor}.portal-markdown-preview :where(a:hover){opacity:.8}.portal-markdown-preview.vditor-wysiwyg a:hover,.portal-markdown-preview.vditor-wysiwyg a:focus-visible,.portal-markdown-preview.vditor-ir a:hover,.portal-markdown-preview.vditor-ir a:focus-visible{opacity:.8}.portal-markdown-preview :where(strong){font-weight:600}.portal-markdown-preview.vditor-wysiwyg strong,.portal-markdown-preview.vditor-ir strong{font-weight:600}.portal-markdown-preview :where(ul,ol){margin:0 0 16px;padding-left:22px}.portal-markdown-preview.vditor-wysiwyg ul,.portal-markdown-preview.vditor-wysiwyg ol,.portal-markdown-preview.vditor-ir ul,.portal-markdown-preview.vditor-ir ol{margin:0 0 16px;padding-left:22px}.portal-markdown-preview :where(ul){list-style:disc}.portal-markdown-preview.vditor-wysiwyg ul,.portal-markdown-preview.vditor-ir ul{list-style:disc}.portal-markdown-preview :where(ol){list-style:decimal}.portal-markdown-preview.vditor-wysiwyg ol,.portal-markdown-preview.vditor-ir ol{list-style:decimal}.portal-markdown-preview :where(ul ul){list-style:circle}.portal-markdown-preview.vditor-wysiwyg ul ul,.portal-markdown-preview.vditor-ir ul ul{list-style:circle}.portal-markdown-preview :where(ul ul ul){list-style:square}.portal-markdown-preview.vditor-wysiwyg ul ul ul,.portal-markdown-preview.vditor-ir ul ul ul{list-style:square}.portal-markdown-preview :where(li){margin:6px 0}.portal-markdown-preview.vditor-wysiwyg li,.portal-markdown-preview.vditor-ir li{margin:6px 0}.portal-markdown-preview :where(li::marker){color:#8f959e}.portal-markdown-preview.vditor-wysiwyg li::marker,.portal-markdown-preview.vditor-ir li::marker{color:#8f959e}.portal-markdown-preview :where(input[type=checkbox]){margin:0 6px 0 0}.portal-markdown-preview.vditor-wysiwyg input[type=checkbox],.portal-markdown-preview.vditor-ir input[type=checkbox]{margin:0 6px 0 0}.portal-markdown-preview :where(blockquote){margin:0 0 16px;padding:12px 16px;background:linear-gradient(135deg,#4f5df014,#7c3aed0f);border-left:3px solid var(--portal-markdown-link-color, #2468f2);border-radius:0 8px 8px 0}.portal-markdown-preview.vditor-wysiwyg blockquote,.portal-markdown-preview.vditor-ir blockquote{margin:0 0 16px;padding:12px 16px;background:linear-gradient(135deg,#4f5df014,#7c3aed0f);border-left:3px solid var(--portal-markdown-link-color, #2468f2);border-radius:0 8px 8px 0}.portal-markdown-preview :where(blockquote>:last-child){margin-bottom:0}.portal-markdown-preview.vditor-wysiwyg blockquote>:last-child,.portal-markdown-preview.vditor-ir blockquote>:last-child{margin-bottom:0}.portal-markdown-preview .portal-markdown-callout{--callout-color: #245eae;--callout-border-color: #abc7ff;--callout-background-color: #f2f6ff;display:grid;grid-template-columns:14px minmax(0,1fr);gap:5px;align-items:start;box-sizing:border-box;margin:20px 0;padding:16px 20px;color:var(--callout-color);line-height:1.6;text-align:left;background:var(--callout-background-color);border:1px solid var(--callout-border-color);border-radius:10px}.portal-markdown-preview.vditor-wysiwyg .callout,.portal-markdown-preview.vditor-ir .callout,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout,.portal-markdown-preview.vditor-ir .portal-markdown-callout{--callout-color: #245eae;--callout-border-color: #abc7ff;--callout-background-color: #f2f6ff;--callout-icon: url("data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20d='M6.99984%2012.8334C8.61065%2012.8334%2010.069%2012.1805%2011.1246%2011.1249C12.1802%2010.0692%2012.8332%208.6109%2012.8332%207.00008C12.8332%205.38926%2012.1802%203.93093%2011.1246%202.87529C10.069%201.81967%208.61065%201.16675%206.99984%201.16675C5.38902%201.16675%203.93069%201.81967%202.87505%202.87529C1.81942%203.93093%201.1665%205.38926%201.1665%207.00008C1.1665%208.6109%201.81942%2010.0692%202.87505%2011.1249C3.93069%2012.1805%205.38902%2012.8334%206.99984%2012.8334Z'%20stroke='%23184399'%20stroke-width='1.16667'%20stroke-linejoin='round'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.00016%203.20825C7.40287%203.20825%207.72933%203.53471%207.72933%203.93742C7.72933%204.34012%207.40287%204.66659%207.00016%204.66659C6.59746%204.66659%206.271%204.34012%206.271%203.93742C6.271%203.53471%206.59746%203.20825%207.00016%203.20825Z'%20fill='%23184399'%20/%3e%3cpath%20d='M7.14583%209.91659V5.83325H6.85417H6.5625'%20stroke='%23184399'%20stroke-width='1.16667'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3cpath%20d='M6.125%209.91675H8.16667'%20stroke='%23184399'%20stroke-width='1.16667'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/g%3e%3c/svg%3e");display:grid;grid-template-columns:14px minmax(0,1fr);gap:5px;align-items:start;box-sizing:border-box;margin:20px 0;padding:16px 20px;color:var(--callout-color);line-height:1.6;text-align:left;background:var(--callout-background-color);border:1px solid var(--callout-border-color);border-radius:10px}.portal-markdown-preview .portal-markdown-callout--reminder{--callout-color: #a95b20;--callout-border-color: #ffd59b;--callout-background-color: #fff9f3}.portal-markdown-preview.vditor-wysiwyg .callout--reminder,.portal-markdown-preview.vditor-ir .callout--reminder,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout--reminder,.portal-markdown-preview.vditor-ir .portal-markdown-callout--reminder{--callout-color: #a95b20;--callout-border-color: #ffd59b;--callout-background-color: #fff9f3;--callout-icon: url("data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20d='M10.4995%205.24976C10.4993%203.31691%208.9324%201.74976%206.99951%201.74976C5.06677%201.74993%203.49969%203.31701%203.49951%205.24976V10.4998H10.4995V5.24976ZM11.6665%2010.4998H12.8335C13.1555%2010.4999%2013.4165%2010.7617%2013.4165%2011.0837C13.4163%2011.4056%2013.1554%2011.6666%2012.8335%2011.6667H1.1665C0.844447%2011.6667%200.583672%2011.4058%200.583496%2011.0837C0.583496%2010.7616%200.844338%2010.4998%201.1665%2010.4998H2.3335V5.24976C2.33367%202.67268%204.42244%200.583916%206.99951%200.58374C9.57674%200.58374%2011.6663%202.67257%2011.6665%205.24976V10.4998Z'%20fill='%23994C18'%20/%3e%3cpath%20d='M4.31689%205.4707C4.31689%203.87669%205.43246%202.41723%206.99951%202.41699C7.32168%202.41699%207.5835%202.67783%207.5835%203C7.5835%203.32217%207.32168%203.58301%206.99951%203.58301C6.2473%203.58327%205.48291%204.3361%205.48291%205.4707C5.48285%205.79282%205.22203%206.05371%204.8999%206.05371C4.57777%206.05371%204.31696%205.79282%204.31689%205.4707Z'%20fill='%23994C18'%20/%3e%3cpath%20d='M8.4585%2010.5002C8.78051%2010.5004%209.0415%2010.7612%209.0415%2011.0833V11.3752C9.04133%2012.5027%208.12698%2013.4163%206.99951%2013.4163C5.8722%2013.4161%204.95867%2012.5026%204.9585%2011.3752V11.0833C4.9585%2010.7611%205.21934%2010.5002%205.5415%2010.5002H8.4585ZM6.17627%2011.6663C6.29642%2012.0059%206.61876%2012.2501%206.99951%2012.2502C7.38044%2012.2502%207.70357%2012.006%207.82373%2011.6663H6.17627Z'%20fill='%23994C18'%20/%3e%3c/g%3e%3c/svg%3e")}.portal-markdown-preview.vditor-wysiwyg blockquote.callout[data-subtype=WARNING],.portal-markdown-preview.vditor-ir blockquote.callout[data-subtype=WARNING]{--callout-color: #a95b20;--callout-border-color: #ffd59b;--callout-background-color: #fff9f3;--callout-icon: url("data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20d='M10.4995%205.24976C10.4993%203.31691%208.9324%201.74976%206.99951%201.74976C5.06677%201.74993%203.49969%203.31701%203.49951%205.24976V10.4998H10.4995V5.24976ZM11.6665%2010.4998H12.8335C13.1555%2010.4999%2013.4165%2010.7617%2013.4165%2011.0837C13.4163%2011.4056%2013.1554%2011.6666%2012.8335%2011.6667H1.1665C0.844447%2011.6667%200.583672%2011.4058%200.583496%2011.0837C0.583496%2010.7616%200.844338%2010.4998%201.1665%2010.4998H2.3335V5.24976C2.33367%202.67268%204.42244%200.583916%206.99951%200.58374C9.57674%200.58374%2011.6663%202.67257%2011.6665%205.24976V10.4998Z'%20fill='%23994C18'%20/%3e%3cpath%20d='M4.31689%205.4707C4.31689%203.87669%205.43246%202.41723%206.99951%202.41699C7.32168%202.41699%207.5835%202.67783%207.5835%203C7.5835%203.32217%207.32168%203.58301%206.99951%203.58301C6.2473%203.58327%205.48291%204.3361%205.48291%205.4707C5.48285%205.79282%205.22203%206.05371%204.8999%206.05371C4.57777%206.05371%204.31696%205.79282%204.31689%205.4707Z'%20fill='%23994C18'%20/%3e%3cpath%20d='M8.4585%2010.5002C8.78051%2010.5004%209.0415%2010.7612%209.0415%2011.0833V11.3752C9.04133%2012.5027%208.12698%2013.4163%206.99951%2013.4163C5.8722%2013.4161%204.95867%2012.5026%204.9585%2011.3752V11.0833C4.9585%2010.7611%205.21934%2010.5002%205.5415%2010.5002H8.4585ZM6.17627%2011.6663C6.29642%2012.0059%206.61876%2012.2501%206.99951%2012.2502C7.38044%2012.2502%207.70357%2012.006%207.82373%2011.6663H6.17627Z'%20fill='%23994C18'%20/%3e%3c/g%3e%3c/svg%3e")}.portal-markdown-preview .portal-markdown-callout--warning{--callout-color: #b42318;--callout-border-color: #ffb3b8;--callout-background-color: #fff1f2}.portal-markdown-preview.vditor-wysiwyg .callout--warning,.portal-markdown-preview.vditor-ir .callout--warning,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout--warning,.portal-markdown-preview.vditor-ir .portal-markdown-callout--warning{--callout-color: #b42318;--callout-border-color: #ffb3b8;--callout-background-color: #fff1f2;--callout-icon: url("data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.00016%201.45825L0.583496%2012.5416H13.4168L7.00016%201.45825Z'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linejoin='round'%20/%3e%3cpath%20d='M7%2010.2083V10.4999'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linecap='round'%20/%3e%3cpath%20d='M7%205.54175L7.00242%208.45827'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linecap='round'%20/%3e%3c/g%3e%3c/svg%3e")}.portal-markdown-preview.vditor-wysiwyg blockquote.callout[data-subtype=CAUTION],.portal-markdown-preview.vditor-ir blockquote.callout[data-subtype=CAUTION]{--callout-color: #b42318;--callout-border-color: #ffb3b8;--callout-background-color: #fff1f2;--callout-icon: url("data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.00016%201.45825L0.583496%2012.5416H13.4168L7.00016%201.45825Z'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linejoin='round'%20/%3e%3cpath%20d='M7%2010.2083V10.4999'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linecap='round'%20/%3e%3cpath%20d='M7%205.54175L7.00242%208.45827'%20stroke='%23991D18'%20stroke-width='1.16667'%20stroke-linecap='round'%20/%3e%3c/g%3e%3c/svg%3e")}.portal-markdown-preview.vditor-wysiwyg blockquote.callout,.portal-markdown-preview.vditor-ir blockquote.callout{display:block;width:100%;min-width:0;max-width:100%;padding:16px 20px 16px 39px;white-space:normal;word-break:normal;overflow-wrap:anywhere;background-image:var(--callout-icon);background-repeat:no-repeat;background-position:20px calc(9px + .8em);background-size:14px 14px}.portal-markdown-preview.vditor-wysiwyg blockquote.callout:before,.portal-markdown-preview.vditor-ir blockquote.callout:before{background-color:transparent}.portal-markdown-preview.vditor-wysiwyg blockquote.callout>.callout-info,.portal-markdown-preview.vditor-ir blockquote.callout>.callout-info{display:none!important}.portal-markdown-preview.vditor-wysiwyg blockquote.callout>.callout-content,.portal-markdown-preview.vditor-ir blockquote.callout>.callout-content{min-width:0;margin:0;color:var(--callout-color)}.portal-markdown-preview.vditor-wysiwyg blockquote.callout>p:not(.callout-info),.portal-markdown-preview.vditor-ir blockquote.callout>p:not(.callout-info),.portal-markdown-preview.vditor-wysiwyg blockquote.callout>.callout-content>p,.portal-markdown-preview.vditor-ir blockquote.callout>.callout-content>p{display:block;width:100%;min-width:0;max-width:100%;margin:0 0 8px;padding:0;line-height:1.6;white-space:normal;word-break:normal;overflow-wrap:anywhere;border-radius:0}.portal-markdown-preview.vditor-wysiwyg blockquote.callout>:last-child,.portal-markdown-preview.vditor-ir blockquote.callout>:last-child,.portal-markdown-preview.vditor-wysiwyg blockquote.callout>.callout-content>:last-child,.portal-markdown-preview.vditor-ir blockquote.callout>.callout-content>:last-child{margin-bottom:0}.portal-markdown-preview .portal-markdown-callout__icon{display:inline-flex;align-items:center;height:1.6em}.portal-markdown-preview .portal-markdown-callout__icon svg{width:14px;height:14px}.portal-markdown-preview .portal-markdown-callout__body>:first-child{margin-top:0}.portal-markdown-preview .portal-markdown-callout__body>:last-child{margin-bottom:0}.portal-markdown-preview.vditor-wysiwyg .callout>:last-child,.portal-markdown-preview.vditor-ir .callout>:last-child,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-callout>:last-child,.portal-markdown-preview.vditor-ir .portal-markdown-callout>:last-child{margin-bottom:0}.portal-markdown-preview :where(code:not(.portal-code-preview__code)){padding:2px 6px;color:var(--portal-markdown-link-color, #2468f2);font-size:.88em;font-family:var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);background:#f5f6f7;border-radius:5px}.portal-markdown-preview.vditor-wysiwyg code:not(.portal-code-preview__code):not(pre code),.portal-markdown-preview.vditor-ir code:not(.portal-code-preview__code):not(pre code){padding:2px 6px;color:var(--portal-markdown-link-color, #2468f2);font-size:.88em;font-family:var(--portal-markdown-mono, "SFMono-Regular", Consolas, monospace);background:#f5f6f7;border-radius:5px}.portal-markdown-preview :where(pre:not(.portal-code-preview__content)){margin:0 0 18px;padding:16px 18px;overflow:auto;background:#f5f6f7;border-radius:8px}.portal-markdown-preview.vditor-wysiwyg pre:not(.portal-code-preview__content),.portal-markdown-preview.vditor-ir pre:not(.portal-code-preview__content){margin:0 0 18px;padding:16px 18px;overflow:auto;background:#f5f6f7;border-radius:8px}.portal-markdown-preview :where(img){max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px}.portal-markdown-preview.vditor-wysiwyg img,.portal-markdown-preview.vditor-ir img{max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px}.portal-markdown-preview :where(hr){margin:28px 0;border:0;border-top:1px solid #e5e7eb}.portal-markdown-preview.vditor-wysiwyg hr,.portal-markdown-preview.vditor-ir hr{margin:28px 0;border:0;border-top:1px solid #e5e7eb}.portal-markdown-preview .portal-markdown-link-broken,.portal-markdown-preview.vditor-wysiwyg .portal-markdown-link-broken,.portal-markdown-preview.vditor-ir .portal-markdown-link-broken,.portal-markdown-preview.vditor-wysiwyg .doc-ref-broken,.portal-markdown-preview.vditor-ir .doc-ref-broken{color:#8f959e;text-decoration:line-through;border-bottom:0;cursor:not-allowed}.portal-markdown-preview .portal-markdown-table-scroll{box-sizing:border-box;min-width:0;max-width:100%;margin:0 0 18px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overscroll-behavior-inline:contain}.portal-markdown-preview .portal-markdown-table-scroll:focus-visible{outline:2px solid var(--portal-markdown-link-color, #2468f2);outline-offset:2px}.portal-markdown-preview :where(table){display:table;width:100%;margin:0;color:#646a73;font-size:13px;line-height:1.55;text-align:left;word-break:normal;overflow-wrap:anywhere;border-style:hidden;border-collapse:collapse;border-spacing:0}.portal-markdown-preview.vditor-wysiwyg table,.portal-markdown-preview.vditor-ir table{display:block;width:100%;margin:0;overflow:auto;color:#646a73;font-size:13px;line-height:1.55;text-align:left;word-break:normal;overflow-wrap:anywhere;border-style:hidden;border-collapse:collapse;border-spacing:0}.portal-markdown-preview :where(tr){background:transparent;border:0}.portal-markdown-preview.vditor-wysiwyg table tr,.portal-markdown-preview.vditor-ir table tr{background:transparent;border:0}.portal-markdown-preview :where(th,td){box-sizing:border-box;min-width:96px;padding:10px 12px;white-space:normal;text-align:left;vertical-align:top;background:#fff;border:1px solid #ebeef2}.portal-markdown-preview.vditor-wysiwyg table th,.portal-markdown-preview.vditor-wysiwyg table td,.portal-markdown-preview.vditor-ir table th,.portal-markdown-preview.vditor-ir table td{box-sizing:border-box;min-width:96px;padding:10px 12px;white-space:normal;text-align:left;vertical-align:top;background:#fff;border:1px solid #ebeef2}.portal-markdown-preview :where(th){padding:11px 12px;font-weight:600;font-size:12px;white-space:nowrap;background:#f2f3f5}.portal-markdown-preview.vditor-wysiwyg table th,.portal-markdown-preview.vditor-ir table th{padding:11px 12px;font-weight:600;font-size:12px;white-space:nowrap;background:#f2f3f5}.portal-markdown-preview :where([align=center]){text-align:center}.portal-markdown-preview :where([align=right]){text-align:right}.portal-markdown-preview :where(tbody tr:hover>td){background:#f7faff}.portal-markdown-preview.vditor-wysiwyg table tbody tr:hover>td,.portal-markdown-preview.vditor-ir table tbody tr:hover>td{background:#f7faff}.portal-markdown-preview :where(th>:first-child,td>:first-child){margin-top:0}.portal-markdown-preview :where(th>:last-child,td>:last-child){margin-bottom:0}.portal-callback-cards[data-v-77e0d862]{display:grid;gap:12px;min-width:0;color:#1d2129;font:13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;text-align:left}.portal-callback-card[data-v-77e0d862]{min-width:0;overflow:hidden;background:#fff;border:1px solid #e5e6eb;border-radius:6px}.portal-callback-card__header[data-v-77e0d862]{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;list-style:none;cursor:pointer}.portal-callback-card__header[data-v-77e0d862]::-webkit-details-marker{display:none}.portal-callback-card__header[data-v-77e0d862]:focus-visible,.portal-callback-card__schedule-toggle[data-v-77e0d862]:focus-visible{outline:2px solid #2468f2;outline-offset:-3px}.portal-callback-card__identity[data-v-77e0d862]{display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0;overflow-wrap:anywhere}.portal-callback-card__title[data-v-77e0d862]{margin:0;font-size:13px;font-weight:600}.portal-callback-card__path[data-v-77e0d862]{margin:0;padding:1px 5px;color:#526bff;font:12px/1.5 SFMono-Regular,Consolas,monospace;background:#eef2ff;border:1px solid #d5ddff;border-radius:3px;overflow-wrap:anywhere}.portal-callback-card__status[data-v-77e0d862]{flex-shrink:0;padding:1px 6px;color:#4e5969;font-size:12px;line-height:20px;white-space:nowrap;background:#f2f3f5;border-radius:3px}.portal-callback-card__status--enabled[data-v-77e0d862]{color:#16803c;background:#e8ffea}.portal-callback-card__chevron[data-v-77e0d862]{flex-shrink:0;width:16px;height:16px;color:#86909c}.portal-callback-card[open]>.portal-callback-card__header .portal-callback-card__chevron[data-v-77e0d862]{transform:rotate(180deg)}.portal-callback-card__body[data-v-77e0d862]{margin:0 16px;padding:14px 0 16px;border-top:1px solid #e5e6eb}.portal-callback-card__line[data-v-77e0d862]{display:flex;gap:10px;margin:0 0 10px;overflow-wrap:anywhere}.portal-callback-card__label[data-v-77e0d862]{flex-shrink:0;color:#4e5969;font-weight:500}.portal-callback-card__description[data-v-77e0d862]{white-space:pre-wrap}.portal-callback-card__policy[data-v-77e0d862]{display:flex;flex-wrap:wrap;gap:12px 28px;margin:14px 0;padding:12px;background:#f4f7fd;border:1px solid #e5ecf8;border-radius:4px}.portal-callback-card__setting[data-v-77e0d862]{min-width:0}.portal-callback-card__setting--delay[data-v-77e0d862]{flex:1 1 240px}.portal-callback-card__setting>dt[data-v-77e0d862]{margin:0 0 4px;color:#65758e;font-size:12px}.portal-callback-card__setting>dd[data-v-77e0d862]{margin:0;overflow-wrap:anywhere}.portal-callback-card__retry-count[data-v-77e0d862]{color:#245eae;font-weight:600}.portal-callback-card__required[data-v-77e0d862]{display:inline-block;padding:0 6px;color:#4e5969;background:#e9edf3;border-radius:3px}.portal-callback-card__required--yes[data-v-77e0d862]{color:#9a5517;background:#fff0db}.portal-callback-card__schedule[data-v-77e0d862]{margin-top:12px}.portal-callback-card__schedule-toggle[data-v-77e0d862]{color:#4e5969;font-size:12px;cursor:pointer}.portal-callback-card__table-wrap[data-v-77e0d862]{margin-top:8px;overflow-x:auto}.portal-callback-card__table[data-v-77e0d862]{width:100%;margin:0;font:inherit;text-align:left;border-collapse:collapse}.portal-callback-card__table th[data-v-77e0d862],.portal-callback-card__table td[data-v-77e0d862]{padding:8px 10px;color:#4e5969;font-weight:400;border:1px solid #e5e6eb}.portal-callback-card__table th[data-v-77e0d862]{background:#f7f8fa}.portal-callback-card__fields[data-v-77e0d862]{table-layout:fixed}.portal-callback-card__fields th[data-v-77e0d862],.portal-callback-card__fields td[data-v-77e0d862]{overflow-wrap:anywhere}.portal-callback-card__fields th[data-v-77e0d862]:first-child{width:40%}.portal-callback-card__fields th[data-v-77e0d862]:nth-child(2){width:16%}.portal-callback-card__note[data-v-77e0d862]{margin:12px 0 0;color:#86909c;font-size:12px}@media(max-width:600px){.portal-callback-card__header[data-v-77e0d862]{gap:8px;padding:12px}.portal-callback-card__body[data-v-77e0d862]{margin:0 12px;padding:12px 0}.portal-callback-card__setting--delay[data-v-77e0d862]{flex-basis:100%}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wanlianyida/portal-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "开放平台共享导航、登录会话、回调卡片、正文预览与反馈组件。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"./session": {
|
|
23
23
|
"types": "./dist/navigation/session.d.ts",
|
|
24
24
|
"import": "./dist/navigation/session.js"
|
|
25
|
+
},
|
|
26
|
+
"./session-vite": {
|
|
27
|
+
"types": "./dist/session/vite.d.mts",
|
|
28
|
+
"import": "./dist/session/vite.mjs"
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
"sideEffects": [
|
|
@@ -35,9 +39,10 @@
|
|
|
35
39
|
},
|
|
36
40
|
"scripts": {
|
|
37
41
|
"dev": "vite",
|
|
38
|
-
"build": "vue-tsc --noEmit && vite build && vite build --config vite.navigation.config.ts",
|
|
42
|
+
"build": "vue-tsc --noEmit && vite build && vite build --config vite.navigation.config.ts && node scripts/build-session-assets.mjs",
|
|
39
43
|
"test": "vitest run",
|
|
40
|
-
"prepublishOnly": "npm run test && npm run build"
|
|
44
|
+
"prepublishOnly": "npm run test && npm run build",
|
|
45
|
+
"test:browser": "node scripts/test-session-browser.mjs"
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
43
48
|
"element-plus": "^2.14.0",
|
|
@@ -49,6 +54,7 @@
|
|
|
49
54
|
"element-plus": "^2.14.1",
|
|
50
55
|
"happy-dom": "^21.0.4",
|
|
51
56
|
"jsdom": "26.1.0",
|
|
57
|
+
"playwright": "1.62.1",
|
|
52
58
|
"typescript": "5.6.3",
|
|
53
59
|
"vite": "^6.2.3",
|
|
54
60
|
"vite-plugin-dts": "^4.5.4",
|