@arbidocs/blocks 0.5.106 → 0.5.107

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 (249) hide show
  1. package/README.md +60 -6
  2. package/dist/{ConnectedCallDock-P7LK2HYF.cjs → ConnectedCallDock-H3WWFGXF.cjs} +8 -8
  3. package/dist/{ConnectedCallDock-P7LK2HYF.cjs.map → ConnectedCallDock-H3WWFGXF.cjs.map} +1 -1
  4. package/dist/{ConnectedCallDock-NEZJNTKH.js → ConnectedCallDock-TDYRHPAK.js} +6 -6
  5. package/dist/{ConnectedCallDock-NEZJNTKH.js.map → ConnectedCallDock-TDYRHPAK.js.map} +1 -1
  6. package/dist/{ConnectedCallRoom-FXTR4YFI.cjs → ConnectedCallRoom-55O5OUN7.cjs} +7 -7
  7. package/dist/{ConnectedCallRoom-FXTR4YFI.cjs.map → ConnectedCallRoom-55O5OUN7.cjs.map} +1 -1
  8. package/dist/{ConnectedCallRoom-K3X6ICCG.js → ConnectedCallRoom-Z6F6WCLH.js} +6 -6
  9. package/dist/{ConnectedCallRoom-K3X6ICCG.js.map → ConnectedCallRoom-Z6F6WCLH.js.map} +1 -1
  10. package/dist/{ConnectedNativeDocxComparison-7VJKOKYU.cjs → ConnectedNativeDocxComparison-DGBZJ4XA.cjs} +10 -10
  11. package/dist/{ConnectedNativeDocxComparison-7VJKOKYU.cjs.map → ConnectedNativeDocxComparison-DGBZJ4XA.cjs.map} +1 -1
  12. package/dist/{ConnectedNativeDocxComparison-FENZYWDH.js → ConnectedNativeDocxComparison-NVZRVNOS.js} +9 -9
  13. package/dist/{ConnectedNativeDocxComparison-FENZYWDH.js.map → ConnectedNativeDocxComparison-NVZRVNOS.js.map} +1 -1
  14. package/dist/{ConnectedNativeDocxEditor-HB5BHGZ2.cjs → ConnectedNativeDocxEditor-R4WINUUB.cjs} +10 -10
  15. package/dist/{ConnectedNativeDocxEditor-HB5BHGZ2.cjs.map → ConnectedNativeDocxEditor-R4WINUUB.cjs.map} +1 -1
  16. package/dist/{ConnectedNativeDocxEditor-CNQAMO2N.js → ConnectedNativeDocxEditor-RSVBN7DY.js} +8 -8
  17. package/dist/{ConnectedNativeDocxEditor-CNQAMO2N.js.map → ConnectedNativeDocxEditor-RSVBN7DY.js.map} +1 -1
  18. package/dist/{ConnectedProductionSetDialog-O4FWTZNF.js → ConnectedProductionSetDialog-2DFBXE2X.js} +5 -5
  19. package/dist/{ConnectedProductionSetDialog-O4FWTZNF.js.map → ConnectedProductionSetDialog-2DFBXE2X.js.map} +1 -1
  20. package/dist/{ConnectedProductionSetDialog-ENAIZWPK.cjs → ConnectedProductionSetDialog-KYDPQ7SG.cjs} +6 -6
  21. package/dist/{ConnectedProductionSetDialog-ENAIZWPK.cjs.map → ConnectedProductionSetDialog-KYDPQ7SG.cjs.map} +1 -1
  22. package/dist/{ConnectedStreamedWordArtifact-ILMKFCDC.js → ConnectedStreamedWordArtifact-HLJ5IIOU.js} +9 -9
  23. package/dist/ConnectedStreamedWordArtifact-HLJ5IIOU.js.map +1 -0
  24. package/dist/{ConnectedStreamedWordArtifact-BF6JET2D.cjs → ConnectedStreamedWordArtifact-JQ34AOUU.cjs} +10 -10
  25. package/dist/ConnectedStreamedWordArtifact-JQ34AOUU.cjs.map +1 -0
  26. package/dist/{DocumentReviewCard-UOLXZKZE.js → DocumentReviewCard-7JSXRJZ2.js} +6 -6
  27. package/dist/{DocumentReviewCard-UOLXZKZE.js.map → DocumentReviewCard-7JSXRJZ2.js.map} +1 -1
  28. package/dist/{DocumentReviewCard-QVQ2LGFH.cjs → DocumentReviewCard-C4HVT3WM.cjs} +8 -8
  29. package/dist/{DocumentReviewCard-QVQ2LGFH.cjs.map → DocumentReviewCard-C4HVT3WM.cjs.map} +1 -1
  30. package/dist/{FilesViewerDialog-5ELQYWAZ.js → FilesViewerDialog-IMQTZWKD.js} +16 -16
  31. package/dist/{FilesViewerDialog-5ELQYWAZ.js.map → FilesViewerDialog-IMQTZWKD.js.map} +1 -1
  32. package/dist/{FilesViewerDialog-XNGHHWYS.cjs → FilesViewerDialog-UP7GFHYN.cjs} +23 -23
  33. package/dist/{FilesViewerDialog-XNGHHWYS.cjs.map → FilesViewerDialog-UP7GFHYN.cjs.map} +1 -1
  34. package/dist/{RechartsRenderer-EJRIFAAP.js → RechartsRenderer-23OF4H6X.js} +3 -3
  35. package/dist/{RechartsRenderer-EJRIFAAP.js.map → RechartsRenderer-23OF4H6X.js.map} +1 -1
  36. package/dist/{RechartsRenderer-CNFQ5EHF.cjs → RechartsRenderer-GIRCW7DB.cjs} +4 -4
  37. package/dist/{RechartsRenderer-CNFQ5EHF.cjs.map → RechartsRenderer-GIRCW7DB.cjs.map} +1 -1
  38. package/dist/{WorkspaceTableView-HRCV6WR7.cjs → WorkspaceTableView-PJM47B5F.cjs} +8 -8
  39. package/dist/{WorkspaceTableView-HRCV6WR7.cjs.map → WorkspaceTableView-PJM47B5F.cjs.map} +1 -1
  40. package/dist/{WorkspaceTableView-DIMTW5P5.js → WorkspaceTableView-YDA7A4UJ.js} +6 -6
  41. package/dist/{WorkspaceTableView-DIMTW5P5.js.map → WorkspaceTableView-YDA7A4UJ.js.map} +1 -1
  42. package/dist/{ai-E6FA4Y4J.cjs → ai-ADS6YSS2.cjs} +17 -17
  43. package/dist/ai-ADS6YSS2.cjs.map +1 -0
  44. package/dist/{ai-WASSGEMI.js → ai-KHWTGBT5.js} +9 -9
  45. package/dist/ai-KHWTGBT5.js.map +1 -0
  46. package/dist/auth/index.cjs +32 -32
  47. package/dist/auth/index.js +1 -1
  48. package/dist/calls/index.cjs +49 -49
  49. package/dist/calls/index.js +10 -10
  50. package/dist/{chunk-VJAMDAR6.cjs → chunk-22KAKJ3W.cjs} +4 -4
  51. package/dist/{chunk-VJAMDAR6.cjs.map → chunk-22KAKJ3W.cjs.map} +1 -1
  52. package/dist/{chunk-DEIF2VAA.js → chunk-3GFQNJYE.js} +3 -3
  53. package/dist/{chunk-DEIF2VAA.js.map → chunk-3GFQNJYE.js.map} +1 -1
  54. package/dist/{chunk-LUO46ELJ.cjs → chunk-3YZKDCWY.cjs} +2 -2
  55. package/dist/chunk-3YZKDCWY.cjs.map +1 -0
  56. package/dist/{chunk-5OUOPKGE.cjs → chunk-45OU2UAA.cjs} +18 -18
  57. package/dist/{chunk-5OUOPKGE.cjs.map → chunk-45OU2UAA.cjs.map} +1 -1
  58. package/dist/{chunk-JXKNPKU6.cjs → chunk-4CIVQWAX.cjs} +4 -4
  59. package/dist/{chunk-JXKNPKU6.cjs.map → chunk-4CIVQWAX.cjs.map} +1 -1
  60. package/dist/{chunk-VOI26MXJ.cjs → chunk-5AC52BHL.cjs} +16 -16
  61. package/dist/{chunk-VOI26MXJ.cjs.map → chunk-5AC52BHL.cjs.map} +1 -1
  62. package/dist/{chunk-OG3TI5GX.js → chunk-6M5NAAWX.js} +47 -5
  63. package/dist/chunk-6M5NAAWX.js.map +1 -0
  64. package/dist/{chunk-IIUEDF3F.js → chunk-6ZYOUT73.js} +7 -7
  65. package/dist/{chunk-IIUEDF3F.js.map → chunk-6ZYOUT73.js.map} +1 -1
  66. package/dist/{chunk-TRI3LQVR.js → chunk-7S7YVBFK.js} +5 -5
  67. package/dist/{chunk-TRI3LQVR.js.map → chunk-7S7YVBFK.js.map} +1 -1
  68. package/dist/{chunk-QN5GTCPB.cjs → chunk-7V4OCZS6.cjs} +8 -8
  69. package/dist/{chunk-QN5GTCPB.cjs.map → chunk-7V4OCZS6.cjs.map} +1 -1
  70. package/dist/{chunk-S7NJVJJX.cjs → chunk-AHMRYY7J.cjs} +25 -25
  71. package/dist/{chunk-S7NJVJJX.cjs.map → chunk-AHMRYY7J.cjs.map} +1 -1
  72. package/dist/{chunk-GK5BMDS6.js → chunk-AVGHTUPE.js} +4 -4
  73. package/dist/{chunk-GK5BMDS6.js.map → chunk-AVGHTUPE.js.map} +1 -1
  74. package/dist/{chunk-RAYNCZ7O.js → chunk-AZCMKGDG.js} +3 -3
  75. package/dist/{chunk-RAYNCZ7O.js.map → chunk-AZCMKGDG.js.map} +1 -1
  76. package/dist/{chunk-IJVU5MZA.js → chunk-BAUZUIHB.js} +5 -5
  77. package/dist/{chunk-IJVU5MZA.js.map → chunk-BAUZUIHB.js.map} +1 -1
  78. package/dist/{chunk-2VHZUSFW.js → chunk-BBWLFK3C.js} +3 -3
  79. package/dist/{chunk-2VHZUSFW.js.map → chunk-BBWLFK3C.js.map} +1 -1
  80. package/dist/{chunk-MW7FGIF4.cjs → chunk-BFVCYBND.cjs} +9 -9
  81. package/dist/{chunk-MW7FGIF4.cjs.map → chunk-BFVCYBND.cjs.map} +1 -1
  82. package/dist/{chunk-7ONU7EWY.js → chunk-BH6IKGZ3.js} +5 -5
  83. package/dist/{chunk-7ONU7EWY.js.map → chunk-BH6IKGZ3.js.map} +1 -1
  84. package/dist/{chunk-RNX5LAQK.cjs → chunk-C42WBPH4.cjs} +7 -7
  85. package/dist/{chunk-RNX5LAQK.cjs.map → chunk-C42WBPH4.cjs.map} +1 -1
  86. package/dist/{chunk-LM5CPXJO.cjs → chunk-CRLFLMTK.cjs} +19 -13
  87. package/dist/chunk-CRLFLMTK.cjs.map +1 -0
  88. package/dist/{chunk-CWC6W2NE.cjs → chunk-D35EHOK5.cjs} +11 -11
  89. package/dist/{chunk-CWC6W2NE.cjs.map → chunk-D35EHOK5.cjs.map} +1 -1
  90. package/dist/{chunk-BMHW7WTF.js → chunk-DBKZANTC.js} +4 -4
  91. package/dist/{chunk-BMHW7WTF.js.map → chunk-DBKZANTC.js.map} +1 -1
  92. package/dist/{chunk-Q5U6Y2NO.js → chunk-E2P4JJLJ.js} +4 -45
  93. package/dist/chunk-E2P4JJLJ.js.map +1 -0
  94. package/dist/{chunk-D3GZWKHW.cjs → chunk-EKSHUNJI.cjs} +9 -9
  95. package/dist/{chunk-D3GZWKHW.cjs.map → chunk-EKSHUNJI.cjs.map} +1 -1
  96. package/dist/{chunk-5XQNXDST.js → chunk-FPOKWML2.js} +18 -5
  97. package/dist/chunk-FPOKWML2.js.map +1 -0
  98. package/dist/{chunk-M4TM3K52.cjs → chunk-FSXQHEFQ.cjs} +16 -16
  99. package/dist/{chunk-M4TM3K52.cjs.map → chunk-FSXQHEFQ.cjs.map} +1 -1
  100. package/dist/{chunk-35BADIIF.cjs → chunk-GX75YCWJ.cjs} +23 -23
  101. package/dist/{chunk-35BADIIF.cjs.map → chunk-GX75YCWJ.cjs.map} +1 -1
  102. package/dist/{chunk-7IF3E3I2.cjs → chunk-I7CJDF3V.cjs} +4 -4
  103. package/dist/{chunk-7IF3E3I2.cjs.map → chunk-I7CJDF3V.cjs.map} +1 -1
  104. package/dist/{chunk-KYLQRS3O.js → chunk-IHOV6OTA.js} +4 -4
  105. package/dist/{chunk-KYLQRS3O.js.map → chunk-IHOV6OTA.js.map} +1 -1
  106. package/dist/{chunk-OXHAZN43.cjs → chunk-IXL2KJOZ.cjs} +26 -26
  107. package/dist/{chunk-OXHAZN43.cjs.map → chunk-IXL2KJOZ.cjs.map} +1 -1
  108. package/dist/{chunk-632JXVXY.js → chunk-KIXFXCHL.js} +15 -9
  109. package/dist/chunk-KIXFXCHL.js.map +1 -0
  110. package/dist/{chunk-PIWT2GCY.cjs → chunk-LFYKB7KF.cjs} +15 -15
  111. package/dist/{chunk-PIWT2GCY.cjs.map → chunk-LFYKB7KF.cjs.map} +1 -1
  112. package/dist/{chunk-7Q6EVFMT.js → chunk-LYW5A35J.js} +9 -9
  113. package/dist/{chunk-7Q6EVFMT.js.map → chunk-LYW5A35J.js.map} +1 -1
  114. package/dist/chunk-NFK2SEUD.js +577 -0
  115. package/dist/chunk-NFK2SEUD.js.map +1 -0
  116. package/dist/{chunk-TJQMC7GJ.cjs → chunk-NNBL3HPG.cjs} +4 -4
  117. package/dist/{chunk-TJQMC7GJ.cjs.map → chunk-NNBL3HPG.cjs.map} +1 -1
  118. package/dist/{chunk-Y5P5ZMHQ.js → chunk-NWBCZ4PA.js} +4 -4
  119. package/dist/{chunk-Y5P5ZMHQ.js.map → chunk-NWBCZ4PA.js.map} +1 -1
  120. package/dist/{chunk-5UMZXDGL.cjs → chunk-O27K7KTZ.cjs} +161 -7
  121. package/dist/chunk-O27K7KTZ.cjs.map +1 -0
  122. package/dist/{chunk-GARDQALH.js → chunk-OLAYDOPC.js} +5 -5
  123. package/dist/{chunk-GARDQALH.js.map → chunk-OLAYDOPC.js.map} +1 -1
  124. package/dist/chunk-ORELHENJ.cjs +594 -0
  125. package/dist/chunk-ORELHENJ.cjs.map +1 -0
  126. package/dist/{chunk-NUOMPVKQ.js → chunk-OWHO2TO3.js} +3 -3
  127. package/dist/{chunk-NUOMPVKQ.js.map → chunk-OWHO2TO3.js.map} +1 -1
  128. package/dist/{chunk-6XNWGOS3.cjs → chunk-PHDUN4SG.cjs} +187 -80
  129. package/dist/chunk-PHDUN4SG.cjs.map +1 -0
  130. package/dist/{chunk-KGUBKE3V.cjs → chunk-PL7O3RJJ.cjs} +48 -4
  131. package/dist/chunk-PL7O3RJJ.cjs.map +1 -0
  132. package/dist/{chunk-BH4MK2J5.js → chunk-QG6MRLZG.js} +2 -2
  133. package/dist/chunk-QG6MRLZG.js.map +1 -0
  134. package/dist/{chunk-YPTZNQPJ.cjs → chunk-RCZRI72J.cjs} +4 -4
  135. package/dist/{chunk-YPTZNQPJ.cjs.map → chunk-RCZRI72J.cjs.map} +1 -1
  136. package/dist/{chunk-E7STRFBT.cjs → chunk-SCLGUHLU.cjs} +4 -4
  137. package/dist/{chunk-E7STRFBT.cjs.map → chunk-SCLGUHLU.cjs.map} +1 -1
  138. package/dist/{chunk-EOTJX536.js → chunk-T5ZMG6MC.js} +3 -3
  139. package/dist/{chunk-EOTJX536.js.map → chunk-T5ZMG6MC.js.map} +1 -1
  140. package/dist/{chunk-LWEX3AOZ.js → chunk-TG4IICWO.js} +4 -4
  141. package/dist/{chunk-LWEX3AOZ.js.map → chunk-TG4IICWO.js.map} +1 -1
  142. package/dist/{chunk-ET3W24JV.js → chunk-TNKPQ3EF.js} +9 -9
  143. package/dist/{chunk-ET3W24JV.js.map → chunk-TNKPQ3EF.js.map} +1 -1
  144. package/dist/{chunk-QFKL4HV2.js → chunk-U5F5P4YU.js} +118 -15
  145. package/dist/chunk-U5F5P4YU.js.map +1 -0
  146. package/dist/{chunk-N52PBUAP.cjs → chunk-U6LQ6Z3P.cjs} +10 -10
  147. package/dist/{chunk-N52PBUAP.cjs.map → chunk-U6LQ6Z3P.cjs.map} +1 -1
  148. package/dist/{chunk-JNVJQCGF.cjs → chunk-UCA4JLLJ.cjs} +4 -4
  149. package/dist/{chunk-JNVJQCGF.cjs.map → chunk-UCA4JLLJ.cjs.map} +1 -1
  150. package/dist/{chunk-3RUQHIDC.js → chunk-UQ2OBHMV.js} +7 -7
  151. package/dist/{chunk-3RUQHIDC.js.map → chunk-UQ2OBHMV.js.map} +1 -1
  152. package/dist/{chunk-VYJF4ZQY.cjs → chunk-V6C2MBFY.cjs} +3 -2
  153. package/dist/chunk-V6C2MBFY.cjs.map +1 -0
  154. package/dist/{chunk-O4X7HXLF.cjs → chunk-VCEX7COE.cjs} +2 -45
  155. package/dist/chunk-VCEX7COE.cjs.map +1 -0
  156. package/dist/{chunk-QTSNHGSI.js → chunk-WFM6E7DD.js} +3 -3
  157. package/dist/{chunk-QTSNHGSI.js.map → chunk-WFM6E7DD.js.map} +1 -1
  158. package/dist/{chunk-SY2WD6VA.cjs → chunk-WI3BVKEC.cjs} +5 -5
  159. package/dist/{chunk-SY2WD6VA.cjs.map → chunk-WI3BVKEC.cjs.map} +1 -1
  160. package/dist/{chunk-LWCLAAEX.js → chunk-WJHRWXWJ.js} +3 -3
  161. package/dist/{chunk-LWCLAAEX.js.map → chunk-WJHRWXWJ.js.map} +1 -1
  162. package/dist/{chunk-FVZ2CN4A.js → chunk-WQH2WWZE.js} +3 -2
  163. package/dist/chunk-WQH2WWZE.js.map +1 -0
  164. package/dist/{chunk-V2CKYM4B.cjs → chunk-XHN5KOI2.cjs} +9 -9
  165. package/dist/{chunk-V2CKYM4B.cjs.map → chunk-XHN5KOI2.cjs.map} +1 -1
  166. package/dist/{chunk-DBHBJIF4.js → chunk-YJWAGXYM.js} +3 -3
  167. package/dist/{chunk-DBHBJIF4.js.map → chunk-YJWAGXYM.js.map} +1 -1
  168. package/dist/{chunk-KUI2IC7W.js → chunk-YLKHTBYA.js} +3 -3
  169. package/dist/{chunk-KUI2IC7W.js.map → chunk-YLKHTBYA.js.map} +1 -1
  170. package/dist/{chunk-73FJ6L6I.cjs → chunk-ZMVF7EYJ.cjs} +18 -5
  171. package/dist/chunk-ZMVF7EYJ.cjs.map +1 -0
  172. package/dist/{chunk-CEVVGJQX.js → chunk-ZNY5W3VX.js} +162 -9
  173. package/dist/chunk-ZNY5W3VX.js.map +1 -0
  174. package/dist/connect/docx.cjs +13 -13
  175. package/dist/connect/docx.js +9 -9
  176. package/dist/connect/index.cjs +1100 -884
  177. package/dist/connect/index.cjs.map +1 -1
  178. package/dist/connect/index.d.ts +1 -0
  179. package/dist/connect/index.js +475 -274
  180. package/dist/connect/index.js.map +1 -1
  181. package/dist/connect/viewer.cjs +12 -12
  182. package/dist/connect/viewer.js +10 -10
  183. package/dist/connection/account-cluster/ConnectedAccountCluster.d.ts +1 -1
  184. package/dist/connection/dashboards/ConnectedDashboardsPage.d.ts +13 -2
  185. package/dist/connection/dashboards/index.d.ts +1 -1
  186. package/dist/connection/dashboards/templates.d.ts +14 -3
  187. package/dist/connection/remote-control/ConnectedRemoteControlConsent.d.ts +17 -0
  188. package/dist/connection/remote-control/ConnectedRemoteControlIndicator.d.ts +8 -0
  189. package/dist/connection/remote-control/ConnectedRemoteControlSwitch.d.ts +1 -0
  190. package/dist/connection/remote-control/index.d.ts +4 -0
  191. package/dist/connection/remote-control/remoteControl.d.ts +40 -0
  192. package/dist/connection/routes/useDeepLinkSync.d.ts +4 -1
  193. package/dist/connection/runtime/ConnectedAppRuntime.d.ts +1 -1
  194. package/dist/connection/settings-page/settingsSections.d.ts +1 -1
  195. package/dist/connection/tags/ConnectedTagTable.d.ts +1 -1
  196. package/dist/dashboards/index.cjs +327 -116
  197. package/dist/dashboards/index.cjs.map +1 -1
  198. package/dist/dashboards/index.js +311 -101
  199. package/dist/dashboards/index.js.map +1 -1
  200. package/dist/embed/index.cjs +21 -21
  201. package/dist/embed/index.js +14 -14
  202. package/dist/guided/GuidedCursor.d.ts +21 -0
  203. package/dist/guided/cursor.d.ts +56 -0
  204. package/dist/guided/index.d.ts +5 -0
  205. package/dist/guided/runner.d.ts +30 -0
  206. package/dist/guided/sequences.d.ts +80 -0
  207. package/dist/guided/surfaces.d.ts +13 -0
  208. package/dist/guided/useGuidedRuns.d.ts +3 -0
  209. package/dist/index.cjs +171 -135
  210. package/dist/index.d.ts +1 -0
  211. package/dist/index.js +7 -7
  212. package/dist/provider/host.d.ts +6 -0
  213. package/dist/settings/PlanBadge.d.ts +1 -1
  214. package/dist/settings/TipsEditor.d.ts +6 -3
  215. package/dist/settings/index.cjs +152 -151
  216. package/dist/settings/index.js +3 -2
  217. package/dist/shell/index.cjs +46 -46
  218. package/dist/shell/index.js +3 -3
  219. package/dist/studio/index.cjs +15 -15
  220. package/dist/studio/index.js +9 -9
  221. package/dist/styles.css +1 -1
  222. package/dist/workflow-canvas/index.cjs +25 -25
  223. package/dist/workflow-canvas/index.js +13 -13
  224. package/node_modules/@arbidocs/coedit/package.json +1 -1
  225. package/package.json +5 -5
  226. package/dist/ConnectedStreamedWordArtifact-BF6JET2D.cjs.map +0 -1
  227. package/dist/ConnectedStreamedWordArtifact-ILMKFCDC.js.map +0 -1
  228. package/dist/ai-E6FA4Y4J.cjs.map +0 -1
  229. package/dist/ai-WASSGEMI.js.map +0 -1
  230. package/dist/chunk-5UMZXDGL.cjs.map +0 -1
  231. package/dist/chunk-5XQNXDST.js.map +0 -1
  232. package/dist/chunk-632JXVXY.js.map +0 -1
  233. package/dist/chunk-6XNWGOS3.cjs.map +0 -1
  234. package/dist/chunk-73FJ6L6I.cjs.map +0 -1
  235. package/dist/chunk-BH4MK2J5.js.map +0 -1
  236. package/dist/chunk-C4TGESIB.cjs +0 -260
  237. package/dist/chunk-C4TGESIB.cjs.map +0 -1
  238. package/dist/chunk-CEVVGJQX.js.map +0 -1
  239. package/dist/chunk-FVZ2CN4A.js.map +0 -1
  240. package/dist/chunk-KGUBKE3V.cjs.map +0 -1
  241. package/dist/chunk-LM5CPXJO.cjs.map +0 -1
  242. package/dist/chunk-LUO46ELJ.cjs.map +0 -1
  243. package/dist/chunk-MHFWGIF4.js +0 -254
  244. package/dist/chunk-MHFWGIF4.js.map +0 -1
  245. package/dist/chunk-O4X7HXLF.cjs.map +0 -1
  246. package/dist/chunk-OG3TI5GX.js.map +0 -1
  247. package/dist/chunk-Q5U6Y2NO.js.map +0 -1
  248. package/dist/chunk-QFKL4HV2.js.map +0 -1
  249. package/dist/chunk-VYJF4ZQY.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { PanelEditor, DashboardGrid, DashboardCell, DashboardPanel } from '../chunk-GK5BMDS6.js';
3
- export { ChartRenderer, ChartTable, DEFAULT_CHART_RENDERER_LABELS, DEFAULT_DASHBOARD_PANEL_LABELS, DEFAULT_PANEL_EDITOR_LABELS, DEFAULT_PANEL_VIEW_LABELS, DashboardCell, DashboardGrid, DashboardPanel, PANEL_FORMATTERS, PanelEditor, PanelView, clampPanelWidth } from '../chunk-GK5BMDS6.js';
4
- export { DEFAULT_UNIT_FORMATTERS, chartModelOf, formatBucketLabel, formatterOf, metricValueOf } from '../chunk-5XQNXDST.js';
2
+ import { PanelEditor, DashboardGrid, DashboardCell, DashboardPanel } from '../chunk-AVGHTUPE.js';
3
+ export { ChartRenderer, ChartTable, DEFAULT_CHART_RENDERER_LABELS, DEFAULT_DASHBOARD_PANEL_LABELS, DEFAULT_PANEL_EDITOR_LABELS, DEFAULT_PANEL_VIEW_LABELS, DashboardCell, DashboardGrid, DashboardPanel, PANEL_FORMATTERS, PanelEditor, PanelView, clampPanelWidth } from '../chunk-AVGHTUPE.js';
4
+ export { DEFAULT_UNIT_FORMATTERS, chartModelOf, formatBucketLabel, formatterOf, metricValueOf } from '../chunk-FPOKWML2.js';
5
5
  import '../chunk-653XMGF4.js';
6
6
  import '../chunk-I46XTM3W.js';
7
7
  import '../chunk-AMTWY22T.js';
@@ -16,12 +16,11 @@ import '../chunk-TX2ZICS7.js';
16
16
  import '../chunk-UP3GCNPM.js';
17
17
  import '../chunk-VUNV25KB.js';
18
18
  import { useState, useMemo, useEffect } from 'react';
19
- import { Plus, Pencil, Trash2, ArrowLeft, LayoutDashboard, ArrowUp, ArrowDown } from 'lucide-react';
20
- import { useDashboardStore, useSavedDashboards, useSaveDashboard, useDeleteDashboard } from '@arbidocs/react';
21
- import { Button, Label, Input, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, Card, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from '@arbidocs/react/ui';
19
+ import { Plus, Pencil, MoreHorizontal, Trash2, ArrowLeft, LayoutDashboard, ArrowUp, ArrowDown } from 'lucide-react';
20
+ import { DEFAULT_DOCUMENTS_SOURCE_LABELS, DEFAULT_WORKFLOWS_SOURCE_LABELS, DEFAULT_ACTIVITY_SOURCE_LABELS, useFeature, useDashboardStore, useSavedDashboards, useSaveDashboard, useDeleteDashboard } from '@arbidocs/react';
21
+ import { Button, Label, Input, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, Card, cn } from '@arbidocs/react/ui';
22
22
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
23
23
 
24
- // src/connection/dashboards/templates.ts
25
24
  function newPanelId() {
26
25
  return `pnl-${Math.random().toString(36).slice(2, 10)}`;
27
26
  }
@@ -34,92 +33,280 @@ function newPanel() {
34
33
  width: 6
35
34
  };
36
35
  }
36
+ var panel = (id, title, source, chart, width = 6) => ({ id, title, source: { id: source }, chart, width });
37
+ var metric = (id, title, source, chart = {}, width = 3) => panel(id, title, source, { type: "metric", ...chart }, width);
38
+ var FAILED_DOCUMENT = DEFAULT_DOCUMENTS_SOURCE_LABELS.statuses.failed;
39
+ var FAILED_RUN = DEFAULT_WORKFLOWS_SOURCE_LABELS.results.failed;
40
+ var WORKFLOW_RUN = DEFAULT_ACTIVITY_SOURCE_LABELS.kinds.workflow_run;
41
+ var DOCUMENTS_BY_TYPE = panel("documents-by-type", "Documents by type", "documents", {
42
+ type: "bar",
43
+ x: "type",
44
+ limit: 8
45
+ });
46
+ var DOCUMENTS_BY_STATUS = panel("documents-by-status", "Documents by status", "documents", {
47
+ type: "donut",
48
+ x: "status"
49
+ });
50
+ var AI_USAGE_BY_MODEL = panel("usage-by-model", "AI usage by model", "usage", {
51
+ type: "bar",
52
+ x: "day",
53
+ bucket: "day",
54
+ series: "model",
55
+ y: "spend",
56
+ aggregate: "sum",
57
+ stacked: true
58
+ });
59
+ var WORKFLOW_RUNS_BY_DAY = panel(
60
+ "workflow-runs-by-day",
61
+ "Workflow runs by day",
62
+ "activity",
63
+ {
64
+ type: "bar",
65
+ x: "when",
66
+ bucket: "day",
67
+ series: "status",
68
+ stacked: true,
69
+ filters: [{ field: "kind", op: "eq", value: WORKFLOW_RUN }]
70
+ },
71
+ 12
72
+ );
37
73
  var OVERVIEW_DASHBOARD = {
38
74
  version: 1,
39
75
  title: "Overview",
40
- description: "Documents, threads, projects and AI usage at a glance.",
76
+ description: "Documents, threads, facts and AI usage at a glance.",
41
77
  panels: [
42
- {
43
- id: "documents",
44
- title: "Documents",
45
- source: { id: "documents" },
46
- chart: { type: "metric" },
47
- width: 3
48
- },
49
- {
50
- id: "threads",
51
- title: "Threads",
52
- source: { id: "conversations" },
53
- chart: { type: "metric" },
54
- width: 3
55
- },
56
- {
57
- id: "projects",
58
- title: "Projects",
59
- source: { id: "projects" },
60
- chart: { type: "metric" },
61
- width: 3
62
- },
63
- {
64
- id: "ai-usage",
65
- title: "AI usage this period",
66
- source: { id: "usage" },
67
- chart: { type: "metric", aggregate: "sum", y: "spend" },
68
- width: 3
69
- },
70
- {
71
- id: "threads-over-time",
72
- title: "Threads started",
73
- source: { id: "conversations" },
74
- chart: { type: "line", x: "created", bucket: "month" },
75
- width: 6
76
- },
77
- {
78
- id: "usage-by-model",
79
- title: "AI usage by model",
80
- source: { id: "usage" },
81
- chart: {
82
- type: "bar",
83
- x: "day",
84
- bucket: "day",
85
- series: "model",
86
- y: "spend",
87
- aggregate: "sum",
88
- stacked: true
89
- },
90
- width: 6
91
- },
92
- {
93
- id: "documents-by-type",
94
- title: "Documents by type",
95
- source: { id: "documents" },
96
- chart: { type: "bar", x: "type", limit: 8 },
97
- width: 6
98
- },
99
- {
100
- id: "projects-by-stage",
101
- title: "Projects by stage",
102
- source: { id: "projects" },
103
- chart: { type: "donut", x: "stage" },
104
- width: 6
105
- },
106
- {
107
- id: "due",
108
- title: "Due dates",
109
- source: { id: "conversations" },
110
- chart: {
78
+ metric("documents", "Documents", "documents"),
79
+ metric("threads", "Threads", "conversations"),
80
+ metric("facts", "Facts", "facts"),
81
+ metric("ai-usage", "AI usage this period", "usage", { aggregate: "sum", y: "spend" }),
82
+ panel("threads-over-time", "Threads started", "conversations", {
83
+ type: "line",
84
+ x: "created",
85
+ bucket: "month"
86
+ }),
87
+ AI_USAGE_BY_MODEL,
88
+ DOCUMENTS_BY_TYPE,
89
+ DOCUMENTS_BY_STATUS,
90
+ panel(
91
+ "due",
92
+ "Due dates",
93
+ "conversations",
94
+ {
111
95
  type: "table",
112
96
  columns: ["title", "due", "status", "owner"],
113
97
  filters: [{ field: "due", op: "not_empty" }],
114
98
  orderBy: { field: "due" }
115
99
  },
116
- width: 12
117
- }
100
+ 12
101
+ )
102
+ ]
103
+ };
104
+ var DOCUMENTS_DASHBOARD = {
105
+ version: 1,
106
+ title: "Documents",
107
+ description: "What the workspace holds: status, type, folders, who added what, and when.",
108
+ panels: [
109
+ metric("documents", "Documents", "documents"),
110
+ metric("pages", "Pages", "documents", { aggregate: "sum", y: "pages" }),
111
+ metric("size", "Stored", "documents", { aggregate: "sum", y: "size" }),
112
+ metric("failed", "Failed to process", "documents", {
113
+ filters: [{ field: "status", op: "eq", value: FAILED_DOCUMENT }]
114
+ }),
115
+ DOCUMENTS_BY_STATUS,
116
+ DOCUMENTS_BY_TYPE,
117
+ panel("documents-added", "Documents added", "documents", {
118
+ type: "line",
119
+ x: "created",
120
+ bucket: "month"
121
+ }),
122
+ panel("documents-by-folder", "Documents by folder", "documents", {
123
+ type: "bar",
124
+ x: "folder",
125
+ limit: 10
126
+ }),
127
+ panel("documents-by-person", "Added by", "documents", { type: "bar", x: "createdBy" }),
128
+ panel("documents-by-kind", "Kinds of document", "documents", {
129
+ type: "donut",
130
+ x: "nature",
131
+ limit: 8
132
+ }),
133
+ panel(
134
+ "latest-documents",
135
+ "Latest documents",
136
+ "documents",
137
+ {
138
+ type: "table",
139
+ columns: ["name", "type", "status", "createdBy", "created"],
140
+ orderBy: { field: "created", direction: "desc" },
141
+ limit: 10
142
+ },
143
+ 12
144
+ )
145
+ ]
146
+ };
147
+ var TAGS_FACTS_DASHBOARD = {
148
+ version: 1,
149
+ title: "Tags and facts",
150
+ description: "How the workspace is organised: its tags and what carries them, and its facts.",
151
+ panels: [
152
+ metric("tags", "Tags", "tags"),
153
+ metric("facts", "Facts", "facts"),
154
+ metric("confirmed-facts", "Confirmed facts", "facts", {
155
+ filters: [{ field: "confirmed", op: "eq", value: true }]
156
+ }),
157
+ metric("dated-facts", "Dated facts", "facts", {
158
+ filters: [{ field: "date", op: "not_empty" }]
159
+ }),
160
+ panel("most-used-tags", "Most used tags", "tags", {
161
+ type: "bar",
162
+ x: "name",
163
+ y: "documents",
164
+ aggregate: "sum",
165
+ limit: 10,
166
+ // Tags on no document yet are not "used": none at all shows the empty state.
167
+ filters: [{ field: "documents", op: "gt", value: 0 }]
168
+ }),
169
+ panel("tags-by-kind", "Tags by kind", "tags", { type: "donut", x: "kind" }),
170
+ panel("facts-by-tag", "Facts by tag", "facts", { type: "bar", x: "tags", limit: 10 }),
171
+ panel("facts-added", "Facts added", "facts", { type: "line", x: "created", bucket: "month" }),
172
+ panel(
173
+ "latest-facts",
174
+ "Latest facts",
175
+ "facts",
176
+ {
177
+ type: "table",
178
+ columns: ["text", "tags", "date", "createdBy"],
179
+ orderBy: { field: "created", direction: "desc" },
180
+ limit: 10
181
+ },
182
+ 12
183
+ )
184
+ ]
185
+ };
186
+ var WORKFLOWS_DASHBOARD = {
187
+ version: 1,
188
+ title: "Workflows",
189
+ description: "Your workflows: what starts them, how their runs end, and what runs next.",
190
+ panels: [
191
+ metric("workflows", "Workflows", "workflows", {}, 4),
192
+ metric(
193
+ "workflows-on",
194
+ "Switched on",
195
+ "workflows",
196
+ {
197
+ filters: [{ field: "active", op: "eq", value: true }]
198
+ },
199
+ 4
200
+ ),
201
+ metric(
202
+ "workflows-failed",
203
+ "Last run failed",
204
+ "workflows",
205
+ {
206
+ filters: [{ field: "lastResult", op: "eq", value: FAILED_RUN }]
207
+ },
208
+ 4
209
+ ),
210
+ panel("workflows-by-result", "Last run result", "workflows", {
211
+ type: "donut",
212
+ x: "lastResult"
213
+ }),
214
+ panel("workflows-by-trigger", "What starts them", "workflows", { type: "bar", x: "trigger" }),
215
+ WORKFLOW_RUNS_BY_DAY,
216
+ panel(
217
+ "next-runs",
218
+ "Next runs",
219
+ "workflows",
220
+ {
221
+ type: "table",
222
+ columns: ["name", "trigger", "nextRun", "lastResult"],
223
+ filters: [{ field: "nextRun", op: "not_empty" }],
224
+ orderBy: { field: "nextRun" },
225
+ limit: 10
226
+ },
227
+ 12
228
+ )
229
+ ]
230
+ };
231
+ var AI_USAGE_DASHBOARD = {
232
+ version: 1,
233
+ title: "AI usage",
234
+ description: "What the AI has done and cost this period, by day, model and project.",
235
+ panels: [
236
+ metric("ai-spend", "AI usage this period", "usage", { aggregate: "sum", y: "spend" }, 4),
237
+ metric("ai-tokens", "Tokens", "usage", { aggregate: "sum", y: "tokens" }, 4),
238
+ metric("ai-requests", "Requests", "usage", { aggregate: "sum", y: "requests" }, 4),
239
+ panel(
240
+ "spend-by-day",
241
+ "AI usage by day",
242
+ "usage",
243
+ { type: "line", x: "day", bucket: "day", y: "spend", aggregate: "sum" },
244
+ 12
245
+ ),
246
+ AI_USAGE_BY_MODEL,
247
+ panel("tokens-by-model", "Tokens by model", "usage", {
248
+ type: "bar",
249
+ x: "model",
250
+ y: "tokens",
251
+ aggregate: "sum",
252
+ limit: 6
253
+ }),
254
+ panel(
255
+ "spend-by-project",
256
+ "AI usage by project",
257
+ "usage",
258
+ { type: "bar", x: "project", y: "spend", aggregate: "sum" },
259
+ 12
260
+ )
261
+ ]
262
+ };
263
+ var ACTIVITY_DASHBOARD = {
264
+ version: 1,
265
+ title: "Recent activity",
266
+ description: "The latest activity in the workspace: who did what, where, and when.",
267
+ panels: [
268
+ panel(
269
+ "activity-by-day",
270
+ "Activity by day",
271
+ "activity",
272
+ { type: "bar", x: "when", bucket: "day", series: "area", stacked: true },
273
+ 12
274
+ ),
275
+ panel("activity-by-area", "Activity by area", "activity", { type: "donut", x: "area" }),
276
+ panel("activity-by-person", "Activity by person", "activity", {
277
+ type: "bar",
278
+ x: "person",
279
+ limit: 10
280
+ }),
281
+ WORKFLOW_RUNS_BY_DAY,
282
+ panel(
283
+ "latest-activity",
284
+ "Latest activity",
285
+ "activity",
286
+ {
287
+ type: "table",
288
+ columns: ["when", "person", "kind", "item", "status"],
289
+ orderBy: { field: "when", direction: "desc" },
290
+ limit: 15
291
+ },
292
+ 12
293
+ )
118
294
  ]
119
295
  };
296
+ function templatesFor(templates, features) {
297
+ return features.workflows ? templates : templates.filter((t) => !t.panels.some((p) => p.source.id === "workflows"));
298
+ }
299
+ var DASHBOARD_TEMPLATES = [
300
+ OVERVIEW_DASHBOARD,
301
+ DOCUMENTS_DASHBOARD,
302
+ TAGS_FACTS_DASHBOARD,
303
+ WORKFLOWS_DASHBOARD,
304
+ AI_USAGE_DASHBOARD,
305
+ ACTIVITY_DASHBOARD
306
+ ];
120
307
  var DEFAULT_DASHBOARDS_PAGE_LABELS = {
121
308
  title: "Dashboards",
122
- description: "Charts and figures from your documents, threads, projects, AI usage and databases.",
309
+ description: "Charts and figures from your documents, threads, tags, facts, workflows, AI usage and databases.",
123
310
  newDashboard: "New dashboard",
124
311
  blank: "Blank dashboard",
125
312
  untitled: "Untitled dashboard",
@@ -129,6 +316,7 @@ var DEFAULT_DASHBOARDS_PAGE_LABELS = {
129
316
  panels: (count) => `${count} ${count === 1 ? "panel" : "panels"}`,
130
317
  back: "All dashboards",
131
318
  edit: "Edit",
319
+ more: "More dashboard actions",
132
320
  delete: "Delete",
133
321
  confirmDelete: (title) => `Delete the dashboard \u201C${title}\u201D? Its panels go with it.`,
134
322
  save: "Save",
@@ -153,12 +341,12 @@ function PanelsGrid({
153
341
  editing,
154
342
  testId
155
343
  }) {
156
- return /* @__PURE__ */ jsx(DashboardGrid, { testId: testId && `${testId}-grid`, children: spec.panels.map((panel, i) => /* @__PURE__ */ jsx(DashboardCell, { width: panel.width, children: /* @__PURE__ */ jsx(
344
+ return /* @__PURE__ */ jsx(DashboardGrid, { testId: testId && `${testId}-grid`, children: spec.panels.map((panel2, i) => /* @__PURE__ */ jsx(DashboardCell, { width: panel2.width, children: /* @__PURE__ */ jsx(
157
345
  DashboardPanel,
158
346
  {
159
- panel,
347
+ panel: panel2,
160
348
  labels: panelLabels,
161
- testId: testId && `${testId}-panel-${panel.id}`,
349
+ testId: testId && `${testId}-panel-${panel2.id}`,
162
350
  actions: editing && /* @__PURE__ */ jsxs(Fragment, { children: [
163
351
  /* @__PURE__ */ jsx(
164
352
  Button,
@@ -208,7 +396,7 @@ function PanelsGrid({
208
396
  )
209
397
  ] })
210
398
  }
211
- ) }, panel.id)) });
399
+ ) }, panel2.id)) });
212
400
  }
213
401
  function NewDashboardButton({
214
402
  templates,
@@ -238,16 +426,19 @@ function NewDashboardButton({
238
426
  ] });
239
427
  }
240
428
  function ConnectedDashboardsPage({
241
- templates = [OVERVIEW_DASHBOARD],
429
+ templates: siteTemplates,
242
430
  dashboardId,
243
431
  onDashboardChange,
244
432
  labels,
245
433
  panelLabels,
246
434
  editorLabels,
435
+ className,
247
436
  testId = "dashboards"
248
437
  }) {
249
438
  const l = { ...DEFAULT_DASHBOARDS_PAGE_LABELS, ...labels };
250
439
  const { confirm, notify } = useBlocksEnvironment();
440
+ const workflowsOn = useFeature("workflows");
441
+ const templates = siteTemplates ?? templatesFor(DASHBOARD_TEMPLATES, { workflows: workflowsOn });
251
442
  const store = useDashboardStore();
252
443
  const saved = useSavedDashboards(store);
253
444
  const save = useSaveDashboard(store);
@@ -375,7 +566,7 @@ function ConnectedDashboardsPage({
375
566
  PanelEditor,
376
567
  {
377
568
  value: editingPanel.panel,
378
- onChange: (panel) => setEditingPanel({ ...editingPanel, panel }),
569
+ onChange: (panel2) => setEditingPanel({ ...editingPanel, panel: panel2 }),
379
570
  labels: editorLabels,
380
571
  testId: `${testId}-panel-editor`
381
572
  }
@@ -421,19 +612,31 @@ function ConnectedDashboardsPage({
421
612
  ]
422
613
  }
423
614
  ),
424
- /* @__PURE__ */ jsxs(
425
- Button,
426
- {
427
- variant: "ghost",
428
- onClick: () => void deleteOpen(open),
429
- "data-testid": `${testId}-delete`,
430
- children: [
431
- /* @__PURE__ */ jsx(Trash2, { className: "size-4" }),
432
- " ",
433
- l.delete
434
- ]
435
- }
436
- )
615
+ /* @__PURE__ */ jsxs(DropdownMenu, { children: [
616
+ /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
617
+ Button,
618
+ {
619
+ variant: "ghost",
620
+ size: "icon",
621
+ "aria-label": l.more,
622
+ "data-testid": `${testId}-more`,
623
+ children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" })
624
+ }
625
+ ) }),
626
+ /* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxs(
627
+ DropdownMenuItem,
628
+ {
629
+ onSelect: () => void deleteOpen(open),
630
+ className: "text-destructive focus:text-destructive",
631
+ "data-testid": `${testId}-delete`,
632
+ children: [
633
+ /* @__PURE__ */ jsx(Trash2, { className: "size-4" }),
634
+ " ",
635
+ l.delete
636
+ ]
637
+ }
638
+ ) })
639
+ ] })
437
640
  ] })
438
641
  }
439
642
  ),
@@ -478,9 +681,16 @@ function ConnectedDashboardsPage({
478
681
  ) }) }, d.id)) })
479
682
  ] });
480
683
  }
481
- return /* @__PURE__ */ jsx("div", { "data-testid": testId, children: content });
684
+ return /* @__PURE__ */ jsx(
685
+ "div",
686
+ {
687
+ className: cn("h-full min-h-0 w-full overflow-y-auto p-4 sm:p-6", className),
688
+ "data-testid": testId,
689
+ children: content
690
+ }
691
+ );
482
692
  }
483
693
 
484
- export { ConnectedDashboardsPage, DEFAULT_DASHBOARDS_PAGE_LABELS, OVERVIEW_DASHBOARD, newPanel, newPanelId };
694
+ export { ConnectedDashboardsPage, DASHBOARD_TEMPLATES, DEFAULT_DASHBOARDS_PAGE_LABELS, OVERVIEW_DASHBOARD, newPanel, newPanelId };
485
695
  //# sourceMappingURL=index.js.map
486
696
  //# sourceMappingURL=index.js.map