@commentkit/comment-kit 1.5.0 → 1.5.1
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 +5 -2
- package/dist/npm/chunks/{AgentSend-DyWxNQ0p.js → AgentSend-DjFZSC0S.js} +2 -2
- package/dist/npm/chunks/{Checklist-VYkSl6Q9.js → Checklist-BEz4IZdT.js} +1 -1
- package/dist/npm/chunks/{Composer-CnsGQirF.js → Composer-D1wbmdjF.js} +17 -15
- package/dist/npm/chunks/{Guest-DkIvY5zt.js → Guest-CtyRy8Kz.js} +3 -3
- package/dist/npm/chunks/{MarkupEditor-DxTI9nJH.js → MarkupEditor-CPH4yKx4.js} +1 -1
- package/dist/npm/chunks/{Panel-riaMYxt-.js → Panel-DSoUAlbQ.js} +5 -5
- package/dist/npm/chunks/{Settings-CB4zxQAL.js → Settings-C_qV4n7J.js} +2 -2
- package/dist/npm/chunks/{Shortcuts-D1cbajg_.js → Shortcuts-ChnaribX.js} +1 -1
- package/dist/npm/chunks/{StyleEditor-BtTv3I8_.js → StyleEditor-DqZd6C5o.js} +2 -2
- package/dist/npm/chunks/{StylePanel-BI-n5Me1.js → StylePanel-DMC3riYK.js} +2 -2
- package/dist/npm/chunks/{TaskFields-HwrD0FrH.js → TaskFields-BfjjllMx.js} +1 -1
- package/dist/npm/chunks/{ThreadCard-CjaC8BTa.js → ThreadCard-DmKAelSL.js} +9 -9
- package/dist/npm/chunks/{Viewer-BnWshSXb.js → Viewer-mw69qSI5.js} +1 -1
- package/dist/npm/chunks/{agent-Cr6NB6We.js → agent-CqDO3JMA.js} +1 -1
- package/dist/npm/chunks/{card-bits-CxteYiZ9.js → card-bits-C7bIk5KX.js} +2 -2
- package/dist/npm/chunks/{client-CJ1tpI62.js → client-dZeNdizE.js} +2 -2
- package/dist/npm/chunks/{colors-0Ied7PE2.js → colors-CAjY4jxf.js} +38 -2
- package/dist/npm/chunks/{extension-BIGfr4Gh.js → extension-BFkXOmX5.js} +1 -1
- package/dist/npm/chunks/{extension-DkDSW4qw.js → extension-Gvei3opb.js} +2 -2
- package/dist/npm/chunks/{live-B-mo27Qq.js → live-MvvBdoGd.js} +1 -1
- package/dist/npm/chunks/{pick-CYPkLLFJ.js → pick-dDDLxCDI.js} +1 -1
- package/dist/npm/chunks/{source-CTQmAh0Y.js → source-BQS2_xfB.js} +1 -1
- package/dist/npm/chunks/{src-CgBEoWl0.js → src-C_oUnL0i.js} +4 -4
- package/dist/npm/chunks/{start-DW9_DKmf.js → start-C5-rebEU.js} +9 -9
- package/dist/npm/chunks/{upload-BmrpZE5G.js → upload-CzPAjktW.js} +1 -1
- package/dist/npm/chunks/{uploads-CipONvCy.js → uploads-tpLjiJdH.js} +3 -3
- package/dist/npm/element.js +1 -1
- package/dist/npm/headless.js +1 -1
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +1 -1
- package/dist/npm/svelte.js +1 -1
- package/dist/npm/vue.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1.5.1 (2026-10-28)
|
|
4
4
|
|
|
5
|
-
- **
|
|
5
|
+
- **Screenshots keep the page's look on every site:** the screenshot copies the page, and that copy asked the server for each linked stylesheet again without waiting for it. On a slow server or a cold CDN the screenshot came out unstyled (plain fonts, blue links). The copy now reuses the styles the page already has, in the same order, and waits briefly for any it cannot read. No Content Security Policy is touched.
|
|
6
|
+
- **A clearer attachment icon** in the comment box and the file list.
|
|
6
7
|
|
|
7
8
|
## 1.5.0 (2026-10-24)
|
|
8
9
|
|
|
10
|
+
- **Guests see who gets their details:** under the name and email fields for share-link guests, a short line says the name, email and comments go to the team that runs the website and to CommentKit, with a link to the privacy notice. In all 11 languages.
|
|
11
|
+
|
|
9
12
|
Fixes from the full audit of 24 October. Pair it with the backend release of the same day: the widget still works with an older server, but readable errors, edit conflicts and safe retries need the new one.
|
|
10
13
|
|
|
11
14
|
- **Staying signed in:** a revoked or expired session asks you to sign in again instead of retrying for ever, and several open tabs waking up together no longer sign each other out (the refresh runs in one tab at a time and gives up after 10 seconds without losing the session). "You appear to be offline" shows only when the browser really is offline.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, l as t, m as n, s as r, u as i } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { n as a, t as o } from "./agent-
|
|
3
|
-
import { _ as s } from "./start-
|
|
2
|
+
import { n as a, t as o } from "./agent-CqDO3JMA.js";
|
|
3
|
+
import { _ as s } from "./start-C5-rebEU.js";
|
|
4
4
|
//#region src/ui/AgentSend.tsx
|
|
5
5
|
var c = {
|
|
6
6
|
cursor: "Cursor",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, i as t, l as n, m as r, s as i, v as a } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { d as o, h as s } from "./start-
|
|
2
|
+
import { d as o, h as s } from "./start-C5-rebEU.js";
|
|
3
3
|
//#region src/ui/art.tsx
|
|
4
4
|
var c = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", l = (e, t, r, i) => /* @__PURE__ */ n("path", {
|
|
5
5
|
class: i,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./src-
|
|
2
|
-
import { p as t } from "./client-
|
|
1
|
+
import { n as e } from "./src-C_oUnL0i.js";
|
|
2
|
+
import { p as t } from "./client-dZeNdizE.js";
|
|
3
3
|
import { a as n } from "./anchor-OCQnjp_6.js";
|
|
4
4
|
import { d as r, f as i, l as a, m as o, p as s, s as c, u as l, v as ee } from "./i18n-DAJGndZ2.js";
|
|
5
|
-
import { n as te, o as ne, r as re, t as ie } from "./card-bits-
|
|
5
|
+
import { n as te, o as ne, r as re, t as ie } from "./card-bits-C7bIk5KX.js";
|
|
6
6
|
import { i as ae, r as oe, t as se } from "./drafts-CpQdHhcK.js";
|
|
7
|
-
import { a as ce, c as le, d as u, i as ue, l as de, n as fe, o as pe, t as me } from "./uploads-
|
|
8
|
-
import { S as he, a as ge, d, h as _e, i as ve, l as ye, m as be, n as f, o as xe, s as Se } from "./start-
|
|
7
|
+
import { a as ce, c as le, d as u, i as ue, l as de, n as fe, o as pe, t as me } from "./uploads-tpLjiJdH.js";
|
|
8
|
+
import { S as he, a as ge, d, h as _e, i as ve, l as ye, m as be, n as f, o as xe, s as Se } from "./start-C5-rebEU.js";
|
|
9
9
|
var p = "iframe,[data-commentkit],[data-commentkit-host],[data-commentkit-ui],[data-commentkit-panel],[data-commentkit-redact],[data-html2canvas-ignore],input[type=\"password\"],input[type=\"hidden\"],input[type=\"email\" i],input[type=\"tel\" i]," + [
|
|
10
10
|
"current-password",
|
|
11
11
|
"new-password",
|
|
@@ -83,7 +83,7 @@ function _() {
|
|
|
83
83
|
}
|
|
84
84
|
async function Te(t = {}) {
|
|
85
85
|
let n = (t.redact ?? []).filter(C), r = innerWidth, i = innerHeight, a = null;
|
|
86
|
-
e() && (a = await import("./extension-
|
|
86
|
+
e() && (a = await import("./extension-Gvei3opb.js").then((e) => e.captureTab(n)).catch(() => null)), a ?? (a = await v(n, r, i));
|
|
87
87
|
let o = a.getContext("2d"), s = a.width / Math.max(1, r);
|
|
88
88
|
return o && y(o, s, t), t.crop && t.region && (a = Ee(a, s, t.region, r, i)), {
|
|
89
89
|
blob: await S(a),
|
|
@@ -92,20 +92,22 @@ async function Te(t = {}) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
async function v(e, t, n) {
|
|
95
|
-
let [{ default: r }, { captureBackground: i, normalizeCaptureColors: a }] = await Promise.all([import("./html2canvas-pro.esm-lgs6tb4C.js"), import("./colors-
|
|
95
|
+
let [{ default: r }, { captureBackground: i, normalizeCaptureColors: a, settleStylesheets: o }] = await Promise.all([import("./html2canvas-pro.esm-lgs6tb4C.js"), import("./colors-CAjY4jxf.js")]), s = (t) => t.tagName === "NOSCRIPT" || m(t) || e.some((e) => Oe(t, e)), c = Math.min(devicePixelRatio || 1, 2, Math.sqrt(h / Math.max(1, t * n)));
|
|
96
96
|
return De(r(document.documentElement, {
|
|
97
97
|
useCORS: !0,
|
|
98
98
|
logging: !1,
|
|
99
99
|
backgroundColor: i(getComputedStyle(document.body).backgroundColor),
|
|
100
|
-
scale:
|
|
100
|
+
scale: c,
|
|
101
101
|
x: scrollX,
|
|
102
102
|
y: scrollY,
|
|
103
103
|
width: t,
|
|
104
104
|
height: n,
|
|
105
105
|
windowWidth: document.documentElement.clientWidth,
|
|
106
106
|
windowHeight: n,
|
|
107
|
-
ignoreElements:
|
|
108
|
-
onclone:
|
|
107
|
+
ignoreElements: s,
|
|
108
|
+
onclone: async (e) => {
|
|
109
|
+
await o(e), a(e);
|
|
110
|
+
}
|
|
109
111
|
}), g);
|
|
110
112
|
}
|
|
111
113
|
function y(e, t, n) {
|
|
@@ -171,20 +173,20 @@ f(u);
|
|
|
171
173
|
function w({ client: e, draft: u, signedIn: f, onSignIn: p, onCancel: m, onSent: we, onError: h, share: g = null, onPending: _ }) {
|
|
172
174
|
let v = ge(e.state, (e) => e.config), y = ge(e.state, (e) => e.session?.person ?? null), b = s(() => Se(e, u.anchor), [u.anchor]), [x, Ee] = o(() => Ne()), [S, De] = o(() => oe(b)), [C, Oe] = o([]), [w, Fe] = o(null), [Ie, Le] = o(null), k = e.options.tools ?? {}, Re = v?.features.screenshots !== !1 && k.screenshots !== !1, ze = k.attachments !== !1, [A, j] = o(Re ? "capturing" : "off"), M = ge(e.state, (e) => !!e.session?.capabilities.triage), [N] = o(() => Pe(b)), [P, Be] = o(N?.task ?? {}), [F, I] = o(N?.checklist ?? null), [L, Ve] = o(""), [R, He] = o(null);
|
|
173
175
|
l(() => {
|
|
174
|
-
M && !R && import("./TaskFields-
|
|
176
|
+
M && !R && import("./TaskFields-BfjjllMx.js").then((e) => He(() => e.TaskDraft), () => void 0);
|
|
175
177
|
}, [M]);
|
|
176
178
|
let [z, Ue] = o(N?.markup ?? []), [We, B] = o(null), V = fe(e, (e) => h(new t(0, "file_rejected", e))), H = s(() => {
|
|
177
179
|
if (u.anchor.type !== "element" && u.anchor.type !== "text") return null;
|
|
178
180
|
let e = n(u.anchor).element;
|
|
179
181
|
return e instanceof HTMLElement || e instanceof SVGElement ? e : null;
|
|
180
182
|
}, [u.anchor]), [U, Ge] = o(N?.styles ?? []), [W, Ke] = o(!1), [G, qe] = o(null), K = i(null), q = i(null), Je = () => {
|
|
181
|
-
H && (K.current ?? (K.current = pe(H)), q.current ?? (q.current = new ue(H)), Ke(!0), G || import("./StylePanel-
|
|
183
|
+
H && (K.current ?? (K.current = pe(H)), q.current ?? (q.current = new ue(H)), Ke(!0), G || import("./StylePanel-DMC3riYK.js").then((e) => qe(() => e.StylePanel), h));
|
|
182
184
|
};
|
|
183
185
|
r(() => {
|
|
184
186
|
W ? q.current?.apply(U) : q.current?.revert();
|
|
185
187
|
}, [W, U]), r(() => () => q.current?.revert(), []);
|
|
186
188
|
let [Ye, Xe] = o(null), [J, Ze] = o(null), Qe = (e) => {
|
|
187
|
-
Xe(e), J || import("./Viewer-
|
|
189
|
+
Xe(e), J || import("./Viewer-mw69qSI5.js").then((e) => Ze(() => e.Viewer), h);
|
|
188
190
|
}, [Y, $e] = o(!1), [et, tt] = o(!1), nt = !!(v?.features.console_capture || v?.features.network_capture), [rt, it] = o(v?.features.capture_consent_default === !0), X = ve(), [at, ot] = o(!1), Z = !f && !!g && !e.auth.pending(), [st, ct] = o(null), lt = {
|
|
189
191
|
name: i(null),
|
|
190
192
|
email: i(null)
|
|
@@ -277,7 +279,7 @@ function w({ client: e, draft: u, signedIn: f, onSignIn: p, onCancel: m, onSent:
|
|
|
277
279
|
try {
|
|
278
280
|
let t = !f && !g;
|
|
279
281
|
if (Z && g) {
|
|
280
|
-
let { startGuest: n } = await import("./Guest-
|
|
282
|
+
let { startGuest: n } = await import("./Guest-CtyRy8Kz.js");
|
|
281
283
|
D(E, JSON.stringify({
|
|
282
284
|
name: x.name,
|
|
283
285
|
email: x.email
|
|
@@ -542,7 +544,7 @@ function w({ client: e, draft: u, signedIn: f, onSignIn: p, onCancel: m, onSent:
|
|
|
542
544
|
class: "ck-shot-tools",
|
|
543
545
|
children: [k.markup === !1 ? null : /* @__PURE__ */ a("button", {
|
|
544
546
|
class: "ck-chip",
|
|
545
|
-
onClick: () => void import("./MarkupEditor-
|
|
547
|
+
onClick: () => void import("./MarkupEditor-CPH4yKx4.js").then((e) => B(() => e.MarkupEditor), h),
|
|
546
548
|
children: [/* @__PURE__ */ a(d, {
|
|
547
549
|
name: "pen",
|
|
548
550
|
size: 14
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as e } from "./client-
|
|
1
|
+
import { p as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { f as t, l as n, m as r, s as i, u as a } from "./i18n-DAJGndZ2.js";
|
|
3
|
-
import { r as o } from "./card-bits-
|
|
4
|
-
import { c as s, d as c, n as l } from "./start-
|
|
3
|
+
import { r as o } from "./card-bits-C7bIk5KX.js";
|
|
4
|
+
import { c as s, d as c, n as l } from "./start-C5-rebEU.js";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/ui/Guest.tsx
|
|
7
7
|
l(".ck-verify-text{margin:0 0 12px;line-height:1.5}.ck-code{font-family:var(--ck-mono);letter-spacing:.32em;text-align:center;height:46px;font-size:20px}.ck-verify-text{text-wrap:pretty}");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, l as t, m as n, s as r, u as i } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { m as a, n as o } from "./start-
|
|
2
|
+
import { m as a, n as o } from "./start-C5-rebEU.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/ui/MarkupEditor.tsx
|
|
5
5
|
o(".ck-markup-tools{background:var(--ck-bg);max-width:100%;box-shadow:var(--ck-shadow);border-radius:999px;flex-wrap:wrap;justify-content:center;gap:4px;padding:6px;display:flex}.ck-label-box{z-index:1;background:var(--ck-bg);box-shadow:var(--ck-shadow);border:1px solid #0000;border-radius:12px;align-items:center;gap:6px;padding:6px;display:flex;position:fixed}.ck-markup-tools{align-items:center;gap:2px;padding:4px}.ck-markup-group{align-items:center;gap:2px;padding:0 4px;display:flex}.ck-markup-group+.ck-markup-group{border-inline-start:1px solid var(--ck-hairline);margin-inline-start:4px;padding-inline-start:8px}.ck-tool{width:32px;height:32px;color:var(--ck-text-muted);background:0 0;border:0;border-radius:999px;place-items:center;padding:0;transition:background-color .12s,color .12s,scale .15s ease-out;display:grid}.ck-tool[aria-pressed=true]{background:var(--ck-accent-soft);color:color-mix(in srgb, var(--ck-accent) 70%, var(--ck-text))}.ck-tool:disabled{opacity:.35;cursor:default}.ck-tool:active:not(:disabled),.ck-icon-btn:active:not(:disabled){scale:.96}.ck-tool{width:30px;height:30px}.ck-dot{border-radius:50%;width:14px;height:14px;display:block;box-shadow:0 0 0 1px #00000014}.ck-tool[aria-pressed=true] .ck-dot{box-shadow:0 0 0 2px var(--ck-bg), 0 0 0 3.5px currentColor}.ck-width{gap:8px;width:150px}.ck-width input{min-width:0;accent-color:var(--ck-accent);cursor:pointer;flex:1}.ck-width span{width:30px;color:var(--ck-text-muted);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.ck-btn-group{display:inline-flex}.ck-icon-btn{border:1px solid var(--ck-border);background:var(--ck-bg);width:30px;height:30px;color:var(--ck-text);place-items:center;padding:0;transition:background-color .12s;display:grid}.ck-icon-btn+.ck-icon-btn{margin-inline-start:-1px}.ck-icon-btn:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:8px;border-bottom-left-radius:8px}.ck-icon-btn:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:8px;border-bottom-left-radius:8px}.ck-icon-btn:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:8px;border-bottom-right-radius:8px}.ck-icon-btn:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:8px;border-bottom-right-radius:8px}.ck-icon-btn:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:8px;border-bottom-right-radius:8px}.ck-icon-btn:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:8px;border-bottom-right-radius:8px}.ck-icon-btn:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:8px;border-bottom-left-radius:8px}.ck-icon-btn:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:8px;border-bottom-left-radius:8px}.ck-icon-btn:disabled,.ck-icon-btn[aria-disabled=true]{opacity:.45;cursor:default}.ck-icon-btn.ck-primary{border-color:var(--ck-accent);background:var(--ck-accent);color:var(--ck-accent-ink);position:relative}@media (hover:hover){.ck-icon-btn:hover:not(:disabled):not(.ck-primary){background:var(--ck-bg-hover)}.ck-tool:hover:not(:disabled){background:var(--ck-bg-hover);color:var(--ck-text)}}@media (pointer:coarse){.ck-tool,.ck-icon-btn{width:40px;height:40px}}@media (max-width:520px){.ck-markup-tools{border-radius:16px}}");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as e } from "./client-
|
|
1
|
+
import { i as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { a as t } from "./anchor-OCQnjp_6.js";
|
|
3
3
|
import { a as n, f as r, i, l as a, m as o, r as ee, s, t as c, u as l, v as u } from "./i18n-DAJGndZ2.js";
|
|
4
|
-
import { i as d } from "./card-bits-
|
|
5
|
-
import { n as f, r as p } from "./Checklist-
|
|
6
|
-
import { a as m, b as te, d as h, i as ne, l as re, n as ie, p as ae, r as oe, u as se, x as ce, y as le } from "./start-
|
|
4
|
+
import { i as d } from "./card-bits-C7bIk5KX.js";
|
|
5
|
+
import { n as f, r as p } from "./Checklist-BEz4IZdT.js";
|
|
6
|
+
import { a as m, b as te, d as h, i as ne, l as re, n as ie, p as ae, r as oe, u as se, x as ce, y as le } from "./start-C5-rebEU.js";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/ui/Panel.tsx
|
|
9
9
|
ie(".ck-count{background:var(--ck-bg-hover);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 7px;font-size:11.5px;font-weight:700}.ck-item-thumb{outline:1px solid var(--ck-img-outline);outline-offset:-1px}.ck-tabs{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);gap:2px;margin:8px 10px 0;padding:3px;display:flex}.ck-tab{color:var(--ck-text-muted);white-space:nowrap;background:0 0;border:0;border-radius:7px;flex:1;justify-content:center;align-items:center;gap:6px;padding:5px 8px;font-size:13px;font-weight:600;transition:background-color .12s,color .12s;display:inline-flex}.ck-tab[aria-selected=true]{color:var(--ck-text);background:var(--ck-bg);box-shadow:var(--ck-shadow-sm)}.ck-list{margin:0;padding:4px 6px;list-style:none}.ck-item{text-align:start;border-radius:var(--ck-radius-md);background:0 0;border:0;width:100%;padding:9px 10px;transition:background-color .12s;display:block}.ck-list>li+li,.ck-list>.ck-item+.ck-item{border-top:1px solid var(--ck-hairline)}.ck-item[data-unread=true]{background:var(--ck-accent-soft)}.ck-item[data-shot]{grid-template-columns:minmax(0,1fr) 64px;align-items:start;gap:12px;display:grid}.ck-item-main{min-width:0}.ck-item-top{color:var(--ck-text-muted);align-items:flex-start;gap:8px;font-size:12px;display:flex}.ck-item-tags{flex-wrap:wrap;flex:1;align-items:center;gap:4px 6px;min-width:0;display:flex}.ck-item-tags>strong{color:var(--ck-text);font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline-end:2px;font-weight:650}.ck-item-meta{text-overflow:ellipsis;white-space:nowrap;margin-top:4px;overflow:hidden}.ck-item-thumb{object-fit:cover;object-position:top;background:var(--ck-bg-muted);width:64px;height:44px;box-shadow:0 0 0 1px var(--ck-hairline);border-radius:6px;margin-top:2px}.ck-item-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:4px;line-height:1.45;display:-webkit-box;overflow:hidden}.ck-filters{gap:6px;padding:8px 10px;display:flex}.ck-filters+.ck-filters{padding-top:0}#ck-more-filters{flex-wrap:wrap}.ck-filters .ck-choose,.ck-filters .ck-people-pick{flex:none}#ck-more-filters .ck-choose-btn{height:32px;padding-block-start:0;padding-block-end:0;font-size:13px}.ck-pad{padding:8px 10px}.ck-branchbar{flex-wrap:wrap;gap:6px;padding:8px 10px 0;display:flex}.ck-tag{background:var(--ck-bg-hover);color:var(--ck-text-muted);white-space:nowrap;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:600}.ck-badge-soft{white-space:nowrap;background:color-mix(in srgb, var(--ck-warning) 14%, transparent);color:var(--ck-warning);border-radius:999px;padding:1px 7px;font-size:11px;font-weight:600}.ck-loading{padding:4px 16px}.ck-loading-row{padding:12px 0}.ck-loading-row+.ck-loading-row{border-top:1px solid var(--ck-hairline)}.ck-here{color:var(--ck-text-muted);white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.ck-dot{background:var(--ck-success);width:8px;height:8px;box-shadow:0 0 0 3px color-mix(in srgb, var(--ck-success) 20%, transparent);border-radius:50%}.ck-pad-x{margin:8px 12px 0}@media (pointer:coarse){.ck-tab{min-width:36px;min-height:36px}.ck-item{min-height:48px}}@media (hover:hover){.ck-tab:hover{color:var(--ck-text)}.ck-item:hover{background:var(--ck-bg-muted)}}.ck-count{font-variant-numeric:tabular-nums}.ck-search{flex:1;align-items:center;display:flex;position:relative}.ck-search>svg{color:var(--ck-text-muted);pointer-events:none;position:absolute}.ck-search>svg:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:10px}.ck-search>svg:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:10px}.ck-search>svg:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:10px}.ck-search>svg:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:10px}.ck-chip-quiet{background:0 0;border-color:#0000}.ck-result-count{font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline-start:auto;font-size:12px}.ck-item-meta{align-items:center;gap:4px;display:flex}.ck-live-note{align-items:center;gap:8px;margin:8px 10px 0;display:flex}.ck-faces{display:inline-flex}.ck-faces .ck-avatar{width:22px;height:22px;box-shadow:0 0 0 2px var(--ck-bg);margin-inline-start:-6px;font-size:9px}.ck-faces .ck-avatar:first-child{margin-inline-start:0}.ck-faces-more{color:var(--ck-text-muted);font-variant-numeric:tabular-nums;margin-inline-start:4px;font-size:12px}.ck-people-pick{position:relative}.ck-people-btn{max-width:170px}.ck-people-menu[data-end]:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:auto;right:0}.ck-people-menu[data-end]:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:auto;right:0}.ck-people-menu[data-end]:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:auto}.ck-people-menu[data-end]:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:auto}.ck-people-menu{z-index:3;top:calc(100% + 4px);overscroll-behavior:contain;background:var(--ck-bg);min-width:200px;max-height:240px;box-shadow:var(--ck-shadow);animation:ck-pop .12s var(--ck-ease);border:1px solid #0000;border-radius:12px;gap:2px;padding:6px;display:grid;position:absolute;overflow:auto}.ck-people-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-people-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-people-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-people-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-people-menu .ck-check{border-radius:6px;margin:0;padding:4px 6px;font-size:13px}@media (hover:hover){.ck-people-menu .ck-check:hover{background:var(--ck-bg-hover)}}.ck-panel-list,.ck-panel-detail{flex-direction:column;flex:1;min-height:0;display:flex}.ck-panel-list{animation:ck-slide-back .2s var(--ck-ease)}@keyframes ck-slide-back{0%{opacity:.4;translate:-16px}}.ck-list>li{animation:ck-rise .22s var(--ck-ease) backwards;animation-delay:calc(var(--i,0) * 30ms);position:relative}@keyframes ck-rise{0%{opacity:0;translate:0 6px}}.ck-list>li[data-done] .ck-item-main{opacity:.6}.ck-kind{color:var(--ck-text-muted);place-items:center;margin-inline-end:2px;display:inline-grid}.ck-flag{color:var(--ck-text-muted);place-items:center;display:inline-grid}.ck-flag[data-priority=urgent]{color:var(--ck-danger)}.ck-flag[data-priority=high]{color:#e06a00}.ck-flag[data-priority=medium]{color:var(--ck-review)}.ck-item-check{font-variant-numeric:tabular-nums;align-items:center;gap:2px;display:inline-flex}.ck-item-reactions{font-variant-numeric:tabular-nums;gap:6px;margin-inline-start:6px;display:inline-flex}.ck-item-reactions>span{align-items:center;gap:2px;display:inline-flex}.ck-item-reactions .ck-emoji{width:12px;height:12px}.ck-item-faces{margin-inline-start:auto}.ck-item-faces .ck-avatar{width:18px;height:18px;margin-inline-end:0;font-size:8px}.ck-item-actions{top:8px;background:var(--ck-bg);box-shadow:var(--ck-shadow-sm);opacity:0;pointer-events:none;border-radius:8px;gap:2px;padding:2px;transition:opacity .12s;display:flex;position:absolute}.ck-item-actions:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:10px}.ck-item-actions:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:10px}.ck-item-actions:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:10px}.ck-item-actions:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:10px}.ck-list>li:hover .ck-item-actions,.ck-list>li:focus-within .ck-item-actions{opacity:1;pointer-events:auto}.ck-item-actions .ck-ghost{place-items:center;width:26px;height:26px;padding:0;display:grid}.ck-choose{position:relative}.ck-choose-btn{text-align:start;white-space:nowrap;cursor:pointer;align-items:center;gap:6px;width:auto;max-width:180px;padding-inline-end:8px;display:inline-flex}.ck-choose-btn bdi{text-overflow:ellipsis;min-width:0;overflow:hidden}.ck-choose-btn svg{color:var(--ck-text-muted);transition:rotate .15s var(--ck-ease);flex:none;rotate:90deg}.ck-choose-btn[aria-expanded=true] svg{rotate:-90deg}.ck-choose[data-compact] .ck-choose-btn{border-radius:999px;height:26px;padding-block-start:0;padding-block-end:0;font-size:12px}.ck-choose-menu{z-index:4;top:calc(100% + 4px);overscroll-behavior:contain;background:var(--ck-bg);min-width:180px;max-height:260px;box-shadow:var(--ck-shadow);animation:ck-pop .12s var(--ck-ease);border:1px solid #0000;border-radius:12px;padding:4px;display:grid;position:absolute;overflow:auto}.ck-choose-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-choose-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-choose-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-choose-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-choose-menu[data-end]:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:auto;right:0}.ck-choose-menu[data-end]:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:auto;right:0}.ck-choose-menu[data-end]:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:auto}.ck-choose-menu[data-end]:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:0;right:auto}.ck-choose-menu button{border-radius:var(--ck-radius-sm);text-align:start;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;width:100%;padding:7px 10px;font-size:13px;display:block;overflow:hidden}.ck-choose-menu button[aria-selected=true]{background:var(--ck-accent-soft);font-weight:600}@media (hover:hover){.ck-choose-menu button:hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-choose-menu button{min-height:40px}.ck-choose-btn{min-height:36px}.ck-item-actions{display:none}}.ck-agent-chip{gap:5px}.ck-agent-chip svg{flex:none}.ck-list>li[data-picking] .ck-item{padding-inline-start:40px}.ck-list>li[data-picking] .ck-item[aria-pressed=true]{background:color-mix(in srgb, var(--ck-accent) 7%, transparent)}.ck-pick{z-index:1;width:16px;height:16px;accent-color:var(--ck-accent);cursor:pointer;margin:0;position:absolute;top:14px}.ck-pick:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:14px}.ck-pick:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:14px}.ck-pick:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:14px}.ck-pick:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:14px}.ck-pickbar{border-top:1px solid var(--ck-hairline);background:var(--ck-bg);align-items:center;gap:8px;padding:10px 12px;display:flex;position:relative}.ck-pickbar>.ck-muted{flex:1;font-size:13px}.ck-pickbar .ck-primary{align-items:center;gap:6px;display:inline-flex}.ck-agent-menu{top:auto;right:auto;bottom:calc(100% + 6px)}.ck-agent-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:12px}.ck-agent-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:12px}.ck-agent-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:12px}.ck-agent-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:12px}.ck-agent-menu button:disabled{opacity:.5;cursor:default}.ck-agent-note{margin:4px 10px 2px;font-size:12px}@media (pointer:coarse){.ck-pick{width:20px;height:20px;top:16px}}");
|
|
@@ -26,7 +26,7 @@ function g({ client: c, side: p, dock: ie = "bottom", onClose: g, onOpen: me, on
|
|
|
26
26
|
}), W = () => (He(null), U(!1));
|
|
27
27
|
l(W, [E]);
|
|
28
28
|
let qe = () => {
|
|
29
|
-
U(!0), We || import("./AgentSend-
|
|
29
|
+
U(!0), We || import("./AgentSend-DjFZSC0S.js").then((e) => Ge(() => e.AgentSend), (e) => (y(e), U(!1)));
|
|
30
30
|
};
|
|
31
31
|
l(() => {
|
|
32
32
|
if (!B) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e } from "./client-
|
|
1
|
+
import { a as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { f as t, l as n, m as r, n as i, s as a, u as o, v as s } from "./i18n-DAJGndZ2.js";
|
|
3
|
-
import { a as c, b as l, d as u, l as d, n as f } from "./start-
|
|
3
|
+
import { a as c, b as l, d as u, l as d, n as f } from "./start-C5-rebEU.js";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/ui/Settings.tsx
|
|
6
6
|
f(".ck-settings{width:min(380px,100vw - 24px)}.ck-settings .ck-card-body{gap:16px;display:grid}.ck-account{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);align-items:center;gap:12px;padding:12px;display:flex}.ck-account .ck-avatar{width:40px;height:40px;font-size:14px}.ck-account>div{gap:1px;min-width:0;font-size:12.5px;display:grid}.ck-account .ck-muted{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ck-setting h3{letter-spacing:.02em;text-transform:uppercase;color:var(--ck-text-muted);margin:0 0 8px;font-size:12px;font-weight:650}.ck-setting-hint{margin:6px 0 0;font-size:12px}.ck-segment{background:var(--ck-bg-muted);border-radius:10px;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;display:grid}.ck-segment button{height:30px;color:var(--ck-text-muted);background:0 0;border:0;border-radius:8px;font-size:13px;font-weight:600;transition:background-color .12s,color .12s,box-shadow .12s}.ck-segment button[aria-checked=true]{background:var(--ck-bg);color:var(--ck-text);box-shadow:var(--ck-shadow-sm)}.ck-setting-links{border-top:1px solid var(--ck-hairline);gap:2px;padding-top:8px;display:grid}.ck-setting-links a,.ck-setting-links button{border-radius:var(--ck-radius-sm);width:100%;color:var(--ck-text);text-align:start;background:0 0;border:0;align-items:center;gap:10px;padding:8px 10px;font-size:13.5px;text-decoration:none;display:flex}.ck-setting-links svg{color:var(--ck-text-muted);flex:none}.ck-setting-links .ck-danger{color:var(--ck-danger)}.ck-setting-links .ck-danger svg{color:currentColor}@media (hover:hover){.ck-setting-links a:hover,.ck-setting-links button:hover{background:var(--ck-bg-hover)}.ck-segment button:hover{color:var(--ck-text)}}@media (pointer:coarse){.ck-segment button{height:40px}.ck-setting-links a,.ck-setting-links button{min-height:44px}}.ck-team{gap:2px;margin:0;padding:0;list-style:none;display:grid}.ck-team li{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.ck-team-face{display:inline-flex;position:relative}.ck-team-face .ck-avatar{width:24px;height:24px;font-size:10px}.ck-online{background:var(--ck-success);width:8px;height:8px;box-shadow:0 0 0 2px var(--ck-bg);border-radius:50%;position:absolute;bottom:-1px}.ck-online:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-1px}.ck-online:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:-1px}.ck-online:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-1px}.ck-online:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:-1px}.ck-team-role{margin-inline-start:auto;font-size:12px}.ck-meter{background:var(--ck-bg-muted);height:6px;box-shadow:inset 0 0 0 1px var(--ck-hairline);border-radius:3px;overflow:hidden}.ck-meter>span{background:var(--ck-accent);height:100%;transition:width .3s var(--ck-ease);border-radius:3px;display:block}.ck-meter>span[data-high]{background:var(--ck-warning)}");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, l as t, s as n, u as r } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { d as i, n as a } from "./start-
|
|
2
|
+
import { d as i, n as a } from "./start-C5-rebEU.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/ui/Shortcuts.tsx
|
|
5
5
|
a(".ck-keys{gap:10px;margin:0;display:grid}.ck-keys div{grid-template-columns:minmax(96px,auto) 1fr;align-items:baseline;gap:12px;display:grid}.ck-keys dd{color:var(--ck-text-muted);margin:0}");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as e, f as t, l as n, m as r, s as i } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { a, i as o, o as s } from "./uploads-
|
|
3
|
-
import { StylePanel as c } from "./StylePanel-
|
|
2
|
+
import { a, i as o, o as s } from "./uploads-tpLjiJdH.js";
|
|
3
|
+
import { StylePanel as c } from "./StylePanel-DMC3riYK.js";
|
|
4
4
|
//#region src/ui/StyleEditor.tsx
|
|
5
5
|
function l({ client: l, thread: u, element: d, onSaved: f, onClose: p, onError: m }) {
|
|
6
6
|
let [h] = r(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as e, m as t, s as n, u as r, v as i } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { r as a, s as o } from "./uploads-
|
|
3
|
-
import { n as s } from "./start-
|
|
2
|
+
import { r as a, s as o } from "./uploads-tpLjiJdH.js";
|
|
3
|
+
import { n as s } from "./start-C5-rebEU.js";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/ui/StylePanel.tsx
|
|
6
6
|
s(".ck-style-panel{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);box-shadow:0 0 0 1px var(--ck-hairline);margin-top:8px;padding:8px 10px 10px}.ck-style-head{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.ck-style-done{height:26px;padding:0 10px;font-size:12px}.ck-style-actions{align-items:center;gap:4px;display:flex}.ck-style-hint{margin:4px 0 6px;font-size:12px;line-height:1.4}.ck-style-rows{overscroll-behavior:contain;gap:2px;max-height:236px;margin-inline-start:-4px;margin-inline-end:-4px;padding-inline-start:4px;padding-inline-end:4px;display:grid;overflow:auto}.ck-style-row{border-radius:var(--ck-radius-sm);grid-template-columns:minmax(96px,40%) 1fr;align-items:center;column-gap:8px;min-height:30px;padding:2px 4px;display:grid}.ck-style-row[data-changed]{background:color-mix(in srgb, var(--ck-accent) 10%, transparent)}.ck-style-row .ck-error{grid-column:2}.ck-style-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ck-text-muted);font-size:12px;overflow:hidden}.ck-style-name code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px}.ck-style-row[data-changed] .ck-style-name{color:var(--ck-text)}.ck-style-control{align-items:center;gap:2px;min-width:0;display:flex}.ck-style-control .ck-style-input{flex:1;width:auto;min-width:0;height:26px;padding:0 7px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.ck-style-control .ck-style-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-style-control .ck-ghost{flex:none;place-items:center;width:22px;height:22px;min-height:0;padding:0;font-size:14px;line-height:1;display:grid}.ck-style-steps{flex:none;display:flex}.ck-style-swatch{width:18px;height:18px;box-shadow:inset 0 0 0 1px var(--ck-hairline), 0 0 0 1px var(--ck-border);border-radius:50%;flex:none;margin-inline-end:4px}@media (pointer:coarse){.ck-style-control .ck-style-input{height:32px;font-size:16px}.ck-style-control .ck-ghost{width:30px;height:30px}}");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, l as t, m as n, n as r, s as i, u as a } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { n as o } from "./start-
|
|
2
|
+
import { n as o } from "./start-C5-rebEU.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/ui/TaskFields.tsx
|
|
5
5
|
o(".ck-task{flex-wrap:wrap;gap:6px;padding:8px 14px 0;display:flex}.ck-date{position:relative}.ck-date[data-set]{color:var(--ck-text)}.ck-date-input{opacity:0;cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}.ck-date:focus-within{outline:2px solid var(--ck-accent);outline-offset:1px}.ck-task-pick{position:relative}.ck-task-menu{z-index:2;top:calc(100% + 4px);border:1px solid var(--ck-border);border-radius:var(--ck-radius-md);background:var(--ck-bg);min-width:180px;max-height:220px;box-shadow:var(--ck-shadow);padding:4px 10px 10px;position:absolute;overflow:auto}.ck-task-menu:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.ck-task-menu:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-task-menu:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.ck-swatch{border-radius:50%;flex:none;width:8px;height:8px}.ck-task-menu{overscroll-behavior:contain}.ck-task-draft{border:0;margin-top:8px;padding:0}");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { p as e } from "./client-
|
|
1
|
+
import { p as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { a as t } from "./anchor-OCQnjp_6.js";
|
|
3
3
|
import { a as n, d as r, f as i, i as a, l as o, m as s, p as c, r as l, s as u, u as d, v as f } from "./i18n-DAJGndZ2.js";
|
|
4
|
-
import { r as p } from "./agent-
|
|
5
|
-
import { i as m, n as ee, o as te, r as h, s as g, t as ne } from "./card-bits-
|
|
4
|
+
import { r as p } from "./agent-CqDO3JMA.js";
|
|
5
|
+
import { i as m, n as ee, o as te, r as h, s as g, t as ne } from "./card-bits-C7bIk5KX.js";
|
|
6
6
|
import { i as re, n as _, r as ie, t as ae } from "./drafts-CpQdHhcK.js";
|
|
7
|
-
import { a as v, c as y, i as b, l as oe, n as se, t as ce, u as le } from "./uploads-
|
|
8
|
-
import { r as ue, t as de } from "./Checklist-
|
|
9
|
-
import { TaskFields as fe } from "./TaskFields-
|
|
10
|
-
import { _ as pe, a as me, b as x, c as he, d as S, f as ge, g as _e, i as ve, l as ye, n as C, p as be, r as xe, u as Se, v as Ce, x as we, y as Te } from "./start-
|
|
7
|
+
import { a as v, c as y, i as b, l as oe, n as se, t as ce, u as le } from "./uploads-tpLjiJdH.js";
|
|
8
|
+
import { r as ue, t as de } from "./Checklist-BEz4IZdT.js";
|
|
9
|
+
import { TaskFields as fe } from "./TaskFields-BfjjllMx.js";
|
|
10
|
+
import { _ as pe, a as me, b as x, c as he, d as S, f as ge, g as _e, i as ve, l as ye, n as C, p as be, r as xe, u as Se, v as Ce, x as we, y as Te } from "./start-C5-rebEU.js";
|
|
11
11
|
//#region src/ui/StyleChanges.tsx
|
|
12
12
|
function Ee({ thread: e, element: t, editable: n, client: a, onChange: l, onError: f = () => void 0 }) {
|
|
13
13
|
let p = c(() => v(e.style_changes), [e.style_changes]), [m, ee] = s(!1), [te, h] = s(!1), [g, ne] = s(null), re = i(null), _ = t instanceof HTMLElement || t instanceof SVGElement ? t : null;
|
|
@@ -38,7 +38,7 @@ function Ee({ thread: e, element: t, editable: n, client: a, onChange: l, onErro
|
|
|
38
38
|
"aria-label": u("styleEdit"),
|
|
39
39
|
disabled: te,
|
|
40
40
|
onClick: () => {
|
|
41
|
-
re.current?.revert(), ee(!1), h(!0), g || import("./StyleEditor-
|
|
41
|
+
re.current?.revert(), ee(!1), h(!0), g || import("./StyleEditor-DqZd6C5o.js").then((e) => ne(() => e.StyleEditor), f);
|
|
42
42
|
},
|
|
43
43
|
children: u("edit")
|
|
44
44
|
}) : null, /* @__PURE__ */ o("button", {
|
|
@@ -61,7 +61,7 @@ function w({ client: r, threadId: v, version: y = 0, onClose: b, onError: C, not
|
|
|
61
61
|
Ve({
|
|
62
62
|
images: e,
|
|
63
63
|
start: t
|
|
64
|
-
}), He || import("./Viewer-
|
|
64
|
+
}), He || import("./Viewer-mw69qSI5.js").then((e) => Ue(() => e.Viewer), C);
|
|
65
65
|
}, Ge = i(null), [Ke, qe] = s([]), [F, Je] = s(!1), [Ye, Xe] = s(!1), I = i(null), [Ze, Qe] = s(!1), [L, R] = s(null), [z, $e] = s(null), [et, B] = s(!1), [tt, nt] = s(!1), [V, rt] = s(null);
|
|
66
66
|
d(() => {
|
|
67
67
|
if (!V) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, l as t, m as n, s as r, u as i, v as a } from "./i18n-DAJGndZ2.js";
|
|
2
|
-
import { d as o, n as s } from "./start-
|
|
2
|
+
import { d as o, n as s } from "./start-C5-rebEU.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/ui/Viewer.tsx
|
|
5
5
|
s(".ck-viewer{z-index:calc(var(--ck-z) + 3);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0cd1;grid-template-rows:auto 1fr;place-items:center;padding:12px 56px 24px;animation:.16s ease-out ck-fade;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.ck-viewer-bar{color:#f2f1ec;justify-self:stretch;align-items:center;gap:4px;min-height:40px;display:flex}.ck-viewer-name{white-space:nowrap;text-overflow:ellipsis;flex:1;align-items:baseline;gap:10px;min-width:0;font-size:13px;font-weight:600;display:flex;overflow:hidden}.ck-viewer-count{color:#f2f1eca6;font-variant-numeric:tabular-nums;font-weight:500}.ck-viewer-btn,.ck-viewer-nav{color:#f2f1ec;background:#ffffff1a;border:0;border-radius:999px;place-items:center;width:36px;height:36px;padding:0;text-decoration:none;transition:background-color .12s,scale .15s ease-out;display:grid}.ck-viewer-btn:active,.ck-viewer-nav:active{scale:.96}.ck-viewer-img{object-fit:contain;border-radius:var(--ck-radius-md);outline:1px solid var(--ck-img-outline);outline-offset:-1px;max-width:100%;max-height:calc(100dvh - 96px);animation:ck-pop .18s var(--ck-ease);background:#fff;box-shadow:0 20px 60px #00000073}.ck-viewer-nav{width:40px;height:40px;position:absolute;top:50%;translate:0 -50%}.ck-viewer-nav[data-dir=prev]:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px}.ck-viewer-nav[data-dir=prev]:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:8px}.ck-viewer-nav[data-dir=prev]:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:8px}.ck-viewer-nav[data-dir=prev]:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:8px}.ck-viewer-nav[data-dir=next]:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-viewer-nav[data-dir=next]:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:8px}.ck-viewer-nav[data-dir=next]:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-viewer-nav[data-dir=next]:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:8px}.ck-viewer-nav[data-dir=prev] svg{scale:-1 1}.ck-root[dir=rtl] .ck-viewer-nav[data-dir=prev] svg{scale:1}.ck-root[dir=rtl] .ck-viewer-nav[data-dir=next] svg{scale:-1 1}.ck-viewer :focus-visible{outline-color:#fff}@media (hover:hover){.ck-viewer-btn:hover,.ck-viewer-nav:hover{background:#fff3}}@media (max-width:520px){.ck-viewer{padding:8px 8px 16px}.ck-viewer-nav{top:auto;bottom:16px;translate:none}}@media (pointer:coarse){.ck-viewer-btn,.ck-viewer-nav{width:44px;height:44px}}");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, w as t } from "./start-
|
|
1
|
+
import { C as e, w as t } from "./start-C5-rebEU.js";
|
|
2
2
|
//#region src/ui/agent.ts
|
|
3
3
|
var n = "untrusted-user-content", r = 4e3, i = "…truncated", a = /untrusted[\s\u00ad\u200b-\u200f\u2060-\u2064\ufeff_-]*user[\s\u00ad\u200b-\u200f\u2060-\u2064\ufeff_-]*content/gi;
|
|
4
4
|
function o(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as e } from "./client-
|
|
1
|
+
import { p as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { i as t, l as n, s as r, v as i } from "./i18n-DAJGndZ2.js";
|
|
3
|
-
import { c as a, d as o } from "./start-
|
|
3
|
+
import { c as a, d as o } from "./start-C5-rebEU.js";
|
|
4
4
|
//#region src/core/contract-lists.ts
|
|
5
5
|
var s = [
|
|
6
6
|
"👍",
|
|
@@ -367,7 +367,7 @@ function D(e) {
|
|
|
367
367
|
}
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/core/client.ts
|
|
370
|
-
var O = "1.5.
|
|
370
|
+
var O = "1.5.1", k = "https://commentkit.dev", A = "edit_conflict", j = 20, M = (e) => e ? `${e.project.id}|${e.person.type}:${e.person.id}|${e.role}` : null, N = class {
|
|
371
371
|
constructor(e) {
|
|
372
372
|
this.options = e, this.listeners = /* @__PURE__ */ new Map(), this.realtime = null, this.live = null, this.attempts = 0, this.configTag = null, this.tags = /* @__PURE__ */ new Map(), this.previews = /* @__PURE__ */ new Map(), this.unreadKnown = !1, this.conversations = /* @__PURE__ */ new Map();
|
|
373
373
|
let t = (e.endpoint ?? k).replace(/\/+$/, "");
|
|
@@ -660,7 +660,7 @@ var O = "1.5.0", k = "https://commentkit.dev", A = "edit_conflict", j = 20, M =
|
|
|
660
660
|
this.unreadKnown = !0, this.state.set({ unread: t.unread });
|
|
661
661
|
}
|
|
662
662
|
upload(e, t, n = "file", r = {}) {
|
|
663
|
-
return import("./upload-
|
|
663
|
+
return import("./upload-CzPAjktW.js").then((i) => i.upload(this.api, e, t, n, r));
|
|
664
664
|
}
|
|
665
665
|
connectRealtime(e) {
|
|
666
666
|
let t = this.state.get().config, n = this.state.get().session, r = M(n);
|
|
@@ -52,7 +52,43 @@ function r(e) {
|
|
|
52
52
|
return "#ffffff";
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
var i = 4e3;
|
|
56
|
+
function a(e, t) {
|
|
57
|
+
return e.replace(/url\(\s*(['"]?)([^'")]+)\1\s*\)/g, (e, n, r) => /^(?:[a-z][a-z\d+.-]*:|#)/i.test(r) ? e : `url(${n}${new URL(r, t).href}${n})`);
|
|
58
|
+
}
|
|
59
|
+
function o(e, t = 0) {
|
|
60
|
+
if (!e || t > 4) return null;
|
|
61
|
+
try {
|
|
62
|
+
let n = e.href ?? document.baseURI;
|
|
63
|
+
return Array.from(e.cssRules, (e) => {
|
|
64
|
+
let r = e.styleSheet;
|
|
65
|
+
if (e.constructor.name === "CSSImportRule" || r) {
|
|
66
|
+
let n = o(r, t + 1) ?? "", i = e.media?.mediaText;
|
|
67
|
+
return i ? `@media ${i} {${n}}` : n;
|
|
68
|
+
}
|
|
69
|
+
return a(e.cssText, n);
|
|
70
|
+
}).join("\n");
|
|
71
|
+
} catch {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async function s(e) {
|
|
76
|
+
let t = e.defaultView, n = document.querySelectorAll("link[rel~=\"stylesheet\"]"), r = !!t && "adoptedStyleSheets" in e && typeof t.CSSStyleSheet?.prototype.replaceSync == "function", a = [], s = [], c = 0;
|
|
77
|
+
for (let l of Array.from(e.querySelectorAll("link[rel~=\"stylesheet\"], style"))) {
|
|
78
|
+
let e = l.tagName === "LINK", u = e ? n[c++] : null, d = r ? e ? u && u.href === l.href && !u.sheet?.disabled ? o(u.sheet) : null : o(l.sheet) : null;
|
|
79
|
+
if (d !== null && t) try {
|
|
80
|
+
let e = new t.CSSStyleSheet(l.media ? { media: l.media } : {});
|
|
81
|
+
e.replaceSync(d), a.push(e), l.remove();
|
|
82
|
+
continue;
|
|
83
|
+
} catch {}
|
|
84
|
+
let f = l;
|
|
85
|
+
e && !f.sheet && s.push(new Promise((e) => {
|
|
86
|
+
f.addEventListener("load", () => e(), { once: !0 }), f.addEventListener("error", () => e(), { once: !0 }), setTimeout(e, i);
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
a.length && (e.adoptedStyleSheets = [...a, ...e.adoptedStyleSheets]), await Promise.all(s);
|
|
90
|
+
}
|
|
91
|
+
function c(r) {
|
|
56
92
|
let i = r.defaultView;
|
|
57
93
|
if (!i) return;
|
|
58
94
|
let a = n(r), o = (e) => {
|
|
@@ -98,4 +134,4 @@ function i(r) {
|
|
|
98
134
|
for (let [e, t, n] of s) e.setProperty(t, n, "important");
|
|
99
135
|
}
|
|
100
136
|
//#endregion
|
|
101
|
-
export { r as captureBackground,
|
|
137
|
+
export { r as captureBackground, c as normalizeCaptureColors, s as settleStylesheets };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, u as t } from "./client-
|
|
1
|
+
import { d as e, u as t } from "./client-dZeNdizE.js";
|
|
2
2
|
//#region src/core/extension.ts
|
|
3
3
|
var n = "commentkit:ext-request", r = "The CommentKit extension did not answer.", i = null, a = /* @__PURE__ */ new Map();
|
|
4
4
|
function o() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { askExtension as e } from "./extension-
|
|
2
|
-
import { t } from "./Composer-
|
|
1
|
+
import { askExtension as e } from "./extension-BFkXOmX5.js";
|
|
2
|
+
import { t } from "./Composer-D1wbmdjF.js";
|
|
3
3
|
//#region src/capture/extension.ts
|
|
4
4
|
var n = 8e6, r = "[data-commentkit-host]", i = "#d4d4d8";
|
|
5
5
|
function a(e = []) {
|
|
@@ -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-BQS2_xfB.js").then((e) => _ = e.readSource, () => v = !1));
|
|
108
108
|
}
|
|
109
109
|
function b(e) {
|
|
110
110
|
let t = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, o as t, p as n, t as r } from "./client-
|
|
1
|
+
import { c as e, o as t, p as n, t as r } from "./client-dZeNdizE.js";
|
|
2
2
|
//#region src/activation.ts
|
|
3
3
|
var i = "commentkit:active", a = "data-commentkit-extension";
|
|
4
4
|
function o() {
|
|
@@ -78,8 +78,8 @@ function m(i) {
|
|
|
78
78
|
try {
|
|
79
79
|
let e = await p.loadConfig();
|
|
80
80
|
if (!e.enabled && !b) return;
|
|
81
|
-
let t = import("./start-
|
|
82
|
-
t.catch(() => void 0), n.catch(() => void 0), await p.auth.completeRedirect().catch(() => !1), o() && await import("./extension-
|
|
81
|
+
let t = import("./start-C5-rebEU.js").then((e) => e.t), n = t.then((e) => e.setLocale(s.locale));
|
|
82
|
+
t.catch(() => void 0), n.catch(() => void 0), await p.auth.completeRedirect().catch(() => !1), o() && await import("./extension-BFkXOmX5.js").then((e) => e.extensionHandoff(p.auth)).catch(() => !1), await p.loadSession().catch(() => null);
|
|
83
83
|
let { installDiagnostics: r, mountWidget: i } = await t;
|
|
84
84
|
_ = r({
|
|
85
85
|
console: e.features.console_capture,
|
|
@@ -102,7 +102,7 @@ function m(i) {
|
|
|
102
102
|
at: Date.now()
|
|
103
103
|
} }) : (l(!0), S());
|
|
104
104
|
});
|
|
105
|
-
return o() && import("./extension-
|
|
105
|
+
return o() && import("./extension-BFkXOmX5.js").then((e) => e.extensionHello()).catch(() => void 0), c(s.project, s.hideOnProduction ?? !0) && S(), d = {
|
|
106
106
|
client: p,
|
|
107
107
|
show: S,
|
|
108
108
|
hide: C,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-Y_bBpyJl.js";
|
|
2
|
-
import { i as t, p as n } from "./client-
|
|
2
|
+
import { i as t, p as n } from "./client-dZeNdizE.js";
|
|
3
3
|
import { a as r, i, n as a, r as o, t as s } from "./anchor-OCQnjp_6.js";
|
|
4
4
|
import { _ as c, a as l, c as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, s as b, u as x, v as S } from "./i18n-DAJGndZ2.js";
|
|
5
5
|
import { n as C, t as w } from "./drafts-CpQdHhcK.js";
|
|
@@ -252,7 +252,7 @@ function Z({ name: e, size: t = 18 }) {
|
|
|
252
252
|
close: "M6 6l12 12M18 6L6 18",
|
|
253
253
|
more: "M5 12h.01M12 12h.01M19 12h.01",
|
|
254
254
|
image: "M4 5h16v14H4zM4 15l4-4 4 4 3-3 5 5M15 9h.01",
|
|
255
|
-
paperclip: "
|
|
255
|
+
paperclip: "M17.5 8.5v7a5.5 5.5 0 0 1-11 0V7a3.75 3.75 0 0 1 7.5 0v8.25a2 2 0 0 1-4 0V8.5",
|
|
256
256
|
pen: "M4 20l4-1 11-11-3-3L5 16zM14 6l3 3",
|
|
257
257
|
check: "M5 12l4 4 10-10",
|
|
258
258
|
user: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 20a8 8 0 0 1 16 0",
|
|
@@ -635,7 +635,7 @@ function ke({ onCancel: e, onPick: t, quote: n = !0 }) {
|
|
|
635
635
|
}), a = y(() => matchMedia("(pointer: coarse)").matches, []), [c, l] = g(null), u = d(null);
|
|
636
636
|
x(() => {
|
|
637
637
|
let e = !0;
|
|
638
|
-
return import("./pick-
|
|
638
|
+
return import("./pick-dDDLxCDI.js").then((r) => {
|
|
639
639
|
if (!e) return;
|
|
640
640
|
u.current = r, r.prepare();
|
|
641
641
|
let a = n ? r.selected() : null, o = a?.toString().trim();
|
|
@@ -1284,15 +1284,15 @@ function $e({ client: e, onHide: t }) {
|
|
|
1284
1284
|
}, []);
|
|
1285
1285
|
let [f, m] = g(!1), [_, v] = g(!1), [y, C] = g(null);
|
|
1286
1286
|
x(() => {
|
|
1287
|
-
_ && !y && import("./Settings-
|
|
1287
|
+
_ && !y && import("./Settings-C_qV4n7J.js").then((e) => C(() => e.Settings), W);
|
|
1288
1288
|
}, [_]);
|
|
1289
1289
|
let [T, E] = g(null), [D, O] = g(null);
|
|
1290
1290
|
x(() => {
|
|
1291
|
-
f && !D && import("./Shortcuts-
|
|
1291
|
+
f && !D && import("./Shortcuts-ChnaribX.js").then((e) => O(() => e.Shortcuts), W);
|
|
1292
1292
|
}, [f]);
|
|
1293
1293
|
let [k, A] = g(null);
|
|
1294
1294
|
x(() => {
|
|
1295
|
-
(a.name === "commenting" || a.name === "composing") && !k && import("./Composer-
|
|
1295
|
+
(a.name === "commenting" || a.name === "composing") && !k && import("./Composer-D1wbmdjF.js").then((t) => {
|
|
1296
1296
|
A(() => t.Composer), e.state.get().config?.features.screenshots !== !1 && t.warmCapture();
|
|
1297
1297
|
}, W);
|
|
1298
1298
|
}, [a.name]);
|
|
@@ -1348,7 +1348,7 @@ function $e({ client: e, onHide: t }) {
|
|
|
1348
1348
|
if (n(), t(), i) {
|
|
1349
1349
|
e.inbox().catch(() => void 0);
|
|
1350
1350
|
let t = e.state.get().config;
|
|
1351
|
-
t?.features.realtime && t.realtime && import("./live-
|
|
1351
|
+
t?.features.realtime && t.realtime && import("./live-MvvBdoGd.js").then((t) => (G.current ?? (G.current = t.liveUpdates(e, () => ae.current, () => se((e) => e + 1))), e.connectRealtime((e) => G.current?.onPing(e)))).catch(() => void 0);
|
|
1352
1352
|
}
|
|
1353
1353
|
return it(() => (n(), t()));
|
|
1354
1354
|
}, [
|
|
@@ -1385,9 +1385,9 @@ function $e({ client: e, onHide: t }) {
|
|
|
1385
1385
|
draft: null
|
|
1386
1386
|
});
|
|
1387
1387
|
}, []), x(() => {
|
|
1388
|
-
a.name === "verify" && !T && import("./Guest-
|
|
1388
|
+
a.name === "verify" && !T && import("./Guest-CtyRy8Kz.js").then((e) => E(() => e.GuestVerify), W);
|
|
1389
1389
|
}, [a.name]), x(() => {
|
|
1390
|
-
a.name === "panel" && !j && import("./Panel-
|
|
1390
|
+
a.name === "panel" && !j && import("./Panel-DSoUAlbQ.js").then((e) => M(() => e.Panel), W), (a.name === "thread" || a.name === "panel" && a.threadId) && !N && import("./ThreadCard-DmKAelSL.js").then((e) => P(() => e.ThreadCard), W);
|
|
1391
1391
|
}, [a.name, a.name === "panel" ? a.threadId : null]), x(() => {
|
|
1392
1392
|
if (!F || !i) return;
|
|
1393
1393
|
if (e.state.set({ opening: null }), /^[0-9a-f-]{36}$/i.test(F)) return Y(F);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as e } from "./client-
|
|
1
|
+
import { p as e } from "./client-dZeNdizE.js";
|
|
2
2
|
import { f as t, l as n, m as r, s as i, u as a } from "./i18n-DAJGndZ2.js";
|
|
3
|
-
import { a as o } from "./card-bits-
|
|
4
|
-
import { d as s, l as c, n as l } from "./start-
|
|
3
|
+
import { a as o } from "./card-bits-C7bIk5KX.js";
|
|
4
|
+
import { d as s, l as c, n as l } from "./start-C5-rebEU.js";
|
|
5
5
|
//#region src/ui/editing.ts
|
|
6
6
|
var u = {
|
|
7
7
|
bold: "**",
|
package/dist/npm/element.js
CHANGED
package/dist/npm/headless.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { f as e, i as t, l as n, n as r, p as i, r as a, t as o } from "./chunks/client-
|
|
1
|
+
import { f as e, i as t, l as n, n as r, p as i, r as a, t as o } from "./chunks/client-dZeNdizE.js";
|
|
2
2
|
import { a as s, o as c, t as l } from "./chunks/anchor-OCQnjp_6.js";
|
|
3
3
|
export { e as ApiClient, n as AuthManager, o as CommentKitClient, i as CommentKitError, r as EDIT_CONFLICT, a as SDK_VERSION, l as createAnchor, t as currentPageUrl, s as resolveAnchor, c as stableSelector };
|
package/dist/npm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./chunks/src-
|
|
2
|
-
import { p as t, r as n } from "./chunks/client-
|
|
1
|
+
import { t as e } from "./chunks/src-C_oUnL0i.js";
|
|
2
|
+
import { p as t, r as n } from "./chunks/client-dZeNdizE.js";
|
|
3
3
|
export { t as CommentKitError, n as SDK_VERSION, e as init };
|
package/dist/npm/react.js
CHANGED
package/dist/npm/svelte.js
CHANGED
package/dist/npm/vue.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commentkit/comment-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Figma-style comments for any website. Clients pin feedback with an automatic screenshot; developers see it on localhost and hand it to their AI agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comments",
|