@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
|
@@ -1,17 +1,18 @@
|
|
|
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 { n as c } from "./icons-
|
|
4
|
-
import { i as l } from "./files-
|
|
5
|
-
import { t as u } from "./
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { c as e } from "./client-BqcfSisZ.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-CDw_D17c.js";
|
|
3
|
+
import { n as c } from "./icons-BJLm_C0M.js";
|
|
4
|
+
import { i as l } from "./files-BkHuRlcW.js";
|
|
5
|
+
import { t as u } from "./sheet-77GHVTpR.js";
|
|
6
|
+
import { t as d } from "./dialog-DvdIkCW0.js";
|
|
7
|
+
import { C as f, F as p, S as m, a as h, i as g, o as _, v } from "./start-Dgw3mSp8.js";
|
|
8
|
+
u(d), u(".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}}");
|
|
8
9
|
var y = [
|
|
9
10
|
["auto", "themeSystem"],
|
|
10
11
|
["light", "themeLight"],
|
|
11
12
|
["dark", "themeDark"]
|
|
12
13
|
];
|
|
13
|
-
function b({ client: u, onClose:
|
|
14
|
-
let T =
|
|
14
|
+
function b({ client: u, onClose: d, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
15
|
+
let T = m(u.state, (e) => e.session), E = m(u.state, (e) => e.theme ?? u.options.theme ?? e.config?.appearance?.theme ?? "auto"), D = o(null), O = m(u.state, (e) => e.team), k = T?.role === "admin" || T?.role === "member", [A, j] = t(null), [M, N] = t(null);
|
|
15
16
|
i(() => {
|
|
16
17
|
k && (u.people().then((e) => j(e.filter((e) => e.role && e.role !== "reviewer")), () => j([])), u.usage().then(N, () => N(null)));
|
|
17
18
|
}, [k]), a(() => {
|
|
@@ -22,18 +23,18 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
22
23
|
i(() => g(() => L(_(F))), []);
|
|
23
24
|
let R = (t) => {
|
|
24
25
|
e(t), u.state.set({ theme: t });
|
|
25
|
-
}, z =
|
|
26
|
+
}, z = p(T?.dashboard_url), B = A?.find((e) => e.id === T?.person.id)?.role, V = T ? r(`role_${B === "owner" ? "owner" : T.role}`) : "";
|
|
26
27
|
return /* @__PURE__ */ s("div", {
|
|
27
28
|
class: "ck-scrim",
|
|
28
29
|
"data-commentkit-ui": !0,
|
|
29
|
-
onClick: (e) => e.target === e.currentTarget &&
|
|
30
|
+
onClick: (e) => e.target === e.currentTarget && d(),
|
|
30
31
|
children: /* @__PURE__ */ s("div", {
|
|
31
32
|
class: "ck-card ck-dialog ck-settings",
|
|
32
33
|
role: "dialog",
|
|
33
34
|
"aria-modal": "true",
|
|
34
35
|
"aria-labelledby": "ck-settings-title",
|
|
35
36
|
onKeyDown: (e) => {
|
|
36
|
-
e.stopPropagation(), e.key === "Escape" ?
|
|
37
|
+
e.stopPropagation(), e.key === "Escape" ? d() : S(e);
|
|
37
38
|
},
|
|
38
39
|
children: [/* @__PURE__ */ s("div", {
|
|
39
40
|
class: "ck-card-head",
|
|
@@ -46,7 +47,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
46
47
|
ref: D,
|
|
47
48
|
"aria-label": r("closeSettings"),
|
|
48
49
|
title: r("closeSettings"),
|
|
49
|
-
onClick:
|
|
50
|
+
onClick: d,
|
|
50
51
|
children: /* @__PURE__ */ s(c, { name: "clear" })
|
|
51
52
|
})]
|
|
52
53
|
}), /* @__PURE__ */ s("div", {
|
|
@@ -55,7 +56,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
55
56
|
T ? /* @__PURE__ */ s("section", {
|
|
56
57
|
class: "ck-account",
|
|
57
58
|
"aria-label": r("account"),
|
|
58
|
-
children: [/* @__PURE__ */ s(
|
|
59
|
+
children: [/* @__PURE__ */ s(f, { person: T.person }), /* @__PURE__ */ s("div", { children: [
|
|
59
60
|
/* @__PURE__ */ s("bdi", {
|
|
60
61
|
class: "ck-msg-name",
|
|
61
62
|
children: T.person.name
|
|
@@ -110,7 +111,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
110
111
|
role: "switch",
|
|
111
112
|
"aria-checked": I,
|
|
112
113
|
"aria-describedby": "ck-keys-hint",
|
|
113
|
-
onClick: () =>
|
|
114
|
+
onClick: () => h(!I),
|
|
114
115
|
children: [/* @__PURE__ */ s("span", { children: r("shortcutsSetting") }), /* @__PURE__ */ s("span", {
|
|
115
116
|
class: "ck-switch",
|
|
116
117
|
"aria-hidden": "true"
|
|
@@ -130,7 +131,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
130
131
|
children: A.map((e) => /* @__PURE__ */ s("li", { children: [
|
|
131
132
|
/* @__PURE__ */ s("span", {
|
|
132
133
|
class: "ck-team-face",
|
|
133
|
-
children: [/* @__PURE__ */ s(
|
|
134
|
+
children: [/* @__PURE__ */ s(f, { person: e }), O.some((t) => t.id === e.id) ? /* @__PURE__ */ s("span", {
|
|
134
135
|
class: "ck-online",
|
|
135
136
|
role: "img",
|
|
136
137
|
"aria-label": r("online")
|
|
@@ -193,7 +194,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
193
194
|
}), r("openDashboard")]
|
|
194
195
|
}) : null,
|
|
195
196
|
b ? /* @__PURE__ */ s("button", {
|
|
196
|
-
onClick: () => (
|
|
197
|
+
onClick: () => (d(), b()),
|
|
197
198
|
children: [/* @__PURE__ */ s(c, {
|
|
198
199
|
name: "info",
|
|
199
200
|
size: 16
|
|
@@ -208,7 +209,7 @@ function b({ client: u, onClose: h, onShortcuts: b, onHide: C, onSignOut: w }) {
|
|
|
208
209
|
}) : null,
|
|
209
210
|
T ? /* @__PURE__ */ s("button", {
|
|
210
211
|
class: "ck-danger",
|
|
211
|
-
onClick: () => (
|
|
212
|
+
onClick: () => (d(), w()),
|
|
212
213
|
children: [/* @__PURE__ */ s(c, {
|
|
213
214
|
name: "user",
|
|
214
215
|
size: 16
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as e, f as t, m as n, r, u as i } from "./i18n-
|
|
2
|
-
import { n as a } from "./icons-
|
|
3
|
-
import { t as o } from "./late-words-
|
|
4
|
-
import { t as s } from "./
|
|
5
|
-
import { c } from "./
|
|
6
|
-
c
|
|
1
|
+
import { c as e, f as t, m as n, r, u as i } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { n as a } from "./icons-BJLm_C0M.js";
|
|
3
|
+
import { t as o } from "./late-words-QnNheaDY.js";
|
|
4
|
+
import { t as s } from "./sheet-77GHVTpR.js";
|
|
5
|
+
import { t as c } from "./dialog-DvdIkCW0.js";
|
|
6
|
+
s(c), s(".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
7
|
var l = [
|
|
8
8
|
["C", "shortcutComment"],
|
|
9
9
|
["J / K", "shortcutNext"],
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { b as e, c as t, f as n, m as r, r as i, u as a } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { t as o } from "./late-words-QnNheaDY.js";
|
|
3
|
+
import { i as s } from "./drafts-B0ctr1g9.js";
|
|
4
|
+
import { l as c, n as l, u } from "./start-Dgw3mSp8.js";
|
|
5
|
+
// src/ui/SignInFirst.tsx
|
|
6
|
+
Object.assign(i, o);
|
|
7
|
+
function d({ position: i, website: o, inbox: d, signIn: f, onSignedIn: p, onDismiss: m }) {
|
|
8
|
+
let h = r(null), g = r(null), _ = () => h.current?.nextElementSibling?.querySelector(".ck-primary");
|
|
9
|
+
n(() => {
|
|
10
|
+
let e = h.current?.getRootNode();
|
|
11
|
+
g.current = e?.activeElement ?? document.activeElement, _()?.focus({ preventScroll: !0 });
|
|
12
|
+
}, []);
|
|
13
|
+
let v = async () => {
|
|
14
|
+
let e = d ? u : c;
|
|
15
|
+
s(d ? c : u, null), s(e, String(Date.now()));
|
|
16
|
+
let t = await f();
|
|
17
|
+
if (t !== "redirecting" && s(e, null), t === "signed_in") return p();
|
|
18
|
+
_()?.focus({ preventScroll: !0 });
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ a("span", {
|
|
21
|
+
ref: h,
|
|
22
|
+
hidden: !0
|
|
23
|
+
}), /* @__PURE__ */ a(l, {
|
|
24
|
+
id: "ck-signin-first-title",
|
|
25
|
+
position: i,
|
|
26
|
+
title: t(d ? "signInToSeeComments" : "signInToComment"),
|
|
27
|
+
body: t(d ? "signInToSeeCommentsBody" : matchMedia("(pointer: coarse)").matches ? "signInToCommentBodyTouch" : "signInToCommentBody", { website: o }),
|
|
28
|
+
primary: t("signInMember"),
|
|
29
|
+
secondary: t("notNow"),
|
|
30
|
+
onPrimary: () => void v(),
|
|
31
|
+
onSecondary: () => {
|
|
32
|
+
g.current?.isConnected && g.current.focus?.({ preventScroll: !0 }), m();
|
|
33
|
+
}
|
|
34
|
+
})] });
|
|
35
|
+
}
|
|
36
|
+
export { d 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-CDw_D17c.js";
|
|
2
|
+
import { a, i as o, o as s } from "./uploads-Df4mLJ9O.js";
|
|
3
|
+
import { r as c } from "./context-0MfEgoip.js";
|
|
4
|
+
import { StylePanel as l } from "./StylePanel-CFp-U7qa.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 {
|
|
1
|
+
import { _ as e, b as t, c as n, d as r, u as i } from "./i18n-CDw_D17c.js";
|
|
2
|
+
import { r as a, s as o } from "./uploads-Df4mLJ9O.js";
|
|
3
|
+
import { t as s } from "./sheet-77GHVTpR.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 }) {
|