@arbidocs/blocks 0.3.184 → 0.4.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 (598) hide show
  1. package/README.md +100 -0
  2. package/dist/agents/approvals/AuthorizeAgentParts.d.ts +79 -0
  3. package/dist/agents/approvals/ConsentPage.d.ts +76 -0
  4. package/dist/agents/approvals/ConsentParts.d.ts +37 -0
  5. package/dist/agents/approvals/index.d.ts +3 -0
  6. package/dist/agents/config/ConfigField.d.ts +43 -0
  7. package/dist/agents/config/ConfigForm.d.ts +35 -0
  8. package/dist/agents/config/TupleArrayField.d.ts +32 -0
  9. package/dist/agents/config/index.d.ts +4 -0
  10. package/dist/agents/config/schema-utils.d.ts +28 -0
  11. package/dist/agents/definitions/AgentCard.d.ts +63 -0
  12. package/dist/agents/definitions/AgentCreator.d.ts +118 -0
  13. package/dist/agents/definitions/AgentEditorParts.d.ts +63 -0
  14. package/dist/agents/definitions/AgentGallery.d.ts +29 -0
  15. package/dist/agents/definitions/index.d.ts +4 -0
  16. package/dist/agents/index.cjs +595 -0
  17. package/dist/agents/index.cjs.map +1 -0
  18. package/dist/agents/index.d.ts +7 -0
  19. package/dist/agents/index.js +14 -0
  20. package/dist/agents/index.js.map +1 -0
  21. package/dist/agents/runs/AgentBar.d.ts +103 -0
  22. package/dist/agents/runs/AgentSteps.d.ts +157 -0
  23. package/dist/agents/runs/SubagentRoster.d.ts +37 -0
  24. package/dist/agents/runs/index.d.ts +3 -0
  25. package/dist/agents/skills/SkillBrowserParts.d.ts +70 -0
  26. package/dist/agents/skills/SkillCard.d.ts +48 -0
  27. package/dist/agents/skills/SkillForms.d.ts +64 -0
  28. package/dist/agents/skills/SkillParts.d.ts +31 -0
  29. package/dist/agents/skills/SkillRow.d.ts +34 -0
  30. package/dist/agents/skills/index.d.ts +5 -0
  31. package/dist/agents/tasks/LiveRunsBanner.d.ts +26 -0
  32. package/dist/agents/tasks/RecurrenceBuilder.d.ts +36 -0
  33. package/dist/agents/tasks/TaskComposer.d.ts +108 -0
  34. package/dist/agents/tasks/TaskPlan.d.ts +78 -0
  35. package/dist/agents/tasks/TaskRowActions.d.ts +43 -0
  36. package/dist/agents/tasks/TaskRunsDialog.d.ts +45 -0
  37. package/dist/agents/tasks/TasksChrome.d.ts +36 -0
  38. package/dist/agents/tasks/UploadTaskItem.d.ts +39 -0
  39. package/dist/agents/tasks/UploadTaskList.d.ts +35 -0
  40. package/dist/agents/tasks/elapsed.d.ts +2 -0
  41. package/dist/agents/tasks/index.d.ts +13 -0
  42. package/dist/agents/tasks/rrule.d.ts +36 -0
  43. package/dist/agents/tasks/taskColumns.d.ts +68 -0
  44. package/dist/agents/tasks/taskLabels.d.ts +26 -0
  45. package/dist/agents/workflows/AgentSelect.d.ts +33 -0
  46. package/dist/agents/workflows/SchemaForm.d.ts +37 -0
  47. package/dist/agents/workflows/WorkflowConfigDialog.d.ts +73 -0
  48. package/dist/agents/workflows/WorkflowLauncher.d.ts +38 -0
  49. package/dist/agents/workflows/index.d.ts +6 -0
  50. package/dist/agents/workflows/types.d.ts +125 -0
  51. package/dist/agents/workflows/workflow.d.ts +62 -0
  52. package/dist/auth/AuthFooter.d.ts +56 -0
  53. package/dist/auth/AuthForm.d.ts +105 -0
  54. package/dist/auth/AuthLayout.d.ts +46 -0
  55. package/dist/auth/PasswordStrengthInput.d.ts +44 -0
  56. package/dist/auth/RecoveryDialogs.d.ts +90 -0
  57. package/dist/auth/SsoLoginButton.d.ts +19 -0
  58. package/dist/auth/index.cjs +123 -0
  59. package/dist/auth/index.cjs.map +1 -0
  60. package/dist/auth/index.d.ts +6 -0
  61. package/dist/auth/index.js +6 -0
  62. package/dist/auth/index.js.map +1 -0
  63. package/dist/builder/AgentsPanel.d.ts +9 -0
  64. package/dist/builder/ModuleManager.d.ts +6 -0
  65. package/dist/builder/VerticalBuilder.d.ts +32 -0
  66. package/dist/builder/agents/store.d.ts +21 -0
  67. package/dist/builder/export.d.ts +30 -0
  68. package/dist/builder/modules/registry.d.ts +11 -0
  69. package/dist/builder/modules/store.d.ts +29 -0
  70. package/dist/builder/modules/types.d.ts +29 -0
  71. package/dist/builder/types.d.ts +28 -0
  72. package/dist/chat/BranchControls.d.ts +33 -0
  73. package/dist/chat/Composer.d.ts +156 -0
  74. package/dist/chat/ContextChip.d.ts +19 -0
  75. package/dist/chat/ContextPanel.d.ts +108 -0
  76. package/dist/chat/ConversationEmpty.d.ts +53 -0
  77. package/dist/chat/ConversationLayout.d.ts +40 -0
  78. package/dist/chat/ConversationParts.d.ts +62 -0
  79. package/dist/chat/ConversationSearchView.d.ts +57 -0
  80. package/dist/chat/LabelPinRow.d.ts +30 -0
  81. package/dist/chat/Message.d.ts +189 -0
  82. package/dist/chat/MessageAlert.d.ts +25 -0
  83. package/dist/chat/MessageList.d.ts +102 -0
  84. package/dist/chat/ModelPicker.d.ts +103 -0
  85. package/dist/chat/PendingAnswerBar.d.ts +36 -0
  86. package/dist/chat/PinnedDocChip.d.ts +22 -0
  87. package/dist/chat/SlashMenu.d.ts +57 -0
  88. package/dist/chat/ThreadMap.d.ts +45 -0
  89. package/dist/chat/index.cjs +423 -0
  90. package/dist/chat/index.cjs.map +1 -0
  91. package/dist/chat/index.d.ts +21 -0
  92. package/dist/chat/index.js +6 -0
  93. package/dist/chat/index.js.map +1 -0
  94. package/dist/chat/test-id.d.ts +16 -0
  95. package/dist/chat/useStreamAnnouncement.d.ts +19 -0
  96. package/dist/chunk-223D4727.cjs +50 -0
  97. package/dist/chunk-223D4727.cjs.map +1 -0
  98. package/dist/chunk-4EZVCGRL.js +803 -0
  99. package/dist/chunk-4EZVCGRL.js.map +1 -0
  100. package/dist/chunk-54Q3RNJU.cjs +516 -0
  101. package/dist/chunk-54Q3RNJU.cjs.map +1 -0
  102. package/dist/chunk-5B4PXAKI.cjs +287 -0
  103. package/dist/chunk-5B4PXAKI.cjs.map +1 -0
  104. package/dist/chunk-5TYEJOXY.js +1762 -0
  105. package/dist/chunk-5TYEJOXY.js.map +1 -0
  106. package/dist/chunk-6ALISABK.cjs +677 -0
  107. package/dist/chunk-6ALISABK.cjs.map +1 -0
  108. package/dist/chunk-6HIPFEID.cjs +574 -0
  109. package/dist/chunk-6HIPFEID.cjs.map +1 -0
  110. package/dist/chunk-76JDDMSP.js +31 -0
  111. package/dist/chunk-76JDDMSP.js.map +1 -0
  112. package/dist/chunk-7F6CBP3Z.js +12 -0
  113. package/dist/chunk-7F6CBP3Z.js.map +1 -0
  114. package/dist/chunk-7G2LJMUG.cjs +45 -0
  115. package/dist/chunk-7G2LJMUG.cjs.map +1 -0
  116. package/dist/chunk-7G3JNSJB.cjs +1809 -0
  117. package/dist/chunk-7G3JNSJB.cjs.map +1 -0
  118. package/dist/chunk-A2YAC22G.js +93 -0
  119. package/dist/chunk-A2YAC22G.js.map +1 -0
  120. package/dist/chunk-ADOKTJHV.cjs +262 -0
  121. package/dist/chunk-ADOKTJHV.cjs.map +1 -0
  122. package/dist/chunk-AXIZ2MDV.js +751 -0
  123. package/dist/chunk-AXIZ2MDV.js.map +1 -0
  124. package/dist/chunk-AZQDNYH4.js +2865 -0
  125. package/dist/chunk-AZQDNYH4.js.map +1 -0
  126. package/dist/chunk-C54XEN5T.cjs +34 -0
  127. package/dist/chunk-C54XEN5T.cjs.map +1 -0
  128. package/dist/chunk-CQCC7LE7.js +210 -0
  129. package/dist/chunk-CQCC7LE7.js.map +1 -0
  130. package/dist/chunk-CRIKTUEU.cjs +47 -0
  131. package/dist/chunk-CRIKTUEU.cjs.map +1 -0
  132. package/dist/chunk-CTZ5745I.js +564 -0
  133. package/dist/chunk-CTZ5745I.js.map +1 -0
  134. package/dist/chunk-DPLRHEJZ.js +78 -0
  135. package/dist/chunk-DPLRHEJZ.js.map +1 -0
  136. package/dist/chunk-DVLEQURC.js +672 -0
  137. package/dist/chunk-DVLEQURC.js.map +1 -0
  138. package/dist/chunk-ELR74ME6.cjs +68 -0
  139. package/dist/chunk-ELR74ME6.cjs.map +1 -0
  140. package/dist/{chunk-DBAUZD7A.cjs → chunk-FZQJ2S6P.cjs} +244 -1123
  141. package/dist/chunk-FZQJ2S6P.cjs.map +1 -0
  142. package/dist/chunk-G3G7LZPM.cjs +205 -0
  143. package/dist/chunk-G3G7LZPM.cjs.map +1 -0
  144. package/dist/chunk-GDFWJ73C.cjs +2973 -0
  145. package/dist/chunk-GDFWJ73C.cjs.map +1 -0
  146. package/dist/chunk-ITGHMJOM.js +5528 -0
  147. package/dist/chunk-ITGHMJOM.js.map +1 -0
  148. package/dist/chunk-K4BGOPGG.js +79 -0
  149. package/dist/chunk-K4BGOPGG.js.map +1 -0
  150. package/dist/chunk-KUA3BCT2.cjs +272 -0
  151. package/dist/chunk-KUA3BCT2.cjs.map +1 -0
  152. package/dist/chunk-LGBAZD37.js +341 -0
  153. package/dist/chunk-LGBAZD37.js.map +1 -0
  154. package/dist/chunk-MHVNT4J3.cjs +15 -0
  155. package/dist/chunk-MHVNT4J3.cjs.map +1 -0
  156. package/dist/chunk-MMYCZRKT.cjs +168 -0
  157. package/dist/chunk-MMYCZRKT.cjs.map +1 -0
  158. package/dist/chunk-NBV56SGU.js +42 -0
  159. package/dist/chunk-NBV56SGU.js.map +1 -0
  160. package/dist/chunk-NPLYHR2E.js +13 -0
  161. package/dist/chunk-NPLYHR2E.js.map +1 -0
  162. package/dist/chunk-NUNKSZKU.js +203 -0
  163. package/dist/chunk-NUNKSZKU.js.map +1 -0
  164. package/dist/chunk-OB5F4577.cjs +40 -0
  165. package/dist/chunk-OB5F4577.cjs.map +1 -0
  166. package/dist/chunk-OUW6G4O2.cjs +96 -0
  167. package/dist/chunk-OUW6G4O2.cjs.map +1 -0
  168. package/dist/chunk-OVEQERPO.js +66 -0
  169. package/dist/chunk-OVEQERPO.js.map +1 -0
  170. package/dist/chunk-P6GHJSLR.js +34 -0
  171. package/dist/chunk-P6GHJSLR.js.map +1 -0
  172. package/dist/chunk-PCB2BPN3.cjs +41 -0
  173. package/dist/chunk-PCB2BPN3.cjs.map +1 -0
  174. package/dist/chunk-PPCATBOY.cjs +15 -0
  175. package/dist/chunk-PPCATBOY.cjs.map +1 -0
  176. package/dist/chunk-QN42OA5J.js +887 -0
  177. package/dist/chunk-QN42OA5J.js.map +1 -0
  178. package/dist/{chunk-FZ2S6VAZ.js → chunk-RBXZYNVB.js} +223 -1102
  179. package/dist/chunk-RBXZYNVB.js.map +1 -0
  180. package/dist/chunk-RC6VTY2H.js +47 -0
  181. package/dist/chunk-RC6VTY2H.js.map +1 -0
  182. package/dist/chunk-RFIBUWLF.cjs +232 -0
  183. package/dist/chunk-RFIBUWLF.cjs.map +1 -0
  184. package/dist/chunk-S5T7ZTX2.js +266 -0
  185. package/dist/chunk-S5T7ZTX2.js.map +1 -0
  186. package/dist/chunk-S7PSMMRG.js +38 -0
  187. package/dist/chunk-S7PSMMRG.js.map +1 -0
  188. package/dist/chunk-SCFYPAG6.cjs +18 -0
  189. package/dist/chunk-SCFYPAG6.cjs.map +1 -0
  190. package/dist/chunk-SYDHKKRZ.cjs +818 -0
  191. package/dist/chunk-SYDHKKRZ.cjs.map +1 -0
  192. package/dist/chunk-TX2ZICS7.js +139 -0
  193. package/dist/chunk-TX2ZICS7.js.map +1 -0
  194. package/dist/chunk-TYZUCAT7.js +787 -0
  195. package/dist/chunk-TYZUCAT7.js.map +1 -0
  196. package/dist/chunk-U2E3WT3J.js +45 -0
  197. package/dist/chunk-U2E3WT3J.js.map +1 -0
  198. package/dist/chunk-UBNVIIBT.js +284 -0
  199. package/dist/chunk-UBNVIIBT.js.map +1 -0
  200. package/dist/chunk-UFHMLHIR.cjs +66 -0
  201. package/dist/chunk-UFHMLHIR.cjs.map +1 -0
  202. package/dist/chunk-UJE32SST.js +39 -0
  203. package/dist/chunk-UJE32SST.js.map +1 -0
  204. package/dist/chunk-ULWRNGGE.cjs +146 -0
  205. package/dist/chunk-ULWRNGGE.cjs.map +1 -0
  206. package/dist/chunk-UTWX2X2A.js +165 -0
  207. package/dist/chunk-UTWX2X2A.js.map +1 -0
  208. package/dist/chunk-UWGIB3VQ.js +64 -0
  209. package/dist/chunk-UWGIB3VQ.js.map +1 -0
  210. package/dist/chunk-V4ISCZJ7.cjs +207 -0
  211. package/dist/chunk-V4ISCZJ7.cjs.map +1 -0
  212. package/dist/chunk-VFUWWH52.cjs +83 -0
  213. package/dist/chunk-VFUWWH52.cjs.map +1 -0
  214. package/dist/chunk-VILAPTCB.js +259 -0
  215. package/dist/chunk-VILAPTCB.js.map +1 -0
  216. package/dist/chunk-VLCY46K6.cjs +82 -0
  217. package/dist/chunk-VLCY46K6.cjs.map +1 -0
  218. package/dist/chunk-VPPX5XUF.cjs +813 -0
  219. package/dist/chunk-VPPX5XUF.cjs.map +1 -0
  220. package/dist/chunk-WJMEXTVD.cjs +122 -0
  221. package/dist/chunk-WJMEXTVD.cjs.map +1 -0
  222. package/dist/chunk-WTNMWEBC.js +504 -0
  223. package/dist/chunk-WTNMWEBC.js.map +1 -0
  224. package/dist/chunk-WW6EOVZA.js +112 -0
  225. package/dist/chunk-WW6EOVZA.js.map +1 -0
  226. package/dist/chunk-XNBAXRY7.cjs +5673 -0
  227. package/dist/chunk-XNBAXRY7.cjs.map +1 -0
  228. package/dist/chunk-XQ7PKKDY.cjs +787 -0
  229. package/dist/chunk-XQ7PKKDY.cjs.map +1 -0
  230. package/dist/chunk-XZIYRKLW.cjs +347 -0
  231. package/dist/chunk-XZIYRKLW.cjs.map +1 -0
  232. package/dist/chunk-YBXCZEWS.js +187 -0
  233. package/dist/chunk-YBXCZEWS.js.map +1 -0
  234. package/dist/chunk-YDHO4AVL.js +16 -0
  235. package/dist/chunk-YDHO4AVL.js.map +1 -0
  236. package/dist/chunk-ZORQ5M3W.cjs +934 -0
  237. package/dist/chunk-ZORQ5M3W.cjs.map +1 -0
  238. package/dist/chunk-ZW6FPIFC.cjs +36 -0
  239. package/dist/chunk-ZW6FPIFC.cjs.map +1 -0
  240. package/dist/citations/CitationEditor.d.ts +58 -0
  241. package/dist/citations/PassagePill.d.ts +49 -0
  242. package/dist/citations/QuietMarks.d.ts +81 -0
  243. package/dist/citations/index.cjs +47 -0
  244. package/dist/citations/index.cjs.map +1 -0
  245. package/dist/citations/index.d.ts +3 -0
  246. package/dist/citations/index.js +6 -0
  247. package/dist/citations/index.js.map +1 -0
  248. package/dist/collaboration/contacts/AddContactsParts.d.ts +46 -0
  249. package/dist/collaboration/contacts/index.d.ts +1 -0
  250. package/dist/collaboration/direct-messages/DirectMessages.d.ts +33 -0
  251. package/dist/collaboration/direct-messages/DmParts.d.ts +139 -0
  252. package/dist/collaboration/direct-messages/index.d.ts +2 -0
  253. package/dist/collaboration/index.cjs +141 -0
  254. package/dist/collaboration/index.cjs.map +1 -0
  255. package/dist/collaboration/index.d.ts +5 -0
  256. package/dist/collaboration/index.js +8 -0
  257. package/dist/collaboration/index.js.map +1 -0
  258. package/dist/collaboration/mail/MailFolderTree.d.ts +34 -0
  259. package/dist/collaboration/mail/index.d.ts +2 -0
  260. package/dist/collaboration/mail/mailFolders.d.ts +25 -0
  261. package/dist/collaboration/members/WorkspaceMembers.d.ts +74 -0
  262. package/dist/collaboration/members/index.d.ts +1 -0
  263. package/dist/collaboration/sharing/ShareControl.d.ts +38 -0
  264. package/dist/collaboration/sharing/index.d.ts +1 -0
  265. package/dist/components/Accordion.d.ts +12 -0
  266. package/dist/components/ActionLink.d.ts +18 -0
  267. package/dist/components/AskBar.d.ts +48 -0
  268. package/dist/components/AvatarBlock.d.ts +9 -0
  269. package/dist/components/Banner.d.ts +12 -0
  270. package/dist/components/BlockImage.d.ts +18 -0
  271. package/dist/components/CTABanner.d.ts +17 -0
  272. package/dist/components/Callout.d.ts +9 -0
  273. package/dist/components/Chart.d.ts +27 -0
  274. package/dist/components/CollectionDetail.d.ts +23 -0
  275. package/dist/components/Columns.d.ts +11 -0
  276. package/dist/components/ContactForm.d.ts +42 -0
  277. package/dist/components/Container.d.ts +11 -0
  278. package/dist/components/DataTable.d.ts +47 -0
  279. package/dist/components/DataTableBlock.d.ts +26 -0
  280. package/dist/components/EmptyState.d.ts +11 -0
  281. package/dist/components/EntityChip.d.ts +24 -0
  282. package/dist/components/EntityIdentityBar.d.ts +90 -0
  283. package/dist/components/EntityTooltip.d.ts +43 -0
  284. package/dist/components/FAQ.d.ts +14 -0
  285. package/dist/components/FeatureGrid.d.ts +18 -0
  286. package/dist/components/Footer.d.ts +25 -0
  287. package/dist/components/Gallery.d.ts +15 -0
  288. package/dist/components/Hero.d.ts +35 -0
  289. package/dist/components/ListBlock.d.ts +10 -0
  290. package/dist/components/LogoCloud.d.ts +12 -0
  291. package/dist/components/MediaText.d.ts +15 -0
  292. package/dist/components/MemberAvatarStack.d.ts +36 -0
  293. package/dist/components/MetricCard.d.ts +28 -0
  294. package/dist/components/Navbar.d.ts +39 -0
  295. package/dist/components/PageHeader.d.ts +15 -0
  296. package/dist/components/PricingTable.d.ts +19 -0
  297. package/dist/components/RichTextBlock.d.ts +10 -0
  298. package/dist/components/SectionHeading.d.ts +11 -0
  299. package/dist/components/Spacer.d.ts +7 -0
  300. package/dist/components/StatGroup.d.ts +12 -0
  301. package/dist/components/Steps.d.ts +12 -0
  302. package/dist/components/Tabs.d.ts +15 -0
  303. package/dist/components/TeamGrid.d.ts +18 -0
  304. package/dist/components/Testimonial.d.ts +9 -0
  305. package/dist/components/TestimonialGrid.d.ts +13 -0
  306. package/dist/components/ToneBadge.d.ts +18 -0
  307. package/dist/components/Toolbar.d.ts +11 -0
  308. package/dist/components/UsageMeter.d.ts +21 -0
  309. package/dist/components/VideoEmbed.d.ts +16 -0
  310. package/dist/components/assetImage.d.ts +16 -0
  311. package/dist/components/assetResolver.d.ts +57 -0
  312. package/dist/components/blockLink.d.ts +26 -0
  313. package/dist/components/tones.d.ts +14 -0
  314. package/dist/connect/index.cjs +65 -0
  315. package/dist/connect/index.cjs.map +1 -0
  316. package/dist/connect/index.d.ts +8 -0
  317. package/dist/connect/index.js +28 -0
  318. package/dist/connect/index.js.map +1 -0
  319. package/dist/connection/ArbiAppProvider.d.ts +16 -0
  320. package/dist/connection/ConnectionProvider.d.ts +50 -0
  321. package/dist/connection/ai.d.ts +99 -0
  322. package/dist/connection/types.d.ts +54 -0
  323. package/dist/connection/useImageGen.d.ts +22 -0
  324. package/dist/facts/FactComposer.d.ts +75 -0
  325. package/dist/facts/FactDateInput.d.ts +34 -0
  326. package/dist/facts/FactLabelsCell.d.ts +35 -0
  327. package/dist/facts/FactPassages.d.ts +52 -0
  328. package/dist/facts/FactRowActions.d.ts +18 -0
  329. package/dist/facts/FactSearchParts.d.ts +80 -0
  330. package/dist/facts/FactSourceGroup.d.ts +26 -0
  331. package/dist/facts/FactTimelineViews.d.ts +37 -0
  332. package/dist/facts/FactsBulkBar.d.ts +53 -0
  333. package/dist/facts/FactsEmptyState.d.ts +38 -0
  334. package/dist/facts/FactsFieldsButton.d.ts +21 -0
  335. package/dist/facts/FactsFilterInput.d.ts +46 -0
  336. package/dist/facts/FactsTable.d.ts +28 -0
  337. package/dist/facts/FactsToolbar.d.ts +53 -0
  338. package/dist/facts/FactsViewToggle.d.ts +36 -0
  339. package/dist/facts/fact-date.d.ts +22 -0
  340. package/dist/facts/fact-text.d.ts +14 -0
  341. package/dist/facts/factColumns.d.ts +88 -0
  342. package/dist/facts/index.cjs +2372 -0
  343. package/dist/facts/index.cjs.map +1 -0
  344. package/dist/facts/index.d.ts +34 -0
  345. package/dist/facts/index.js +2316 -0
  346. package/dist/facts/index.js.map +1 -0
  347. package/dist/facts/timezone.d.ts +4 -0
  348. package/dist/files/AiReviewDialog.d.ts +77 -0
  349. package/dist/files/DocStatusIcon.d.ts +12 -0
  350. package/dist/files/DocumentGrid.d.ts +27 -0
  351. package/dist/files/Explorer.d.ts +10 -0
  352. package/dist/files/ExplorerSurface.d.ts +34 -0
  353. package/dist/files/ExplorerTile.d.ts +142 -0
  354. package/dist/files/ExportParts.d.ts +114 -0
  355. package/dist/files/FieldParts.d.ts +64 -0
  356. package/dist/files/FilesPage.d.ts +20 -0
  357. package/dist/files/FilesToolbar.d.ts +59 -0
  358. package/dist/files/FolderPicker.d.ts +82 -0
  359. package/dist/files/GridView.d.ts +59 -0
  360. package/dist/files/HtmlViewerParts.d.ts +183 -0
  361. package/dist/files/MoveToFolderDialog.d.ts +32 -0
  362. package/dist/files/RedlineParts.d.ts +72 -0
  363. package/dist/files/SelectionBar.d.ts +65 -0
  364. package/dist/files/StatusPill.d.ts +23 -0
  365. package/dist/files/TagPassagePanel.d.ts +60 -0
  366. package/dist/files/UploadDropzone.d.ts +33 -0
  367. package/dist/files/UploadFooter.d.ts +59 -0
  368. package/dist/files/UploadParts.d.ts +78 -0
  369. package/dist/files/UploadSources.d.ts +77 -0
  370. package/dist/files/VersionTimeline.d.ts +60 -0
  371. package/dist/files/ViewToggle.d.ts +49 -0
  372. package/dist/files/ViewerChrome.d.ts +155 -0
  373. package/dist/files/ViewerLayout.d.ts +32 -0
  374. package/dist/files/ViewerParts.d.ts +62 -0
  375. package/dist/files/bulk/BulkActionsBar.d.ts +76 -0
  376. package/dist/files/bulk/FolderFilterButton.d.ts +35 -0
  377. package/dist/files/bulk/index.d.ts +2 -0
  378. package/dist/files/cells/DocumentNameCell.d.ts +31 -0
  379. package/dist/files/cells/FolderCell.d.ts +25 -0
  380. package/dist/files/cells/HoverIconCell.d.ts +21 -0
  381. package/dist/files/cells/LabelMultiSelect.d.ts +50 -0
  382. package/dist/files/cells/RelatedDocsCell.d.ts +22 -0
  383. package/dist/files/cells/TagColumnParts.d.ts +29 -0
  384. package/dist/files/cells/index.d.ts +6 -0
  385. package/dist/files/documentGridLayout.d.ts +31 -0
  386. package/dist/files/grid-test-ids.d.ts +18 -0
  387. package/dist/files/import/CalendarImportRow.d.ts +26 -0
  388. package/dist/files/import/ImportParts.d.ts +114 -0
  389. package/dist/files/import/TaskSection.d.ts +51 -0
  390. package/dist/files/import/UrlInputDialogView.d.ts +63 -0
  391. package/dist/files/import/VendorLogo.d.ts +15 -0
  392. package/dist/files/import/index.d.ts +5 -0
  393. package/dist/files/index.cjs +7589 -0
  394. package/dist/files/index.cjs.map +1 -0
  395. package/dist/files/index.d.ts +34 -0
  396. package/dist/files/index.js +7374 -0
  397. package/dist/files/index.js.map +1 -0
  398. package/dist/files/page/FilesAddMenu.d.ts +30 -0
  399. package/dist/files/page/FilesPageParts.d.ts +24 -0
  400. package/dist/files/page/FilesPageTitle.d.ts +24 -0
  401. package/dist/files/page/index.d.ts +3 -0
  402. package/dist/files/tags/BulkTagEditor.d.ts +136 -0
  403. package/dist/files/tags/DocTagPopover.d.ts +113 -0
  404. package/dist/files/tags/TagManager.d.ts +54 -0
  405. package/dist/files/tags/index.d.ts +3 -0
  406. package/dist/files/views/FieldsEditorParts.d.ts +151 -0
  407. package/dist/files/views/FieldsManagerParts.d.ts +17 -0
  408. package/dist/files/views/TagFormParts.d.ts +109 -0
  409. package/dist/files/views/ViewSelectorMenu.d.ts +66 -0
  410. package/dist/files/views/fieldsEditorModel.d.ts +43 -0
  411. package/dist/files/views/index.d.ts +5 -0
  412. package/dist/home/ActionMenuDialog.d.ts +26 -0
  413. package/dist/home/AddFilesFirst.d.ts +22 -0
  414. package/dist/home/CardHeaderBar.d.ts +40 -0
  415. package/dist/home/CollapsibleSection.d.ts +43 -0
  416. package/dist/home/CreateTile.d.ts +17 -0
  417. package/dist/home/DashboardParts.d.ts +32 -0
  418. package/dist/home/FactsStrip.d.ts +41 -0
  419. package/dist/home/FoldSection.d.ts +19 -0
  420. package/dist/home/GettingStartedStrip.d.ts +49 -0
  421. package/dist/home/Greeting.d.ts +18 -0
  422. package/dist/home/HomeLayout.d.ts +28 -0
  423. package/dist/home/KeyValueRow.d.ts +43 -0
  424. package/dist/home/ProjectBandParts.d.ts +70 -0
  425. package/dist/home/QuickActionDialogHeader.d.ts +21 -0
  426. package/dist/home/RecentList.d.ts +48 -0
  427. package/dist/home/ScopePicker.d.ts +65 -0
  428. package/dist/home/StartTiles.d.ts +33 -0
  429. package/dist/home/index.cjs +854 -0
  430. package/dist/home/index.cjs.map +1 -0
  431. package/dist/home/index.d.ts +37 -0
  432. package/dist/home/index.js +763 -0
  433. package/dist/home/index.js.map +1 -0
  434. package/dist/home/sections.d.ts +33 -0
  435. package/dist/index.cjs +1932 -5547
  436. package/dist/index.cjs.map +1 -1
  437. package/dist/index.d.ts +71 -1716
  438. package/dist/index.js +142 -5316
  439. package/dist/index.js.map +1 -1
  440. package/dist/lib/balanced-columns.d.ts +8 -0
  441. package/dist/lib/format.d.ts +37 -0
  442. package/dist/lib/observe-resize.d.ts +6 -0
  443. package/dist/lib/password-strength.d.ts +24 -0
  444. package/dist/lib/sidebar-mode.d.ts +46 -0
  445. package/dist/lib/testid.d.ts +7 -0
  446. package/dist/lib/use-drawer.d.ts +11 -0
  447. package/dist/lib/useControllableState.d.ts +5 -0
  448. package/dist/lib/useDismissibleCard.d.ts +15 -0
  449. package/dist/lib/useListKeyNav.d.ts +42 -0
  450. package/dist/lib/useLongPaste.d.ts +15 -0
  451. package/dist/lib/useRestoreFocus.d.ts +11 -0
  452. package/dist/lib/useScopeSelection.d.ts +34 -0
  453. package/dist/nav/types.d.ts +19 -0
  454. package/dist/provider/BlocksProvider.d.ts +20 -0
  455. package/dist/provider/TooltipScope.d.ts +9 -0
  456. package/dist/record/index.cjs +2 -4
  457. package/dist/record/index.cjs.map +1 -1
  458. package/dist/record/index.d.ts +12 -16
  459. package/dist/record/index.js +2 -4
  460. package/dist/record/index.js.map +1 -1
  461. package/dist/retrieval/HighlightText.d.ts +21 -0
  462. package/dist/retrieval/SearchEmptyState.d.ts +39 -0
  463. package/dist/retrieval/SearchGroupHeader.d.ts +21 -0
  464. package/dist/retrieval/SearchHit.d.ts +36 -0
  465. package/dist/retrieval/SearchPage.d.ts +187 -0
  466. package/dist/retrieval/SearchPagination.d.ts +21 -0
  467. package/dist/retrieval/highlight.d.ts +21 -0
  468. package/dist/retrieval/index.cjs +160 -0
  469. package/dist/retrieval/index.cjs.map +1 -0
  470. package/dist/retrieval/index.d.ts +7 -0
  471. package/dist/retrieval/index.js +7 -0
  472. package/dist/retrieval/index.js.map +1 -0
  473. package/dist/settings/AccountDialogs.d.ts +89 -0
  474. package/dist/settings/AvatarPicker.d.ts +25 -0
  475. package/dist/settings/Billing.d.ts +113 -0
  476. package/dist/settings/ConfigSwitcherBar.d.ts +46 -0
  477. package/dist/settings/ConfirmDialog.d.ts +28 -0
  478. package/dist/settings/ConnectionCard.d.ts +58 -0
  479. package/dist/settings/ConversationSettingsParts.d.ts +53 -0
  480. package/dist/settings/DocumentPicker.d.ts +57 -0
  481. package/dist/settings/EmailWorkspaceDialogView.d.ts +60 -0
  482. package/dist/settings/ErrorDialog.d.ts +36 -0
  483. package/dist/settings/FloatingPanel.d.ts +32 -0
  484. package/dist/settings/JsonTree.d.ts +24 -0
  485. package/dist/settings/LogoutDialog.d.ts +51 -0
  486. package/dist/settings/ModalBreadcrumbHeader.d.ts +32 -0
  487. package/dist/settings/ModalScaffold.d.ts +60 -0
  488. package/dist/settings/MultiSelect.d.ts +111 -0
  489. package/dist/settings/NotificationCategoryList.d.ts +26 -0
  490. package/dist/settings/PanelFrame.d.ts +47 -0
  491. package/dist/settings/PasswordChangeDialog.d.ts +64 -0
  492. package/dist/settings/PlanBadge.d.ts +14 -0
  493. package/dist/settings/PlanCard.d.ts +97 -0
  494. package/dist/settings/PremiumModelsFrame.d.ts +17 -0
  495. package/dist/settings/ProfileCard.d.ts +67 -0
  496. package/dist/settings/Projects.d.ts +108 -0
  497. package/dist/settings/QuotaMeter.d.ts +31 -0
  498. package/dist/settings/ReferralCredit.d.ts +46 -0
  499. package/dist/settings/SegmentedControl.d.ts +20 -0
  500. package/dist/settings/ServerConnectionControls.d.ts +31 -0
  501. package/dist/settings/SettingsPanel.d.ts +61 -0
  502. package/dist/settings/SettingsSwitchRow.d.ts +21 -0
  503. package/dist/settings/SubscriptionParts.d.ts +215 -0
  504. package/dist/settings/SupportPanel.d.ts +32 -0
  505. package/dist/settings/SyncDialogParts.d.ts +155 -0
  506. package/dist/settings/ThreadPreviewDialog.d.ts +18 -0
  507. package/dist/settings/TipsEditorDialog.d.ts +94 -0
  508. package/dist/settings/TriStateFilterMenu.d.ts +66 -0
  509. package/dist/settings/Usage.d.ts +102 -0
  510. package/dist/settings/WelcomeDialog.d.ts +79 -0
  511. package/dist/settings/index.cjs +5131 -0
  512. package/dist/settings/index.cjs.map +1 -0
  513. package/dist/settings/index.d.ts +38 -0
  514. package/dist/settings/index.js +4922 -0
  515. package/dist/settings/index.js.map +1 -0
  516. package/dist/shell/ActionCluster.d.ts +28 -0
  517. package/dist/shell/AskField.d.ts +71 -0
  518. package/dist/shell/InfoBar.d.ts +20 -0
  519. package/dist/shell/MobileBars.d.ts +47 -0
  520. package/dist/shell/OfflinePill.d.ts +28 -0
  521. package/dist/shell/RemoteControlPill.d.ts +23 -0
  522. package/dist/shell/Shell.d.ts +123 -0
  523. package/dist/shell/Sidebar.d.ts +104 -0
  524. package/dist/shell/SidebarBadgeRow.d.ts +29 -0
  525. package/dist/shell/SidebarRowAction.d.ts +24 -0
  526. package/dist/shell/StatusRow.d.ts +20 -0
  527. package/dist/shell/TabHeader.d.ts +70 -0
  528. package/dist/shell/TipCard.d.ts +46 -0
  529. package/dist/shell/ToolButton.d.ts +12 -0
  530. package/dist/shell/Workspace.d.ts +90 -0
  531. package/dist/shell/index.cjs +187 -0
  532. package/dist/shell/index.cjs.map +1 -0
  533. package/dist/shell/index.d.ts +20 -0
  534. package/dist/shell/index.js +10 -0
  535. package/dist/shell/index.js.map +1 -0
  536. package/dist/shell/sidebar-context.d.ts +19 -0
  537. package/dist/shell/types.d.ts +48 -0
  538. package/dist/site/index.cjs +113 -90
  539. package/dist/site/index.d.ts +59 -4
  540. package/dist/site/index.js +8 -1
  541. package/dist/studio/PageRenderer.d.ts +35 -0
  542. package/dist/studio/Section.d.ts +24 -0
  543. package/dist/studio/StudioEditor.d.ts +32 -0
  544. package/dist/studio/aiFields.d.ts +17 -0
  545. package/dist/studio/blockKit.d.ts +36 -0
  546. package/dist/studio/blocksConfig.d.ts +42 -0
  547. package/dist/studio/imageFields.d.ts +14 -0
  548. package/dist/studio/index.cjs +3353 -0
  549. package/dist/studio/index.cjs.map +1 -0
  550. package/dist/studio/index.d.ts +32 -0
  551. package/dist/studio/index.js +3297 -0
  552. package/dist/studio/index.js.map +1 -0
  553. package/dist/studio/liveData.d.ts +4 -0
  554. package/dist/studio/liveWidgetRuntime.d.ts +41 -0
  555. package/dist/studio/persistence.d.ts +38 -0
  556. package/dist/studio/publish.d.ts +39 -0
  557. package/dist/studio/siteBlocks.d.ts +14 -0
  558. package/dist/studio/types.d.ts +46 -0
  559. package/dist/studio/websiteBlocks.d.ts +4 -0
  560. package/dist/studio/widgets.d.ts +20 -0
  561. package/dist/theme/ThemeEditor.d.ts +16 -0
  562. package/dist/theme/fontPairings.d.ts +48 -0
  563. package/dist/theme/store.d.ts +53 -0
  564. package/dist/theme/tokens.d.ts +105 -0
  565. package/dist/timeline/Timeline.d.ts +27 -0
  566. package/dist/timeline/TimelineCalendar.d.ts +54 -0
  567. package/dist/timeline/TimelineGantt.d.ts +71 -0
  568. package/dist/timeline/TimelineZoomControl.d.ts +17 -0
  569. package/dist/timeline/index.cjs +50 -0
  570. package/dist/timeline/index.cjs.map +1 -0
  571. package/dist/timeline/index.d.ts +13 -0
  572. package/dist/timeline/index.js +5 -0
  573. package/dist/timeline/index.js.map +1 -0
  574. package/dist/timeline/span.d.ts +29 -0
  575. package/dist/timeline/types.d.ts +30 -0
  576. package/dist/workspaces/WorkspaceBadges.d.ts +27 -0
  577. package/dist/workspaces/WorkspaceCard.d.ts +142 -0
  578. package/dist/workspaces/WorkspaceFormParts.d.ts +98 -0
  579. package/dist/workspaces/WorkspaceGroup.d.ts +31 -0
  580. package/dist/workspaces/WorkspaceSettingsParts.d.ts +70 -0
  581. package/dist/workspaces/index.cjs +690 -0
  582. package/dist/workspaces/index.cjs.map +1 -0
  583. package/dist/workspaces/index.d.ts +9 -0
  584. package/dist/workspaces/index.js +661 -0
  585. package/dist/workspaces/index.js.map +1 -0
  586. package/package.json +164 -9
  587. package/src/blocks.css +348 -0
  588. package/src/components/grid.css +60 -107
  589. package/src/source.css +20 -0
  590. package/src/studio/studio.css +3 -3
  591. package/src/tokens.css +226 -0
  592. package/dist/chunk-DBAUZD7A.cjs.map +0 -1
  593. package/dist/chunk-FZ2S6VAZ.js.map +0 -1
  594. package/dist/index-DduoEosi.d.cts +0 -846
  595. package/dist/index-DduoEosi.d.ts +0 -846
  596. package/dist/index.d.cts +0 -1717
  597. package/dist/record/index.d.cts +0 -96
  598. package/dist/site/index.d.cts +0 -4
package/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # @arbidocs/blocks
2
+
3
+ Composable, domain-neutral React UI blocks for ARBI apps: grounded chat, citations, retrieval,
4
+ documents, facts, agents, workspaces, collaboration, auth, settings and an app shell, on top of
5
+ `@arbidocs/react`. Parts are presentational: view-models and slots in, callbacks out. No router,
6
+ store, query client or SDK call is baked in.
7
+
8
+ ## Install
9
+
10
+ ```sh
11
+ npm install @arbidocs/blocks @arbidocs/react react react-dom
12
+ ```
13
+
14
+ `@arbidocs/react` is a **peer dependency**. It holds the React context the blocks read
15
+ (`useArbi`), so the host and the blocks must resolve to one copy of it. Install it yourself at the
16
+ same version as `@arbidocs/blocks`.
17
+
18
+ Optional peers, only needed for the entry that uses them:
19
+
20
+ | Peer | Needed by |
21
+ | --- | --- |
22
+ | `@tanstack/react-query` | `@arbidocs/blocks/connect`, `@arbidocs/blocks/studio` |
23
+ | `react-router-dom` | `@arbidocs/blocks/studio` |
24
+ | `@measured/puck` | `@arbidocs/blocks/studio` |
25
+ | `@playwright/test` | types of `@arbidocs/blocks/record` (no runtime import) |
26
+
27
+ React 18 and 19 are supported. Every UI entry carries a `"use client"` directive, so it can be
28
+ imported from a Next.js App Router Server Component file.
29
+
30
+ ## Styles (read this: without it the blocks render unstyled)
31
+
32
+ The blocks are styled with Tailwind v4 utilities. Tailwind skips `node_modules` when it scans for
33
+ class names, so you must point it at the package. Order matters:
34
+
35
+ ```css
36
+ /* app.css */
37
+ @import '@arbidocs/blocks/tokens.css'; /* 1. token defaults, light + dark */
38
+ @import '@arbidocs/blocks/blocks.css'; /* 2. blocks helpers (declares the layer order) */
39
+ @import '@arbidocs/blocks/grid.css'; /* only if you use /files or /facts */
40
+ @import 'tailwindcss'; /* 3. Tailwind */
41
+ @import '@arbidocs/blocks/source.css'; /* 4. tells Tailwind to scan blocks' AND react's dist */
42
+ ```
43
+
44
+ `source.css` contains `@source` lines for the blocks' `dist` **and** `@arbidocs/react`'s `dist`
45
+ (`../../react/dist` from `node_modules/@arbidocs/blocks/src`, `../../arbi-react/dist` in this
46
+ monorepo). The react half matters: Dialog, Popover and the other primitives are defined in
47
+ `@arbidocs/react`, and utilities such as `left-[50%]` only exist in its compiled output, so
48
+ without it dialogs render off-screen. If your bundler resolves those paths differently, write the
49
+ lines yourself, relative to your stylesheet:
50
+
51
+ ```css
52
+ @source '../node_modules/@arbidocs/blocks/dist';
53
+ @source '../node_modules/@arbidocs/react/dist';
54
+ ```
55
+
56
+ Tailwind 4.1 or later is required (the `pointer-coarse:` variant). Dark mode is the `.dark` class
57
+ or `[data-theme='dark']` on a parent. Studio pages also import `@arbidocs/blocks/studio.css`.
58
+
59
+ ## Import from a subpath
60
+
61
+ Every capability is its own entry, so a bundler only loads what you use:
62
+
63
+ | Entry | What | Heavy dependency |
64
+ | --- | --- | --- |
65
+ | `@arbidocs/blocks` | Light root: theme, primitives, chat, shell, auth, retrieval, agents, citations, collaboration, site blocks | none (zustand, dompurify) |
66
+ | `/chat`, `/shell`, `/auth`, `/retrieval`, `/citations`, `/collaboration`, `/agents`, `/timeline`, `/site` | one capability each | none |
67
+ | `/files`, `/facts` | document grid, facts table | `ag-grid-*` |
68
+ | `/home`, `/workspaces` | dashboard, workspace cards and forms | `@dnd-kit/*` |
69
+ | `/settings` | settings, billing, modals | `cmdk` |
70
+ | `/connect` | demo/live connection layer | `@tanstack/react-query` |
71
+ | `/studio` | Puck page builder | `@measured/puck`, router, React Query |
72
+ | `/record` | Playwright demo-recording helpers | none at runtime |
73
+
74
+ The root barrel does not re-export the heavy areas on purpose. See `docs/design/blocks-package.md`
75
+ in the repository for per-entry sizes.
76
+
77
+ ## Use
78
+
79
+ ```tsx
80
+ import { BlocksProvider } from '@arbidocs/blocks'
81
+ import { PassagePill } from '@arbidocs/blocks/citations'
82
+
83
+ <BlocksProvider linkComponent={RouterLink} navigate={go} notify={toast}>
84
+ <PassagePill icon={<DocIcon />} documentTitle="Contract" pageNumber={3} passageIndex={4} href={url} />
85
+ </BlocksProvider>
86
+ ```
87
+
88
+ - `BlocksProvider` is optional; every field has a default. Without `notify`, success and failure
89
+ messages (for example "link copied") go nowhere, so wire it to a toast region
90
+ (`role="status"` for success, `role="alert"` for errors).
91
+ - Fixed text is a typed `labels` prop with exported `DEFAULT_*_LABELS`; test ids are overridable
92
+ through `testId` / `testIds`.
93
+ - Parts are not polymorphic: `asChild` exists only where a part documents it.
94
+
95
+ ## Workspace isolation
96
+
97
+ Blocks hold no keys and do no crypto. Parts take the data of one workspace and never merge data
98
+ across workspaces. The few places that persist something locally (Studio local storage, the last
99
+ selected workspace in `/connect`) are scoped per user (and workspace) and fail loudly instead of
100
+ falling back to unscoped plaintext storage.
@@ -0,0 +1,79 @@
1
+ import { type ReactNode } from 'react';
2
+ /** Every fixed string of the agent modal. */
3
+ export interface AuthorizeAgentLabels {
4
+ editIntro: (agentName: string) => string;
5
+ mainIntro: string;
6
+ noAssistant: string;
7
+ connectExternal: string;
8
+ optional: string;
9
+ createdIntro: string;
10
+ email: string;
11
+ signingKey: string;
12
+ configure: string;
13
+ hideConfiguration: string;
14
+ done: string;
15
+ backToMain: string;
16
+ connectIntro: string;
17
+ name: string;
18
+ namePlaceholder: string;
19
+ nameHint: string;
20
+ workspaces: string;
21
+ workspacesPlaceholder: string;
22
+ roleTitle: string;
23
+ collaborator: string;
24
+ guest: string;
25
+ cancel: string;
26
+ create: string;
27
+ creating: string;
28
+ }
29
+ export declare const DEFAULT_AUTHORIZE_AGENT_LABELS: AuthorizeAgentLabels;
30
+ export interface AgentEditViewProps {
31
+ agentName: string;
32
+ /** The agent's config editor (host component: it owns the data). */
33
+ config: ReactNode;
34
+ labels?: Partial<AuthorizeAgentLabels>;
35
+ }
36
+ /** Edit variant: straight into the config editor of an existing agent. */
37
+ export declare function AgentEditView({ agentName, config, labels }: AgentEditViewProps): import("react").JSX.Element;
38
+ export interface AgentMainViewProps {
39
+ /** The main assistant's config editor; omit when no assistant exists yet. */
40
+ config?: ReactNode;
41
+ onConnectExternal: () => void;
42
+ labels?: Partial<AuthorizeAgentLabels>;
43
+ }
44
+ /** Primary view: configure the main assistant; connecting an external agent is secondary. */
45
+ export declare function AgentMainView({ config, onConnectExternal, labels }: AgentMainViewProps): import("react").JSX.Element;
46
+ export interface AgentCreatedViewProps {
47
+ email: string;
48
+ signingKey: string;
49
+ /** Connection instructions (host component). */
50
+ instructions: ReactNode;
51
+ /** The inline config editor, rendered while `isConfigOpen`. */
52
+ config: ReactNode;
53
+ isConfigOpen: boolean;
54
+ onToggleConfig: () => void;
55
+ onDone: () => void;
56
+ labels?: Partial<AuthorizeAgentLabels>;
57
+ }
58
+ /** After creating an external agent: the one-time signing key, instructions, optional config. */
59
+ export declare function AgentCreatedView({ email, signingKey, instructions, config, isConfigOpen, onToggleConfig, onDone, labels, }: AgentCreatedViewProps): import("react").JSX.Element;
60
+ export type AgentWorkspaceRole = 'collaborator' | 'guest';
61
+ export interface AgentCreateViewProps {
62
+ name: string;
63
+ onNameChange: (name: string) => void;
64
+ workspaces: {
65
+ id: string;
66
+ name: string;
67
+ }[];
68
+ selectedWorkspaces: string[];
69
+ onSelectedWorkspacesChange: (ids: string[]) => void;
70
+ role: AgentWorkspaceRole;
71
+ onRoleChange: (role: AgentWorkspaceRole) => void;
72
+ isSubmitting: boolean;
73
+ onBack: () => void;
74
+ onCancel: () => void;
75
+ onCreate: () => void;
76
+ labels?: Partial<AuthorizeAgentLabels>;
77
+ }
78
+ /** Form to create an external agent: name, optional workspaces to share, role. */
79
+ export declare function AgentCreateView({ name, onNameChange, workspaces, selectedWorkspaces, onSelectedWorkspacesChange, role, onRoleChange, isSubmitting, onBack, onCancel, onCreate, labels, }: AgentCreateViewProps): import("react").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ConsentActionsLabels {
3
+ deny: string;
4
+ allow: string;
5
+ loading: string;
6
+ }
7
+ export declare const DEFAULT_CONSENT_ACTIONS_LABELS: ConsentActionsLabels;
8
+ export interface CopyableUrlLabels {
9
+ copy: string;
10
+ copied: string;
11
+ }
12
+ export declare const DEFAULT_COPYABLE_URL_LABELS: CopyableUrlLabels;
13
+ /** Full-screen centered stage for a consent / authorization card. */
14
+ export declare function ConsentPage({ children, className, testId, ...rest }: {
15
+ children: ReactNode;
16
+ className?: string;
17
+ testId?: string;
18
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'className'>): import("react").JSX.Element;
19
+ declare const CARD_WIDTH: {
20
+ readonly sm: "max-w-sm";
21
+ readonly md: "max-w-md";
22
+ };
23
+ /** The grouping tile holding a consent flow's sections. */
24
+ export declare function ConsentCard({ children, size, className, ...rest }: {
25
+ children: ReactNode;
26
+ size?: keyof typeof CARD_WIDTH;
27
+ className?: string;
28
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'className'>): import("react").JSX.Element;
29
+ /** Icon + title + description block at the top of a card. */
30
+ export declare function ConsentHeader({ icon, title, children, }: {
31
+ /** Icon (or logo) shown above (default) or beside the title. */
32
+ icon?: ReactNode;
33
+ title: ReactNode;
34
+ /** Description paragraph content. */
35
+ children?: ReactNode;
36
+ }): import("react").JSX.Element;
37
+ /** Titled section of a consent card (e.g. "This will allow"). */
38
+ export declare function ConsentSection({ title, children }: {
39
+ title: string;
40
+ children: ReactNode;
41
+ }): import("react").JSX.Element;
42
+ /** Checkmarked list of permissions. */
43
+ export declare function ConsentPermissionList({ items }: {
44
+ items: ReactNode[];
45
+ }): import("react").JSX.Element;
46
+ declare const NOTICE_TONES: {
47
+ readonly error: "bg-destructive/10 text-destructive";
48
+ readonly success: "bg-green-bg text-green-text";
49
+ readonly warning: "bg-yellow-bg text-yellow-text";
50
+ };
51
+ /** Tinted inline notice (no box border): error, success or warning. */
52
+ export declare function ConsentNotice({ tone, title, children, className, }: {
53
+ tone: keyof typeof NOTICE_TONES;
54
+ title?: string;
55
+ children?: ReactNode;
56
+ className?: string;
57
+ }): import("react").JSX.Element;
58
+ /** Deny / Allow footer; Allow is the single primary action. */
59
+ export declare function ConsentActions({ onDeny, onAllow, isLoading, denyLabel, allowLabel, loadingLabel, labels, }: {
60
+ onDeny: () => void;
61
+ onAllow: () => void;
62
+ isLoading?: boolean;
63
+ denyLabel?: string;
64
+ allowLabel?: string;
65
+ loadingLabel?: string;
66
+ /** Bundle form of the three label props; the single-string props win. */
67
+ labels?: Partial<ConsentActionsLabels>;
68
+ }): import("react").JSX.Element;
69
+ /** Read-only URL with a copy button (clipboard handled by the caller). */
70
+ export declare function CopyableUrl({ url, copied, onCopy, labels, }: {
71
+ url: string;
72
+ copied: boolean;
73
+ onCopy: () => void;
74
+ labels?: Partial<CopyableUrlLabels>;
75
+ }): import("react").JSX.Element;
76
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { ReactNode } from 'react';
2
+ declare const MESSAGE_TONES: {
3
+ readonly error: {
4
+ readonly card: "p-6";
5
+ readonly title: "mb-2 text-destructive";
6
+ readonly body: "text-muted-foreground";
7
+ };
8
+ readonly warning: {
9
+ readonly card: "bg-yellow-bg px-6 py-8";
10
+ readonly title: "text-yellow-text";
11
+ readonly body: "mt-2 text-yellow-text";
12
+ };
13
+ };
14
+ /** A card that only says something (an invalid request, "close this tab"): title and a message. */
15
+ export declare function ConsentMessage({ tone, title, children, }: {
16
+ tone: keyof typeof MESSAGE_TONES;
17
+ title: string;
18
+ children: ReactNode;
19
+ }): import("react").JSX.Element;
20
+ /** Bulleted list of what is being agreed to; each item can carry bold lead-in text. */
21
+ export declare function ConsentBulletList({ items }: {
22
+ items: ReactNode[];
23
+ }): import("react").JSX.Element;
24
+ /** Paragraph of a consent card: `body` explains, `footnote` is small print under an action. */
25
+ export declare function ConsentText({ variant, children, }: {
26
+ variant?: 'body' | 'footnote' | 'hint';
27
+ children: ReactNode;
28
+ }): import("react").JSX.Element;
29
+ /** Small print under the actions of a card, centred in the card's padding. */
30
+ export declare function ConsentFootnote({ children }: {
31
+ children: ReactNode;
32
+ }): import("react").JSX.Element;
33
+ /** Emphasised lead-in inside running text ("**Read files** — lets…"). */
34
+ export declare function ConsentStrong({ children }: {
35
+ children: ReactNode;
36
+ }): import("react").JSX.Element;
37
+ export {};
@@ -0,0 +1,3 @@
1
+ export { ConsentMessage, ConsentBulletList, ConsentText, ConsentFootnote, ConsentStrong, } from './ConsentParts';
2
+ export { ConsentPage, ConsentCard, ConsentHeader, ConsentSection, ConsentPermissionList, ConsentNotice, ConsentActions, CopyableUrl, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, type ConsentActionsLabels, type CopyableUrlLabels, } from './ConsentPage';
3
+ export { AgentEditView, AgentMainView, AgentCreatedView, AgentCreateView, DEFAULT_AUTHORIZE_AGENT_LABELS, type AuthorizeAgentLabels, type AgentEditViewProps, type AgentMainViewProps, type AgentCreatedViewProps, type AgentCreateViewProps, type AgentWorkspaceRole, } from './AuthorizeAgentParts';
@@ -0,0 +1,43 @@
1
+ /** One config field, rendered from its schema type. Memoized independently. */
2
+ import { type ReactNode } from 'react';
3
+ import { type TupleArrayFieldLabels } from './TupleArrayField';
4
+ import { type SchemaProperty } from './schema-utils';
5
+ export interface ConfigFieldLabels extends TupleArrayFieldLabels {
6
+ editAsFields: string;
7
+ editAsJson: string;
8
+ jsonPlaceholder: string;
9
+ /** Select placeholder; receives the lower-cased field label. */
10
+ selectPlaceholder: (label: string) => string;
11
+ /** Text input placeholder; receives the lower-cased field label. */
12
+ enterPlaceholder: (label: string) => string;
13
+ /** Out-of-range hint; receives the range text (`1–5`, `≥ 1`, `≤ 5`). */
14
+ allowedRange: (range: string) => string;
15
+ /** Out-of-range notification; `range` may be empty. */
16
+ outOfRange: (label: string, range: string, value: unknown) => string;
17
+ }
18
+ export declare const DEFAULT_CONFIG_FIELD_LABELS: ConfigFieldLabels;
19
+ export interface ConfigFieldTestIds {
20
+ /** Test id of a boolean/number control; default `config-field-{section}-{field with dots as dashes}`. */
21
+ field: (section: string, fieldName: string) => string;
22
+ /** Test id of the object "Edit as JSON" toggle; default `config-json-toggle-{fieldId}`. */
23
+ jsonToggle: (fieldId: string) => string;
24
+ }
25
+ export interface ConfigFieldSlots {
26
+ /** Custom control for the QueryLLM MODEL_NAME field (the app supplies its model picker). */
27
+ renderModelSelect?: (props: {
28
+ value: string;
29
+ onChange: (value: string) => void;
30
+ }) => ReactNode;
31
+ }
32
+ export interface ConfigFieldProps extends ConfigFieldSlots {
33
+ section: string;
34
+ fieldName: string;
35
+ fieldSchema: SchemaProperty;
36
+ value: any;
37
+ onChange: (section: string, field: string, value: any) => void;
38
+ labels?: Partial<ConfigFieldLabels>;
39
+ testIds?: Partial<ConfigFieldTestIds>;
40
+ }
41
+ declare function ConfigFieldComponent({ section, fieldName, fieldSchema, value, onChange, renderModelSelect, labels, testIds, }: ConfigFieldProps): import("react").JSX.Element | undefined;
42
+ export declare const ConfigField: import("react").MemoExoticComponent<typeof ConfigFieldComponent>;
43
+ export {};
@@ -0,0 +1,35 @@
1
+ /**
2
+ * ConfigForm: renders a backend JSON-schema config as collapsible sections of typed fields
3
+ * (switches, numbers, selects, prompts, tuples, nested objects).
4
+ */
5
+ import { type ConfigFieldLabels, type ConfigFieldSlots, type ConfigFieldTestIds } from './ConfigField';
6
+ export interface ConfigFormLabels extends ConfigFieldLabels {
7
+ collapseAll: string;
8
+ expandAll: string;
9
+ enabled: string;
10
+ disabled: string;
11
+ }
12
+ export declare const DEFAULT_CONFIG_FORM_LABELS: ConfigFormLabels;
13
+ export interface ConfigFormTestIds extends ConfigFieldTestIds {
14
+ form: string;
15
+ toggleAll: string;
16
+ /** Default `config-section-{name}`. */
17
+ section: (name: string) => string;
18
+ /** Default `config-section-toggle-{name}`. */
19
+ sectionToggle: (name: string) => string;
20
+ /** Default `config-section-enabled-toggle-{name}`. */
21
+ sectionEnabled: (name: string) => string;
22
+ }
23
+ export interface ConfigFormProps extends ConfigFieldSlots {
24
+ /** Section name -> JSON schema ({ properties }). */
25
+ schema: Record<string, any>;
26
+ /** Current values: section -> field -> value. */
27
+ values: Record<string, any>;
28
+ onChange: (section: string, field: string, value: any) => void;
29
+ labels?: Partial<ConfigFormLabels>;
30
+ testIds?: Partial<ConfigFormTestIds>;
31
+ className?: string;
32
+ }
33
+ declare function ConfigFormComponent({ schema, values, onChange, renderModelSelect, labels, testIds, className, }: ConfigFormProps): import("react").JSX.Element;
34
+ export declare const ConfigForm: import("react").MemoExoticComponent<typeof ConfigFormComponent>;
35
+ export {};
@@ -0,0 +1,32 @@
1
+ /**
2
+ * TupleArrayField Component
3
+ *
4
+ * Specialized component for handling arrays of tuples, particularly for
5
+ * few-shot examples where each tuple contains multiple string elements.
6
+ * Displays in a clean table format for better organization.
7
+ */
8
+ export interface TupleArrayFieldLabels {
9
+ addRow: string;
10
+ empty: string;
11
+ jsonArrayPlaceholder: string;
12
+ /** Placeholder of one cell; receives the lower-cased column label. */
13
+ cellPlaceholder: (column: string) => string;
14
+ /** aria-label of the remove button; receives the 1-based row number. */
15
+ removeRow: (row: number) => string;
16
+ /** Column labels of 2-tuple few-shot examples. */
17
+ pairColumns: string[];
18
+ /** Column labels of 3-tuple few-shot examples. */
19
+ tripleColumns: string[];
20
+ /** Generic column label; receives the 1-based column number. */
21
+ column: (n: number) => string;
22
+ }
23
+ export declare const DEFAULT_TUPLE_ARRAY_FIELD_LABELS: TupleArrayFieldLabels;
24
+ export interface TupleArrayFieldProps {
25
+ fieldId: string;
26
+ label: string;
27
+ description?: string;
28
+ value: any;
29
+ onChange: (value: any) => void;
30
+ labels?: Partial<TupleArrayFieldLabels>;
31
+ }
32
+ export declare function TupleArrayField({ fieldId, label, description, value, onChange, labels, }: TupleArrayFieldProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { ConfigForm, DEFAULT_CONFIG_FORM_LABELS, type ConfigFormProps, type ConfigFormLabels, type ConfigFormTestIds, } from './ConfigForm';
2
+ export { ConfigField, DEFAULT_CONFIG_FIELD_LABELS, type ConfigFieldProps, type ConfigFieldSlots, type ConfigFieldLabels, type ConfigFieldTestIds, } from './ConfigField';
3
+ export { TupleArrayField, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, type TupleArrayFieldProps, type TupleArrayFieldLabels, } from './TupleArrayField';
4
+ export { humanizeSection, prettifyKey, inferType, isOutOfBounds, type SchemaProperty, } from './schema-utils';
@@ -0,0 +1,28 @@
1
+ /** Minimal JSON-schema property shape used by the config form. */
2
+ export interface SchemaProperty {
3
+ type?: string;
4
+ title?: string;
5
+ description?: string;
6
+ default?: any;
7
+ minimum?: number;
8
+ maximum?: number;
9
+ enum?: string[];
10
+ format?: string;
11
+ properties?: Record<string, SchemaProperty>;
12
+ }
13
+ /**
14
+ * Humanize a PascalCase / acronym section key into a normal-case title:
15
+ * "QueryLLM" -> "Query LLM", "DocTagLLM" -> "Doc Tag LLM", "Agents" -> "Agents".
16
+ */
17
+ export declare function humanizeSection(name: string): string;
18
+ /** A readable label from an UPPER_SNAKE / snake_case key: SAVE_SOURCES -> "Save sources". */
19
+ export declare function prettifyKey(key: string): string;
20
+ /** True for a non-null, non-array object, i.e. something we can render as fields. */
21
+ export declare function isPlainObject(val: unknown): val is Record<string, unknown>;
22
+ /**
23
+ * Best-effort JSON-schema `type` inferred from a raw value, so a nested config object the schema
24
+ * did not declare sub-properties for still renders as structured fields instead of raw JSON.
25
+ */
26
+ export declare function inferType(val: unknown): SchemaProperty['type'];
27
+ /** True when `value` is a number and lies outside [minimum, maximum]. */
28
+ export declare function isOutOfBounds(value: unknown, minimum?: number, maximum?: number): boolean;
@@ -0,0 +1,63 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AgentCardLabels {
3
+ running: string;
4
+ /** Pulse indicator aria-label. */
5
+ runningIndicator: string;
6
+ /** Chip text; receives the running count. */
7
+ runningCount: (count: number) => string;
8
+ /** Chip text; receives the task count (0 -> none yet). */
9
+ taskCount: (count: number) => string;
10
+ goalMet: (met: number, total: number) => string;
11
+ watch: string;
12
+ assignTask: string;
13
+ edit: string;
14
+ copyAddress: string;
15
+ deleteAgent: (name: string) => string;
16
+ }
17
+ export declare const DEFAULT_AGENT_CARD_LABELS: AgentCardLabels;
18
+ export interface AgentCardTestIds {
19
+ root: string;
20
+ watch: string;
21
+ assignTask: string;
22
+ edit: string;
23
+ copyAddress: string;
24
+ delete: string;
25
+ }
26
+ export interface AgentCardProps {
27
+ /** Display name; also the key in the test ids (`agent-card-{name}`, `agent-edit-{name}`...). */
28
+ name: string;
29
+ /** The agent's avatar (the app supplies its entity avatar). */
30
+ avatar: ReactNode;
31
+ /** Tasks currently running for this agent; shows a pulse + chip when > 0. */
32
+ runningCount: number;
33
+ /** All tasks assigned to this agent. */
34
+ taskCount: number;
35
+ /** Extra content under the chips (the app shows what the agent can access). */
36
+ details?: ReactNode;
37
+ /** Criteria progress of the agent's most recent goal task. */
38
+ goalProgress?: {
39
+ met: number;
40
+ total: number;
41
+ } | null;
42
+ /** When set, a Watch action opens the live run. */
43
+ onWatch?: () => void;
44
+ /** Each action is optional: the button is omitted when its handler is absent. */
45
+ onAssignTask?: () => void;
46
+ onEdit?: () => void;
47
+ /** When set, a ghost "Copy address" action copies the agent's address (it is not shown raw). */
48
+ onCopyAddress?: () => void;
49
+ onDelete?: () => void;
50
+ /**
51
+ * Destination of the agent; the name becomes a real link. `onSelect` fires on a plain click
52
+ * (modified clicks go to the browser).
53
+ */
54
+ href?: string;
55
+ onSelect?: () => void;
56
+ labels?: Partial<AgentCardLabels>;
57
+ /** Overrides for the default `agent-card-{name}` / `agent-watch-run-{name}` ... ids. */
58
+ testIds?: Partial<AgentCardTestIds>;
59
+ testId?: string;
60
+ className?: string;
61
+ }
62
+ /** One agent in the gallery: avatar, live task chips, and Watch / Assign task / Edit / Delete. */
63
+ export declare function AgentCard({ name, avatar, runningCount, taskCount, goalProgress, details, onWatch, onAssignTask, onEdit, onCopyAddress, onDelete, href, onSelect, labels, testIds, testId, className, ...rest }: AgentCardProps & Omit<HTMLAttributes<HTMLDivElement>, keyof AgentCardProps>): import("react").JSX.Element;
@@ -0,0 +1,118 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type LucideIcon } from 'lucide-react';
3
+ import type { AgentTypeOption } from './AgentEditorParts';
4
+ /** One thing an agent can be allowed to do (a tool toggle). */
5
+ export interface AgentCapability {
6
+ key: string;
7
+ label: string;
8
+ description: string;
9
+ icon: LucideIcon;
10
+ }
11
+ /** A starting point: a plain description plus the capabilities that go with it. */
12
+ export interface AgentTemplate {
13
+ id: string;
14
+ title: string;
15
+ description: string;
16
+ /** Becomes the agent's persona text. */
17
+ persona: string;
18
+ /** Capability keys switched on. */
19
+ capabilities: string[];
20
+ }
21
+ export interface AgentCreatorValues {
22
+ name: string;
23
+ persona: string;
24
+ capabilities: Record<string, boolean>;
25
+ modelName: string;
26
+ type: string;
27
+ /** Workspaces the agent may read (ids). Empty = none: isolation is the default. */
28
+ workspaceIds: string[];
29
+ }
30
+ export interface AgentCreatorLabels {
31
+ titleNew: string;
32
+ titleEdit: (name: string) => string;
33
+ descriptionNew: string;
34
+ descriptionEdit: string;
35
+ describe: string;
36
+ describePlaceholder: string;
37
+ describeHint: string;
38
+ startFrom: string;
39
+ summaryHeading: string;
40
+ /** "Can search the web, run code." */
41
+ summaryCan: (list: string) => string;
42
+ /** "Cannot generate images." */
43
+ summaryCannot: (list: string) => string;
44
+ summaryNone: string;
45
+ summaryModel: (model: string) => string;
46
+ summaryModelAuto: string;
47
+ /** "Reads workspaces A and B." */
48
+ summaryWorkspaces: (list: string) => string;
49
+ summaryNoWorkspaces: string;
50
+ /** "Will be called research-assistant." */
51
+ summaryName: (name: string) => string;
52
+ workspaceAccess: string;
53
+ workspaceAccessHint: string;
54
+ workspaceAlready: string;
55
+ noWorkspacesToGrant: string;
56
+ name: string;
57
+ nameHint: string;
58
+ nameInvalid: string;
59
+ advanced: string;
60
+ capabilities: string;
61
+ /** One line under the Tools heading. */
62
+ toolsHint: string;
63
+ /** Button in the summary that opens Advanced. */
64
+ summaryChange: string;
65
+ model: string;
66
+ modelAuto: string;
67
+ cancel: string;
68
+ create: string;
69
+ save: string;
70
+ saving: string;
71
+ }
72
+ export declare const DEFAULT_AGENT_CREATOR_LABELS: AgentCreatorLabels;
73
+ /** A valid agent name from the description: its first few meaningful words, dashed. */
74
+ export declare function deriveAgentName(description: string): string;
75
+ export declare const isValidAgentName: (name: string) => boolean;
76
+ /** The plain-language "can / cannot" sentence for a capability selection. Pure; labels are data. */
77
+ export declare function summarizeCapabilities(capabilities: AgentCapability[], enabled: Record<string, boolean>, modelName: string, labels?: Pick<AgentCreatorLabels, 'summaryCan' | 'summaryCannot' | 'summaryNone' | 'summaryModel' | 'summaryModelAuto'>): string[];
78
+ /** The full plain-language summary: abilities, model, workspace access and the agent's name. */
79
+ export declare function summarizeAgent(capabilities: AgentCapability[], values: Pick<AgentCreatorValues, 'capabilities' | 'modelName' | 'workspaceIds' | 'name'>, workspaces: Array<{
80
+ id: string;
81
+ name: string;
82
+ }>, labels?: AgentCreatorLabels): string[];
83
+ export interface AgentCreatorProps {
84
+ open: boolean;
85
+ onOpenChange: (open: boolean) => void;
86
+ isEdit?: boolean;
87
+ /** Name shown in the edit title. */
88
+ agentName?: string;
89
+ capabilities: AgentCapability[];
90
+ templates?: AgentTemplate[];
91
+ models?: string[];
92
+ /** The user's workspaces, for the explicit access list. */
93
+ workspaces?: Array<{
94
+ id: string;
95
+ name: string;
96
+ }>;
97
+ /** Workspaces the agent can already read: shown ticked and fixed (revoking is not available). */
98
+ grantedWorkspaceIds?: string[];
99
+ /** One-click avatar (or anything that sits beside the name). */
100
+ avatar?: ReactNode | ((values: AgentCreatorValues) => ReactNode);
101
+ types?: AgentTypeOption<string>[];
102
+ /** Controlled values; omit to let the dialog hold them (seeded by `initialValues`). */
103
+ values?: AgentCreatorValues;
104
+ initialValues?: Partial<AgentCreatorValues>;
105
+ onValuesChange?: (values: AgentCreatorValues) => void;
106
+ /** Avatar field, skills/tool pickers or anything else, folded under Advanced. */
107
+ advanced?: ReactNode | ((values: AgentCreatorValues) => ReactNode);
108
+ isSaving?: boolean;
109
+ onSubmit: (values: AgentCreatorValues) => void;
110
+ labels?: Partial<AgentCreatorLabels>;
111
+ testId?: string;
112
+ }
113
+ /**
114
+ * Create or edit an agent from a plain description. Templates pre-fill the description and the
115
+ * capabilities, a live sentence says what the agent can and cannot do, and the knobs (capability
116
+ * toggles, model, type, avatar, pickers) are folded under Advanced.
117
+ */
118
+ export declare function AgentCreator({ open, onOpenChange, isEdit, agentName, capabilities, templates, models, workspaces, grantedWorkspaceIds, avatar, types, values: valuesProp, initialValues, onValuesChange, advanced, isSaving, onSubmit, labels, testId, }: AgentCreatorProps): import("react").JSX.Element;