@commentkit/comment-kit 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +33 -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-pA7Ufvye.js} +3 -3
  11. package/dist/npm/chunks/Checklist-Cn9skOYK.js +269 -0
  12. package/dist/npm/chunks/Composer-D7H-pzGa.js +734 -0
  13. package/dist/npm/chunks/DatePicker-Nta5a1xD.js +161 -0
  14. package/dist/npm/chunks/{Guest-7hcN765o.js → Guest-Bi7hlzhs.js} +18 -17
  15. package/dist/npm/chunks/{MarkupEditor-6bJGpWGO.js → MarkupEditor-WU3USeTk.js} +2 -2
  16. package/dist/npm/chunks/{Panel-ChPUB68C.js → Panel-DhAzbUbC.js} +308 -309
  17. package/dist/npm/chunks/{Settings-CB5eEKnf.js → Settings-BmKqPX40.js} +34 -33
  18. package/dist/npm/chunks/{Shortcuts-eAyjJ89P.js → Shortcuts-Bl-c0Sez.js} +25 -23
  19. package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +35 -0
  20. package/dist/npm/chunks/{StyleEditor-CZTdAA5c.js → StyleEditor-D6fUnlwq.js} +4 -4
  21. package/dist/npm/chunks/{StylePanel-B4pHQUL9.js → StylePanel-C-Gikxt1.js} +3 -3
  22. package/dist/npm/chunks/TaskFields-CaKi523b.js +617 -0
  23. package/dist/npm/chunks/ThreadCard-d_3pUB5V.js +1142 -0
  24. package/dist/npm/chunks/{Viewer-DY6zb90M.js → Viewer-BULQsi9-.js} +9 -8
  25. package/dist/npm/chunks/{agent-MTQHr9ei.js → agent-DHdhIJ3s.js} +1 -1
  26. package/dist/npm/chunks/{ar-L5cQ-NPe.js → ar-B5UszrQp.js} +51 -12
  27. package/dist/npm/chunks/{card-bits-CTdrkYn8.js → card-bits-cV8GdFWX.js} +12 -10
  28. package/dist/npm/chunks/{client-7eVxvg5j.js → client-Cv8ddtuM.js} +13 -11
  29. package/dist/npm/chunks/{confetti-BIs5s14P.js → confetti-B9zlyILU.js} +1 -1
  30. package/dist/npm/chunks/{context-Cf6khm7A.js → context-CsHnabaA.js} +1 -1
  31. package/dist/npm/chunks/{de-D0C-v6tP.js → de-BE0Aaq8u.js} +51 -12
  32. package/dist/npm/chunks/{dpop-0A76OPa9.js → dpop-CwW9ifkq.js} +1 -1
  33. package/dist/npm/chunks/entrance-Bn_5M9uO.js +90 -0
  34. package/dist/npm/chunks/{es-Bw4Dj9tN.js → es-BQviao4d.js} +51 -12
  35. package/dist/npm/chunks/{extension-SmoH5AA4.js → extension-CnQTDC1j.js} +2 -2
  36. package/dist/npm/chunks/{extension-DFVOvciD.js → extension-DXhz81XD.js} +1 -1
  37. package/dist/npm/chunks/{files-4lV9YQIX.js → files-DLEr_wmh.js} +2 -2
  38. package/dist/npm/chunks/{fr-TkuQaIAa.js → fr-C5gu6A06.js} +51 -12
  39. package/dist/npm/chunks/{hi-DXSH2U8d.js → hi-DXfQ5EvY.js} +51 -12
  40. package/dist/npm/chunks/{i18n-aVSu9TcJ.js → i18n-Mgs9VOuk.js} +17 -21
  41. package/dist/npm/chunks/icons-_C6ZWmBY.js +141 -0
  42. package/dist/npm/chunks/{identify-BGYh2dVo.js → identify-BnQGJOa0.js} +1 -1
  43. package/dist/npm/chunks/{it-CiWA_bch.js → it-BPHt13FV.js} +51 -12
  44. package/dist/npm/chunks/{ja-C-QmR3yz.js → ja-BkCqyKR0.js} +50 -11
  45. package/dist/npm/chunks/late-words-D4Oo_yhJ.js +57 -0
  46. package/dist/npm/chunks/{live-BExWHzQ7.js → live-DXcxj_Af.js} +28 -22
  47. package/dist/npm/chunks/{nl-CEmZRqjX.js → nl-DZxdLLMU.js} +51 -12
  48. package/dist/npm/chunks/{page-key-HSY3Lze5.js → page-key-UqAozdZi.js} +1 -1
  49. package/dist/npm/chunks/{pick-B3sR7jtS.js → pick-C20RVUas.js} +1 -1
  50. package/dist/npm/chunks/{pkce-CfZhiNBi.js → pkce-BPvWoBrr.js} +1 -1
  51. package/dist/npm/chunks/{pt-BR-b-a8sxO8.js → pt-BR-lA9mJ05F.js} +51 -12
  52. package/dist/npm/chunks/{report-DaVuoRYS.js → report-BjUgUNnT.js} +1 -1
  53. package/dist/npm/chunks/{show-BoN8AC-F.js → show-BinoJyED.js} +7 -7
  54. package/dist/npm/chunks/signin-C2jjsxz9.js +101 -0
  55. package/dist/npm/chunks/{source-mk3rGBBQ.js → source-NuflODx3.js} +1 -1
  56. package/dist/npm/chunks/{src-C8rZFyL_.js → src-9o2Ocq8d.js} +21 -15
  57. package/dist/npm/chunks/start-Cbx6rMrr.js +1904 -0
  58. package/dist/npm/chunks/states-DLMCvwes.js +3 -0
  59. package/dist/npm/chunks/{upload-B2mkgMeJ.js → upload-C4NpM-jE.js} +1 -1
  60. package/dist/npm/chunks/uploads-CY4bDbaI.js +1236 -0
  61. package/dist/npm/chunks/{wrap-DW6EFbVQ.js → wrap-D-xTKIzj.js} +20 -20
  62. package/dist/npm/chunks/{zh-CN-JTscW8u8.js → zh-CN-yqaDHwBx.js} +51 -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
@@ -1,282 +0,0 @@
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
- // src/ui/art.tsx
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__ */ o("path", {
7
- class: r,
8
- d,
9
- transform: `translate(${e} ${t}) scale(${n})`
10
- }), p = {
11
- caughtUp: () => /* @__PURE__ */ o(n, { children: [
12
- /* @__PURE__ */ o("path", {
13
- class: "ck-art-w",
14
- d: "M28 50l8-20h48l8 20v18H28z"
15
- }),
16
- /* @__PURE__ */ o("path", {
17
- class: "ck-art-line",
18
- d: "M28 50h19l4 6h18l4-6h19"
19
- }),
20
- f(44, 4, .5, "ck-art-a"),
21
- /* @__PURE__ */ o("path", {
22
- class: "ck-art-tick",
23
- d: "M53 19l5 5 9-10"
24
- })
25
- ] }),
26
- noFeedback: () => /* @__PURE__ */ o(n, { children: [
27
- /* @__PURE__ */ o("rect", {
28
- class: "ck-art-w",
29
- x: "22",
30
- y: "18",
31
- width: "70",
32
- height: "52",
33
- rx: "7"
34
- }),
35
- /* @__PURE__ */ o("path", {
36
- class: "ck-art-line",
37
- d: "M22 29h70"
38
- }),
39
- /* @__PURE__ */ o("circle", {
40
- class: "ck-art-dot",
41
- cx: "29",
42
- cy: "23.5",
43
- r: "1.6"
44
- }),
45
- /* @__PURE__ */ o("circle", {
46
- class: "ck-art-dot",
47
- cx: "35",
48
- cy: "23.5",
49
- r: "1.6"
50
- }),
51
- /* @__PURE__ */ o("rect", {
52
- class: "ck-art-m",
53
- x: "30",
54
- y: "37",
55
- width: "34",
56
- height: "5",
57
- rx: "2.5"
58
- }),
59
- /* @__PURE__ */ o("rect", {
60
- class: "ck-art-m",
61
- x: "30",
62
- y: "47",
63
- width: "46",
64
- height: "5",
65
- rx: "2.5"
66
- }),
67
- /* @__PURE__ */ o("rect", {
68
- class: "ck-art-m",
69
- x: "30",
70
- y: "57",
71
- width: "26",
72
- height: "5",
73
- rx: "2.5"
74
- }),
75
- f(70, 6, .46, "ck-art-a"),
76
- /* @__PURE__ */ o("path", {
77
- class: "ck-art-tick",
78
- d: "M84.5 14v9M80 18.5h9"
79
- })
80
- ] }),
81
- noMatch: () => /* @__PURE__ */ o(n, { children: [
82
- /* @__PURE__ */ o("rect", {
83
- class: "ck-art-m",
84
- x: "22",
85
- y: "22",
86
- width: "52",
87
- height: "6",
88
- rx: "3"
89
- }),
90
- /* @__PURE__ */ o("rect", {
91
- class: "ck-art-m",
92
- x: "22",
93
- y: "36",
94
- width: "40",
95
- height: "6",
96
- rx: "3"
97
- }),
98
- /* @__PURE__ */ o("rect", {
99
- class: "ck-art-m",
100
- x: "22",
101
- y: "50",
102
- width: "46",
103
- height: "6",
104
- rx: "3"
105
- }),
106
- /* @__PURE__ */ o("circle", {
107
- class: "ck-art-w",
108
- cx: "76",
109
- cy: "42",
110
- r: "15"
111
- }),
112
- /* @__PURE__ */ o("path", {
113
- class: "ck-art-line ck-art-bold",
114
- d: "M87 53l11 11"
115
- }),
116
- /* @__PURE__ */ o("path", {
117
- class: "ck-art-line",
118
- d: "M70 42h12"
119
- })
120
- ] }),
121
- error: () => /* @__PURE__ */ o(n, { children: [
122
- f(36, 6, .75, "ck-art-m"),
123
- /* @__PURE__ */ o("path", {
124
- class: "ck-art-line ck-art-bold",
125
- d: "M60 18v14"
126
- }),
127
- /* @__PURE__ */ o("circle", {
128
- class: "ck-art-ink",
129
- cx: "60",
130
- cy: "40",
131
- r: "2.4"
132
- }),
133
- /* @__PURE__ */ o("path", {
134
- class: "ck-art-spark",
135
- d: "M24 22l6 4M22 36h7M96 22l-6 4M98 36h-7"
136
- })
137
- ] }),
138
- gone: () => /* @__PURE__ */ o(n, { children: f(36, 6, .75, "ck-art-ghost") })
139
- };
140
- function m({ name: e }) {
141
- return /* @__PURE__ */ o("svg", {
142
- class: "ck-art",
143
- viewBox: "0 0 120 80",
144
- width: "120",
145
- height: "80",
146
- "aria-hidden": "true",
147
- focusable: "false",
148
- children: [/* @__PURE__ */ o("ellipse", {
149
- class: "ck-art-shadow",
150
- cx: "60",
151
- cy: "74",
152
- rx: "34",
153
- ry: "3.5"
154
- }), p[e]()]
155
- });
156
- }
157
- // src/ui/Checklist.tsx
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
- S && x.current?.querySelector(".ck-checklist-add input, .ck-extra-add button")?.focus({ preventScroll: !0 });
162
- }, [S]);
163
- let w = t.checklist ?? [], T = w.filter((e) => e.done).length, E = a(t);
164
- E.current = t;
165
- let D = (e) => d(E.current = {
166
- ...E.current,
167
- checklist: e(E.current.checklist ?? [])
168
- }), O = () => {
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
- }).finally(() => b(!1)));
173
- }, k = (e) => {
174
- let t = {
175
- ...e,
176
- done: !e.done
177
- }, n = (t) => D((n) => n.map((n) => n.id === e.id ? t : n));
178
- n(t), p.updateChecklistItem(e.id, { done: t.done }).catch((t) => {
179
- n(e), m(t);
180
- });
181
- }, A = (e) => {
182
- let t = w.indexOf(e);
183
- D((t) => t.filter((t) => t.id !== e.id)), C((e) => e + 1), p.deleteChecklistItem(e.id).catch((n) => {
184
- D((n) => n.some((t) => t.id === e.id) ? n : [
185
- ...n.slice(0, t),
186
- e,
187
- ...n.slice(t)
188
- ]), m(n);
189
- });
190
- };
191
- return !w.length && !(n && u) ? null : /* @__PURE__ */ o("div", {
192
- class: "ck-extra",
193
- ref: x,
194
- children: [
195
- w.length ? /* @__PURE__ */ o("div", {
196
- class: "ck-checklist",
197
- role: "group",
198
- "aria-label": r("checklist"),
199
- children: [/* @__PURE__ */ o("div", {
200
- class: "ck-checklist-head",
201
- children: [/* @__PURE__ */ o("span", {
202
- class: "ck-muted",
203
- children: r("checklistProgress", {
204
- n: T,
205
- total: w.length
206
- })
207
- }), /* @__PURE__ */ o("span", {
208
- class: "ck-checklist-bar",
209
- "aria-hidden": "true",
210
- children: /* @__PURE__ */ o("span", { style: { scale: `${T / w.length} 1` } })
211
- })]
212
- }), /* @__PURE__ */ o("ul", { children: w.map((e) => /* @__PURE__ */ o("li", {
213
- "data-done": e.done || void 0,
214
- children: [/* @__PURE__ */ o("label", {
215
- class: "ck-check",
216
- children: [/* @__PURE__ */ o("input", {
217
- type: "checkbox",
218
- checked: e.done,
219
- disabled: !n,
220
- onChange: () => k(e)
221
- }), /* @__PURE__ */ o("bdi", { children: e.body })]
222
- }), n ? /* @__PURE__ */ o("button", {
223
- class: "ck-ghost ck-ghost-sm",
224
- "aria-label": r("removeItem", { item: e.body }),
225
- onClick: () => A(e),
226
- children: /* @__PURE__ */ o(c, {
227
- name: "close",
228
- size: 12
229
- })
230
- }) : null]
231
- })) })]
232
- }) : null,
233
- n && (h || w.length) ? /* @__PURE__ */ o("div", {
234
- class: "ck-checklist-add",
235
- children: [/* @__PURE__ */ o("input", {
236
- class: "ck-input",
237
- maxLength: 300,
238
- placeholder: r("checklistAdd"),
239
- "aria-label": r("checklistAdd"),
240
- value: _,
241
- "aria-busy": y || void 0,
242
- enterKeyHint: "done",
243
- ref: h && !w.length ? l : void 0,
244
- onInput: (e) => v(e.target.value),
245
- onKeyDown: (e) => {
246
- e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(), O()) : e.key === "Escape" && !w.length && g(!1);
247
- }
248
- }), _.trim() ? /* @__PURE__ */ o("button", {
249
- class: "ck-ghost",
250
- "aria-label": r("checklistAdd"),
251
- title: r("checklistAdd"),
252
- "aria-disabled": y || void 0,
253
- onClick: () => !y && O(),
254
- children: /* @__PURE__ */ o("svg", {
255
- width: "16",
256
- height: "16",
257
- viewBox: "0 0 24 24",
258
- fill: "none",
259
- stroke: "currentColor",
260
- "stroke-width": "2",
261
- "stroke-linecap": "round",
262
- "aria-hidden": "true",
263
- children: /* @__PURE__ */ o("path", { d: "M12 5v14M5 12h14" })
264
- })
265
- }) : null]
266
- }) : null,
267
- n && u && !w.length && !h ? /* @__PURE__ */ o("div", {
268
- class: "ck-extra-add",
269
- children: /* @__PURE__ */ o("button", {
270
- class: "ck-ghost ck-ghost-sm",
271
- onClick: () => g(!0),
272
- children: ["+ ", r("addChecklist")]
273
- })
274
- }) : null
275
- ]
276
- });
277
- }
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
- }
282
- export { g as n, m as r, h as t };