@commentkit/comment-kit 2.0.0 → 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.
- package/CHANGELOG.md +57 -0
- package/README.md +123 -19
- package/SECURITY.md +2 -2
- package/dist/node/cli/api.js +61 -15
- package/dist/node/cli/credentials.js +8 -0
- package/dist/node/cli/doctor.js +152 -25
- package/dist/node/cli/init.js +349 -35
- package/dist/node/cli/main.js +310 -69
- package/dist/node/cli/mcp.js +187 -6
- package/dist/node/cli/website.js +140 -0
- package/dist/node/shared/dashboard-places.js +33 -0
- package/dist/node/types/next.d.ts +4 -4
- package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
- package/dist/npm/chunks/{AgentSend-DxRJIYiz.js → AgentSend-pA7Ufvye.js} +16 -16
- package/dist/npm/chunks/Checklist-Cn9skOYK.js +269 -0
- package/dist/npm/chunks/Composer-D7H-pzGa.js +734 -0
- package/dist/npm/chunks/DatePicker-Nta5a1xD.js +161 -0
- package/dist/npm/chunks/{Guest-vvNPz8h-.js → Guest-Bi7hlzhs.js} +63 -59
- package/dist/npm/chunks/{MarkupEditor-VCOXh9d2.js → MarkupEditor-WU3USeTk.js} +46 -39
- package/dist/npm/chunks/Panel-DhAzbUbC.js +1210 -0
- package/dist/npm/chunks/{Settings-BGoZS2iV.js → Settings-BmKqPX40.js} +91 -90
- package/dist/npm/chunks/{Shortcuts-B2OMvczr.js → Shortcuts-Bl-c0Sez.js} +25 -23
- package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +35 -0
- package/dist/npm/chunks/{StyleEditor-CJ_d8Huf.js → StyleEditor-D6fUnlwq.js} +10 -10
- package/dist/npm/chunks/{StylePanel-yQzHHlY7.js → StylePanel-C-Gikxt1.js} +61 -61
- package/dist/npm/chunks/TaskFields-CaKi523b.js +617 -0
- package/dist/npm/chunks/ThreadCard-d_3pUB5V.js +1142 -0
- package/dist/npm/chunks/Viewer-BULQsi9-.js +115 -0
- package/dist/npm/chunks/{agent-C1OQzBAm.js → agent-DHdhIJ3s.js} +1 -1
- package/dist/npm/chunks/{ar-CAJ3XT8e.js → ar-B5UszrQp.js} +53 -12
- package/dist/npm/chunks/card-bits-cV8GdFWX.js +55 -0
- package/dist/npm/chunks/{client-kNAo2TTG.js → client-Cv8ddtuM.js} +13 -11
- package/dist/npm/chunks/{confetti-CkBdSu19.js → confetti-B9zlyILU.js} +1 -1
- package/dist/npm/chunks/{context-B8UAzve0.js → context-CsHnabaA.js} +1 -1
- package/dist/npm/chunks/{de-Dl18G48t.js → de-BE0Aaq8u.js} +53 -12
- package/dist/npm/chunks/{dialog-GO04oC3D.js → dialog-DvdIkCW0.js} +1 -1
- package/dist/npm/chunks/{dpop-U48QIQd7.js → dpop-CwW9ifkq.js} +1 -1
- package/dist/npm/chunks/entrance-Bn_5M9uO.js +90 -0
- package/dist/npm/chunks/{es-Dxk79lS9.js → es-BQviao4d.js} +53 -12
- package/dist/npm/chunks/{extension-E81hWyiT.js → extension-CnQTDC1j.js} +2 -2
- package/dist/npm/chunks/{extension-CKFpPWmi.js → extension-DXhz81XD.js} +1 -1
- package/dist/npm/chunks/{files-DyD5BZgp.js → files-DLEr_wmh.js} +2 -2
- package/dist/npm/chunks/{fr-8BebGKYD.js → fr-C5gu6A06.js} +53 -12
- package/dist/npm/chunks/{hi-BIN6Yy_p.js → hi-DXfQ5EvY.js} +53 -12
- package/dist/npm/chunks/{i18n-DOBt8e9U.js → i18n-Mgs9VOuk.js} +63 -58
- package/dist/npm/chunks/icons-_C6ZWmBY.js +141 -0
- package/dist/npm/chunks/{identify-CN-3xzqL.js → identify-BnQGJOa0.js} +4 -4
- package/dist/npm/chunks/{it-Cr6EwpPQ.js → it-BPHt13FV.js} +53 -12
- package/dist/npm/chunks/{ja-Iy3s5aur.js → ja-BkCqyKR0.js} +52 -11
- package/dist/npm/chunks/late-words-D4Oo_yhJ.js +57 -0
- package/dist/npm/chunks/{live-CelVeZfP.js → live-DXcxj_Af.js} +28 -22
- package/dist/npm/chunks/{nl-B84WHqqe.js → nl-DZxdLLMU.js} +53 -12
- package/dist/npm/chunks/{page-key-DepmJzC1.js → page-key-UqAozdZi.js} +1 -1
- package/dist/npm/chunks/{pick-yTyqtxN0.js → pick-C20RVUas.js} +1 -1
- package/dist/npm/chunks/{pkce-ChKGSW_4.js → pkce-BPvWoBrr.js} +1 -1
- package/dist/npm/chunks/{pt-BR-DOkdlfoe.js → pt-BR-lA9mJ05F.js} +53 -12
- package/dist/npm/chunks/{report-CrIqQZDI.js → report-BjUgUNnT.js} +1 -1
- package/dist/npm/chunks/show-BinoJyED.js +97 -0
- package/dist/npm/chunks/signin-C2jjsxz9.js +101 -0
- package/dist/npm/chunks/{source-pXVve2Cx.js → source-NuflODx3.js} +1 -1
- package/dist/npm/chunks/src-9o2Ocq8d.js +221 -0
- package/dist/npm/chunks/start-Cbx6rMrr.js +1904 -0
- package/dist/npm/chunks/states-DLMCvwes.js +3 -0
- package/dist/npm/chunks/{upload-MgPYqPyE.js → upload-C4NpM-jE.js} +1 -1
- package/dist/npm/chunks/uploads-CY4bDbaI.js +1236 -0
- package/dist/npm/chunks/{wrap-Bl0gbnFa.js → wrap-D-xTKIzj.js} +20 -20
- package/dist/npm/chunks/{zh-CN-Z5fQCb7G.js → zh-CN-yqaDHwBx.js} +53 -12
- package/dist/npm/element.js +7 -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/adapters/vue.d.ts +12 -0
- package/dist/npm/types/core/auth.d.ts +1 -0
- package/dist/npm/types/core/client.d.ts +5 -1
- package/dist/npm/types/core/types.d.ts +19 -4
- package/dist/npm/vue.js +5 -1
- package/package.json +4 -1
- package/dist/npm/chunks/Checklist-CnlfeSbc.js +0 -282
- package/dist/npm/chunks/Composer-B1bBVszY.js +0 -725
- package/dist/npm/chunks/Panel-F37vIL1K.js +0 -1206
- package/dist/npm/chunks/TaskFields-fmy6_HtK.js +0 -289
- package/dist/npm/chunks/ThreadCard-D51slKST.js +0 -1113
- package/dist/npm/chunks/Viewer-BOBadqmC.js +0 -111
- package/dist/npm/chunks/card-bits-CAnzrqx3.js +0 -53
- package/dist/npm/chunks/late-words-B2bmZceJ.js +0 -12
- package/dist/npm/chunks/show-BgVC8gWY.js +0 -97
- package/dist/npm/chunks/signin-Dd1rb2BP.js +0 -75
- package/dist/npm/chunks/src-BTMy4Gyc.js +0 -208
- package/dist/npm/chunks/start-DtVlpt7p.js +0 -1878
- package/dist/npm/chunks/states-sfTbjZz8.js +0 -3
- package/dist/npm/chunks/uploads-D49mywwz.js +0 -1146
|
@@ -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-Mgs9VOuk.js";
|
|
2
|
+
import { n as c, t as l } from "./icons-_C6ZWmBY.js";
|
|
3
|
+
import { r as u } from "./context-CsHnabaA.js";
|
|
4
|
+
import { c as d, j as f } from "./start-Cbx6rMrr.js";
|
|
5
|
+
// src/ui/art.tsx
|
|
6
|
+
d(".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: d = !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 && d && 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 ? f : 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 };
|