@commentkit/comment-kit 1.5.0 → 1.6.0
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/CHANGELOG.md +20 -2
- package/dist/npm/THIRD_PARTY_NOTICES.txt +2 -2
- package/dist/npm/chunks/{AgentSend-DyWxNQ0p.js → AgentSend-2JPDseOo.js} +4 -5
- package/dist/npm/chunks/{Checklist-VYkSl6Q9.js → Checklist-BpDXQebo.js} +77 -79
- package/dist/npm/chunks/Composer-CAyj-c8e.js +677 -0
- package/dist/npm/chunks/Guest-ZdFmTcXI.js +187 -0
- package/dist/npm/chunks/{MarkupEditor-DxTI9nJH.js → MarkupEditor-BFplZwFy.js} +3 -5
- package/dist/npm/chunks/{Panel-riaMYxt-.js → Panel-BhZ4XRDR.js} +300 -302
- package/dist/npm/chunks/{Settings-CB4zxQAL.js → Settings-SPG9EHUZ.js} +70 -72
- package/dist/npm/chunks/{Shortcuts-D1cbajg_.js → Shortcuts-C28HVDw6.js} +3 -5
- package/dist/npm/chunks/{StyleEditor-BtTv3I8_.js → StyleEditor-ByZMtq10.js} +4 -5
- package/dist/npm/chunks/{StylePanel-BI-n5Me1.js → StylePanel-Iwhce2tE.js} +62 -64
- package/dist/npm/chunks/{TaskFields-HwrD0FrH.js → TaskFields-BsP_fVJg.js} +7 -6
- package/dist/npm/chunks/{ThreadCard-CjaC8BTa.js → ThreadCard-BzVZdDCb.js} +407 -403
- package/dist/npm/chunks/{Viewer-BnWshSXb.js → Viewer-CqtGrdD8.js} +29 -31
- package/dist/npm/chunks/{agent-Cr6NB6We.js → agent-BDMQtOzH.js} +14 -15
- package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsradQhn.js} +1 -2
- package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-8tPch6W4.js} +5 -2
- package/dist/npm/chunks/{card-bits-CxteYiZ9.js → card-bits-Bna-g3Py.js} +24 -26
- package/dist/npm/chunks/{client-CJ1tpI62.js → client-EFTWxHbJ.js} +76 -61
- package/dist/npm/chunks/{colors-0Ied7PE2.js → colors-CWAn_swA.js} +39 -4
- package/dist/npm/chunks/{confetti-DKeKR7-6.js → confetti-DTKpwF3O.js} +1 -2
- package/dist/npm/chunks/{de-CcPi8xdC.js → de-C63897uD.js} +5 -2
- package/dist/npm/chunks/{drafts-CpQdHhcK.js → drafts-akdBsOd0.js} +1 -2
- package/dist/npm/chunks/{es-DXgkjDCG.js → es-CI2bSpvB.js} +5 -2
- package/dist/npm/chunks/{extension-BIGfr4Gh.js → extension-BST6LH1q.js} +2 -3
- package/dist/npm/chunks/{extension-DkDSW4qw.js → extension-D-V3utTm.js} +3 -4
- package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-rsVe-Lqk.js} +5 -2
- package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-cvwbSaWP.js} +5 -2
- package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
- package/dist/npm/chunks/{i18n-DAJGndZ2.js → i18n-C4v0M-6z.js} +254 -257
- package/dist/npm/chunks/{it-DKiSCkiD.js → it-C8tnV0BF.js} +5 -2
- package/dist/npm/chunks/{ja-BI1WagDg.js → ja-BWxDfC2f.js} +5 -2
- package/dist/npm/chunks/{live-B-mo27Qq.js → live-BCpJVBeN.js} +2 -3
- package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
- package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-DNQ6eCht.js} +5 -2
- package/dist/npm/chunks/{pick-CYPkLLFJ.js → pick-CLyOdjnD.js} +3 -4
- package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-CkG7vpU2.js} +5 -2
- package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-DIo-Wth4.js} +2 -3
- package/dist/npm/chunks/{report-DoDVi1qT.js → report-BBrT3r89.js} +1 -2
- package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/npm/chunks/{source-CTQmAh0Y.js → source-CS7C6wJA.js} +2 -3
- package/dist/npm/chunks/{src-CgBEoWl0.js → src-C4FsVoUp.js} +22 -24
- package/dist/npm/chunks/{start-DW9_DKmf.js → start-i9M-r3aH.js} +375 -358
- package/dist/npm/chunks/{upload-BmrpZE5G.js → upload-DSv7EyBD.js} +2 -3
- package/dist/npm/chunks/uploads-I01kdqQF.js +1103 -0
- package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-BKuZOLBE.js} +5 -2
- package/dist/npm/element.js +2 -3
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +2 -3
- package/dist/npm/svelte.js +2 -3
- package/dist/npm/types/core/auth.d.ts +14 -0
- package/dist/npm/vue.js +2 -3
- package/package.json +8 -8
- package/dist/npm/chunks/Composer-CnsGQirF.js +0 -679
- package/dist/npm/chunks/Guest-DkIvY5zt.js +0 -170
- package/dist/npm/chunks/uploads-CipONvCy.js +0 -541
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ui/locales/it.ts
|
|
2
2
|
var e = {
|
|
3
3
|
comment: "Commenta",
|
|
4
4
|
commentHint: "Fai clic in qualsiasi punto della pagina per commentarlo",
|
|
@@ -167,6 +167,10 @@ var e = {
|
|
|
167
167
|
shareExpired: "Questo link per i clienti è scaduto. Chiedine uno nuovo al team.",
|
|
168
168
|
verifyTitle: "Controlla la tua email",
|
|
169
169
|
verifyBody: "Inserisci il codice di 6 cifre per pubblicare il tuo commento. L'abbiamo inviato a {email}.",
|
|
170
|
+
verifyLookFor: "Cerca un'email di CommentKit: “Your code for {website}”. Se non la trovi, controlla lo spam.",
|
|
171
|
+
signInLinkTitle: "Bentornato su {project}",
|
|
172
|
+
signInLinkBody: "Continua per vedere i feedback e rispondere. Ti mandiamo un codice di 6 cifre via email per confermare che sei tu.",
|
|
173
|
+
notNow: "Non ora",
|
|
170
174
|
verifyCode: "Codice di 6 cifre",
|
|
171
175
|
verifyPublish: "Pubblica il commento",
|
|
172
176
|
verifyResend: "Invia un nuovo codice",
|
|
@@ -359,5 +363,4 @@ var e = {
|
|
|
359
363
|
styleNext: "Valore successivo per {property}",
|
|
360
364
|
styleEdit: "Modifica le modifiche di stile suggerite"
|
|
361
365
|
};
|
|
362
|
-
//#endregion
|
|
363
366
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ui/locales/ja.ts
|
|
2
2
|
var e = {
|
|
3
3
|
comment: "コメント",
|
|
4
4
|
commentHint: "ページ上のどこでもクリックしてコメントできます",
|
|
@@ -167,6 +167,10 @@ var e = {
|
|
|
167
167
|
shareExpired: "このクライアント用リンクは期限切れです。チームに新しいリンクを依頼してください。",
|
|
168
168
|
verifyTitle: "メールを確認してください",
|
|
169
169
|
verifyBody: "6 桁のコードを入力するとコメントが公開されます。{email} 宛てに送信しました。",
|
|
170
|
+
verifyLookFor: "CommentKit からのメール “Your code for {website}” を確認してください。見つからない場合は迷惑メールフォルダもご確認ください。",
|
|
171
|
+
signInLinkTitle: "{project} へおかえりなさい",
|
|
172
|
+
signInLinkBody: "続けるとフィードバックを見て返信できます。ご本人確認のため、6 桁のコードをメールでお送りします。",
|
|
173
|
+
notNow: "後で",
|
|
170
174
|
verifyCode: "6 桁のコード",
|
|
171
175
|
verifyPublish: "コメントを公開",
|
|
172
176
|
verifyResend: "新しいコードを送る",
|
|
@@ -359,5 +363,4 @@ var e = {
|
|
|
359
363
|
styleNext: "{property} の次の値",
|
|
360
364
|
styleEdit: "提案したスタイルの変更を編集"
|
|
361
365
|
};
|
|
362
|
-
//#endregion
|
|
363
366
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./client-
|
|
2
|
-
|
|
1
|
+
import { i as e } from "./client-EFTWxHbJ.js";
|
|
2
|
+
// src/ui/live.ts
|
|
3
3
|
var t = 1500, n = 1e4;
|
|
4
4
|
function r(e, r, a, o = Math.random) {
|
|
5
5
|
let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = (e) => c.set(e, Date.now()), u = [
|
|
@@ -30,5 +30,4 @@ function i() {
|
|
|
30
30
|
let t = new URL(e());
|
|
31
31
|
return t.pathname + (t.hash.startsWith("#/") ? t.hash : "");
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { r as liveUpdates };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ui/locales/nl.ts
|
|
2
2
|
var e = {
|
|
3
3
|
comment: "Reageren",
|
|
4
4
|
commentHint: "Klik ergens op de pagina om erop te reageren",
|
|
@@ -167,6 +167,10 @@ var e = {
|
|
|
167
167
|
shareExpired: "Deze klantlink is verlopen. Vraag het team om een nieuwe.",
|
|
168
168
|
verifyTitle: "Kijk in je e-mail",
|
|
169
169
|
verifyBody: "Vul de code van 6 cijfers in om je reactie te plaatsen. We stuurden hem naar {email}.",
|
|
170
|
+
verifyLookFor: "Zoek een e-mail van CommentKit: “Your code for {website}”. Staat hij er niet, kijk dan bij spam.",
|
|
171
|
+
signInLinkTitle: "Welkom terug bij {project}",
|
|
172
|
+
signInLinkBody: "Ga door om de feedback te zien en te reageren. We mailen je een code van 6 cijfers om te bevestigen dat jij het bent.",
|
|
173
|
+
notNow: "Niet nu",
|
|
170
174
|
verifyCode: "Code van 6 cijfers",
|
|
171
175
|
verifyPublish: "Reactie plaatsen",
|
|
172
176
|
verifyResend: "Nieuwe code sturen",
|
|
@@ -359,5 +363,4 @@ var e = {
|
|
|
359
363
|
styleNext: "Volgende waarde voor {property}",
|
|
360
364
|
styleEdit: "Voorgestelde stijlwijzigingen bewerken"
|
|
361
365
|
};
|
|
362
|
-
//#endregion
|
|
363
366
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, o as t, r as n } from "./anchor-
|
|
2
|
-
|
|
1
|
+
import { i as e, o as t, r as n } from "./anchor-BsradQhn.js";
|
|
2
|
+
// src/anchor/pick.ts
|
|
3
3
|
var r = "a,button,[role=button],input,select,textarea,label,summary", i = 4;
|
|
4
4
|
function a(e) {
|
|
5
5
|
try {
|
|
@@ -104,7 +104,7 @@ function g() {
|
|
|
104
104
|
}
|
|
105
105
|
var _ = null, v = !1;
|
|
106
106
|
function y() {
|
|
107
|
-
!v && g() && (v = !0, import("./source-
|
|
107
|
+
!v && g() && (v = !0, import("./source-CS7C6wJA.js").then((e) => _ = e.readSource, () => v = !1));
|
|
108
108
|
}
|
|
109
109
|
function b(e) {
|
|
110
110
|
let t = null;
|
|
@@ -116,5 +116,4 @@ function b(e) {
|
|
|
116
116
|
...t
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
//#endregion
|
|
120
119
|
export { i as MAX_FRAMES, u as between, d as boxesOf, c as caretAt, s as deepAt, g as devPage, b as extra, l as overText, p as paintedAt, y as prepare, f as selected, h as where };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ui/locales/pt-BR.ts
|
|
2
2
|
var e = {
|
|
3
3
|
comment: "Comentar",
|
|
4
4
|
commentHint: "Clique em qualquer parte da página para comentar",
|
|
@@ -167,6 +167,10 @@ var e = {
|
|
|
167
167
|
shareExpired: "Este link de cliente expirou. Peça um novo à equipe.",
|
|
168
168
|
verifyTitle: "Confira seu e-mail",
|
|
169
169
|
verifyBody: "Digite o código de 6 dígitos para publicar seu comentário. Enviamos para {email}.",
|
|
170
|
+
verifyLookFor: "Procure um e-mail da CommentKit: “Your code for {website}”. Se não estiver lá, confira o spam.",
|
|
171
|
+
signInLinkTitle: "Que bom ver você de novo em {project}",
|
|
172
|
+
signInLinkBody: "Continue para ver o feedback e responder. Vamos enviar um código de 6 dígitos para o seu e-mail para confirmar que é você.",
|
|
173
|
+
notNow: "Agora não",
|
|
170
174
|
verifyCode: "Código de 6 dígitos",
|
|
171
175
|
verifyPublish: "Publicar comentário",
|
|
172
176
|
verifyResend: "Enviar um novo código",
|
|
@@ -359,5 +363,4 @@ var e = {
|
|
|
359
363
|
styleNext: "Próximo valor de {property}",
|
|
360
364
|
styleEdit: "Editar as mudanças de estilo sugeridas"
|
|
361
365
|
};
|
|
362
|
-
//#endregion
|
|
363
366
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./rolldown-runtime-
|
|
2
|
-
|
|
1
|
+
import { n as e, r as t, t as n } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
+
// node_modules/pusher-js/dist/web/pusher.js
|
|
3
3
|
var r = /* @__PURE__ */ n(((e, t) => {
|
|
4
4
|
(function(n, r) {
|
|
5
5
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.Pusher = r() : n.Pusher = r();
|
|
@@ -2522,5 +2522,4 @@ async function a(e) {
|
|
|
2522
2522
|
reconnect: () => i.connect()
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
|
-
//#endregion
|
|
2526
2525
|
export { i as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/core/report.ts
|
|
2
2
|
var e = 0, t = (e) => e.replace(/(https?:\/\/[^\s?#)]+)[?#][^\s)]*/g, "$1");
|
|
3
3
|
function n(n, r, i, a, o = "crash", s) {
|
|
4
4
|
if (e >= 3 || typeof fetch != "function") return;
|
|
@@ -24,5 +24,4 @@ function n(n, r, i, a, o = "crash", s) {
|
|
|
24
24
|
}).catch(() => void 0);
|
|
25
25
|
} catch {}
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { n as reportCrash };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in e) t(r, i, {
|
|
@@ -16,5 +16,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
16
16
|
value: n,
|
|
17
17
|
enumerable: !0
|
|
18
18
|
}) : o, n));
|
|
19
|
-
//#endregion
|
|
20
19
|
export { s as n, l as r, o as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e } from "./client-
|
|
2
|
-
|
|
1
|
+
import { s as e } from "./client-EFTWxHbJ.js";
|
|
2
|
+
// src/anchor/source.ts
|
|
3
3
|
var t = /^[A-Za-z_$][\w$.-]*$/, n = /* @__PURE__ */ new Set([
|
|
4
4
|
"src",
|
|
5
5
|
"app",
|
|
@@ -142,5 +142,4 @@ function g(e) {
|
|
|
142
142
|
let n = e.split(/[?#]/)[0].split(/[\\/]/).pop()?.replace(/\.[^.]+$/, "") ?? "";
|
|
143
143
|
return t.test(n) ? n.slice(0, 120) : null;
|
|
144
144
|
}
|
|
145
|
-
//#endregion
|
|
146
145
|
export { a as readSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, o as t, p as n, t as r } from "./client-
|
|
2
|
-
|
|
1
|
+
import { c as e, o as t, p as n, t as r } from "./client-EFTWxHbJ.js";
|
|
2
|
+
// src/activation.ts
|
|
3
3
|
var i = "commentkit:active", a = "data-commentkit-extension";
|
|
4
4
|
function o() {
|
|
5
5
|
return document.documentElement.hasAttribute(a);
|
|
@@ -11,7 +11,7 @@ function s(e = location.origin) {
|
|
|
11
11
|
function c(e, t = !0) {
|
|
12
12
|
if (!t || s() || o()) return !0;
|
|
13
13
|
let n = new URLSearchParams(location.search);
|
|
14
|
-
if (n.has("ck") || n.has("ck_thread") || n.has("ck_code")) return !0;
|
|
14
|
+
if (n.has("ck") || n.has("ck_thread") || n.has("ck_signin") || n.has("ck_code")) return !0;
|
|
15
15
|
try {
|
|
16
16
|
let t = `commentkit:v1:${e}`;
|
|
17
17
|
return !!localStorage.getItem(t) || !!sessionStorage.getItem(t) || localStorage.getItem(i) === "1";
|
|
@@ -30,8 +30,7 @@ function u(e) {
|
|
|
30
30
|
};
|
|
31
31
|
return addEventListener("keydown", t, !0), () => removeEventListener("keydown", t, !0);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
//#region src/index.ts
|
|
33
|
+
// src/index.ts
|
|
35
34
|
var d = null;
|
|
36
35
|
function f() {
|
|
37
36
|
let e = (e) => typeof e == "string" && e.trim() ? e.trim().slice(0, 255) : null;
|
|
@@ -67,48 +66,48 @@ function m(i) {
|
|
|
67
66
|
let a = f(), s = {
|
|
68
67
|
...i,
|
|
69
68
|
...e(i.branch || a.branch, i.commit || a.commit)
|
|
70
|
-
}, p = new r(s), m = null, _ = null, v = null, y = null, b =
|
|
69
|
+
}, p = new r(s), m = null, _ = null, v = null, y = null, b = p.auth.takeSignInLink(), x = b || h(), S = () => {
|
|
71
70
|
let e = Date.now(), t = () => {
|
|
72
|
-
document.visibilityState === "hidden" || Date.now() - e < 15e3 || (e = Date.now(), p.loadConfig().then((e) => !e.enabled && !
|
|
71
|
+
document.visibilityState === "hidden" || Date.now() - e < 15e3 || (e = Date.now(), p.loadConfig().then((e) => !e.enabled && !x && w(), () => void 0));
|
|
73
72
|
}, n = setInterval(t, 6e4);
|
|
74
73
|
return document.addEventListener("visibilitychange", t), () => {
|
|
75
74
|
clearInterval(n), document.removeEventListener("visibilitychange", t);
|
|
76
75
|
};
|
|
77
|
-
},
|
|
76
|
+
}, C = () => m ? Promise.resolve() : (v ?? (v = (async () => {
|
|
78
77
|
try {
|
|
79
78
|
let e = await p.loadConfig();
|
|
80
|
-
if (!e.enabled && !
|
|
81
|
-
let t = import("./start-
|
|
82
|
-
t.catch(() => void 0), n.catch(() => void 0), await p.auth.completeRedirect().catch(() => !1), o() && await import("./extension-
|
|
79
|
+
if (!e.enabled && !x) return;
|
|
80
|
+
let t = import("./start-i9M-r3aH.js").then((e) => e.t), n = t.then((e) => e.setLocale(s.locale));
|
|
81
|
+
t.catch(() => void 0), n.catch(() => void 0), await p.auth.completeRedirect().catch(() => !1), o() && await import("./extension-BST6LH1q.js").then((e) => e.extensionHandoff(p.auth)).catch(() => !1), await p.loadSession().catch(() => null);
|
|
83
82
|
let { installDiagnostics: r, mountWidget: i } = await t;
|
|
84
83
|
_ = r({
|
|
85
84
|
console: e.features.console_capture,
|
|
86
85
|
network: e.features.network_capture,
|
|
87
86
|
endpoint: p.endpoint
|
|
88
|
-
}), await n, m = i(p,
|
|
89
|
-
|
|
90
|
-
}), y =
|
|
87
|
+
}), await n, m = i(p, w, () => {
|
|
88
|
+
w(), l(!1);
|
|
89
|
+
}), y = S(), p.emit("ready", { session: p.state.get().session });
|
|
91
90
|
} catch (e) {
|
|
92
91
|
let t = e instanceof n;
|
|
93
92
|
console.warn(t ? `[CommentKit] The widget could not start: ${e.message} (${e.code}). See https://commentkit.dev/docs/errors#${e.code}` : "[CommentKit] The widget could not start.", e), t && p.emit("error", { error: e }), (!t || e.status >= 500) && p.reportCrash(e, "start");
|
|
94
93
|
} finally {
|
|
95
94
|
v = null;
|
|
96
95
|
}
|
|
97
|
-
})()), v),
|
|
96
|
+
})()), v), w = () => {
|
|
98
97
|
y?.(), y = null, m?.(), m = null, _?.(), _ = null;
|
|
99
|
-
},
|
|
98
|
+
}, T = u(() => {
|
|
100
99
|
m ? p.state.set({ request: {
|
|
101
100
|
kind: "inbox",
|
|
102
101
|
at: Date.now()
|
|
103
|
-
} }) : (l(!0),
|
|
102
|
+
} }) : (l(!0), C());
|
|
104
103
|
});
|
|
105
|
-
return o() && import("./extension-
|
|
104
|
+
return o() && import("./extension-BST6LH1q.js").then((e) => e.extensionHello()).catch(() => void 0), (b || c(s.project, s.hideOnProduction ?? !0)) && C(), d = {
|
|
106
105
|
client: p,
|
|
107
|
-
show:
|
|
108
|
-
hide:
|
|
109
|
-
open: (e) => (p.state.set({ opening: String(e).slice(0, 64) }),
|
|
106
|
+
show: C,
|
|
107
|
+
hide: w,
|
|
108
|
+
open: (e) => (p.state.set({ opening: String(e).slice(0, 64) }), C()),
|
|
110
109
|
comment: async (e = !0) => {
|
|
111
|
-
e && l(!0), await
|
|
110
|
+
e && l(!0), await C(), p.state.set({ request: {
|
|
112
111
|
kind: e ? "comment" : "stop",
|
|
113
112
|
at: Date.now()
|
|
114
113
|
} });
|
|
@@ -118,7 +117,7 @@ function m(i) {
|
|
|
118
117
|
session: () => p.state.get().session,
|
|
119
118
|
on: (e, t) => p.on(e, t),
|
|
120
119
|
destroy() {
|
|
121
|
-
|
|
120
|
+
w(), T(), p.destroy(), d = null;
|
|
122
121
|
}
|
|
123
122
|
}, d;
|
|
124
123
|
}
|
|
@@ -146,5 +145,4 @@ function g() {
|
|
|
146
145
|
destroy: () => void 0
|
|
147
146
|
};
|
|
148
147
|
}
|
|
149
|
-
//#endregion
|
|
150
148
|
export { o as n, p as t };
|