@commentkit/comment-kit 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +14 -6
- package/dist/node/cli/api.js +61 -15
- package/dist/node/cli/credentials.js +8 -0
- package/dist/node/cli/doctor.js +68 -5
- package/dist/node/cli/main.js +275 -52
- package/dist/node/cli/website.js +140 -0
- package/dist/node/types/next.d.ts +4 -4
- package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
- package/dist/npm/chunks/{AgentSend-DOy3jhyF.js → AgentSend-pA7Ufvye.js} +3 -3
- package/dist/npm/chunks/Checklist-Cn9skOYK.js +269 -0
- package/dist/npm/chunks/Composer-D7H-pzGa.js +734 -0
- package/dist/npm/chunks/DatePicker-Nta5a1xD.js +161 -0
- package/dist/npm/chunks/{Guest-7hcN765o.js → Guest-Bi7hlzhs.js} +18 -17
- package/dist/npm/chunks/{MarkupEditor-6bJGpWGO.js → MarkupEditor-WU3USeTk.js} +2 -2
- package/dist/npm/chunks/{Panel-ChPUB68C.js → Panel-DhAzbUbC.js} +308 -309
- package/dist/npm/chunks/{Settings-CB5eEKnf.js → Settings-BmKqPX40.js} +34 -33
- package/dist/npm/chunks/{Shortcuts-eAyjJ89P.js → Shortcuts-Bl-c0Sez.js} +25 -23
- package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +35 -0
- package/dist/npm/chunks/{StyleEditor-CZTdAA5c.js → StyleEditor-D6fUnlwq.js} +4 -4
- package/dist/npm/chunks/{StylePanel-B4pHQUL9.js → StylePanel-C-Gikxt1.js} +3 -3
- package/dist/npm/chunks/TaskFields-CaKi523b.js +617 -0
- package/dist/npm/chunks/ThreadCard-d_3pUB5V.js +1142 -0
- package/dist/npm/chunks/{Viewer-DY6zb90M.js → Viewer-BULQsi9-.js} +9 -8
- package/dist/npm/chunks/{agent-MTQHr9ei.js → agent-DHdhIJ3s.js} +1 -1
- package/dist/npm/chunks/{ar-L5cQ-NPe.js → ar-B5UszrQp.js} +51 -12
- package/dist/npm/chunks/{card-bits-CTdrkYn8.js → card-bits-cV8GdFWX.js} +12 -10
- package/dist/npm/chunks/{client-7eVxvg5j.js → client-Cv8ddtuM.js} +13 -11
- package/dist/npm/chunks/{confetti-BIs5s14P.js → confetti-B9zlyILU.js} +1 -1
- package/dist/npm/chunks/{context-Cf6khm7A.js → context-CsHnabaA.js} +1 -1
- package/dist/npm/chunks/{de-D0C-v6tP.js → de-BE0Aaq8u.js} +51 -12
- package/dist/npm/chunks/{dpop-0A76OPa9.js → dpop-CwW9ifkq.js} +1 -1
- package/dist/npm/chunks/entrance-Bn_5M9uO.js +90 -0
- package/dist/npm/chunks/{es-Bw4Dj9tN.js → es-BQviao4d.js} +51 -12
- package/dist/npm/chunks/{extension-SmoH5AA4.js → extension-CnQTDC1j.js} +2 -2
- package/dist/npm/chunks/{extension-DFVOvciD.js → extension-DXhz81XD.js} +1 -1
- package/dist/npm/chunks/{files-4lV9YQIX.js → files-DLEr_wmh.js} +2 -2
- package/dist/npm/chunks/{fr-TkuQaIAa.js → fr-C5gu6A06.js} +51 -12
- package/dist/npm/chunks/{hi-DXSH2U8d.js → hi-DXfQ5EvY.js} +51 -12
- package/dist/npm/chunks/{i18n-aVSu9TcJ.js → i18n-Mgs9VOuk.js} +17 -21
- package/dist/npm/chunks/icons-_C6ZWmBY.js +141 -0
- package/dist/npm/chunks/{identify-BGYh2dVo.js → identify-BnQGJOa0.js} +1 -1
- package/dist/npm/chunks/{it-CiWA_bch.js → it-BPHt13FV.js} +51 -12
- package/dist/npm/chunks/{ja-C-QmR3yz.js → ja-BkCqyKR0.js} +50 -11
- package/dist/npm/chunks/late-words-D4Oo_yhJ.js +57 -0
- package/dist/npm/chunks/{live-BExWHzQ7.js → live-DXcxj_Af.js} +28 -22
- package/dist/npm/chunks/{nl-CEmZRqjX.js → nl-DZxdLLMU.js} +51 -12
- package/dist/npm/chunks/{page-key-HSY3Lze5.js → page-key-UqAozdZi.js} +1 -1
- package/dist/npm/chunks/{pick-B3sR7jtS.js → pick-C20RVUas.js} +1 -1
- package/dist/npm/chunks/{pkce-CfZhiNBi.js → pkce-BPvWoBrr.js} +1 -1
- package/dist/npm/chunks/{pt-BR-b-a8sxO8.js → pt-BR-lA9mJ05F.js} +51 -12
- package/dist/npm/chunks/{report-DaVuoRYS.js → report-BjUgUNnT.js} +1 -1
- package/dist/npm/chunks/{show-BoN8AC-F.js → show-BinoJyED.js} +7 -7
- package/dist/npm/chunks/signin-C2jjsxz9.js +101 -0
- package/dist/npm/chunks/{source-mk3rGBBQ.js → source-NuflODx3.js} +1 -1
- package/dist/npm/chunks/{src-C8rZFyL_.js → src-9o2Ocq8d.js} +21 -15
- package/dist/npm/chunks/start-Cbx6rMrr.js +1904 -0
- package/dist/npm/chunks/states-DLMCvwes.js +3 -0
- package/dist/npm/chunks/{upload-B2mkgMeJ.js → upload-C4NpM-jE.js} +1 -1
- package/dist/npm/chunks/uploads-CY4bDbaI.js +1236 -0
- package/dist/npm/chunks/{wrap-DW6EFbVQ.js → wrap-D-xTKIzj.js} +20 -20
- package/dist/npm/chunks/{zh-CN-JTscW8u8.js → zh-CN-yqaDHwBx.js} +51 -12
- package/dist/npm/element.js +7 -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/adapters/vue.d.ts +12 -0
- package/dist/npm/types/core/auth.d.ts +1 -0
- package/dist/npm/types/core/client.d.ts +5 -1
- package/dist/npm/types/core/types.d.ts +17 -2
- package/dist/npm/vue.js +5 -1
- package/package.json +2 -1
- package/dist/npm/chunks/Checklist-CW_SwMpS.js +0 -282
- package/dist/npm/chunks/Composer-Bveq5QrK.js +0 -727
- package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +0 -289
- package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +0 -1160
- package/dist/npm/chunks/late-words-80_VWt8S.js +0 -14
- package/dist/npm/chunks/signin-BOWr_WCo.js +0 -75
- package/dist/npm/chunks/start-CV4j78_q.js +0 -1894
- package/dist/npm/chunks/states-b9Bv3Ci7.js +0 -3
- package/dist/npm/chunks/uploads-8AxyRq7g.js +0 -1147
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { c as e } from "./client-
|
|
2
|
-
import { _ as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { c as e } from "./client-Cv8ddtuM.js";
|
|
2
|
+
import { _ as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-Mgs9VOuk.js";
|
|
3
|
+
import { n as c } from "./icons-_C6ZWmBY.js";
|
|
4
|
+
import { i as l } from "./files-DLEr_wmh.js";
|
|
5
|
+
import { t as u } from "./dialog-DvdIkCW0.js";
|
|
6
|
+
import { C as d, P as f, S as p, a as m, c as h, i as g, o as _, v } from "./start-Cbx6rMrr.js";
|
|
7
|
+
h(u), h(".ck-settings .ck-card-body{grid-template-columns:minmax(0,1fr);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{--ck-av:40px}.ck-account>div{min-width:0;font-size:var(--ck-fs-sm);gap:2px;display:grid}.ck-account .ck-msg-name,.ck-account .ck-muted{overflow-wrap:anywhere}.ck-setting h3{font-size:var(--ck-fs-sm);letter-spacing:.05em;text-transform:uppercase;color:var(--ck-text-muted);margin:0 0 8px;font-weight:600}.ck-root:-webkit-any(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-root:is(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-setting-hint{font-size:var(--ck-fs-sm);text-wrap:pretty;margin:8px 0 0}.ck-toggle{border-radius:var(--ck-radius-sm);width:100%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.ck-toggle:focus-visible{outline-offset:2px}.ck-switch{border-radius:var(--ck-radius-pill);background:var(--ck-text-muted);width:36px;height:20px;transition:background-color var(--ck-fast);flex:none;position:relative}.ck-switch:after{content:\"\";top:2px;background:var(--ck-bg);width:16px;height:16px;box-shadow:var(--ck-shadow-sm);border-radius:50%;position:absolute}.ck-switch: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))):after{left:2px}.ck-switch: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))):after{left:2px}.ck-switch:-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)):after{right:2px}.ck-switch: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)):after{right:2px}.ck-toggle[aria-checked=true] .ck-switch{background:var(--ck-accent)}.ck-toggle[aria-checked=true] .ck-switch:after{background:var(--ck-accent-ink)}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch:-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)):after{right:18px}.ck-toggle[aria-checked=true] .ck-switch: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)):after{right:18px}.ck-segment{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:4px;display:grid}.ck-segment button{border-radius:var(--ck-radius-sm);height:32px;color:var(--ck-text-muted);font-size:var(--ck-fs-md);white-space:nowrap;text-overflow:ellipsis;transition:background-color var(--ck-fast), color var(--ck-fast);background:0 0;border:0;padding:0 8px;font-weight:600;overflow:hidden}.ck-segment button[aria-checked=true]{background:var(--ck-bg);color:var(--ck-text);box-shadow:var(--ck-shadow-sm)}.ck-segment button:focus-visible{outline-offset:-2px}.ck-segment button:active{scale:.96}.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%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;transition:background-color var(--ck-fast);background:0 0;border:0;align-items:center;gap:12px;padding:8px 12px;text-decoration:none;display:flex}.ck-setting-links :-webkit-any(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :is(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :-webkit-any(a,button):active{background:var(--ck-bg-hover)}.ck-setting-links :is(a,button):active{background:var(--ck-bg-hover)}.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}.ck-team{grid-template-columns:minmax(0,1fr);gap:2px;margin:0;padding:0;list-style:none;display:grid}.ck-team li{min-height:32px;font-size:var(--ck-fs-md);align-items:center;gap:8px;padding-block-start:4px;padding-block-end:4px;display:flex}.ck-team-name{overflow-wrap:anywhere;min-width:0}.ck-team li>.ck-muted{flex:none}.ck-team-face{flex:none;display:inline-flex;position:relative}.ck-team-face .ck-avatar{--ck-av:24px}.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:-2px}.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:-2px}.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:-2px}.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:-2px}.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:-2px}.ck-team-role{font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-meter{border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);outline:1px solid var(--ck-hairline);outline-offset:-1px;height:6px;overflow:hidden}.ck-meter>span{background:var(--ck-accent);border-radius:inherit;height:100%;display:block}.ck-meter>span[data-high]{background:var(--ck-warning)}@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,.ck-setting-links a,.ck-setting-links button{min-height:44px}}@media (forced-colors:active){.ck-segment button[aria-checked=true]{color:highlighttext;background:highlight}.ck-switch{background:canvas;border:1px solid canvastext}.ck-switch:after,.ck-toggle[aria-checked=true] .ck-switch:after{background:canvastext}.ck-toggle[aria-checked=true] .ck-switch{background:highlight}}@media (pointer:coarse){.ck-toggle{min-height:44px}}@media (prefers-reduced-motion:reduce){.ck-segment button:active{scale:none}}");
|
|
7
8
|
var y = [
|
|
8
9
|
["auto", "themeSystem"],
|
|
9
10
|
["light", "themeLight"],
|
|
10
11
|
["dark", "themeDark"]
|
|
11
12
|
];
|
|
12
|
-
function b({ client:
|
|
13
|
-
let T =
|
|
13
|
+
function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
14
|
+
let T = p(u.state, (e) => e.session), E = p(u.state, (e) => e.theme ?? u.options.theme ?? e.config?.appearance?.theme ?? "auto"), D = o(null), O = p(u.state, (e) => e.team), k = T?.role === "admin" || T?.role === "member", [A, j] = t(null), [M, N] = t(null);
|
|
14
15
|
i(() => {
|
|
15
|
-
k && (
|
|
16
|
+
k && (u.people().then((e) => j(e.filter((e) => e.role && e.role !== "reviewer")), () => j([])), u.usage().then(N, () => N(null)));
|
|
16
17
|
}, [k]), a(() => {
|
|
17
18
|
let e = D.current?.getRootNode(), t = e?.activeElement ?? document.activeElement;
|
|
18
19
|
return D.current?.focus({ preventScroll: !0 }), () => x(t, e);
|
|
19
20
|
}, []);
|
|
20
|
-
let P =
|
|
21
|
-
i(() => g(() => L(
|
|
21
|
+
let P = u.options.shortcuts !== !1, F = !!T?.capabilities.triage, [I, L] = t(() => _(F));
|
|
22
|
+
i(() => g(() => L(_(F))), []);
|
|
22
23
|
let R = (t) => {
|
|
23
|
-
e(t),
|
|
24
|
-
}, z =
|
|
24
|
+
e(t), u.state.set({ theme: t });
|
|
25
|
+
}, z = f(T?.dashboard_url), B = A?.find((e) => e.id === T?.person.id)?.role, V = T ? r(`role_${B === "owner" ? "owner" : T.role}`) : "";
|
|
25
26
|
return /* @__PURE__ */ s("div", {
|
|
26
27
|
class: "ck-scrim",
|
|
27
28
|
"data-commentkit-ui": !0,
|
|
28
|
-
onClick: (e) => e.target === e.currentTarget &&
|
|
29
|
+
onClick: (e) => e.target === e.currentTarget && h(),
|
|
29
30
|
children: /* @__PURE__ */ s("div", {
|
|
30
31
|
class: "ck-card ck-dialog ck-settings",
|
|
31
32
|
role: "dialog",
|
|
32
33
|
"aria-modal": "true",
|
|
33
34
|
"aria-labelledby": "ck-settings-title",
|
|
34
35
|
onKeyDown: (e) => {
|
|
35
|
-
e.stopPropagation(), e.key === "Escape" ?
|
|
36
|
+
e.stopPropagation(), e.key === "Escape" ? h() : S(e);
|
|
36
37
|
},
|
|
37
38
|
children: [/* @__PURE__ */ s("div", {
|
|
38
39
|
class: "ck-card-head",
|
|
@@ -43,10 +44,10 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
43
44
|
}), /* @__PURE__ */ s("button", {
|
|
44
45
|
class: "ck-ghost",
|
|
45
46
|
ref: D,
|
|
46
|
-
"aria-label": r("
|
|
47
|
-
title: r("
|
|
48
|
-
onClick:
|
|
49
|
-
children: /* @__PURE__ */ s(
|
|
47
|
+
"aria-label": r("closeSettings"),
|
|
48
|
+
title: r("closeSettings"),
|
|
49
|
+
onClick: h,
|
|
50
|
+
children: /* @__PURE__ */ s(c, { name: "clear" })
|
|
50
51
|
})]
|
|
51
52
|
}), /* @__PURE__ */ s("div", {
|
|
52
53
|
class: "ck-card-body",
|
|
@@ -54,7 +55,7 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
54
55
|
T ? /* @__PURE__ */ s("section", {
|
|
55
56
|
class: "ck-account",
|
|
56
57
|
"aria-label": r("account"),
|
|
57
|
-
children: [/* @__PURE__ */ s(
|
|
58
|
+
children: [/* @__PURE__ */ s(d, { person: T.person }), /* @__PURE__ */ s("div", { children: [
|
|
58
59
|
/* @__PURE__ */ s("bdi", {
|
|
59
60
|
class: "ck-msg-name",
|
|
60
61
|
children: T.person.name
|
|
@@ -84,7 +85,7 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
84
85
|
class: "ck-segment",
|
|
85
86
|
role: "radiogroup",
|
|
86
87
|
"aria-labelledby": "ck-theme-label",
|
|
87
|
-
onKeyDown: (e) =>
|
|
88
|
+
onKeyDown: (e) => v(e, "[role=radio]"),
|
|
88
89
|
children: y.map(([e, t]) => /* @__PURE__ */ s("button", {
|
|
89
90
|
role: "radio",
|
|
90
91
|
"aria-checked": E === e,
|
|
@@ -109,7 +110,7 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
109
110
|
role: "switch",
|
|
110
111
|
"aria-checked": I,
|
|
111
112
|
"aria-describedby": "ck-keys-hint",
|
|
112
|
-
onClick: () =>
|
|
113
|
+
onClick: () => m(!I),
|
|
113
114
|
children: [/* @__PURE__ */ s("span", { children: r("shortcutsSetting") }), /* @__PURE__ */ s("span", {
|
|
114
115
|
class: "ck-switch",
|
|
115
116
|
"aria-hidden": "true"
|
|
@@ -129,7 +130,7 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
129
130
|
children: A.map((e) => /* @__PURE__ */ s("li", { children: [
|
|
130
131
|
/* @__PURE__ */ s("span", {
|
|
131
132
|
class: "ck-team-face",
|
|
132
|
-
children: [/* @__PURE__ */ s(
|
|
133
|
+
children: [/* @__PURE__ */ s(d, { person: e }), O.some((t) => t.id === e.id) ? /* @__PURE__ */ s("span", {
|
|
133
134
|
class: "ck-online",
|
|
134
135
|
role: "img",
|
|
135
136
|
"aria-label": r("online")
|
|
@@ -170,12 +171,12 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
170
171
|
}), /* @__PURE__ */ s("p", {
|
|
171
172
|
class: "ck-muted ck-setting-hint",
|
|
172
173
|
children: r("storageUsed", {
|
|
173
|
-
used:
|
|
174
|
-
limit:
|
|
174
|
+
used: l(M.used_bytes),
|
|
175
|
+
limit: l(M.limit_bytes)
|
|
175
176
|
})
|
|
176
177
|
})] }) : /* @__PURE__ */ s("p", {
|
|
177
178
|
class: "ck-muted ck-setting-hint",
|
|
178
|
-
children: r("storageUsedOnly", { used:
|
|
179
|
+
children: r("storageUsedOnly", { used: l(M.used_bytes) })
|
|
179
180
|
})]
|
|
180
181
|
}) : null,
|
|
181
182
|
/* @__PURE__ */ s("nav", {
|
|
@@ -186,29 +187,29 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
186
187
|
href: z,
|
|
187
188
|
target: "_blank",
|
|
188
189
|
rel: "noopener noreferrer",
|
|
189
|
-
children: [/* @__PURE__ */ s(
|
|
190
|
+
children: [/* @__PURE__ */ s(c, {
|
|
190
191
|
name: "link",
|
|
191
192
|
size: 16
|
|
192
193
|
}), r("openDashboard")]
|
|
193
194
|
}) : null,
|
|
194
195
|
b ? /* @__PURE__ */ s("button", {
|
|
195
|
-
onClick: () => (
|
|
196
|
-
children: [/* @__PURE__ */ s(
|
|
196
|
+
onClick: () => (h(), b()),
|
|
197
|
+
children: [/* @__PURE__ */ s(c, {
|
|
197
198
|
name: "info",
|
|
198
199
|
size: 16
|
|
199
200
|
}), r("shortcutsTitle")]
|
|
200
201
|
}) : null,
|
|
201
202
|
F ? /* @__PURE__ */ s("button", {
|
|
202
203
|
onClick: C,
|
|
203
|
-
children: [/* @__PURE__ */ s(
|
|
204
|
-
name: "
|
|
204
|
+
children: [/* @__PURE__ */ s(c, {
|
|
205
|
+
name: "clear",
|
|
205
206
|
size: 16
|
|
206
207
|
}), r("hideWidget")]
|
|
207
208
|
}) : null,
|
|
208
209
|
T ? /* @__PURE__ */ s("button", {
|
|
209
210
|
class: "ck-danger",
|
|
210
|
-
onClick: () => (
|
|
211
|
-
children: [/* @__PURE__ */ s(
|
|
211
|
+
onClick: () => (h(), w()),
|
|
212
|
+
children: [/* @__PURE__ */ s(c, {
|
|
212
213
|
name: "user",
|
|
213
214
|
size: 16
|
|
214
215
|
}), r("signOut")]
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { c as e, f as t, m as n, u as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { c as e, f as t, m as n, r, u as i } from "./i18n-Mgs9VOuk.js";
|
|
2
|
+
import { n as a } from "./icons-_C6ZWmBY.js";
|
|
3
|
+
import { t as o } from "./late-words-D4Oo_yhJ.js";
|
|
4
|
+
import { t as s } from "./dialog-DvdIkCW0.js";
|
|
5
|
+
import { c } from "./start-Cbx6rMrr.js";
|
|
6
|
+
c(s), c(".ck-keys{gap:12px;margin:0;display:grid}.ck-keys:focus-visible{outline-offset:-2px}.ck-scrim:has(.ck-keys){animation:none}.ck-scrim:has(.ck-keys) .ck-card{animation:none}.ck-keys div{grid-template-columns:minmax(96px,auto) 1fr;align-items:baseline;gap:12px;display:grid}.ck-keys dt{text-align:start}.ck-keys dd{color:var(--ck-text-muted);font-size:var(--ck-fs-md);margin:0}.ck-keys kbd{border:1px solid var(--ck-border);border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);color:var(--ck-text);font-family:var(--ck-mono);font-size:var(--ck-fs-sm);white-space:nowrap;border-bottom-width:2px;padding:0 7px;line-height:20px;display:inline-block}"), Object.assign(r, o);
|
|
7
|
+
var l = [
|
|
6
8
|
["C", "shortcutComment"],
|
|
7
9
|
["J / K", "shortcutNext"],
|
|
8
10
|
["E", "shortcutResolve"],
|
|
@@ -13,50 +15,50 @@ var s = [
|
|
|
13
15
|
["⌘ / Ctrl + Shift + K", "shortcutToggle"],
|
|
14
16
|
["?", "shortcutHelp"]
|
|
15
17
|
];
|
|
16
|
-
function
|
|
17
|
-
let o = n(null),
|
|
18
|
+
function u({ onClose: r }) {
|
|
19
|
+
let o = n(null), s = n(null);
|
|
18
20
|
return t(() => {
|
|
19
21
|
let e = o.current?.getRootNode(), t = e?.activeElement ?? document.activeElement;
|
|
20
22
|
return o.current?.focus({ preventScroll: !0 }), () => {
|
|
21
23
|
(t instanceof HTMLElement && t.isConnected && t !== document.body ? t : e?.querySelector("[aria-haspopup=menu]"))?.focus({ preventScroll: !0 });
|
|
22
24
|
};
|
|
23
|
-
}, []), /* @__PURE__ */
|
|
25
|
+
}, []), /* @__PURE__ */ i("div", {
|
|
24
26
|
class: "ck-scrim",
|
|
25
27
|
"data-commentkit-ui": !0,
|
|
26
|
-
onClick: (e) => e.target === e.currentTarget &&
|
|
27
|
-
children: /* @__PURE__ */
|
|
28
|
+
onClick: (e) => e.target === e.currentTarget && r(),
|
|
29
|
+
children: /* @__PURE__ */ i("div", {
|
|
28
30
|
class: "ck-card ck-dialog",
|
|
29
31
|
role: "dialog",
|
|
30
32
|
"aria-modal": "true",
|
|
31
33
|
"aria-labelledby": "ck-shortcuts-title",
|
|
32
34
|
onKeyDown: (e) => {
|
|
33
|
-
e.stopPropagation(), e.key === "Escape" || e.key === "?" ? (e.preventDefault(),
|
|
35
|
+
e.stopPropagation(), e.key === "Escape" || e.key === "?" ? (e.preventDefault(), r()) : e.key === "Tab" && (e.preventDefault(), (o.current?.getRootNode()?.activeElement === o.current ? s.current : o.current)?.focus());
|
|
34
36
|
},
|
|
35
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ i("div", {
|
|
36
38
|
class: "ck-card-head",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
39
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
38
40
|
class: "ck-card-title",
|
|
39
41
|
id: "ck-shortcuts-title",
|
|
40
42
|
children: e("shortcutsTitle")
|
|
41
|
-
}), /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ i("button", {
|
|
42
44
|
class: "ck-ghost",
|
|
43
45
|
ref: o,
|
|
44
|
-
"aria-label": e("
|
|
45
|
-
title: e("
|
|
46
|
-
onClick:
|
|
47
|
-
children: /* @__PURE__ */
|
|
46
|
+
"aria-label": e("closeShortcuts"),
|
|
47
|
+
title: e("closeShortcuts"),
|
|
48
|
+
onClick: r,
|
|
49
|
+
children: /* @__PURE__ */ i(a, { name: "clear" })
|
|
48
50
|
})]
|
|
49
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ i("dl", {
|
|
50
52
|
class: "ck-card-body ck-keys",
|
|
51
|
-
ref:
|
|
53
|
+
ref: s,
|
|
52
54
|
tabIndex: 0,
|
|
53
55
|
"aria-labelledby": "ck-shortcuts-title",
|
|
54
|
-
children:
|
|
56
|
+
children: l.map(([t, n]) => /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ i("dt", { children: /* @__PURE__ */ i("kbd", {
|
|
55
57
|
dir: "ltr",
|
|
56
58
|
children: t
|
|
57
|
-
}) }), /* @__PURE__ */
|
|
59
|
+
}) }), /* @__PURE__ */ i("dd", { children: e(n) })] }))
|
|
58
60
|
})]
|
|
59
61
|
})
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
|
-
export {
|
|
64
|
+
export { u as Shortcuts };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { b as e, c as t, f as n, m as r, r as i, u as a } from "./i18n-Mgs9VOuk.js";
|
|
2
|
+
import { t as o } from "./late-words-D4Oo_yhJ.js";
|
|
3
|
+
import { i as s } from "./drafts-B0ctr1g9.js";
|
|
4
|
+
import { n as c, u as l } from "./start-Cbx6rMrr.js";
|
|
5
|
+
// src/ui/SignInFirst.tsx
|
|
6
|
+
Object.assign(i, o);
|
|
7
|
+
function u({ position: i, website: o, signIn: u, onSignedIn: d, onDismiss: f }) {
|
|
8
|
+
let p = r(null), m = r(null), h = () => p.current?.nextElementSibling?.querySelector(".ck-primary");
|
|
9
|
+
n(() => {
|
|
10
|
+
let e = p.current?.getRootNode();
|
|
11
|
+
m.current = e?.activeElement ?? null, h()?.focus({ preventScroll: !0 });
|
|
12
|
+
}, []);
|
|
13
|
+
let g = async () => {
|
|
14
|
+
s(l, String(Date.now()));
|
|
15
|
+
let e = await u();
|
|
16
|
+
if (e !== "redirecting" && s(l, null), e === "signed_in") return d();
|
|
17
|
+
h()?.focus({ preventScroll: !0 });
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ a("span", {
|
|
20
|
+
ref: p,
|
|
21
|
+
hidden: !0
|
|
22
|
+
}), /* @__PURE__ */ a(c, {
|
|
23
|
+
id: "ck-signin-first-title",
|
|
24
|
+
position: i,
|
|
25
|
+
title: t("signInToComment"),
|
|
26
|
+
body: t(matchMedia("(pointer: coarse)").matches ? "signInToCommentBodyTouch" : "signInToCommentBody", { website: o }),
|
|
27
|
+
primary: t("signInMember"),
|
|
28
|
+
secondary: t("notNow"),
|
|
29
|
+
onPrimary: () => void g(),
|
|
30
|
+
onSecondary: () => {
|
|
31
|
+
m.current?.isConnected && m.current.focus({ preventScroll: !0 }), f();
|
|
32
|
+
}
|
|
33
|
+
})] });
|
|
34
|
+
}
|
|
35
|
+
export { u as SignInFirst };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as e, c as t, f as n, m as r, u as i } from "./i18n-
|
|
2
|
-
import { a, i as o, o as s } from "./uploads-
|
|
3
|
-
import { r as c } from "./context-
|
|
4
|
-
import { StylePanel as l } from "./StylePanel-
|
|
1
|
+
import { _ as e, c as t, f as n, m as r, u as i } from "./i18n-Mgs9VOuk.js";
|
|
2
|
+
import { a, i as o, o as s } from "./uploads-CY4bDbaI.js";
|
|
3
|
+
import { r as c } from "./context-CsHnabaA.js";
|
|
4
|
+
import { StylePanel as l } from "./StylePanel-C-Gikxt1.js";
|
|
5
5
|
// src/ui/StyleEditor.tsx
|
|
6
6
|
function u({ thread: u, element: d, onSaved: f, onClose: p }, m) {
|
|
7
7
|
let { client: h, reportError: g } = c(m), [_] = e(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e, b as t, c as n, d as r, u as i } from "./i18n-
|
|
2
|
-
import { r as a, s as o } from "./uploads-
|
|
3
|
-
import { s } from "./start-
|
|
1
|
+
import { _ as e, b as t, c as n, d as r, u as i } from "./i18n-Mgs9VOuk.js";
|
|
2
|
+
import { r as a, s as o } from "./uploads-CY4bDbaI.js";
|
|
3
|
+
import { c as s } from "./start-Cbx6rMrr.js";
|
|
4
4
|
// src/ui/StylePanel.tsx
|
|
5
5
|
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 12px 12px}.ck-style-head{min-height:28px;font-size:var(--ck-fs-md);justify-content:space-between;align-items:center;gap:8px;display:flex}.ck-style-done{height:28px;font-size:var(--ck-fs-sm);padding:0 12px}.ck-style-actions{align-items:center;gap:4px;display:flex}.ck-style-actions .ck-ghost-sm{height:28px;padding:0 8px}.ck-style-hint{font-size:var(--ck-fs-sm);text-wrap:pretty;margin:4px 0 8px;line-height:1.4}.ck-style-rows{overscroll-behavior:contain;gap:4px;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);min-height:32px;transition:background-color var(--ck-fast);grid-template-columns:minmax(96px,40%) 1fr;align-items:center;column-gap:8px;padding:0 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;padding-block-start:4px;padding-block-end:4px}.ck-style-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);overflow:hidden}.ck-style-name code{font-family:var(--ck-mono);font-size:var(--ck-fs-xs)}.ck-style-row[data-changed] .ck-style-name{color:var(--ck-text)}.ck-style-control{align-items:center;gap:4px;min-width:0;display:flex}.ck-style-control .ck-style-input{width:auto;min-width:0;height:28px;font-size:var(--ck-fs-sm);font-family:var(--ck-mono);flex:1;padding:0 7px}.ck-style-control .ck-style-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-style-control .ck-style-input[aria-invalid=true]:focus{box-shadow:0 0 0 3px color-mix(in srgb, var(--ck-danger) 18%, transparent)}.ck-style-control .ck-ghost{width:24px;min-width:0;height:24px;min-height:0;font-size:var(--ck-fs);flex:none;place-items:center;padding:0;line-height:1;display:grid}.ck-style-control .ck-ghost:active{scale:.96}.ck-style-steps{flex:none;display:flex}.ck-style-swatch{width:16px;height:16px;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}.ck-style-undo:-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)){scale:-1 1}.ck-style-undo: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)){scale:-1 1}@media (pointer:coarse){.ck-style-row{grid-template-columns:1fr;row-gap:4px;padding-block-start:8px;padding-block-end:8px}.ck-style-row .ck-error{grid-column:1}.ck-style-control .ck-style-input{font-size:var(--ck-fs-lg);height:44px}.ck-style-control .ck-ghost{width:44px;height:44px}.ck-style-rows{max-height:320px}}");
|
|
6
6
|
function c({ base: e, changes: t, onChange: r, onClose: o, actions: s }) {
|