@crewlethq/ui 0.147.0 → 0.149.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 (260) hide show
  1. package/README.md +9 -1
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AgentHandoffPanel/index.js +8 -8
  4. package/dist/AppShell/index.js +5 -5
  5. package/dist/ArrangeFrame/index.js +3 -3
  6. package/dist/ArrangeList/index.js +5 -5
  7. package/dist/ArtifactBar/ArtifactBar.d.ts +7 -2
  8. package/dist/ArtifactBar/index.js +7 -7
  9. package/dist/{ArtifactBar-X46WJNW7.css → ArtifactBar-R2DQPOJK.css} +52 -1
  10. package/dist/ArtifactCard/index.js +6 -6
  11. package/dist/ArtifactPanel/index.js +4 -4
  12. package/dist/ArtifactRef/ArtifactRef.d.ts +23 -0
  13. package/dist/ArtifactRef/index.d.ts +2 -0
  14. package/dist/ArtifactRef/index.js +5 -0
  15. package/dist/AttentionList/index.js +4 -4
  16. package/dist/Avatar/index.js +1 -1
  17. package/dist/{Avatar-HD7YSWDV.css → Avatar-OUKBB6UF.css} +19 -5
  18. package/dist/AvatarPicker/index.js +8 -8
  19. package/dist/BriefCard/index.js +3 -3
  20. package/dist/Button/index.js +2 -2
  21. package/dist/Callout/index.js +3 -3
  22. package/dist/Canvas/index.js +4 -4
  23. package/dist/CanvasBoard/index.js +6 -6
  24. package/dist/CanvasToolbar/index.js +5 -5
  25. package/dist/ChangeMark/index.js +2 -2
  26. package/dist/ChatMessage/index.js +3 -3
  27. package/dist/ChatThread/index.js +4 -4
  28. package/dist/CheckGrid/index.js +5 -5
  29. package/dist/Checkbox/index.js +4 -4
  30. package/dist/Clamp/index.js +3 -3
  31. package/dist/CodeBlock/CodeBlock.d.ts +11 -1
  32. package/dist/CodeBlock/index.js +6 -6
  33. package/dist/CodeBlock/syntax.d.ts +23 -0
  34. package/dist/{CodeBlock-LS7H6KUQ.css → CodeBlock-GPNAG43I.css} +34 -0
  35. package/dist/ColorField/index.js +4 -4
  36. package/dist/ColorSwatch/index.js +6 -6
  37. package/dist/Combobox/index.js +4 -4
  38. package/dist/CommandPalette/index.js +6 -6
  39. package/dist/CommentPin/CommentPinGlyph.d.ts +6 -0
  40. package/dist/CommentPin/cursor.d.ts +23 -0
  41. package/dist/CommentPin/index.d.ts +3 -0
  42. package/dist/CommentPin/index.js +1 -1
  43. package/dist/CommentPin/shape.d.ts +4 -0
  44. package/dist/CommentThread/index.js +7 -7
  45. package/dist/Composer/index.js +4 -4
  46. package/dist/ConfirmField/index.js +4 -4
  47. package/dist/ConflictNote/index.js +3 -3
  48. package/dist/ContrastHelp/index.js +3 -3
  49. package/dist/Copyable/index.js +5 -5
  50. package/dist/DataGrid/index.js +6 -6
  51. package/dist/DataTable/index.js +8 -8
  52. package/dist/DataView/index.js +12 -12
  53. package/dist/DateTimePicker/index.js +4 -4
  54. package/dist/DeepWorkCard/index.js +4 -4
  55. package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +69 -53
  56. package/dist/DeliveryReceipt/index.js +8 -1
  57. package/dist/DeliveryReceipt-GTES3RSG.css +90 -0
  58. package/dist/DocTabsEditor/index.js +6 -6
  59. package/dist/DownloadButton/index.js +3 -3
  60. package/dist/{Editor-C422VBJS.js → Editor-FXREHINI.js} +7 -7
  61. package/dist/EmojiPicker/index.js +4 -4
  62. package/dist/EntityChip/index.js +1 -1
  63. package/dist/ErrorBoundary/index.js +3 -3
  64. package/dist/FactList/index.js +2 -2
  65. package/dist/FileDrop/index.js +3 -3
  66. package/dist/FilterPill/index.js +3 -3
  67. package/dist/FollowBanner/index.js +5 -5
  68. package/dist/Fullscreen/index.js +3 -3
  69. package/dist/GraphCanvas/index.js +6 -6
  70. package/dist/HuePicker/index.js +7 -7
  71. package/dist/IconButton/index.js +2 -2
  72. package/dist/ImageUpload/index.js +1 -1
  73. package/dist/InlineEditor/index.js +3 -3
  74. package/dist/InlineRef/index.js +1 -1
  75. package/dist/{InlineRef-LHU6MH4I.css → InlineRef-CUBTBIYD.css} +2 -1
  76. package/dist/Input/index.js +3 -3
  77. package/dist/KeyValueRows/index.js +5 -5
  78. package/dist/LinkInterstitial/index.js +6 -6
  79. package/dist/ListDetail/index.js +3 -3
  80. package/dist/ListInput/index.js +5 -5
  81. package/dist/LogoSlot/index.js +4 -4
  82. package/dist/MarkdownEditor/index.js +7 -7
  83. package/dist/MemberPicker/index.js +5 -5
  84. package/dist/Menu/index.js +4 -4
  85. package/dist/MergeConflicts/index.js +7 -7
  86. package/dist/MessageActions/index.js +5 -5
  87. package/dist/Modal/index.js +4 -4
  88. package/dist/NoticeList/index.js +3 -3
  89. package/dist/OpenInAppCard/index.js +5 -5
  90. package/dist/OrgLabel/index.js +1 -1
  91. package/dist/OrgNode/index.js +1 -1
  92. package/dist/OrgTable/index.js +9 -9
  93. package/dist/PeekRail/index.js +4 -4
  94. package/dist/PeopleRail/index.js +5 -5
  95. package/dist/PinTile/index.js +3 -3
  96. package/dist/PresenceStack/index.js +1 -1
  97. package/dist/PresenterView/index.js +5 -5
  98. package/dist/Principal/index.js +1 -1
  99. package/dist/PrincipalPicker/index.js +6 -6
  100. package/dist/ProposalCard/index.js +8 -8
  101. package/dist/RailList/index.js +5 -5
  102. package/dist/ReactionBar/index.js +5 -5
  103. package/dist/ReceiptStrip/index.js +3 -3
  104. package/dist/ResultTableCard/index.js +4 -4
  105. package/dist/RichEditor/index.js +5 -5
  106. package/dist/SandboxedFrame/index.js +5 -5
  107. package/dist/SectionFrame/index.js +4 -4
  108. package/dist/SegmentedControl/index.js +6 -6
  109. package/dist/SelectionBar/index.js +3 -3
  110. package/dist/SendButton/index.js +3 -3
  111. package/dist/SettingsTable/index.js +5 -5
  112. package/dist/ShareDialog/index.js +10 -10
  113. package/dist/SheetColumnEditor/index.js +10 -10
  114. package/dist/SheetGrid/index.js +7 -7
  115. package/dist/SidePanel/index.js +3 -3
  116. package/dist/SidebarNav/index.js +3 -3
  117. package/dist/SlideCompare/index.js +3 -3
  118. package/dist/SlideFilmstrip/index.js +5 -5
  119. package/dist/SlideNav/index.js +3 -3
  120. package/dist/StatusLine/index.js +2 -2
  121. package/dist/Switcher/index.js +6 -6
  122. package/dist/TableCells/index.js +1 -1
  123. package/dist/Tabs/index.js +5 -5
  124. package/dist/TagsInput/index.js +3 -3
  125. package/dist/ThemeSwitcher/index.js +7 -7
  126. package/dist/ThemeToggle/index.js +3 -3
  127. package/dist/ThreadSummary/index.js +2 -2
  128. package/dist/TimeRangePicker/index.js +10 -10
  129. package/dist/TimeWindowPicker/index.js +5 -5
  130. package/dist/Tooltip/Tooltip.d.ts +8 -1
  131. package/dist/Tooltip/index.js +1 -1
  132. package/dist/TreeCanvas/index.js +5 -5
  133. package/dist/TreeGrid/index.js +7 -7
  134. package/dist/ValueField/index.js +5 -5
  135. package/dist/VersionCompare/index.js +7 -7
  136. package/dist/VersionTimeline/index.js +4 -4
  137. package/dist/WorkingLine/index.js +2 -2
  138. package/dist/{chunk-CYRGASHY.js → chunk-27NS67UI.js} +2 -2
  139. package/dist/{chunk-2RJFKMTX.js → chunk-27ZF7D3C.js} +2 -2
  140. package/dist/chunk-2EPEVS2M.js +158 -0
  141. package/dist/{chunk-SPCNQUEU.js → chunk-2PSOUDCS.js} +1 -1
  142. package/dist/{chunk-IEM64WYC.js → chunk-2QPELDAA.js} +2 -2
  143. package/dist/{chunk-RG6XQJ74.js → chunk-2W2KAF7D.js} +1 -1
  144. package/dist/{chunk-CLEQII3E.js → chunk-3EL3IF3W.js} +1 -1
  145. package/dist/{chunk-QA774VCH.js → chunk-3GWCWUSY.js} +1 -1
  146. package/dist/{chunk-2Z5SMA7Q.js → chunk-3OZPHFDT.js} +1 -1
  147. package/dist/{chunk-YLOADTDS.js → chunk-3RLOH5AR.js} +1 -1
  148. package/dist/{chunk-N37AX25G.js → chunk-3SUIU2ZO.js} +3 -3
  149. package/dist/{chunk-IAER2ZMS.js → chunk-4DUK2TC4.js} +1 -1
  150. package/dist/{chunk-T7J2U3IN.js → chunk-4LNSURYZ.js} +1 -1
  151. package/dist/{chunk-BXP6WDKR.js → chunk-5C7MP4C7.js} +2 -2
  152. package/dist/{chunk-WTRAMP4V.js → chunk-5ORAUELE.js} +3 -3
  153. package/dist/{chunk-VXSCGB2L.js → chunk-6RBE5RVG.js} +2 -2
  154. package/dist/{chunk-UOVEN5RY.js → chunk-7C6NHVMX.js} +5 -5
  155. package/dist/{chunk-RIAEOKY7.js → chunk-7CVV3DQC.js} +1 -1
  156. package/dist/{chunk-RJZO5NQW.js → chunk-7FY7L6WD.js} +2 -2
  157. package/dist/{chunk-OU4P4E3U.js → chunk-7J2RIAZ4.js} +1 -1
  158. package/dist/{chunk-BPCXMQMB.js → chunk-7MAU74EI.js} +1 -1
  159. package/dist/{chunk-UJETUDIL.js → chunk-7PK2Z5JY.js} +2 -2
  160. package/dist/{chunk-SSRQLPGT.js → chunk-7SXCCVUR.js} +2 -2
  161. package/dist/{chunk-RMGAZEEX.js → chunk-7WXLPNZF.js} +1 -1
  162. package/dist/{chunk-52JW3QTH.js → chunk-AH7R777J.js} +3 -3
  163. package/dist/{chunk-5L4ZSNGP.js → chunk-AU4EKD2G.js} +1 -1
  164. package/dist/{chunk-PDGXQBFS.js → chunk-BFZAGIXR.js} +3 -1
  165. package/dist/{chunk-QNN4OYLU.js → chunk-BJE7TPO6.js} +2 -2
  166. package/dist/{chunk-TYCICVST.js → chunk-BRMJPZC4.js} +1 -1
  167. package/dist/{chunk-EZG3SRSM.js → chunk-CA62YCFK.js} +1 -1
  168. package/dist/{chunk-JXLFC5BX.js → chunk-CC5NUAOF.js} +1 -1
  169. package/dist/{chunk-74B3HREV.js → chunk-CJGLMT44.js} +1 -1
  170. package/dist/{chunk-TCQIJ2VO.js → chunk-CRGYWLP6.js} +1 -1
  171. package/dist/{chunk-2UEMCSVB.js → chunk-CXJMWEZC.js} +1 -1
  172. package/dist/{chunk-HHCD55D3.js → chunk-D33K2BCZ.js} +1 -1
  173. package/dist/{chunk-SNKLBPXQ.js → chunk-DGB7R42F.js} +1 -1
  174. package/dist/{chunk-GYVL23ZK.js → chunk-DLYYW77C.js} +1 -1
  175. package/dist/{chunk-7VE7SOH6.js → chunk-E3JUS3CR.js} +1 -1
  176. package/dist/{chunk-X2R3GWCB.js → chunk-ECHQLOWI.js} +2 -2
  177. package/dist/{chunk-QDVXEQJC.js → chunk-EDQHZOU3.js} +3 -3
  178. package/dist/{chunk-HLCQHRHJ.js → chunk-EO64FXVL.js} +1 -1
  179. package/dist/{chunk-BXGFDSC7.js → chunk-F6OYNO7O.js} +3 -3
  180. package/dist/{chunk-5DI546IE.js → chunk-FCRJAFTU.js} +7 -7
  181. package/dist/{chunk-LO3CTXQI.js → chunk-FMKQSDBQ.js} +3 -3
  182. package/dist/chunk-FYVV6GJN.js +32 -0
  183. package/dist/{chunk-D7XI5DN5.js → chunk-GMXOZEF5.js} +1 -1
  184. package/dist/{chunk-3HY3KHMR.js → chunk-GR6XGA5V.js} +2 -2
  185. package/dist/{chunk-R4H352IB.js → chunk-HHTAGV5R.js} +1 -1
  186. package/dist/{chunk-EVOLZQTB.js → chunk-HIDOUXLD.js} +1 -1
  187. package/dist/{chunk-CMLRFHBD.js → chunk-HJ6ZY4UX.js} +2 -2
  188. package/dist/{chunk-F37ZBF4D.js → chunk-HYUO2RHC.js} +1 -1
  189. package/dist/{chunk-QGDQ5YDC.js → chunk-IMF3CPTY.js} +2 -2
  190. package/dist/{chunk-TRV7VZW6.js → chunk-IRGS5FEC.js} +1 -1
  191. package/dist/{chunk-P67SLIPX.js → chunk-IRLHICS4.js} +2 -2
  192. package/dist/{chunk-HDJMTHAP.js → chunk-IZH5DCOQ.js} +1 -1
  193. package/dist/{chunk-3ZJ6X3ZJ.js → chunk-JD5K6Y7Q.js} +3 -3
  194. package/dist/{chunk-7R77GFUO.js → chunk-JNDZGQGS.js} +2 -2
  195. package/dist/{chunk-DJAYXYDZ.js → chunk-KM5OKCW6.js} +2 -2
  196. package/dist/{chunk-NDZEN2ON.js → chunk-KQUENZR3.js} +1 -1
  197. package/dist/{chunk-PD3RJT3F.js → chunk-LDSLEEWR.js} +3 -3
  198. package/dist/{chunk-MCZJ2SD7.js → chunk-LZ3TKYAY.js} +2 -2
  199. package/dist/{chunk-LDVZYLA6.js → chunk-M2USLODI.js} +2 -2
  200. package/dist/{chunk-VGAZHT6S.js → chunk-M4VA76JF.js} +6 -6
  201. package/dist/chunk-ML4E6FFN.js +87 -0
  202. package/dist/{chunk-AHK3M2QG.js → chunk-MUBJN75T.js} +19 -8
  203. package/dist/{chunk-5B5N4X5H.js → chunk-N3LAAA4R.js} +3 -3
  204. package/dist/{chunk-RVFSUF7V.js → chunk-N3R2POGO.js} +3 -3
  205. package/dist/chunk-NZHWGKPW.js +334 -0
  206. package/dist/{chunk-XIJU47UT.js → chunk-O2J5PSWI.js} +2 -2
  207. package/dist/{chunk-QPAUKLNC.js → chunk-O3CY4MHN.js} +3 -3
  208. package/dist/{chunk-R75TTEHL.js → chunk-OAD4AXYJ.js} +1 -1
  209. package/dist/{chunk-ZCA3JNQS.js → chunk-ODN3LSYW.js} +1 -1
  210. package/dist/{chunk-BKHS6YPM.js → chunk-OMVGWZ3V.js} +1 -1
  211. package/dist/{chunk-ETVXKUW7.js → chunk-PW6QXVIX.js} +3 -3
  212. package/dist/{chunk-PGLRFPYY.js → chunk-Q7RI66TT.js} +4 -4
  213. package/dist/{chunk-FYN2HXEB.js → chunk-QRUQOITJ.js} +1 -1
  214. package/dist/{chunk-XNTYJAHL.js → chunk-QULAFXL3.js} +1 -1
  215. package/dist/{chunk-SIYTWQHB.js → chunk-R2RHSKAT.js} +3 -3
  216. package/dist/{chunk-V2K6EHJA.js → chunk-RNVPYDRQ.js} +1 -1
  217. package/dist/{chunk-TNYRJVKE.js → chunk-RTMFZLU3.js} +2 -2
  218. package/dist/{chunk-WGSIKYDE.js → chunk-RUNZWWN6.js} +5 -5
  219. package/dist/{chunk-QNG5MH7P.js → chunk-RXHY5T2Z.js} +2 -2
  220. package/dist/{chunk-Z3GOZ42N.js → chunk-S4ADDFRT.js} +3 -3
  221. package/dist/{chunk-EFTWYGN5.js → chunk-TBOVJ7RL.js} +1 -1
  222. package/dist/{chunk-ZPJX57QO.js → chunk-TPABM6DW.js} +2 -2
  223. package/dist/{chunk-ACXYNJZR.js → chunk-TSLXQVBC.js} +1 -1
  224. package/dist/{chunk-WK3OWTOD.js → chunk-TTUFOH2Y.js} +1 -1
  225. package/dist/{chunk-LHGDKWHV.js → chunk-U3ZUZ7VU.js} +3 -3
  226. package/dist/{chunk-X4QL7STV.js → chunk-UEO3A76N.js} +1 -1
  227. package/dist/{chunk-BMAE4KDY.js → chunk-UPQ4MDPE.js} +2 -2
  228. package/dist/{chunk-LILN66O3.js → chunk-V4CGY2CI.js} +1 -1
  229. package/dist/{chunk-PY3PKWAN.js → chunk-V67VL3WD.js} +1 -1
  230. package/dist/{chunk-JLWCONCZ.js → chunk-VARFEAUH.js} +5 -5
  231. package/dist/{chunk-OL42IZ6I.js → chunk-VFC7KVCW.js} +1 -1
  232. package/dist/{chunk-HTWN4IJJ.js → chunk-W2T7RGH7.js} +2 -2
  233. package/dist/{chunk-3FBJACLW.js → chunk-WAF36OFS.js} +5 -5
  234. package/dist/{chunk-EILMLMSG.js → chunk-WOHPQEBZ.js} +1 -1
  235. package/dist/{chunk-QWDTC2UI.js → chunk-WSKVFRKK.js} +1 -1
  236. package/dist/{chunk-TAOVSH32.js → chunk-X5ZUDJNK.js} +1 -1
  237. package/dist/{chunk-CNEHTSA5.js → chunk-XJU53WMW.js} +1 -1
  238. package/dist/{chunk-VGYVCLN4.js → chunk-XQMRSL7Z.js} +1 -1
  239. package/dist/{chunk-UC4YASMJ.js → chunk-YMBXTGFC.js} +2 -2
  240. package/dist/{chunk-VWEF6LTZ.js → chunk-YOCTDR2P.js} +1 -1
  241. package/dist/{chunk-H4OV6SYF.js → chunk-YRNIPS4M.js} +2 -2
  242. package/dist/{chunk-2BIGA4VD.js → chunk-YWPUT6JQ.js} +2 -2
  243. package/dist/{chunk-5DYNF5U2.js → chunk-Z6HWOPI7.js} +1 -1
  244. package/dist/{chunk-DQ3MKG7I.js → chunk-Z6OZNSHF.js} +1 -1
  245. package/dist/{chunk-PRNJO37A.js → chunk-Z7BA2EVV.js} +2 -2
  246. package/dist/{chunk-YKM3HCDL.js → chunk-ZAQ7CEYN.js} +2 -2
  247. package/dist/{chunk-WYO5KDET.js → chunk-ZC73GPA3.js} +1 -1
  248. package/dist/{chunk-SQHDMVU7.js → chunk-ZFSKRN6D.js} +1 -1
  249. package/dist/{chunk-4DKECHWE.js → chunk-ZMZNKDPO.js} +4 -4
  250. package/dist/{chunk-2FAEKL36.js → chunk-ZNEMXLTY.js} +1 -1
  251. package/dist/generated/index.d.ts +1 -0
  252. package/dist/generated/index.js +141 -140
  253. package/dist/index.js +141 -140
  254. package/dist/styles.css +173 -47
  255. package/package.json +3 -3
  256. package/dist/DeliveryReceipt-BILVVNTO.css +0 -64
  257. package/dist/chunk-GTNXDLYH.js +0 -146
  258. package/dist/chunk-L6E4DVIF.js +0 -131
  259. package/dist/chunk-VG4WNM7W.js +0 -22
  260. /package/dist/{chunk-RH6TJZRO.js → chunk-II7TPQ64.js} +0 -0
@@ -0,0 +1,334 @@
1
+ import { CopyButton, copyGlyph, CopyStatus } from './chunk-IRGS5FEC.js';
2
+ import { useClipboard } from './chunk-STJ7QBC3.js';
3
+ import { IconButton } from './chunk-KM5OKCW6.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './CodeBlock-GPNAG43I.css';
6
+ import { forwardRef, useRef, useState, useLayoutEffect, useMemo } from 'react';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+
9
+ // src/CodeBlock/syntax.ts
10
+ var CODE_BLOCK_GRAMMARS = ["json", "yaml", "yml"];
11
+ var CODE_BLOCK_HIGHLIGHT_LIMIT = 256 * 1024;
12
+ function grammarOf(language) {
13
+ const name = language?.trim().toLowerCase();
14
+ return CODE_BLOCK_GRAMMARS.includes(name ?? "") ? name : null;
15
+ }
16
+ var Runs = class {
17
+ list = [];
18
+ push(kind, text) {
19
+ if (text === "") return;
20
+ const last = this.list[this.list.length - 1];
21
+ if (last && last.kind === kind) last.text += text;
22
+ else this.list.push({ kind, text });
23
+ }
24
+ };
25
+ var JSON_NUMBER = /-?\d+(?:\.\d+)?(?:[eE][-+]?\d+)?/y;
26
+ var WORD = /[A-Za-z_$][\w$]*/y;
27
+ function quoted(line, start, quote, escapes) {
28
+ let i = start + 1;
29
+ while (i < line.length) {
30
+ const ch = line[i];
31
+ if (escapes && ch === "\\") i += 2;
32
+ else if (ch === quote) {
33
+ if (!escapes && line[i + 1] === quote) i += 2;
34
+ else return i + 1;
35
+ } else i += 1;
36
+ }
37
+ return line.length;
38
+ }
39
+ function sticky(pattern, line, at) {
40
+ pattern.lastIndex = at;
41
+ return pattern.test(line) ? pattern.lastIndex : at;
42
+ }
43
+ function jsonLine(line, out) {
44
+ let i = 0;
45
+ while (i < line.length) {
46
+ const ch = line[i];
47
+ if (ch === " " || ch === " " || ch === "\r") {
48
+ let end = i + 1;
49
+ while (end < line.length && /[ \t\r]/.test(line[end])) end += 1;
50
+ out.push(null, line.slice(i, end));
51
+ i = end;
52
+ } else if (ch === '"') {
53
+ const end = quoted(line, i, '"', true);
54
+ let after = end;
55
+ while (after < line.length && (line[after] === " " || line[after] === " ")) after += 1;
56
+ out.push(line[after] === ":" ? "key" : "string", line.slice(i, end));
57
+ i = end;
58
+ } else if ("{}[]:,".includes(ch)) {
59
+ out.push("punctuation", ch);
60
+ i += 1;
61
+ } else if (ch === "-" || ch >= "0" && ch <= "9") {
62
+ const end = sticky(JSON_NUMBER, line, i);
63
+ out.push(end > i ? "number" : null, line.slice(i, Math.max(end, i + 1)));
64
+ i = Math.max(end, i + 1);
65
+ } else {
66
+ const end = sticky(WORD, line, i);
67
+ if (end > i) {
68
+ const word = line.slice(i, end);
69
+ out.push(word === "true" || word === "false" ? "boolean" : word === "null" ? "null" : null, word);
70
+ i = end;
71
+ } else {
72
+ out.push(null, ch);
73
+ i += 1;
74
+ }
75
+ }
76
+ }
77
+ }
78
+ var YAML_NUMBER = /^[-+]?(?:\d[\d_]*(?:\.\d*)?(?:[eE][-+]?\d+)?|\.\d+(?:[eE][-+]?\d+)?|0x[\da-fA-F]+|0o[0-7]+|\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))$/;
79
+ var YAML_BOOLEAN = /^(?:true|True|TRUE|false|False|FALSE)$/;
80
+ var YAML_NULL = /^(?:null|Null|NULL|~)$/;
81
+ var BLOCK_HEADER = /^[|>][-+]?\d?[-+]?\s*(?:#.*)?$/;
82
+ function scalarKind(text) {
83
+ if (YAML_BOOLEAN.test(text)) return "boolean";
84
+ if (YAML_NULL.test(text)) return "null";
85
+ if (YAML_NUMBER.test(text)) return "number";
86
+ return "string";
87
+ }
88
+ function plainEnd(line, start, flow) {
89
+ let i = start;
90
+ while (i < line.length) {
91
+ const ch = line[i];
92
+ if (ch === ":" && (i + 1 === line.length || /[\s,\]}]/.test(line[i + 1]))) return i;
93
+ if (ch === "#" && i > start && /\s/.test(line[i - 1])) return i;
94
+ if (flow && ",[]{}".includes(ch)) return i;
95
+ i += 1;
96
+ }
97
+ return i;
98
+ }
99
+ function pushScalar(out, text, kind) {
100
+ const trimmed = text.replace(/\s+$/, "");
101
+ out.push(kind ?? scalarKind(trimmed), trimmed);
102
+ out.push(null, text.slice(trimmed.length));
103
+ }
104
+ function yamlLine(line, out) {
105
+ const indent = /^[ \t]*/.exec(line)[0].length;
106
+ out.push(null, line.slice(0, indent));
107
+ let i = indent;
108
+ if (/^(?:---|\.\.\.)(?:\s|$)/.test(line.slice(i))) {
109
+ out.push("punctuation", line.slice(i, i + 3));
110
+ i += 3;
111
+ }
112
+ let depth = 0;
113
+ let block = null;
114
+ let expectKey = true;
115
+ while (i < line.length) {
116
+ const ch = line[i];
117
+ const rest = line.slice(i);
118
+ if (ch === " " || ch === " " || ch === "\r") {
119
+ const end = i + /^[ \t\r]+/.exec(rest)[0].length;
120
+ out.push(null, line.slice(i, end));
121
+ i = end;
122
+ } else if (ch === "#") {
123
+ out.push("comment", rest);
124
+ i = line.length;
125
+ } else if (ch === "-" && depth === 0 && (i + 1 === line.length || /\s/.test(line[i + 1]))) {
126
+ out.push("punctuation", "-");
127
+ i += 1;
128
+ expectKey = true;
129
+ } else if ("[]{},".includes(ch)) {
130
+ depth += ch === "[" || ch === "{" ? 1 : ch === "]" || ch === "}" ? -1 : 0;
131
+ depth = Math.max(depth, 0);
132
+ out.push("punctuation", ch);
133
+ i += 1;
134
+ expectKey = ch !== "]" && ch !== "}";
135
+ } else if (ch === ":" && (i + 1 === line.length || /\s/.test(line[i + 1]))) {
136
+ out.push("punctuation", ":");
137
+ i += 1;
138
+ expectKey = false;
139
+ } else if (depth === 0 && !expectKey && BLOCK_HEADER.test(rest)) {
140
+ const header = /^[|>][-+]?\d?[-+]?/.exec(rest)[0];
141
+ out.push("punctuation", header);
142
+ i += header.length;
143
+ block = indent;
144
+ } else if (ch === '"' || ch === "'") {
145
+ const end = quoted(line, i, ch, ch === '"');
146
+ let after = end;
147
+ while (after < line.length && (line[after] === " " || line[after] === " ")) after += 1;
148
+ const isKey = line[after] === ":" && (after + 1 === line.length || /\s/.test(line[after + 1]));
149
+ out.push(isKey ? "key" : "string", line.slice(i, end));
150
+ i = end;
151
+ } else {
152
+ const end = Math.max(plainEnd(line, i, depth > 0), i + 1);
153
+ const text = line.slice(i, end);
154
+ const isKey = line[end] === ":" && expectKey;
155
+ if (isKey) pushScalar(out, text, "key");
156
+ else pushScalar(out, text);
157
+ i = end;
158
+ }
159
+ }
160
+ return block;
161
+ }
162
+ function yaml(code, out) {
163
+ const lines = code.split("\n");
164
+ let block = null;
165
+ lines.forEach((line, index) => {
166
+ if (block !== null) {
167
+ const indent = /^[ \t]*/.exec(line)[0].length;
168
+ if (line.trim() === "" || indent > block) {
169
+ out.push(null, line.slice(0, Math.min(indent, line.length)));
170
+ out.push("string", line.slice(indent));
171
+ if (index < lines.length - 1) out.push(null, "\n");
172
+ return;
173
+ }
174
+ block = null;
175
+ }
176
+ block = yamlLine(line, out);
177
+ if (index < lines.length - 1) out.push(null, "\n");
178
+ });
179
+ }
180
+ function tokenizeCode(code, language) {
181
+ const grammar = grammarOf(language);
182
+ if (grammar === null || code.length > CODE_BLOCK_HIGHLIGHT_LIMIT) return null;
183
+ const out = new Runs();
184
+ if (grammar === "json") {
185
+ const lines = code.split("\n");
186
+ lines.forEach((line, index) => {
187
+ jsonLine(line, out);
188
+ if (index < lines.length - 1) out.push(null, "\n");
189
+ });
190
+ } else yaml(code, out);
191
+ return out.list;
192
+ }
193
+ function tokenLines(tokens) {
194
+ const lines = [[]];
195
+ for (const token of tokens) {
196
+ const parts = token.text.split("\n");
197
+ parts.forEach((part, index) => {
198
+ if (index > 0) lines.push([]);
199
+ if (part !== "") lines[lines.length - 1].push({ kind: token.kind, text: part });
200
+ });
201
+ }
202
+ return lines;
203
+ }
204
+ var CodeBlock = forwardRef(function CodeBlock2({
205
+ code,
206
+ language,
207
+ highlight = true,
208
+ filename,
209
+ showLineNumbers = false,
210
+ copyable = true,
211
+ copyLabel,
212
+ copyPlacement = "header",
213
+ prompt,
214
+ wrap = true,
215
+ maxHeight,
216
+ plain = false,
217
+ selectable = false,
218
+ focusWhenScrollable = false,
219
+ label,
220
+ className,
221
+ style,
222
+ ...rest
223
+ }, ref) {
224
+ const box = useRef(null);
225
+ const body = code.replace(/\n+$/, "");
226
+ const corner = !plain && copyable && copyPlacement === "corner";
227
+ const showHeader = !plain && !corner && (filename !== void 0 || language !== void 0 || copyable);
228
+ const perLine = showLineNumbers || prompt !== void 0;
229
+ const [overflows, setOverflows] = useState(false);
230
+ useLayoutEffect(() => {
231
+ if (!focusWhenScrollable) return;
232
+ const node = box.current;
233
+ if (!node) return;
234
+ const measure = () => setOverflows(node.scrollHeight > node.clientHeight || node.scrollWidth > node.clientWidth);
235
+ measure();
236
+ if (typeof ResizeObserver !== "function") return;
237
+ const watch = new ResizeObserver(measure);
238
+ watch.observe(node);
239
+ return () => watch.disconnect();
240
+ }, [focusWhenScrollable, body, wrap, showLineNumbers, prompt, maxHeight]);
241
+ const focusable = selectable || focusWhenScrollable && overflows;
242
+ const onKeyDown = (event) => {
243
+ const isA = event.code === "KeyA" || !event.code && event.key.toLowerCase() === "a";
244
+ if (!isA || event.altKey || event.shiftKey || !(event.metaKey || event.ctrlKey)) return;
245
+ const node = box.current;
246
+ const selection = window.getSelection?.();
247
+ if (!node || !selection) return;
248
+ event.preventDefault();
249
+ selection.removeAllRanges();
250
+ const range = document.createRange();
251
+ range.selectNodeContents(node);
252
+ selection.addRange(range);
253
+ };
254
+ const tokens = useMemo(() => highlight ? tokenizeCode(body, language) : null, [highlight, body, language]);
255
+ let content = tokens ? drawTokens(tokens) : body;
256
+ let digits;
257
+ if (perLine) {
258
+ const lines = body.split("\n");
259
+ const coloured = tokens ? tokenLines(tokens) : null;
260
+ if (showLineNumbers) digits = String(lines.length).length;
261
+ content = lines.map((line, index) => /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__line", children: [
262
+ showLineNumbers ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__ln", "aria-hidden": true, children: index + 1 }) : null,
263
+ prompt === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__prompt", "aria-hidden": true, children: prompt }),
264
+ /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__linecontent", children: coloured ? drawTokens(coloured[index] ?? []) : line }),
265
+ index < lines.length - 1 ? "\n" : null
266
+ ] }, `${index}-${line}`));
267
+ }
268
+ return /* @__PURE__ */ jsxs(
269
+ "div",
270
+ {
271
+ ...rest,
272
+ ref,
273
+ className: cx(
274
+ "crewlet-codeblock",
275
+ showLineNumbers && "crewlet-codeblock--numbered",
276
+ !wrap && "crewlet-codeblock--nowrap",
277
+ corner && "crewlet-codeblock--corner",
278
+ maxHeight !== void 0 && "crewlet-codeblock--bounded",
279
+ className
280
+ ),
281
+ style: maxHeight === void 0 && digits === void 0 ? style : {
282
+ ...style,
283
+ ...maxHeight === void 0 ? null : { "--crewlet-codeblock-max-height": typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight },
284
+ ...digits === void 0 ? null : { "--crewlet-codeblock-digits": String(digits) }
285
+ },
286
+ children: [
287
+ showHeader ? /* @__PURE__ */ jsxs("div", { className: "crewlet-codeblock__header", children: [
288
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__meta", children: [
289
+ filename === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__filename", children: filename }),
290
+ language !== void 0 && filename === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__lang", children: language }) : null
291
+ ] }),
292
+ copyable ? /* @__PURE__ */ jsx(CopyButton, { text: code, label: copyLabel ?? "Copy", className: "crewlet-codeblock__copy" }) : null
293
+ ] }) : null,
294
+ corner ? /* @__PURE__ */ jsx(CornerCopy, { text: code, label: copyLabel ?? "Copy code" }) : null,
295
+ /* @__PURE__ */ jsx(
296
+ "pre",
297
+ {
298
+ ref: box,
299
+ className: "crewlet-codeblock__pre",
300
+ "data-language": language,
301
+ tabIndex: focusable ? 0 : void 0,
302
+ role: focusable ? "region" : void 0,
303
+ "aria-label": focusable ? label : void 0,
304
+ onKeyDown: selectable ? onKeyDown : void 0,
305
+ children: /* @__PURE__ */ jsx("code", { className: "crewlet-codeblock__code", children: content })
306
+ }
307
+ )
308
+ ]
309
+ }
310
+ );
311
+ });
312
+ function drawTokens(tokens) {
313
+ return tokens.map(
314
+ (token, index) => token.kind === null ? token.text : /* @__PURE__ */ jsx("span", { className: `crewlet-codeblock__tok crewlet-codeblock__tok--${token.kind}`, children: token.text }, index)
315
+ );
316
+ }
317
+ function CornerCopy({ text, label }) {
318
+ const { state, attempt, copy } = useClipboard();
319
+ const hint = state === "copied" ? "Copied" : state === "failed" ? "Copy failed" : label;
320
+ return /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__corner", children: [
321
+ /* @__PURE__ */ jsx(IconButton, { label, size: "sm", variant: "ghost", icon: copyGlyph(state), tooltip: hint, onClick: () => void copy(text) }),
322
+ /* @__PURE__ */ jsx(
323
+ CopyStatus,
324
+ {
325
+ state,
326
+ attempt,
327
+ copiedMessage: "copied to the clipboard",
328
+ failedMessage: "the browser refused the clipboard"
329
+ }
330
+ )
331
+ ] });
332
+ }
333
+
334
+ export { CodeBlock };
@@ -1,10 +1,10 @@
1
- import { Modal } from './chunk-UJETUDIL.js';
1
+ import { Modal } from './chunk-7PK2Z5JY.js';
2
2
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
3
3
  import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
4
4
  import { Popover } from './chunk-AJFA2XDQ.js';
5
5
  import { Skeleton } from './chunk-WFAJYBLX.js';
6
6
  import { Text } from './chunk-475DOAWF.js';
7
- import { Input } from './chunk-VGYVCLN4.js';
7
+ import { Input } from './chunk-XQMRSL7Z.js';
8
8
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
9
9
  import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
10
10
  import { returnFocus } from './chunk-4ITETIGZ.js';
@@ -1,10 +1,10 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-N37AX25G.js';
2
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-3SUIU2ZO.js';
3
3
  import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
4
- import { Checkbox } from './chunk-TYCICVST.js';
4
+ import { Checkbox } from './chunk-BRMJPZC4.js';
5
5
  import { EmptyState } from './chunk-PPUR46MK.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
- import { IconButton } from './chunk-DJAYXYDZ.js';
7
+ import { IconButton } from './chunk-KM5OKCW6.js';
8
8
  import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
9
9
  import { focusables } from './chunk-EDPMHSLZ.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-QGDQ5YDC.js';
1
+ import { Button } from './chunk-IMF3CPTY.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ReceiptStrip-V7ASVZVV.css';
4
4
  import { CircleAlertGlyph, TriangleAlertGlyph, InfoGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
2
- import { SegmentedControl } from './chunk-D7XI5DN5.js';
2
+ import { SegmentedControl } from './chunk-GMXOZEF5.js';
3
3
  import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-F4CM5KD3.js';
2
- import { SegmentedControl } from './chunk-D7XI5DN5.js';
2
+ import { SegmentedControl } from './chunk-GMXOZEF5.js';
3
3
  import { EmptyState } from './chunk-PPUR46MK.js';
4
4
  import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { FormField, Textarea } from './chunk-VGYVCLN4.js';
2
+ import { FormField, Textarea } from './chunk-XQMRSL7Z.js';
3
3
  import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
4
4
  import { Kbd } from './chunk-VBBLHS2Y.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
6
- import { IconButton } from './chunk-DJAYXYDZ.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
+ import { IconButton } from './chunk-KM5OKCW6.js';
7
7
  import { isComposing } from './chunk-EDPMHSLZ.js';
8
8
  import { announce } from './chunk-WGMKERCR.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,11 +1,11 @@
1
- import { RefusalStrip, ReceiptStrip } from './chunk-R75TTEHL.js';
1
+ import { RefusalStrip, ReceiptStrip } from './chunk-OAD4AXYJ.js';
2
2
  import { ChangeList } from './chunk-NB53SAL4.js';
3
3
  import { StatusCard } from './chunk-NWKH5FF7.js';
4
- import { Callout } from './chunk-X4QL7STV.js';
4
+ import { Callout } from './chunk-UEO3A76N.js';
5
5
  import { toInstant, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
6
- import { Checkbox } from './chunk-TYCICVST.js';
6
+ import { Checkbox } from './chunk-BRMJPZC4.js';
7
7
  import { Disclosure } from './chunk-D5O64CVE.js';
8
- import { Button } from './chunk-QGDQ5YDC.js';
8
+ import { Button } from './chunk-IMF3CPTY.js';
9
9
  import { Spinner } from './chunk-XSPCITPN.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
11
  import './VisuallyHidden-OUYVMKEH.css';
@@ -1,5 +1,5 @@
1
1
  import { useSendOnEnter, SendKeysHint } from './chunk-UZMXC5T6.js';
2
- import { Textarea } from './chunk-VGYVCLN4.js';
2
+ import { Textarea } from './chunk-XQMRSL7Z.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ChatScale-LGESYXCO.css';
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-QGDQ5YDC.js';
1
+ import { Button } from './chunk-IMF3CPTY.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './Clamp-Q5WKCGWY.css';
4
4
  import { useState, useCallback, useRef, useId, useLayoutEffect } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
- import { Callout } from './chunk-X4QL7STV.js';
2
+ import { Callout } from './chunk-UEO3A76N.js';
3
3
  import { Skeleton } from './chunk-WFAJYBLX.js';
4
- import { Button } from './chunk-QGDQ5YDC.js';
4
+ import { Button } from './chunk-IMF3CPTY.js';
5
5
  import './RichEditor-5CF3QV3J.css';
6
6
  import { forwardRef, useState, useEffect } from 'react';
7
7
  import { jsx } from 'react/jsx-runtime';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-C422VBJS.js').then(
12
+ loading ??= import('./Editor-FXREHINI.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,5 +1,5 @@
1
1
  import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
2
- import { FormField, Input, InputAffix } from './chunk-VGYVCLN4.js';
2
+ import { FormField, Input, InputAffix } from './chunk-XQMRSL7Z.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ColorField-2OIOWT3Z.css';
5
5
  import { useId, useState } from 'react';
@@ -1,7 +1,7 @@
1
- import { copyGlyph, CopyStatus } from './chunk-TRV7VZW6.js';
1
+ import { copyGlyph, CopyStatus } from './chunk-IRGS5FEC.js';
2
2
  import { useClipboard } from './chunk-STJ7QBC3.js';
3
3
  import { StatusDot } from './chunk-QRE6JCHS.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './SettingsTable-MTZJTKA6.css';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,11 +1,11 @@
1
1
  import { Select } from './chunk-657WR3MX.js';
2
- import { Modal } from './chunk-UJETUDIL.js';
3
- import { CopyButton } from './chunk-TRV7VZW6.js';
4
- import { Callout } from './chunk-X4QL7STV.js';
2
+ import { Modal } from './chunk-7PK2Z5JY.js';
3
+ import { CopyButton } from './chunk-IRGS5FEC.js';
4
+ import { Callout } from './chunk-UEO3A76N.js';
5
5
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
- import { Button } from './chunk-QGDQ5YDC.js';
8
- import { IconButton } from './chunk-DJAYXYDZ.js';
7
+ import { Button } from './chunk-IMF3CPTY.js';
8
+ import { IconButton } from './chunk-KM5OKCW6.js';
9
9
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
11
  import './ShareDialog-72VTMM4K.css';
@@ -1,6 +1,6 @@
1
- import { CHAT_MESSAGE_CLASS } from './chunk-VXSCGB2L.js';
1
+ import { CHAT_MESSAGE_CLASS } from './chunk-6RBE5RVG.js';
2
2
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
3
- import { Button } from './chunk-QGDQ5YDC.js';
3
+ import { Button } from './chunk-IMF3CPTY.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './ChatThread-V5MANQ3C.css';
@@ -1,9 +1,9 @@
1
1
  import { Timeline } from './chunk-XDUXAQIS.js';
2
2
  import { Section } from './chunk-WFCWPXJN.js';
3
- import { Composer } from './chunk-FYN2HXEB.js';
3
+ import { Composer } from './chunk-QRUQOITJ.js';
4
4
  import { Disclosure } from './chunk-D5O64CVE.js';
5
- import { ArtifactPanel } from './chunk-EVOLZQTB.js';
6
- import { Button } from './chunk-QGDQ5YDC.js';
5
+ import { ArtifactPanel } from './chunk-HIDOUXLD.js';
6
+ import { Button } from './chunk-IMF3CPTY.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './AgentHandoffPanel-AIU7YWWB.css';
9
9
  import { useId, useRef, useEffect } from 'react';
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-DJAYXYDZ.js';
1
+ import { IconButton } from './chunk-KM5OKCW6.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './FilterPill-4GMNFZND.css';
4
4
  import { XGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
1
  import { Select } from './chunk-657WR3MX.js';
2
- import { Combobox } from './chunk-DQ3MKG7I.js';
3
- import { FormField, Textarea, InputAffix } from './chunk-VGYVCLN4.js';
2
+ import { Combobox } from './chunk-Z6OZNSHF.js';
3
+ import { FormField, Textarea, InputAffix } from './chunk-XQMRSL7Z.js';
4
4
  import './Input-YVCNNTYT.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
6
6
  import './HitArea-QUOS6ZDJ.css';
@@ -1,6 +1,6 @@
1
1
  import { safeHref } from './chunk-KBZO4B33.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './InlineRef-LHU6MH4I.css';
3
+ import './InlineRef-CUBTBIYD.css';
4
4
  import { Children, isValidElement, cloneElement } from 'react';
5
5
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
6
 
@@ -2,7 +2,7 @@ import { Divider } from './chunk-6KWNXIDE.js';
2
2
  import { LockedLabel } from './chunk-TODOBUXO.js';
3
3
  import { KeyChip } from './chunk-HBDA76EZ.js';
4
4
  import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
6
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
1
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
2
2
  import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
3
3
  import { Document } from './chunk-I4PBFJGX.js';
4
- import { Composer } from './chunk-FYN2HXEB.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
6
- import { IconButton } from './chunk-DJAYXYDZ.js';
4
+ import { Composer } from './chunk-QRUQOITJ.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
+ import { IconButton } from './chunk-KM5OKCW6.js';
7
7
  import { Count } from './chunk-Y5CMDLQM.js';
8
8
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-DJAYXYDZ.js';
1
+ import { IconButton } from './chunk-KM5OKCW6.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './Callout-WLZKAFPT.css';
4
4
  import { XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
- import { ConfirmModal } from './chunk-UJETUDIL.js';
2
1
  import { InlineCode } from './chunk-W4UJWFCZ.js';
3
- import { Callout } from './chunk-X4QL7STV.js';
2
+ import { ConfirmModal } from './chunk-7PK2Z5JY.js';
3
+ import { Callout } from './chunk-UEO3A76N.js';
4
4
  import './LinkInterstitial-ET4MSVSV.css';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
 
@@ -1,4 +1,4 @@
1
- import { Copyable } from './chunk-3HY3KHMR.js';
1
+ import { Copyable } from './chunk-GR6XGA5V.js';
2
2
  import { normalizeHex } from './chunk-7W3LYIOC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ColorSwatch-HBNYO6EK.css';
@@ -1,5 +1,5 @@
1
1
  import { InlineCode } from './chunk-W4UJWFCZ.js';
2
- import { FormField, Input } from './chunk-VGYVCLN4.js';
2
+ import { FormField, Input } from './chunk-XQMRSL7Z.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
 
5
5
  function confirmMatches(typed, phrase) {
@@ -1,8 +1,8 @@
1
- import { Modal } from './chunk-UJETUDIL.js';
2
- import { Callout } from './chunk-X4QL7STV.js';
3
- import { SegmentedControl } from './chunk-D7XI5DN5.js';
4
- import { FormField, Input } from './chunk-VGYVCLN4.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
1
+ import { Modal } from './chunk-7PK2Z5JY.js';
2
+ import { Callout } from './chunk-UEO3A76N.js';
3
+ import { SegmentedControl } from './chunk-GMXOZEF5.js';
4
+ import { FormField, Input } from './chunk-XQMRSL7Z.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
6
  import { useState } from 'react';
7
7
  import { ClockGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { useDownload, safeFilename } from './chunk-YNRKVY7X.js';
2
- import { Button } from './chunk-QGDQ5YDC.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
5
5
  import { CheckGlyph, CircleAlertGlyph, ArrowDownToLineGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
- import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-OU4P4E3U.js';
1
+ import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-7J2RIAZ4.js';
2
2
  import { Card } from './chunk-E7KRB77B.js';
3
- import { Button } from './chunk-QGDQ5YDC.js';
3
+ import { Button } from './chunk-IMF3CPTY.js';
4
4
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';