@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +123 -19
  3. package/SECURITY.md +2 -2
  4. package/dist/node/cli/api.js +61 -15
  5. package/dist/node/cli/credentials.js +8 -0
  6. package/dist/node/cli/doctor.js +152 -25
  7. package/dist/node/cli/init.js +349 -35
  8. package/dist/node/cli/main.js +310 -69
  9. package/dist/node/cli/mcp.js +187 -6
  10. package/dist/node/cli/website.js +140 -0
  11. package/dist/node/shared/dashboard-places.js +33 -0
  12. package/dist/node/types/next.d.ts +4 -4
  13. package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
  14. package/dist/npm/chunks/{AgentSend-DxRJIYiz.js → AgentSend-pA7Ufvye.js} +16 -16
  15. package/dist/npm/chunks/Checklist-Cn9skOYK.js +269 -0
  16. package/dist/npm/chunks/Composer-D7H-pzGa.js +734 -0
  17. package/dist/npm/chunks/DatePicker-Nta5a1xD.js +161 -0
  18. package/dist/npm/chunks/{Guest-vvNPz8h-.js → Guest-Bi7hlzhs.js} +63 -59
  19. package/dist/npm/chunks/{MarkupEditor-VCOXh9d2.js → MarkupEditor-WU3USeTk.js} +46 -39
  20. package/dist/npm/chunks/Panel-DhAzbUbC.js +1210 -0
  21. package/dist/npm/chunks/{Settings-BGoZS2iV.js → Settings-BmKqPX40.js} +91 -90
  22. package/dist/npm/chunks/{Shortcuts-B2OMvczr.js → Shortcuts-Bl-c0Sez.js} +25 -23
  23. package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +35 -0
  24. package/dist/npm/chunks/{StyleEditor-CJ_d8Huf.js → StyleEditor-D6fUnlwq.js} +10 -10
  25. package/dist/npm/chunks/{StylePanel-yQzHHlY7.js → StylePanel-C-Gikxt1.js} +61 -61
  26. package/dist/npm/chunks/TaskFields-CaKi523b.js +617 -0
  27. package/dist/npm/chunks/ThreadCard-d_3pUB5V.js +1142 -0
  28. package/dist/npm/chunks/Viewer-BULQsi9-.js +115 -0
  29. package/dist/npm/chunks/{agent-C1OQzBAm.js → agent-DHdhIJ3s.js} +1 -1
  30. package/dist/npm/chunks/{ar-CAJ3XT8e.js → ar-B5UszrQp.js} +53 -12
  31. package/dist/npm/chunks/card-bits-cV8GdFWX.js +55 -0
  32. package/dist/npm/chunks/{client-kNAo2TTG.js → client-Cv8ddtuM.js} +13 -11
  33. package/dist/npm/chunks/{confetti-CkBdSu19.js → confetti-B9zlyILU.js} +1 -1
  34. package/dist/npm/chunks/{context-B8UAzve0.js → context-CsHnabaA.js} +1 -1
  35. package/dist/npm/chunks/{de-Dl18G48t.js → de-BE0Aaq8u.js} +53 -12
  36. package/dist/npm/chunks/{dialog-GO04oC3D.js → dialog-DvdIkCW0.js} +1 -1
  37. package/dist/npm/chunks/{dpop-U48QIQd7.js → dpop-CwW9ifkq.js} +1 -1
  38. package/dist/npm/chunks/entrance-Bn_5M9uO.js +90 -0
  39. package/dist/npm/chunks/{es-Dxk79lS9.js → es-BQviao4d.js} +53 -12
  40. package/dist/npm/chunks/{extension-E81hWyiT.js → extension-CnQTDC1j.js} +2 -2
  41. package/dist/npm/chunks/{extension-CKFpPWmi.js → extension-DXhz81XD.js} +1 -1
  42. package/dist/npm/chunks/{files-DyD5BZgp.js → files-DLEr_wmh.js} +2 -2
  43. package/dist/npm/chunks/{fr-8BebGKYD.js → fr-C5gu6A06.js} +53 -12
  44. package/dist/npm/chunks/{hi-BIN6Yy_p.js → hi-DXfQ5EvY.js} +53 -12
  45. package/dist/npm/chunks/{i18n-DOBt8e9U.js → i18n-Mgs9VOuk.js} +63 -58
  46. package/dist/npm/chunks/icons-_C6ZWmBY.js +141 -0
  47. package/dist/npm/chunks/{identify-CN-3xzqL.js → identify-BnQGJOa0.js} +4 -4
  48. package/dist/npm/chunks/{it-Cr6EwpPQ.js → it-BPHt13FV.js} +53 -12
  49. package/dist/npm/chunks/{ja-Iy3s5aur.js → ja-BkCqyKR0.js} +52 -11
  50. package/dist/npm/chunks/late-words-D4Oo_yhJ.js +57 -0
  51. package/dist/npm/chunks/{live-CelVeZfP.js → live-DXcxj_Af.js} +28 -22
  52. package/dist/npm/chunks/{nl-B84WHqqe.js → nl-DZxdLLMU.js} +53 -12
  53. package/dist/npm/chunks/{page-key-DepmJzC1.js → page-key-UqAozdZi.js} +1 -1
  54. package/dist/npm/chunks/{pick-yTyqtxN0.js → pick-C20RVUas.js} +1 -1
  55. package/dist/npm/chunks/{pkce-ChKGSW_4.js → pkce-BPvWoBrr.js} +1 -1
  56. package/dist/npm/chunks/{pt-BR-DOkdlfoe.js → pt-BR-lA9mJ05F.js} +53 -12
  57. package/dist/npm/chunks/{report-CrIqQZDI.js → report-BjUgUNnT.js} +1 -1
  58. package/dist/npm/chunks/show-BinoJyED.js +97 -0
  59. package/dist/npm/chunks/signin-C2jjsxz9.js +101 -0
  60. package/dist/npm/chunks/{source-pXVve2Cx.js → source-NuflODx3.js} +1 -1
  61. package/dist/npm/chunks/src-9o2Ocq8d.js +221 -0
  62. package/dist/npm/chunks/start-Cbx6rMrr.js +1904 -0
  63. package/dist/npm/chunks/states-DLMCvwes.js +3 -0
  64. package/dist/npm/chunks/{upload-MgPYqPyE.js → upload-C4NpM-jE.js} +1 -1
  65. package/dist/npm/chunks/uploads-CY4bDbaI.js +1236 -0
  66. package/dist/npm/chunks/{wrap-Bl0gbnFa.js → wrap-D-xTKIzj.js} +20 -20
  67. package/dist/npm/chunks/{zh-CN-Z5fQCb7G.js → zh-CN-yqaDHwBx.js} +53 -12
  68. package/dist/npm/element.js +7 -1
  69. package/dist/npm/headless.js +2 -2
  70. package/dist/npm/index.js +2 -2
  71. package/dist/npm/react.js +1 -1
  72. package/dist/npm/svelte.js +1 -1
  73. package/dist/npm/types/adapters/vue.d.ts +12 -0
  74. package/dist/npm/types/core/auth.d.ts +1 -0
  75. package/dist/npm/types/core/client.d.ts +5 -1
  76. package/dist/npm/types/core/types.d.ts +19 -4
  77. package/dist/npm/vue.js +5 -1
  78. package/package.json +4 -1
  79. package/dist/npm/chunks/Checklist-CnlfeSbc.js +0 -282
  80. package/dist/npm/chunks/Composer-B1bBVszY.js +0 -725
  81. package/dist/npm/chunks/Panel-F37vIL1K.js +0 -1206
  82. package/dist/npm/chunks/TaskFields-fmy6_HtK.js +0 -289
  83. package/dist/npm/chunks/ThreadCard-D51slKST.js +0 -1113
  84. package/dist/npm/chunks/Viewer-BOBadqmC.js +0 -111
  85. package/dist/npm/chunks/card-bits-CAnzrqx3.js +0 -53
  86. package/dist/npm/chunks/late-words-B2bmZceJ.js +0 -12
  87. package/dist/npm/chunks/show-BgVC8gWY.js +0 -97
  88. package/dist/npm/chunks/signin-Dd1rb2BP.js +0 -75
  89. package/dist/npm/chunks/src-BTMy4Gyc.js +0 -208
  90. package/dist/npm/chunks/start-DtVlpt7p.js +0 -1878
  91. package/dist/npm/chunks/states-sfTbjZz8.js +0 -3
  92. package/dist/npm/chunks/uploads-D49mywwz.js +0 -1146
@@ -1,61 +1,61 @@
1
- import { c as e, d as t, g as n, u as r, y as i } from "./i18n-DOBt8e9U.js";
2
- import { r as a, s as o } from "./uploads-D49mywwz.js";
3
- import { s } from "./start-DtVlpt7p.js";
1
+ import { _ as e, b as t, c as n, d as r, u as i } from "./i18n-Mgs9VOuk.js";
2
+ import { r as a, s as o } from "./uploads-CY4bDbaI.js";
3
+ import { c as s } from "./start-Cbx6rMrr.js";
4
4
  // src/ui/StylePanel.tsx
5
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 12px 12px}.ck-style-head{min-height:28px;font-size:var(--ck-fs-md);justify-content:space-between;align-items:center;gap:8px;display:flex}.ck-style-done{height:28px;font-size:var(--ck-fs-sm);padding:0 12px}.ck-style-actions{align-items:center;gap:4px;display:flex}.ck-style-actions .ck-ghost-sm{height:28px;padding:0 8px}.ck-style-hint{font-size:var(--ck-fs-sm);text-wrap:pretty;margin:4px 0 8px;line-height:1.4}.ck-style-rows{overscroll-behavior:contain;gap:4px;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);min-height:32px;transition:background-color var(--ck-fast);grid-template-columns:minmax(96px,40%) 1fr;align-items:center;column-gap:8px;padding:0 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;padding-block-start:4px;padding-block-end:4px}.ck-style-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);overflow:hidden}.ck-style-name code{font-family:var(--ck-mono);font-size:var(--ck-fs-xs)}.ck-style-row[data-changed] .ck-style-name{color:var(--ck-text)}.ck-style-control{align-items:center;gap:4px;min-width:0;display:flex}.ck-style-control .ck-style-input{width:auto;min-width:0;height:28px;font-size:var(--ck-fs-sm);font-family:var(--ck-mono);flex:1;padding:0 7px}.ck-style-control .ck-style-input[aria-invalid=true]{border-color:var(--ck-danger)}.ck-style-control .ck-style-input[aria-invalid=true]:focus{box-shadow:0 0 0 3px color-mix(in srgb, var(--ck-danger) 18%, transparent)}.ck-style-control .ck-ghost{width:24px;min-width:0;height:24px;min-height:0;font-size:var(--ck-fs);flex:none;place-items:center;padding:0;line-height:1;display:grid}.ck-style-control .ck-ghost:active{scale:.96}.ck-style-steps{flex:none;display:flex}.ck-style-swatch{width:16px;height:16px;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}.ck-style-undo:-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)){scale:-1 1}.ck-style-undo: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)){scale:-1 1}@media (pointer:coarse){.ck-style-row{grid-template-columns:1fr;row-gap:4px;padding-block-start:8px;padding-block-end:8px}.ck-style-row .ck-error{grid-column:1}.ck-style-control .ck-style-input{font-size:var(--ck-fs-lg);height:44px}.ck-style-control .ck-ghost{width:44px;height:44px}.ck-style-rows{max-height:320px}}");
6
- function c({ base: t, changes: n, onChange: i, onClose: o, actions: s }) {
7
- let c = (e, r) => {
8
- let a = n.filter((t) => t.property !== e);
9
- if (r !== null && r === t[e]) return i(a);
6
+ function c({ base: e, changes: t, onChange: r, onClose: o, actions: s }) {
7
+ let c = (n, i) => {
8
+ let a = t.filter((e) => e.property !== n);
9
+ if (i !== null && i === e[n]) return r(a);
10
10
  let o = {
11
- property: e,
12
- from: t[e] || null,
13
- to: r
14
- }, s = n.findIndex((t) => t.property === e);
15
- i(s === -1 ? [...n, o] : n.map((e, t) => t === s ? o : e));
11
+ property: n,
12
+ from: e[n] || null,
13
+ to: i
14
+ }, s = t.findIndex((e) => e.property === n);
15
+ r(s === -1 ? [...t, o] : t.map((e, t) => t === s ? o : e));
16
16
  };
17
- return /* @__PURE__ */ r("div", {
17
+ return /* @__PURE__ */ i("div", {
18
18
  class: "ck-style-panel",
19
19
  role: "group",
20
- "aria-label": e("adjustStyle"),
20
+ "aria-label": n("adjustStyle"),
21
21
  onKeyDown: (e) => {
22
22
  e.stopPropagation(), e.key === "Escape" && o();
23
23
  },
24
24
  children: [
25
- /* @__PURE__ */ r("div", {
25
+ /* @__PURE__ */ i("div", {
26
26
  class: "ck-style-head",
27
- children: [/* @__PURE__ */ r("strong", { children: e("adjustStyle") }), s ?? /* @__PURE__ */ r("button", {
27
+ children: [/* @__PURE__ */ i("strong", { children: n("adjustStyle") }), s ?? /* @__PURE__ */ i("button", {
28
28
  class: "ck-btn ck-style-done",
29
29
  onClick: o,
30
- children: e("styleDone")
30
+ children: n("styleDone")
31
31
  })]
32
32
  }),
33
- /* @__PURE__ */ r("p", {
33
+ /* @__PURE__ */ i("p", {
34
34
  class: "ck-muted ck-style-hint",
35
- children: e("adjustStyleHint")
35
+ children: n("adjustStyleHint")
36
36
  }),
37
- /* @__PURE__ */ r("div", {
37
+ /* @__PURE__ */ i("div", {
38
38
  class: "ck-style-rows",
39
- children: a.map(({ property: e, kind: a, options: o }) => {
40
- let s = n.find((t) => t.property === e);
41
- return /* @__PURE__ */ r(l, {
42
- property: e,
39
+ children: a.map(({ property: n, kind: a, options: o }) => {
40
+ let s = t.find((e) => e.property === n);
41
+ return /* @__PURE__ */ i(l, {
42
+ property: n,
43
43
  kind: a,
44
44
  options: o,
45
- base: t[e] ?? "",
46
- value: s ? s.to : t[e] ?? "",
45
+ base: e[n] ?? "",
46
+ value: s ? s.to : e[n] ?? "",
47
47
  changed: !!s,
48
- onSet: (t) => c(e, t),
49
- onReset: () => i(n.filter((t) => t.property !== e))
50
- }, e);
48
+ onSet: (e) => c(n, e),
49
+ onReset: () => r(t.filter((e) => e.property !== n))
50
+ }, n);
51
51
  })
52
52
  })
53
53
  ]
54
54
  });
55
55
  }
56
56
  function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, onSet: m, onReset: h }) {
57
- let [g, _] = n(f ?? ""), [v, y] = n(!1);
58
- t(() => {
57
+ let [g, _] = e(f ?? ""), [v, y] = e(!1);
58
+ r(() => {
59
59
  _(f ?? ""), y(!1);
60
60
  }, [f]);
61
61
  let b = `ck-style-${a}`, x = (e) => {
@@ -67,26 +67,26 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
67
67
  let n = s === "choice" ? d(c ?? [], f ?? l, e) : u(a, f ?? l, e * (t ? 10 : 1));
68
68
  n !== null && m(n);
69
69
  };
70
- return /* @__PURE__ */ r("div", {
70
+ return /* @__PURE__ */ i("div", {
71
71
  class: "ck-style-row",
72
72
  "data-changed": p || void 0,
73
73
  children: [
74
- /* @__PURE__ */ r("label", {
74
+ /* @__PURE__ */ i("label", {
75
75
  for: b,
76
76
  class: "ck-style-name",
77
77
  title: a,
78
- children: /* @__PURE__ */ r("code", { children: a })
78
+ children: /* @__PURE__ */ i("code", { children: a })
79
79
  }),
80
- /* @__PURE__ */ r("div", {
80
+ /* @__PURE__ */ i("div", {
81
81
  class: "ck-style-control",
82
82
  children: [
83
- /* @__PURE__ */ r(i, { children: [
84
- s === "color" ? /* @__PURE__ */ r("span", {
83
+ /* @__PURE__ */ i(t, { children: [
84
+ s === "color" ? /* @__PURE__ */ i("span", {
85
85
  class: "ck-style-swatch",
86
86
  "aria-hidden": "true",
87
87
  style: { backgroundColor: f ?? l ?? "transparent" }
88
88
  }) : null,
89
- /* @__PURE__ */ r("input", {
89
+ /* @__PURE__ */ i("input", {
90
90
  id: b,
91
91
  class: "ck-input ck-style-input",
92
92
  type: "text",
@@ -94,7 +94,7 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
94
94
  autoComplete: "off",
95
95
  maxLength: 120,
96
96
  value: g,
97
- placeholder: f === null ? e("styleRemoved") : "",
97
+ placeholder: f === null ? n("styleRemoved") : "",
98
98
  "aria-invalid": v,
99
99
  "aria-describedby": v ? `${b}-error` : void 0,
100
100
  onInput: (e) => x(e.target.value),
@@ -102,40 +102,40 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
102
102
  s !== "color" && s !== "box" && (e.key === "ArrowUp" || e.key === "ArrowDown") && (e.preventDefault(), S(e.key === "ArrowUp" ? 1 : -1, e.shiftKey));
103
103
  }
104
104
  }),
105
- s === "length" || s === "number" ? /* @__PURE__ */ r("span", {
105
+ s === "length" || s === "number" ? /* @__PURE__ */ i("span", {
106
106
  class: "ck-style-steps",
107
- children: [/* @__PURE__ */ r("button", {
107
+ children: [/* @__PURE__ */ i("button", {
108
108
  class: "ck-ghost ck-ghost-sm",
109
- "aria-label": e("styleDecrease", { property: a }),
109
+ "aria-label": n("styleDecrease", { property: a }),
110
110
  onClick: () => S(-1),
111
111
  children: "−"
112
- }), /* @__PURE__ */ r("button", {
112
+ }), /* @__PURE__ */ i("button", {
113
113
  class: "ck-ghost ck-ghost-sm",
114
- "aria-label": e("styleIncrease", { property: a }),
114
+ "aria-label": n("styleIncrease", { property: a }),
115
115
  onClick: () => S(1),
116
116
  children: "+"
117
117
  })]
118
- }) : s === "choice" ? /* @__PURE__ */ r("span", {
118
+ }) : s === "choice" ? /* @__PURE__ */ i("span", {
119
119
  class: "ck-style-steps",
120
- children: [/* @__PURE__ */ r("button", {
120
+ children: [/* @__PURE__ */ i("button", {
121
121
  class: "ck-ghost ck-ghost-sm",
122
- "aria-label": e("stylePrevious", { property: a }),
122
+ "aria-label": n("stylePrevious", { property: a }),
123
123
  onClick: () => S(-1),
124
124
  children: "‹"
125
- }), /* @__PURE__ */ r("button", {
125
+ }), /* @__PURE__ */ i("button", {
126
126
  class: "ck-ghost ck-ghost-sm",
127
- "aria-label": e("styleNext", { property: a }),
127
+ "aria-label": n("styleNext", { property: a }),
128
128
  onClick: () => S(1),
129
129
  children: "›"
130
130
  })]
131
131
  }) : null
132
132
  ] }),
133
- p ? /* @__PURE__ */ r("button", {
133
+ p ? /* @__PURE__ */ i("button", {
134
134
  class: "ck-ghost ck-ghost-sm",
135
- "aria-label": e("styleReset", { property: a }),
136
- title: e("styleReset", { property: a }),
135
+ "aria-label": n("styleReset", { property: a }),
136
+ title: n("styleReset", { property: a }),
137
137
  onClick: h,
138
- children: /* @__PURE__ */ r("svg", {
138
+ children: /* @__PURE__ */ i("svg", {
139
139
  class: "ck-style-undo",
140
140
  width: "12",
141
141
  height: "12",
@@ -146,15 +146,15 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
146
146
  "stroke-linecap": "round",
147
147
  "stroke-linejoin": "round",
148
148
  "aria-hidden": "true",
149
- children: /* @__PURE__ */ r("path", { d: "M4 9h11a5 5 0 0 1 0 10H9M8 5L4 9l4 4" })
149
+ children: /* @__PURE__ */ i("path", { d: "M4 9h11a5 5 0 0 1 0 10H9M8 5L4 9l4 4" })
150
150
  })
151
151
  }) : null,
152
- f === null ? null : /* @__PURE__ */ r("button", {
152
+ f === null ? null : /* @__PURE__ */ i("button", {
153
153
  class: "ck-ghost ck-ghost-sm",
154
- "aria-label": e("styleRemoveValue", { property: a }),
155
- title: e("styleRemoveValue", { property: a }),
154
+ "aria-label": n("styleRemoveValue", { property: a }),
155
+ title: n("styleRemoveValue", { property: a }),
156
156
  onClick: () => m(null),
157
- children: /* @__PURE__ */ r("svg", {
157
+ children: /* @__PURE__ */ i("svg", {
158
158
  width: "12",
159
159
  height: "12",
160
160
  viewBox: "0 0 24 24",
@@ -163,16 +163,16 @@ function l({ property: a, kind: s, options: c, base: l, value: f, changed: p, on
163
163
  "stroke-width": "2.2",
164
164
  "stroke-linecap": "round",
165
165
  "aria-hidden": "true",
166
- children: /* @__PURE__ */ r("path", { d: "M6 6l12 12M18 6L6 18" })
166
+ children: /* @__PURE__ */ i("path", { d: "M6 6l12 12M18 6L6 18" })
167
167
  })
168
168
  })
169
169
  ]
170
170
  }),
171
- v ? /* @__PURE__ */ r("span", {
171
+ v ? /* @__PURE__ */ i("span", {
172
172
  class: "ck-error",
173
173
  id: `${b}-error`,
174
174
  role: "alert",
175
- children: e("styleInvalid")
175
+ children: n("styleInvalid")
176
176
  }) : null
177
177
  ]
178
178
  });