@commentkit/comment-kit 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/npm/THIRD_PARTY_NOTICES.txt +2 -2
  3. package/dist/npm/chunks/{AgentSend-DjFZSC0S.js → AgentSend-2JPDseOo.js} +4 -5
  4. package/dist/npm/chunks/{Checklist-BEz4IZdT.js → Checklist-BpDXQebo.js} +77 -79
  5. package/dist/npm/chunks/Composer-CAyj-c8e.js +677 -0
  6. package/dist/npm/chunks/Guest-ZdFmTcXI.js +187 -0
  7. package/dist/npm/chunks/{MarkupEditor-CPH4yKx4.js → MarkupEditor-BFplZwFy.js} +3 -5
  8. package/dist/npm/chunks/{Panel-DSoUAlbQ.js → Panel-BhZ4XRDR.js} +300 -302
  9. package/dist/npm/chunks/{Settings-C_qV4n7J.js → Settings-SPG9EHUZ.js} +70 -72
  10. package/dist/npm/chunks/{Shortcuts-ChnaribX.js → Shortcuts-C28HVDw6.js} +3 -5
  11. package/dist/npm/chunks/{StyleEditor-DqZd6C5o.js → StyleEditor-ByZMtq10.js} +4 -5
  12. package/dist/npm/chunks/{StylePanel-DMC3riYK.js → StylePanel-Iwhce2tE.js} +62 -64
  13. package/dist/npm/chunks/{TaskFields-BfjjllMx.js → TaskFields-BsP_fVJg.js} +7 -6
  14. package/dist/npm/chunks/{ThreadCard-DmKAelSL.js → ThreadCard-BzVZdDCb.js} +407 -403
  15. package/dist/npm/chunks/{Viewer-mw69qSI5.js → Viewer-CqtGrdD8.js} +29 -31
  16. package/dist/npm/chunks/{agent-CqDO3JMA.js → agent-BDMQtOzH.js} +14 -15
  17. package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsradQhn.js} +1 -2
  18. package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-8tPch6W4.js} +5 -2
  19. package/dist/npm/chunks/{card-bits-C7bIk5KX.js → card-bits-Bna-g3Py.js} +24 -26
  20. package/dist/npm/chunks/{client-dZeNdizE.js → client-EFTWxHbJ.js} +76 -61
  21. package/dist/npm/chunks/{colors-CAjY4jxf.js → colors-CWAn_swA.js} +1 -2
  22. package/dist/npm/chunks/{confetti-DKeKR7-6.js → confetti-DTKpwF3O.js} +1 -2
  23. package/dist/npm/chunks/{de-CcPi8xdC.js → de-C63897uD.js} +5 -2
  24. package/dist/npm/chunks/{drafts-CpQdHhcK.js → drafts-akdBsOd0.js} +1 -2
  25. package/dist/npm/chunks/{es-DXgkjDCG.js → es-CI2bSpvB.js} +5 -2
  26. package/dist/npm/chunks/{extension-BFkXOmX5.js → extension-BST6LH1q.js} +2 -3
  27. package/dist/npm/chunks/{extension-Gvei3opb.js → extension-D-V3utTm.js} +3 -4
  28. package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-rsVe-Lqk.js} +5 -2
  29. package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-cvwbSaWP.js} +5 -2
  30. package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
  31. package/dist/npm/chunks/{i18n-DAJGndZ2.js → i18n-C4v0M-6z.js} +254 -257
  32. package/dist/npm/chunks/{it-DKiSCkiD.js → it-C8tnV0BF.js} +5 -2
  33. package/dist/npm/chunks/{ja-BI1WagDg.js → ja-BWxDfC2f.js} +5 -2
  34. package/dist/npm/chunks/{live-MvvBdoGd.js → live-BCpJVBeN.js} +2 -3
  35. package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
  36. package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-DNQ6eCht.js} +5 -2
  37. package/dist/npm/chunks/{pick-dDDLxCDI.js → pick-CLyOdjnD.js} +3 -4
  38. package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-CkG7vpU2.js} +5 -2
  39. package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-DIo-Wth4.js} +2 -3
  40. package/dist/npm/chunks/{report-DoDVi1qT.js → report-BBrT3r89.js} +1 -2
  41. package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  42. package/dist/npm/chunks/{source-BQS2_xfB.js → source-CS7C6wJA.js} +2 -3
  43. package/dist/npm/chunks/{src-C_oUnL0i.js → src-C4FsVoUp.js} +22 -24
  44. package/dist/npm/chunks/{start-C5-rebEU.js → start-i9M-r3aH.js} +374 -357
  45. package/dist/npm/chunks/{upload-CzPAjktW.js → upload-DSv7EyBD.js} +2 -3
  46. package/dist/npm/chunks/uploads-I01kdqQF.js +1103 -0
  47. package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-BKuZOLBE.js} +5 -2
  48. package/dist/npm/element.js +2 -3
  49. package/dist/npm/headless.js +2 -2
  50. package/dist/npm/index.js +2 -2
  51. package/dist/npm/react.js +2 -3
  52. package/dist/npm/svelte.js +2 -3
  53. package/dist/npm/types/core/auth.d.ts +14 -0
  54. package/dist/npm/vue.js +2 -3
  55. package/package.json +8 -8
  56. package/dist/npm/chunks/Composer-D1wbmdjF.js +0 -681
  57. package/dist/npm/chunks/Guest-CtyRy8Kz.js +0 -170
  58. package/dist/npm/chunks/uploads-tpLjiJdH.js +0 -541
@@ -1,32 +1,31 @@
1
- import { a as e } from "./client-dZeNdizE.js";
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-C5-rebEU.js";
4
- //#endregion
5
- //#region src/ui/Settings.tsx
1
+ import { a as e } from "./client-EFTWxHbJ.js";
2
+ import { _ as t, f as n, l as r, m as i, n as a, s as o, u as s } from "./i18n-C4v0M-6z.js";
3
+ import { C as c, a as l, f as u, l as d, n as f } from "./start-i9M-r3aH.js";
4
+ // src/ui/Settings.tsx
6
5
  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)}");
7
6
  var p = [
8
7
  ["auto", "themeSystem"],
9
8
  ["light", "themeLight"],
10
9
  ["dark", "themeDark"]
11
10
  ];
12
- function m({ client: i, onClose: f, onShortcuts: m, onHide: g, onSignOut: _ }) {
13
- let v = c(i.state, (e) => e.session), y = c(i.state, (e) => e.theme ?? i.options.theme ?? e.config?.appearance?.theme ?? "auto"), b = t(null), x = c(i.state, (e) => e.team), S = v?.role === "admin" || v?.role === "member", [C, w] = r(null), [T, E] = r(null);
14
- o(() => {
15
- S && (i.people().then((e) => w(e.filter((e) => e.role && e.role !== "reviewer")), () => w([])), i.usage().then(E, () => E(null)));
16
- }, [S]), o(() => {
11
+ function m({ client: a, onClose: f, onShortcuts: m, onHide: g, onSignOut: _ }) {
12
+ let v = l(a.state, (e) => e.session), y = l(a.state, (e) => e.theme ?? a.options.theme ?? e.config?.appearance?.theme ?? "auto"), b = n(null), x = l(a.state, (e) => e.team), S = v?.role === "admin" || v?.role === "member", [C, w] = i(null), [T, E] = i(null);
13
+ s(() => {
14
+ S && (a.people().then((e) => w(e.filter((e) => e.role && e.role !== "reviewer")), () => w([])), a.usage().then(E, () => E(null)));
15
+ }, [S]), s(() => {
17
16
  let e = b.current?.getRootNode()?.activeElement ?? document.activeElement;
18
17
  return b.current?.focus({ preventScroll: !0 }), () => {
19
18
  e instanceof HTMLElement && e.isConnected && e.focus({ preventScroll: !0 });
20
19
  };
21
20
  }, []);
22
21
  let D = (t) => {
23
- e(t), i.state.set({ theme: t });
24
- }, O = l(v?.dashboard_url), k = C?.find((e) => e.id === v?.person.id)?.role, A = v ? a(`role_${k === "owner" ? "owner" : v.role}`) : "";
25
- return /* @__PURE__ */ n("div", {
22
+ e(t), a.state.set({ theme: t });
23
+ }, O = c(v?.dashboard_url), k = C?.find((e) => e.id === v?.person.id)?.role, A = v ? o(`role_${k === "owner" ? "owner" : v.role}`) : "";
24
+ return /* @__PURE__ */ r("div", {
26
25
  class: "ck-scrim",
27
26
  "data-commentkit-ui": !0,
28
27
  onClick: (e) => e.target === e.currentTarget && f(),
29
- children: /* @__PURE__ */ n("div", {
28
+ children: /* @__PURE__ */ r("div", {
30
29
  class: "ck-card ck-dialog ck-settings",
31
30
  role: "dialog",
32
31
  "aria-modal": "true",
@@ -34,154 +33,154 @@ function m({ client: i, onClose: f, onShortcuts: m, onHide: g, onSignOut: _ }) {
34
33
  onKeyDown: (e) => {
35
34
  e.stopPropagation(), e.key === "Escape" && f();
36
35
  },
37
- children: [/* @__PURE__ */ n("div", {
36
+ children: [/* @__PURE__ */ r("div", {
38
37
  class: "ck-card-head",
39
- children: [/* @__PURE__ */ n("h2", {
38
+ children: [/* @__PURE__ */ r("h2", {
40
39
  class: "ck-card-title",
41
40
  id: "ck-settings-title",
42
- children: a("settings")
43
- }), /* @__PURE__ */ n("button", {
41
+ children: o("settings")
42
+ }), /* @__PURE__ */ r("button", {
44
43
  class: "ck-ghost",
45
44
  ref: b,
46
- "aria-label": a("close"),
45
+ "aria-label": o("close"),
47
46
  onClick: f,
48
- children: /* @__PURE__ */ n(u, { name: "close" })
47
+ children: /* @__PURE__ */ r(u, { name: "close" })
49
48
  })]
50
- }), /* @__PURE__ */ n("div", {
49
+ }), /* @__PURE__ */ r("div", {
51
50
  class: "ck-card-body",
52
51
  children: [
53
- v ? /* @__PURE__ */ n("section", {
52
+ v ? /* @__PURE__ */ r("section", {
54
53
  class: "ck-account",
55
- "aria-label": a("account"),
56
- children: [/* @__PURE__ */ n(d, { person: v.person }), /* @__PURE__ */ n("div", { children: [
57
- /* @__PURE__ */ n("bdi", {
54
+ "aria-label": o("account"),
55
+ children: [/* @__PURE__ */ r(d, { person: v.person }), /* @__PURE__ */ r("div", { children: [
56
+ /* @__PURE__ */ r("bdi", {
58
57
  class: "ck-msg-name",
59
58
  children: v.person.name
60
59
  }),
61
- v.email ? /* @__PURE__ */ n("div", {
60
+ v.email ? /* @__PURE__ */ r("div", {
62
61
  class: "ck-muted",
63
- children: /* @__PURE__ */ n("bdi", { children: v.email })
62
+ children: /* @__PURE__ */ r("bdi", { children: v.email })
64
63
  }) : null,
65
- /* @__PURE__ */ n("div", {
64
+ /* @__PURE__ */ r("div", {
66
65
  class: "ck-muted",
67
66
  children: [
68
- /* @__PURE__ */ n("bdi", { children: v.project.name }),
67
+ /* @__PURE__ */ r("bdi", { children: v.project.name }),
69
68
  " · ",
70
69
  A
71
70
  ]
72
71
  })
73
72
  ] })]
74
73
  }) : null,
75
- /* @__PURE__ */ n("section", {
74
+ /* @__PURE__ */ r("section", {
76
75
  class: "ck-setting",
77
76
  children: [
78
- /* @__PURE__ */ n("h3", {
77
+ /* @__PURE__ */ r("h3", {
79
78
  id: "ck-theme-label",
80
- children: a("appearance")
79
+ children: o("appearance")
81
80
  }),
82
- /* @__PURE__ */ n("div", {
81
+ /* @__PURE__ */ r("div", {
83
82
  class: "ck-segment",
84
83
  role: "radiogroup",
85
84
  "aria-labelledby": "ck-theme-label",
86
- children: p.map(([e, t]) => /* @__PURE__ */ n("button", {
85
+ children: p.map(([e, t]) => /* @__PURE__ */ r("button", {
87
86
  role: "radio",
88
87
  "aria-checked": y === e,
89
88
  onClick: () => D(e),
90
- children: a(t)
89
+ children: o(t)
91
90
  }))
92
91
  }),
93
- /* @__PURE__ */ n("p", {
92
+ /* @__PURE__ */ r("p", {
94
93
  class: "ck-muted ck-setting-hint",
95
- children: a("appearanceHint")
94
+ children: o("appearanceHint")
96
95
  })
97
96
  ]
98
97
  }),
99
- S && C?.length ? /* @__PURE__ */ n("section", {
98
+ S && C?.length ? /* @__PURE__ */ r("section", {
100
99
  class: "ck-setting",
101
- children: [/* @__PURE__ */ n("h3", { children: a("team") }), /* @__PURE__ */ n("ul", {
100
+ children: [/* @__PURE__ */ r("h3", { children: o("team") }), /* @__PURE__ */ r("ul", {
102
101
  class: "ck-team",
103
- children: C.map((e) => /* @__PURE__ */ n("li", { children: [
104
- /* @__PURE__ */ n("span", {
102
+ children: C.map((e) => /* @__PURE__ */ r("li", { children: [
103
+ /* @__PURE__ */ r("span", {
105
104
  class: "ck-team-face",
106
- children: [/* @__PURE__ */ n(d, { person: e }), x.some((t) => t.id === e.id) ? /* @__PURE__ */ n("span", {
105
+ children: [/* @__PURE__ */ r(d, { person: e }), x.some((t) => t.id === e.id) ? /* @__PURE__ */ r("span", {
107
106
  class: "ck-online",
108
- "aria-label": a("online")
107
+ "aria-label": o("online")
109
108
  }) : null]
110
109
  }),
111
- /* @__PURE__ */ n("bdi", { children: e.name }),
112
- e.id === v?.person.id ? /* @__PURE__ */ n("span", {
110
+ /* @__PURE__ */ r("bdi", { children: e.name }),
111
+ e.id === v?.person.id ? /* @__PURE__ */ r("span", {
113
112
  class: "ck-muted",
114
113
  children: [
115
114
  "(",
116
- a("you"),
115
+ o("you"),
117
116
  ")"
118
117
  ]
119
118
  }) : null,
120
- /* @__PURE__ */ n("span", {
119
+ /* @__PURE__ */ r("span", {
121
120
  class: "ck-muted ck-team-role",
122
- children: a(`role_${e.role === "owner" ? "owner" : e.role === "admin" ? "admin" : "member"}`)
121
+ children: o(`role_${e.role === "owner" ? "owner" : e.role === "admin" ? "admin" : "member"}`)
123
122
  })
124
123
  ] }))
125
124
  })]
126
125
  }) : null,
127
- S && T ? /* @__PURE__ */ n("section", {
126
+ S && T ? /* @__PURE__ */ r("section", {
128
127
  class: "ck-setting",
129
- children: [/* @__PURE__ */ n("h3", { children: a("storage") }), T.limit_bytes ? /* @__PURE__ */ n(s, { children: [/* @__PURE__ */ n("div", {
128
+ children: [/* @__PURE__ */ r("h3", { children: o("storage") }), T.limit_bytes ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r("div", {
130
129
  class: "ck-meter",
131
130
  role: "meter",
132
131
  "aria-valuemin": 0,
133
132
  "aria-valuemax": T.limit_bytes,
134
133
  "aria-valuenow": T.used_bytes,
135
- "aria-label": a("storage"),
136
- children: /* @__PURE__ */ n("span", {
134
+ "aria-label": o("storage"),
135
+ children: /* @__PURE__ */ r("span", {
137
136
  style: { width: `${Math.min(100, Math.round(T.used_bytes / T.limit_bytes * 100))}%` },
138
137
  "data-high": T.used_bytes / T.limit_bytes > .85 || void 0
139
138
  })
140
- }), /* @__PURE__ */ n("p", {
139
+ }), /* @__PURE__ */ r("p", {
141
140
  class: "ck-muted ck-setting-hint",
142
- children: a("storageUsed", {
141
+ children: o("storageUsed", {
143
142
  used: h(T.used_bytes),
144
143
  limit: h(T.limit_bytes)
145
144
  })
146
- })] }) : /* @__PURE__ */ n("p", {
145
+ })] }) : /* @__PURE__ */ r("p", {
147
146
  class: "ck-muted ck-setting-hint",
148
- children: a("storageUsedOnly", { used: h(T.used_bytes) })
147
+ children: o("storageUsedOnly", { used: h(T.used_bytes) })
149
148
  })]
150
149
  }) : null,
151
- /* @__PURE__ */ n("nav", {
150
+ /* @__PURE__ */ r("nav", {
152
151
  class: "ck-setting-links",
153
- "aria-label": a("settings"),
152
+ "aria-label": o("settings"),
154
153
  children: [
155
- O ? /* @__PURE__ */ n("a", {
154
+ O ? /* @__PURE__ */ r("a", {
156
155
  href: O,
157
156
  target: "_blank",
158
157
  rel: "noopener noreferrer",
159
- children: [/* @__PURE__ */ n(u, {
158
+ children: [/* @__PURE__ */ r(u, {
160
159
  name: "link",
161
160
  size: 15
162
- }), a("openDashboard")]
161
+ }), o("openDashboard")]
163
162
  }) : null,
164
- m ? /* @__PURE__ */ n("button", {
163
+ m ? /* @__PURE__ */ r("button", {
165
164
  onClick: () => (f(), m()),
166
- children: [/* @__PURE__ */ n(u, {
165
+ children: [/* @__PURE__ */ r(u, {
167
166
  name: "info",
168
167
  size: 15
169
- }), a("shortcutsTitle")]
168
+ }), o("shortcutsTitle")]
170
169
  }) : null,
171
- /* @__PURE__ */ n("button", {
170
+ /* @__PURE__ */ r("button", {
172
171
  onClick: g,
173
- children: [/* @__PURE__ */ n(u, {
172
+ children: [/* @__PURE__ */ r(u, {
174
173
  name: "close",
175
174
  size: 15
176
- }), a("hideWidget")]
175
+ }), o("hideWidget")]
177
176
  }),
178
- v ? /* @__PURE__ */ n("button", {
177
+ v ? /* @__PURE__ */ r("button", {
179
178
  class: "ck-danger",
180
179
  onClick: () => (f(), _()),
181
- children: [/* @__PURE__ */ n(u, {
180
+ children: [/* @__PURE__ */ r(u, {
182
181
  name: "user",
183
182
  size: 15
184
- }), a("signOut")]
183
+ }), o("signOut")]
185
184
  }) : null
186
185
  ]
187
186
  })
@@ -193,7 +192,7 @@ function m({ client: i, onClose: f, onShortcuts: m, onHide: g, onSignOut: _ }) {
193
192
  function h(e) {
194
193
  let [t, n] = e >= 1e9 ? [e / 1e9, "gigabyte"] : e >= 1e6 ? [e / 1e6, "megabyte"] : [e / 1e3, "kilobyte"];
195
194
  try {
196
- return new Intl.NumberFormat(i(), {
195
+ return new Intl.NumberFormat(a(), {
197
196
  style: "unit",
198
197
  unit: n,
199
198
  maximumFractionDigits: +(t < 10)
@@ -202,5 +201,4 @@ function h(e) {
202
201
  return `${t.toFixed(1)} ${n === "gigabyte" ? "GB" : n === "megabyte" ? "MB" : "KB"}`;
203
202
  }
204
203
  }
205
- //#endregion
206
204
  export { m as Settings };
@@ -1,7 +1,6 @@
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-C5-rebEU.js";
3
- //#endregion
4
- //#region src/ui/Shortcuts.tsx
1
+ import { f as e, l as t, s as n, u as r } from "./i18n-C4v0M-6z.js";
2
+ import { f as i, n as a } from "./start-i9M-r3aH.js";
3
+ // src/ui/Shortcuts.tsx
5
4
  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}");
6
5
  var o = [
7
6
  ["C", "shortcutComment"],
@@ -56,5 +55,4 @@ function s({ onClose: a }) {
56
55
  })
57
56
  });
58
57
  }
59
- //#endregion
60
58
  export { s as Shortcuts };
@@ -1,7 +1,7 @@
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-tpLjiJdH.js";
3
- import { StylePanel as c } from "./StylePanel-DMC3riYK.js";
4
- //#region src/ui/StyleEditor.tsx
1
+ import { d as e, f as t, l as n, m as r, s as i } from "./i18n-C4v0M-6z.js";
2
+ import { a, i as o, o as s } from "./uploads-I01kdqQF.js";
3
+ import { StylePanel as c } from "./StylePanel-Iwhce2tE.js";
4
+ // 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(() => {
7
7
  let e = s(d);
@@ -40,5 +40,4 @@ function l({ client: l, thread: u, element: d, onSaved: f, onClose: p, onError:
40
40
  })
41
41
  });
42
42
  }
43
- //#endregion
44
43
  export { l as StyleEditor };
@@ -1,62 +1,61 @@
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-tpLjiJdH.js";
3
- import { n as s } from "./start-C5-rebEU.js";
4
- //#endregion
5
- //#region src/ui/StylePanel.tsx
1
+ import { _ as e, l as t, m as n, s as r, u as i } from "./i18n-C4v0M-6z.js";
2
+ import { r as a, s as o } from "./uploads-I01kdqQF.js";
3
+ import { n as s } from "./start-i9M-r3aH.js";
4
+ // src/ui/StylePanel.tsx
6
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 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}}");
7
- function c({ base: t, changes: r, onChange: i, onClose: o, actions: s }) {
8
- let c = (e, n) => {
9
- let a = r.filter((t) => t.property !== e);
10
- if (n !== null && n === t[e]) return i(a);
6
+ function c({ base: e, changes: n, onChange: i, onClose: o, actions: s }) {
7
+ let c = (t, r) => {
8
+ let a = n.filter((e) => e.property !== t);
9
+ if (r !== null && r === e[t]) return i(a);
11
10
  let o = {
12
- property: e,
13
- from: t[e] || null,
14
- to: n
15
- }, s = r.findIndex((t) => t.property === e);
16
- i(s === -1 ? [...r, o] : r.map((e, t) => t === s ? o : e));
11
+ property: t,
12
+ from: e[t] || null,
13
+ to: r
14
+ }, s = n.findIndex((e) => e.property === t);
15
+ i(s === -1 ? [...n, o] : n.map((e, t) => t === s ? o : e));
17
16
  };
18
- return /* @__PURE__ */ e("div", {
17
+ return /* @__PURE__ */ t("div", {
19
18
  class: "ck-style-panel",
20
19
  role: "group",
21
- "aria-label": n("adjustStyle"),
20
+ "aria-label": r("adjustStyle"),
22
21
  onKeyDown: (e) => {
23
22
  e.stopPropagation(), e.key === "Escape" && o();
24
23
  },
25
24
  children: [
26
- /* @__PURE__ */ e("div", {
25
+ /* @__PURE__ */ t("div", {
27
26
  class: "ck-style-head",
28
- children: [/* @__PURE__ */ e("strong", { children: n("adjustStyle") }), s ?? /* @__PURE__ */ e("button", {
27
+ children: [/* @__PURE__ */ t("strong", { children: r("adjustStyle") }), s ?? /* @__PURE__ */ t("button", {
29
28
  class: "ck-btn ck-style-done",
30
29
  onClick: o,
31
- children: n("styleDone")
30
+ children: r("styleDone")
32
31
  })]
33
32
  }),
34
- /* @__PURE__ */ e("p", {
33
+ /* @__PURE__ */ t("p", {
35
34
  class: "ck-muted ck-style-hint",
36
- children: n("adjustStyleHint")
35
+ children: r("adjustStyleHint")
37
36
  }),
38
- /* @__PURE__ */ e("div", {
37
+ /* @__PURE__ */ t("div", {
39
38
  class: "ck-style-rows",
40
- children: a.map(({ property: n, kind: a, options: o }) => {
41
- let s = r.find((e) => e.property === n);
42
- return /* @__PURE__ */ e(l, {
43
- property: n,
39
+ children: a.map(({ property: r, kind: a, options: o }) => {
40
+ let s = n.find((e) => e.property === r);
41
+ return /* @__PURE__ */ t(l, {
42
+ property: r,
44
43
  kind: a,
45
44
  options: o,
46
- base: t[n] ?? "",
47
- value: s ? s.to : t[n] ?? "",
45
+ base: e[r] ?? "",
46
+ value: s ? s.to : e[r] ?? "",
48
47
  changed: !!s,
49
- onSet: (e) => c(n, e),
50
- onReset: () => i(r.filter((e) => e.property !== n))
51
- }, n);
48
+ onSet: (e) => c(r, e),
49
+ onReset: () => i(n.filter((e) => e.property !== r))
50
+ }, r);
52
51
  })
53
52
  })
54
53
  ]
55
54
  });
56
55
  }
57
56
  function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, onSet: m, onReset: h }) {
58
- let [g, _] = t(f ?? ""), [v, y] = t(!1);
59
- r(() => {
57
+ let [g, _] = n(f ?? ""), [v, y] = n(!1);
58
+ i(() => {
60
59
  _(f ?? ""), y(!1);
61
60
  }, [f]);
62
61
  let b = `ck-style-${a}`, x = (e) => {
@@ -68,25 +67,25 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
68
67
  let n = s === "choice" ? d(c ?? [], f ?? l, e) : u(a, f ?? l, e * (t ? 10 : 1));
69
68
  n !== null && m(n);
70
69
  };
71
- return /* @__PURE__ */ e("div", {
70
+ return /* @__PURE__ */ t("div", {
72
71
  class: "ck-style-row",
73
72
  "data-changed": p || void 0,
74
73
  children: [
75
- /* @__PURE__ */ e("label", {
74
+ /* @__PURE__ */ t("label", {
76
75
  for: b,
77
76
  class: "ck-style-name",
78
- children: /* @__PURE__ */ e("code", { children: a })
77
+ children: /* @__PURE__ */ t("code", { children: a })
79
78
  }),
80
- /* @__PURE__ */ e("div", {
79
+ /* @__PURE__ */ t("div", {
81
80
  class: "ck-style-control",
82
81
  children: [
83
- /* @__PURE__ */ e(i, { children: [
84
- s === "color" ? /* @__PURE__ */ e("span", {
82
+ /* @__PURE__ */ t(e, { children: [
83
+ s === "color" ? /* @__PURE__ */ t("span", {
85
84
  class: "ck-style-swatch",
86
85
  "aria-hidden": "true",
87
86
  style: { backgroundColor: f ?? l ?? "transparent" }
88
87
  }) : null,
89
- /* @__PURE__ */ e("input", {
88
+ /* @__PURE__ */ t("input", {
90
89
  id: b,
91
90
  class: "ck-input ck-style-input",
92
91
  type: "text",
@@ -94,7 +93,7 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
94
93
  autoComplete: "off",
95
94
  maxLength: 120,
96
95
  value: g,
97
- placeholder: f === null ? n("styleRemoved") : "",
96
+ placeholder: f === null ? r("styleRemoved") : "",
98
97
  "aria-invalid": v,
99
98
  "aria-describedby": v ? `${b}-error` : void 0,
100
99
  onInput: (e) => x(e.target.value),
@@ -102,40 +101,40 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
102
101
  s !== "color" && s !== "box" && (e.key === "ArrowUp" || e.key === "ArrowDown") && (e.preventDefault(), S(e.key === "ArrowUp" ? 1 : -1, e.shiftKey));
103
102
  }
104
103
  }),
105
- s === "length" || s === "number" ? /* @__PURE__ */ e("span", {
104
+ s === "length" || s === "number" ? /* @__PURE__ */ t("span", {
106
105
  class: "ck-style-steps",
107
- children: [/* @__PURE__ */ e("button", {
106
+ children: [/* @__PURE__ */ t("button", {
108
107
  class: "ck-ghost ck-ghost-sm",
109
- "aria-label": n("styleDecrease", { property: a }),
108
+ "aria-label": r("styleDecrease", { property: a }),
110
109
  onClick: () => S(-1),
111
110
  children: "−"
112
- }), /* @__PURE__ */ e("button", {
111
+ }), /* @__PURE__ */ t("button", {
113
112
  class: "ck-ghost ck-ghost-sm",
114
- "aria-label": n("styleIncrease", { property: a }),
113
+ "aria-label": r("styleIncrease", { property: a }),
115
114
  onClick: () => S(1),
116
115
  children: "+"
117
116
  })]
118
- }) : s === "choice" ? /* @__PURE__ */ e("span", {
117
+ }) : s === "choice" ? /* @__PURE__ */ t("span", {
119
118
  class: "ck-style-steps",
120
- children: [/* @__PURE__ */ e("button", {
119
+ children: [/* @__PURE__ */ t("button", {
121
120
  class: "ck-ghost ck-ghost-sm",
122
- "aria-label": n("stylePrevious", { property: a }),
121
+ "aria-label": r("stylePrevious", { property: a }),
123
122
  onClick: () => S(-1),
124
123
  children: "‹"
125
- }), /* @__PURE__ */ e("button", {
124
+ }), /* @__PURE__ */ t("button", {
126
125
  class: "ck-ghost ck-ghost-sm",
127
- "aria-label": n("styleNext", { property: a }),
126
+ "aria-label": r("styleNext", { property: a }),
128
127
  onClick: () => S(1),
129
128
  children: "›"
130
129
  })]
131
130
  }) : null
132
131
  ] }),
133
- p ? /* @__PURE__ */ e("button", {
132
+ p ? /* @__PURE__ */ t("button", {
134
133
  class: "ck-ghost ck-ghost-sm",
135
- "aria-label": n("styleReset", { property: a }),
136
- title: n("styleReset", { property: a }),
134
+ "aria-label": r("styleReset", { property: a }),
135
+ title: r("styleReset", { property: a }),
137
136
  onClick: h,
138
- children: /* @__PURE__ */ e("svg", {
137
+ children: /* @__PURE__ */ t("svg", {
139
138
  width: "13",
140
139
  height: "13",
141
140
  viewBox: "0 0 24 24",
@@ -145,15 +144,15 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
145
144
  "stroke-linecap": "round",
146
145
  "stroke-linejoin": "round",
147
146
  "aria-hidden": "true",
148
- children: /* @__PURE__ */ e("path", { d: "M4 9h11a5 5 0 0 1 0 10H9M8 5L4 9l4 4" })
147
+ children: /* @__PURE__ */ t("path", { d: "M4 9h11a5 5 0 0 1 0 10H9M8 5L4 9l4 4" })
149
148
  })
150
149
  }) : null,
151
- f === null ? null : /* @__PURE__ */ e("button", {
150
+ f === null ? null : /* @__PURE__ */ t("button", {
152
151
  class: "ck-ghost ck-ghost-sm",
153
- "aria-label": n("styleRemoveValue", { property: a }),
154
- title: n("styleRemoveValue", { property: a }),
152
+ "aria-label": r("styleRemoveValue", { property: a }),
153
+ title: r("styleRemoveValue", { property: a }),
155
154
  onClick: () => m(null),
156
- children: /* @__PURE__ */ e("svg", {
155
+ children: /* @__PURE__ */ t("svg", {
157
156
  width: "12",
158
157
  height: "12",
159
158
  viewBox: "0 0 24 24",
@@ -162,16 +161,16 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
162
161
  "stroke-width": "2.2",
163
162
  "stroke-linecap": "round",
164
163
  "aria-hidden": "true",
165
- children: /* @__PURE__ */ e("path", { d: "M6 6l12 12M18 6L6 18" })
164
+ children: /* @__PURE__ */ t("path", { d: "M6 6l12 12M18 6L6 18" })
166
165
  })
167
166
  })
168
167
  ]
169
168
  }),
170
- v ? /* @__PURE__ */ e("span", {
169
+ v ? /* @__PURE__ */ t("span", {
171
170
  class: "ck-error",
172
171
  id: `${b}-error`,
173
172
  role: "alert",
174
- children: n("styleInvalid")
173
+ children: r("styleInvalid")
175
174
  }) : null
176
175
  ]
177
176
  });
@@ -195,5 +194,4 @@ function d(e, t, n) {
195
194
  let r = e.indexOf(t);
196
195
  return r === -1 ? n === 1 ? e[0] : e[e.length - 1] : e[(r + n + e.length) % e.length];
197
196
  }
198
- //#endregion
199
197
  export { c as StylePanel };
@@ -1,7 +1,6 @@
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-C5-rebEU.js";
3
- //#endregion
4
- //#region src/ui/TaskFields.tsx
1
+ import { f as e, l as t, m as n, n as r, s as i, u as a } from "./i18n-C4v0M-6z.js";
2
+ import { n as o } from "./start-i9M-r3aH.js";
3
+ // src/ui/TaskFields.tsx
5
4
  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}");
6
5
  var s = [
7
6
  "none",
@@ -180,7 +179,7 @@ function g({ label: r, summary: i, spoken: o = i, keepOpen: s = !1, children: c
180
179
  children: [/* @__PURE__ */ t("button", {
181
180
  class: "ck-chip",
182
181
  "aria-expanded": l,
183
- "aria-label": `${r}: ${o}`,
182
+ "aria-label": y(i, `${r}: ${o}`, o),
184
183
  onClick: () => u(!l),
185
184
  children: /* @__PURE__ */ t("bdi", { children: i })
186
185
  }), l ? /* @__PURE__ */ t("div", {
@@ -268,5 +267,7 @@ function v({ client: e, value: r, onChange: o }) {
268
267
  ]
269
268
  });
270
269
  }
271
- //#endregion
270
+ function y(e, t, n) {
271
+ return t.toLowerCase().includes(e.toLowerCase()) && !/^\p{L}/u.test(t.slice(t.toLowerCase().indexOf(e.toLowerCase()) + e.length)) ? t : `${e} (${n})`;
272
+ }
272
273
  export { v as TaskDraft, p as TaskFields };