@crewlethq/ui 0.32.0 → 0.34.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 (292) hide show
  1. package/README.md +149 -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 +14 -12
  13. package/dist/{ArtifactBar-MLMJHWY6.css → ArtifactBar-C462VD4C.css} +8 -3
  14. package/dist/ArtifactCard/ArtifactCard.d.ts +64 -6
  15. package/dist/ArtifactCard/index.d.ts +2 -2
  16. package/dist/ArtifactCard/index.js +6 -4
  17. package/dist/ArtifactCard-XHRLAL7C.css +289 -0
  18. package/dist/ArtifactCover/index.js +8 -6
  19. package/dist/ArtifactIcon/index.js +7 -5
  20. package/dist/ArtifactKindIllustration/ArtifactKindIllustration.d.ts +53 -0
  21. package/dist/ArtifactKindIllustration/index.d.ts +3 -0
  22. package/dist/ArtifactKindIllustration/index.js +3 -0
  23. package/dist/ArtifactKindIllustration-4NG6IE3C.css +211 -0
  24. package/dist/ArtifactPanel/ArtifactPanel.d.ts +6 -2
  25. package/dist/ArtifactPanel/index.js +1 -1
  26. package/dist/{ArtifactPanel-YFXT5O77.css → ArtifactPanel-HW3SU7CP.css} +25 -7
  27. package/dist/Avatar/Avatar.d.ts +6 -4
  28. package/dist/Avatar/index.js +2 -2
  29. package/dist/AvatarPicker/index.js +8 -8
  30. package/dist/Callout/index.js +1 -1
  31. package/dist/{Callout-SXXK4B5R.css → Callout-ZAVG3P66.css} +46 -6
  32. package/dist/Canvas/Canvas.d.ts +33 -2
  33. package/dist/Canvas/index.d.ts +1 -1
  34. package/dist/Canvas/index.js +4 -4
  35. package/dist/{Canvas-LRVNW7XN.css → Canvas-VUG2HLZK.css} +23 -0
  36. package/dist/CanvasBoard/CanvasBoard.d.ts +38 -3
  37. package/dist/CanvasBoard/budget.d.ts +9 -3
  38. package/dist/CanvasBoard/index.d.ts +2 -2
  39. package/dist/CanvasBoard/index.js +7 -7
  40. package/dist/{CanvasBoard-MBZVBWDO.css → CanvasBoard-5NNSKY6A.css} +127 -6
  41. package/dist/CanvasToolbar/index.js +5 -5
  42. package/dist/{CanvasToolbar-AE5MXH7T.css → CanvasToolbar-EM5EVZED.css} +4 -2
  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 +8 -8
  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-YWBUJAQU.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/LivePreview/LivePreview.d.ts +83 -0
  95. package/dist/LivePreview/budget.d.ts +50 -0
  96. package/dist/LivePreview/index.d.ts +5 -0
  97. package/dist/LivePreview/index.js +2 -0
  98. package/dist/LivePreview-SRO7KHO4.css +65 -0
  99. package/dist/Markdown/index.js +1 -1
  100. package/dist/MarkdownEditor/index.js +5 -5
  101. package/dist/MediaMatch/index.d.ts +1 -0
  102. package/dist/MediaMatch/index.js +1 -0
  103. package/dist/MediaMatch/useMediaMatch.d.ts +19 -0
  104. package/dist/Menu/index.js +2 -2
  105. package/dist/MergeConflicts/index.js +4 -4
  106. package/dist/Modal/index.js +2 -2
  107. package/dist/{Modal-XOSV6FAH.css → Modal-7MWRCWAI.css} +30 -0
  108. package/dist/Note/index.js +1 -1
  109. package/dist/{Note-ONSKKTOA.css → Note-WI5MLZOO.css} +13 -0
  110. package/dist/OrgLabel/index.js +3 -3
  111. package/dist/OrgNode/index.js +4 -4
  112. package/dist/OrgTable/index.js +7 -7
  113. package/dist/PeopleRail/index.js +3 -3
  114. package/dist/Popover/index.js +2 -2
  115. package/dist/PresenceStack/index.js +3 -3
  116. package/dist/{PresenceStack-QSXQJND5.css → PresenceStack-FJJQVH74.css} +11 -3
  117. package/dist/PresenterView/PresenterView.d.ts +3 -0
  118. package/dist/PresenterView/index.js +5 -3
  119. package/dist/PresenterView-T3EXIQ5S.css +147 -0
  120. package/dist/Principal/index.js +3 -3
  121. package/dist/PrincipalPicker/index.js +4 -4
  122. package/dist/RichEditor/index.js +5 -5
  123. package/dist/RichEditor/schema.d.ts +1 -1
  124. package/dist/RichEditorMarkdown/index.js +3 -3
  125. package/dist/SandboxedFrame/SandboxedFrame.d.ts +44 -2
  126. package/dist/SandboxedFrame/index.d.ts +2 -2
  127. package/dist/SandboxedFrame/index.js +3 -3
  128. package/dist/SandboxedFrame-P5NASXB7.css +72 -0
  129. package/dist/Section/index.js +1 -1
  130. package/dist/{Section-QR3ILQVK.css → Section-O5AHGSOG.css} +28 -5
  131. package/dist/SegmentedControl/index.js +3 -3
  132. package/dist/Select/Select.d.ts +10 -0
  133. package/dist/Select/index.d.ts +1 -1
  134. package/dist/Select/index.js +2 -2
  135. package/dist/{Select-2P7AWUE4.css → Select-A54YS5EP.css} +29 -0
  136. package/dist/ShareDialog/ShareDialog.d.ts +10 -0
  137. package/dist/ShareDialog/index.js +9 -9
  138. package/dist/{ShareDialog-YZ4F37MW.css → ShareDialog-4QDCBWMH.css} +12 -0
  139. package/dist/SheetGrid/SheetGrid.d.ts +7 -3
  140. package/dist/SheetGrid/index.js +8 -8
  141. package/dist/{SheetGrid-J3TKKXZL.css → SheetGrid-GDPCCZ4V.css} +154 -14
  142. package/dist/SheetModel/fit.d.ts +34 -0
  143. package/dist/SheetModel/index.d.ts +1 -0
  144. package/dist/SheetModel/index.js +1 -1
  145. package/dist/SheetModel/labels.d.ts +1 -1
  146. package/dist/Shortcut/index.js +1 -1
  147. package/dist/Skeleton/Skeleton.d.ts +2 -1
  148. package/dist/Skeleton/index.js +1 -1
  149. package/dist/SlideCompare/SlideCompare.d.ts +6 -1
  150. package/dist/SlideCompare/index.js +3 -3
  151. package/dist/{SlideCompare-MGM3U2ME.css → SlideCompare-HTCMPQFY.css} +36 -3
  152. package/dist/SlideFilmstrip/SlideFilmstrip.d.ts +14 -3
  153. package/dist/SlideFilmstrip/index.js +3 -3
  154. package/dist/{SlideFilmstrip-BCLNAHFX.css → SlideFilmstrip-5U6Z55GS.css} +63 -2
  155. package/dist/SlideGrid/index.js +3 -3
  156. package/dist/{SlideGrid-RT6QEQEE.css → SlideGrid-S4LTJ4UU.css} +9 -5
  157. package/dist/SlideNav/SlideNav.d.ts +49 -0
  158. package/dist/SlideNav/index.d.ts +3 -0
  159. package/dist/SlideNav/index.js +4 -0
  160. package/dist/SlideNav-BLFJF6AH.css +53 -0
  161. package/dist/SlideStage/SlideStage.d.ts +9 -1
  162. package/dist/SlideStage/index.js +2 -2
  163. package/dist/{SlideStage-KGRRALXR.css → SlideStage-S2FISF4C.css} +23 -0
  164. package/dist/StatCard/StatCard.d.ts +16 -1
  165. package/dist/StatCard/index.js +1 -1
  166. package/dist/{StatCard-KPAFD4E2.css → StatCard-4T7TMWMN.css} +40 -13
  167. package/dist/Switcher/index.js +6 -6
  168. package/dist/TableCells/index.js +3 -3
  169. package/dist/Tabs/Tabs.d.ts +21 -4
  170. package/dist/Tabs/index.js +1 -1
  171. package/dist/{Tabs-CJGO35BH.css → Tabs-MMZXV5EF.css} +9 -8
  172. package/dist/TagsInput/index.js +1 -1
  173. package/dist/ThemeSwitcher/index.js +4 -4
  174. package/dist/TimeWindowPicker/index.js +4 -4
  175. package/dist/Toaster/index.js +2 -2
  176. package/dist/{Toaster-EOOOTSJT.css → Toaster-C6BQ7L6I.css} +10 -1
  177. package/dist/Toolbar/index.js +1 -1
  178. package/dist/Tooltip/Tooltip.d.ts +12 -1
  179. package/dist/Tooltip/index.d.ts +1 -1
  180. package/dist/Tooltip/index.js +2 -2
  181. package/dist/TreeCanvas/index.js +5 -5
  182. package/dist/TreeGrid/index.js +3 -3
  183. package/dist/VersionCompare/index.js +4 -4
  184. package/dist/VersionTimeline/index.js +4 -4
  185. package/dist/WidgetFrame/WidgetFrame.d.ts +8 -1
  186. package/dist/WidgetFrame/index.js +2 -2
  187. package/dist/{WidgetFrame-LRZIL62O.css → WidgetFrame-BTFW3CRK.css} +49 -5
  188. package/dist/{chunk-WJDQ7XQA.js → chunk-2QEDJSJC.js} +1 -1
  189. package/dist/{chunk-VYDFB6PJ.js → chunk-356JNSER.js} +50 -17
  190. package/dist/{chunk-2HIOJ4YZ.js → chunk-3EB2AV3H.js} +2 -3
  191. package/dist/{chunk-ODT5H4MN.js → chunk-3LYWD3BO.js} +2 -2
  192. package/dist/{chunk-OTN35CI4.js → chunk-3P4Y5RX6.js} +18 -6
  193. package/dist/{chunk-FAQGGX2Z.js → chunk-3TFDQLW3.js} +1 -1
  194. package/dist/{chunk-E6EWK5YY.js → chunk-3Y56GQPM.js} +3 -3
  195. package/dist/{chunk-A4E5YLXO.js → chunk-4B6LSFDS.js} +1 -1
  196. package/dist/{chunk-UAN5NE7M.js → chunk-5AQBPHZD.js} +1 -1
  197. package/dist/{chunk-CJKMURZO.js → chunk-5SZGKSGL.js} +1 -1
  198. package/dist/chunk-6VOS2GMB.js +54 -0
  199. package/dist/{chunk-QWOPX2MN.js → chunk-6ZJ3N7QI.js} +7 -5
  200. package/dist/{chunk-3ZAFJ4GK.js → chunk-7Q7WDXHG.js} +4 -4
  201. package/dist/{chunk-QH3AKP2N.js → chunk-AC22RZKC.js} +2 -2
  202. package/dist/{chunk-UZ6MA2V6.js → chunk-AORVEG5V.js} +2 -2
  203. package/dist/{chunk-ZITJKF6Z.js → chunk-AYB6AYNH.js} +1 -1
  204. package/dist/{chunk-FC4YTTFJ.js → chunk-BQ7AKL2N.js} +5 -5
  205. package/dist/{chunk-Y5NQ2LMS.js → chunk-BY4N65PM.js} +1 -1
  206. package/dist/{chunk-YFW4MTK4.js → chunk-C7DKX453.js} +1 -1
  207. package/dist/{chunk-RCQXUT5K.js → chunk-CCAXYHQS.js} +1 -1
  208. package/dist/{chunk-JQLTG4KH.js → chunk-CCLNGVCM.js} +62 -51
  209. package/dist/{chunk-6AH2XJ3Q.js → chunk-CFAJP777.js} +3 -3
  210. package/dist/{chunk-4KP4RC3O.js → chunk-CI3VPIJN.js} +1 -1
  211. package/dist/{chunk-7T42VQQT.js → chunk-CPEPST4S.js} +1 -1
  212. package/dist/{chunk-AAOH2P6Y.js → chunk-DFK5EQTU.js} +5 -3
  213. package/dist/{chunk-V5IGUXMZ.js → chunk-E4NNGC6X.js} +4 -4
  214. package/dist/{chunk-TGYDROIB.js → chunk-EBCHVFCS.js} +4 -4
  215. package/dist/{chunk-LWXRD6L6.js → chunk-EWAFN2IU.js} +118 -27
  216. package/dist/{chunk-YDBC4DNW.js → chunk-FWYHRU7M.js} +1 -1
  217. package/dist/{chunk-HVNTQ36V.js → chunk-GMU6SQ6B.js} +4 -4
  218. package/dist/{chunk-LIXSV5YI.js → chunk-GPHWCK7M.js} +1 -1
  219. package/dist/{chunk-UQHKFF2N.js → chunk-GPWJCP3U.js} +1 -1
  220. package/dist/{chunk-77DRMDXR.js → chunk-HG5VF3TZ.js} +192 -67
  221. package/dist/{chunk-QVE4GJAT.js → chunk-HJO4WCH6.js} +1 -1
  222. package/dist/{chunk-JI5AVQLA.js → chunk-HOIZ6MIS.js} +1 -1
  223. package/dist/{chunk-I3BSQUKN.js → chunk-HUVG2FFT.js} +1 -1
  224. package/dist/{chunk-VS3KOOOL.js → chunk-ILAEBSLJ.js} +3 -3
  225. package/dist/{chunk-P4BOXB6E.js → chunk-IUD5VA2Z.js} +6 -7
  226. package/dist/{chunk-GR55WT4R.js → chunk-IYO2N5ZH.js} +2 -2
  227. package/dist/{chunk-RWA4H2TV.js → chunk-J6ON5SYE.js} +1 -1
  228. package/dist/{chunk-AMNN4WDX.js → chunk-JBUMD6DS.js} +2 -2
  229. package/dist/{chunk-BWRGFKJP.js → chunk-K3IJQNB7.js} +2 -3
  230. package/dist/{chunk-LFNUH4GY.js → chunk-K4VP6ZKE.js} +1 -1
  231. package/dist/{chunk-ZR5VN5IV.js → chunk-KD2IRYCT.js} +2 -2
  232. package/dist/chunk-KF6YGL4B.js +160 -0
  233. package/dist/{chunk-SKOYC2CF.js → chunk-KK5OYNAF.js} +2 -1
  234. package/dist/{chunk-UB7TJEKZ.js → chunk-KV3ODJXH.js} +6 -7
  235. package/dist/chunk-LL5AFXU7.js +96 -0
  236. package/dist/{chunk-VYOKRN2I.js → chunk-LM3ISVJA.js} +1 -1
  237. package/dist/{chunk-E6CR5PEV.js → chunk-LV4APO72.js} +8 -2
  238. package/dist/{chunk-B4EBHPK3.js → chunk-M5KZX5JE.js} +9 -2
  239. package/dist/{chunk-HMPFGIWM.js → chunk-OMV5W53A.js} +10 -1
  240. package/dist/chunk-ONL54WMH.js +55 -0
  241. package/dist/{chunk-AKEZ3G5V.js → chunk-ONQKKHON.js} +1 -1
  242. package/dist/{chunk-LZHLSQYK.js → chunk-OOWPSBIS.js} +2 -2
  243. package/dist/{chunk-4KWOKX2B.js → chunk-OSKJZNBT.js} +1 -1
  244. package/dist/{chunk-4JUKWWUD.js → chunk-PLDUNXAO.js} +1 -1
  245. package/dist/{chunk-EHQTPVV4.js → chunk-PLTCDSTU.js} +1 -1
  246. package/dist/{chunk-5OM447RW.js → chunk-PZKHBB7D.js} +1 -1
  247. package/dist/{chunk-VEB5ERRE.js → chunk-QWNVSR6G.js} +2 -2
  248. package/dist/{chunk-IG75YMUN.js → chunk-RTPQDNW3.js} +1 -1
  249. package/dist/{chunk-YEKYVJQR.js → chunk-SGHIAGPR.js} +2 -2
  250. package/dist/{chunk-SVSCLHHI.js → chunk-SZZRIHGT.js} +1 -1
  251. package/dist/{chunk-EBNI36UQ.js → chunk-T46NR3WP.js} +3 -3
  252. package/dist/{chunk-FPS3JIPQ.js → chunk-TC7DJTXI.js} +1 -1
  253. package/dist/{chunk-W5J7R5EB.js → chunk-TEUQWOWZ.js} +1 -1
  254. package/dist/chunk-THROPJZC.js +115 -0
  255. package/dist/{chunk-IDBHX5SR.js → chunk-TRQCHF2F.js} +1 -1
  256. package/dist/{chunk-M3LUNN7F.js → chunk-TYKQ33CL.js} +13 -2
  257. package/dist/chunk-UDQW6UK7.js +129 -0
  258. package/dist/{chunk-WTNUVQVI.js → chunk-UHJQDFKQ.js} +1 -1
  259. package/dist/{chunk-VVRL27HM.js → chunk-ULPL26BU.js} +2 -2
  260. package/dist/{chunk-EBJREOKS.js → chunk-UXXJDIYE.js} +4 -4
  261. package/dist/{chunk-5LUI3WQP.js → chunk-V43UVX4H.js} +1 -1
  262. package/dist/{chunk-W4XYY73O.js → chunk-VHZ3AXJD.js} +1 -1
  263. package/dist/{chunk-NHBP2XS5.js → chunk-VI5FWDZW.js} +51 -3
  264. package/dist/{chunk-HJEVSQN6.js → chunk-VL6CUNSX.js} +11 -5
  265. package/dist/{chunk-XDTYBF2F.js → chunk-W5XCNEZC.js} +39 -1
  266. package/dist/{chunk-LDJ3J4TQ.js → chunk-WGD2HX2A.js} +1 -1
  267. package/dist/{chunk-FQCLKD7U.js → chunk-WKEPORNM.js} +1 -1
  268. package/dist/{chunk-PJD2KFHX.js → chunk-WPX6A5BV.js} +38 -13
  269. package/dist/{chunk-I3KKZ2O3.js → chunk-XEGZHHRH.js} +45 -36
  270. package/dist/{chunk-IKB6HFGK.js → chunk-XO7PUL4F.js} +6 -4
  271. package/dist/chunk-XTOVADJU.js +170 -0
  272. package/dist/chunk-XV32RKQZ.js +142 -0
  273. package/dist/{chunk-TBMDMXEX.js → chunk-YA3AWELW.js} +1 -1
  274. package/dist/{chunk-HVIX5ECM.js → chunk-YEVG2X5R.js} +1 -1
  275. package/dist/chunk-YZFLH463.js +215 -0
  276. package/dist/generated/index.d.ts +5 -0
  277. package/dist/generated/index.js +112 -108
  278. package/dist/index.js +112 -108
  279. package/dist/styles.css +1982 -228
  280. package/package.json +3 -3
  281. package/dist/AccessDeniedCard-WXM5DBDZ.css +0 -8
  282. package/dist/ArtifactCard-EXVAEBV6.css +0 -109
  283. package/dist/DocTabsEditor-RCOWHX5J.css +0 -78
  284. package/dist/PresenterView-T2C6ZZ3N.css +0 -103
  285. package/dist/SandboxedFrame-L6HBQZCD.css +0 -50
  286. package/dist/chunk-CRKFL423.js +0 -74
  287. package/dist/chunk-GOSQXEZU.js +0 -102
  288. package/dist/chunk-MBNFJSZS.js +0 -107
  289. package/dist/chunk-RV7SZAHR.js +0 -105
  290. package/dist/chunk-UZ7ZUSLH.js +0 -179
  291. package/dist/utils/useMediaMatch.d.ts +0 -12
  292. /package/dist/{chunk-TF2P3OPS.js → chunk-YCARLYI6.js} +0 -0
@@ -0,0 +1,160 @@
1
+ import { cx } from './chunk-ODEQTPFM.js';
2
+ import './LivePreview-SRO7KHO4.css';
3
+ import { createContext, useMemo, useContext, useRef, useState, useEffect, useLayoutEffect } from 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ // src/LivePreview/budget.ts
7
+ var LIVE_PREVIEW_MAX = 12;
8
+ var immediately = (run) => {
9
+ run();
10
+ return () => {
11
+ };
12
+ };
13
+ var perFrame = (run) => {
14
+ if (typeof requestAnimationFrame === "undefined") return immediately(run);
15
+ let timer;
16
+ const frame = requestAnimationFrame(() => {
17
+ timer = setTimeout(run, 0);
18
+ });
19
+ return () => {
20
+ cancelAnimationFrame(frame);
21
+ if (timer !== void 0) clearTimeout(timer);
22
+ };
23
+ };
24
+ function createLivePreviewBudget(max = LIVE_PREVIEW_MAX, schedule = immediately) {
25
+ const held = /* @__PURE__ */ new Set();
26
+ const queue = [];
27
+ let pending = null;
28
+ const next = () => {
29
+ if (pending || held.size >= max || queue.length === 0) return;
30
+ let ran = false;
31
+ const cancel = schedule(() => {
32
+ ran = true;
33
+ pending = null;
34
+ const ask = queue.shift();
35
+ if (ask && held.size < max) {
36
+ held.add(ask.ticket);
37
+ ask.grant();
38
+ } else if (ask) {
39
+ queue.unshift(ask);
40
+ }
41
+ next();
42
+ });
43
+ if (!ran) pending = cancel;
44
+ };
45
+ return {
46
+ max,
47
+ request(grant) {
48
+ const ticket = {};
49
+ queue.push({ ticket, grant });
50
+ next();
51
+ let done = false;
52
+ return () => {
53
+ if (done) return;
54
+ done = true;
55
+ if (held.delete(ticket)) {
56
+ next();
57
+ return;
58
+ }
59
+ const at = queue.findIndex((a) => a.ticket === ticket);
60
+ if (at >= 0) queue.splice(at, 1);
61
+ if (queue.length === 0 && pending) {
62
+ pending();
63
+ pending = null;
64
+ }
65
+ };
66
+ },
67
+ live: () => held.size,
68
+ waiting: () => queue.length
69
+ };
70
+ }
71
+ var LIVE_PREVIEW_DWELL_MS = 120;
72
+ var DefaultBudget = createLivePreviewBudget(LIVE_PREVIEW_MAX, perFrame);
73
+ var BudgetContext = createContext(DefaultBudget);
74
+ function LivePreviewBudgetProvider({ max = LIVE_PREVIEW_MAX, children }) {
75
+ const budget = useMemo(() => createLivePreviewBudget(max, perFrame), [max]);
76
+ return /* @__PURE__ */ jsx(BudgetContext.Provider, { value: budget, children });
77
+ }
78
+ var NOOP = { ready: () => {
79
+ }, fail: () => {
80
+ } };
81
+ var SignalContext = createContext(NOOP);
82
+ function useLivePreview() {
83
+ return useContext(SignalContext);
84
+ }
85
+ function LivePreview({ children, fallback, width, rootMargin = "200px 0px", disabled = false, dwellMs = LIVE_PREVIEW_DWELL_MS, onStateChange, className }) {
86
+ const budget = useContext(BudgetContext);
87
+ const box = useRef(null);
88
+ const [near, setNear] = useState(false);
89
+ const [state, setState] = useState("idle");
90
+ const [failed, setFailed] = useState(false);
91
+ useEffect(() => {
92
+ const el = box.current;
93
+ if (!el || disabled || typeof IntersectionObserver === "undefined") return void 0;
94
+ const seen = new IntersectionObserver((entries) => setNear(entries.some((e) => e.isIntersecting)), { rootMargin });
95
+ seen.observe(el);
96
+ return () => seen.disconnect();
97
+ }, [disabled, rootMargin]);
98
+ useEffect(() => {
99
+ if (!near || disabled || failed) {
100
+ setState(failed ? "failed" : "idle");
101
+ return void 0;
102
+ }
103
+ setState("waiting");
104
+ let granted = false;
105
+ let giveBack = () => {
106
+ };
107
+ const dwell = setTimeout(() => {
108
+ giveBack = budget.request(() => {
109
+ granted = true;
110
+ setState("live");
111
+ });
112
+ }, dwellMs);
113
+ return () => {
114
+ clearTimeout(dwell);
115
+ giveBack();
116
+ if (granted) setState("idle");
117
+ };
118
+ }, [near, disabled, failed, budget, dwellMs]);
119
+ useEffect(() => onStateChange?.(state), [state, onStateChange]);
120
+ const mounted = state === "live" || state === "ready";
121
+ const signals = useMemo(
122
+ () => ({
123
+ ready: () => setState((s) => s === "live" ? "ready" : s),
124
+ fail: () => setFailed(true)
125
+ }),
126
+ []
127
+ );
128
+ return /* @__PURE__ */ jsxs("span", { ref: box, className: cx("crewlet-live-preview", className), "data-state": state, "aria-hidden": "true", children: [
129
+ /* @__PURE__ */ jsx("span", { className: "crewlet-live-preview__fallback", children: fallback }),
130
+ mounted ? /* @__PURE__ */ jsx("span", { className: "crewlet-live-preview__live", inert: true, children: /* @__PURE__ */ jsx(SignalContext.Provider, { value: signals, children: width === void 0 ? children : /* @__PURE__ */ jsx(PreviewScale, { width, children }) }) }) : null
131
+ ] });
132
+ }
133
+ function PreviewScale({ children, width, height, fit = "width" }) {
134
+ const box = useRef(null);
135
+ const [size, setSize] = useState(null);
136
+ useLayoutEffect(() => {
137
+ const el = box.current;
138
+ if (!el) return void 0;
139
+ const measure = () => {
140
+ const rect = el.getBoundingClientRect();
141
+ if (rect.width > 0) setSize((was) => was && was.w === rect.width && was.h === rect.height ? was : { w: rect.width, h: rect.height });
142
+ };
143
+ measure();
144
+ if (typeof ResizeObserver === "undefined") return void 0;
145
+ const watch = new ResizeObserver(measure);
146
+ watch.observe(el);
147
+ return () => watch.disconnect();
148
+ }, []);
149
+ let layer = { width, visibility: "hidden" };
150
+ if (size) {
151
+ const k = fit === "contain" && height ? Math.min(size.w / width, size.h / height) : size.w / width;
152
+ const h = height ?? size.h / k;
153
+ const left = fit === "contain" ? (size.w - width * k) / 2 : 0;
154
+ const top = fit === "contain" ? (size.h - h * k) / 2 : 0;
155
+ layer = { width, height: h, transform: `translate(${left}px, ${top}px) scale(${k})` };
156
+ }
157
+ return /* @__PURE__ */ jsx("span", { ref: box, className: "crewlet-preview-scale", children: /* @__PURE__ */ jsx("span", { className: "crewlet-preview-scale__layer", style: layer, children }) });
158
+ }
159
+
160
+ export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MAX, LivePreview, LivePreviewBudgetProvider, PreviewScale, createLivePreviewBudget, immediately, perFrame, useLivePreview };
@@ -257,12 +257,13 @@ var underOpens = (d) => String.raw`(?<!${NOT_WP})${d}(?!\s|$)`;
257
257
  var underCloses = (d) => String.raw`(?<!\s)${d}(?!${NOT_WP})`;
258
258
  var label = (name) => String.raw`(?<${name}>(?:\\[\s\S]|[^\]\\])*)`;
259
259
  var destination = (name, title) => String.raw`(?<${name}>(?:[^()\s]|\([^()\s]*\))*)(?:\s+"(?<${title}>[^"]*)")?\)`;
260
+ var linkLabel = (name) => String.raw`(?<${name}>(?:\\[\s\S]|!\[(?:\\[\s\S]|[^\]\\])*\]\((?:[^()\s]|\([^()\s]*\))*(?:\s+"[^"]*")?\)|[^\]\\])*)`;
260
261
  var ASCII_PUNCTUATION = String.raw`[!-\/:-@\[-\x60{-~]`;
261
262
  var INLINE_SOURCE = [
262
263
  String.raw`\\(?<esc>${ASCII_PUNCTUATION})`,
263
264
  String.raw`(?<tick>\x60+)(?<code>[\s\S]*?)\k<tick>`,
264
265
  String.raw`!\[` + label("alt") + String.raw`\]\(` + destination("src", "srcTitle"),
265
- String.raw`\[` + label("label") + String.raw`\]\(` + destination("href", "hrefTitle"),
266
+ String.raw`\[` + linkLabel("label") + String.raw`\]\(` + destination("href", "hrefTitle"),
266
267
  String.raw`<(?<auto>(?:https?:|mailto:)[^>\s]+)>`,
267
268
  // A strong run closes on a `**` no third asterisk follows, so `***both***`
268
269
  // is strong around emphasis rather than strong around `*both` and a stray.
@@ -1,7 +1,6 @@
1
1
  import { EmptyState } from './chunk-RA2ULG6H.js';
2
- import { Card } from './chunk-ACA27MZH.js';
3
2
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './AccessDeniedCard-WXM5DBDZ.css';
3
+ import './AccessDeniedCard-QVNDMT46.css';
5
4
  import { ShieldGlyph, LockGlyph, EyeOffGlyph } from '@crewlethq/icons/glyphs';
6
5
  import { jsx } from 'react/jsx-runtime';
7
6
 
@@ -21,17 +20,17 @@ var LABELS = {
21
20
  }
22
21
  };
23
22
  var GLYPHS = {
24
- "not-found": /* @__PURE__ */ jsx(EyeOffGlyph, { size: 32 }),
25
- "no-access": /* @__PURE__ */ jsx(LockGlyph, { size: 32 }),
26
- revoked: /* @__PURE__ */ jsx(LockGlyph, { size: 32 }),
27
- "app-locked": /* @__PURE__ */ jsx(ShieldGlyph, { size: 32 })
23
+ "not-found": /* @__PURE__ */ jsx(EyeOffGlyph, { size: "xl" }),
24
+ "no-access": /* @__PURE__ */ jsx(LockGlyph, { size: "xl" }),
25
+ revoked: /* @__PURE__ */ jsx(LockGlyph, { size: "xl" }),
26
+ "app-locked": /* @__PURE__ */ jsx(ShieldGlyph, { size: "xl" })
28
27
  };
29
28
  function AccessDeniedCard({ reason, owner, action, headingLevel, className, labels }) {
30
29
  const text = {
31
30
  titles: { ...LABELS.titles, ...labels?.titles },
32
31
  descriptions: { ...LABELS.descriptions, ...labels?.descriptions }
33
32
  };
34
- return /* @__PURE__ */ jsx(Card, { padding: "lg", className: cx("crewlet-access-denied-card", className), "data-reason": reason, children: /* @__PURE__ */ jsx(
33
+ return /* @__PURE__ */ jsx("div", { className: cx("crewlet-access-denied-card", className), "data-reason": reason, children: /* @__PURE__ */ jsx(
35
34
  EmptyState,
36
35
  {
37
36
  icon: GLYPHS[reason],
@@ -0,0 +1,96 @@
1
+ import { SlideStage } from './chunk-LV4APO72.js';
2
+ import { Button } from './chunk-OG6CL3EB.js';
3
+ import { VisuallyHidden } from './chunk-BZFWDIV6.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './SlideCompare-HTCMPQFY.css';
6
+ import { useState } from 'react';
7
+ import { MinusGlyph, PlusGlyph, PencilGlyph, ArrowUpDownGlyph } from '@crewlethq/icons/glyphs';
8
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
9
+
10
+ var plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
11
+ var SLIDE_COMPARE_LABELS = {
12
+ changed: "Changed",
13
+ added: "Added",
14
+ removed: "Removed",
15
+ unchanged: "Unchanged",
16
+ moved: (from, to) => `Moved from ${from} to ${to}`,
17
+ missing: "Not in this version",
18
+ summary: (c) => [
19
+ c.changed && plural(c.changed, "slide changed", "slides changed"),
20
+ c.added && plural(c.added, "added", "added"),
21
+ c.removed && plural(c.removed, "removed", "removed"),
22
+ c.moved && plural(c.moved, "moved", "moved")
23
+ ].filter(Boolean).join(", ") + ".",
24
+ showUnchanged: (n) => `Show the ${plural(n, "unchanged slide", "unchanged slides")}`,
25
+ hideUnchanged: "Hide the unchanged slides",
26
+ identical: "The two versions hold the same slides, in the same order."
27
+ };
28
+ var MARKS = {
29
+ changed: PencilGlyph,
30
+ added: PlusGlyph,
31
+ removed: MinusGlyph,
32
+ unchanged: null
33
+ };
34
+ function SlideCompare({ rows, fromLabel, toLabel, className, labels }) {
35
+ const text = { ...SLIDE_COMPARE_LABELS, ...labels };
36
+ const [showAll, setShowAll] = useState(false);
37
+ const counts = { changed: 0, added: 0, removed: 0, moved: 0 };
38
+ for (const r of rows) {
39
+ if (r.change !== "unchanged") counts[r.change] += 1;
40
+ if (r.moved) counts.moved += 1;
41
+ }
42
+ const still = rows.filter((r) => r.change === "unchanged" && !r.moved);
43
+ const shown = showAll ? rows : rows.filter((r) => r.change !== "unchanged" || r.moved);
44
+ const differs = counts.changed + counts.added + counts.removed + counts.moved > 0;
45
+ return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-slide-compare", className), children: [
46
+ /* @__PURE__ */ jsx("p", { className: "crewlet-slide-compare__summary", children: differs ? text.summary(counts) : text.identical }),
47
+ shown.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
48
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-slide-compare__columns", "aria-hidden": "true", children: [
49
+ /* @__PURE__ */ jsx("span", { children: fromLabel }),
50
+ /* @__PURE__ */ jsx("span", { children: toLabel })
51
+ ] }),
52
+ /* @__PURE__ */ jsx("ol", { className: "crewlet-slide-compare__list", children: shown.map((row) => {
53
+ const Mark = MARKS[row.change];
54
+ return /* @__PURE__ */ jsxs("li", { className: "crewlet-slide-compare__row", "data-change": row.change, children: [
55
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-slide-compare__head", children: [
56
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__title", children: [
57
+ row.toPosition ?? row.fromPosition,
58
+ ". ",
59
+ row.title
60
+ ] }),
61
+ row.change === "unchanged" && row.moved ? null : /* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__change", children: [
62
+ Mark ? /* @__PURE__ */ jsx(Mark, { size: "sm" }) : null,
63
+ text[row.change]
64
+ ] }),
65
+ row.moved && row.fromPosition !== void 0 && row.toPosition !== void 0 ? /* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__change", children: [
66
+ /* @__PURE__ */ jsx(ArrowUpDownGlyph, { size: "sm" }),
67
+ text.moved(row.fromPosition, row.toPosition)
68
+ ] }) : null
69
+ ] }),
70
+ /* @__PURE__ */ jsx("div", { className: "crewlet-slide-compare__sides", children: [
71
+ { side: "from", label: fromLabel, node: row.from, at: row.fromPosition },
72
+ { side: "to", label: toLabel, node: row.to, at: row.toPosition }
73
+ ].map((s) => /* @__PURE__ */ jsxs("div", { className: "crewlet-slide-compare__side", "data-side": s.side, children: [
74
+ /* @__PURE__ */ jsx("span", { className: "crewlet-slide-compare__side-label", "aria-hidden": "true", children: s.label }),
75
+ s.node !== void 0 && s.node !== null ? /* @__PURE__ */ jsx(SlideStage, { label: `${s.label}, slide ${s.at ?? ""}, ${row.title}`, framed: true, children: s.node }) : /* @__PURE__ */ jsxs("p", { className: "crewlet-slide-compare__missing", children: [
76
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: `${s.label}: ` }),
77
+ text.missing
78
+ ] })
79
+ ] }, s.side)) })
80
+ ] }, row.key);
81
+ }) })
82
+ ] }) : null,
83
+ still.length > 0 ? /* @__PURE__ */ jsx(
84
+ Button,
85
+ {
86
+ className: "crewlet-slide-compare__toggle",
87
+ size: "small",
88
+ variant: "ghost",
89
+ onClick: () => setShowAll((v) => !v),
90
+ children: showAll ? text.hideUnchanged : text.showUnchanged(still.length)
91
+ }
92
+ ) : null
93
+ ] });
94
+ }
95
+
96
+ export { SLIDE_COMPARE_LABELS, SlideCompare };
@@ -1,4 +1,4 @@
1
- import { useLayerContainer } from './chunk-HMPFGIWM.js';
1
+ import { useLayerContainer } from './chunk-OMV5W53A.js';
2
2
  import { useRef, useLayoutEffect } from 'react';
3
3
 
4
4
  function LayerNodeBridge({ onNode }) {
@@ -1,6 +1,6 @@
1
1
  import { isComposing } from './chunk-R25RGPUB.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './SlideStage-KGRRALXR.css';
3
+ import './SlideStage-S2FISF4C.css';
4
4
  import { useRef, useState, useLayoutEffect, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
@@ -76,6 +76,7 @@ function SlideStage({
76
76
  width = SLIDE_WIDTH,
77
77
  height = SLIDE_HEIGHT,
78
78
  roleDescription = "slide",
79
+ framed = false,
79
80
  className
80
81
  }) {
81
82
  const box = useRef(null);
@@ -121,7 +122,12 @@ function SlideStage({
121
122
  "div",
122
123
  {
123
124
  ref: box,
124
- className: cx("crewlet-slide-stage", `crewlet-slide-stage--${fit}`, className),
125
+ className: cx(
126
+ "crewlet-slide-stage",
127
+ `crewlet-slide-stage--${fit}`,
128
+ framed && fit !== "contain" && "crewlet-slide-stage--framed",
129
+ className
130
+ ),
125
131
  style: boxStyle,
126
132
  role: "group",
127
133
  "aria-roledescription": roleDescription,
@@ -1,6 +1,6 @@
1
1
  import { Count } from './chunk-BHHIIK3M.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './ArrangeGroup-GY5YMP6E.css';
3
+ import './ArrangeGroup-KRWWOJKR.css';
4
4
  import { useId } from 'react';
5
5
  import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -9,6 +9,7 @@ var PLACEHOLDER = "Name this group";
9
9
  function ArrangeGroup({
10
10
  title,
11
11
  tone = "none",
12
+ variant = "band",
12
13
  collapsed,
13
14
  onCollapsedChange,
14
15
  count,
@@ -27,7 +28,13 @@ function ArrangeGroup({
27
28
  return /* @__PURE__ */ jsxs(
28
29
  "section",
29
30
  {
30
- className: cx("crewlet-arrange-group", `crewlet-arrange-group--${tone}`, collapsed && "is-collapsed", className),
31
+ className: cx(
32
+ "crewlet-arrange-group",
33
+ `crewlet-arrange-group--${tone}`,
34
+ variant === "section" && "crewlet-arrange-group--section",
35
+ collapsed && "is-collapsed",
36
+ className
37
+ ),
31
38
  "aria-label": title || "Untitled group",
32
39
  ...rest,
33
40
  children: [
@@ -23,6 +23,15 @@ function placePopup(anchor, size, bounds, gap = LAYER_GAP, prefer = "below") {
23
23
  function viewportBounds() {
24
24
  return { x: 0, y: 0, width: window.innerWidth, height: window.innerHeight };
25
25
  }
26
+ function anchorGone(anchor, host, inHost) {
27
+ const own = {
28
+ x: anchor.left - (inHost ? host.x : 0),
29
+ y: anchor.top - (inHost ? host.y : 0),
30
+ width: anchor.width,
31
+ height: anchor.height
32
+ };
33
+ return outsideBounds(own, { x: 0, y: 0, width: host.width, height: host.height });
34
+ }
26
35
  function outsideBounds(anchor, bounds) {
27
36
  return anchor.x + anchor.width < bounds.x || anchor.y + anchor.height < bounds.y || anchor.x > bounds.x + bounds.width || anchor.y > bounds.y + bounds.height;
28
37
  }
@@ -40,4 +49,4 @@ function useLayerContainer() {
40
49
  return typeof document === "undefined" ? null : document.body;
41
50
  }
42
51
 
43
- export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, outsideBounds, placePopup, useLayerContainer, viewportBounds };
52
+ export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, anchorGone, outsideBounds, placePopup, useLayerContainer, viewportBounds };
@@ -0,0 +1,55 @@
1
+ import { useRoving } from './chunk-RKKO7QHH.js';
2
+ import { cx } from './chunk-ODEQTPFM.js';
3
+ import './LayersList-NQZEIPZB.css';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ var LAYERS_LIST_LABELS = {
7
+ openable: (label) => `${label}, press Enter or double-click to open`
8
+ };
9
+ function LayersList({
10
+ label,
11
+ items,
12
+ selected = null,
13
+ onSelect,
14
+ onOpen,
15
+ heading,
16
+ labels,
17
+ className
18
+ }) {
19
+ const text = { ...LAYERS_LIST_LABELS, ...labels };
20
+ const roving = useRoving(items.length, null, { followFocus: true });
21
+ const picked = items.findIndex((item) => item.id === selected);
22
+ const stop = roving.focused ?? Math.max(0, picked);
23
+ const onKeyDown = (event, id) => {
24
+ if (event.key === "Enter" && onOpen) {
25
+ event.preventDefault();
26
+ onOpen(id);
27
+ return;
28
+ }
29
+ roving.onKeyDown(event, true);
30
+ };
31
+ return /* @__PURE__ */ jsxs("nav", { className: cx("crewlet-layers-list", className), "aria-label": label, children: [
32
+ heading !== void 0 && heading !== null ? /* @__PURE__ */ jsx("div", { className: "crewlet-layers-list__heading", children: heading }) : null,
33
+ /* @__PURE__ */ jsx("ol", { className: "crewlet-layers-list__items", children: items.map((item, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
34
+ "button",
35
+ {
36
+ type: "button",
37
+ ref: (el) => {
38
+ roving.buttons.current[index] = el;
39
+ },
40
+ className: "crewlet-layers-list__item",
41
+ "aria-label": onOpen ? text.openable(item.label) : void 0,
42
+ "aria-current": item.id === selected ? "true" : void 0,
43
+ title: item.label,
44
+ tabIndex: index === stop ? 0 : -1,
45
+ onFocus: () => roving.onFocusAt(index),
46
+ onClick: () => onSelect?.(item.id),
47
+ onDoubleClick: onOpen ? () => onOpen(item.id) : void 0,
48
+ onKeyDown: (event) => onKeyDown(event, item.id),
49
+ children: item.label
50
+ }
51
+ ) }, item.id)) })
52
+ ] });
53
+ }
54
+
55
+ export { LAYERS_LIST_LABELS, LayersList };
@@ -1,4 +1,4 @@
1
- import { Avatar } from './chunk-5OM447RW.js';
1
+ import { Avatar } from './chunk-PZKHBB7D.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './OrgLabel-R5KY7C3W.css';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-PGRPNDWM.js';
2
- import { SegmentedControl } from './chunk-RCQXUT5K.js';
3
- import { tabId } from './chunk-HJEVSQN6.js';
2
+ import { SegmentedControl } from './chunk-CCAXYHQS.js';
3
+ import { tabId } from './chunk-VL6CUNSX.js';
4
4
  import { IconButton } from './chunk-4FQT6ZAY.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './MarkdownEditor-WOKV7CLK.css';
@@ -1,4 +1,4 @@
1
- import { Avatar } from './chunk-5OM447RW.js';
1
+ import { Avatar } from './chunk-PZKHBB7D.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './EntityChip-LUCPZBBG.css';
4
4
  import { Children, isValidElement, cloneElement } from 'react';
@@ -1,4 +1,4 @@
1
- import { ArtifactKindGlyph } from './chunk-GOSQXEZU.js';
1
+ import { ArtifactKindGlyph } from './chunk-XTOVADJU.js';
2
2
  import { ShieldGlyph, ActivityGlyph, GaugeGlyph, PackageGlyph, FolderGlyph, ClockGlyph, DatabaseGlyph, Settings2Glyph, BookOpenGlyph, FlagGlyph, StarGlyph, WandSparklesGlyph, BugGlyph, TargetGlyph, ImageGlyph, CodeGlyph, CoinsGlyph, UserGlyph, UsersGlyph, ChartNoAxesGanttGlyph, SquareKanbanGlyph, ListChecksGlyph, ListGlyph, GlobeGlyph, CompassGlyph, FileTextGlyph, TableGlyph, CalendarGlyph, LayoutDashboardGlyph, ChartPieGlyph, ChartColumnGlyph } from '@crewlethq/icons/glyphs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-BVWSLXTY.js';
2
- import { SegmentedControl } from './chunk-RCQXUT5K.js';
2
+ import { SegmentedControl } from './chunk-CCAXYHQS.js';
3
3
  import { EmptyState } from './chunk-RA2ULG6H.js';
4
4
  import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -20,7 +20,7 @@ function avatarInitialsName(name, kind) {
20
20
  var AVATAR_CHARACTER_FULL_DETAIL = 56;
21
21
  var getInitials = (name) => {
22
22
  if (!name) return "?";
23
- const words = name.trim().split(/[\s\-_.]+/).filter(Boolean);
23
+ const words = name.trim().split(/[\s\-_.:]+/).map((word2) => word2.replace(/^\p{P}+|\p{P}+$/gu, "")).filter(Boolean);
24
24
  if (words.length === 0) return "?";
25
25
  const first = (word2) => (Array.from(word2)[0] ?? "").toUpperCase();
26
26
  if (words.length >= 2) return words.slice(0, 2).map(first).join("") || "?";
@@ -1,6 +1,6 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { LayerNodeBridge } from './chunk-VYOKRN2I.js';
3
- import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-HMPFGIWM.js';
2
+ import { LayerNodeBridge } from './chunk-LM3ISVJA.js';
3
+ import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-OMV5W53A.js';
4
4
  import { focusables } from './chunk-R25RGPUB.js';
5
5
  import { IconButton } from './chunk-4FQT6ZAY.js';
6
6
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useSyncExternalStore } from 'react';
2
2
 
3
- // src/utils/useMediaMatch.ts
3
+ // src/MediaMatch/useMediaMatch.ts
4
4
  function useMediaMatch(query) {
5
5
  const subscribe = useCallback(
6
6
  (notify) => {
@@ -1,5 +1,5 @@
1
- import { changeText, sheetLabels } from './chunk-NHBP2XS5.js';
2
- import { Tooltip } from './chunk-QWOPX2MN.js';
1
+ import { changeText, sheetLabels } from './chunk-VI5FWDZW.js';
2
+ import { Tooltip } from './chunk-6ZJ3N7QI.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ChangeMark-3VMTW7MT.css';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { cx } from './chunk-ODEQTPFM.js';
2
- import './Callout-SXXK4B5R.css';
2
+ import './Callout-ZAVG3P66.css';
3
3
  import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,10 +1,10 @@
1
- import { useMediaMatch } from './chunk-IG75YMUN.js';
2
- import { Menu } from './chunk-2HIOJ4YZ.js';
1
+ import { useMediaMatch } from './chunk-RTPQDNW3.js';
2
+ import { Menu } from './chunk-3EB2AV3H.js';
3
3
  import { useModalLayer, focusables } from './chunk-R25RGPUB.js';
4
4
  import { IconButton } from './chunk-4FQT6ZAY.js';
5
5
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
- import './AppShell-GCM4TDVY.css';
7
+ import './AppShell-JTSEOA57.css';
8
8
  import { createContext, forwardRef, useContext, useId, useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
9
9
  import { breakpoint } from '@crewlethq/tokens';
10
10
  import { ChevronUpGlyph, ChevronsUpDownGlyph, ChevronRightGlyph, MenuGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { cx } from './chunk-ODEQTPFM.js';
2
- import './EditingStatus-L6THUAN7.css';
2
+ import './EditingStatus-NNA2CKIL.css';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var LABELS = {
@@ -30,7 +30,7 @@ var Placeholder = ({
30
30
  style: {
31
31
  height: typeof height === "number" ? `${height}px` : height,
32
32
  width: typeof width === "number" ? `${width}px` : width,
33
- borderRadius: `${borderRadius}px`
33
+ borderRadius: typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius
34
34
  },
35
35
  children: /* @__PURE__ */ jsx("div", { className: "crewlet-skeleton__glow-wave" })
36
36
  }