@commentkit/comment-kit 2.1.0 → 2.1.2
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 +17 -0
- package/dist/npm/chunks/{AgentSend-pA7Ufvye.js → AgentSend-DhG61w_r.js} +3 -3
- package/dist/npm/chunks/{Checklist-Cn9skOYK.js → Checklist-C2q5KzWe.js} +9 -8
- package/dist/npm/chunks/{Composer-D7H-pzGa.js → Composer-Dj0YAYOR.js} +32 -31
- package/dist/npm/chunks/{DatePicker-Nta5a1xD.js → DatePicker-TshUaQHj.js} +3 -3
- package/dist/npm/chunks/{Guest-Bi7hlzhs.js → Guest-bAxvxjbL.js} +6 -5
- package/dist/npm/chunks/{MarkupEditor-WU3USeTk.js → MarkupEditor-DnViTOOC.js} +9 -8
- package/dist/npm/chunks/{Panel-DhAzbUbC.js → Panel-C3_NURrp.js} +287 -286
- package/dist/npm/chunks/{Settings-BmKqPX40.js → Settings-BM7pWbwd.js} +19 -18
- package/dist/npm/chunks/{Shortcuts-Bl-c0Sez.js → Shortcuts-CFDTnP5H.js} +6 -6
- package/dist/npm/chunks/SignInFirst-CeiPhLx0.js +36 -0
- package/dist/npm/chunks/{StyleEditor-D6fUnlwq.js → StyleEditor-BUZrhAY6.js} +4 -4
- package/dist/npm/chunks/{StylePanel-C-Gikxt1.js → StylePanel-CFp-U7qa.js} +3 -3
- package/dist/npm/chunks/TaskFields-C4GddJTi.js +652 -0
- package/dist/npm/chunks/{ThreadCard-d_3pUB5V.js → ThreadCard-CwClbMNh.js} +48 -47
- package/dist/npm/chunks/{Viewer-BULQsi9-.js → Viewer-oM3stPeq.js} +3 -3
- package/dist/npm/chunks/{agent-DHdhIJ3s.js → agent-DfUu5BAp.js} +12 -12
- package/dist/npm/chunks/{ar-B5UszrQp.js → ar-DtfC6tHi.js} +2 -0
- package/dist/npm/chunks/{card-bits-cV8GdFWX.js → card-bits-BXOCnmcQ.js} +5 -5
- package/dist/npm/chunks/{client-Cv8ddtuM.js → client-BqcfSisZ.js} +7 -7
- package/dist/npm/chunks/{confetti-B9zlyILU.js → confetti-CM1XHlrM.js} +1 -1
- package/dist/npm/chunks/{context-CsHnabaA.js → context-0MfEgoip.js} +1 -1
- package/dist/npm/chunks/{de-BE0Aaq8u.js → de-CSyX5Cz-.js} +2 -0
- package/dist/npm/chunks/{dpop-CwW9ifkq.js → dpop-CHzhM9ud.js} +1 -1
- package/dist/npm/chunks/{entrance-Bn_5M9uO.js → entrance-D7kmBxF3.js} +29 -29
- package/dist/npm/chunks/{es-BQviao4d.js → es-D7SAi7fz.js} +2 -0
- package/dist/npm/chunks/{extension-DXhz81XD.js → extension-PWW2UQD7.js} +1 -1
- package/dist/npm/chunks/{extension-CnQTDC1j.js → extension-TF7pIF_W.js} +2 -2
- package/dist/npm/chunks/{files-DLEr_wmh.js → files-BkHuRlcW.js} +2 -2
- package/dist/npm/chunks/{fr-C5gu6A06.js → fr-CIr2nUyu.js} +2 -0
- package/dist/npm/chunks/{hi-DXfQ5EvY.js → hi-BTocxOL5.js} +2 -0
- package/dist/npm/chunks/{i18n-Mgs9VOuk.js → i18n-CDw_D17c.js} +10 -10
- package/dist/npm/chunks/{icons-_C6ZWmBY.js → icons-BJLm_C0M.js} +1 -1
- package/dist/npm/chunks/{identify-BnQGJOa0.js → identify-CoQ4rxaI.js} +1 -1
- package/dist/npm/chunks/{it-BPHt13FV.js → it-DCExRo0r.js} +2 -0
- package/dist/npm/chunks/{ja-BkCqyKR0.js → ja-CgWpTdWi.js} +2 -0
- package/dist/npm/chunks/{late-words-D4Oo_yhJ.js → late-words-QnNheaDY.js} +2 -0
- package/dist/npm/chunks/{live-DXcxj_Af.js → live-HKWO5Tsg.js} +23 -21
- package/dist/npm/chunks/{nl-DZxdLLMU.js → nl-DhTQ8oJ_.js} +2 -0
- package/dist/npm/chunks/{page-key-UqAozdZi.js → page-key-z6o1r8Uu.js} +1 -1
- package/dist/npm/chunks/{pick-C20RVUas.js → pick-Bai3lMZX.js} +1 -1
- package/dist/npm/chunks/{pkce-BPvWoBrr.js → pkce-B6VU0dtv.js} +1 -1
- package/dist/npm/chunks/{pt-BR-lA9mJ05F.js → pt-BR-DrO6LV4n.js} +2 -0
- package/dist/npm/chunks/{report-BjUgUNnT.js → report-D-yxx5uK.js} +1 -1
- package/dist/npm/chunks/sheet-77GHVTpR.js +18 -0
- package/dist/npm/chunks/{show-BinoJyED.js → show-C3bJFyaD.js} +12 -10
- package/dist/npm/chunks/{signin-C2jjsxz9.js → signin-Bq2KYFLY.js} +3 -3
- package/dist/npm/chunks/{source-NuflODx3.js → source-W_nJm3Ym.js} +1 -1
- package/dist/npm/chunks/{src-9o2Ocq8d.js → src-BFu9DgRc.js} +57 -52
- package/dist/npm/chunks/{start-Cbx6rMrr.js → start-Dgw3mSp8.js} +524 -513
- package/dist/npm/chunks/{upload-C4NpM-jE.js → upload-b0nY04eW.js} +1 -1
- package/dist/npm/chunks/{uploads-CY4bDbaI.js → uploads-Df4mLJ9O.js} +199 -198
- package/dist/npm/chunks/waiting-BRtT3ZZT.js +54 -0
- package/dist/npm/chunks/wrap-BuWw3zAq.js +69 -0
- package/dist/npm/chunks/{zh-CN-yqaDHwBx.js → zh-CN-Bb8UzT1V.js} +2 -0
- package/dist/npm/element.js +1 -1
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +2 -2
- package/dist/npm/react.js +1 -1
- package/dist/npm/svelte.js +1 -1
- package/dist/npm/types/core/client.d.ts +2 -0
- package/dist/npm/vue.js +1 -1
- package/package.json +1 -1
- package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +0 -35
- package/dist/npm/chunks/TaskFields-CaKi523b.js +0 -617
- package/dist/npm/chunks/wrap-D-xTKIzj.js +0 -69
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @commentkit/comment-kit
|
|
2
2
|
|
|
3
|
+
## [2.1.2] - 2026-11-22
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- When Cmd/Ctrl+Shift+K brings up a hidden widget and it takes a moment to arrive, a small "Loading…" appears where the toolbar will be. The toolbar also arrives sooner on slow connections, because the parts it needs now download at the same time. Pressing the shortcut again while it loads is the same request: it no longer opens the inbox or reaches your page.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- The toolbar's ⋯ menu closes when you press Comment (or C, or anything that opens the inbox, Settings or a note by the toolbar), so it no longer sits on top of the "Sign in to comment" note. Opening the menu while that note shows closes the note.
|
|
12
|
+
- The lists for priority, assignee, labels, due date and status open whole. In the comment box they were cut off by the bottom of the card; they now open below when there is room, above when there is not, and scroll inside themselves on small screens.
|
|
13
|
+
|
|
14
|
+
## [2.1.1] - 2026-11-21
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Pressing Cmd/Ctrl+Shift+K a second time while signed out no longer opens a sign-in window or takes the page away to the CommentKit sign-in page. A short "Sign in to see comments" note appears by the toolbar instead, with "Sign in" and "Not now". After signing in from it the inbox opens, also when sign-in happens in the same tab. Someone whose comment is waiting for its emailed code goes back to that step. The new words are first-draft translations.
|
|
19
|
+
|
|
3
20
|
## [2.1.0] - 2026-11-20
|
|
4
21
|
|
|
5
22
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-
|
|
2
|
-
import { n as s, t as c } from "./agent-
|
|
3
|
-
import { M as l, v as u } from "./start-
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { n as s, t as c } from "./agent-DfUu5BAp.js";
|
|
3
|
+
import { M as l, v as u } from "./start-Dgw3mSp8.js";
|
|
4
4
|
// src/ui/AgentSend.tsx
|
|
5
5
|
var d = {
|
|
6
6
|
cursor: "Cursor",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-
|
|
2
|
-
import { n as c, t as l } from "./icons-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { n as c, t as l } from "./icons-BJLm_C0M.js";
|
|
3
|
+
import { t as u } from "./sheet-77GHVTpR.js";
|
|
4
|
+
import { r as d } from "./context-0MfEgoip.js";
|
|
5
|
+
import { j as f } from "./start-Dgw3mSp8.js";
|
|
5
6
|
// src/ui/art.tsx
|
|
6
|
-
|
|
7
|
+
u(".ck-art{margin:0 auto 12px;display:block;overflow:visible}.ck-art *{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.ck-art-w,.ck-art-a,path.ck-art-m{stroke:var(--ck-text);stroke-width:2px}.ck-art-w{fill:var(--ck-bg)}.ck-art-a{fill:var(--ck-accent)}.ck-art-m{fill:var(--ck-bg-hover)}.ck-art-line{fill:none;stroke:var(--ck-text);stroke-width:2px}.ck-art-bold{stroke-width:4.5px}.ck-art-tick{fill:none;stroke:var(--ck-accent-ink);stroke-width:2.6px}.ck-art-dot{fill:var(--ck-border)}.ck-art-ink{fill:var(--ck-text)}.ck-art-spark{fill:none;stroke:var(--ck-accent);stroke-width:2.4px}.ck-art-ghost{fill:none;stroke:var(--ck-text-muted);stroke-width:2px;stroke-dasharray:5 5}.ck-art-shadow{fill:var(--ck-bg-hover)}");
|
|
7
8
|
var p = "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", m = (e, t, n, r) => /* @__PURE__ */ s("path", {
|
|
8
9
|
class: r,
|
|
9
10
|
d: p,
|
|
@@ -156,8 +157,8 @@ function g({ name: e }) {
|
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
// src/ui/Checklist.tsx
|
|
159
|
-
function _({ thread: t, editable: n, addable:
|
|
160
|
-
let { client: g, reportError: _ } =
|
|
160
|
+
function _({ thread: t, editable: n, addable: u = !0, start: p = 0, onChange: m }, h) {
|
|
161
|
+
let { client: g, reportError: _ } = d(h), [v, y] = e(!1);
|
|
161
162
|
i(() => void (p && y(!0)), [p]);
|
|
162
163
|
let [b, x] = e(""), [S, C] = e(!1), w = o(null), [T, E] = e(0);
|
|
163
164
|
a(() => {
|
|
@@ -191,7 +192,7 @@ function _({ thread: t, editable: n, addable: d = !0, start: p = 0, onChange: m
|
|
|
191
192
|
]), _(n);
|
|
192
193
|
});
|
|
193
194
|
};
|
|
194
|
-
return !D.length && !(n &&
|
|
195
|
+
return !D.length && !(n && u && v) ? null : /* @__PURE__ */ s("div", {
|
|
195
196
|
class: "ck-extra",
|
|
196
197
|
ref: w,
|
|
197
198
|
children: [D.length ? /* @__PURE__ */ s("div", {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { a as e } from "./src-
|
|
2
|
-
import { b as t, o as n, v as r } from "./client-
|
|
1
|
+
import { a as e } from "./src-BFu9DgRc.js";
|
|
2
|
+
import { b as t, o as n, v as r } from "./client-BqcfSisZ.js";
|
|
3
3
|
import { a as i, c as a, o, s } from "./privacy-BWUGlHw5.js";
|
|
4
4
|
import { s as c } from "./anchor-BsQNVkHj.js";
|
|
5
|
-
import { _ as l, b as u, c as d, d as f, f as p, m, u as h, v as g } from "./i18n-
|
|
6
|
-
import { n as _, t as ee } from "./icons-
|
|
7
|
-
import { a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as v, t as fe } from "./uploads-
|
|
8
|
-
import { r as pe } from "./files-
|
|
9
|
-
import { n as me, r as he, t as ge } from "./card-bits-
|
|
5
|
+
import { _ as l, b as u, c as d, d as f, f as p, m, u as h, v as g } from "./i18n-CDw_D17c.js";
|
|
6
|
+
import { n as _, t as ee } from "./icons-BJLm_C0M.js";
|
|
7
|
+
import { a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as v, t as fe } from "./uploads-Df4mLJ9O.js";
|
|
8
|
+
import { r as pe } from "./files-BkHuRlcW.js";
|
|
9
|
+
import { n as me, r as he, t as ge } from "./card-bits-BXOCnmcQ.js";
|
|
10
10
|
import { i as y } from "./drafts-B0ctr1g9.js";
|
|
11
|
-
import { t as b } from "./
|
|
12
|
-
import {
|
|
11
|
+
import { t as b } from "./sheet-77GHVTpR.js";
|
|
12
|
+
import { t as _e } from "./states-DLMCvwes.js";
|
|
13
|
+
import { A as ve, C as ye, F as x, S, b as be, c as xe, d as Se, f as Ce, j as we, p as Te, y as C, z as Ee } from "./start-Dgw3mSp8.js";
|
|
13
14
|
// src/capture/context.ts
|
|
14
15
|
function De() {
|
|
15
16
|
let e = navigator.userAgent, t = w(e, [
|
|
@@ -60,7 +61,7 @@ function Oe() {
|
|
|
60
61
|
}
|
|
61
62
|
async function ke(t = {}) {
|
|
62
63
|
let n = (t.redact ?? []).filter(s), r = o(t.privacy), i = innerWidth, a = innerHeight, c = null;
|
|
63
|
-
e() && (c = await import("./extension-
|
|
64
|
+
e() && (c = await import("./extension-PWW2UQD7.js").then((e) => e.captureTab(n, r)).catch(() => null)), c ?? (c = await D(n, r, i, a));
|
|
64
65
|
let l = c.getContext("2d"), u = c.width / Math.max(1, i);
|
|
65
66
|
return l && Ae(l, u, t), t.crop && t.region && (c = k(c, u, t.region, i, a)), {
|
|
66
67
|
blob: await Me(c),
|
|
@@ -137,19 +138,19 @@ function Ne(e, t) {
|
|
|
137
138
|
return !1;
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent: re, onError: v, share: b = null, onPending:
|
|
142
|
-
let
|
|
141
|
+
b(_e), b(re);
|
|
142
|
+
function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent: re, onError: v, share: b = null, onPending: _e }) {
|
|
143
|
+
let x = S(e.state, (e) => e.config), w = S(e.state, (e) => e.session?.person ?? null), T = g(() => Te(e, i.anchor), [i.anchor]), [E, Oe] = l(() => He()), [D, Ae] = l(() => le(T, void 0, Te(e, i.anchor, n()))), [O, je] = l([]), [k, Me] = l(null), A = e.options.tools ?? {}, Ne = x?.features.screenshots !== !1 && A.screenshots !== !1, Pe = A.attachments !== !1, [j, We] = l(Ne ? "capturing" : "off"), N = S(e.state, (e) => !!e.session?.capabilities.triage), Ge = N && A.checklist !== !1, [P] = l(() => Ue(T)), [Ke, qe] = l(P?.task ?? {}), [F, Je] = l(P?.checklist ?? null), [I, Ye] = l(""), Xe = C(N, () => import("./TaskFields-C4GddJTi.js").then((e) => e.TaskDraft), () => void 0), [L, Ze] = l(P?.markup ?? []), [Qe, R] = l(!1), $e = C(Qe, () => import("./MarkupEditor-DnViTOOC.js").then((e) => e.MarkupEditor), (e) => (R(!1), v(e))), z = ue(e, (e) => v(new r(0, "file_rejected", e))), B = g(() => {
|
|
143
144
|
if (!N || A.style === !1 || i.anchor.type !== "element" && i.anchor.type !== "text") return null;
|
|
144
145
|
let e = c(i.anchor).element;
|
|
145
146
|
return e instanceof HTMLElement || e instanceof SVGElement ? e : null;
|
|
146
|
-
}, [i.anchor, N]), [V, et] = l(P?.styles ?? []), [H, tt] = l(!1), nt = C(H, () => import("./StylePanel-
|
|
147
|
+
}, [i.anchor, N]), [V, et] = l(P?.styles ?? []), [H, tt] = l(!1), nt = C(H, () => import("./StylePanel-CFp-U7qa.js").then((e) => e.StylePanel), v), U = m(null), W = m(null), rt = () => {
|
|
147
148
|
B && (U.current ?? (U.current = de(B)), W.current ?? (W.current = new se(B)), tt(!0));
|
|
148
149
|
};
|
|
149
150
|
p(() => {
|
|
150
151
|
H ? W.current?.apply(V) : W.current?.revert();
|
|
151
152
|
}, [H, V]), p(() => () => W.current?.revert(), []);
|
|
152
|
-
let [G, it] = l(null), at = C(G !== null, () => import("./Viewer-
|
|
153
|
+
let [G, it] = l(null), at = C(G !== null, () => import("./Viewer-oM3stPeq.js").then((e) => e.Viewer), v), [K, q] = l("idle"), J = K !== "idle", [ot, st] = l(!1);
|
|
153
154
|
f(() => {
|
|
154
155
|
if (K !== "sending") return st(!1);
|
|
155
156
|
let e = setTimeout(() => st(!0), 1e4);
|
|
@@ -158,7 +159,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
158
159
|
let Y = m(null), ct = m(!1), [lt, ut] = l(() => {
|
|
159
160
|
let e = !!y(Ce);
|
|
160
161
|
return y(Ce, null), e && a;
|
|
161
|
-
}), [dt, ft] = l(!1), pt = !!(
|
|
162
|
+
}), [dt, ft] = l(!1), pt = !!(x?.features.console_capture || x?.features.network_capture), mt = S(e.state, (e) => !e.session || e.session.role === "guest"), [ht, gt] = l(x?.features.capture_consent_default === !0 && !mt), X = be(), _t = !a && !b, Z = !a && !!b && !e.auth.pending(), [vt, yt] = l(null), bt = {
|
|
162
163
|
name: m(null),
|
|
163
164
|
email: m(null)
|
|
164
165
|
}, xt = m(null), Q = m(null), St = m(null);
|
|
@@ -191,8 +192,8 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
191
192
|
if (!o) {
|
|
192
193
|
if (o = !0, t) return a(null);
|
|
193
194
|
ke({
|
|
194
|
-
redact: [...
|
|
195
|
-
privacy:
|
|
195
|
+
redact: [...x?.privacy.redact_selectors ?? [], ...e.options.redact ?? []],
|
|
196
|
+
privacy: xe(x, e.options.privacy),
|
|
196
197
|
pin: i.region ? null : i.point,
|
|
197
198
|
region: i.region,
|
|
198
199
|
crop: !!i.region
|
|
@@ -240,7 +241,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
240
241
|
o.missing && (r ?? (r = "files"));
|
|
241
242
|
let c = {
|
|
242
243
|
...De(),
|
|
243
|
-
...pt && ht ?
|
|
244
|
+
...pt && ht ? Ee() : {},
|
|
244
245
|
screenshot_id: n,
|
|
245
246
|
markup: L.length ? L : void 0
|
|
246
247
|
}, l = N ? Le(Ke) : void 0, u = [...F ?? [], ...F && I.trim() ? [I.trim()] : []], d = B ? te(V) : [];
|
|
@@ -268,7 +269,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
268
269
|
try {
|
|
269
270
|
let t = !a && !b;
|
|
270
271
|
if (Z && b) {
|
|
271
|
-
let { startGuest: n } = await import("./Guest-
|
|
272
|
+
let { startGuest: n } = await import("./Guest-bAxvxjbL.js");
|
|
272
273
|
y(Ve, JSON.stringify({
|
|
273
274
|
name: E.name,
|
|
274
275
|
email: E.email
|
|
@@ -305,11 +306,11 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
305
306
|
signal: s.signal
|
|
306
307
|
});
|
|
307
308
|
if (n) return;
|
|
308
|
-
if (u(), Q.current = null, p.pending_verification) return
|
|
309
|
+
if (u(), Q.current = null, p.pending_verification) return _e?.(e.auth.pending()?.email ?? E.email);
|
|
309
310
|
d(p);
|
|
310
311
|
} catch (t) {
|
|
311
312
|
if (n) return;
|
|
312
|
-
if (t instanceof r && ["pending_limit", "verification_required"].includes(t.code) && e.auth.pending()) return
|
|
313
|
+
if (t instanceof r && ["pending_limit", "verification_required"].includes(t.code) && e.auth.pending()) return _e?.(e.auth.pending().email);
|
|
313
314
|
let i = me(t);
|
|
314
315
|
ft(i ?? !0), i || v(t);
|
|
315
316
|
} finally {
|
|
@@ -318,18 +319,18 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
318
319
|
};
|
|
319
320
|
return /* @__PURE__ */ h(u, { children: [i.region ? /* @__PURE__ */ h("div", {
|
|
320
321
|
class: "ck-pending-region",
|
|
321
|
-
style:
|
|
322
|
+
style: ve(i.region.x, i.region.y, i.region.w, i.region.h),
|
|
322
323
|
"aria-hidden": "true",
|
|
323
324
|
"data-commentkit-ui": !0
|
|
324
325
|
}) : i.anchor.type === "page" ? null : /* @__PURE__ */ h("div", {
|
|
325
326
|
class: "ck-pending-pin",
|
|
326
|
-
style:
|
|
327
|
+
style: ve(i.point.x, i.point.y),
|
|
327
328
|
"aria-hidden": "true",
|
|
328
329
|
"data-commentkit-ui": !0,
|
|
329
330
|
children: [/* @__PURE__ */ h("svg", {
|
|
330
331
|
viewBox: "5 3 54 62",
|
|
331
332
|
children: /* @__PURE__ */ h("path", { d: Ie })
|
|
332
|
-
}), w ? /* @__PURE__ */ h(
|
|
333
|
+
}), w ? /* @__PURE__ */ h(ye, { person: w }) : null]
|
|
333
334
|
}), /* @__PURE__ */ h("div", {
|
|
334
335
|
class: "ck-card ck-composer",
|
|
335
336
|
ref: Tt,
|
|
@@ -382,7 +383,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
382
383
|
Pe ? /* @__PURE__ */ h(ge, {
|
|
383
384
|
input: xt,
|
|
384
385
|
onFiles: Lt,
|
|
385
|
-
types:
|
|
386
|
+
types: x?.limits?.upload_types
|
|
386
387
|
}) : null,
|
|
387
388
|
Ge ? /* @__PURE__ */ h("button", {
|
|
388
389
|
ref: Dt,
|
|
@@ -614,11 +615,11 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
614
615
|
rel: "noopener noreferrer",
|
|
615
616
|
children: d("guestPrivacyLink")
|
|
616
617
|
}),
|
|
617
|
-
ze(
|
|
618
|
-
href: ze(
|
|
618
|
+
ze(x) ? /* @__PURE__ */ h(u, { children: [" · ", /* @__PURE__ */ h("a", {
|
|
619
|
+
href: ze(x),
|
|
619
620
|
target: "_blank",
|
|
620
621
|
rel: "noopener noreferrer",
|
|
621
|
-
children: d("guestPrivacySite", { website:
|
|
622
|
+
children: d("guestPrivacySite", { website: x?.project.name ?? "" })
|
|
622
623
|
})] }) : null
|
|
623
624
|
]
|
|
624
625
|
})]
|
|
@@ -670,7 +671,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
|
|
|
670
671
|
})] });
|
|
671
672
|
}
|
|
672
673
|
function Fe() {
|
|
673
|
-
let [e, t] = l(!1), n = e ? j(
|
|
674
|
+
let [e, t] = l(!1), n = e ? j(Ee()) : [];
|
|
674
675
|
return /* @__PURE__ */ h("details", {
|
|
675
676
|
class: "ck-diag",
|
|
676
677
|
onToggle: (e) => t(e.currentTarget.open),
|
|
@@ -693,7 +694,7 @@ function Re(e) {
|
|
|
693
694
|
}
|
|
694
695
|
var M = "commentkit:pending-extras";
|
|
695
696
|
function ze(e) {
|
|
696
|
-
let t =
|
|
697
|
+
let t = x(e?.privacy?.notice_url);
|
|
697
698
|
return t?.startsWith("https:") ? t : null;
|
|
698
699
|
}
|
|
699
700
|
function Be(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e, c as t, l as n, m as r, n as i, u as a } from "./i18n-
|
|
2
|
-
import { n as o } from "./icons-
|
|
3
|
-
import {
|
|
1
|
+
import { _ as e, c as t, l as n, m as r, n as i, u as a } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { n as o } from "./icons-BJLm_C0M.js";
|
|
3
|
+
import { t as s } from "./sheet-77GHVTpR.js";
|
|
4
4
|
// src/ui/DatePicker.tsx
|
|
5
5
|
s(".ck-date-quick{border-bottom:1px solid var(--ck-hairline);flex-wrap:wrap;gap:4px;margin-bottom:4px;padding-bottom:8px;display:flex}.ck-date-chip{white-space:nowrap;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);height:24px;color:var(--ck-text);font-size:var(--ck-fs-sm);transition:background-color var(--ck-fast);border:0;padding:0 5px;font-weight:500}.ck-date-clear{color:var(--ck-text-muted);background:0 0;margin-inline-start:auto;padding:0 4px}.ck-date-head{justify-content:space-between;align-items:center;height:28px;margin:4px 0;display:flex}.ck-date-title{font-size:var(--ck-fs-md);font-weight:600}.ck-root[dir=rtl] .ck-date-step svg{scale:-1 1}.ck-date-grid{gap:2px;display:grid}.ck-date-row{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.ck-date-wd{height:24px;color:var(--ck-text-muted);font-size:var(--ck-fs-xs);place-items:center;font-weight:500;display:grid}.ck-date-wd abbr{text-decoration:none}.ck-date-day{border-radius:var(--ck-radius-sm);width:100%;height:30px;color:var(--ck-text);font-size:var(--ck-fs-md);font-variant-numeric:tabular-nums;transition:background-color var(--ck-fast);background:0 0;border:0;padding:0}.ck-date-day[data-other]{color:var(--ck-text-muted)}.ck-date-day[data-today]{box-shadow:inset 0 0 0 1px var(--ck-control);font-weight:600}.ck-date-day[data-selected]{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:none;font-weight:600}.ck-date-day:focus-visible{outline-offset:0}@media (hover:hover){.ck-date-chip:hover,.ck-date-day:not([data-selected]):hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-date-day{height:40px}.ck-date-chip{height:36px}}@media (forced-colors:active){.ck-date-day[data-selected]{color:highlighttext;background:highlight}}");
|
|
6
6
|
var c = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, l = (e) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { b as e, o as t, v as n } from "./client-
|
|
2
|
-
import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-
|
|
3
|
-
import { n as u } from "./icons-
|
|
4
|
-
import { r as d } from "./card-bits-
|
|
5
|
-
import {
|
|
1
|
+
import { b as e, o as t, v as n } from "./client-BqcfSisZ.js";
|
|
2
|
+
import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-CDw_D17c.js";
|
|
3
|
+
import { n as u } from "./icons-BJLm_C0M.js";
|
|
4
|
+
import { r as d } from "./card-bits-BXOCnmcQ.js";
|
|
5
|
+
import { t as f } from "./sheet-77GHVTpR.js";
|
|
6
|
+
import { h as p } from "./start-Dgw3mSp8.js";
|
|
6
7
|
// src/ui/Guest.tsx
|
|
7
8
|
f(".ck-verify-text{text-wrap:pretty;overflow-wrap:anywhere;margin:0 0 12px;line-height:1.5}.ck-verify .ck-code{height:48px;font-family:var(--ck-mono);font-size:var(--ck-fs-xl);letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums;padding-inline-start:calc(12px + .32em);padding-inline-end:12px}.ck-verify .ck-actions .ck-chip{font-variant-numeric:tabular-nums}.ck-verify .ck-chip:disabled{opacity:.5;cursor:default}.ck-verify .ck-note{margin:12px 0 0}@media (hover:hover){.ck-verify .ck-chip:disabled:hover{background:var(--ck-bg);color:var(--ck-text-muted)}}@media (pointer:coarse){.ck-verify .ck-chip{min-height:44px}}");
|
|
8
9
|
async function m(e, r) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { t as o } from "./sheet-77GHVTpR.js";
|
|
3
|
+
import { A as s, _ as c } from "./start-Dgw3mSp8.js";
|
|
3
4
|
// src/ui/MarkupEditor.tsx
|
|
4
|
-
|
|
5
|
+
o(".ck-markup{z-index:calc(var(--ck-z) + 2);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0c4d;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.ck-markup canvas{border-radius:var(--ck-radius-md);cursor:crosshair;touch-action:none;background:#fff;max-width:min(100%,1100px);max-height:calc(100dvh - 110px);box-shadow:0 0 0 1px #0000000d,0 20px 50px #00000040}.ck-label-box .ck-input{width:200px;font-weight:600}.ck-markup .ck-markup-tools{background:var(--ck-bg);border-radius:var(--ck-radius-pill);max-width:100%;box-shadow:var(--ck-shadow);border:1px solid #0000;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px;display:flex}.ck-markup .ck-markup-group{align-items:center;gap:4px;padding:0 4px;display:flex}.ck-markup .ck-markup-group+.ck-markup-group{border-inline-start:1px solid var(--ck-hairline);margin-inline-start:4px;padding-inline-start:8px}.ck-markup .ck-tool{border-radius:var(--ck-radius-pill);width:32px;height:32px;color:var(--ck-text-muted);transition:background-color var(--ck-fast), color var(--ck-fast), scale var(--ck-fast) ease-out;background:0 0;border:0;place-items:center;padding:0;display:grid}.ck-markup .ck-tool[aria-pressed=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text)}.ck-markup .ck-tool:active,.ck-markup .ck-icon-btn:active:not([aria-disabled=true]){scale:.96}.ck-markup .ck-dot{width:16px;height:16px;box-shadow:inset 0 0 0 1px var(--ck-hairline);border-radius:50%;display:block}.ck-markup .ck-tool[aria-pressed=true] .ck-dot{box-shadow:0 0 0 2px var(--ck-bg), 0 0 0 4px currentColor}.ck-markup .ck-width{gap:8px;width:152px}.ck-markup .ck-width input{min-width:0;accent-color:var(--ck-accent);cursor:pointer;flex:1}.ck-markup .ck-width span{width:32px;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;text-align:end;flex:none}.ck-markup .ck-btn-group{display:inline-flex}.ck-markup .ck-icon-btn{border:1px solid var(--ck-control);background:var(--ck-bg);width:32px;height:32px;color:var(--ck-text);transition:background-color var(--ck-fast), scale var(--ck-fast) ease-out;place-items:center;padding:0;display:grid}.ck-markup .ck-icon-btn+.ck-icon-btn{margin-inline-start:-1px}.ck-markup .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:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .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:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:focus-visible{z-index:1;position:relative}.ck-markup .ck-icon-btn[aria-disabled=true]{opacity:.5;cursor:default}.ck-markup .ck-icon-btn.ck-primary{border-color:var(--ck-accent);background:var(--ck-accent);color:var(--ck-accent-ink);position:relative}.ck-markup .ck-label-box{z-index:1;border-radius:var(--ck-radius-md);background:var(--ck-bg);box-shadow:var(--ck-shadow);border:1px solid #0000;align-items:center;gap:4px;padding:4px;display:flex;position:fixed}.ck-markup .ck-label-box .ck-input{border-radius:var(--ck-radius-sm);height:32px}.ck-markup .ck-label-box .ck-chip{flex:none;height:32px}@media (hover:hover){.ck-markup .ck-icon-btn:hover:not([aria-disabled=true]):not(.ck-primary){background:var(--ck-bg-hover)}.ck-markup .ck-tool:hover{background:var(--ck-bg-hover);color:var(--ck-text)}}@media (forced-colors:active){.ck-markup .ck-tool[aria-pressed=true]{color:highlighttext;background:highlight}}@media (pointer:coarse){.ck-markup .ck-tool,.ck-markup .ck-icon-btn{width:44px;height:44px}}@media (max-width:520px){.ck-markup .ck-markup-tools{border-radius:var(--ck-radius)}}");
|
|
5
6
|
var l = /* @__PURE__ */ new WeakSet(), u = [
|
|
6
7
|
"pen",
|
|
7
8
|
"line",
|
|
@@ -55,7 +56,7 @@ function h({ d: e }) {
|
|
|
55
56
|
children: /* @__PURE__ */ a("path", { d: e })
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
|
-
function g({ image:
|
|
59
|
+
function g({ image: o, onDone: c, onCancel: g }) {
|
|
59
60
|
let b = i(null), [x, S] = e(null), [C, w] = e("pen"), [T, E] = e(d[0]), [D, O] = e(3), [k, A] = e({
|
|
60
61
|
steps: [[]],
|
|
61
62
|
at: 0
|
|
@@ -87,13 +88,13 @@ function g({ image: s, onDone: c, onCancel: g }) {
|
|
|
87
88
|
};
|
|
88
89
|
n(() => {
|
|
89
90
|
let e = !0, t = null;
|
|
90
|
-
return createImageBitmap(
|
|
91
|
+
return createImageBitmap(o).then((n) => e ? S(t = n) : n.close()), () => {
|
|
91
92
|
if (e = !1, t) {
|
|
92
93
|
let e = t;
|
|
93
94
|
S((t) => t === e ? null : t), l.add(e), e.close();
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
|
-
}, [
|
|
97
|
+
}, [o]), n(() => V(), [x, j]);
|
|
97
98
|
let V = (e) => {
|
|
98
99
|
let t = b.current;
|
|
99
100
|
if (!t || !x || l.has(x)) return;
|
|
@@ -272,7 +273,7 @@ function g({ image: s, onDone: c, onCancel: g }) {
|
|
|
272
273
|
}),
|
|
273
274
|
I ? /* @__PURE__ */ a("div", {
|
|
274
275
|
class: "ck-label-box",
|
|
275
|
-
style:
|
|
276
|
+
style: s(I.left, I.top),
|
|
276
277
|
children: [/* @__PURE__ */ a("input", {
|
|
277
278
|
ref: R,
|
|
278
279
|
class: "ck-input",
|
|
@@ -302,7 +303,7 @@ function _(e, t) {
|
|
|
302
303
|
let n = e?.getBoundingClientRect().width || e?.width || 1;
|
|
303
304
|
return Math.max(1, Math.min(64, Math.round(t * ((e?.width ?? n) / n))));
|
|
304
305
|
}
|
|
305
|
-
var v = () =>
|
|
306
|
+
var v = () => c() ? "⌘" : "Ctrl";
|
|
306
307
|
function y(e, t, n) {
|
|
307
308
|
let r = t.points ?? [], i = t.width ?? Math.max(3, Math.round(n.width / 300));
|
|
308
309
|
e.save(), e.strokeStyle = e.fillStyle = t.color ?? "#ff3b30", e.lineWidth = i, e.lineCap = e.lineJoin = "round";
|