@arbidocs/blocks 0.5.157 → 0.5.158

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 (228) hide show
  1. package/dist/{ConnectedCallDock-TGI43VKB.cjs → ConnectedCallDock-ML4ZTABN.cjs} +27 -27
  2. package/dist/{ConnectedCallDock-TGI43VKB.cjs.map → ConnectedCallDock-ML4ZTABN.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-FBTDSG3N.cjs → ConnectedCallRoom-GBTP2LT2.cjs} +19 -19
  4. package/dist/{ConnectedCallRoom-FBTDSG3N.cjs.map → ConnectedCallRoom-GBTP2LT2.cjs.map} +1 -1
  5. package/dist/{ConnectedMailInviteCard-LV2VARX3.cjs → ConnectedMailInviteCard-VMFTQ5PW.cjs} +5 -5
  6. package/dist/{ConnectedMailInviteCard-LV2VARX3.cjs.map → ConnectedMailInviteCard-VMFTQ5PW.cjs.map} +1 -1
  7. package/dist/{ConnectedNativeDocxComparison-7VD4ZIHO.cjs → ConnectedNativeDocxComparison-JB77U5MF.cjs} +23 -23
  8. package/dist/{ConnectedNativeDocxComparison-7VD4ZIHO.cjs.map → ConnectedNativeDocxComparison-JB77U5MF.cjs.map} +1 -1
  9. package/dist/{ConnectedPresentation-FDYO2TSX.cjs → ConnectedPresentation-SQZJG6ZG.cjs} +22 -22
  10. package/dist/{ConnectedPresentation-FDYO2TSX.cjs.map → ConnectedPresentation-SQZJG6ZG.cjs.map} +1 -1
  11. package/dist/{ConnectedProductionSetDialog-4N7R7SFZ.cjs → ConnectedProductionSetDialog-7J4T3L6U.cjs} +3 -3
  12. package/dist/{ConnectedProductionSetDialog-4N7R7SFZ.cjs.map → ConnectedProductionSetDialog-7J4T3L6U.cjs.map} +1 -1
  13. package/dist/{ConnectedSlidesTab-NM2UEE77.cjs → ConnectedSlidesTab-VLRDE7YI.cjs} +18 -18
  14. package/dist/{ConnectedSlidesTab-NM2UEE77.cjs.map → ConnectedSlidesTab-VLRDE7YI.cjs.map} +1 -1
  15. package/dist/{ConnectedStreamedWordArtifact-ISLZLV4V.cjs → ConnectedStreamedWordArtifact-HL7PQWLF.cjs} +23 -23
  16. package/dist/{ConnectedStreamedWordArtifact-ISLZLV4V.cjs.map → ConnectedStreamedWordArtifact-HL7PQWLF.cjs.map} +1 -1
  17. package/dist/{DocumentReviewCard-5CVWGOZQ.cjs → DocumentReviewCard-KYC4PXXF.cjs} +28 -28
  18. package/dist/{DocumentReviewCard-5CVWGOZQ.cjs.map → DocumentReviewCard-KYC4PXXF.cjs.map} +1 -1
  19. package/dist/{FilesViewerDialog-PXUXYTPK.cjs → FilesViewerDialog-SHS35TMG.cjs} +63 -63
  20. package/dist/{FilesViewerDialog-PXUXYTPK.cjs.map → FilesViewerDialog-SHS35TMG.cjs.map} +1 -1
  21. package/dist/RechartsRenderer-KFHFIEIQ.cjs +347 -0
  22. package/dist/RechartsRenderer-KFHFIEIQ.cjs.map +1 -0
  23. package/dist/TimeSeriesDrawing-UHDFZPYG.cjs +166 -0
  24. package/dist/TimeSeriesDrawing-UHDFZPYG.cjs.map +1 -0
  25. package/dist/{WorkspaceTableView-HR4KTFSX.cjs → WorkspaceTableView-BO3N2NYC.cjs} +14 -14
  26. package/dist/{WorkspaceTableView-HR4KTFSX.cjs.map → WorkspaceTableView-BO3N2NYC.cjs.map} +1 -1
  27. package/dist/agents/index.cjs +385 -385
  28. package/dist/agents/tasks/WorkflowsTable.js +10 -6
  29. package/dist/agents/tasks/WorkflowsTable.js.map +2 -2
  30. package/dist/{ai-HME7CNDE.cjs → ai-NFZHPSS2.cjs} +28 -28
  31. package/dist/ai-NFZHPSS2.cjs.map +1 -0
  32. package/dist/auth/index.cjs +2 -2
  33. package/dist/calendar/index.cjs +106 -106
  34. package/dist/calls/index.cjs +155 -155
  35. package/dist/chat/index.cjs +22 -22
  36. package/dist/{chunk-ST5EZE2O.cjs → chunk-2I7Z3XFC.cjs} +12 -12
  37. package/dist/{chunk-ST5EZE2O.cjs.map → chunk-2I7Z3XFC.cjs.map} +1 -1
  38. package/dist/{chunk-NGATAD62.cjs → chunk-2P7VH2SK.cjs} +3 -3
  39. package/dist/{chunk-NGATAD62.cjs.map → chunk-2P7VH2SK.cjs.map} +1 -1
  40. package/dist/{chunk-BAZZTZW5.cjs → chunk-2XHJVYNY.cjs} +6 -6
  41. package/dist/{chunk-BAZZTZW5.cjs.map → chunk-2XHJVYNY.cjs.map} +1 -1
  42. package/dist/{chunk-PFGRONAI.cjs → chunk-3GQQUR27.cjs} +4 -4
  43. package/dist/{chunk-PFGRONAI.cjs.map → chunk-3GQQUR27.cjs.map} +1 -1
  44. package/dist/{chunk-N362DFM4.cjs → chunk-3RAW2ZH5.cjs} +3 -3
  45. package/dist/{chunk-N362DFM4.cjs.map → chunk-3RAW2ZH5.cjs.map} +1 -1
  46. package/dist/{chunk-HJDMKDAE.cjs → chunk-4GT4JLKS.cjs} +7 -7
  47. package/dist/{chunk-HJDMKDAE.cjs.map → chunk-4GT4JLKS.cjs.map} +1 -1
  48. package/dist/{chunk-KL7R2IBY.cjs → chunk-4M3OIBIS.cjs} +2 -2
  49. package/dist/{chunk-KL7R2IBY.cjs.map → chunk-4M3OIBIS.cjs.map} +1 -1
  50. package/dist/{chunk-JUOGNUQR.cjs → chunk-4RR7ZZPD.cjs} +50 -8
  51. package/dist/chunk-4RR7ZZPD.cjs.map +1 -0
  52. package/dist/{chunk-GQIH6ALC.cjs → chunk-5AQHL4E3.cjs} +742 -742
  53. package/dist/chunk-5AQHL4E3.cjs.map +1 -0
  54. package/dist/{chunk-LZZSCW7D.cjs → chunk-5HPUGSTJ.cjs} +18 -17
  55. package/dist/chunk-5HPUGSTJ.cjs.map +1 -0
  56. package/dist/{chunk-5NWTA4Y4.cjs → chunk-6AFAYGJW.cjs} +5 -5
  57. package/dist/{chunk-5NWTA4Y4.cjs.map → chunk-6AFAYGJW.cjs.map} +1 -1
  58. package/dist/{chunk-AVXJSCRN.cjs → chunk-AEAK3ZBS.cjs} +60 -8
  59. package/dist/chunk-AEAK3ZBS.cjs.map +1 -0
  60. package/dist/{chunk-IDV6I7GX.cjs → chunk-ATHPGGUH.cjs} +51 -51
  61. package/dist/{chunk-IDV6I7GX.cjs.map → chunk-ATHPGGUH.cjs.map} +1 -1
  62. package/dist/{chunk-WQ2KG4LS.cjs → chunk-BCU65RJM.cjs} +3 -3
  63. package/dist/{chunk-WQ2KG4LS.cjs.map → chunk-BCU65RJM.cjs.map} +1 -1
  64. package/dist/{chunk-KZFE65SA.cjs → chunk-C6EMTQHQ.cjs} +12 -12
  65. package/dist/{chunk-KZFE65SA.cjs.map → chunk-C6EMTQHQ.cjs.map} +1 -1
  66. package/dist/{chunk-4ZC6YLVQ.cjs → chunk-CMPCSONE.cjs} +4 -4
  67. package/dist/{chunk-4ZC6YLVQ.cjs.map → chunk-CMPCSONE.cjs.map} +1 -1
  68. package/dist/{chunk-L2Q2UHRY.cjs → chunk-CULUTYOD.cjs} +4 -4
  69. package/dist/{chunk-L2Q2UHRY.cjs.map → chunk-CULUTYOD.cjs.map} +1 -1
  70. package/dist/{chunk-K4SFQPOF.cjs → chunk-D4SJT3NG.cjs} +3 -3
  71. package/dist/{chunk-K4SFQPOF.cjs.map → chunk-D4SJT3NG.cjs.map} +1 -1
  72. package/dist/{chunk-7WENPOCP.cjs → chunk-DN6VM5M5.cjs} +6 -6
  73. package/dist/{chunk-7WENPOCP.cjs.map → chunk-DN6VM5M5.cjs.map} +1 -1
  74. package/dist/{chunk-U4YOVI5D.cjs → chunk-FDIZWCYF.cjs} +6 -6
  75. package/dist/{chunk-U4YOVI5D.cjs.map → chunk-FDIZWCYF.cjs.map} +1 -1
  76. package/dist/{chunk-UYBTXYYW.cjs → chunk-FX5TZ6JU.cjs} +16 -12
  77. package/dist/chunk-FX5TZ6JU.cjs.map +1 -0
  78. package/dist/{chunk-LFO3HNBX.cjs → chunk-GHPLRXB4.cjs} +34 -34
  79. package/dist/{chunk-LFO3HNBX.cjs.map → chunk-GHPLRXB4.cjs.map} +1 -1
  80. package/dist/{chunk-KIXB7V7A.cjs → chunk-GOKS55KC.cjs} +28 -28
  81. package/dist/{chunk-KIXB7V7A.cjs.map → chunk-GOKS55KC.cjs.map} +1 -1
  82. package/dist/{chunk-C4JRUDAY.cjs → chunk-GP4UC2K4.cjs} +12 -12
  83. package/dist/{chunk-C4JRUDAY.cjs.map → chunk-GP4UC2K4.cjs.map} +1 -1
  84. package/dist/{chunk-WKIESVWJ.cjs → chunk-HKKNHHBB.cjs} +6 -6
  85. package/dist/{chunk-WKIESVWJ.cjs.map → chunk-HKKNHHBB.cjs.map} +1 -1
  86. package/dist/{chunk-YPNGDJLX.cjs → chunk-IO3MNT4N.cjs} +4 -4
  87. package/dist/{chunk-YPNGDJLX.cjs.map → chunk-IO3MNT4N.cjs.map} +1 -1
  88. package/dist/{chunk-FQXZZXS2.cjs → chunk-JEHGTPS2.cjs} +5 -5
  89. package/dist/{chunk-FQXZZXS2.cjs.map → chunk-JEHGTPS2.cjs.map} +1 -1
  90. package/dist/{chunk-KJ65QZJI.cjs → chunk-KAKEFIDS.cjs} +13 -13
  91. package/dist/{chunk-KJ65QZJI.cjs.map → chunk-KAKEFIDS.cjs.map} +1 -1
  92. package/dist/{chunk-JXKUWLFZ.cjs → chunk-KMMKGJPX.cjs} +4 -4
  93. package/dist/{chunk-JXKUWLFZ.cjs.map → chunk-KMMKGJPX.cjs.map} +1 -1
  94. package/dist/{chunk-UYTFPMEA.cjs → chunk-LK4TQBV6.cjs} +9 -9
  95. package/dist/{chunk-UYTFPMEA.cjs.map → chunk-LK4TQBV6.cjs.map} +1 -1
  96. package/dist/{chunk-BCCMCR2U.cjs → chunk-MQS2PCCN.cjs} +67 -67
  97. package/dist/{chunk-BCCMCR2U.cjs.map → chunk-MQS2PCCN.cjs.map} +1 -1
  98. package/dist/{chunk-Q6ASMKFN.cjs → chunk-N2YOVDEN.cjs} +19 -19
  99. package/dist/{chunk-Q6ASMKFN.cjs.map → chunk-N2YOVDEN.cjs.map} +1 -1
  100. package/dist/{chunk-CZCSDIQY.cjs → chunk-NBKYVMAK.cjs} +4 -4
  101. package/dist/{chunk-CZCSDIQY.cjs.map → chunk-NBKYVMAK.cjs.map} +1 -1
  102. package/dist/{chunk-PA5CCOBU.cjs → chunk-NGM4HIPP.cjs} +140 -140
  103. package/dist/chunk-NGM4HIPP.cjs.map +1 -0
  104. package/dist/{chunk-GTWCDGXH.cjs → chunk-NPY5XQSN.cjs} +4 -4
  105. package/dist/{chunk-GTWCDGXH.cjs.map → chunk-NPY5XQSN.cjs.map} +1 -1
  106. package/dist/{chunk-7SJXYEZI.cjs → chunk-OAIOOVFN.cjs} +36 -36
  107. package/dist/chunk-OAIOOVFN.cjs.map +1 -0
  108. package/dist/{chunk-LBYJUPMV.cjs → chunk-P4KNRU7Y.cjs} +71 -71
  109. package/dist/{chunk-LBYJUPMV.cjs.map → chunk-P4KNRU7Y.cjs.map} +1 -1
  110. package/dist/{chunk-ZJ4P5QE5.cjs → chunk-PC2ZGCSX.cjs} +37 -37
  111. package/dist/{chunk-ZJ4P5QE5.cjs.map → chunk-PC2ZGCSX.cjs.map} +1 -1
  112. package/dist/{chunk-QA2MTHMN.cjs → chunk-QAPDDRE4.cjs} +80 -80
  113. package/dist/{chunk-QA2MTHMN.cjs.map → chunk-QAPDDRE4.cjs.map} +1 -1
  114. package/dist/{chunk-PBPO54KZ.cjs → chunk-QEMGGJB6.cjs} +97 -5
  115. package/dist/chunk-QEMGGJB6.cjs.map +1 -0
  116. package/dist/chunk-S3UNLRVM.cjs +87 -0
  117. package/dist/chunk-S3UNLRVM.cjs.map +1 -0
  118. package/dist/{chunk-PDDC5JOE.cjs → chunk-SGYURQ23.cjs} +10 -10
  119. package/dist/{chunk-PDDC5JOE.cjs.map → chunk-SGYURQ23.cjs.map} +1 -1
  120. package/dist/{chunk-RLRDQICM.cjs → chunk-SH7W4WVI.cjs} +103 -104
  121. package/dist/chunk-SH7W4WVI.cjs.map +1 -0
  122. package/dist/{chunk-C2VVBU7K.cjs → chunk-SLCH5JRI.cjs} +3 -3
  123. package/dist/{chunk-C2VVBU7K.cjs.map → chunk-SLCH5JRI.cjs.map} +1 -1
  124. package/dist/{chunk-RI367OOL.cjs → chunk-UEQNTXWV.cjs} +3 -3
  125. package/dist/{chunk-RI367OOL.cjs.map → chunk-UEQNTXWV.cjs.map} +1 -1
  126. package/dist/{chunk-PIWXX2M4.cjs → chunk-UOE6VC36.cjs} +11 -11
  127. package/dist/{chunk-PIWXX2M4.cjs.map → chunk-UOE6VC36.cjs.map} +1 -1
  128. package/dist/{chunk-DYIZ7W4P.cjs → chunk-VBSEYTRN.cjs} +3 -3
  129. package/dist/{chunk-DYIZ7W4P.cjs.map → chunk-VBSEYTRN.cjs.map} +1 -1
  130. package/dist/{chunk-LLVE5TST.cjs → chunk-VJRO6J37.cjs} +3 -3
  131. package/dist/{chunk-LLVE5TST.cjs.map → chunk-VJRO6J37.cjs.map} +1 -1
  132. package/dist/{chunk-I3GFGJSX.cjs → chunk-XBZP5J24.cjs} +7 -7
  133. package/dist/{chunk-I3GFGJSX.cjs.map → chunk-XBZP5J24.cjs.map} +1 -1
  134. package/dist/{chunk-JARBYN6Z.cjs → chunk-Y3OI7ZP7.cjs} +3 -3
  135. package/dist/{chunk-JARBYN6Z.cjs.map → chunk-Y3OI7ZP7.cjs.map} +1 -1
  136. package/dist/{chunk-JB26AJ2L.cjs → chunk-YFO2VHYQ.cjs} +139 -48
  137. package/dist/chunk-YFO2VHYQ.cjs.map +1 -0
  138. package/dist/{chunk-FV6AKSI7.cjs → chunk-YHXJWYOF.cjs} +4 -4
  139. package/dist/{chunk-FV6AKSI7.cjs.map → chunk-YHXJWYOF.cjs.map} +1 -1
  140. package/dist/collaboration/index.cjs +13 -13
  141. package/dist/connect/docx.cjs +26 -26
  142. package/dist/connect/index.cjs +1461 -1532
  143. package/dist/connect/index.cjs.map +1 -1
  144. package/dist/connect/viewer.cjs +51 -51
  145. package/dist/connection/dashboards/DashboardPanel.js +1 -1
  146. package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
  147. package/dist/connection/dashboards/PanelEditor.d.ts +4 -0
  148. package/dist/connection/dashboards/PanelEditor.js +45 -3
  149. package/dist/connection/dashboards/PanelEditor.js.map +2 -2
  150. package/dist/connection/export/ConnectedExportPanel.js +12 -7
  151. package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
  152. package/dist/connection/export/transfer-text.d.ts +5 -0
  153. package/dist/connection/export/transfer-text.js +6 -1
  154. package/dist/connection/export/transfer-text.js.map +2 -2
  155. package/dist/connection/pages/PageTransferDialog.js +19 -2
  156. package/dist/connection/pages/PageTransferDialog.js.map +2 -2
  157. package/dist/dashboards/ChartRenderer.js +3 -2
  158. package/dist/dashboards/ChartRenderer.js.map +2 -2
  159. package/dist/dashboards/RechartsRenderer.js +171 -2
  160. package/dist/dashboards/RechartsRenderer.js.map +2 -2
  161. package/dist/dashboards/chartModel.d.ts +52 -2
  162. package/dist/dashboards/chartModel.js +95 -3
  163. package/dist/dashboards/chartModel.js.map +2 -2
  164. package/dist/dashboards/index.cjs +774 -25
  165. package/dist/dashboards/index.cjs.map +1 -1
  166. package/dist/dashboards/index.d.ts +3 -2
  167. package/dist/dashboards/index.js +9 -2
  168. package/dist/dashboards/index.js.map +2 -2
  169. package/dist/dashboards/monitor/LogViewer.d.ts +47 -0
  170. package/dist/dashboards/monitor/LogViewer.js +279 -0
  171. package/dist/dashboards/monitor/LogViewer.js.map +7 -0
  172. package/dist/dashboards/monitor/RequestTimeline.d.ts +68 -0
  173. package/dist/dashboards/monitor/RequestTimeline.js +228 -0
  174. package/dist/dashboards/monitor/RequestTimeline.js.map +7 -0
  175. package/dist/dashboards/monitor/StackedBar.d.ts +41 -0
  176. package/dist/dashboards/monitor/StackedBar.js +131 -0
  177. package/dist/dashboards/monitor/StackedBar.js.map +7 -0
  178. package/dist/dashboards/monitor/TimeSeriesChart.d.ts +60 -0
  179. package/dist/dashboards/monitor/TimeSeriesChart.js +116 -0
  180. package/dist/dashboards/monitor/TimeSeriesChart.js.map +7 -0
  181. package/dist/dashboards/monitor/TimeSeriesDrawing.d.ts +14 -0
  182. package/dist/dashboards/monitor/TimeSeriesDrawing.js +173 -0
  183. package/dist/dashboards/monitor/TimeSeriesDrawing.js.map +7 -0
  184. package/dist/dashboards/monitor/index.d.ts +10 -0
  185. package/dist/dashboards/monitor/index.js +44 -0
  186. package/dist/dashboards/monitor/index.js.map +7 -0
  187. package/dist/dashboards/monitor/units.d.ts +30 -0
  188. package/dist/dashboards/monitor/units.js +85 -0
  189. package/dist/dashboards/monitor/units.js.map +7 -0
  190. package/dist/document-tools/index.cjs +21 -21
  191. package/dist/embed/index.cjs +55 -55
  192. package/dist/facts/index.cjs +65 -65
  193. package/dist/files/TransferParts.d.ts +18 -1
  194. package/dist/files/TransferParts.js +55 -3
  195. package/dist/files/TransferParts.js.map +2 -2
  196. package/dist/files/index.cjs +235 -231
  197. package/dist/files/index.d.ts +1 -1
  198. package/dist/files/index.js +2 -0
  199. package/dist/files/index.js.map +2 -2
  200. package/dist/home/index.cjs +24 -24
  201. package/dist/index.cjs +1869 -1869
  202. package/dist/pages/index.cjs +66 -51
  203. package/dist/pages/index.cjs.map +1 -1
  204. package/dist/settings/index.cjs +141 -141
  205. package/dist/shell/index.cjs +81 -81
  206. package/dist/site/index.cjs +5 -5
  207. package/dist/studio/index.cjs +44 -44
  208. package/dist/studio/index.cjs.map +1 -1
  209. package/dist/studio/widgets.js +1 -1
  210. package/dist/studio/widgets.js.map +2 -2
  211. package/dist/styles.css +1 -1
  212. package/dist/workflow-canvas/index.cjs +77 -77
  213. package/dist/workspaces/index.cjs +9 -9
  214. package/node_modules/@arbidocs/coedit/package.json +1 -1
  215. package/package.json +5 -5
  216. package/dist/RechartsRenderer-EPVL5QZA.cjs +0 -186
  217. package/dist/RechartsRenderer-EPVL5QZA.cjs.map +0 -1
  218. package/dist/ai-HME7CNDE.cjs.map +0 -1
  219. package/dist/chunk-7SJXYEZI.cjs.map +0 -1
  220. package/dist/chunk-AVXJSCRN.cjs.map +0 -1
  221. package/dist/chunk-GQIH6ALC.cjs.map +0 -1
  222. package/dist/chunk-JB26AJ2L.cjs.map +0 -1
  223. package/dist/chunk-JUOGNUQR.cjs.map +0 -1
  224. package/dist/chunk-LZZSCW7D.cjs.map +0 -1
  225. package/dist/chunk-PA5CCOBU.cjs.map +0 -1
  226. package/dist/chunk-PBPO54KZ.cjs.map +0 -1
  227. package/dist/chunk-RLRDQICM.cjs.map +0 -1
  228. package/dist/chunk-UYBTXYYW.cjs.map +0 -1
@@ -1,31 +1,758 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkJUOGNUQR_cjs = require('../chunk-JUOGNUQR.cjs');
4
+ var chunkS3UNLRVM_cjs = require('../chunk-S3UNLRVM.cjs');
5
+ var chunk4RR7ZZPD_cjs = require('../chunk-4RR7ZZPD.cjs');
5
6
  var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
6
- var chunkLZZSCW7D_cjs = require('../chunk-LZZSCW7D.cjs');
7
- var chunkPBPO54KZ_cjs = require('../chunk-PBPO54KZ.cjs');
7
+ var chunk5HPUGSTJ_cjs = require('../chunk-5HPUGSTJ.cjs');
8
+ var chunkQEMGGJB6_cjs = require('../chunk-QEMGGJB6.cjs');
8
9
  var chunkMWHVETKN_cjs = require('../chunk-MWHVETKN.cjs');
9
- require('../chunk-NGATAD62.cjs');
10
- require('../chunk-ZU2B2RZK.cjs');
10
+ require('../chunk-2P7VH2SK.cjs');
11
+ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
11
12
  var chunkOEJQFPWO_cjs = require('../chunk-OEJQFPWO.cjs');
12
- require('../chunk-ZW6FPIFC.cjs');
13
13
  require('../chunk-YA6GXWC2.cjs');
14
14
  require('../chunk-IPSHAMO2.cjs');
15
+ require('../chunk-ZW6FPIFC.cjs');
15
16
  require('../chunk-46LX6EQT.cjs');
16
17
  require('../chunk-K67VMSOX.cjs');
17
18
  require('../chunk-CVPV4I7Z.cjs');
18
19
  require('../chunk-PLIF5CUV.cjs');
20
+ var react = require('react');
21
+ var ui = require('@arbidocs/react/ui');
22
+ var jsxRuntime = require('react/jsx-runtime');
23
+ var reactVirtual = require('@tanstack/react-virtual');
19
24
 
25
+ function timeSeriesRows(series, timeUnit = "s") {
26
+ const rows = /* @__PURE__ */ new Map();
27
+ series.forEach((s, i) => {
28
+ for (const p of s.points) {
29
+ if (!Number.isFinite(p.t)) continue;
30
+ const t = chunkS3UNLRVM_cjs.toMs(p.t, timeUnit);
31
+ let row = rows.get(t);
32
+ if (!row) {
33
+ row = { t };
34
+ rows.set(t, row);
35
+ }
36
+ row[`s${i}`] = p.v !== null && Number.isFinite(p.v) ? p.v : null;
37
+ }
38
+ });
39
+ const out = [...rows.values()].sort((a, b) => a.t - b.t);
40
+ for (const row of out) series.forEach((_, i) => row[`s${i}`] ??= null);
41
+ return out;
42
+ }
43
+ var loadDrawing = () => import('../TimeSeriesDrawing-UHDFZPYG.cjs');
44
+ var TimeSeriesDrawing = react.lazy(loadDrawing);
45
+ function preloadTimeSeriesChart() {
46
+ void loadDrawing();
47
+ }
48
+ function TimeSeriesChart({
49
+ series,
50
+ ariaLabel,
51
+ unit,
52
+ formatValue,
53
+ variant = "line",
54
+ stacked = false,
55
+ timeUnit = "s",
56
+ yDomain = [0, "auto"],
57
+ thresholds = [],
58
+ height = 200,
59
+ showLegend,
60
+ emptyLabel = "No data",
61
+ className,
62
+ testId = "time-series-chart"
63
+ }) {
64
+ const rows = timeSeriesRows(series, timeUnit);
65
+ const hasData = rows.some((r) => series.some((_, i) => r[`s${i}`] !== null));
66
+ const format = formatValue ?? chunkS3UNLRVM_cjs.monitorFormatter(unit);
67
+ const legend = showLegend ?? series.length > 1;
68
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("min-w-0 space-y-2", className), "data-testid": testId, children: [
69
+ legend && /* @__PURE__ */ jsxRuntime.jsx(
70
+ "ul",
71
+ {
72
+ "aria-label": "Series",
73
+ className: "flex flex-wrap gap-x-3 gap-y-1 text-xs",
74
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "legend"),
75
+ children: series.map((s, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex min-w-0 items-center gap-1.5 text-muted-foreground", children: [
76
+ /* @__PURE__ */ jsxRuntime.jsx(
77
+ "span",
78
+ {
79
+ "aria-hidden": "true",
80
+ className: "inline-block h-0.5 w-3 shrink-0 rounded",
81
+ style: { background: chunkS3UNLRVM_cjs.seriesColor(s, i) }
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: s.label })
85
+ ] }, s.id))
86
+ }
87
+ ),
88
+ hasData ? /* @__PURE__ */ jsxRuntime.jsx(
89
+ react.Suspense,
90
+ {
91
+ fallback: /* @__PURE__ */ jsxRuntime.jsx(
92
+ "div",
93
+ {
94
+ className: "animate-pulse rounded-md bg-muted",
95
+ style: { height },
96
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "loading"),
97
+ "aria-busy": "true"
98
+ }
99
+ ),
100
+ children: /* @__PURE__ */ jsxRuntime.jsx(
101
+ TimeSeriesDrawing,
102
+ {
103
+ series,
104
+ rows,
105
+ ariaLabel,
106
+ format,
107
+ variant,
108
+ stacked,
109
+ yDomain,
110
+ thresholds,
111
+ height,
112
+ testId: chunkZU2B2RZK_cjs.tid(testId, "plot")
113
+ }
114
+ )
115
+ }
116
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
117
+ "div",
118
+ {
119
+ role: "img",
120
+ "aria-label": ariaLabel,
121
+ className: "flex items-center justify-center rounded-md border border-dashed border-border text-sm text-muted-foreground",
122
+ style: { height },
123
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "empty"),
124
+ children: emptyLabel
125
+ }
126
+ )
127
+ ] });
128
+ }
129
+ var DEFAULT_LOG_VIEWER_LABELS = {
130
+ search: "Filter lines",
131
+ follow: "Follow",
132
+ levels: "Levels",
133
+ log: "Log",
134
+ empty: "No log lines",
135
+ noMatch: "No lines match the filter",
136
+ invalidPattern: "Invalid pattern",
137
+ count: (shown, total) => shown === total ? `${total} line${total === 1 ? "" : "s"}` : `${shown} of ${total} lines`
138
+ };
139
+ function buildLogMatcher(query) {
140
+ const q = query.trim();
141
+ if (!q) return { test: () => true, error: false };
142
+ const m = /^\/(.+)\/([a-z]*)$/.exec(q);
143
+ if (m) {
144
+ try {
145
+ const re = new RegExp(m[1], m[2].includes("i") ? m[2] : `${m[2]}i`);
146
+ return { test: (s) => re.test(s), error: false };
147
+ } catch {
148
+ return { test: () => true, error: true };
149
+ }
150
+ }
151
+ const lower = q.toLowerCase();
152
+ return { test: (s) => s.toLowerCase().includes(lower), error: false };
153
+ }
154
+ var LEVEL_ORDER = ["trace", "debug", "info", "notice", "warn", "warning", "error", "fatal"];
155
+ function logLevelClass(level) {
156
+ switch (level.toLowerCase()) {
157
+ case "trace":
158
+ case "debug":
159
+ return "text-muted-foreground";
160
+ case "info":
161
+ case "notice":
162
+ return "text-blue-text";
163
+ case "warn":
164
+ case "warning":
165
+ return "text-yellow-text";
166
+ case "error":
167
+ case "err":
168
+ case "fatal":
169
+ case "critical":
170
+ case "crit":
171
+ case "panic":
172
+ return "text-red-text";
173
+ default:
174
+ return "text-foreground";
175
+ }
176
+ }
177
+ var levelKey = (level) => level.toLowerCase();
178
+ var rank = (level) => {
179
+ const i = LEVEL_ORDER.indexOf(level);
180
+ return i === -1 ? LEVEL_ORDER.length : i;
181
+ };
182
+ var AT_END_PX = 24;
183
+ var USER_SCROLL_MS = 600;
184
+ function LogViewer({
185
+ entries,
186
+ timeUnit = "s",
187
+ height = 400,
188
+ follow: followProp,
189
+ onFollowChange,
190
+ wrap = true,
191
+ initialHiddenLevels = [],
192
+ labels,
193
+ className,
194
+ testId = "log-viewer"
195
+ }) {
196
+ const text = { ...DEFAULT_LOG_VIEWER_LABELS, ...labels };
197
+ const [query, setQuery] = react.useState("");
198
+ const [hidden, setHidden] = react.useState(
199
+ () => new Set(initialHiddenLevels.map(levelKey))
200
+ );
201
+ const [innerFollow, setInnerFollow] = react.useState(true);
202
+ const follow = followProp ?? innerFollow;
203
+ const setFollow = react.useCallback(
204
+ (next) => {
205
+ if (followProp === void 0) setInnerFollow(next);
206
+ onFollowChange?.(next);
207
+ },
208
+ [followProp, onFollowChange]
209
+ );
210
+ const matcher = react.useMemo(() => buildLogMatcher(query), [query]);
211
+ const counts = react.useMemo(() => {
212
+ const c = /* @__PURE__ */ new Map();
213
+ for (const e of entries) c.set(levelKey(e.level), (c.get(levelKey(e.level)) ?? 0) + 1);
214
+ return c;
215
+ }, [entries]);
216
+ const levels = react.useMemo(
217
+ () => [...counts.keys()].sort((a, b) => rank(a) - rank(b) || a.localeCompare(b)),
218
+ [counts]
219
+ );
220
+ const rows = react.useMemo(() => {
221
+ const out = [];
222
+ for (let i = entries.length - 1; i >= 0; i--) {
223
+ const e = entries[i];
224
+ if (!hidden.has(levelKey(e.level)) && matcher.test(e.line)) out.push(e);
225
+ }
226
+ return out;
227
+ }, [entries, hidden, matcher]);
228
+ const scrollRef = react.useRef(null);
229
+ const userTouched = react.useRef(0);
230
+ const virtualizer = reactVirtual.useVirtualizer({
231
+ count: rows.length,
232
+ getScrollElement: () => scrollRef.current,
233
+ estimateSize: () => 20,
234
+ overscan: 12
235
+ });
236
+ react.useLayoutEffect(() => {
237
+ if (follow && rows.length > 0) virtualizer.scrollToIndex(rows.length - 1, { align: "end" });
238
+ }, [follow, rows, virtualizer]);
239
+ const onScroll = () => {
240
+ const el = scrollRef.current;
241
+ if (!el || Date.now() - userTouched.current > USER_SCROLL_MS) return;
242
+ const atEnd = el.scrollHeight - el.scrollTop - el.clientHeight < AT_END_PX;
243
+ if (follow !== atEnd) setFollow(atEnd);
244
+ };
245
+ const touched = () => {
246
+ userTouched.current = Date.now();
247
+ };
248
+ const toggleLevel = (level) => setHidden((prev) => {
249
+ const next = new Set(prev);
250
+ if (next.has(level)) next.delete(level);
251
+ else next.add(level);
252
+ return next;
253
+ });
254
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("flex min-w-0 max-w-full flex-col gap-2", className), "data-testid": testId, children: [
255
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [
256
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-w-0 flex-[1_1_12rem]", children: [
257
+ /* @__PURE__ */ jsxRuntime.jsx(
258
+ "input",
259
+ {
260
+ type: "search",
261
+ value: query,
262
+ onChange: (e) => setQuery(e.target.value),
263
+ placeholder: text.search,
264
+ "aria-label": text.search,
265
+ "aria-invalid": matcher.error || void 0,
266
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "search"),
267
+ className: "h-8 w-full min-w-0 rounded-md border border-input bg-background px-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none pointer-coarse:h-11"
268
+ }
269
+ ),
270
+ matcher.error && /* @__PURE__ */ jsxRuntime.jsx(
271
+ "span",
272
+ {
273
+ className: "absolute top-1/2 right-2 -translate-y-1/2 text-xs text-red-text",
274
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "invalid-pattern"),
275
+ children: text.invalidPattern
276
+ }
277
+ )
278
+ ] }),
279
+ levels.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", "aria-label": text.levels, className: "flex flex-wrap gap-1", children: levels.map((level) => {
280
+ const on = !hidden.has(level);
281
+ return /* @__PURE__ */ jsxRuntime.jsxs(
282
+ "button",
283
+ {
284
+ type: "button",
285
+ "aria-pressed": on,
286
+ onClick: () => toggleLevel(level),
287
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "level", level),
288
+ className: ui.cn(
289
+ "inline-flex h-7 items-center gap-1 rounded-md border px-2 text-xs font-medium pointer-coarse:min-h-11",
290
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
291
+ on ? "border-border bg-muted text-foreground" : "border-transparent text-muted-foreground line-through"
292
+ ),
293
+ children: [
294
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn(on && logLevelClass(level)), children: level }),
295
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tabular-nums text-muted-foreground", children: counts.get(level) })
296
+ ]
297
+ },
298
+ level
299
+ );
300
+ }) }),
301
+ /* @__PURE__ */ jsxRuntime.jsx(
302
+ "button",
303
+ {
304
+ type: "button",
305
+ "aria-pressed": follow,
306
+ onClick: () => setFollow(!follow),
307
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "follow"),
308
+ className: ui.cn(
309
+ "inline-flex h-7 items-center rounded-md border px-2 text-xs font-medium pointer-coarse:min-h-11",
310
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
311
+ follow ? "border-primary bg-primary/10 text-foreground" : "border-border text-muted-foreground"
312
+ ),
313
+ children: text.follow
314
+ }
315
+ ),
316
+ /* @__PURE__ */ jsxRuntime.jsx(
317
+ "span",
318
+ {
319
+ className: "text-xs text-muted-foreground tabular-nums",
320
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "count"),
321
+ children: text.count(rows.length, entries.length)
322
+ }
323
+ )
324
+ ] }),
325
+ /* @__PURE__ */ jsxRuntime.jsx(
326
+ "div",
327
+ {
328
+ ref: scrollRef,
329
+ role: "log",
330
+ "aria-label": text.log,
331
+ "aria-live": "off",
332
+ tabIndex: 0,
333
+ onScroll,
334
+ onWheel: touched,
335
+ onTouchMove: touched,
336
+ onPointerDown: touched,
337
+ onKeyDown: touched,
338
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "scroller"),
339
+ className: ui.cn(
340
+ "min-w-0 overflow-y-auto rounded-md border border-border bg-card font-mono text-xs leading-5 text-card-foreground",
341
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
342
+ wrap ? "overflow-x-hidden" : "overflow-x-auto"
343
+ ),
344
+ style: { height },
345
+ children: rows.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
346
+ "p",
347
+ {
348
+ className: "p-3 font-sans text-sm text-muted-foreground",
349
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "empty"),
350
+ children: entries.length === 0 ? text.empty : text.noMatch
351
+ }
352
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
353
+ "div",
354
+ {
355
+ className: ui.cn("relative", wrap ? "w-full" : "w-max min-w-full"),
356
+ style: { height: virtualizer.getTotalSize() },
357
+ children: virtualizer.getVirtualItems().map((item) => {
358
+ const e = rows[item.index];
359
+ const tone = logLevelClass(e.level);
360
+ return /* @__PURE__ */ jsxRuntime.jsxs(
361
+ "div",
362
+ {
363
+ ref: virtualizer.measureElement,
364
+ "data-index": item.index,
365
+ "data-level": levelKey(e.level),
366
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "row"),
367
+ className: "absolute top-0 left-0 grid w-full grid-cols-[4.5rem_3.5rem_minmax(0,1fr)] gap-x-2 px-2 py-px hover:bg-muted/50 max-sm:grid-cols-[4.5rem_minmax(0,1fr)]",
368
+ style: { transform: `translateY(${item.start}px)` },
369
+ children: [
370
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground tabular-nums", children: chunkS3UNLRVM_cjs.formatClock(chunkS3UNLRVM_cjs.toMs(e.ts, timeUnit)) }),
371
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn("truncate font-semibold uppercase", tone), children: e.level }),
372
+ /* @__PURE__ */ jsxRuntime.jsx(
373
+ "span",
374
+ {
375
+ className: ui.cn(
376
+ "min-w-0 max-sm:col-span-2",
377
+ wrap ? "break-words whitespace-pre-wrap [overflow-wrap:anywhere]" : "whitespace-pre",
378
+ tone === "text-yellow-text" || tone === "text-red-text" ? tone : void 0
379
+ ),
380
+ children: e.line
381
+ }
382
+ )
383
+ ]
384
+ },
385
+ item.key
386
+ );
387
+ })
388
+ }
389
+ )
390
+ }
391
+ )
392
+ ] });
393
+ }
394
+ function waterfallLanes(steps) {
395
+ const ids = new Set(steps.map((s) => s.id));
396
+ const children = /* @__PURE__ */ new Map();
397
+ for (const s of steps) {
398
+ const key = s.parent !== void 0 && ids.has(s.parent) && s.parent !== s.id ? s.parent : void 0;
399
+ children.set(key, [...children.get(key) ?? [], s]);
400
+ }
401
+ const out = [];
402
+ const seen = /* @__PURE__ */ new Set();
403
+ const visit = (parent, depth) => {
404
+ const kids = [...children.get(parent) ?? []].sort((a, b) => a.start - b.start);
405
+ for (const s of kids) {
406
+ if (seen.has(s.id)) continue;
407
+ seen.add(s.id);
408
+ out.push({
409
+ id: s.id,
410
+ label: s.label,
411
+ depth,
412
+ spans: [{ start: s.start, end: s.end, phase: s.phase, label: s.label }]
413
+ });
414
+ visit(s.id, depth + 1);
415
+ }
416
+ };
417
+ visit(void 0, 0);
418
+ return out;
419
+ }
420
+ function RequestTimeline({
421
+ lanes,
422
+ ariaLabel,
423
+ phases = [],
424
+ timeUnit = "s",
425
+ from,
426
+ to,
427
+ now,
428
+ axis = "elapsed",
429
+ showDurations = false,
430
+ onSpanClick,
431
+ laneHeight = 22,
432
+ maxHeight,
433
+ emptyLabel = "No requests",
434
+ className,
435
+ testId = "request-timeline"
436
+ }) {
437
+ const ms = (t) => chunkS3UNLRVM_cjs.toMs(t, timeUnit);
438
+ let lo = Infinity;
439
+ let hi = -Infinity;
440
+ for (const lane of lanes)
441
+ for (const s of lane.spans) {
442
+ lo = Math.min(lo, ms(s.start));
443
+ hi = Math.max(hi, ms(s.end ?? s.start));
444
+ }
445
+ const nowMs = now !== void 0 ? ms(now) : to !== void 0 ? ms(to) : hi;
446
+ if (lanes.some((l) => l.spans.some((s) => s.end === null))) hi = Math.max(hi, nowMs);
447
+ const start = from !== void 0 ? ms(from) : lo;
448
+ const end = to !== void 0 ? ms(to) : hi;
449
+ const span = end - start;
450
+ const hasData = Number.isFinite(start) && Number.isFinite(end) && lanes.length > 0;
451
+ const phaseIndex = new Map(phases.map((p, i) => [p.id, i]));
452
+ const colorOf = (s, i) => {
453
+ const pi = s.phase !== void 0 ? phaseIndex.get(s.phase) : void 0;
454
+ return pi !== void 0 ? chunkS3UNLRVM_cjs.seriesColor(phases[pi], pi) : chunkS3UNLRVM_cjs.seriesColor({}, i);
455
+ };
456
+ const nameOf = (s) => s.label ?? (s.phase !== void 0 ? phases[phaseIndex.get(s.phase) ?? -1]?.label ?? s.phase : "");
457
+ const pct = (t) => span > 0 ? (t - start) / span * 100 : 0;
458
+ const step = chunkS3UNLRVM_cjs.niceStep(span, 5);
459
+ const ticks = [];
460
+ if (hasData && span > 0) {
461
+ const first = axis === "clock" ? Math.ceil(start / step) * step : start;
462
+ for (let t = first; t <= end + 1e-6 && ticks.length < 50; t += step) ticks.push(t);
463
+ }
464
+ const clock = chunkS3UNLRVM_cjs.clockTickFormatter(span);
465
+ const tickLabel = (t) => axis === "clock" ? clock(t) : chunkS3UNLRVM_cjs.formatDurationMs(t - start);
466
+ if (!hasData)
467
+ return /* @__PURE__ */ jsxRuntime.jsx(
468
+ "div",
469
+ {
470
+ role: "img",
471
+ "aria-label": ariaLabel,
472
+ className: ui.cn(
473
+ "flex h-24 items-center justify-center rounded-md border border-dashed border-border text-sm text-muted-foreground",
474
+ className
475
+ ),
476
+ "data-testid": testId,
477
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": chunkZU2B2RZK_cjs.tid(testId, "empty"), children: emptyLabel })
478
+ }
479
+ );
480
+ const labelCol = "w-[clamp(4.5rem,28%,12rem)] shrink-0";
481
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("min-w-0 space-y-2", className), "data-testid": testId, children: [
482
+ phases.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-label": "Phases", className: "flex flex-wrap gap-x-3 gap-y-1 text-xs", children: phases.map((p, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-1.5 text-muted-foreground", children: [
483
+ /* @__PURE__ */ jsxRuntime.jsx(
484
+ "span",
485
+ {
486
+ "aria-hidden": "true",
487
+ className: "size-2.5 rounded-sm",
488
+ style: { background: chunkS3UNLRVM_cjs.seriesColor(p, i) }
489
+ }
490
+ ),
491
+ p.label
492
+ ] }, p.id)) }),
493
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "group", "aria-label": ariaLabel, className: "min-w-0 text-xs", children: [
494
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex border-b border-border", children: [
495
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: labelCol }),
496
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-5 min-w-0 flex-1", "data-testid": chunkZU2B2RZK_cjs.tid(testId, "axis"), children: ticks.map((t) => {
497
+ const p = pct(t);
498
+ return /* @__PURE__ */ jsxRuntime.jsx(
499
+ "span",
500
+ {
501
+ className: ui.cn(
502
+ "absolute top-0.5 text-[10px] whitespace-nowrap text-muted-foreground tabular-nums",
503
+ p > 85 ? "-translate-x-full" : p > 5 && "-translate-x-1/2"
504
+ ),
505
+ style: { left: `${p}%` },
506
+ children: tickLabel(t)
507
+ },
508
+ t
509
+ );
510
+ }) })
511
+ ] }),
512
+ /* @__PURE__ */ jsxRuntime.jsx(
513
+ "ul",
514
+ {
515
+ "aria-label": "Lanes",
516
+ className: "overflow-y-auto",
517
+ style: maxHeight !== void 0 ? { maxHeight } : void 0,
518
+ children: lanes.map((lane) => /* @__PURE__ */ jsxRuntime.jsxs(
519
+ "li",
520
+ {
521
+ className: "flex items-center border-b border-border/50 last:border-b-0",
522
+ style: { height: laneHeight },
523
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "lane", lane.id),
524
+ children: [
525
+ /* @__PURE__ */ jsxRuntime.jsx(
526
+ "div",
527
+ {
528
+ className: ui.cn(labelCol, "truncate pr-2 text-muted-foreground"),
529
+ style: { paddingLeft: `${(lane.depth ?? 0) * 0.75}rem` },
530
+ title: lane.label,
531
+ children: lane.label
532
+ }
533
+ ),
534
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-full min-w-0 flex-1", children: [
535
+ ticks.map((t) => /* @__PURE__ */ jsxRuntime.jsx(
536
+ "span",
537
+ {
538
+ "aria-hidden": "true",
539
+ className: "absolute top-0 bottom-0 w-px bg-border/50",
540
+ style: { left: `${pct(t)}%` }
541
+ },
542
+ t
543
+ )),
544
+ lane.spans.map((s, i) => {
545
+ const a = Math.max(start, ms(s.start));
546
+ const b = Math.min(end, s.end === null ? nowMs : ms(s.end));
547
+ if (b < a) return null;
548
+ const duration = (s.end === null ? nowMs : ms(s.end)) - ms(s.start);
549
+ const name = nameOf(s);
550
+ const title = `${name ? `${name}: ` : ""}${chunkS3UNLRVM_cjs.formatDurationMs(duration)}${s.end === null ? " (running)" : ""}`;
551
+ const width = pct(b) - pct(a);
552
+ const style = {
553
+ left: `${pct(a)}%`,
554
+ width: `${width}%`,
555
+ minWidth: 2,
556
+ background: colorOf(s, i)
557
+ };
558
+ const cls = ui.cn(
559
+ "absolute top-1 bottom-1 overflow-hidden rounded-sm text-left",
560
+ s.end === null && "opacity-80 [background-image:repeating-linear-gradient(135deg,hsl(var(--background)/0.3)_0_3px,transparent_3px_7px)]"
561
+ );
562
+ const text = showDurations && width > 12 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate px-1 text-[10px] leading-[inherit] font-medium text-white", children: chunkS3UNLRVM_cjs.formatDurationMs(duration) }) : null;
563
+ const testIdOf = chunkZU2B2RZK_cjs.tid(testId, "span", lane.id, i);
564
+ return onSpanClick ? /* @__PURE__ */ jsxRuntime.jsx(
565
+ "button",
566
+ {
567
+ type: "button",
568
+ title,
569
+ "aria-label": `${lane.label}, ${title}`,
570
+ onClick: () => onSpanClick(lane, s),
571
+ className: ui.cn(
572
+ cls,
573
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
574
+ ),
575
+ style,
576
+ "data-testid": testIdOf,
577
+ "data-running": s.end === null || void 0,
578
+ children: text
579
+ },
580
+ i
581
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
582
+ "span",
583
+ {
584
+ title,
585
+ "aria-label": `${lane.label}, ${title}`,
586
+ role: "img",
587
+ className: ui.cn(cls, "flex items-center"),
588
+ style,
589
+ "data-testid": testIdOf,
590
+ "data-running": s.end === null || void 0,
591
+ children: text
592
+ },
593
+ i
594
+ );
595
+ })
596
+ ] })
597
+ ]
598
+ },
599
+ lane.id
600
+ ))
601
+ }
602
+ )
603
+ ] })
604
+ ] });
605
+ }
606
+ var MARKER_TONE = {
607
+ neutral: "text-foreground",
608
+ warning: "text-yellow-text",
609
+ danger: "text-red-text"
610
+ };
611
+ var HATCH = "repeating-linear-gradient(135deg, hsl(var(--background) / 0.35) 0 3px, transparent 3px 7px)";
612
+ function StackedBar({
613
+ segments,
614
+ ariaLabel,
615
+ total,
616
+ markers = [],
617
+ unit = "bytes",
618
+ formatValue,
619
+ showLegend = true,
620
+ showTotal = true,
621
+ height = 24,
622
+ className,
623
+ testId = "stacked-bar"
624
+ }) {
625
+ const format = formatValue ?? chunkS3UNLRVM_cjs.monitorFormatter(unit);
626
+ const sum = segments.reduce((a, s) => a + Math.max(0, s.value), 0);
627
+ const whole = total !== void 0 && total > 0 ? total : sum;
628
+ const pct = (v) => whole > 0 ? Math.max(0, v) / whole * 100 : 0;
629
+ const round = (p) => Math.round(p * 100) / 100;
630
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("min-w-0 space-y-1.5", className), "data-testid": testId, children: [
631
+ showTotal && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end text-xs text-muted-foreground tabular-nums", children: /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": chunkZU2B2RZK_cjs.tid(testId, "total"), children: total !== void 0 ? `${format(sum)} / ${format(whole)}` : format(sum) }) }),
632
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("relative", markers.length > 0 && "pt-4"), children: [
633
+ /* @__PURE__ */ jsxRuntime.jsx(
634
+ "div",
635
+ {
636
+ role: "img",
637
+ "aria-label": `${ariaLabel}: ${segments.map((s) => `${s.label} ${format(s.value)}`).join(", ")}`,
638
+ className: "flex w-full overflow-hidden rounded-md bg-muted",
639
+ style: { height },
640
+ children: segments.map((s, i) => {
641
+ const width = pct(s.value);
642
+ if (width <= 0) return null;
643
+ return /* @__PURE__ */ jsxRuntime.jsx(
644
+ "div",
645
+ {
646
+ title: `${s.label}: ${format(s.value)} (${width.toFixed(1)}%)`,
647
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "segment", s.id),
648
+ className: "h-full min-w-[2px] flex-none border-r border-background/60 last:border-r-0",
649
+ style: {
650
+ width: `${round(width)}%`,
651
+ background: chunkS3UNLRVM_cjs.seriesColor(s, i),
652
+ backgroundImage: s.hatched ? HATCH : void 0
653
+ }
654
+ },
655
+ s.id
656
+ );
657
+ })
658
+ }
659
+ ),
660
+ markers.map((m) => {
661
+ const at = Math.min(100, pct(m.value));
662
+ return /* @__PURE__ */ jsxRuntime.jsxs(
663
+ "div",
664
+ {
665
+ className: ui.cn(
666
+ "pointer-events-none absolute top-0 bottom-0 w-0",
667
+ MARKER_TONE[m.tone ?? "neutral"]
668
+ ),
669
+ style: { left: `${round(at)}%` },
670
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "marker", m.id),
671
+ title: `${m.label}: ${format(m.value)}`,
672
+ children: [
673
+ /* @__PURE__ */ jsxRuntime.jsx(
674
+ "span",
675
+ {
676
+ className: ui.cn(
677
+ "absolute top-0 text-[11px] leading-none font-medium whitespace-nowrap",
678
+ at > 70 ? "right-1" : at < 30 ? "left-1" : "left-0 -translate-x-1/2"
679
+ ),
680
+ children: m.label
681
+ }
682
+ ),
683
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute top-3.5 bottom-0 left-0 w-0.5 -translate-x-1/2 bg-current" })
684
+ ]
685
+ },
686
+ m.id
687
+ );
688
+ })
689
+ ] }),
690
+ showLegend && /* @__PURE__ */ jsxRuntime.jsxs(
691
+ "ul",
692
+ {
693
+ "aria-label": "Legend",
694
+ className: "grid grid-cols-[repeat(auto-fill,minmax(9rem,1fr))] gap-x-4 gap-y-1 text-xs",
695
+ "data-testid": chunkZU2B2RZK_cjs.tid(testId, "legend"),
696
+ children: [
697
+ segments.map((s, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex min-w-0 items-center gap-1.5", children: [
698
+ /* @__PURE__ */ jsxRuntime.jsx(
699
+ "span",
700
+ {
701
+ "aria-hidden": "true",
702
+ className: "size-2.5 shrink-0 rounded-sm",
703
+ style: {
704
+ background: chunkS3UNLRVM_cjs.seriesColor(s, i),
705
+ backgroundImage: s.hatched ? HATCH : void 0
706
+ }
707
+ }
708
+ ),
709
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-muted-foreground", children: s.label }),
710
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-auto font-medium text-foreground tabular-nums", children: format(s.value) })
711
+ ] }, s.id)),
712
+ markers.map((m) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex min-w-0 items-center gap-1.5", children: [
713
+ /* @__PURE__ */ jsxRuntime.jsx(
714
+ "span",
715
+ {
716
+ "aria-hidden": "true",
717
+ className: ui.cn("h-2.5 w-0.5 shrink-0 bg-current", MARKER_TONE[m.tone ?? "neutral"])
718
+ }
719
+ ),
720
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-muted-foreground", children: m.label }),
721
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-auto font-medium text-foreground tabular-nums", children: format(m.value) })
722
+ ] }, `marker-${m.id}`))
723
+ ]
724
+ }
725
+ )
726
+ ] });
727
+ }
20
728
 
21
-
729
+ Object.defineProperty(exports, "MONITOR_UNIT_FORMATTERS", {
730
+ enumerable: true,
731
+ get: function () { return chunkS3UNLRVM_cjs.MONITOR_UNIT_FORMATTERS; }
732
+ });
733
+ Object.defineProperty(exports, "formatBytes", {
734
+ enumerable: true,
735
+ get: function () { return chunkS3UNLRVM_cjs.formatBytes; }
736
+ });
737
+ Object.defineProperty(exports, "formatClock", {
738
+ enumerable: true,
739
+ get: function () { return chunkS3UNLRVM_cjs.formatClock; }
740
+ });
741
+ Object.defineProperty(exports, "formatDurationMs", {
742
+ enumerable: true,
743
+ get: function () { return chunkS3UNLRVM_cjs.formatDurationMs; }
744
+ });
745
+ Object.defineProperty(exports, "monitorFormatter", {
746
+ enumerable: true,
747
+ get: function () { return chunkS3UNLRVM_cjs.monitorFormatter; }
748
+ });
22
749
  Object.defineProperty(exports, "DEFAULT_PANEL_EDITOR_LABELS", {
23
750
  enumerable: true,
24
- get: function () { return chunkJUOGNUQR_cjs.DEFAULT_PANEL_EDITOR_LABELS; }
751
+ get: function () { return chunk4RR7ZZPD_cjs.DEFAULT_PANEL_EDITOR_LABELS; }
25
752
  });
26
753
  Object.defineProperty(exports, "PanelEditor", {
27
754
  enumerable: true,
28
- get: function () { return chunkJUOGNUQR_cjs.PanelEditor; }
755
+ get: function () { return chunk4RR7ZZPD_cjs.PanelEditor; }
29
756
  });
30
757
  Object.defineProperty(exports, "DASHBOARD_TEMPLATES", {
31
758
  enumerable: true,
@@ -53,67 +780,79 @@ Object.defineProperty(exports, "usagePanels", {
53
780
  });
54
781
  Object.defineProperty(exports, "ChartRenderer", {
55
782
  enumerable: true,
56
- get: function () { return chunkLZZSCW7D_cjs.ChartRenderer; }
783
+ get: function () { return chunk5HPUGSTJ_cjs.ChartRenderer; }
57
784
  });
58
785
  Object.defineProperty(exports, "ChartTable", {
59
786
  enumerable: true,
60
- get: function () { return chunkLZZSCW7D_cjs.ChartTable; }
787
+ get: function () { return chunk5HPUGSTJ_cjs.ChartTable; }
61
788
  });
62
789
  Object.defineProperty(exports, "DEFAULT_CHART_RENDERER_LABELS", {
63
790
  enumerable: true,
64
- get: function () { return chunkLZZSCW7D_cjs.DEFAULT_CHART_RENDERER_LABELS; }
791
+ get: function () { return chunk5HPUGSTJ_cjs.DEFAULT_CHART_RENDERER_LABELS; }
65
792
  });
66
793
  Object.defineProperty(exports, "DEFAULT_DASHBOARD_PANEL_LABELS", {
67
794
  enumerable: true,
68
- get: function () { return chunkLZZSCW7D_cjs.DEFAULT_DASHBOARD_PANEL_LABELS; }
795
+ get: function () { return chunk5HPUGSTJ_cjs.DEFAULT_DASHBOARD_PANEL_LABELS; }
69
796
  });
70
797
  Object.defineProperty(exports, "DEFAULT_PANEL_VIEW_LABELS", {
71
798
  enumerable: true,
72
- get: function () { return chunkLZZSCW7D_cjs.DEFAULT_PANEL_VIEW_LABELS; }
799
+ get: function () { return chunk5HPUGSTJ_cjs.DEFAULT_PANEL_VIEW_LABELS; }
73
800
  });
74
801
  Object.defineProperty(exports, "DashboardCell", {
75
802
  enumerable: true,
76
- get: function () { return chunkLZZSCW7D_cjs.DashboardCell; }
803
+ get: function () { return chunk5HPUGSTJ_cjs.DashboardCell; }
77
804
  });
78
805
  Object.defineProperty(exports, "DashboardGrid", {
79
806
  enumerable: true,
80
- get: function () { return chunkLZZSCW7D_cjs.DashboardGrid; }
807
+ get: function () { return chunk5HPUGSTJ_cjs.DashboardGrid; }
81
808
  });
82
809
  Object.defineProperty(exports, "DashboardPanel", {
83
810
  enumerable: true,
84
- get: function () { return chunkLZZSCW7D_cjs.DashboardPanel; }
811
+ get: function () { return chunk5HPUGSTJ_cjs.DashboardPanel; }
85
812
  });
86
813
  Object.defineProperty(exports, "PANEL_FORMATTERS", {
87
814
  enumerable: true,
88
- get: function () { return chunkLZZSCW7D_cjs.PANEL_FORMATTERS; }
815
+ get: function () { return chunk5HPUGSTJ_cjs.PANEL_FORMATTERS; }
89
816
  });
90
817
  Object.defineProperty(exports, "PanelView", {
91
818
  enumerable: true,
92
- get: function () { return chunkLZZSCW7D_cjs.PanelView; }
819
+ get: function () { return chunk5HPUGSTJ_cjs.PanelView; }
93
820
  });
94
821
  Object.defineProperty(exports, "clampPanelWidth", {
95
822
  enumerable: true,
96
- get: function () { return chunkLZZSCW7D_cjs.clampPanelWidth; }
823
+ get: function () { return chunk5HPUGSTJ_cjs.clampPanelWidth; }
97
824
  });
98
825
  Object.defineProperty(exports, "DEFAULT_UNIT_FORMATTERS", {
99
826
  enumerable: true,
100
- get: function () { return chunkPBPO54KZ_cjs.DEFAULT_UNIT_FORMATTERS; }
827
+ get: function () { return chunkQEMGGJB6_cjs.DEFAULT_UNIT_FORMATTERS; }
828
+ });
829
+ Object.defineProperty(exports, "HIGHLIGHT_COLOR", {
830
+ enumerable: true,
831
+ get: function () { return chunkQEMGGJB6_cjs.HIGHLIGHT_COLOR; }
101
832
  });
102
833
  Object.defineProperty(exports, "chartModelOf", {
103
834
  enumerable: true,
104
- get: function () { return chunkPBPO54KZ_cjs.chartModelOf; }
835
+ get: function () { return chunkQEMGGJB6_cjs.chartModelOf; }
105
836
  });
106
837
  Object.defineProperty(exports, "formatBucketLabel", {
107
838
  enumerable: true,
108
- get: function () { return chunkPBPO54KZ_cjs.formatBucketLabel; }
839
+ get: function () { return chunkQEMGGJB6_cjs.formatBucketLabel; }
109
840
  });
110
841
  Object.defineProperty(exports, "formatterOf", {
111
842
  enumerable: true,
112
- get: function () { return chunkPBPO54KZ_cjs.formatterOf; }
843
+ get: function () { return chunkQEMGGJB6_cjs.formatterOf; }
844
+ });
845
+ Object.defineProperty(exports, "logTicks", {
846
+ enumerable: true,
847
+ get: function () { return chunkQEMGGJB6_cjs.logTicks; }
113
848
  });
114
849
  Object.defineProperty(exports, "metricValueOf", {
115
850
  enumerable: true,
116
- get: function () { return chunkPBPO54KZ_cjs.metricValueOf; }
851
+ get: function () { return chunkQEMGGJB6_cjs.metricValueOf; }
852
+ });
853
+ Object.defineProperty(exports, "paretoFrontier", {
854
+ enumerable: true,
855
+ get: function () { return chunkQEMGGJB6_cjs.paretoFrontier; }
117
856
  });
118
857
  Object.defineProperty(exports, "ConditionsEditor", {
119
858
  enumerable: true,
@@ -147,5 +886,15 @@ Object.defineProperty(exports, "categoricalStyle", {
147
886
  enumerable: true,
148
887
  get: function () { return chunkOEJQFPWO_cjs.categoricalStyle; }
149
888
  });
889
+ exports.DEFAULT_LOG_VIEWER_LABELS = DEFAULT_LOG_VIEWER_LABELS;
890
+ exports.LogViewer = LogViewer;
891
+ exports.RequestTimeline = RequestTimeline;
892
+ exports.StackedBar = StackedBar;
893
+ exports.TimeSeriesChart = TimeSeriesChart;
894
+ exports.buildLogMatcher = buildLogMatcher;
895
+ exports.logLevelClass = logLevelClass;
896
+ exports.preloadTimeSeriesChart = preloadTimeSeriesChart;
897
+ exports.timeSeriesRows = timeSeriesRows;
898
+ exports.waterfallLanes = waterfallLanes;
150
899
  //# sourceMappingURL=index.cjs.map
151
900
  //# sourceMappingURL=index.cjs.map