@commentkit/comment-kit 1.6.0 → 2.0.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 (136) hide show
  1. package/CHANGELOG.md +281 -597
  2. package/README.md +334 -154
  3. package/SECURITY.md +47 -46
  4. package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
  5. package/dist/node/browser.js +17 -0
  6. package/dist/node/cli/api.js +226 -0
  7. package/dist/node/cli/bin.js +18 -0
  8. package/dist/node/cli/credentials.js +268 -0
  9. package/dist/node/cli/doctor.js +725 -0
  10. package/dist/node/cli/format.js +54 -0
  11. package/dist/node/cli/init.js +372 -0
  12. package/dist/node/cli/main.js +519 -0
  13. package/dist/node/cli/mcp.js +114 -0
  14. package/dist/node/cli/open.js +20 -0
  15. package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
  16. package/dist/node/plugins/astro.js +26 -0
  17. package/dist/node/plugins/git-BIXLbL3f.js +92 -0
  18. package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
  19. package/dist/node/plugins/next.js +48 -0
  20. package/dist/node/plugins/options-THop1K92.js +71 -0
  21. package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
  22. package/dist/node/plugins/vite-BdAYUW10.js +74 -0
  23. package/dist/node/plugins/vite.js +1 -0
  24. package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
  25. package/dist/node/plugins/webpack-loader.cjs +21 -0
  26. package/dist/node/plugins/webpack-loader.js +18 -0
  27. package/dist/node/plugins/webpack.js +1 -0
  28. package/dist/node/shared/endpoint.js +26 -0
  29. package/dist/node/shared/format.js +63 -0
  30. package/dist/node/types/astro.d.ts +11 -0
  31. package/dist/node/types/next.d.ts +34 -0
  32. package/dist/node/types/options.d.ts +59 -0
  33. package/dist/node/types/vite.d.ts +11 -0
  34. package/dist/node/types/webpack-loader.d.ts +22 -0
  35. package/dist/node/types/webpack.d.ts +27 -0
  36. package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
  37. package/dist/npm/chunks/AgentSend-DxRJIYiz.js +68 -0
  38. package/dist/npm/chunks/Checklist-CnlfeSbc.js +282 -0
  39. package/dist/npm/chunks/Composer-B1bBVszY.js +725 -0
  40. package/dist/npm/chunks/Guest-vvNPz8h-.js +267 -0
  41. package/dist/npm/chunks/MarkupEditor-VCOXh9d2.js +338 -0
  42. package/dist/npm/chunks/Panel-F37vIL1K.js +1206 -0
  43. package/dist/npm/chunks/Settings-BGoZS2iV.js +231 -0
  44. package/dist/npm/chunks/Shortcuts-B2OMvczr.js +62 -0
  45. package/dist/npm/chunks/StyleEditor-CJ_d8Huf.js +46 -0
  46. package/dist/npm/chunks/StylePanel-yQzHHlY7.js +199 -0
  47. package/dist/npm/chunks/TaskFields-fmy6_HtK.js +289 -0
  48. package/dist/npm/chunks/ThreadCard-D51slKST.js +1113 -0
  49. package/dist/npm/chunks/Viewer-BOBadqmC.js +111 -0
  50. package/dist/npm/chunks/{agent-BDMQtOzH.js → agent-C1OQzBAm.js} +9 -9
  51. package/dist/npm/chunks/{anchor-BsradQhn.js → anchor-BsQNVkHj.js} +108 -85
  52. package/dist/npm/chunks/{ar-8tPch6W4.js → ar-CAJ3XT8e.js} +69 -19
  53. package/dist/npm/chunks/card-bits-CAnzrqx3.js +53 -0
  54. package/dist/npm/chunks/{client-EFTWxHbJ.js → client-kNAo2TTG.js} +282 -290
  55. package/dist/npm/chunks/confetti-CkBdSu19.js +49 -0
  56. package/dist/npm/chunks/context-B8UAzve0.js +20 -0
  57. package/dist/npm/chunks/context-BuMl7A07.js +48 -0
  58. package/dist/npm/chunks/{de-C63897uD.js → de-Dl18G48t.js} +60 -18
  59. package/dist/npm/chunks/dialog-GO04oC3D.js +3 -0
  60. package/dist/npm/chunks/dpop-U48QIQd7.js +96 -0
  61. package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
  62. package/dist/npm/chunks/{es-CI2bSpvB.js → es-Dxk79lS9.js} +60 -18
  63. package/dist/npm/chunks/extension-CKFpPWmi.js +62 -0
  64. package/dist/npm/chunks/{extension-BST6LH1q.js → extension-E81hWyiT.js} +20 -12
  65. package/dist/npm/chunks/files-DyD5BZgp.js +114 -0
  66. package/dist/npm/chunks/{fr-rsVe-Lqk.js → fr-8BebGKYD.js} +118 -76
  67. package/dist/npm/chunks/{hi-cvwbSaWP.js → hi-BIN6Yy_p.js} +61 -19
  68. package/dist/npm/chunks/{i18n-C4v0M-6z.js → i18n-DOBt8e9U.js} +91 -56
  69. package/dist/npm/chunks/identify-CN-3xzqL.js +106 -0
  70. package/dist/npm/chunks/{it-C8tnV0BF.js → it-Cr6EwpPQ.js} +79 -37
  71. package/dist/npm/chunks/{ja-BWxDfC2f.js → ja-Iy3s5aur.js} +58 -16
  72. package/dist/npm/chunks/late-words-B2bmZceJ.js +12 -0
  73. package/dist/npm/chunks/live-CelVeZfP.js +85 -0
  74. package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
  75. package/dist/npm/chunks/{nl-DNQ6eCht.js → nl-B84WHqqe.js} +61 -19
  76. package/dist/npm/chunks/page-key-DepmJzC1.js +62 -0
  77. package/dist/npm/chunks/{pick-CLyOdjnD.js → pick-yTyqtxN0.js} +45 -44
  78. package/dist/npm/chunks/pkce-ChKGSW_4.js +8 -0
  79. package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
  80. package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
  81. package/dist/npm/chunks/{pt-BR-CkG7vpU2.js → pt-BR-DOkdlfoe.js} +60 -18
  82. package/dist/npm/chunks/{realtime-DIo-Wth4.js → realtime-C79zF50C.js} +14 -12
  83. package/dist/npm/chunks/report-CrIqQZDI.js +44 -0
  84. package/dist/npm/chunks/show-BgVC8gWY.js +97 -0
  85. package/dist/npm/chunks/signin-Dd1rb2BP.js +75 -0
  86. package/dist/npm/chunks/{source-CS7C6wJA.js → source-pXVve2Cx.js} +1 -1
  87. package/dist/npm/chunks/src-BTMy4Gyc.js +208 -0
  88. package/dist/npm/chunks/start-DtVlpt7p.js +1878 -0
  89. package/dist/npm/chunks/states-sfTbjZz8.js +3 -0
  90. package/dist/npm/chunks/upload-MgPYqPyE.js +42 -0
  91. package/dist/npm/chunks/uploads-D49mywwz.js +1146 -0
  92. package/dist/npm/chunks/wrap-Bl0gbnFa.js +69 -0
  93. package/dist/npm/chunks/{zh-CN-BKuZOLBE.js → zh-CN-Z5fQCb7G.js} +59 -17
  94. package/dist/npm/element.js +58 -21
  95. package/dist/npm/headless.js +7 -3
  96. package/dist/npm/index.js +3 -3
  97. package/dist/npm/react.js +18 -11
  98. package/dist/npm/svelte.js +28 -12
  99. package/dist/npm/types/adapters/react.d.ts +4 -1
  100. package/dist/npm/types/adapters/svelte.d.ts +4 -1
  101. package/dist/npm/types/adapters/vue.d.ts +35 -2
  102. package/dist/npm/types/anchor/index.d.ts +19 -0
  103. package/dist/npm/types/capture/privacy.d.ts +14 -0
  104. package/dist/npm/types/core/api.d.ts +20 -1
  105. package/dist/npm/types/core/auth.d.ts +40 -21
  106. package/dist/npm/types/core/client.d.ts +60 -4
  107. package/dist/npm/types/core/page-key.d.ts +42 -0
  108. package/dist/npm/types/core/types.d.ts +87 -4
  109. package/dist/npm/types/element.d.ts +17 -7
  110. package/dist/npm/types/headless.d.ts +2 -1
  111. package/dist/npm/types/index.d.ts +16 -6
  112. package/dist/npm/vue.js +44 -9
  113. package/package.json +88 -14
  114. package/dist/npm/chunks/AgentSend-2JPDseOo.js +0 -63
  115. package/dist/npm/chunks/Checklist-BpDXQebo.js +0 -257
  116. package/dist/npm/chunks/Composer-CAyj-c8e.js +0 -677
  117. package/dist/npm/chunks/Guest-ZdFmTcXI.js +0 -187
  118. package/dist/npm/chunks/MarkupEditor-BFplZwFy.js +0 -332
  119. package/dist/npm/chunks/Panel-BhZ4XRDR.js +0 -861
  120. package/dist/npm/chunks/Settings-SPG9EHUZ.js +0 -204
  121. package/dist/npm/chunks/Shortcuts-C28HVDw6.js +0 -58
  122. package/dist/npm/chunks/StyleEditor-ByZMtq10.js +0 -43
  123. package/dist/npm/chunks/StylePanel-Iwhce2tE.js +0 -197
  124. package/dist/npm/chunks/TaskFields-BsP_fVJg.js +0 -273
  125. package/dist/npm/chunks/ThreadCard-BzVZdDCb.js +0 -1030
  126. package/dist/npm/chunks/Viewer-CqtGrdD8.js +0 -108
  127. package/dist/npm/chunks/card-bits-Bna-g3Py.js +0 -124
  128. package/dist/npm/chunks/confetti-DTKpwF3O.js +0 -40
  129. package/dist/npm/chunks/drafts-akdBsOd0.js +0 -50
  130. package/dist/npm/chunks/extension-D-V3utTm.js +0 -53
  131. package/dist/npm/chunks/live-BCpJVBeN.js +0 -33
  132. package/dist/npm/chunks/report-BBrT3r89.js +0 -27
  133. package/dist/npm/chunks/src-C4FsVoUp.js +0 -148
  134. package/dist/npm/chunks/start-i9M-r3aH.js +0 -1800
  135. package/dist/npm/chunks/upload-DSv7EyBD.js +0 -41
  136. package/dist/npm/chunks/uploads-I01kdqQF.js +0 -1103
@@ -1,273 +0,0 @@
1
- import { f as e, l as t, m as n, n as r, s as i, u as a } from "./i18n-C4v0M-6z.js";
2
- import { n as o } from "./start-i9M-r3aH.js";
3
- // src/ui/TaskFields.tsx
4
- o(".ck-task{flex-wrap:wrap;gap:6px;padding:8px 14px 0;display:flex}.ck-date{position:relative}.ck-date[data-set]{color:var(--ck-text)}.ck-date-input{opacity:0;cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;bottom:0;left:0;right:0}.ck-date:focus-within{outline:2px solid var(--ck-accent);outline-offset:1px}.ck-task-pick{position:relative}.ck-task-menu{z-index:2;top:calc(100% + 4px);border:1px solid var(--ck-border);border-radius:var(--ck-radius-md);background:var(--ck-bg);min-width:180px;max-height:220px;box-shadow:var(--ck-shadow);padding:4px 10px 10px;position:absolute;overflow:auto}.ck-task-menu:not(:-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))){left:0}.ck-task-menu:not(: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))){left:0}.ck-task-menu:-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)){right:0}.ck-task-menu: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)){right:0}.ck-swatch{border-radius:50%;flex:none;width:8px;height:8px}.ck-task-menu{overscroll-behavior:contain}.ck-task-draft{border:0;margin-top:8px;padding:0}");
5
- var s = [
6
- "none",
7
- "low",
8
- "medium",
9
- "high",
10
- "urgent"
11
- ], c = /* @__PURE__ */ new WeakMap();
12
- function l(e) {
13
- let t = c.get(e);
14
- return t || (t = Promise.all([e.people().catch(() => []), e.labels().catch(() => [])]).then(([e, t]) => ({
15
- people: e.filter((e) => e.assignable && e.type === "user" && /^\d+$/.test(e.id ?? "")),
16
- labels: t
17
- })), c.set(e, t)), t;
18
- }
19
- function u(e) {
20
- return /^\d{4}-\d{2}-\d{2}/.exec(e ?? "")?.[0] ?? "";
21
- }
22
- function d(e) {
23
- let [t, n, i] = e.split("-").map(Number);
24
- try {
25
- return new Date(t, n - 1, i).toLocaleDateString(r(), {
26
- day: "numeric",
27
- month: "short",
28
- year: "numeric"
29
- });
30
- } catch {
31
- return e;
32
- }
33
- }
34
- var f = (e) => /^#[0-9a-f]{6}$/i.test(e) ? e : "transparent";
35
- function p({ client: e, thread: r, editable: o, onChange: c, onError: p }) {
36
- let [h, v] = n(null), [y, b] = n(!1);
37
- a(() => {
38
- o && l(e).then(v);
39
- }, [o]);
40
- let x = r.labels ?? [], S = u(r.due_at), C = r.assignees ?? (r.assignee ? [r.assignee] : []);
41
- if (!o) {
42
- let e = [
43
- r.priority === "none" ? null : /* @__PURE__ */ t("span", {
44
- class: "ck-chip",
45
- children: [
46
- i("priority"),
47
- ": ",
48
- i(`priority_${r.priority}`)
49
- ]
50
- }),
51
- C.length ? /* @__PURE__ */ t("span", {
52
- class: "ck-chip",
53
- children: [
54
- i("assigneeFilter"),
55
- ": ",
56
- /* @__PURE__ */ t("bdi", { children: C.map((e) => e.name).join(", ") })
57
- ]
58
- }) : null,
59
- S ? /* @__PURE__ */ t("span", {
60
- class: "ck-chip",
61
- children: i("dueOn", { date: d(S) })
62
- }) : null,
63
- ...x.map((e) => /* @__PURE__ */ t("span", {
64
- class: "ck-chip",
65
- children: [/* @__PURE__ */ t("span", {
66
- class: "ck-swatch",
67
- style: { background: f(e.color) }
68
- }), /* @__PURE__ */ t("bdi", { children: e.name })]
69
- }))
70
- ].filter(Boolean);
71
- return e.length ? /* @__PURE__ */ t("div", {
72
- class: "ck-task",
73
- role: "group",
74
- "aria-label": i("taskDetails"),
75
- children: e
76
- }) : null;
77
- }
78
- let w = (t, n = {}) => {
79
- let i = r;
80
- b(!0), c({
81
- ...r,
82
- ...n
83
- }), e.updateThread(r.id, t).then(c, (e) => {
84
- c(i), p(e);
85
- }).finally(() => b(!1));
86
- }, T = h?.people ?? [], E = [...C.filter((e) => !T.some((t) => t.id === e.id)), ...T], D = C.map((e) => Number(e.id)), O = (e, t) => {
87
- let n = t ? [...D.filter((t) => t !== Number(e.id)), Number(e.id)] : D.filter((t) => t !== Number(e.id)), r = n.map((e) => E.find((t) => Number(t.id) === e)).filter(Boolean);
88
- w({ assignee_ids: n }, {
89
- assignee: r[0] ?? null,
90
- assignees: r
91
- });
92
- }, k = new Set(x.map((e) => e.id)), A = (e, t) => {
93
- let n = [...k].filter((t) => t !== e).concat(t ? [e] : []), r = [...x, ...h?.labels ?? []];
94
- w({ label_ids: n }, { labels: n.map((e) => r.find((t) => t.id === e)).filter(Boolean) });
95
- }, j = i(`priority_${r.priority}`);
96
- return /* @__PURE__ */ t("div", {
97
- class: "ck-task",
98
- role: "group",
99
- "aria-label": i("taskDetails"),
100
- children: [
101
- /* @__PURE__ */ t(g, {
102
- label: i("priority"),
103
- summary: j,
104
- children: s.map((e) => /* @__PURE__ */ t(_, {
105
- type: "radio",
106
- name: `ck-priority-${r.id}`,
107
- checked: r.priority === e,
108
- disabled: y,
109
- onPick: () => w({ priority: e }, { priority: e }),
110
- children: i(`priority_${e}`)
111
- }))
112
- }),
113
- /* @__PURE__ */ t(g, {
114
- label: i("assigneeFilter"),
115
- summary: m(C),
116
- keepOpen: !0,
117
- children: E.map((e) => /* @__PURE__ */ t(_, {
118
- type: "checkbox",
119
- checked: D.includes(Number(e.id)),
120
- disabled: y,
121
- onPick: (t) => O(e, t),
122
- children: /* @__PURE__ */ t("bdi", { children: e.name })
123
- }))
124
- }),
125
- /* @__PURE__ */ t("label", {
126
- class: "ck-chip ck-date",
127
- "data-set": S ? "true" : void 0,
128
- children: [/* @__PURE__ */ t("bdi", { children: S ? i("dueOn", { date: d(S) }) : i("dueDate") }), /* @__PURE__ */ t("input", {
129
- class: "ck-date-input",
130
- type: "date",
131
- "aria-label": i("dueDate"),
132
- disabled: y,
133
- value: S,
134
- onClick: (e) => {
135
- try {
136
- e.currentTarget.showPicker?.();
137
- } catch {}
138
- },
139
- onChange: (e) => {
140
- let t = e.target.value, n = t || null;
141
- t !== S && w({ due_at: n }, { due_at: n });
142
- }
143
- })]
144
- }),
145
- h?.labels.length || x.length ? /* @__PURE__ */ t(g, {
146
- label: i("labels"),
147
- summary: x.length ? x.map((e) => e.name).join(", ") : i("noLabels"),
148
- keepOpen: !0,
149
- children: (h?.labels.length ? h.labels : x).map((e) => /* @__PURE__ */ t(_, {
150
- type: "checkbox",
151
- checked: k.has(e.id),
152
- disabled: y,
153
- onPick: (t) => A(e.id, t),
154
- children: [/* @__PURE__ */ t("span", {
155
- class: "ck-swatch",
156
- style: { background: f(e.color) }
157
- }), /* @__PURE__ */ t("bdi", { children: e.name })]
158
- }))
159
- }) : null
160
- ]
161
- });
162
- }
163
- function m(e) {
164
- return e.length ? e.length === 1 ? e[0].name : `${e[0].name} +${e.length - 1}` : i("unassigned");
165
- }
166
- function h(e) {
167
- e?.scrollIntoView({ block: "nearest" });
168
- }
169
- function g({ label: r, summary: i, spoken: o = i, keepOpen: s = !1, children: c }) {
170
- let [l, u] = n(!1), d = e(null);
171
- return a(() => {
172
- if (!l) return;
173
- let e = (e) => !e.composedPath().includes(d.current) && u(!1);
174
- return addEventListener("pointerdown", e, !0), () => removeEventListener("pointerdown", e, !0);
175
- }, [l]), /* @__PURE__ */ t("div", {
176
- class: "ck-task-pick",
177
- ref: d,
178
- onChange: () => !s && u(!1),
179
- children: [/* @__PURE__ */ t("button", {
180
- class: "ck-chip",
181
- "aria-expanded": l,
182
- "aria-label": y(i, `${r}: ${o}`, o),
183
- onClick: () => u(!l),
184
- children: /* @__PURE__ */ t("bdi", { children: i })
185
- }), l ? /* @__PURE__ */ t("div", {
186
- class: "ck-task-menu",
187
- role: "group",
188
- "aria-label": r,
189
- ref: h,
190
- onKeyDown: (e) => e.key === "Escape" && (e.stopPropagation(), u(!1)),
191
- children: c
192
- }) : null]
193
- });
194
- }
195
- function _({ type: e, name: n, checked: r, disabled: i, onPick: a, children: o }) {
196
- return /* @__PURE__ */ t("label", {
197
- class: "ck-check",
198
- children: [/* @__PURE__ */ t("input", {
199
- type: e,
200
- name: n,
201
- checked: r,
202
- disabled: i,
203
- onChange: (e) => a(e.target.checked)
204
- }), o]
205
- });
206
- }
207
- function v({ client: e, value: r, onChange: o }) {
208
- let [c, u] = n(null);
209
- a(() => void l(e).then(u), []);
210
- let d = r.priority ?? "none", p = r.assignee_ids ?? [], h = p.map((e) => c?.people.find((t) => Number(t.id) === e)).filter((e) => !!e), v = new Set(r.label_ids ?? []), y = (c?.labels ?? []).filter((e) => v.has(e.id));
211
- return /* @__PURE__ */ t("div", {
212
- class: "ck-task ck-task-draft",
213
- role: "group",
214
- "aria-label": i("taskDetails"),
215
- children: [
216
- /* @__PURE__ */ t(g, {
217
- label: i("priority"),
218
- summary: i(d === "none" ? "priority" : `priority_${d}`),
219
- spoken: i(`priority_${d}`),
220
- children: s.map((e) => /* @__PURE__ */ t(_, {
221
- type: "radio",
222
- name: "ck-draft-priority",
223
- checked: d === e,
224
- disabled: !1,
225
- onPick: () => o({
226
- ...r,
227
- priority: e
228
- }),
229
- children: i(`priority_${e}`)
230
- }))
231
- }),
232
- /* @__PURE__ */ t(g, {
233
- label: i("assigneeFilter"),
234
- summary: h.length ? m(h) : i("assign"),
235
- spoken: h.length ? m(h) : i("unassigned"),
236
- keepOpen: !0,
237
- children: (c?.people ?? []).map((e) => /* @__PURE__ */ t(_, {
238
- type: "checkbox",
239
- checked: p.includes(Number(e.id)),
240
- disabled: !1,
241
- onPick: (t) => o({
242
- ...r,
243
- assignee_ids: t ? [...p, Number(e.id)] : p.filter((t) => t !== Number(e.id))
244
- }),
245
- children: /* @__PURE__ */ t("bdi", { children: e.name })
246
- }))
247
- }),
248
- c?.labels.length ? /* @__PURE__ */ t(g, {
249
- label: i("labels"),
250
- summary: y.length ? y.map((e) => e.name).join(", ") : i("labels"),
251
- spoken: y.length ? y.map((e) => e.name).join(", ") : i("noLabels"),
252
- keepOpen: !0,
253
- children: c.labels.map((e) => /* @__PURE__ */ t(_, {
254
- type: "checkbox",
255
- checked: v.has(e.id),
256
- disabled: !1,
257
- onPick: (t) => o({
258
- ...r,
259
- label_ids: [...v].filter((t) => t !== e.id).concat(t ? [e.id] : [])
260
- }),
261
- children: [/* @__PURE__ */ t("span", {
262
- class: "ck-swatch",
263
- style: { background: f(e.color) }
264
- }), /* @__PURE__ */ t("bdi", { children: e.name })]
265
- }))
266
- }) : null
267
- ]
268
- });
269
- }
270
- function y(e, t, n) {
271
- return t.toLowerCase().includes(e.toLowerCase()) && !/^\p{L}/u.test(t.slice(t.toLowerCase().indexOf(e.toLowerCase()) + e.length)) ? t : `${e} (${n})`;
272
- }
273
- export { v as TaskDraft, p as TaskFields };