@commentkit/comment-kit 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +109 -13
  3. package/SECURITY.md +2 -2
  4. package/dist/node/cli/doctor.js +84 -20
  5. package/dist/node/cli/init.js +349 -35
  6. package/dist/node/cli/main.js +35 -17
  7. package/dist/node/cli/mcp.js +187 -6
  8. package/dist/node/shared/dashboard-places.js +33 -0
  9. package/dist/npm/chunks/{AgentSend-DxRJIYiz.js → AgentSend-DOy3jhyF.js} +16 -16
  10. package/dist/npm/chunks/{Checklist-CnlfeSbc.js → Checklist-CW_SwMpS.js} +70 -70
  11. package/dist/npm/chunks/{Composer-B1bBVszY.js → Composer-Bveq5QrK.js} +276 -274
  12. package/dist/npm/chunks/{Guest-vvNPz8h-.js → Guest-7hcN765o.js} +58 -55
  13. package/dist/npm/chunks/{MarkupEditor-VCOXh9d2.js → MarkupEditor-6bJGpWGO.js} +46 -39
  14. package/dist/npm/chunks/Panel-ChPUB68C.js +1211 -0
  15. package/dist/npm/chunks/{Settings-BGoZS2iV.js → Settings-CB5eEKnf.js} +77 -77
  16. package/dist/npm/chunks/{Shortcuts-B2OMvczr.js → Shortcuts-eAyjJ89P.js} +4 -4
  17. package/dist/npm/chunks/{StyleEditor-CJ_d8Huf.js → StyleEditor-CZTdAA5c.js} +10 -10
  18. package/dist/npm/chunks/{StylePanel-yQzHHlY7.js → StylePanel-B4pHQUL9.js} +61 -61
  19. package/dist/npm/chunks/{TaskFields-fmy6_HtK.js → TaskFields-C8BX0Sgg.js} +55 -55
  20. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +1160 -0
  21. package/dist/npm/chunks/Viewer-DY6zb90M.js +114 -0
  22. package/dist/npm/chunks/{agent-C1OQzBAm.js → agent-MTQHr9ei.js} +1 -1
  23. package/dist/npm/chunks/{ar-CAJ3XT8e.js → ar-L5cQ-NPe.js} +2 -0
  24. package/dist/npm/chunks/{card-bits-CAnzrqx3.js → card-bits-CTdrkYn8.js} +16 -16
  25. package/dist/npm/chunks/{client-kNAo2TTG.js → client-7eVxvg5j.js} +7 -7
  26. package/dist/npm/chunks/{confetti-CkBdSu19.js → confetti-BIs5s14P.js} +1 -1
  27. package/dist/npm/chunks/{context-B8UAzve0.js → context-Cf6khm7A.js} +1 -1
  28. package/dist/npm/chunks/{de-Dl18G48t.js → de-D0C-v6tP.js} +2 -0
  29. package/dist/npm/chunks/{dialog-GO04oC3D.js → dialog-DvdIkCW0.js} +1 -1
  30. package/dist/npm/chunks/{dpop-U48QIQd7.js → dpop-0A76OPa9.js} +1 -1
  31. package/dist/npm/chunks/{es-Dxk79lS9.js → es-Bw4Dj9tN.js} +2 -0
  32. package/dist/npm/chunks/{extension-CKFpPWmi.js → extension-DFVOvciD.js} +1 -1
  33. package/dist/npm/chunks/{extension-E81hWyiT.js → extension-SmoH5AA4.js} +2 -2
  34. package/dist/npm/chunks/{files-DyD5BZgp.js → files-4lV9YQIX.js} +2 -2
  35. package/dist/npm/chunks/{fr-8BebGKYD.js → fr-TkuQaIAa.js} +2 -0
  36. package/dist/npm/chunks/{hi-BIN6Yy_p.js → hi-DXSH2U8d.js} +2 -0
  37. package/dist/npm/chunks/{i18n-DOBt8e9U.js → i18n-aVSu9TcJ.js} +56 -47
  38. package/dist/npm/chunks/{identify-CN-3xzqL.js → identify-BGYh2dVo.js} +4 -4
  39. package/dist/npm/chunks/{it-Cr6EwpPQ.js → it-CiWA_bch.js} +2 -0
  40. package/dist/npm/chunks/{ja-Iy3s5aur.js → ja-C-QmR3yz.js} +2 -0
  41. package/dist/npm/chunks/{late-words-B2bmZceJ.js → late-words-80_VWt8S.js} +3 -1
  42. package/dist/npm/chunks/{live-CelVeZfP.js → live-BExWHzQ7.js} +1 -1
  43. package/dist/npm/chunks/{nl-B84WHqqe.js → nl-CEmZRqjX.js} +2 -0
  44. package/dist/npm/chunks/{page-key-DepmJzC1.js → page-key-HSY3Lze5.js} +1 -1
  45. package/dist/npm/chunks/{pick-yTyqtxN0.js → pick-B3sR7jtS.js} +1 -1
  46. package/dist/npm/chunks/{pkce-ChKGSW_4.js → pkce-CfZhiNBi.js} +1 -1
  47. package/dist/npm/chunks/{pt-BR-DOkdlfoe.js → pt-BR-b-a8sxO8.js} +2 -0
  48. package/dist/npm/chunks/{report-CrIqQZDI.js → report-DaVuoRYS.js} +1 -1
  49. package/dist/npm/chunks/show-BoN8AC-F.js +97 -0
  50. package/dist/npm/chunks/{signin-Dd1rb2BP.js → signin-BOWr_WCo.js} +3 -3
  51. package/dist/npm/chunks/{source-pXVve2Cx.js → source-mk3rGBBQ.js} +1 -1
  52. package/dist/npm/chunks/{src-BTMy4Gyc.js → src-C8rZFyL_.js} +77 -70
  53. package/dist/npm/chunks/start-CV4j78_q.js +1894 -0
  54. package/dist/npm/chunks/{states-sfTbjZz8.js → states-b9Bv3Ci7.js} +1 -1
  55. package/dist/npm/chunks/{upload-MgPYqPyE.js → upload-B2mkgMeJ.js} +1 -1
  56. package/dist/npm/chunks/uploads-8AxyRq7g.js +1147 -0
  57. package/dist/npm/chunks/{wrap-Bl0gbnFa.js → wrap-DW6EFbVQ.js} +1 -1
  58. package/dist/npm/chunks/{zh-CN-Z5fQCb7G.js → zh-CN-JTscW8u8.js} +2 -0
  59. package/dist/npm/element.js +1 -1
  60. package/dist/npm/headless.js +2 -2
  61. package/dist/npm/index.js +2 -2
  62. package/dist/npm/react.js +1 -1
  63. package/dist/npm/svelte.js +1 -1
  64. package/dist/npm/types/core/types.d.ts +2 -2
  65. package/dist/npm/vue.js +1 -1
  66. package/package.json +3 -1
  67. package/dist/npm/chunks/Panel-F37vIL1K.js +0 -1206
  68. package/dist/npm/chunks/ThreadCard-D51slKST.js +0 -1113
  69. package/dist/npm/chunks/Viewer-BOBadqmC.js +0 -111
  70. package/dist/npm/chunks/show-BgVC8gWY.js +0 -97
  71. package/dist/npm/chunks/start-DtVlpt7p.js +0 -1878
  72. package/dist/npm/chunks/uploads-D49mywwz.js +0 -1146
@@ -1,30 +1,30 @@
1
- import { a as e, c as t, f as n, g as r, p as i, u as a, y as o } from "./i18n-DOBt8e9U.js";
2
- import { r as s } from "./context-B8UAzve0.js";
3
- import { C as c, k as l, s as u } from "./start-DtVlpt7p.js";
1
+ import { _ as e, a as t, b as n, c as r, f as i, m as a, u as o } from "./i18n-aVSu9TcJ.js";
2
+ import { r as s } from "./context-Cf6khm7A.js";
3
+ import { C as c, k as l, s as u } from "./start-CV4j78_q.js";
4
4
  // src/ui/art.tsx
5
5
  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)}");
6
- var d = "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", f = (e, t, n, r) => /* @__PURE__ */ a("path", {
6
+ var d = "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", f = (e, t, n, r) => /* @__PURE__ */ o("path", {
7
7
  class: r,
8
8
  d,
9
9
  transform: `translate(${e} ${t}) scale(${n})`
10
10
  }), p = {
11
- caughtUp: () => /* @__PURE__ */ a(o, { children: [
12
- /* @__PURE__ */ a("path", {
11
+ caughtUp: () => /* @__PURE__ */ o(n, { children: [
12
+ /* @__PURE__ */ o("path", {
13
13
  class: "ck-art-w",
14
14
  d: "M28 50l8-20h48l8 20v18H28z"
15
15
  }),
16
- /* @__PURE__ */ a("path", {
16
+ /* @__PURE__ */ o("path", {
17
17
  class: "ck-art-line",
18
18
  d: "M28 50h19l4 6h18l4-6h19"
19
19
  }),
20
20
  f(44, 4, .5, "ck-art-a"),
21
- /* @__PURE__ */ a("path", {
21
+ /* @__PURE__ */ o("path", {
22
22
  class: "ck-art-tick",
23
23
  d: "M53 19l5 5 9-10"
24
24
  })
25
25
  ] }),
26
- noFeedback: () => /* @__PURE__ */ a(o, { children: [
27
- /* @__PURE__ */ a("rect", {
26
+ noFeedback: () => /* @__PURE__ */ o(n, { children: [
27
+ /* @__PURE__ */ o("rect", {
28
28
  class: "ck-art-w",
29
29
  x: "22",
30
30
  y: "18",
@@ -32,23 +32,23 @@ var d = "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
32
32
  height: "52",
33
33
  rx: "7"
34
34
  }),
35
- /* @__PURE__ */ a("path", {
35
+ /* @__PURE__ */ o("path", {
36
36
  class: "ck-art-line",
37
37
  d: "M22 29h70"
38
38
  }),
39
- /* @__PURE__ */ a("circle", {
39
+ /* @__PURE__ */ o("circle", {
40
40
  class: "ck-art-dot",
41
41
  cx: "29",
42
42
  cy: "23.5",
43
43
  r: "1.6"
44
44
  }),
45
- /* @__PURE__ */ a("circle", {
45
+ /* @__PURE__ */ o("circle", {
46
46
  class: "ck-art-dot",
47
47
  cx: "35",
48
48
  cy: "23.5",
49
49
  r: "1.6"
50
50
  }),
51
- /* @__PURE__ */ a("rect", {
51
+ /* @__PURE__ */ o("rect", {
52
52
  class: "ck-art-m",
53
53
  x: "30",
54
54
  y: "37",
@@ -56,7 +56,7 @@ var d = "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
56
56
  height: "5",
57
57
  rx: "2.5"
58
58
  }),
59
- /* @__PURE__ */ a("rect", {
59
+ /* @__PURE__ */ o("rect", {
60
60
  class: "ck-art-m",
61
61
  x: "30",
62
62
  y: "47",
@@ -64,7 +64,7 @@ var d = "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
64
64
  height: "5",
65
65
  rx: "2.5"
66
66
  }),
67
- /* @__PURE__ */ a("rect", {
67
+ /* @__PURE__ */ o("rect", {
68
68
  class: "ck-art-m",
69
69
  x: "30",
70
70
  y: "57",
@@ -73,13 +73,13 @@ var d = "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
73
73
  rx: "2.5"
74
74
  }),
75
75
  f(70, 6, .46, "ck-art-a"),
76
- /* @__PURE__ */ a("path", {
76
+ /* @__PURE__ */ o("path", {
77
77
  class: "ck-art-tick",
78
78
  d: "M84.5 14v9M80 18.5h9"
79
79
  })
80
80
  ] }),
81
- noMatch: () => /* @__PURE__ */ a(o, { children: [
82
- /* @__PURE__ */ a("rect", {
81
+ noMatch: () => /* @__PURE__ */ o(n, { children: [
82
+ /* @__PURE__ */ o("rect", {
83
83
  class: "ck-art-m",
84
84
  x: "22",
85
85
  y: "22",
@@ -87,7 +87,7 @@ var d = "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
87
87
  height: "6",
88
88
  rx: "3"
89
89
  }),
90
- /* @__PURE__ */ a("rect", {
90
+ /* @__PURE__ */ o("rect", {
91
91
  class: "ck-art-m",
92
92
  x: "22",
93
93
  y: "36",
@@ -95,7 +95,7 @@ var d = "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
95
95
  height: "6",
96
96
  rx: "3"
97
97
  }),
98
- /* @__PURE__ */ a("rect", {
98
+ /* @__PURE__ */ o("rect", {
99
99
  class: "ck-art-m",
100
100
  x: "22",
101
101
  y: "50",
@@ -103,49 +103,49 @@ var d = "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
103
103
  height: "6",
104
104
  rx: "3"
105
105
  }),
106
- /* @__PURE__ */ a("circle", {
106
+ /* @__PURE__ */ o("circle", {
107
107
  class: "ck-art-w",
108
108
  cx: "76",
109
109
  cy: "42",
110
110
  r: "15"
111
111
  }),
112
- /* @__PURE__ */ a("path", {
112
+ /* @__PURE__ */ o("path", {
113
113
  class: "ck-art-line ck-art-bold",
114
114
  d: "M87 53l11 11"
115
115
  }),
116
- /* @__PURE__ */ a("path", {
116
+ /* @__PURE__ */ o("path", {
117
117
  class: "ck-art-line",
118
118
  d: "M70 42h12"
119
119
  })
120
120
  ] }),
121
- error: () => /* @__PURE__ */ a(o, { children: [
121
+ error: () => /* @__PURE__ */ o(n, { children: [
122
122
  f(36, 6, .75, "ck-art-m"),
123
- /* @__PURE__ */ a("path", {
123
+ /* @__PURE__ */ o("path", {
124
124
  class: "ck-art-line ck-art-bold",
125
125
  d: "M60 18v14"
126
126
  }),
127
- /* @__PURE__ */ a("circle", {
127
+ /* @__PURE__ */ o("circle", {
128
128
  class: "ck-art-ink",
129
129
  cx: "60",
130
130
  cy: "40",
131
131
  r: "2.4"
132
132
  }),
133
- /* @__PURE__ */ a("path", {
133
+ /* @__PURE__ */ o("path", {
134
134
  class: "ck-art-spark",
135
135
  d: "M24 22l6 4M22 36h7M96 22l-6 4M98 36h-7"
136
136
  })
137
137
  ] }),
138
- gone: () => /* @__PURE__ */ a(o, { children: f(36, 6, .75, "ck-art-ghost") })
138
+ gone: () => /* @__PURE__ */ o(n, { children: f(36, 6, .75, "ck-art-ghost") })
139
139
  };
140
140
  function m({ name: e }) {
141
- return /* @__PURE__ */ a("svg", {
141
+ return /* @__PURE__ */ o("svg", {
142
142
  class: "ck-art",
143
143
  viewBox: "0 0 120 80",
144
144
  width: "120",
145
145
  height: "80",
146
146
  "aria-hidden": "true",
147
147
  focusable: "false",
148
- children: [/* @__PURE__ */ a("ellipse", {
148
+ children: [/* @__PURE__ */ o("ellipse", {
149
149
  class: "ck-art-shadow",
150
150
  cx: "60",
151
151
  cy: "74",
@@ -155,20 +155,20 @@ function m({ name: e }) {
155
155
  });
156
156
  }
157
157
  // src/ui/Checklist.tsx
158
- function h({ thread: e, editable: o, addable: u = !0, onChange: d }, f) {
159
- let { client: p, reportError: m } = s(f), [h, g] = r(!1), [_, v] = r(""), [y, b] = r(!1), x = i(null), [S, C] = r(0);
160
- n(() => {
158
+ function h({ thread: t, editable: n, addable: u = !0, onChange: d }, f) {
159
+ let { client: p, reportError: m } = s(f), [h, g] = e(!1), [_, v] = e(""), [y, b] = e(!1), x = a(null), [S, C] = e(0);
160
+ i(() => {
161
161
  S && x.current?.querySelector(".ck-checklist-add input, .ck-extra-add button")?.focus({ preventScroll: !0 });
162
162
  }, [S]);
163
- let w = e.checklist ?? [], T = w.filter((e) => e.done).length, E = i(e);
164
- E.current = e;
163
+ let w = t.checklist ?? [], T = w.filter((e) => e.done).length, E = a(t);
164
+ E.current = t;
165
165
  let D = (e) => d(E.current = {
166
166
  ...E.current,
167
167
  checklist: e(E.current.checklist ?? [])
168
168
  }), O = () => {
169
- let t = _.trim();
170
- t && !y && (b(!0), v(""), p.addChecklistItem(e.id, t).then((e) => D((t) => [...t, e]), (e) => {
171
- v((e) => e ? `${t} ${e}` : t), m(e);
169
+ let e = _.trim();
170
+ e && !y && (b(!0), v(""), p.addChecklistItem(t.id, e).then((e) => D((t) => [...t, e]), (t) => {
171
+ v((t) => t ? `${e} ${t}` : e), m(t);
172
172
  }).finally(() => b(!1)));
173
173
  }, k = (e) => {
174
174
  let t = {
@@ -188,55 +188,55 @@ function h({ thread: e, editable: o, addable: u = !0, onChange: d }, f) {
188
188
  ]), m(n);
189
189
  });
190
190
  };
191
- return !w.length && !(o && u) ? null : /* @__PURE__ */ a("div", {
191
+ return !w.length && !(n && u) ? null : /* @__PURE__ */ o("div", {
192
192
  class: "ck-extra",
193
193
  ref: x,
194
194
  children: [
195
- w.length ? /* @__PURE__ */ a("div", {
195
+ w.length ? /* @__PURE__ */ o("div", {
196
196
  class: "ck-checklist",
197
197
  role: "group",
198
- "aria-label": t("checklist"),
199
- children: [/* @__PURE__ */ a("div", {
198
+ "aria-label": r("checklist"),
199
+ children: [/* @__PURE__ */ o("div", {
200
200
  class: "ck-checklist-head",
201
- children: [/* @__PURE__ */ a("span", {
201
+ children: [/* @__PURE__ */ o("span", {
202
202
  class: "ck-muted",
203
- children: t("checklistProgress", {
203
+ children: r("checklistProgress", {
204
204
  n: T,
205
205
  total: w.length
206
206
  })
207
- }), /* @__PURE__ */ a("span", {
207
+ }), /* @__PURE__ */ o("span", {
208
208
  class: "ck-checklist-bar",
209
209
  "aria-hidden": "true",
210
- children: /* @__PURE__ */ a("span", { style: { scale: `${T / w.length} 1` } })
210
+ children: /* @__PURE__ */ o("span", { style: { scale: `${T / w.length} 1` } })
211
211
  })]
212
- }), /* @__PURE__ */ a("ul", { children: w.map((e) => /* @__PURE__ */ a("li", {
212
+ }), /* @__PURE__ */ o("ul", { children: w.map((e) => /* @__PURE__ */ o("li", {
213
213
  "data-done": e.done || void 0,
214
- children: [/* @__PURE__ */ a("label", {
214
+ children: [/* @__PURE__ */ o("label", {
215
215
  class: "ck-check",
216
- children: [/* @__PURE__ */ a("input", {
216
+ children: [/* @__PURE__ */ o("input", {
217
217
  type: "checkbox",
218
218
  checked: e.done,
219
- disabled: !o,
219
+ disabled: !n,
220
220
  onChange: () => k(e)
221
- }), /* @__PURE__ */ a("bdi", { children: e.body })]
222
- }), o ? /* @__PURE__ */ a("button", {
221
+ }), /* @__PURE__ */ o("bdi", { children: e.body })]
222
+ }), n ? /* @__PURE__ */ o("button", {
223
223
  class: "ck-ghost ck-ghost-sm",
224
- "aria-label": t("removeItem", { item: e.body }),
224
+ "aria-label": r("removeItem", { item: e.body }),
225
225
  onClick: () => A(e),
226
- children: /* @__PURE__ */ a(c, {
226
+ children: /* @__PURE__ */ o(c, {
227
227
  name: "close",
228
228
  size: 12
229
229
  })
230
230
  }) : null]
231
231
  })) })]
232
232
  }) : null,
233
- o && (h || w.length) ? /* @__PURE__ */ a("div", {
233
+ n && (h || w.length) ? /* @__PURE__ */ o("div", {
234
234
  class: "ck-checklist-add",
235
- children: [/* @__PURE__ */ a("input", {
235
+ children: [/* @__PURE__ */ o("input", {
236
236
  class: "ck-input",
237
237
  maxLength: 300,
238
- placeholder: t("checklistAdd"),
239
- "aria-label": t("checklistAdd"),
238
+ placeholder: r("checklistAdd"),
239
+ "aria-label": r("checklistAdd"),
240
240
  value: _,
241
241
  "aria-busy": y || void 0,
242
242
  enterKeyHint: "done",
@@ -245,13 +245,13 @@ function h({ thread: e, editable: o, addable: u = !0, onChange: d }, f) {
245
245
  onKeyDown: (e) => {
246
246
  e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(), O()) : e.key === "Escape" && !w.length && g(!1);
247
247
  }
248
- }), _.trim() ? /* @__PURE__ */ a("button", {
248
+ }), _.trim() ? /* @__PURE__ */ o("button", {
249
249
  class: "ck-ghost",
250
- "aria-label": t("checklistAdd"),
251
- title: t("checklistAdd"),
250
+ "aria-label": r("checklistAdd"),
251
+ title: r("checklistAdd"),
252
252
  "aria-disabled": y || void 0,
253
253
  onClick: () => !y && O(),
254
- children: /* @__PURE__ */ a("svg", {
254
+ children: /* @__PURE__ */ o("svg", {
255
255
  width: "16",
256
256
  height: "16",
257
257
  viewBox: "0 0 24 24",
@@ -260,23 +260,23 @@ function h({ thread: e, editable: o, addable: u = !0, onChange: d }, f) {
260
260
  "stroke-width": "2",
261
261
  "stroke-linecap": "round",
262
262
  "aria-hidden": "true",
263
- children: /* @__PURE__ */ a("path", { d: "M12 5v14M5 12h14" })
263
+ children: /* @__PURE__ */ o("path", { d: "M12 5v14M5 12h14" })
264
264
  })
265
265
  }) : null]
266
266
  }) : null,
267
- o && u && !w.length && !h ? /* @__PURE__ */ a("div", {
267
+ n && u && !w.length && !h ? /* @__PURE__ */ o("div", {
268
268
  class: "ck-extra-add",
269
- children: /* @__PURE__ */ a("button", {
269
+ children: /* @__PURE__ */ o("button", {
270
270
  class: "ck-ghost ck-ghost-sm",
271
271
  onClick: () => g(!0),
272
- children: ["+ ", t("addChecklist")]
272
+ children: ["+ ", r("addChecklist")]
273
273
  })
274
274
  }) : null
275
275
  ]
276
276
  });
277
277
  }
278
- function g(t) {
279
- let n = t.checklist ?? [];
280
- return n.length ? e("checklistShort", n.length, { done: n.filter((e) => e.done).length }) : null;
278
+ function g(e) {
279
+ let n = e.checklist ?? [];
280
+ return n.length ? t("checklistShort", n.length, { done: n.filter((e) => e.done).length }) : null;
281
281
  }
282
282
  export { g as n, m as r, h as t };