@crewlethq/ui 0.31.1 → 0.33.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 (278) hide show
  1. package/README.md +151 -5
  2. package/dist/AccessDeniedCard/AccessDeniedCard.d.ts +5 -0
  3. package/dist/AccessDeniedCard/index.js +1 -5
  4. package/dist/AccessDeniedCard-QVNDMT46.css +8 -0
  5. package/dist/AppShell/index.js +4 -4
  6. package/dist/{AppShell-GCM4TDVY.css → AppShell-JTSEOA57.css} +3 -1
  7. package/dist/ArrangeGroup/ArrangeGroup.d.ts +16 -1
  8. package/dist/ArrangeGroup/index.d.ts +1 -1
  9. package/dist/ArrangeGroup/index.js +1 -1
  10. package/dist/{ArrangeGroup-GY5YMP6E.css → ArrangeGroup-KRWWOJKR.css} +43 -0
  11. package/dist/ArrangeList/index.js +2 -2
  12. package/dist/ArtifactBar/index.js +12 -12
  13. package/dist/{ArtifactBar-MLMJHWY6.css → ArtifactBar-C462VD4C.css} +8 -3
  14. package/dist/ArtifactCard/ArtifactCard.d.ts +19 -1
  15. package/dist/ArtifactCard/index.d.ts +1 -1
  16. package/dist/ArtifactCard/index.js +4 -4
  17. package/dist/{ArtifactCard-EXVAEBV6.css → ArtifactCard-AS5Z4CVI.css} +17 -2
  18. package/dist/ArtifactCover/index.js +6 -6
  19. package/dist/ArtifactIcon/index.js +5 -5
  20. package/dist/ArtifactPanel/ArtifactPanel.d.ts +6 -2
  21. package/dist/ArtifactPanel/index.js +1 -1
  22. package/dist/{ArtifactPanel-YFXT5O77.css → ArtifactPanel-HW3SU7CP.css} +25 -7
  23. package/dist/Avatar/Avatar.d.ts +6 -4
  24. package/dist/Avatar/index.js +2 -2
  25. package/dist/AvatarPicker/index.js +8 -8
  26. package/dist/Callout/index.js +1 -1
  27. package/dist/{Callout-SXXK4B5R.css → Callout-ZAVG3P66.css} +46 -6
  28. package/dist/Canvas/Canvas.d.ts +81 -4
  29. package/dist/Canvas/ShortcutTip.d.ts +22 -0
  30. package/dist/Canvas/geometry.d.ts +13 -3
  31. package/dist/Canvas/index.d.ts +4 -2
  32. package/dist/Canvas/index.js +5 -3
  33. package/dist/{Canvas-YVXHMWLN.css → Canvas-VUG2HLZK.css} +62 -3
  34. package/dist/CanvasBoard/CanvasBoard.d.ts +110 -12
  35. package/dist/CanvasBoard/budget.d.ts +9 -3
  36. package/dist/CanvasBoard/index.d.ts +2 -2
  37. package/dist/CanvasBoard/index.js +9 -5
  38. package/dist/CanvasBoard-5NNSKY6A.css +462 -0
  39. package/dist/CanvasToolbar/CanvasToolbar.d.ts +48 -0
  40. package/dist/CanvasToolbar/index.d.ts +3 -0
  41. package/dist/CanvasToolbar/index.js +12 -0
  42. package/dist/CanvasToolbar-EM5EVZED.css +34 -0
  43. package/dist/ChangeMark/index.js +4 -4
  44. package/dist/CharacterPicker/index.js +2 -2
  45. package/dist/Charts/ActivityStrip.d.ts +16 -1
  46. package/dist/Charts/BarList.d.ts +6 -0
  47. package/dist/Charts/ChartEmpty.d.ts +33 -0
  48. package/dist/Charts/Legend.d.ts +6 -0
  49. package/dist/Charts/StackedBar.d.ts +4 -1
  50. package/dist/Charts/StackedColumns.d.ts +14 -3
  51. package/dist/Charts/TimeSeries.d.ts +11 -1
  52. package/dist/Charts/index.d.ts +2 -0
  53. package/dist/Charts/index.js +1 -1
  54. package/dist/{Charts-RY4JN5FC.css → Charts-MBJG72BS.css} +140 -16
  55. package/dist/Checkbox/index.js +1 -1
  56. package/dist/{Checkbox-5UORUG3F.css → Checkbox-ALWG3WV2.css} +11 -0
  57. package/dist/CommandPalette/index.js +3 -3
  58. package/dist/{CommandPalette-HBTNKHZQ.css → CommandPalette-7CFGVBND.css} +4 -0
  59. package/dist/CommentThread/index.js +5 -5
  60. package/dist/Container/index.js +1 -1
  61. package/dist/{Container-3TSKMGNI.css → Container-34BAKG7B.css} +3 -1
  62. package/dist/{DashboardCover-RMINBODB.css → DashboardCover-KYGYMRKW.css} +42 -9
  63. package/dist/DataTable/index.js +5 -5
  64. package/dist/{DataTable-WZK3V62B.css → DataTable-NL2YWAIA.css} +4 -1
  65. package/dist/DataView/index.js +9 -9
  66. package/dist/DateTimePicker/index.js +3 -3
  67. package/dist/DocTabsEditor/DocTabsEditor.d.ts +34 -21
  68. package/dist/DocTabsEditor/index.js +4 -1
  69. package/dist/DocTabsEditor-4M452LNS.css +189 -0
  70. package/dist/Document/Document.d.ts +18 -1
  71. package/dist/Document/index.d.ts +2 -2
  72. package/dist/Document/index.js +1 -1
  73. package/dist/{Document-G3YTZIUL.css → Document-JUGCSQ4L.css} +78 -5
  74. package/dist/EditingStatus/index.js +1 -1
  75. package/dist/{EditingStatus-L6THUAN7.css → EditingStatus-NNA2CKIL.css} +17 -4
  76. package/dist/{Editor-YZ7KG2RD.js → Editor-UUZ7XKCU.js} +5 -5
  77. package/dist/EntityChip/index.js +3 -3
  78. package/dist/FactList/index.js +3 -3
  79. package/dist/FollowBanner/index.js +3 -3
  80. package/dist/Fullscreen/index.d.ts +1 -0
  81. package/dist/Fullscreen/index.js +1 -1
  82. package/dist/Fullscreen/useIdle.d.ts +16 -0
  83. package/dist/HuePicker/index.js +3 -3
  84. package/dist/ImageUpload/index.js +3 -3
  85. package/dist/Layer/index.d.ts +1 -1
  86. package/dist/Layer/index.js +1 -1
  87. package/dist/Layer/place.d.ts +18 -0
  88. package/dist/LayersList/LayersList.d.ts +57 -0
  89. package/dist/LayersList/index.d.ts +3 -0
  90. package/dist/LayersList/index.js +3 -0
  91. package/dist/LayersList-NQZEIPZB.css +82 -0
  92. package/dist/LinkInterstitial/index.js +4 -4
  93. package/dist/ListInput/index.js +1 -1
  94. package/dist/Markdown/index.js +1 -1
  95. package/dist/MarkdownEditor/index.js +5 -5
  96. package/dist/MediaMatch/index.d.ts +1 -0
  97. package/dist/MediaMatch/index.js +1 -0
  98. package/dist/MediaMatch/useMediaMatch.d.ts +19 -0
  99. package/dist/Menu/index.js +2 -2
  100. package/dist/MergeConflicts/index.js +4 -4
  101. package/dist/Modal/index.js +2 -2
  102. package/dist/{Modal-XOSV6FAH.css → Modal-7MWRCWAI.css} +30 -0
  103. package/dist/Note/index.js +1 -1
  104. package/dist/{Note-ONSKKTOA.css → Note-WI5MLZOO.css} +13 -0
  105. package/dist/OrgLabel/index.js +3 -3
  106. package/dist/OrgNode/index.js +4 -4
  107. package/dist/OrgTable/index.js +7 -7
  108. package/dist/PeopleRail/index.js +3 -3
  109. package/dist/Popover/index.js +2 -2
  110. package/dist/PresenceStack/index.js +3 -3
  111. package/dist/{PresenceStack-QSXQJND5.css → PresenceStack-FJJQVH74.css} +11 -3
  112. package/dist/PresenterView/PresenterView.d.ts +3 -0
  113. package/dist/PresenterView/index.js +5 -3
  114. package/dist/PresenterView-T3EXIQ5S.css +147 -0
  115. package/dist/Principal/index.js +3 -3
  116. package/dist/PrincipalPicker/index.js +4 -4
  117. package/dist/RichEditor/index.js +5 -5
  118. package/dist/RichEditor/schema.d.ts +1 -1
  119. package/dist/RichEditorMarkdown/index.js +3 -3
  120. package/dist/SandboxedFrame/SandboxedFrame.d.ts +44 -2
  121. package/dist/SandboxedFrame/index.d.ts +2 -2
  122. package/dist/SandboxedFrame/index.js +3 -3
  123. package/dist/SandboxedFrame-P5NASXB7.css +72 -0
  124. package/dist/Section/index.js +1 -1
  125. package/dist/{Section-QR3ILQVK.css → Section-O5AHGSOG.css} +28 -5
  126. package/dist/SegmentedControl/index.js +3 -3
  127. package/dist/Select/index.js +2 -2
  128. package/dist/ShareDialog/ShareDialog.d.ts +10 -0
  129. package/dist/ShareDialog/index.js +9 -9
  130. package/dist/{ShareDialog-YZ4F37MW.css → ShareDialog-4QDCBWMH.css} +12 -0
  131. package/dist/SheetGrid/SheetGrid.d.ts +3 -1
  132. package/dist/SheetGrid/index.js +10 -10
  133. package/dist/{SheetGrid-J3TKKXZL.css → SheetGrid-AKPUCK67.css} +106 -7
  134. package/dist/SheetModel/fit.d.ts +34 -0
  135. package/dist/SheetModel/index.d.ts +1 -0
  136. package/dist/SheetModel/index.js +1 -1
  137. package/dist/Shortcut/index.js +1 -1
  138. package/dist/Skeleton/Skeleton.d.ts +2 -1
  139. package/dist/Skeleton/index.js +1 -1
  140. package/dist/SlideCompare/SlideCompare.d.ts +6 -1
  141. package/dist/SlideCompare/index.js +3 -3
  142. package/dist/{SlideCompare-MGM3U2ME.css → SlideCompare-HTCMPQFY.css} +36 -3
  143. package/dist/SlideFilmstrip/SlideFilmstrip.d.ts +14 -3
  144. package/dist/SlideFilmstrip/index.js +3 -3
  145. package/dist/{SlideFilmstrip-BCLNAHFX.css → SlideFilmstrip-5U6Z55GS.css} +63 -2
  146. package/dist/SlideGrid/index.js +3 -3
  147. package/dist/{SlideGrid-RT6QEQEE.css → SlideGrid-S4LTJ4UU.css} +9 -5
  148. package/dist/SlideNav/SlideNav.d.ts +49 -0
  149. package/dist/SlideNav/index.d.ts +3 -0
  150. package/dist/SlideNav/index.js +4 -0
  151. package/dist/SlideNav-BLFJF6AH.css +53 -0
  152. package/dist/SlideStage/SlideStage.d.ts +14 -1
  153. package/dist/SlideStage/index.js +2 -2
  154. package/dist/{SlideStage-KGRRALXR.css → SlideStage-S2FISF4C.css} +23 -0
  155. package/dist/StatCard/StatCard.d.ts +16 -1
  156. package/dist/StatCard/index.js +1 -1
  157. package/dist/{StatCard-KPAFD4E2.css → StatCard-4T7TMWMN.css} +40 -13
  158. package/dist/Switcher/index.js +6 -6
  159. package/dist/TableCells/index.js +3 -3
  160. package/dist/Tabs/Tabs.d.ts +21 -4
  161. package/dist/Tabs/index.js +1 -1
  162. package/dist/{Tabs-CJGO35BH.css → Tabs-MMZXV5EF.css} +9 -8
  163. package/dist/TagsInput/index.js +1 -1
  164. package/dist/ThemeSwitcher/index.js +4 -4
  165. package/dist/TimeWindowPicker/index.js +4 -4
  166. package/dist/Toaster/index.js +2 -2
  167. package/dist/{Toaster-EOOOTSJT.css → Toaster-C6BQ7L6I.css} +10 -1
  168. package/dist/Toolbar/index.js +1 -1
  169. package/dist/Tooltip/index.js +2 -2
  170. package/dist/TreeCanvas/index.js +6 -4
  171. package/dist/TreeGrid/index.js +3 -3
  172. package/dist/VersionCompare/index.js +4 -4
  173. package/dist/VersionTimeline/index.js +4 -4
  174. package/dist/WidgetFrame/WidgetFrame.d.ts +8 -1
  175. package/dist/WidgetFrame/index.js +2 -2
  176. package/dist/{WidgetFrame-LRZIL62O.css → WidgetFrame-BTFW3CRK.css} +49 -5
  177. package/dist/{chunk-OJ45PPCV.js → chunk-22UEIXZE.js} +127 -32
  178. package/dist/{chunk-UZ6MA2V6.js → chunk-2DHMVB5J.js} +2 -2
  179. package/dist/{chunk-WJDQ7XQA.js → chunk-2QEDJSJC.js} +1 -1
  180. package/dist/{chunk-2HIOJ4YZ.js → chunk-3EB2AV3H.js} +2 -3
  181. package/dist/{chunk-ODT5H4MN.js → chunk-3LYWD3BO.js} +2 -2
  182. package/dist/{chunk-FAQGGX2Z.js → chunk-3TFDQLW3.js} +1 -1
  183. package/dist/{chunk-VYDFB6PJ.js → chunk-3U7S6ZUN.js} +50 -17
  184. package/dist/{chunk-A4E5YLXO.js → chunk-4B6LSFDS.js} +1 -1
  185. package/dist/{chunk-S6VG5ZFZ.js → chunk-4IJS5CPF.js} +1 -1
  186. package/dist/{chunk-UAN5NE7M.js → chunk-5AQBPHZD.js} +1 -1
  187. package/dist/{chunk-QWOPX2MN.js → chunk-5FYPE5GL.js} +2 -3
  188. package/dist/{chunk-CJKMURZO.js → chunk-5SZGKSGL.js} +1 -1
  189. package/dist/chunk-6VOS2GMB.js +54 -0
  190. package/dist/{chunk-RODMM35O.js → chunk-7Q7WDXHG.js} +5 -5
  191. package/dist/{chunk-JI5AVQLA.js → chunk-7WHDPLVJ.js} +1 -1
  192. package/dist/{chunk-QH3AKP2N.js → chunk-AC22RZKC.js} +2 -2
  193. package/dist/{chunk-ZITJKF6Z.js → chunk-AYB6AYNH.js} +1 -1
  194. package/dist/{chunk-Y5NQ2LMS.js → chunk-BY4N65PM.js} +1 -1
  195. package/dist/{chunk-YFW4MTK4.js → chunk-C7DKX453.js} +1 -1
  196. package/dist/{chunk-RCQXUT5K.js → chunk-CCAXYHQS.js} +1 -1
  197. package/dist/{chunk-4KP4RC3O.js → chunk-CI3VPIJN.js} +1 -1
  198. package/dist/{chunk-7T42VQQT.js → chunk-CPEPST4S.js} +1 -1
  199. package/dist/{chunk-AAOH2P6Y.js → chunk-DFK5EQTU.js} +5 -3
  200. package/dist/{chunk-GOSQXEZU.js → chunk-DFZMYB5X.js} +16 -10
  201. package/dist/{chunk-TGYDROIB.js → chunk-EBCHVFCS.js} +4 -4
  202. package/dist/{chunk-YDBC4DNW.js → chunk-FWYHRU7M.js} +1 -1
  203. package/dist/{chunk-CT4EZF62.js → chunk-G4ZW7A2W.js} +125 -33
  204. package/dist/chunk-GLSOD5Z4.js +33 -0
  205. package/dist/{chunk-LIXSV5YI.js → chunk-GPHWCK7M.js} +1 -1
  206. package/dist/{chunk-UQHKFF2N.js → chunk-GPWJCP3U.js} +1 -1
  207. package/dist/{chunk-77DRMDXR.js → chunk-HG5VF3TZ.js} +192 -67
  208. package/dist/{chunk-4JUKWWUD.js → chunk-HH2GKAAE.js} +1 -1
  209. package/dist/{chunk-QVE4GJAT.js → chunk-HJO4WCH6.js} +1 -1
  210. package/dist/{chunk-I3BSQUKN.js → chunk-HUVG2FFT.js} +1 -1
  211. package/dist/{chunk-3C3BRIMY.js → chunk-ILAEBSLJ.js} +3 -3
  212. package/dist/{chunk-GR55WT4R.js → chunk-IYO2N5ZH.js} +2 -2
  213. package/dist/{chunk-RWA4H2TV.js → chunk-J6ON5SYE.js} +1 -1
  214. package/dist/{chunk-NHBP2XS5.js → chunk-J6ZSH3F5.js} +49 -1
  215. package/dist/{chunk-AMNN4WDX.js → chunk-JBUMD6DS.js} +2 -2
  216. package/dist/{chunk-BWRGFKJP.js → chunk-K3IJQNB7.js} +2 -3
  217. package/dist/{chunk-LFNUH4GY.js → chunk-K4VP6ZKE.js} +1 -1
  218. package/dist/{chunk-ZR5VN5IV.js → chunk-KD2IRYCT.js} +2 -2
  219. package/dist/{chunk-SKOYC2CF.js → chunk-KK5OYNAF.js} +2 -1
  220. package/dist/{chunk-UB7TJEKZ.js → chunk-KV3ODJXH.js} +6 -7
  221. package/dist/chunk-LL5AFXU7.js +96 -0
  222. package/dist/{chunk-VYOKRN2I.js → chunk-LM3ISVJA.js} +1 -1
  223. package/dist/{chunk-O63MWA4G.js → chunk-LV4APO72.js} +10 -3
  224. package/dist/{chunk-B4EBHPK3.js → chunk-M5KZX5JE.js} +9 -2
  225. package/dist/{chunk-JODJS7MR.js → chunk-MDNVHIB2.js} +276 -47
  226. package/dist/{chunk-VOX3YRFO.js → chunk-MTMKIUWF.js} +4 -4
  227. package/dist/{chunk-HVNTQ36V.js → chunk-O37AQNLK.js} +4 -4
  228. package/dist/{chunk-HMPFGIWM.js → chunk-OMV5W53A.js} +10 -1
  229. package/dist/chunk-ONL54WMH.js +55 -0
  230. package/dist/{chunk-AKEZ3G5V.js → chunk-ONQKKHON.js} +1 -1
  231. package/dist/{chunk-LZHLSQYK.js → chunk-OOWPSBIS.js} +2 -2
  232. package/dist/{chunk-JQLTG4KH.js → chunk-ORT5IKHP.js} +62 -51
  233. package/dist/{chunk-4KWOKX2B.js → chunk-OSKJZNBT.js} +1 -1
  234. package/dist/{chunk-EHQTPVV4.js → chunk-PLTCDSTU.js} +1 -1
  235. package/dist/{chunk-5OM447RW.js → chunk-PZKHBB7D.js} +1 -1
  236. package/dist/{chunk-VEB5ERRE.js → chunk-QWNVSR6G.js} +2 -2
  237. package/dist/{chunk-IG75YMUN.js → chunk-RTPQDNW3.js} +1 -1
  238. package/dist/{chunk-SVSCLHHI.js → chunk-SZZRIHGT.js} +1 -1
  239. package/dist/{chunk-EBNI36UQ.js → chunk-T46NR3WP.js} +3 -3
  240. package/dist/{chunk-FPS3JIPQ.js → chunk-TC7DJTXI.js} +1 -1
  241. package/dist/{chunk-W5J7R5EB.js → chunk-TEUQWOWZ.js} +1 -1
  242. package/dist/chunk-THROPJZC.js +115 -0
  243. package/dist/{chunk-IDBHX5SR.js → chunk-TRQCHF2F.js} +1 -1
  244. package/dist/{chunk-M3LUNN7F.js → chunk-TYKQ33CL.js} +13 -2
  245. package/dist/{chunk-VVRL27HM.js → chunk-ULPL26BU.js} +2 -2
  246. package/dist/{chunk-6AH2XJ3Q.js → chunk-UNXLTJU7.js} +3 -3
  247. package/dist/{chunk-FC4YTTFJ.js → chunk-UQGFHNDI.js} +2 -3
  248. package/dist/{chunk-EBJREOKS.js → chunk-UXXJDIYE.js} +4 -4
  249. package/dist/{chunk-5LUI3WQP.js → chunk-V43UVX4H.js} +1 -1
  250. package/dist/{chunk-W4XYY73O.js → chunk-VHZ3AXJD.js} +1 -1
  251. package/dist/{chunk-HJEVSQN6.js → chunk-VL6CUNSX.js} +11 -5
  252. package/dist/{chunk-XDTYBF2F.js → chunk-W5XCNEZC.js} +39 -1
  253. package/dist/{chunk-LDJ3J4TQ.js → chunk-WGD2HX2A.js} +1 -1
  254. package/dist/{chunk-FQCLKD7U.js → chunk-WKEPORNM.js} +1 -1
  255. package/dist/{chunk-I3KKZ2O3.js → chunk-XEGZHHRH.js} +45 -36
  256. package/dist/{chunk-IKB6HFGK.js → chunk-XO7PUL4F.js} +6 -4
  257. package/dist/chunk-XV32RKQZ.js +142 -0
  258. package/dist/{chunk-TBMDMXEX.js → chunk-YA3AWELW.js} +1 -1
  259. package/dist/{chunk-HVIX5ECM.js → chunk-YEVG2X5R.js} +1 -1
  260. package/dist/chunk-YZFLH463.js +215 -0
  261. package/dist/{chunk-P4BOXB6E.js → chunk-Z6GFMI2Z.js} +6 -7
  262. package/dist/{chunk-YEKYVJQR.js → chunk-ZNBLFCQS.js} +2 -2
  263. package/dist/generated/index.d.ts +4 -0
  264. package/dist/generated/index.js +107 -104
  265. package/dist/index.js +107 -104
  266. package/dist/styles.css +1648 -235
  267. package/package.json +3 -3
  268. package/dist/AccessDeniedCard-WXM5DBDZ.css +0 -8
  269. package/dist/CanvasBoard-ZLPDINSM.css +0 -236
  270. package/dist/DocTabsEditor-RCOWHX5J.css +0 -78
  271. package/dist/PresenterView-T2C6ZZ3N.css +0 -103
  272. package/dist/SandboxedFrame-L6HBQZCD.css +0 -50
  273. package/dist/chunk-ALMSY7RL.js +0 -74
  274. package/dist/chunk-LR5QTFOE.js +0 -105
  275. package/dist/chunk-OGAAHVF6.js +0 -107
  276. package/dist/chunk-UZ7ZUSLH.js +0 -179
  277. package/dist/utils/useMediaMatch.d.ts +0 -12
  278. /package/dist/{chunk-OC46246T.js → chunk-2JJIN6JN.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { useLayerContainer } from './chunk-HMPFGIWM.js';
1
+ import { useLayerContainer } from './chunk-OMV5W53A.js';
2
2
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './Toaster-EOOOTSJT.css';
4
+ import './Toaster-C6BQ7L6I.css';
5
5
  import { createContext, useMemo, useState, useRef, useEffect, useContext, useCallback } from 'react';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { Combobox } from './chunk-QS4ZGTEU.js';
2
- import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-4KP4RC3O.js';
2
+ import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-CI3VPIJN.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './PrincipalPicker-7NNZTGUP.css';
5
5
  import { useState, useId, useMemo } from 'react';
@@ -1,4 +1,4 @@
1
- import { Popover } from './chunk-BWRGFKJP.js';
1
+ import { Popover } from './chunk-K3IJQNB7.js';
2
2
  import { today, CalendarGrid, shiftMonth, compareDays } from './chunk-GXQ3B46I.js';
3
3
  import { Button } from './chunk-OG6CL3EB.js';
4
4
  import { IconButton } from './chunk-4FQT6ZAY.js';
@@ -1,4 +1,4 @@
1
- import { MARKDOWN_CALLOUT_TONES, parseMarkdownSpans, markdownInline, markdownCodeText } from './chunk-SKOYC2CF.js';
1
+ import { MARKDOWN_CALLOUT_TONES, parseMarkdownSpans, markdownInline, markdownCodeText } from './chunk-KK5OYNAF.js';
2
2
  import { Schema, Fragment } from 'prosemirror-model';
3
3
 
4
4
  function headingTag(level) {
@@ -1,4 +1,4 @@
1
- import { tabId } from './chunk-HJEVSQN6.js';
1
+ import { tabId } from './chunk-VL6CUNSX.js';
2
2
  import { useRoving, tabStop } from './chunk-RKKO7QHH.js';
3
3
  import { Count } from './chunk-BHHIIK3M.js';
4
4
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
@@ -1,4 +1,4 @@
1
- import { Avatar } from './chunk-5OM447RW.js';
1
+ import { Avatar } from './chunk-PZKHBB7D.js';
2
2
  import { UsersGlyph } from '@crewlethq/icons/glyphs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { FormField } from './chunk-6QFAK2WV.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Checkbox-5UORUG3F.css';
3
+ import './Checkbox-ALWG3WV2.css';
4
4
  import { forwardRef, useId, useRef, useCallback, useEffect } from 'react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
@@ -1,8 +1,8 @@
1
- import { Skeleton } from './chunk-W5J7R5EB.js';
1
+ import { Skeleton } from './chunk-TEUQWOWZ.js';
2
2
  import { RelativeTime } from './chunk-3CZ7XAVY.js';
3
3
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
- import './WidgetFrame-LRZIL62O.css';
5
+ import './WidgetFrame-BTFW3CRK.css';
6
6
  import { useId } from 'react';
7
7
  import { ClockGlyph, LockGlyph, CircleAlertGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -22,6 +22,7 @@ function WidgetFrame({
22
22
  onCite,
23
23
  actions,
24
24
  flush = false,
25
+ holdTitle = false,
25
26
  headingLevel = 3,
26
27
  now,
27
28
  labels,
@@ -36,7 +37,7 @@ function WidgetFrame({
36
37
  const citation = /* @__PURE__ */ jsxs(Fragment, { children: [
37
38
  /* @__PURE__ */ jsx(VisuallyHidden, { children: text.cite }),
38
39
  " ",
39
- /* @__PURE__ */ jsx("span", { className: "crewlet-widget-frame__source", children: source.label }),
40
+ /* @__PURE__ */ jsx("span", { className: "crewlet-widget-frame__source", title: source.label, children: source.label }),
40
41
  source.status === "live" ? /* @__PURE__ */ jsxs(Fragment, { children: [
41
42
  " ",
42
43
  /* @__PURE__ */ jsx("span", { className: "crewlet-widget-frame__when", children: text.live })
@@ -64,6 +65,7 @@ function WidgetFrame({
64
65
  "crewlet-widget-frame",
65
66
  `crewlet-widget-frame--${source.status}`,
66
67
  flush && "crewlet-widget-frame--flush",
68
+ holdTitle && "crewlet-widget-frame--hold-title",
67
69
  className
68
70
  ),
69
71
  "aria-labelledby": titleId,
@@ -1,10 +1,10 @@
1
- import { PrincipalAvatar } from './chunk-4KP4RC3O.js';
1
+ import { PrincipalAvatar } from './chunk-CI3VPIJN.js';
2
2
  import { RelativeTime } from './chunk-3CZ7XAVY.js';
3
- import { AvatarStack } from './chunk-UAN5NE7M.js';
4
3
  import { Card } from './chunk-ACA27MZH.js';
4
+ import { AvatarStack } from './chunk-5AQBPHZD.js';
5
5
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
- import './ArtifactCard-EXVAEBV6.css';
7
+ import './ArtifactCard-AS5Z4CVI.css';
8
8
  import { useId } from 'react';
9
9
  import { TableGlyph, LayoutDashboardGlyph, PaletteGlyph, PresentationGlyph, FileTextGlyph, FileCodeGlyph, PinGlyph } from '@crewlethq/icons/glyphs';
10
10
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -22,13 +22,17 @@ function ArtifactKindGlyph({ kind, size = "md" }) {
22
22
  const Drawn = KIND_GLYPHS[kind];
23
23
  return /* @__PURE__ */ jsx(Drawn, { size });
24
24
  }
25
+ function ArtifactPreviewGlyph({ kind }) {
26
+ return /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph", children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: 32 }) });
27
+ }
25
28
  var LABELS = {
26
- kinds: { html: "Page", doc: "Doc", slides: "Slides", design: "Design", dashboard: "Dashboard", sheet: "Sheet" },
29
+ kinds: { html: "HTML", doc: "Doc", slides: "Slides", design: "Design", dashboard: "Dashboard", sheet: "Sheet" },
27
30
  pinned: "Pinned",
28
31
  version: (version) => `v${version}`,
29
32
  changes: (count) => count === 1 ? "1 change since you looked" : `${count} changes since you looked`,
30
33
  present: (count) => count === 1 ? "1 here now" : `${count} here now`,
31
- updated: "Updated"
34
+ updated: "Updated",
35
+ by: (name) => `by ${name}`
32
36
  };
33
37
  function ArtifactCard({
34
38
  title,
@@ -52,6 +56,7 @@ function ArtifactCard({
52
56
  const titleId = useId();
53
57
  const factsId = useId();
54
58
  const present = presence && presence.length > 0 ? presence : null;
59
+ const changedBy = updatedBy && updatedBy !== owner?.name ? updatedBy : void 0;
55
60
  return /* @__PURE__ */ jsxs(
56
61
  Card,
57
62
  {
@@ -62,10 +67,10 @@ function ArtifactCard({
62
67
  "aria-labelledby": titleId,
63
68
  "aria-describedby": factsId,
64
69
  children: [
65
- size === "card" ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__preview", "aria-hidden": true, children: preview ?? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph", children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: 32 }) }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph crewlet-artifact-card__glyph--compact", "aria-hidden": true, children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: "lg" }) }),
70
+ size === "card" ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__preview", "aria-hidden": true, children: preview ?? /* @__PURE__ */ jsx(ArtifactPreviewGlyph, { kind }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph crewlet-artifact-card__glyph--compact", "aria-hidden": true, children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: "lg" }) }),
66
71
  /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__body", children: [
67
72
  /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__title-row", children: [
68
- /* @__PURE__ */ jsx("span", { id: titleId, className: "crewlet-artifact-card__title", children: title }),
73
+ /* @__PURE__ */ jsx("span", { id: titleId, className: "crewlet-artifact-card__title", title, children: title }),
69
74
  pinned ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__pin", title: text.pinned, "aria-hidden": true, children: /* @__PURE__ */ jsx(PinGlyph, { size: "xs" }) }) : null
70
75
  ] }),
71
76
  /* @__PURE__ */ jsxs("span", { id: factsId, className: "crewlet-artifact-card__facts", children: [
@@ -81,8 +86,9 @@ function ArtifactCard({
81
86
  /* @__PURE__ */ jsx("span", { children: owner.name })
82
87
  ] }) : null,
83
88
  /* @__PURE__ */ jsxs("span", { children: [
84
- updatedBy ? `${updatedBy} ` : `${text.updated} `,
85
- /* @__PURE__ */ jsx(RelativeTime, { value: updatedAt, now })
89
+ `${text.updated} `,
90
+ /* @__PURE__ */ jsx(RelativeTime, { value: updatedAt, now }),
91
+ changedBy ? ` ${text.by(changedBy)}` : null
86
92
  ] })
87
93
  ] }),
88
94
  present || changes !== void 0 && changes > 0 ? /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__line", children: [
@@ -99,4 +105,4 @@ function ArtifactCard({
99
105
  );
100
106
  }
101
107
 
102
- export { ARTIFACT_KINDS, ArtifactCard, ArtifactKindGlyph };
108
+ export { ARTIFACT_KINDS, ArtifactCard, ArtifactKindGlyph, ArtifactPreviewGlyph };
@@ -1,8 +1,8 @@
1
- import { HuePicker } from './chunk-LIXSV5YI.js';
2
- import { Popover } from './chunk-BWRGFKJP.js';
1
+ import { HuePicker } from './chunk-GPHWCK7M.js';
2
+ import { Popover } from './chunk-K3IJQNB7.js';
3
3
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
4
- import { CharacterPicker } from './chunk-HVIX5ECM.js';
5
- import { Avatar } from './chunk-5OM447RW.js';
4
+ import { CharacterPicker } from './chunk-YEVG2X5R.js';
5
+ import { Avatar } from './chunk-PZKHBB7D.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './AvatarPicker-PREY36MG.css';
8
8
  import { CREWLET_CHARACTER_GEOMETRY, CREWLET_CHARACTERS } from '@crewlethq/icons/characters';
@@ -1,4 +1,4 @@
1
- import { avatarCorner, Avatar } from './chunk-5OM447RW.js';
1
+ import { avatarCorner, Avatar } from './chunk-PZKHBB7D.js';
2
2
  import './ImageUpload-NVGMN7DP.css';
3
3
  import { useRef } from 'react';
4
4
  import { CameraGlyph, XGlyph } from '@crewlethq/icons/glyphs';
@@ -1,18 +1,18 @@
1
1
  import { TagGroup } from './chunk-O2EGEONV.js';
2
- import { CursorFlag } from './chunk-3BYIWOTV.js';
3
- import { presenceHueClass } from './chunk-I6POAB4V.js';
4
2
  import { Tag } from './chunk-GFV4LJHH.js';
5
3
  import { StatusDot } from './chunk-WIATRXEJ.js';
6
- import { ChangeMark } from './chunk-YEKYVJQR.js';
7
- import { isEmptyValue, displayText, ratingMax, findPerson, findOption, statusTone, editText, textMax, sheetLabels, normalizeValue, sameValue, spokenText, drawnColumns, sortRows, SHEET_ROW_HEIGHT, cellKey, columnOffsets, SHEET_ROW_NUMBER_WIDTH, columnWidth, rangeOf, presenceByCell, presenceByRow, presenceByColumn, scrollToRow, planClear, visibleRows, cellDescription, nextSort, rowName, inRange, hasPrevious, flagText, toTSV, planPaste, parseTSV, isMod, moveFrom, isTypingKey, editorSide, optionHue, parseText, liveOptions, checkValue } from './chunk-NHBP2XS5.js';
4
+ import { CursorFlag } from './chunk-3BYIWOTV.js';
5
+ import { presenceHueClass } from './chunk-I6POAB4V.js';
6
+ import { ChangeMark } from './chunk-ZNBLFCQS.js';
7
+ import { isEmptyValue, displayText, ratingMax, findPerson, findOption, statusTone, editText, textMax, sheetLabels, normalizeValue, sameValue, spokenText, drawnColumns, fitSamples, fittedWidth, columnWidth, SHEET_COLUMN_BOUNDS, sortRows, SHEET_ROW_HEIGHT, cellKey, columnOffsets, SHEET_ROW_NUMBER_WIDTH, rangeOf, presenceByCell, presenceByRow, presenceByColumn, scrollToRow, planClear, visibleRows, cellDescription, nextSort, rowName, inRange, hasPrevious, flagText, toTSV, planPaste, parseTSV, isMod, moveFrom, isTypingKey, editorSide, optionHue, parseText, liveOptions, checkValue } from './chunk-J6ZSH3F5.js';
8
8
  import { presenceLabels } from './chunk-Z7JYG5TF.js';
9
- import { Avatar } from './chunk-5OM447RW.js';
10
- import { Menu } from './chunk-2HIOJ4YZ.js';
9
+ import { Avatar } from './chunk-PZKHBB7D.js';
10
+ import { Menu } from './chunk-3EB2AV3H.js';
11
11
  import { isComposing } from './chunk-R25RGPUB.js';
12
12
  import { Button } from './chunk-OG6CL3EB.js';
13
13
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
14
14
  import { cx } from './chunk-ODEQTPFM.js';
15
- import './SheetGrid-J3TKKXZL.css';
15
+ import './SheetGrid-AKPUCK67.css';
16
16
  import { useId, useRef, useMemo, useState, useLayoutEffect, useEffect, useCallback } from 'react';
17
17
  import { CheckGlyph, StarGlyph, CircleAlertGlyph, ArrowUpGlyph, ArrowDownGlyph, TrashGlyph, EllipsisGlyph, RotateCcwClockGlyph, PlusGlyph } from '@crewlethq/icons/glyphs';
18
18
  import { isCrewletCharacter } from '@crewlethq/icons/characters';
@@ -615,6 +615,7 @@ var DateCell = (props) => /* @__PURE__ */ jsx(SheetCell, { ...props, type: "date
615
615
  var UrlCell = (props) => /* @__PURE__ */ jsx(SheetCell, { ...props, type: "url" });
616
616
  var RatingCell = (props) => /* @__PURE__ */ jsx(SheetCell, { ...props, type: "rating" });
617
617
  var HEADER = -1;
618
+ var FROZEN_SHARE = 0.6;
618
619
  function SheetGrid({
619
620
  label,
620
621
  columns: declared,
@@ -647,7 +648,59 @@ function SheetGrid({
647
648
  const labels = useMemo(() => sheetLabels(labelOverrides), [labelOverrides]);
648
649
  const said = useMemo(() => presenceLabels(presenceOverrides), [presenceOverrides]);
649
650
  const context = useMemo(() => ({ people, locale, labels }), [people, locale, labels]);
650
- const columns = useMemo(() => drawnColumns(declared), [declared]);
651
+ const ordered = useMemo(() => drawnColumns(declared), [declared]);
652
+ const [viewportWidth, setViewportWidth] = useState(0);
653
+ const latestRows = useRef(given);
654
+ useLayoutEffect(() => {
655
+ latestRows.current = given;
656
+ });
657
+ const hasRows = given.length > 0;
658
+ const [samples, setSamples] = useState(null);
659
+ useLayoutEffect(() => {
660
+ const from = hasRows ? latestRows.current : [];
661
+ setSamples(new Map(ordered.filter((column) => !(column.width && column.width > 0)).map((column) => [column.field, fitSamples(column, from, context)])));
662
+ }, [ordered, hasRows, context]);
663
+ const [fontsLoaded, setFontsLoaded] = useState(0);
664
+ useEffect(() => {
665
+ const fonts = typeof document === "undefined" ? void 0 : document.fonts;
666
+ if (!fonts) return void 0;
667
+ let live = true;
668
+ const loaded = () => {
669
+ if (live) setFontsLoaded((n) => n + 1);
670
+ };
671
+ void fonts.ready.then(loaded);
672
+ fonts.addEventListener("loadingdone", loaded);
673
+ return () => {
674
+ live = false;
675
+ fonts.removeEventListener("loadingdone", loaded);
676
+ };
677
+ }, []);
678
+ const measurer = useRef(null);
679
+ const [measured, setMeasured] = useState(/* @__PURE__ */ new Map());
680
+ useLayoutEffect(() => {
681
+ const box = measurer.current;
682
+ if (!box) return;
683
+ const next = /* @__PURE__ */ new Map();
684
+ for (const group of box.querySelectorAll("[data-measure]")) {
685
+ let widest = 0;
686
+ for (const part of group.children) widest = Math.max(widest, part.getBoundingClientRect().width);
687
+ next.set(group.dataset["measure"] ?? "", widest);
688
+ }
689
+ setMeasured(next);
690
+ }, [samples, fontsLoaded]);
691
+ const columns = useMemo(() => {
692
+ const declares = (column) => column.width !== void 0 && column.width > 0;
693
+ const fitted = ordered.map((column) => declares(column) ? column : { ...column, width: fittedWidth(column.type, measured.get(column.field) ?? 0) });
694
+ if (viewportWidth <= 0) return fitted;
695
+ const room = Math.floor(viewportWidth * FROZEN_SHARE) - SHEET_ROW_NUMBER_WIDTH;
696
+ const over = fitted.filter((column) => column.frozen).reduce((sum, column) => sum + columnWidth(column), 0) - room;
697
+ const yielding = ordered.filter((column) => column.frozen && !declares(column)).length;
698
+ if (over <= 0 || yielding === 0) return fitted;
699
+ const each = Math.ceil(over / yielding);
700
+ return fitted.map(
701
+ (column, index) => column.frozen && !declares(ordered[index]) ? { ...column, width: Math.max(SHEET_COLUMN_BOUNDS[column.type][0], columnWidth(column) - each) } : column
702
+ );
703
+ }, [ordered, measured, viewportWidth]);
651
704
  const rows = useMemo(() => sortRows(columns, given, sort, context), [columns, given, sort, context]);
652
705
  const editable = mode === "edit" && onEdit !== void 0;
653
706
  const rowActions = mode === "edit" && onDeleteRow !== void 0;
@@ -660,6 +713,7 @@ function SheetGrid({
660
713
  const [headerHeight, setHeaderHeight] = useState(SHEET_ROW_HEIGHT);
661
714
  const [viewport, setViewport] = useState(0);
662
715
  const [scrollTop, setScrollTop] = useState(0);
716
+ const [scrolledAcross, setScrolledAcross] = useState(false);
663
717
  const [active, setActive] = useState(null);
664
718
  const [anchor, setAnchor] = useState(null);
665
719
  const [editing, setEditing] = useState(null);
@@ -690,6 +744,7 @@ function SheetGrid({
690
744
  const head = grid.current?.querySelector(".crewlet-sheet-grid__row--head")?.offsetHeight ?? 0;
691
745
  if (head > 0) setHeaderHeight(head);
692
746
  setViewport(scroller.current?.clientHeight ?? 0);
747
+ setViewportWidth(scroller.current?.clientWidth ?? 0);
693
748
  };
694
749
  measure();
695
750
  if (typeof ResizeObserver !== "function") return void 0;
@@ -707,6 +762,7 @@ function SheetGrid({
707
762
  [columns]
708
763
  );
709
764
  const totalWidth = useMemo(() => columns.reduce((sum, column) => sum + columnWidth(column), SHEET_ROW_NUMBER_WIDTH), [columns]);
765
+ const lastFrozen = useMemo(() => columns.reduce((edge, column, index) => column.frozen ? index : edge, -1), [columns]);
710
766
  const frozenEdge = useMemo(() => {
711
767
  let edge = SHEET_ROW_NUMBER_WIDTH;
712
768
  columns.forEach((column, index) => {
@@ -1099,7 +1155,10 @@ function SheetGrid({
1099
1155
  width: `${totalWidth}px`
1100
1156
  };
1101
1157
  const contentHeight = headerHeight + rows.length * rowHeight + 2;
1102
- const scrollerStyle = fit === "content" ? { height: `${height !== void 0 ? Math.min(contentHeight, height) : contentHeight}px` } : height !== void 0 ? { height: `${height}px` } : void 0;
1158
+ const scrollerStyle = fit === "content" ? {
1159
+ height: `${height !== void 0 ? Math.min(contentHeight, height) : contentHeight}px`,
1160
+ "--crewlet-sheet-content-height": `${contentHeight}px`
1161
+ } : height !== void 0 ? { height: `${height}px` } : void 0;
1103
1162
  const side = (rowAt) => {
1104
1163
  const top = headerHeight + rowAt * rowHeight - scrollTop;
1105
1164
  const view = viewport > 0 ? viewport : rowHeight * 12;
@@ -1111,9 +1170,12 @@ function SheetGrid({
1111
1170
  "div",
1112
1171
  {
1113
1172
  ref: scroller,
1114
- className: "crewlet-sheet-grid__scroller",
1173
+ className: cx("crewlet-sheet-grid__scroller", scrolledAcross && "crewlet-sheet-grid__scroller--across"),
1115
1174
  style: scrollerStyle,
1116
- onScroll: (event) => setScrollTop(event.currentTarget.scrollTop),
1175
+ onScroll: (event) => {
1176
+ setScrollTop(event.currentTarget.scrollTop);
1177
+ setScrolledAcross(event.currentTarget.scrollLeft > 0);
1178
+ },
1117
1179
  children: /* @__PURE__ */ jsxs(
1118
1180
  "div",
1119
1181
  {
@@ -1126,7 +1188,7 @@ function SheetGrid({
1126
1188
  "aria-multiselectable": "true",
1127
1189
  "aria-describedby": helpId,
1128
1190
  tabIndex: -1,
1129
- className: "crewlet-sheet-grid__grid",
1191
+ className: cx("crewlet-sheet-grid__grid", range && (range.top !== range.bottom || range.left !== range.right) && "crewlet-sheet-grid__grid--range"),
1130
1192
  style,
1131
1193
  onKeyDown,
1132
1194
  onMouseMove: rowActions ? (event) => {
@@ -1139,7 +1201,7 @@ function SheetGrid({
1139
1201
  onPaste,
1140
1202
  children: [
1141
1203
  /* @__PURE__ */ jsx("div", { role: "rowgroup", className: "crewlet-sheet-grid__head", children: /* @__PURE__ */ jsxs("div", { role: "row", "aria-rowindex": 1, className: "crewlet-sheet-grid__row crewlet-sheet-grid__row--head", children: [
1142
- /* @__PURE__ */ jsx("div", { role: "columnheader", "aria-colindex": 1, className: "crewlet-sheet-grid__corner", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: labels.rowHeader }) }),
1204
+ /* @__PURE__ */ jsx("div", { role: "columnheader", "aria-colindex": 1, className: cx("crewlet-sheet-grid__corner", lastFrozen < 0 && "crewlet-sheet-grid__frozen-edge"), children: /* @__PURE__ */ jsx(VisuallyHidden, { children: labels.rowHeader }) }),
1143
1205
  columns.map((column, col) => {
1144
1206
  const position = { row: HEADER, col };
1145
1207
  const isActive = current?.row === HEADER && current.col === col;
@@ -1155,7 +1217,13 @@ function SheetGrid({
1155
1217
  "aria-colindex": col + 2,
1156
1218
  "aria-sort": sorted ?? (onSortChange ? "none" : void 0),
1157
1219
  tabIndex: isActive ? 0 : -1,
1158
- className: cx("crewlet-sheet-grid__header", column.frozen && "crewlet-sheet-grid__cell--frozen", isActive && "crewlet-sheet-grid__header--active"),
1220
+ className: cx(
1221
+ "crewlet-sheet-grid__header",
1222
+ `crewlet-sheet-grid__header--${column.type}`,
1223
+ column.frozen && "crewlet-sheet-grid__cell--frozen",
1224
+ col === lastFrozen && "crewlet-sheet-grid__frozen-edge",
1225
+ isActive && "crewlet-sheet-grid__header--active"
1226
+ ),
1159
1227
  style: column.frozen ? { insetInlineStart: `${offsets[col]}px` } : void 0,
1160
1228
  onMouseDown: (event) => onCellMouseDown(event, { rowId: null, field: column.field }),
1161
1229
  onFocus: (event) => {
@@ -1164,7 +1232,7 @@ function SheetGrid({
1164
1232
  onClick: () => {
1165
1233
  if (onSortChange) onSortChange(nextSort(sort, column.field));
1166
1234
  },
1167
- title: onSortChange ? labels.sortBy(column.label) : void 0,
1235
+ title: onSortChange ? labels.sortBy(column.label) : column.label,
1168
1236
  children: [
1169
1237
  /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__header-label", children: column.label }),
1170
1238
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `, ${labels.types[column.type]}` }),
@@ -1194,29 +1262,43 @@ function SheetGrid({
1194
1262
  {
1195
1263
  role: "rowheader",
1196
1264
  "aria-colindex": 1,
1197
- className: cx("crewlet-sheet-grid__rownum", rowPresence && "crewlet-sheet-grid__rownum--present", rowPresence && presenceHueClass(rowPresence.hue)),
1265
+ className: cx(
1266
+ "crewlet-sheet-grid__rownum",
1267
+ lastFrozen < 0 && "crewlet-sheet-grid__frozen-edge",
1268
+ rowPresence && "crewlet-sheet-grid__rownum--present",
1269
+ rowPresence && presenceHueClass(rowPresence.hue)
1270
+ ),
1198
1271
  children: [
1199
1272
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: index + 1 }),
1200
1273
  /* @__PURE__ */ jsx(VisuallyHidden, { children: rowName(columns, row, index, context) }),
1201
- rowActions && (rowMenu === row.id || hoveredRow === row.id || current?.row === index) ? /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__row-actions", children: /* @__PURE__ */ jsx(
1202
- Menu,
1274
+ rowActions && (rowMenu === row.id || hoveredRow === row.id || current?.row === index) ? /* @__PURE__ */ jsx(
1275
+ "span",
1203
1276
  {
1204
- label: labels.rowActions(index + 1),
1205
- icon: /* @__PURE__ */ jsx(EllipsisGlyph, { size: "xs" }),
1206
- triggerTabIndex: -1,
1207
- open: rowMenu === row.id,
1208
- onOpenChange: (open) => setRowMenu(open ? row.id : null),
1209
- items: [
1277
+ className: cx(
1278
+ "crewlet-sheet-grid__row-actions",
1279
+ rowMenu !== row.id && hoveredRow !== row.id && "crewlet-sheet-grid__row-actions--active-row"
1280
+ ),
1281
+ children: /* @__PURE__ */ jsx(
1282
+ Menu,
1210
1283
  {
1211
- key: "delete",
1212
- label: labels.deleteRow,
1213
- icon: /* @__PURE__ */ jsx(TrashGlyph, { size: "sm" }),
1214
- danger: true,
1215
- onSelect: () => onDeleteRow?.(row.id)
1284
+ label: labels.rowActions(index + 1),
1285
+ icon: /* @__PURE__ */ jsx(EllipsisGlyph, { size: "xs" }),
1286
+ triggerTabIndex: -1,
1287
+ open: rowMenu === row.id,
1288
+ onOpenChange: (open) => setRowMenu(open ? row.id : null),
1289
+ items: [
1290
+ {
1291
+ key: "delete",
1292
+ label: labels.deleteRow,
1293
+ icon: /* @__PURE__ */ jsx(TrashGlyph, { size: "sm" }),
1294
+ danger: true,
1295
+ onSelect: () => onDeleteRow?.(row.id)
1296
+ }
1297
+ ]
1216
1298
  }
1217
- ]
1299
+ )
1218
1300
  }
1219
- ) }) : null
1301
+ ) : null
1220
1302
  ]
1221
1303
  }
1222
1304
  ),
@@ -1232,6 +1314,7 @@ function SheetGrid({
1232
1314
  const people2 = onCells.get(key);
1233
1315
  const lead = people2?.[0];
1234
1316
  const isEditing = editing?.rowId === row.id && editing.field === column.field;
1317
+ const history = isActive && onShowHistory !== void 0 && !isEditing;
1235
1318
  return (
1236
1319
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events -- keys reach the grid's own handler, which toggles on Space and Enter
1237
1320
  /* @__PURE__ */ jsxs(
@@ -1248,11 +1331,13 @@ function SheetGrid({
1248
1331
  "crewlet-sheet-grid__cell",
1249
1332
  `crewlet-sheet-grid__cell--${column.type}`,
1250
1333
  column.frozen && "crewlet-sheet-grid__cell--frozen",
1334
+ col === lastFrozen && "crewlet-sheet-grid__frozen-edge",
1251
1335
  selected && "crewlet-sheet-grid__cell--selected",
1252
1336
  isActive && "crewlet-sheet-grid__cell--active",
1253
1337
  pending && "crewlet-sheet-grid__cell--pending",
1254
1338
  refused !== void 0 && "crewlet-sheet-grid__cell--refused",
1255
1339
  isEditing && "crewlet-sheet-grid__cell--editing",
1340
+ history && "crewlet-sheet-grid__cell--history",
1256
1341
  lead && "crewlet-presence-ring",
1257
1342
  lead && presenceHueClass(lead.hue),
1258
1343
  lead && (lead.idle ? "crewlet-presence-ring--idle" : null)
@@ -1286,7 +1371,7 @@ function SheetGrid({
1286
1371
  ) : null,
1287
1372
  people2 && lead ? /* @__PURE__ */ jsx(CursorFlag, { name: flagText(people2), hue: lead.hue, kind: lead.kind, editing: people2.some((entry) => entry.editing) }) : null,
1288
1373
  isActive && refused !== void 0 && !isEditing ? /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__message", "aria-hidden": "true", children: refused }) : null,
1289
- isActive && onShowHistory && !isEditing ? /* @__PURE__ */ jsx(
1374
+ history ? /* @__PURE__ */ jsx(
1290
1375
  "button",
1291
1376
  {
1292
1377
  type: "button",
@@ -1295,7 +1380,7 @@ function SheetGrid({
1295
1380
  className: "crewlet-sheet-grid__history",
1296
1381
  title: labels.history,
1297
1382
  onMouseDown: (event) => event.stopPropagation(),
1298
- onClick: () => onShowHistory({ rowId: row.id, field: column.field }),
1383
+ onClick: () => onShowHistory?.({ rowId: row.id, field: column.field }),
1299
1384
  children: /* @__PURE__ */ jsx(RotateCcwClockGlyph, { size: "xs" })
1300
1385
  }
1301
1386
  ) : null,
@@ -1329,6 +1414,13 @@ function SheetGrid({
1329
1414
  )
1330
1415
  }
1331
1416
  ),
1417
+ samples ? /* @__PURE__ */ jsx("div", { ref: measurer, className: "crewlet-sheet-grid__measure", "aria-hidden": "true", inert: true, children: ordered.filter((column) => samples.has(column.field)).map((column) => /* @__PURE__ */ jsxs("div", { "data-measure": column.field, children: [
1418
+ /* @__PURE__ */ jsxs("div", { className: cx("crewlet-sheet-grid__header", `crewlet-sheet-grid__header--${column.type}`), children: [
1419
+ /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__header-label", children: column.label }),
1420
+ onSortChange ? /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__sort", children: /* @__PURE__ */ jsx(ArrowDownGlyph, { size: "xs" }) }) : null
1421
+ ] }),
1422
+ (samples.get(column.field) ?? []).map((value, index) => /* @__PURE__ */ jsx("div", { className: cx("crewlet-sheet-grid__cell", `crewlet-sheet-grid__cell--${column.type}`), children: /* @__PURE__ */ jsx("span", { className: "crewlet-sheet-grid__value", children: /* @__PURE__ */ jsx(CellDisplay, { column, value, context }) }) }, index))
1423
+ ] }, column.field)) }) : null,
1332
1424
  /* @__PURE__ */ jsx(VisuallyHidden, { id: describedId, children: description }),
1333
1425
  /* @__PURE__ */ jsx(VisuallyHidden, { id: helpId, children: rowActions ? `${labels.keyboardHelp} ${labels.rowActionsHelp}` : labels.keyboardHelp }),
1334
1426
  /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.n) }) }),
@@ -0,0 +1,33 @@
1
+ import { Toolbar } from './chunk-PGRPNDWM.js';
2
+ import { ShortcutTip } from './chunk-22UEIXZE.js';
3
+ import { IconButton } from './chunk-4FQT6ZAY.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './CanvasToolbar-EM5EVZED.css';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ function toolForKey(tools, event) {
9
+ if (event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) return void 0;
10
+ const pressed = event.key.toLowerCase();
11
+ return tools.find((tool) => tool.shortcut.toLowerCase() === pressed)?.id;
12
+ }
13
+ function CanvasToolbar({
14
+ label,
15
+ tools,
16
+ value,
17
+ onChange,
18
+ className
19
+ }) {
20
+ return /* @__PURE__ */ jsx(Toolbar, { label, className: cx("crewlet-canvas-toolbar", className), children: tools.map((tool) => /* @__PURE__ */ jsx(ShortcutTip, { label: tool.label, keys: [tool.shortcut], children: /* @__PURE__ */ jsx(
21
+ IconButton,
22
+ {
23
+ size: "sm",
24
+ label: tool.label,
25
+ title: "",
26
+ icon: tool.icon,
27
+ pressed: tool.id === value,
28
+ onClick: () => onChange(tool.id)
29
+ }
30
+ ) }, tool.id)) });
31
+ }
32
+
33
+ export { CanvasToolbar, toolForKey };
@@ -1,5 +1,5 @@
1
1
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
2
- import { SegmentedControl } from './chunk-RCQXUT5K.js';
2
+ import { SegmentedControl } from './chunk-CCAXYHQS.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { PRESENCE_LABELS, presenceOrder, collapseSessions } from './chunk-Z7JYG5TF.js';
2
- import { Avatar } from './chunk-5OM447RW.js';
2
+ import { Avatar } from './chunk-PZKHBB7D.js';
3
3
  import { headingTag, useHeadingLevel } from './chunk-PQADV6P6.js';
4
4
  import { Button } from './chunk-OG6CL3EB.js';
5
5
  import { IconButton } from './chunk-4FQT6ZAY.js';