@commentkit/comment-kit 2.0.0 → 2.0.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 (72) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +109 -13
  3. package/SECURITY.md +2 -2
  4. package/dist/node/cli/doctor.js +84 -20
  5. package/dist/node/cli/init.js +349 -35
  6. package/dist/node/cli/main.js +35 -17
  7. package/dist/node/cli/mcp.js +187 -6
  8. package/dist/node/shared/dashboard-places.js +33 -0
  9. package/dist/npm/chunks/{AgentSend-DxRJIYiz.js → AgentSend-DOy3jhyF.js} +16 -16
  10. package/dist/npm/chunks/{Checklist-CnlfeSbc.js → Checklist-CW_SwMpS.js} +70 -70
  11. package/dist/npm/chunks/{Composer-B1bBVszY.js → Composer-Bveq5QrK.js} +276 -274
  12. package/dist/npm/chunks/{Guest-vvNPz8h-.js → Guest-7hcN765o.js} +58 -55
  13. package/dist/npm/chunks/{MarkupEditor-VCOXh9d2.js → MarkupEditor-6bJGpWGO.js} +46 -39
  14. package/dist/npm/chunks/Panel-ChPUB68C.js +1211 -0
  15. package/dist/npm/chunks/{Settings-BGoZS2iV.js → Settings-CB5eEKnf.js} +77 -77
  16. package/dist/npm/chunks/{Shortcuts-B2OMvczr.js → Shortcuts-eAyjJ89P.js} +4 -4
  17. package/dist/npm/chunks/{StyleEditor-CJ_d8Huf.js → StyleEditor-CZTdAA5c.js} +10 -10
  18. package/dist/npm/chunks/{StylePanel-yQzHHlY7.js → StylePanel-B4pHQUL9.js} +61 -61
  19. package/dist/npm/chunks/{TaskFields-fmy6_HtK.js → TaskFields-C8BX0Sgg.js} +55 -55
  20. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +1160 -0
  21. package/dist/npm/chunks/Viewer-DY6zb90M.js +114 -0
  22. package/dist/npm/chunks/{agent-C1OQzBAm.js → agent-MTQHr9ei.js} +1 -1
  23. package/dist/npm/chunks/{ar-CAJ3XT8e.js → ar-L5cQ-NPe.js} +2 -0
  24. package/dist/npm/chunks/{card-bits-CAnzrqx3.js → card-bits-CTdrkYn8.js} +16 -16
  25. package/dist/npm/chunks/{client-kNAo2TTG.js → client-7eVxvg5j.js} +7 -7
  26. package/dist/npm/chunks/{confetti-CkBdSu19.js → confetti-BIs5s14P.js} +1 -1
  27. package/dist/npm/chunks/{context-B8UAzve0.js → context-Cf6khm7A.js} +1 -1
  28. package/dist/npm/chunks/{de-Dl18G48t.js → de-D0C-v6tP.js} +2 -0
  29. package/dist/npm/chunks/{dialog-GO04oC3D.js → dialog-DvdIkCW0.js} +1 -1
  30. package/dist/npm/chunks/{dpop-U48QIQd7.js → dpop-0A76OPa9.js} +1 -1
  31. package/dist/npm/chunks/{es-Dxk79lS9.js → es-Bw4Dj9tN.js} +2 -0
  32. package/dist/npm/chunks/{extension-CKFpPWmi.js → extension-DFVOvciD.js} +1 -1
  33. package/dist/npm/chunks/{extension-E81hWyiT.js → extension-SmoH5AA4.js} +2 -2
  34. package/dist/npm/chunks/{files-DyD5BZgp.js → files-4lV9YQIX.js} +2 -2
  35. package/dist/npm/chunks/{fr-8BebGKYD.js → fr-TkuQaIAa.js} +2 -0
  36. package/dist/npm/chunks/{hi-BIN6Yy_p.js → hi-DXSH2U8d.js} +2 -0
  37. package/dist/npm/chunks/{i18n-DOBt8e9U.js → i18n-aVSu9TcJ.js} +56 -47
  38. package/dist/npm/chunks/{identify-CN-3xzqL.js → identify-BGYh2dVo.js} +4 -4
  39. package/dist/npm/chunks/{it-Cr6EwpPQ.js → it-CiWA_bch.js} +2 -0
  40. package/dist/npm/chunks/{ja-Iy3s5aur.js → ja-C-QmR3yz.js} +2 -0
  41. package/dist/npm/chunks/{late-words-B2bmZceJ.js → late-words-80_VWt8S.js} +3 -1
  42. package/dist/npm/chunks/{live-CelVeZfP.js → live-BExWHzQ7.js} +1 -1
  43. package/dist/npm/chunks/{nl-B84WHqqe.js → nl-CEmZRqjX.js} +2 -0
  44. package/dist/npm/chunks/{page-key-DepmJzC1.js → page-key-HSY3Lze5.js} +1 -1
  45. package/dist/npm/chunks/{pick-yTyqtxN0.js → pick-B3sR7jtS.js} +1 -1
  46. package/dist/npm/chunks/{pkce-ChKGSW_4.js → pkce-CfZhiNBi.js} +1 -1
  47. package/dist/npm/chunks/{pt-BR-DOkdlfoe.js → pt-BR-b-a8sxO8.js} +2 -0
  48. package/dist/npm/chunks/{report-CrIqQZDI.js → report-DaVuoRYS.js} +1 -1
  49. package/dist/npm/chunks/show-BoN8AC-F.js +97 -0
  50. package/dist/npm/chunks/{signin-Dd1rb2BP.js → signin-BOWr_WCo.js} +3 -3
  51. package/dist/npm/chunks/{source-pXVve2Cx.js → source-mk3rGBBQ.js} +1 -1
  52. package/dist/npm/chunks/{src-BTMy4Gyc.js → src-C8rZFyL_.js} +77 -70
  53. package/dist/npm/chunks/start-CV4j78_q.js +1894 -0
  54. package/dist/npm/chunks/{states-sfTbjZz8.js → states-b9Bv3Ci7.js} +1 -1
  55. package/dist/npm/chunks/{upload-MgPYqPyE.js → upload-B2mkgMeJ.js} +1 -1
  56. package/dist/npm/chunks/uploads-8AxyRq7g.js +1147 -0
  57. package/dist/npm/chunks/{wrap-Bl0gbnFa.js → wrap-DW6EFbVQ.js} +1 -1
  58. package/dist/npm/chunks/{zh-CN-Z5fQCb7G.js → zh-CN-JTscW8u8.js} +2 -0
  59. package/dist/npm/element.js +1 -1
  60. package/dist/npm/headless.js +2 -2
  61. package/dist/npm/index.js +2 -2
  62. package/dist/npm/react.js +1 -1
  63. package/dist/npm/svelte.js +1 -1
  64. package/dist/npm/types/core/types.d.ts +2 -2
  65. package/dist/npm/vue.js +1 -1
  66. package/package.json +3 -1
  67. package/dist/npm/chunks/Panel-F37vIL1K.js +0 -1206
  68. package/dist/npm/chunks/ThreadCard-D51slKST.js +0 -1113
  69. package/dist/npm/chunks/Viewer-BOBadqmC.js +0 -111
  70. package/dist/npm/chunks/show-BgVC8gWY.js +0 -97
  71. package/dist/npm/chunks/start-DtVlpt7p.js +0 -1878
  72. package/dist/npm/chunks/uploads-D49mywwz.js +0 -1146
@@ -1,32 +1,32 @@
1
- import { c as e } from "./client-kNAo2TTG.js";
2
- import { c as t, d as n, f as r, g as i, p as a, u as o, y as s } from "./i18n-DOBt8e9U.js";
3
- import { i as c } from "./files-DyD5BZgp.js";
4
- import { t as l } from "./dialog-GO04oC3D.js";
5
- import { C as u, M as d, a as f, b as p, h as m, i as h, r as g, s as _, y as v } from "./start-DtVlpt7p.js";
6
- _(l), _(".ck-settings .ck-card-body{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.ck-account{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);align-items:center;gap:12px;padding:12px;display:flex}.ck-account .ck-avatar{--ck-av:40px}.ck-account>div{min-width:0;font-size:var(--ck-fs-sm);gap:2px;display:grid}.ck-account .ck-msg-name,.ck-account .ck-muted{overflow-wrap:anywhere}.ck-setting h3{font-size:var(--ck-fs-sm);letter-spacing:.05em;text-transform:uppercase;color:var(--ck-text-muted);margin:0 0 8px;font-weight:600}.ck-root:-webkit-any(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-root:is(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-setting-hint{font-size:var(--ck-fs-sm);text-wrap:pretty;margin:8px 0 0}.ck-toggle{border-radius:var(--ck-radius-xs);width:100%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.ck-toggle:focus-visible{outline-offset:2px}.ck-switch{border-radius:var(--ck-radius-pill);background:var(--ck-text-muted);width:36px;height:20px;transition:background-color var(--ck-fast);flex:none;position:relative}.ck-switch:after{content:\"\";top:2px;background:var(--ck-bg);width:16px;height:16px;box-shadow:var(--ck-shadow-sm);border-radius:50%;position:absolute}.ck-switch: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))):after{left:2px}.ck-switch: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))):after{left:2px}.ck-switch:-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)):after{right:2px}.ck-switch: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)):after{right:2px}.ck-toggle[aria-checked=true] .ck-switch{background:var(--ck-accent)}.ck-toggle[aria-checked=true] .ck-switch:after{background:var(--ck-accent-ink)}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch:-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)):after{right:18px}.ck-toggle[aria-checked=true] .ck-switch: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)):after{right:18px}.ck-segment{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:4px;display:grid}.ck-segment button{border-radius:var(--ck-radius-xs);height:32px;color:var(--ck-text-muted);font-size:var(--ck-fs-md);white-space:nowrap;text-overflow:ellipsis;transition:background-color var(--ck-fast), color var(--ck-fast);background:0 0;border:0;padding:0 8px;font-weight:600;overflow:hidden}.ck-segment button[aria-checked=true]{background:var(--ck-bg);color:var(--ck-text);box-shadow:var(--ck-shadow-sm)}.ck-segment button:focus-visible{outline-offset:-2px}.ck-segment button:active{scale:.96}.ck-setting-links{border-top:1px solid var(--ck-hairline);gap:2px;padding-top:8px;display:grid}.ck-setting-links a,.ck-setting-links button{border-radius:var(--ck-radius-sm);width:100%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;transition:background-color var(--ck-fast);background:0 0;border:0;align-items:center;gap:12px;padding:8px 12px;text-decoration:none;display:flex}.ck-setting-links :-webkit-any(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :is(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :-webkit-any(a,button):active{background:var(--ck-bg-hover)}.ck-setting-links :is(a,button):active{background:var(--ck-bg-hover)}.ck-setting-links svg{color:var(--ck-text-muted);flex:none}.ck-setting-links .ck-danger{color:var(--ck-danger)}.ck-setting-links .ck-danger svg{color:currentColor}.ck-team{grid-template-columns:minmax(0,1fr);gap:2px;margin:0;padding:0;list-style:none;display:grid}.ck-team li{min-height:32px;font-size:var(--ck-fs-md);align-items:center;gap:8px;padding-block-start:4px;padding-block-end:4px;display:flex}.ck-team-name{overflow-wrap:anywhere;min-width:0}.ck-team li>.ck-muted{flex:none}.ck-team-face{flex:none;display:inline-flex;position:relative}.ck-team-face .ck-avatar{--ck-av:24px}.ck-online{background:var(--ck-success);width:8px;height:8px;box-shadow:0 0 0 2px var(--ck-bg);border-radius:50%;position:absolute;bottom:-2px}.ck-online: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))){right:-2px}.ck-online: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))){right:-2px}.ck-online:-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:-2px}.ck-online: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:-2px}.ck-team-role{font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-meter{border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);outline:1px solid var(--ck-hairline);outline-offset:-1px;height:6px;overflow:hidden}.ck-meter>span{background:var(--ck-accent);border-radius:inherit;height:100%;display:block}.ck-meter>span[data-high]{background:var(--ck-warning)}@media (hover:hover){.ck-setting-links a:hover,.ck-setting-links button:hover{background:var(--ck-bg-hover)}.ck-segment button:hover{color:var(--ck-text)}}@media (pointer:coarse){.ck-segment button,.ck-setting-links a,.ck-setting-links button{min-height:44px}}@media (forced-colors:active){.ck-segment button[aria-checked=true]{color:highlighttext;background:highlight}.ck-switch{background:canvas;border:1px solid canvastext}.ck-switch:after,.ck-toggle[aria-checked=true] .ck-switch:after{background:canvastext}.ck-toggle[aria-checked=true] .ck-switch{background:highlight}}@media (pointer:coarse){.ck-toggle{min-height:44px}}@media (prefers-reduced-motion:reduce){.ck-segment button:active{scale:none}}");
1
+ import { c as e } from "./client-7eVxvg5j.js";
2
+ import { _ as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-aVSu9TcJ.js";
3
+ import { i as c } from "./files-4lV9YQIX.js";
4
+ import { t as l } from "./dialog-DvdIkCW0.js";
5
+ import { C as u, M as d, a as f, b as p, h as m, i as h, r as g, s as _, y as v } from "./start-CV4j78_q.js";
6
+ _(l), _(".ck-settings .ck-card-body{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.ck-account{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);align-items:center;gap:12px;padding:12px;display:flex}.ck-account .ck-avatar{--ck-av:40px}.ck-account>div{min-width:0;font-size:var(--ck-fs-sm);gap:2px;display:grid}.ck-account .ck-msg-name,.ck-account .ck-muted{overflow-wrap:anywhere}.ck-setting h3{font-size:var(--ck-fs-sm);letter-spacing:.05em;text-transform:uppercase;color:var(--ck-text-muted);margin:0 0 8px;font-weight:600}.ck-root:-webkit-any(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-root:is(:lang(ar),:lang(hi),:lang(ja),:lang(zh)) .ck-setting h3{letter-spacing:0}.ck-setting-hint{font-size:var(--ck-fs-sm);text-wrap:pretty;margin:8px 0 0}.ck-toggle{border-radius:var(--ck-radius-sm);width:100%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.ck-toggle:focus-visible{outline-offset:2px}.ck-switch{border-radius:var(--ck-radius-pill);background:var(--ck-text-muted);width:36px;height:20px;transition:background-color var(--ck-fast);flex:none;position:relative}.ck-switch:after{content:\"\";top:2px;background:var(--ck-bg);width:16px;height:16px;box-shadow:var(--ck-shadow-sm);border-radius:50%;position:absolute}.ck-switch: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))):after{left:2px}.ck-switch: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))):after{left:2px}.ck-switch:-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)):after{right:2px}.ck-switch: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)):after{right:2px}.ck-toggle[aria-checked=true] .ck-switch{background:var(--ck-accent)}.ck-toggle[aria-checked=true] .ck-switch:after{background:var(--ck-accent-ink)}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch: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))):after{left:18px}.ck-toggle[aria-checked=true] .ck-switch:-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)):after{right:18px}.ck-toggle[aria-checked=true] .ck-switch: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)):after{right:18px}.ck-segment{border-radius:var(--ck-radius-md);background:var(--ck-bg-muted);grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:4px;display:grid}.ck-segment button{border-radius:var(--ck-radius-sm);height:32px;color:var(--ck-text-muted);font-size:var(--ck-fs-md);white-space:nowrap;text-overflow:ellipsis;transition:background-color var(--ck-fast), color var(--ck-fast);background:0 0;border:0;padding:0 8px;font-weight:600;overflow:hidden}.ck-segment button[aria-checked=true]{background:var(--ck-bg);color:var(--ck-text);box-shadow:var(--ck-shadow-sm)}.ck-segment button:focus-visible{outline-offset:-2px}.ck-segment button:active{scale:.96}.ck-setting-links{border-top:1px solid var(--ck-hairline);gap:2px;padding-top:8px;display:grid}.ck-setting-links a,.ck-setting-links button{border-radius:var(--ck-radius-sm);width:100%;min-height:36px;color:var(--ck-text);font-size:var(--ck-fs);text-align:start;transition:background-color var(--ck-fast);background:0 0;border:0;align-items:center;gap:12px;padding:8px 12px;text-decoration:none;display:flex}.ck-setting-links :-webkit-any(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :is(a,button):focus-visible{outline-offset:-2px}.ck-setting-links :-webkit-any(a,button):active{background:var(--ck-bg-hover)}.ck-setting-links :is(a,button):active{background:var(--ck-bg-hover)}.ck-setting-links svg{color:var(--ck-text-muted);flex:none}.ck-setting-links .ck-danger{color:var(--ck-danger)}.ck-setting-links .ck-danger svg{color:currentColor}.ck-team{grid-template-columns:minmax(0,1fr);gap:2px;margin:0;padding:0;list-style:none;display:grid}.ck-team li{min-height:32px;font-size:var(--ck-fs-md);align-items:center;gap:8px;padding-block-start:4px;padding-block-end:4px;display:flex}.ck-team-name{overflow-wrap:anywhere;min-width:0}.ck-team li>.ck-muted{flex:none}.ck-team-face{flex:none;display:inline-flex;position:relative}.ck-team-face .ck-avatar{--ck-av:24px}.ck-online{background:var(--ck-success);width:8px;height:8px;box-shadow:0 0 0 2px var(--ck-bg);border-radius:50%;position:absolute;bottom:-2px}.ck-online: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))){right:-2px}.ck-online: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))){right:-2px}.ck-online:-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:-2px}.ck-online: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:-2px}.ck-team-role{font-size:var(--ck-fs-sm);margin-inline-start:auto}.ck-meter{border-radius:var(--ck-radius-pill);background:var(--ck-bg-muted);outline:1px solid var(--ck-hairline);outline-offset:-1px;height:6px;overflow:hidden}.ck-meter>span{background:var(--ck-accent);border-radius:inherit;height:100%;display:block}.ck-meter>span[data-high]{background:var(--ck-warning)}@media (hover:hover){.ck-setting-links a:hover,.ck-setting-links button:hover{background:var(--ck-bg-hover)}.ck-segment button:hover{color:var(--ck-text)}}@media (pointer:coarse){.ck-segment button,.ck-setting-links a,.ck-setting-links button{min-height:44px}}@media (forced-colors:active){.ck-segment button[aria-checked=true]{color:highlighttext;background:highlight}.ck-switch{background:canvas;border:1px solid canvastext}.ck-switch:after,.ck-toggle[aria-checked=true] .ck-switch:after{background:canvastext}.ck-toggle[aria-checked=true] .ck-switch{background:highlight}}@media (pointer:coarse){.ck-toggle{min-height:44px}}@media (prefers-reduced-motion:reduce){.ck-segment button:active{scale:none}}");
7
7
  var y = [
8
8
  ["auto", "themeSystem"],
9
9
  ["light", "themeLight"],
10
10
  ["dark", "themeDark"]
11
11
  ];
12
12
  function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
13
- let T = v(l.state, (e) => e.session), E = v(l.state, (e) => e.theme ?? l.options.theme ?? e.config?.appearance?.theme ?? "auto"), D = a(null), O = v(l.state, (e) => e.team), k = T?.role === "admin" || T?.role === "member", [A, j] = i(null), [M, N] = i(null);
14
- n(() => {
13
+ let T = v(l.state, (e) => e.session), E = v(l.state, (e) => e.theme ?? l.options.theme ?? e.config?.appearance?.theme ?? "auto"), D = o(null), O = v(l.state, (e) => e.team), k = T?.role === "admin" || T?.role === "member", [A, j] = t(null), [M, N] = t(null);
14
+ i(() => {
15
15
  k && (l.people().then((e) => j(e.filter((e) => e.role && e.role !== "reviewer")), () => j([])), l.usage().then(N, () => N(null)));
16
- }, [k]), r(() => {
16
+ }, [k]), a(() => {
17
17
  let e = D.current?.getRootNode(), t = e?.activeElement ?? document.activeElement;
18
18
  return D.current?.focus({ preventScroll: !0 }), () => x(t, e);
19
19
  }, []);
20
- let P = l.options.shortcuts !== !1, F = !!T?.capabilities.triage, [I, L] = i(() => f(F));
21
- n(() => g(() => L(f(F))), []);
20
+ let P = l.options.shortcuts !== !1, F = !!T?.capabilities.triage, [I, L] = t(() => f(F));
21
+ i(() => g(() => L(f(F))), []);
22
22
  let R = (t) => {
23
23
  e(t), l.state.set({ theme: t });
24
- }, z = d(T?.dashboard_url), B = A?.find((e) => e.id === T?.person.id)?.role, V = T ? t(`role_${B === "owner" ? "owner" : T.role}`) : "";
25
- return /* @__PURE__ */ o("div", {
24
+ }, z = d(T?.dashboard_url), B = A?.find((e) => e.id === T?.person.id)?.role, V = T ? r(`role_${B === "owner" ? "owner" : T.role}`) : "";
25
+ return /* @__PURE__ */ s("div", {
26
26
  class: "ck-scrim",
27
27
  "data-commentkit-ui": !0,
28
28
  onClick: (e) => e.target === e.currentTarget && _(),
29
- children: /* @__PURE__ */ o("div", {
29
+ children: /* @__PURE__ */ s("div", {
30
30
  class: "ck-card ck-dialog ck-settings",
31
31
  role: "dialog",
32
32
  "aria-modal": "true",
@@ -34,184 +34,184 @@ function b({ client: l, onClose: _, onShortcuts: b, onHide: C, onSignOut: w }) {
34
34
  onKeyDown: (e) => {
35
35
  e.stopPropagation(), e.key === "Escape" ? _() : S(e);
36
36
  },
37
- children: [/* @__PURE__ */ o("div", {
37
+ children: [/* @__PURE__ */ s("div", {
38
38
  class: "ck-card-head",
39
- children: [/* @__PURE__ */ o("h2", {
39
+ children: [/* @__PURE__ */ s("h2", {
40
40
  class: "ck-card-title",
41
41
  id: "ck-settings-title",
42
- children: t("settings")
43
- }), /* @__PURE__ */ o("button", {
42
+ children: r("settings")
43
+ }), /* @__PURE__ */ s("button", {
44
44
  class: "ck-ghost",
45
45
  ref: D,
46
- "aria-label": t("close"),
47
- title: t("close"),
46
+ "aria-label": r("close"),
47
+ title: r("close"),
48
48
  onClick: _,
49
- children: /* @__PURE__ */ o(u, { name: "close" })
49
+ children: /* @__PURE__ */ s(u, { name: "close" })
50
50
  })]
51
- }), /* @__PURE__ */ o("div", {
51
+ }), /* @__PURE__ */ s("div", {
52
52
  class: "ck-card-body",
53
53
  children: [
54
- T ? /* @__PURE__ */ o("section", {
54
+ T ? /* @__PURE__ */ s("section", {
55
55
  class: "ck-account",
56
- "aria-label": t("account"),
57
- children: [/* @__PURE__ */ o(p, { person: T.person }), /* @__PURE__ */ o("div", { children: [
58
- /* @__PURE__ */ o("bdi", {
56
+ "aria-label": r("account"),
57
+ children: [/* @__PURE__ */ s(p, { person: T.person }), /* @__PURE__ */ s("div", { children: [
58
+ /* @__PURE__ */ s("bdi", {
59
59
  class: "ck-msg-name",
60
60
  children: T.person.name
61
61
  }),
62
- T.email ? /* @__PURE__ */ o("div", {
62
+ T.email ? /* @__PURE__ */ s("div", {
63
63
  class: "ck-muted",
64
- children: /* @__PURE__ */ o("bdi", { children: T.email })
64
+ children: /* @__PURE__ */ s("bdi", { children: T.email })
65
65
  }) : null,
66
- /* @__PURE__ */ o("div", {
66
+ /* @__PURE__ */ s("div", {
67
67
  class: "ck-muted",
68
68
  children: [
69
- /* @__PURE__ */ o("bdi", { children: T.project.name }),
69
+ /* @__PURE__ */ s("bdi", { children: T.project.name }),
70
70
  " · ",
71
71
  V
72
72
  ]
73
73
  })
74
74
  ] })]
75
75
  }) : null,
76
- /* @__PURE__ */ o("section", {
76
+ /* @__PURE__ */ s("section", {
77
77
  class: "ck-setting",
78
78
  children: [
79
- /* @__PURE__ */ o("h3", {
79
+ /* @__PURE__ */ s("h3", {
80
80
  id: "ck-theme-label",
81
- children: t("appearance")
81
+ children: r("appearance")
82
82
  }),
83
- /* @__PURE__ */ o("div", {
83
+ /* @__PURE__ */ s("div", {
84
84
  class: "ck-segment",
85
85
  role: "radiogroup",
86
86
  "aria-labelledby": "ck-theme-label",
87
87
  onKeyDown: (e) => m(e, "[role=radio]"),
88
- children: y.map(([e, n]) => /* @__PURE__ */ o("button", {
88
+ children: y.map(([e, t]) => /* @__PURE__ */ s("button", {
89
89
  role: "radio",
90
90
  "aria-checked": E === e,
91
91
  tabIndex: E === e ? 0 : -1,
92
92
  onClick: () => R(e),
93
93
  onFocus: () => E !== e && R(e),
94
- children: t(n)
94
+ children: r(t)
95
95
  }))
96
96
  }),
97
- /* @__PURE__ */ o("p", {
97
+ /* @__PURE__ */ s("p", {
98
98
  class: "ck-muted ck-setting-hint",
99
- children: t("appearanceHint")
99
+ children: r("appearanceHint")
100
100
  })
101
101
  ]
102
102
  }),
103
- P ? /* @__PURE__ */ o("section", {
103
+ P ? /* @__PURE__ */ s("section", {
104
104
  class: "ck-setting",
105
105
  children: [
106
- /* @__PURE__ */ o("h3", { children: t("shortcutsTitle") }),
107
- /* @__PURE__ */ o("button", {
106
+ /* @__PURE__ */ s("h3", { children: r("shortcutsTitle") }),
107
+ /* @__PURE__ */ s("button", {
108
108
  class: "ck-toggle",
109
109
  role: "switch",
110
110
  "aria-checked": I,
111
111
  "aria-describedby": "ck-keys-hint",
112
112
  onClick: () => h(!I),
113
- children: [/* @__PURE__ */ o("span", { children: t("shortcutsSetting") }), /* @__PURE__ */ o("span", {
113
+ children: [/* @__PURE__ */ s("span", { children: r("shortcutsSetting") }), /* @__PURE__ */ s("span", {
114
114
  class: "ck-switch",
115
115
  "aria-hidden": "true"
116
116
  })]
117
117
  }),
118
- /* @__PURE__ */ o("p", {
118
+ /* @__PURE__ */ s("p", {
119
119
  class: "ck-muted ck-setting-hint",
120
120
  id: "ck-keys-hint",
121
- children: t("shortcutsSettingHint")
121
+ children: r("shortcutsSettingHint")
122
122
  })
123
123
  ]
124
124
  }) : null,
125
- k && A?.length ? /* @__PURE__ */ o("section", {
125
+ k && A?.length ? /* @__PURE__ */ s("section", {
126
126
  class: "ck-setting",
127
- children: [/* @__PURE__ */ o("h3", { children: t("team") }), /* @__PURE__ */ o("ul", {
127
+ children: [/* @__PURE__ */ s("h3", { children: r("team") }), /* @__PURE__ */ s("ul", {
128
128
  class: "ck-team",
129
- children: A.map((e) => /* @__PURE__ */ o("li", { children: [
130
- /* @__PURE__ */ o("span", {
129
+ children: A.map((e) => /* @__PURE__ */ s("li", { children: [
130
+ /* @__PURE__ */ s("span", {
131
131
  class: "ck-team-face",
132
- children: [/* @__PURE__ */ o(p, { person: e }), O.some((t) => t.id === e.id) ? /* @__PURE__ */ o("span", {
132
+ children: [/* @__PURE__ */ s(p, { person: e }), O.some((t) => t.id === e.id) ? /* @__PURE__ */ s("span", {
133
133
  class: "ck-online",
134
134
  role: "img",
135
- "aria-label": t("online")
135
+ "aria-label": r("online")
136
136
  }) : null]
137
137
  }),
138
- /* @__PURE__ */ o("bdi", {
138
+ /* @__PURE__ */ s("bdi", {
139
139
  class: "ck-team-name",
140
140
  children: e.name
141
141
  }),
142
- e.id === T?.person.id ? /* @__PURE__ */ o("span", {
142
+ e.id === T?.person.id ? /* @__PURE__ */ s("span", {
143
143
  class: "ck-muted",
144
144
  children: [
145
145
  "(",
146
- t("you"),
146
+ r("you"),
147
147
  ")"
148
148
  ]
149
149
  }) : null,
150
- /* @__PURE__ */ o("span", {
150
+ /* @__PURE__ */ s("span", {
151
151
  class: "ck-muted ck-team-role",
152
- children: t(`role_${e.role === "owner" ? "owner" : e.role === "admin" ? "admin" : "member"}`)
152
+ children: r(`role_${e.role === "owner" ? "owner" : e.role === "admin" ? "admin" : "member"}`)
153
153
  })
154
154
  ] }))
155
155
  })]
156
156
  }) : null,
157
- k && M ? /* @__PURE__ */ o("section", {
157
+ k && M ? /* @__PURE__ */ s("section", {
158
158
  class: "ck-setting",
159
- children: [/* @__PURE__ */ o("h3", { children: t("storage") }), M.limit_bytes ? /* @__PURE__ */ o(s, { children: [/* @__PURE__ */ o("div", {
159
+ children: [/* @__PURE__ */ s("h3", { children: r("storage") }), M.limit_bytes ? /* @__PURE__ */ s(n, { children: [/* @__PURE__ */ s("div", {
160
160
  class: "ck-meter",
161
161
  role: "meter",
162
162
  "aria-valuemin": 0,
163
163
  "aria-valuemax": M.limit_bytes,
164
164
  "aria-valuenow": M.used_bytes,
165
- "aria-label": t("storage"),
166
- children: /* @__PURE__ */ o("span", {
165
+ "aria-label": r("storage"),
166
+ children: /* @__PURE__ */ s("span", {
167
167
  style: { width: `${Math.min(100, Math.round(M.used_bytes / M.limit_bytes * 100))}%` },
168
168
  "data-high": M.used_bytes / M.limit_bytes > .85 || void 0
169
169
  })
170
- }), /* @__PURE__ */ o("p", {
170
+ }), /* @__PURE__ */ s("p", {
171
171
  class: "ck-muted ck-setting-hint",
172
- children: t("storageUsed", {
172
+ children: r("storageUsed", {
173
173
  used: c(M.used_bytes),
174
174
  limit: c(M.limit_bytes)
175
175
  })
176
- })] }) : /* @__PURE__ */ o("p", {
176
+ })] }) : /* @__PURE__ */ s("p", {
177
177
  class: "ck-muted ck-setting-hint",
178
- children: t("storageUsedOnly", { used: c(M.used_bytes) })
178
+ children: r("storageUsedOnly", { used: c(M.used_bytes) })
179
179
  })]
180
180
  }) : null,
181
- /* @__PURE__ */ o("nav", {
181
+ /* @__PURE__ */ s("nav", {
182
182
  class: "ck-setting-links",
183
- "aria-label": t("settings"),
183
+ "aria-label": r("settings"),
184
184
  children: [
185
- z ? /* @__PURE__ */ o("a", {
185
+ z ? /* @__PURE__ */ s("a", {
186
186
  href: z,
187
187
  target: "_blank",
188
188
  rel: "noopener noreferrer",
189
- children: [/* @__PURE__ */ o(u, {
189
+ children: [/* @__PURE__ */ s(u, {
190
190
  name: "link",
191
191
  size: 16
192
- }), t("openDashboard")]
192
+ }), r("openDashboard")]
193
193
  }) : null,
194
- b ? /* @__PURE__ */ o("button", {
194
+ b ? /* @__PURE__ */ s("button", {
195
195
  onClick: () => (_(), b()),
196
- children: [/* @__PURE__ */ o(u, {
196
+ children: [/* @__PURE__ */ s(u, {
197
197
  name: "info",
198
198
  size: 16
199
- }), t("shortcutsTitle")]
199
+ }), r("shortcutsTitle")]
200
200
  }) : null,
201
- F ? /* @__PURE__ */ o("button", {
201
+ F ? /* @__PURE__ */ s("button", {
202
202
  onClick: C,
203
- children: [/* @__PURE__ */ o(u, {
203
+ children: [/* @__PURE__ */ s(u, {
204
204
  name: "close",
205
205
  size: 16
206
- }), t("hideWidget")]
206
+ }), r("hideWidget")]
207
207
  }) : null,
208
- T ? /* @__PURE__ */ o("button", {
208
+ T ? /* @__PURE__ */ s("button", {
209
209
  class: "ck-danger",
210
210
  onClick: () => (_(), w()),
211
- children: [/* @__PURE__ */ o(u, {
211
+ children: [/* @__PURE__ */ s(u, {
212
212
  name: "user",
213
213
  size: 16
214
- }), t("signOut")]
214
+ }), r("signOut")]
215
215
  }) : null
216
216
  ]
217
217
  })
@@ -1,7 +1,7 @@
1
- import { c as e, f as t, p as n, u as r } from "./i18n-DOBt8e9U.js";
2
- import { t as i } from "./dialog-GO04oC3D.js";
3
- import { C as a, s as o } from "./start-DtVlpt7p.js";
4
- o(i), o(".ck-keys{gap:12px;margin:0;display:grid}.ck-keys:focus-visible{outline-offset:-2px}.ck-scrim:has(.ck-keys){animation:none}.ck-scrim:has(.ck-keys) .ck-card{animation:none}.ck-keys div{grid-template-columns:minmax(96px,auto) 1fr;align-items:baseline;gap:12px;display:grid}.ck-keys dt{text-align:start}.ck-keys dd{color:var(--ck-text-muted);font-size:var(--ck-fs-md);margin:0}.ck-keys kbd{border:1px solid var(--ck-border);border-radius:var(--ck-radius-xs);background:var(--ck-bg-muted);color:var(--ck-text);font-family:var(--ck-mono);font-size:var(--ck-fs-sm);white-space:nowrap;border-bottom-width:2px;padding:0 7px;line-height:20px;display:inline-block}");
1
+ import { c as e, f as t, m as n, u as r } from "./i18n-aVSu9TcJ.js";
2
+ import { t as i } from "./dialog-DvdIkCW0.js";
3
+ import { C as a, s as o } from "./start-CV4j78_q.js";
4
+ o(i), o(".ck-keys{gap:12px;margin:0;display:grid}.ck-keys:focus-visible{outline-offset:-2px}.ck-scrim:has(.ck-keys){animation:none}.ck-scrim:has(.ck-keys) .ck-card{animation:none}.ck-keys div{grid-template-columns:minmax(96px,auto) 1fr;align-items:baseline;gap:12px;display:grid}.ck-keys dt{text-align:start}.ck-keys dd{color:var(--ck-text-muted);font-size:var(--ck-fs-md);margin:0}.ck-keys kbd{border:1px solid var(--ck-border);border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);color:var(--ck-text);font-family:var(--ck-mono);font-size:var(--ck-fs-sm);white-space:nowrap;border-bottom-width:2px;padding:0 7px;line-height:20px;display:inline-block}");
5
5
  var s = [
6
6
  ["C", "shortcutComment"],
7
7
  ["J / K", "shortcutNext"],
@@ -1,18 +1,18 @@
1
- import { c as e, f as t, g as n, p as r, u as i } from "./i18n-DOBt8e9U.js";
2
- import { a, i as o, o as s } from "./uploads-D49mywwz.js";
3
- import { r as c } from "./context-B8UAzve0.js";
4
- import { StylePanel as l } from "./StylePanel-yQzHHlY7.js";
1
+ import { _ as e, c as t, f as n, m as r, u as i } from "./i18n-aVSu9TcJ.js";
2
+ import { a, i as o, o as s } from "./uploads-8AxyRq7g.js";
3
+ import { r as c } from "./context-Cf6khm7A.js";
4
+ import { StylePanel as l } from "./StylePanel-B4pHQUL9.js";
5
5
  // src/ui/StyleEditor.tsx
6
6
  function u({ thread: u, element: d, onSaved: f, onClose: p }, m) {
7
- let { client: h, reportError: g } = c(m), [_] = n(() => {
7
+ let { client: h, reportError: g } = c(m), [_] = e(() => {
8
8
  let e = s(d);
9
9
  for (let t of a(u.style_changes)) t.from && (e[t.property] = t.from);
10
10
  return e;
11
- }), [v, y] = n(() => a(u.style_changes)), [b, x] = n(!1), S = r(null);
12
- t(() => {
11
+ }), [v, y] = e(() => a(u.style_changes)), [b, x] = e(!1), S = r(null);
12
+ n(() => {
13
13
  let e = new o(d);
14
14
  return S.current = e, () => e.revert();
15
- }, [d]), t(() => S.current?.apply(v), [v]);
15
+ }, [d]), n(() => S.current?.apply(v), [v]);
16
16
  let C = async () => {
17
17
  if (!b) {
18
18
  x(!0);
@@ -33,12 +33,12 @@ function u({ thread: u, element: d, onSaved: f, onClose: p }, m) {
33
33
  children: [/* @__PURE__ */ i("button", {
34
34
  class: "ck-ghost ck-ghost-sm",
35
35
  onClick: p,
36
- children: e("cancel")
36
+ children: t("cancel")
37
37
  }), /* @__PURE__ */ i("button", {
38
38
  class: "ck-btn ck-primary ck-style-done",
39
39
  "aria-disabled": b || void 0,
40
40
  onClick: () => void C(),
41
- children: e("save")
41
+ children: t("save")
42
42
  })]
43
43
  })
44
44
  });
@@ -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-aVSu9TcJ.js";
2
+ import { r as a, s as o } from "./uploads-8AxyRq7g.js";
3
+ import { s } from "./start-CV4j78_q.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
  });