@commentkit/comment-kit 2.0.1 → 2.1.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 (82) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +14 -6
  3. package/dist/node/cli/api.js +61 -15
  4. package/dist/node/cli/credentials.js +8 -0
  5. package/dist/node/cli/doctor.js +68 -5
  6. package/dist/node/cli/main.js +275 -52
  7. package/dist/node/cli/website.js +140 -0
  8. package/dist/node/types/next.d.ts +4 -4
  9. package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
  10. package/dist/npm/chunks/{AgentSend-DOy3jhyF.js → AgentSend-B4rxdY68.js} +3 -3
  11. package/dist/npm/chunks/Checklist-Cy68X5qC.js +269 -0
  12. package/dist/npm/chunks/Composer-D65l6Jg4.js +734 -0
  13. package/dist/npm/chunks/DatePicker-BPzzqW3f.js +161 -0
  14. package/dist/npm/chunks/{Guest-7hcN765o.js → Guest-C-ZhARI0.js} +18 -17
  15. package/dist/npm/chunks/{MarkupEditor-6bJGpWGO.js → MarkupEditor-BOb2jFTR.js} +8 -8
  16. package/dist/npm/chunks/{Panel-ChPUB68C.js → Panel-DgdCgaC-.js} +217 -218
  17. package/dist/npm/chunks/{Settings-CB5eEKnf.js → Settings-BbWu2Rd5.js} +34 -33
  18. package/dist/npm/chunks/{Shortcuts-eAyjJ89P.js → Shortcuts-C5wEx-Mq.js} +25 -23
  19. package/dist/npm/chunks/SignInFirst-BlMbutED.js +36 -0
  20. package/dist/npm/chunks/{StyleEditor-CZTdAA5c.js → StyleEditor-BN2z7mUs.js} +4 -4
  21. package/dist/npm/chunks/{StylePanel-B4pHQUL9.js → StylePanel-BZk-r-kl.js} +3 -3
  22. package/dist/npm/chunks/TaskFields-B2-YvIwV.js +617 -0
  23. package/dist/npm/chunks/ThreadCard-xKy4JbXK.js +1142 -0
  24. package/dist/npm/chunks/{Viewer-DY6zb90M.js → Viewer-DL6M3wAT.js} +9 -8
  25. package/dist/npm/chunks/{agent-MTQHr9ei.js → agent-D1VQvc14.js} +12 -12
  26. package/dist/npm/chunks/{ar-L5cQ-NPe.js → ar-DtfC6tHi.js} +53 -12
  27. package/dist/npm/chunks/{card-bits-CTdrkYn8.js → card-bits-B94SwnS9.js} +12 -10
  28. package/dist/npm/chunks/{client-7eVxvg5j.js → client-CULjcQxz.js} +13 -11
  29. package/dist/npm/chunks/{confetti-BIs5s14P.js → confetti-K_xKxQGa.js} +1 -1
  30. package/dist/npm/chunks/{context-Cf6khm7A.js → context-0MfEgoip.js} +1 -1
  31. package/dist/npm/chunks/{de-D0C-v6tP.js → de-CSyX5Cz-.js} +53 -12
  32. package/dist/npm/chunks/{dpop-0A76OPa9.js → dpop-DpxIN5kL.js} +1 -1
  33. package/dist/npm/chunks/entrance-CO0AzUKy.js +90 -0
  34. package/dist/npm/chunks/{es-Bw4Dj9tN.js → es-D7SAi7fz.js} +53 -12
  35. package/dist/npm/chunks/{extension-DFVOvciD.js → extension-DpfiPOjC.js} +1 -1
  36. package/dist/npm/chunks/{extension-SmoH5AA4.js → extension-faFfCApb.js} +2 -2
  37. package/dist/npm/chunks/{files-4lV9YQIX.js → files-BkHuRlcW.js} +2 -2
  38. package/dist/npm/chunks/{fr-TkuQaIAa.js → fr-CIr2nUyu.js} +53 -12
  39. package/dist/npm/chunks/{hi-DXSH2U8d.js → hi-BTocxOL5.js} +53 -12
  40. package/dist/npm/chunks/{i18n-aVSu9TcJ.js → i18n-CDw_D17c.js} +17 -21
  41. package/dist/npm/chunks/icons-BJLm_C0M.js +141 -0
  42. package/dist/npm/chunks/{identify-BGYh2dVo.js → identify-963WDKul.js} +1 -1
  43. package/dist/npm/chunks/{it-CiWA_bch.js → it-DCExRo0r.js} +53 -12
  44. package/dist/npm/chunks/{ja-C-QmR3yz.js → ja-CgWpTdWi.js} +52 -11
  45. package/dist/npm/chunks/late-words-QnNheaDY.js +59 -0
  46. package/dist/npm/chunks/{live-BExWHzQ7.js → live-BI72WQBA.js} +31 -23
  47. package/dist/npm/chunks/{nl-CEmZRqjX.js → nl-DhTQ8oJ_.js} +53 -12
  48. package/dist/npm/chunks/{page-key-HSY3Lze5.js → page-key-CW8Mtf60.js} +1 -1
  49. package/dist/npm/chunks/{pick-B3sR7jtS.js → pick-BRhngGMq.js} +1 -1
  50. package/dist/npm/chunks/{pkce-CfZhiNBi.js → pkce-BEeLAZhN.js} +1 -1
  51. package/dist/npm/chunks/{pt-BR-b-a8sxO8.js → pt-BR-DrO6LV4n.js} +53 -12
  52. package/dist/npm/chunks/{report-DaVuoRYS.js → report-DAzQvgUh.js} +1 -1
  53. package/dist/npm/chunks/{show-BoN8AC-F.js → show-Ka3g4eCJ.js} +7 -7
  54. package/dist/npm/chunks/signin-Car5vP1U.js +101 -0
  55. package/dist/npm/chunks/{source-mk3rGBBQ.js → source-dd_it90W.js} +1 -1
  56. package/dist/npm/chunks/{src-C8rZFyL_.js → src-fTYV50pw.js} +21 -15
  57. package/dist/npm/chunks/start-CE5eR33Z.js +1916 -0
  58. package/dist/npm/chunks/states-DLMCvwes.js +3 -0
  59. package/dist/npm/chunks/{upload-B2mkgMeJ.js → upload-Dcv9CCly.js} +1 -1
  60. package/dist/npm/chunks/uploads-CmeoNVO2.js +1236 -0
  61. package/dist/npm/chunks/{wrap-DW6EFbVQ.js → wrap-B0mzrRhc.js} +27 -27
  62. package/dist/npm/chunks/{zh-CN-JTscW8u8.js → zh-CN-Bb8UzT1V.js} +53 -12
  63. package/dist/npm/element.js +7 -1
  64. package/dist/npm/headless.js +2 -2
  65. package/dist/npm/index.js +2 -2
  66. package/dist/npm/react.js +1 -1
  67. package/dist/npm/svelte.js +1 -1
  68. package/dist/npm/types/adapters/vue.d.ts +12 -0
  69. package/dist/npm/types/core/auth.d.ts +1 -0
  70. package/dist/npm/types/core/client.d.ts +5 -1
  71. package/dist/npm/types/core/types.d.ts +17 -2
  72. package/dist/npm/vue.js +5 -1
  73. package/package.json +2 -1
  74. package/dist/npm/chunks/Checklist-CW_SwMpS.js +0 -282
  75. package/dist/npm/chunks/Composer-Bveq5QrK.js +0 -727
  76. package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +0 -289
  77. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +0 -1160
  78. package/dist/npm/chunks/late-words-80_VWt8S.js +0 -14
  79. package/dist/npm/chunks/signin-BOWr_WCo.js +0 -75
  80. package/dist/npm/chunks/start-CV4j78_q.js +0 -1894
  81. package/dist/npm/chunks/states-b9Bv3Ci7.js +0 -3
  82. package/dist/npm/chunks/uploads-8AxyRq7g.js +0 -1147
@@ -4,15 +4,15 @@ type AnyRecord = Record<string, any>;
4
4
  export interface NextConfigLike extends AnyRecord {
5
5
  env?: Record<string, string | undefined>;
6
6
  compiler?: AnyRecord & {
7
- define?: Record<string, string | number | boolean>;
7
+ define?: Record<string, any>;
8
8
  };
9
9
  turbopack?: AnyRecord & {
10
- rules?: Record<string, unknown>;
10
+ rules?: Record<string, any>;
11
11
  };
12
- webpack?: ((config: AnyRecord, context: AnyRecord) => AnyRecord) | null;
12
+ webpack?: ((config: any, context: any) => any) | null;
13
13
  }
14
14
  export type NextConfigFunction = (phase: string, context: {
15
- defaultConfig: AnyRecord;
15
+ defaultConfig: any;
16
16
  }) => NextConfigLike | Promise<NextConfigLike>;
17
17
  export type NextConfigInput = NextConfigLike | NextConfigFunction;
18
18
  /**
@@ -25,6 +25,53 @@ SOFTWARE.
25
25
 
26
26
  ---
27
27
 
28
+ lucide-static@1.73.0 (ISC)
29
+ ISC License
30
+
31
+ Copyright (c) 2026 Lucide Icons and Contributors
32
+
33
+ Permission to use, copy, modify, and/or distribute this software for any
34
+ purpose with or without fee is hereby granted, provided that the above
35
+ copyright notice and this permission notice appear in all copies.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
38
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
39
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
40
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
41
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
42
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
43
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
44
+
45
+ ---
46
+
47
+ The following Lucide icons are derived from the Feather project:
48
+
49
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
50
+
51
+ The MIT License (MIT) (for the icons listed above)
52
+
53
+ Copyright (c) 2013-present Cole Bemis
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining a copy
56
+ of this software and associated documentation files (the "Software"), to deal
57
+ in the Software without restriction, including without limitation the rights
58
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
59
+ copies of the Software, and to permit persons to whom the Software is
60
+ furnished to do so, subject to the following conditions:
61
+
62
+ The above copyright notice and this permission notice shall be included in all
63
+ copies or substantial portions of the Software.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
69
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
70
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
71
+ SOFTWARE.
72
+
73
+ ---
74
+
28
75
  preact@11.1.0 (MIT)
29
76
  The MIT License (MIT)
30
77
 
@@ -1,6 +1,6 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-aVSu9TcJ.js";
2
- import { n as s, t as c } from "./agent-MTQHr9ei.js";
3
- import { A as l, h as u } from "./start-CV4j78_q.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-CDw_D17c.js";
2
+ import { n as s, t as c } from "./agent-D1VQvc14.js";
3
+ import { N as l, y as u } from "./start-CE5eR33Z.js";
4
4
  // src/ui/AgentSend.tsx
5
5
  var d = {
6
6
  cursor: "Cursor",
@@ -0,0 +1,269 @@
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-CDw_D17c.js";
2
+ import { n as c, t as l } from "./icons-BJLm_C0M.js";
3
+ import { r as u } from "./context-0MfEgoip.js";
4
+ import { M as d, c as f } from "./start-CE5eR33Z.js";
5
+ // src/ui/art.tsx
6
+ f(".ck-art{margin:0 auto 12px;display:block;overflow:visible}.ck-art *{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.ck-art-w,.ck-art-a,path.ck-art-m{stroke:var(--ck-text);stroke-width:2px}.ck-art-w{fill:var(--ck-bg)}.ck-art-a{fill:var(--ck-accent)}.ck-art-m{fill:var(--ck-bg-hover)}.ck-art-line{fill:none;stroke:var(--ck-text);stroke-width:2px}.ck-art-bold{stroke-width:4.5px}.ck-art-tick{fill:none;stroke:var(--ck-accent-ink);stroke-width:2.6px}.ck-art-dot{fill:var(--ck-border)}.ck-art-ink{fill:var(--ck-text)}.ck-art-spark{fill:none;stroke:var(--ck-accent);stroke-width:2.4px}.ck-art-ghost{fill:none;stroke:var(--ck-text-muted);stroke-width:2px;stroke-dasharray:5 5}.ck-art-shadow{fill:var(--ck-bg-hover)}");
7
+ var p = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", m = (e, t, n, r) => /* @__PURE__ */ s("path", {
8
+ class: r,
9
+ d: p,
10
+ transform: `translate(${e} ${t}) scale(${n})`
11
+ }), h = {
12
+ caughtUp: () => /* @__PURE__ */ s(n, { children: [
13
+ /* @__PURE__ */ s("path", {
14
+ class: "ck-art-w",
15
+ d: "M28 50l8-20h48l8 20v18H28z"
16
+ }),
17
+ /* @__PURE__ */ s("path", {
18
+ class: "ck-art-line",
19
+ d: "M28 50h19l4 6h18l4-6h19"
20
+ }),
21
+ m(44, 4, .5, "ck-art-a"),
22
+ /* @__PURE__ */ s("path", {
23
+ class: "ck-art-tick",
24
+ d: "M53 19l5 5 9-10"
25
+ })
26
+ ] }),
27
+ noFeedback: () => /* @__PURE__ */ s(n, { children: [
28
+ /* @__PURE__ */ s("rect", {
29
+ class: "ck-art-w",
30
+ x: "22",
31
+ y: "18",
32
+ width: "70",
33
+ height: "52",
34
+ rx: "7"
35
+ }),
36
+ /* @__PURE__ */ s("path", {
37
+ class: "ck-art-line",
38
+ d: "M22 29h70"
39
+ }),
40
+ /* @__PURE__ */ s("circle", {
41
+ class: "ck-art-dot",
42
+ cx: "29",
43
+ cy: "23.5",
44
+ r: "1.6"
45
+ }),
46
+ /* @__PURE__ */ s("circle", {
47
+ class: "ck-art-dot",
48
+ cx: "35",
49
+ cy: "23.5",
50
+ r: "1.6"
51
+ }),
52
+ /* @__PURE__ */ s("rect", {
53
+ class: "ck-art-m",
54
+ x: "30",
55
+ y: "37",
56
+ width: "34",
57
+ height: "5",
58
+ rx: "2.5"
59
+ }),
60
+ /* @__PURE__ */ s("rect", {
61
+ class: "ck-art-m",
62
+ x: "30",
63
+ y: "47",
64
+ width: "46",
65
+ height: "5",
66
+ rx: "2.5"
67
+ }),
68
+ /* @__PURE__ */ s("rect", {
69
+ class: "ck-art-m",
70
+ x: "30",
71
+ y: "57",
72
+ width: "26",
73
+ height: "5",
74
+ rx: "2.5"
75
+ }),
76
+ m(70, 6, .46, "ck-art-a"),
77
+ /* @__PURE__ */ s("path", {
78
+ class: "ck-art-tick",
79
+ d: "M84.5 14v9M80 18.5h9"
80
+ })
81
+ ] }),
82
+ noMatch: () => /* @__PURE__ */ s(n, { children: [
83
+ /* @__PURE__ */ s("rect", {
84
+ class: "ck-art-m",
85
+ x: "22",
86
+ y: "22",
87
+ width: "52",
88
+ height: "6",
89
+ rx: "3"
90
+ }),
91
+ /* @__PURE__ */ s("rect", {
92
+ class: "ck-art-m",
93
+ x: "22",
94
+ y: "36",
95
+ width: "40",
96
+ height: "6",
97
+ rx: "3"
98
+ }),
99
+ /* @__PURE__ */ s("rect", {
100
+ class: "ck-art-m",
101
+ x: "22",
102
+ y: "50",
103
+ width: "46",
104
+ height: "6",
105
+ rx: "3"
106
+ }),
107
+ /* @__PURE__ */ s("circle", {
108
+ class: "ck-art-w",
109
+ cx: "76",
110
+ cy: "42",
111
+ r: "15"
112
+ }),
113
+ /* @__PURE__ */ s("path", {
114
+ class: "ck-art-line ck-art-bold",
115
+ d: "M87 53l11 11"
116
+ }),
117
+ /* @__PURE__ */ s("path", {
118
+ class: "ck-art-line",
119
+ d: "M70 42h12"
120
+ })
121
+ ] }),
122
+ error: () => /* @__PURE__ */ s(n, { children: [
123
+ m(36, 6, .75, "ck-art-m"),
124
+ /* @__PURE__ */ s("path", {
125
+ class: "ck-art-line ck-art-bold",
126
+ d: "M60 18v14"
127
+ }),
128
+ /* @__PURE__ */ s("circle", {
129
+ class: "ck-art-ink",
130
+ cx: "60",
131
+ cy: "40",
132
+ r: "2.4"
133
+ }),
134
+ /* @__PURE__ */ s("path", {
135
+ class: "ck-art-spark",
136
+ d: "M24 22l6 4M22 36h7M96 22l-6 4M98 36h-7"
137
+ })
138
+ ] }),
139
+ gone: () => /* @__PURE__ */ s(n, { children: m(36, 6, .75, "ck-art-ghost") })
140
+ };
141
+ function g({ name: e }) {
142
+ return /* @__PURE__ */ s("svg", {
143
+ class: "ck-art",
144
+ viewBox: "0 0 120 80",
145
+ width: "120",
146
+ height: "80",
147
+ "aria-hidden": "true",
148
+ focusable: "false",
149
+ children: [/* @__PURE__ */ s("ellipse", {
150
+ class: "ck-art-shadow",
151
+ cx: "60",
152
+ cy: "74",
153
+ rx: "34",
154
+ ry: "3.5"
155
+ }), h[e]()]
156
+ });
157
+ }
158
+ // src/ui/Checklist.tsx
159
+ function _({ thread: t, editable: n, addable: f = !0, start: p = 0, onChange: m }, h) {
160
+ let { client: g, reportError: _ } = u(h), [v, y] = e(!1);
161
+ i(() => void (p && y(!0)), [p]);
162
+ let [b, x] = e(""), [S, C] = e(!1), w = o(null), [T, E] = e(0);
163
+ a(() => {
164
+ T && w.current?.querySelector(".ck-checklist-add input, .ck-extra-add button")?.focus({ preventScroll: !0 });
165
+ }, [T]);
166
+ let D = t.checklist ?? [], O = D.filter((e) => e.done).length, k = o(t);
167
+ k.current = t;
168
+ let A = (e) => m(k.current = {
169
+ ...k.current,
170
+ checklist: e(k.current.checklist ?? [])
171
+ }), j = () => {
172
+ let e = b.trim();
173
+ e && !S && (C(!0), x(""), g.addChecklistItem(t.id, e).then((e) => A((t) => [...t, e]), (t) => {
174
+ x((t) => t ? `${e} ${t}` : e), _(t);
175
+ }).finally(() => C(!1)));
176
+ }, M = (e) => {
177
+ let t = {
178
+ ...e,
179
+ done: !e.done
180
+ }, n = (t) => A((n) => n.map((n) => n.id === e.id ? t : n));
181
+ n(t), g.updateChecklistItem(e.id, { done: t.done }).catch((t) => {
182
+ n(e), _(t);
183
+ });
184
+ }, N = (e) => {
185
+ let t = D.indexOf(e);
186
+ A((t) => t.filter((t) => t.id !== e.id)), E((e) => e + 1), g.deleteChecklistItem(e.id).catch((n) => {
187
+ A((n) => n.some((t) => t.id === e.id) ? n : [
188
+ ...n.slice(0, t),
189
+ e,
190
+ ...n.slice(t)
191
+ ]), _(n);
192
+ });
193
+ };
194
+ return !D.length && !(n && f && v) ? null : /* @__PURE__ */ s("div", {
195
+ class: "ck-extra",
196
+ ref: w,
197
+ children: [D.length ? /* @__PURE__ */ s("div", {
198
+ class: "ck-checklist",
199
+ role: "group",
200
+ "aria-label": r("checklist"),
201
+ children: [
202
+ /* @__PURE__ */ s("div", {
203
+ class: "ck-checklist-head",
204
+ children: [/* @__PURE__ */ s("span", {
205
+ class: "ck-checklist-title",
206
+ children: r("checklist")
207
+ }), /* @__PURE__ */ s("span", {
208
+ class: "ck-muted",
209
+ children: r("checklistProgress", {
210
+ n: O,
211
+ total: D.length
212
+ })
213
+ })]
214
+ }),
215
+ /* @__PURE__ */ s("span", {
216
+ class: "ck-checklist-bar",
217
+ "aria-hidden": "true",
218
+ children: /* @__PURE__ */ s("span", { style: { scale: `${O / D.length} 1` } })
219
+ }),
220
+ /* @__PURE__ */ s("ul", { children: D.map((e) => /* @__PURE__ */ s("li", {
221
+ "data-done": e.done || void 0,
222
+ children: [/* @__PURE__ */ s("label", {
223
+ class: "ck-check",
224
+ children: [/* @__PURE__ */ s(l, {
225
+ checked: e.done,
226
+ disabled: !n,
227
+ onChange: () => M(e)
228
+ }), /* @__PURE__ */ s("bdi", { children: e.body })]
229
+ }), n ? /* @__PURE__ */ s("button", {
230
+ class: "ck-icon ck-icon-sm",
231
+ "aria-label": r("removeItem", { item: e.body }),
232
+ onClick: () => N(e),
233
+ children: /* @__PURE__ */ s(c, {
234
+ name: "clear",
235
+ size: 14
236
+ })
237
+ }) : null]
238
+ })) })
239
+ ]
240
+ }) : null, n && (v || D.length) ? /* @__PURE__ */ s("div", {
241
+ class: "ck-checklist-add",
242
+ children: [/* @__PURE__ */ s("input", {
243
+ class: "ck-input",
244
+ maxLength: 300,
245
+ placeholder: r("checklistAdd"),
246
+ "aria-label": r("checklistAdd"),
247
+ value: b,
248
+ "aria-busy": S || void 0,
249
+ enterKeyHint: "done",
250
+ ref: v && !D.length ? d : void 0,
251
+ onInput: (e) => x(e.target.value),
252
+ onKeyDown: (e) => {
253
+ e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(), j()) : e.key === "Escape" && !D.length && y(!1);
254
+ }
255
+ }), b.trim() ? /* @__PURE__ */ s("button", {
256
+ class: "ck-icon",
257
+ "aria-label": r("checklistAdd"),
258
+ "aria-disabled": S || void 0,
259
+ onClick: () => !S && j(),
260
+ children: /* @__PURE__ */ s(c, { name: "plus" })
261
+ }) : null]
262
+ }) : null]
263
+ });
264
+ }
265
+ function v(e) {
266
+ let n = e.checklist ?? [];
267
+ return n.length ? t("checklistShort", n.length, { done: n.filter((e) => e.done).length }) : null;
268
+ }
269
+ export { v as n, g as r, _ as t };