@iblai/web-containers 2.1.0 → 2.3.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 (206) hide show
  1. package/dist/cjs/components/canvas/binary-artifact-utils.js +261 -36
  2. package/dist/cjs/components/canvas/binary-artifact-utils.js.map +1 -1
  3. package/dist/cjs/components/canvas/binary-canvas-component.js +571 -53
  4. package/dist/cjs/components/canvas/binary-canvas-component.js.map +1 -1
  5. package/dist/cjs/components/canvas/canvas-version-menu.js +41 -0
  6. package/dist/cjs/components/canvas/canvas-version-menu.js.map +1 -0
  7. package/dist/cjs/components/canvas/canvas-view.js +25 -37
  8. package/dist/cjs/components/canvas/canvas-view.js.map +1 -1
  9. package/dist/cjs/components/canvas/code-view.js +143 -0
  10. package/dist/cjs/components/canvas/code-view.js.map +1 -0
  11. package/dist/cjs/components/canvas/copy-text-button.js +26 -0
  12. package/dist/cjs/components/canvas/copy-text-button.js.map +1 -0
  13. package/dist/cjs/components/canvas/docx-preview.js +287 -0
  14. package/dist/cjs/components/canvas/docx-preview.js.map +1 -0
  15. package/dist/cjs/components/canvas/html-preview.js +503 -0
  16. package/dist/cjs/components/canvas/html-preview.js.map +1 -0
  17. package/dist/cjs/components/canvas/office-file-limits.js +302 -0
  18. package/dist/cjs/components/canvas/office-file-limits.js.map +1 -0
  19. package/dist/cjs/components/canvas/pdf-preview.js +459 -0
  20. package/dist/cjs/components/canvas/pdf-preview.js.map +1 -0
  21. package/dist/cjs/components/canvas/session-canvas-cards.js +62 -15
  22. package/dist/cjs/components/canvas/session-canvas-cards.js.map +1 -1
  23. package/dist/cjs/components/canvas/session-canvas-placement.js +1 -0
  24. package/dist/cjs/components/canvas/session-canvas-placement.js.map +1 -1
  25. package/dist/cjs/components/canvas/text-file-canvas.js +260 -0
  26. package/dist/cjs/components/canvas/text-file-canvas.js.map +1 -0
  27. package/dist/cjs/components/canvas/text-file-kinds.js +329 -0
  28. package/dist/cjs/components/canvas/text-file-kinds.js.map +1 -0
  29. package/dist/cjs/components/canvas/use-artifact-versions.js +136 -0
  30. package/dist/cjs/components/canvas/use-artifact-versions.js.map +1 -0
  31. package/dist/cjs/components/canvas/xlsx-preview.js +139 -0
  32. package/dist/cjs/components/canvas/xlsx-preview.js.map +1 -0
  33. package/dist/cjs/components/chat/chat-export.js.map +1 -1
  34. package/dist/cjs/components/chat/chat-host-context.js.map +1 -1
  35. package/dist/cjs/components/chat/chat-messages/canvas-message-preview.js +9 -4
  36. package/dist/cjs/components/chat/chat-messages/canvas-message-preview.js.map +1 -1
  37. package/dist/cjs/components/chat/chat-messages/message-preview.js +85 -55
  38. package/dist/cjs/components/chat/chat-messages/message-preview.js.map +1 -1
  39. package/dist/cjs/components/chat/index.js +212 -46
  40. package/dist/cjs/components/chat/index.js.map +1 -1
  41. package/dist/cjs/components/credit-balance.js +40 -34
  42. package/dist/cjs/components/credit-balance.js.map +1 -1
  43. package/dist/cjs/components/master-agent/master-agent.js +9 -0
  44. package/dist/cjs/components/master-agent/master-agent.js.map +1 -1
  45. package/dist/cjs/components/modals/user-profile-modal.js +5 -0
  46. package/dist/cjs/components/modals/user-profile-modal.js.map +1 -1
  47. package/dist/cjs/components/platform-navbar/index.js +4 -2
  48. package/dist/cjs/components/platform-navbar/index.js.map +1 -1
  49. package/dist/cjs/components/platform-sidebar/index.js +6 -0
  50. package/dist/cjs/components/platform-sidebar/index.js.map +1 -1
  51. package/dist/cjs/components/tenant-switch/index.js +3 -1
  52. package/dist/cjs/components/tenant-switch/index.js.map +1 -1
  53. package/dist/cjs/components/ui/bottom-sheet.js +98 -0
  54. package/dist/cjs/components/ui/bottom-sheet.js.map +1 -0
  55. package/dist/cjs/components/user-profile-dropdown/account-sheet.js +175 -0
  56. package/dist/cjs/components/user-profile-dropdown/account-sheet.js.map +1 -0
  57. package/dist/cjs/components/user-profile-dropdown/index.js +30 -10
  58. package/dist/cjs/components/user-profile-dropdown/index.js.map +1 -1
  59. package/dist/cjs/components/your-activity/activity-stats.js +50 -0
  60. package/dist/cjs/components/your-activity/activity-stats.js.map +1 -0
  61. package/dist/cjs/components/your-activity/your-activity-button.js +34 -0
  62. package/dist/cjs/components/your-activity/your-activity-button.js.map +1 -0
  63. package/dist/cjs/components/your-activity/your-activity-panel.js +91 -0
  64. package/dist/cjs/components/your-activity/your-activity-panel.js.map +1 -0
  65. package/dist/cjs/hooks/use-iframe-message-handler.js +8 -0
  66. package/dist/cjs/hooks/use-iframe-message-handler.js.map +1 -1
  67. package/dist/cjs/i18n/messages/en.json.js +54 -16
  68. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  69. package/dist/cjs/i18n/messages/es.json.js +54 -16
  70. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  71. package/dist/cjs/i18n/messages/fr.json.js +54 -16
  72. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  73. package/dist/cjs/i18n/messages/zh.json.js +54 -16
  74. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  75. package/dist/cjs/index.js +14 -0
  76. package/dist/cjs/index.js.map +1 -1
  77. package/dist/cjs/lib/html-preview-messages.js +405 -0
  78. package/dist/cjs/lib/html-preview-messages.js.map +1 -0
  79. package/dist/cjs/lib/html-preview-page-prelude.js +449 -0
  80. package/dist/cjs/lib/html-preview-page-prelude.js.map +1 -0
  81. package/dist/cjs/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.js +72 -36
  82. package/dist/cjs/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.js.map +1 -1
  83. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Outline.js +113 -0
  84. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Outline.js.map +1 -0
  85. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineContext.js +8 -0
  86. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineContext.js.map +1 -0
  87. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineItem.js +82 -0
  88. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineItem.js.map +1 -0
  89. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Ref.js +18 -0
  90. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Ref.js.map +1 -0
  91. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Thumbnail.js +54 -0
  92. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Thumbnail.js.map +1 -0
  93. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/index.js +16 -0
  94. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/index.js.map +1 -1
  95. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useCachedValue.js +20 -0
  96. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useCachedValue.js.map +1 -0
  97. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useOutlineContext.js +11 -0
  98. package/dist/cjs/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useOutlineContext.js.map +1 -0
  99. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  100. package/dist/esm/components/canvas/binary-artifact-utils.js +248 -36
  101. package/dist/esm/components/canvas/binary-artifact-utils.js.map +1 -1
  102. package/dist/esm/components/canvas/binary-canvas-component.js +574 -56
  103. package/dist/esm/components/canvas/binary-canvas-component.js.map +1 -1
  104. package/dist/esm/components/canvas/canvas-version-menu.js +38 -0
  105. package/dist/esm/components/canvas/canvas-version-menu.js.map +1 -0
  106. package/dist/esm/components/canvas/canvas-view.js +26 -38
  107. package/dist/esm/components/canvas/canvas-view.js.map +1 -1
  108. package/dist/esm/components/canvas/code-view.js +140 -0
  109. package/dist/esm/components/canvas/code-view.js.map +1 -0
  110. package/dist/esm/components/canvas/copy-text-button.js +24 -0
  111. package/dist/esm/components/canvas/copy-text-button.js.map +1 -0
  112. package/dist/esm/components/canvas/docx-preview.js +285 -0
  113. package/dist/esm/components/canvas/docx-preview.js.map +1 -0
  114. package/dist/esm/components/canvas/html-preview.js +501 -0
  115. package/dist/esm/components/canvas/html-preview.js.map +1 -0
  116. package/dist/esm/components/canvas/office-file-limits.js +296 -0
  117. package/dist/esm/components/canvas/office-file-limits.js.map +1 -0
  118. package/dist/esm/components/canvas/pdf-preview.js +456 -0
  119. package/dist/esm/components/canvas/pdf-preview.js.map +1 -0
  120. package/dist/esm/components/canvas/session-canvas-cards.js +63 -16
  121. package/dist/esm/components/canvas/session-canvas-cards.js.map +1 -1
  122. package/dist/esm/components/canvas/session-canvas-placement.js +1 -0
  123. package/dist/esm/components/canvas/session-canvas-placement.js.map +1 -1
  124. package/dist/esm/components/canvas/text-file-canvas.js +258 -0
  125. package/dist/esm/components/canvas/text-file-canvas.js.map +1 -0
  126. package/dist/esm/components/canvas/text-file-kinds.js +322 -0
  127. package/dist/esm/components/canvas/text-file-kinds.js.map +1 -0
  128. package/dist/esm/components/canvas/use-artifact-versions.js +134 -0
  129. package/dist/esm/components/canvas/use-artifact-versions.js.map +1 -0
  130. package/dist/esm/components/canvas/xlsx-preview.js +137 -0
  131. package/dist/esm/components/canvas/xlsx-preview.js.map +1 -0
  132. package/dist/esm/components/chat/chat-export.js.map +1 -1
  133. package/dist/esm/components/chat/chat-host-context.js.map +1 -1
  134. package/dist/esm/components/chat/chat-messages/canvas-message-preview.js +10 -5
  135. package/dist/esm/components/chat/chat-messages/canvas-message-preview.js.map +1 -1
  136. package/dist/esm/components/chat/chat-messages/message-preview.js +85 -55
  137. package/dist/esm/components/chat/chat-messages/message-preview.js.map +1 -1
  138. package/dist/esm/components/chat/index.js +212 -46
  139. package/dist/esm/components/chat/index.js.map +1 -1
  140. package/dist/esm/components/credit-balance.js +42 -36
  141. package/dist/esm/components/credit-balance.js.map +1 -1
  142. package/dist/esm/components/master-agent/master-agent.js +9 -1
  143. package/dist/esm/components/master-agent/master-agent.js.map +1 -1
  144. package/dist/esm/components/modals/user-profile-modal.js +5 -0
  145. package/dist/esm/components/modals/user-profile-modal.js.map +1 -1
  146. package/dist/esm/components/platform-navbar/index.js +4 -2
  147. package/dist/esm/components/platform-navbar/index.js.map +1 -1
  148. package/dist/esm/components/platform-sidebar/index.js +6 -0
  149. package/dist/esm/components/platform-sidebar/index.js.map +1 -1
  150. package/dist/esm/components/tenant-switch/index.js +4 -2
  151. package/dist/esm/components/tenant-switch/index.js.map +1 -1
  152. package/dist/esm/components/ui/bottom-sheet.js +76 -0
  153. package/dist/esm/components/ui/bottom-sheet.js.map +1 -0
  154. package/dist/esm/components/user-profile-dropdown/account-sheet.js +154 -0
  155. package/dist/esm/components/user-profile-dropdown/account-sheet.js.map +1 -0
  156. package/dist/esm/components/user-profile-dropdown/index.js +30 -10
  157. package/dist/esm/components/user-profile-dropdown/index.js.map +1 -1
  158. package/dist/esm/components/your-activity/activity-stats.js +45 -0
  159. package/dist/esm/components/your-activity/activity-stats.js.map +1 -0
  160. package/dist/esm/components/your-activity/your-activity-button.js +32 -0
  161. package/dist/esm/components/your-activity/your-activity-button.js.map +1 -0
  162. package/dist/esm/components/your-activity/your-activity-panel.js +87 -0
  163. package/dist/esm/components/your-activity/your-activity-panel.js.map +1 -0
  164. package/dist/esm/hooks/use-iframe-message-handler.js +8 -0
  165. package/dist/esm/hooks/use-iframe-message-handler.js.map +1 -1
  166. package/dist/esm/i18n/messages/en.json.js +53 -16
  167. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  168. package/dist/esm/i18n/messages/es.json.js +53 -16
  169. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  170. package/dist/esm/i18n/messages/fr.json.js +53 -16
  171. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  172. package/dist/esm/i18n/messages/zh.json.js +53 -16
  173. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  174. package/dist/esm/index.js +5 -1
  175. package/dist/esm/index.js.map +1 -1
  176. package/dist/esm/lib/html-preview-messages.js +393 -0
  177. package/dist/esm/lib/html-preview-messages.js.map +1 -0
  178. package/dist/esm/lib/html-preview-page-prelude.js +444 -0
  179. package/dist/esm/lib/html-preview-page-prelude.js.map +1 -0
  180. package/dist/esm/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.js +37 -37
  181. package/dist/esm/node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.js.map +1 -1
  182. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Outline.js +111 -0
  183. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Outline.js.map +1 -0
  184. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineContext.js +6 -0
  185. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineContext.js.map +1 -0
  186. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineItem.js +80 -0
  187. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/OutlineItem.js.map +1 -0
  188. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Ref.js +16 -0
  189. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Ref.js.map +1 -0
  190. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Thumbnail.js +52 -0
  191. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/Thumbnail.js.map +1 -0
  192. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/index.js +8 -0
  193. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/index.js.map +1 -1
  194. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useCachedValue.js +18 -0
  195. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useCachedValue.js.map +1 -0
  196. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useOutlineContext.js +9 -0
  197. package/dist/esm/node_modules/.pnpm/react-pdf@9.2.1_@types_react@19.1.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-pdf/dist/esm/shared/hooks/useOutlineContext.js.map +1 -0
  198. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  199. package/dist/index.d.ts +157 -10
  200. package/dist/next/index.d.ts +33 -7
  201. package/dist/package.json +4 -1
  202. package/package.json +7 -4
  203. package/dist/cjs/components/chat/chat-binary-artifact-utils.js +0 -110
  204. package/dist/cjs/components/chat/chat-binary-artifact-utils.js.map +0 -1
  205. package/dist/esm/components/chat/chat-binary-artifact-utils.js +0 -105
  206. package/dist/esm/components/chat/chat-binary-artifact-utils.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1408,6 +1408,8 @@ interface TenantSwitcherProps {
1408
1408
  * the keyboard activation on the item, never on the inner control.
1409
1409
  */
1410
1410
  interactive?: boolean;
1411
+ /** Renders the name alone, for a host row that brings its own layout. */
1412
+ bare?: boolean;
1411
1413
  setHideTenantSwitcher?: (hide: boolean) => void;
1412
1414
  setOpenAccount?: (tab: 'basic' | 'organization') => void;
1413
1415
  setLoadingTenantInfo?: (loading: boolean) => void;
@@ -1419,7 +1421,7 @@ interface TenantSwitcherProps {
1419
1421
  * happens on the auth SPA (the "Organizations" item of the profile menu) —
1420
1422
  * only it can mint the target organization's tokens.
1421
1423
  */
1422
- declare function TenantSwitcher({ currentTenantKey, tenants, visitingTenant, interactive, setHideTenantSwitcher, setOpenAccount, setLoadingTenantInfo, rbacPermissions, enableRbac, }: TenantSwitcherProps): react_jsx_runtime.JSX.Element | null;
1424
+ declare function TenantSwitcher({ currentTenantKey, tenants, visitingTenant, interactive, bare, setHideTenantSwitcher, setOpenAccount, setLoadingTenantInfo, rbacPermissions, enableRbac, }: TenantSwitcherProps): react_jsx_runtime.JSX.Element | null;
1423
1425
 
1424
1426
  interface NotificationDropdownProps {
1425
1427
  org: string;
@@ -5483,8 +5485,16 @@ interface CreditBalanceProps {
5483
5485
  redirectUrl: string;
5484
5486
  className?: string;
5485
5487
  enabled?: boolean;
5488
+ /** With `onOpenChange`, lets something other than the button open the panel. */
5489
+ open?: boolean;
5490
+ onOpenChange?: (open: boolean) => void;
5491
+ /**
5492
+ * Shows the panel as a bottom sheet with no button of its own, for a phone
5493
+ * header that opens it from elsewhere through `open`.
5494
+ */
5495
+ sheet?: boolean;
5486
5496
  }
5487
- declare function CreditBalance({ tenant, username, mainPlatformKey, currentUserEmail, redirectUrl, className, enabled, }: CreditBalanceProps): react_jsx_runtime.JSX.Element | null;
5497
+ declare function CreditBalance({ tenant, username, mainPlatformKey, currentUserEmail, redirectUrl, className, enabled, open: openProp, onOpenChange, sheet, }: CreditBalanceProps): react_jsx_runtime.JSX.Element | null;
5488
5498
 
5489
5499
  interface ProjectsPageProps {
5490
5500
  /** Active tenant/organisation key. */
@@ -6458,6 +6468,11 @@ interface MasterAgentPanelProps {
6458
6468
  * that shows `MasterAgent` and the row that shows `MasterAgentPanel`.
6459
6469
  */
6460
6470
  declare function MasterAgentProvider({ tenant, username, authUrl, lmsUrl, mentorUrl, agentId: agentIdProp, enabled, children, }: MasterAgentProviderProps): react_jsx_runtime.JSX.Element;
6471
+ /**
6472
+ * Opens and closes the Assistant from a control other than `MasterAgent`, such
6473
+ * as a row in a phone's account sheet. Null when there is no Assistant to open.
6474
+ */
6475
+ declare function useMasterAgentToggle(): (() => void) | null;
6461
6476
  /**
6462
6477
  * The header button (lucide's Bot) that opens and closes the Assistant.
6463
6478
  * Renders nothing outside a `MasterAgentProvider` or before an agent is known.
@@ -6472,6 +6487,48 @@ declare function MasterAgent({ className }: MasterAgentProps): react_jsx_runtime
6472
6487
  */
6473
6488
  declare function MasterAgentPanel({ className }: MasterAgentPanelProps): react_jsx_runtime.JSX.Element | null;
6474
6489
 
6490
+ interface YourActivityButtonProps {
6491
+ org: string;
6492
+ username: string;
6493
+ className?: string;
6494
+ }
6495
+ /**
6496
+ * Trophy button in the top bar that opens the user's activity: their chat
6497
+ * streak beside their best one, and the last 30 days in numbers. Renders
6498
+ * nothing until the user has chatted in the last 30 days, and nothing on
6499
+ * error, so the bar never shows an empty state.
6500
+ */
6501
+ declare function YourActivityButton({ org, username, className }: YourActivityButtonProps): react_jsx_runtime.JSX.Element | null;
6502
+
6503
+ type ActivitySummary = {
6504
+ /** Consecutive active days ending today, or yesterday when today has none yet. */
6505
+ streak: number;
6506
+ /** True when today already counts toward the streak. */
6507
+ activeToday: boolean;
6508
+ longest: number;
6509
+ /** Active days among the last {@link RECENT_DAYS}, today included. */
6510
+ activeRecent: number;
6511
+ };
6512
+
6513
+ /**
6514
+ * The user's activity, or null while there is none to show: before they have
6515
+ * chatted in the last 30 days, and on error. Whatever opens the panel hides
6516
+ * itself on null, so nobody meets an empty state.
6517
+ */
6518
+ declare function useYourActivity(org: string, username: string): ActivitySummary | null;
6519
+ /** A streak is never shown as 0: with none running it is the best one. */
6520
+ declare function headlineStreak({ streak, longest }: ActivitySummary): number;
6521
+ interface YourActivityPanelProps {
6522
+ org: string;
6523
+ username: string;
6524
+ summary: ActivitySummary;
6525
+ }
6526
+ /**
6527
+ * The user's chat streak beside their best one, and the last 30 days in
6528
+ * numbers. Mount it only while it shows: the 30-day numbers load on mount.
6529
+ */
6530
+ declare function YourActivityPanel({ org, username, summary }: YourActivityPanelProps): react_jsx_runtime.JSX.Element;
6531
+
6475
6532
  /**
6476
6533
  * Shared types for the PlatformNavbar — the cross-SPA top navigation bar.
6477
6534
  *
@@ -6520,6 +6577,11 @@ type PlatformNavbarCreditBalanceConfig = {
6520
6577
  /** Defaults to `window.location.origin`. */
6521
6578
  redirectUrl?: string;
6522
6579
  };
6580
+ /** The trophy button with the user's activity; it renders nothing until they have chatted in the last 30 days. */
6581
+ type PlatformNavbarActivityConfig = {
6582
+ org: string;
6583
+ username: string;
6584
+ };
6523
6585
  type PlatformNavbarNotificationsConfig = {
6524
6586
  org: string;
6525
6587
  userId: string;
@@ -6563,6 +6625,8 @@ type PlatformNavbarProps = {
6563
6625
  modeSwitcher?: React.ReactNode;
6564
6626
  /** Invariant search bar on the right; pass `null`/omit to hide. */
6565
6627
  search?: PlatformNavbarSearchConfig | null;
6628
+ /** Your Activity trophy, left of the chat-privacy toggle; `null` hides it (e.g. embeds). */
6629
+ activity?: PlatformNavbarActivityConfig | null;
6566
6630
  /** Chat-privacy toggle; the host passes `null` off chat pages. */
6567
6631
  privacyToggle?: PlatformNavbarPrivacyToggleConfig | null;
6568
6632
  /** Placement-exam dropdown, left of the credit balance. Renders only
@@ -6632,7 +6696,7 @@ declare function PlatformNavbarSearch({ onSubmit, placeholder }: PlatformNavbarS
6632
6696
  * sidebar toggle, LLM selector, mentor dropdown, …) and the `modeSwitcher`
6633
6697
  * (User/Admin toggle).
6634
6698
  */
6635
- declare function PlatformNavbar({ left, modeSwitcher, search, privacyToggle, placements, creditBalance, notifications, profile, visibleToLoggedInUsersOnly, onLoginClick, className, }: PlatformNavbarProps): react_jsx_runtime.JSX.Element;
6699
+ declare function PlatformNavbar({ left, modeSwitcher, search, activity, privacyToggle, placements, creditBalance, notifications, profile, visibleToLoggedInUsersOnly, onLoginClick, className, }: PlatformNavbarProps): react_jsx_runtime.JSX.Element;
6636
6700
 
6637
6701
  /** An agent a row names, as the host needs it to open that agent's settings. */
6638
6702
  interface AgentSettingsTarget {
@@ -6724,6 +6788,23 @@ interface CanvasViewProps {
6724
6788
  userId?: string;
6725
6789
  fileExtension?: string;
6726
6790
  mimeType?: string;
6791
+ /**
6792
+ * A binary file's link (`binary_url`), when the caller holds one. The
6793
+ * viewer shows the file from it and gets a new one itself when it has run
6794
+ * out. A new value for the open file reloads the viewer.
6795
+ */
6796
+ binaryUrl?: string | null;
6797
+ /**
6798
+ * An earlier version of a binary file. Only the latest file is stored, so
6799
+ * the viewer says so instead of showing the latest under the old version.
6800
+ */
6801
+ versionUnavailable?: boolean;
6802
+ /**
6803
+ * The binary file is open from a shared chat (`sessionId`). A viewer who
6804
+ * does not own that chat may not read the artifact endpoints, so the
6805
+ * viewer reads a new link from the shared session first.
6806
+ */
6807
+ sharedSession?: boolean;
6727
6808
  metadata?: Record<string, unknown>;
6728
6809
  sessionId?: string;
6729
6810
  tenantKey?: string;
@@ -6736,11 +6817,12 @@ interface CanvasViewProps {
6736
6817
  artifactsEnabled?: boolean;
6737
6818
  /**
6738
6819
  * Show the canvas without letting it change anything (history). See
6739
- * `CanvasComponent`'s `readOnly`; the binary viewer is read-only already.
6820
+ * `CanvasComponent`'s `readOnly`. The file views are read-only already;
6821
+ * there it only takes away restoring an earlier version.
6740
6822
  */
6741
6823
  readOnly?: boolean;
6742
6824
  }
6743
- declare function CanvasView({ onClose, canvasTitle, canvasContent, canvasType, artifactId, org, userId, fileExtension, mimeType, metadata, sessionId, tenantKey, sendMessage, refreshTrigger, activeTools, artifactsEnabled, readOnly, }: CanvasViewProps): react_jsx_runtime.JSX.Element;
6825
+ declare function CanvasView({ onClose, canvasTitle, canvasContent, canvasType, artifactId, org, userId, fileExtension, mimeType, binaryUrl, versionUnavailable, sharedSession, metadata, sessionId, tenantKey, sendMessage, refreshTrigger, activeTools, artifactsEnabled, readOnly, }: CanvasViewProps): react_jsx_runtime.JSX.Element;
6744
6826
 
6745
6827
  interface CanvasDialogProps extends Omit<CanvasViewProps, 'onClose'> {
6746
6828
  open: boolean;
@@ -6758,9 +6840,9 @@ declare function CanvasDialog({ open, onOpenChange, ...canvas }: CanvasDialogPro
6758
6840
  /**
6759
6841
  * Utilities for binary artifacts — files the agent shares from its sandbox VM
6760
6842
  * (pdf, xlsx, zip, …). The backend marks them with `is_binary` / `mime_type`
6761
- * and serves the bytes base64-encoded in `binary_content` on the artifact
6762
- * detail endpoint only (streamed and embedded payloads null it out), so the
6763
- * bytes are always fetched from the REST detail endpoint on demand.
6843
+ * and hands out a short-lived link to the bytes in `binary_url`, on every
6844
+ * payload that names the artifact. The bytes themselves still arrive inline
6845
+ * (`binary_content`, base64) from backends that predate the link.
6764
6846
  */
6765
6847
 
6766
6848
  /**
@@ -6770,6 +6852,16 @@ declare function CanvasDialog({ open, onOpenChange, ...canvas }: CanvasDialogPro
6770
6852
  type BinaryArtifactApiFields = {
6771
6853
  is_binary?: boolean;
6772
6854
  mime_type?: string | null;
6855
+ /**
6856
+ * Link to the file's bytes: absolute on storage, relative to the DM on
6857
+ * stacks that serve their own media. It carries its own permission and runs
6858
+ * out (an hour on storage, a day on the DM).
6859
+ */
6860
+ binary_url?: string | null;
6861
+ /**
6862
+ * @deprecated The whole file inline, as base64. Read `binary_url`; only
6863
+ * `resolveBinarySource` falls back to this, for backends without the link.
6864
+ */
6773
6865
  binary_content?: string | null;
6774
6866
  };
6775
6867
  type ArtifactWithBinaryFields = Artifact & BinaryArtifactApiFields;
@@ -6785,6 +6877,10 @@ declare const shouldUseBinaryCanvas: (info: {
6785
6877
  isBinary?: boolean | null;
6786
6878
  mimeType?: string | null;
6787
6879
  fileExtension?: string | null;
6880
+ /** The artifact's title, which is the file name for a file an agent wrote or shared. */
6881
+ title?: string | null;
6882
+ /** The artifact's text, when the caller holds it. */
6883
+ content?: string | null;
6788
6884
  }) => boolean;
6789
6885
  /**
6790
6886
  * Best-effort file extension for an artifact, preferring the explicit
@@ -6823,6 +6919,12 @@ interface PlacedCanvas {
6823
6919
  versionNumber?: number;
6824
6920
  /** Whether that version is the artifact's current one. */
6825
6921
  isCurrent: boolean;
6922
+ /**
6923
+ * That version's text, when the session row carries it. A file that is
6924
+ * text (an html page, an svg) is shown from it, so an earlier version
6925
+ * shows its own text and not the latest.
6926
+ */
6927
+ content?: string;
6826
6928
  }
6827
6929
 
6828
6930
  interface SessionCanvasCardsProps {
@@ -6877,6 +6979,27 @@ interface CanvasMarkdownEngine {
6877
6979
  /** Sets (or, with `{}`, clears) the converters every canvas uses. */
6878
6980
  declare function configureCanvasMarkdown(engine: Partial<CanvasMarkdownEngine>): void;
6879
6981
 
6982
+ interface TextFileKind {
6983
+ /** Prism grammar id for react-syntax-highlighter, or 'text' for none. */
6984
+ language: string;
6985
+ /** Everyday name of the type: "Python", "JSON", "Dockerfile". Not translated. */
6986
+ label: string;
6987
+ /** The label already names the whole file ("Dockerfile"), so nothing like "file" is appended. */
6988
+ wholeName?: boolean;
6989
+ }
6990
+ /** Whether a text artifact is a FILE for the read-only file view, and not a document for the editor. */
6991
+ declare function isCodeFile(info: {
6992
+ isBinary?: boolean | null;
6993
+ mimeType?: string | null;
6994
+ fileExtension?: string | null;
6995
+ title?: string | null;
6996
+ }): boolean;
6997
+ /** How to show and name a text file. Never null: an unknown type is plain text named by its extension. */
6998
+ declare function describeTextFile(info: {
6999
+ fileExtension?: string | null;
7000
+ title?: string | null;
7001
+ }): TextFileKind;
7002
+
6880
7003
  /**
6881
7004
  * Convert LaTeX string to readable plain text with Unicode symbols.
6882
7005
  * Handles common LaTeX commands: Greek letters, fractions, operators, etc.
@@ -6893,6 +7016,30 @@ declare const downloadBlob: (blob: Blob, filename: string) => void;
6893
7016
  */
6894
7017
  declare const sanitizeFilename: (name: string) => string;
6895
7018
 
7019
+ interface HtmlPreviewConfig {
7020
+ /**
7021
+ * Address of the page the host serves for running HTML files, built with
7022
+ * `createHtmlPreviewResponse` from `@iblai/iblai-js/security`. Without one,
7023
+ * an HTML file shows the viewer's no-preview message with Export.
7024
+ */
7025
+ frameUrl?: string;
7026
+ }
7027
+ /** Tells every file viewer where the host's preview page is. Call it once, at start-up. */
7028
+ declare function configureHtmlPreview(config: HtmlPreviewConfig): void;
7029
+ /**
7030
+ * Whether a message comes from a page with no origin that is not this
7031
+ * window's own host. A missing `source` is such a sender too: a browser
7032
+ * reports none once the sending frame is gone, and messages it queued are
7033
+ * still delivered.
7034
+ */
7035
+ declare function isUntrustedOpaqueSender(event: Pick<MessageEvent, 'origin' | 'source'>, target?: Window): boolean;
7036
+ /**
7037
+ * Keeps a previewed page's messages from the listeners registered after this
7038
+ * one, once per window. A browser runs a window's own listeners in the order
7039
+ * they were added, so this belongs at start-up, before the app's.
7040
+ */
7041
+ declare function installOpaqueOriginMessageGuard(): void;
7042
+
6896
7043
  declare const PRIVACY_AUDIT_LOG_DEFAULT_PAGE_SIZE = 20;
6897
7044
  interface PrivacyAuditLogProps {
6898
7045
  tenantKey: string;
@@ -7305,5 +7452,5 @@ interface PreviewPlan {
7305
7452
  */
7306
7453
  declare function previewPlan(source: string | null | undefined, hint?: string | null): PreviewPlan | null;
7307
7454
 
7308
- export { ACCESS_COURSE_LABEL, ALL_CATEGORIES, AccessTimeHeatmap, AccessibilityFab, AccessibilityProvider, AccessibilityToolbar, AccessiblePaginate, AddMentorToProjectModal, AddSkillDialog, Admin, AdvancedTab, AgentConfigPrompts, AgentScopeLink, AgentSettingsLauncherProvider, AgentSettingsLink, AgentSkills, AlertsTab, AnalyticsAgentPicker, AnalyticsAreaChart, AnalyticsAuditLogStats, AnalyticsBarChart, AnalyticsControlBar, AnalyticsCourseDetail, AnalyticsCourses, AnalyticsFinancialStats, AnalyticsGlobalFiltersProvider, AnalyticsLayout, AnalyticsLlmUsageStats, AnalyticsMemoryStats, AnalyticsMonetizationStats, AnalyticsNotice, AnalyticsOverview, AnalyticsPlatformAuditLog, AnalyticsProgramDetail, AnalyticsPrograms, AnalyticsReportDownload, AnalyticsReports, AnalyticsScopeProvider, AnalyticsSettingsProvider, AnalyticsTopicsStats, AnalyticsTraces, AnalyticsTranscriptsStats, AnalyticsUsersStats, ApiTab, AppleRestrictionModal, ApplyWizard, AuditLogChangesView, AuditLogJsonView, BUILDER_DEFAULT_INSTRUCTIONS, BUY_NOW_LABEL, BillingTab, CATALOGS, CHART_ORDINAL_RAMP, CHART_SERIES_COLORS, CHART_SINGLE_SERIES_COLOR, CLASSIFIER_HANDLES, CLASSIFIER_LIMITS, CREATE_AGENT_LABELS, CREATE_AGENT_WIZARD_STEPS, CUA_DRIVER_REPO_URL, CUA_DRIVER_TAURI_COMMANDS, CUA_DRIVER_TAURI_EVENTS, CanvasDialog, CanvasView, CardInfoIcon, CategorizedDropdownMenu, ChartCardWrapper, ChartFiltersProvider, ChartLoading, ChartTooltipCard, ChatContext, ChatPrivacyToggle, ChatProvider, CompanyDialog, ConnectorManagementDialog, ContactAdminModal, ConversationSentiment, ConversationTopics, CopyButtonIcon, CourseAccessGuard, CourseCardSkeleton, CourseContentLoading, CourseOutline, CourseOutlineContext, CourseOutlineDrawer, CreateAgentForm, CreateAgentModal, CreateAgentWizard, CreateProjectModal, CreateWorkflowModal, CredentialBox, CredentialMiniBoxSkeleton, CredentialsList, CreditBalance, CustomDateRangePicker, CustomTooltip, DEFAULT_COWORK_REQUIRED_SIZE_GB, DEFAULT_USER_IDENTITY_ORDER, DRAGGABLE_SNAP_TRANSITION, DefaultEmptyBox, DeleteProjectModal, DeleteWorkflowModal, DiscoverContentCard, DiscoverFacetsFilter, DiscoverFilterDrawer, DocumentSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENROLL_NOW_COURSE_STARTING_SOON_LABEL, ENROLL_NOW_LABEL, EXPRESSION_EXAMPLES, EditAlertDialog, EducationBox, EducationDialog, EducationTab, EdxIframeContext, EmptyStats, ExperienceBox, ExperienceDialog, ExperienceTab, FacetFilterContext, FloatingAccessibilityButton, Footer, GradebookTab, GroupsFilterDropdown, HostPortChipInput, IBLAI_DECISION_MODEL, INPUT_PLACEHOLDER, INVITATION_ONLY_LABEL, InstitutionDialog, IntegrationsTab, InviteUserContent, InviteUserDialog, InvitedUsersDialog, LOCAL_LLM_CHANGED_EVENT, LOCAL_MODELS, LlmModelBadge, Loader, LocalLLMTab, LocalModelsContent, LoginButton, MACOS_PERMISSIONS_COMMANDS, MEMORY_PAGE_SIZE, Markdown, MasterAgent, MasterAgentPanel, MasterAgentProvider, McpServersMenu, MemoryAdminTab, MinimumMentorAlert, MonetizationTab, NotificationDisplay, NotificationDropdown, ONBOARDING_FIELD_TYPES, ONBOARDING_METADATA_KEY, ONBOARDING_METADATA_VERSION, ONBOARDING_SECTORS, OnboardingField, OnboardingShell, OnboardingWizard, PLATFORM_AUDIT_DEEP_PAGING_THRESHOLD, PLATFORM_AUDIT_PAGE_SIZE, PRIVACY_AUDIT_LOG_DEFAULT_PAGE_SIZE, PaywallModal, PlacementExam, PlacementExamsDropdown, PlatformAuditLogDetailSheet, PlatformNavbar, PlatformNavbarSearch, PrivacyAuditLog, PrivacyAuditLogModal, PrivacyFlagDetail, Profile, ProfileTimeChart, ProgressDots, ProjectActionButtons, ProjectFilesModal, ProjectInstructionsModal, ProjectLandingPage, ProjectMentorsList, ProjectsPage, REQUEST_ACCESS_COURSE_STARTING_SOON_LABEL, REQUEST_ACCESS_LABEL, RankedBars, RenameProjectModal, ResumeBox, ResumeTab, RetrievedDocumentsButton, RichTextEditor, SERVICE_COLOR_ORDER, SandboxConfig, SearchableMultiSelect, SecretsTab, SendNotificationDialog, SessionCanvasCards, SignupButton, SkeletonActivityStatBox, SkeletonAddSkillsLoading, SkeletonCreatePathwaySearchList, SkeletonDiscoverFilterBox, SkeletonEducationBox, SkeletonMultiplier, SkeletonPathwayBox, SkeletonProfileInfoCard, SkeletonSkillBox, SkillBox, SkillDetailModal, SkillLeaderboardChart, SkillsBox, SkillsList, SlashSkillPicker, SourceChip, Spinner, StatCard, StepHeader, SubscriptionTopBanner, SummerNoteTextEditor, TAURI_COMMANDS, TAURI_EVENTS, TRACES_PAGE_SIZE, TenantSwitcher, TimeFilter, TimeTrackingProvider, TimedExam, ToolCallIndicator, ToolDialogs, TopBanner, TranscriptFileCards, TranscriptRollupBadges, TranscriptTurnDetails, TrendSparkline, USER_ONBOARDING_FORM_SLUG, USER_ONBOARDING_FORM_VERSION, USER_ONBOARDING_SUBMISSION_SLUG, UpgradePackageModal, UserAvatar, UserOnboardingWizard, UserProfileDialog, UserProfileLink, Version, VirtualMachineAdminTab, VirtualMachineNetworkSection, WHILE_DEFAULT_MAX_ITERATIONS, WHILE_DONE_HANDLE, WHILE_LOOP_HANDLE, WHILE_MAX_ITERATIONS, WebContainersI18nProvider, WorkflowSidebar, addBookmarksTab, areChartFiltersEqual, availablePlacementExams, buildOnboardingAgentPath, buildOnboardingMetadata, buildUserOnboardingFormMetadata, buildUserOnboardingSubmissionMetadata, canOpenOrganizationSettings, canReceiveConnection, categoryIdFor, chatTextPreview, classifierAnswerType, classifierBranches, coerceOnboardingAgent, coerceOnboardingAgents, coerceUserOnboardingForm, collectVariableUsages, collectWorkflowVariables, colorForRank, colorForSeries, configureCanvasMarkdown, conversationDocuments, conversationTitle, conversationTopics, downloadBlob, edgeIdFor, emptyUserOnboardingForm, findLastResumeBlock, findMathSegments, findOnboardingAgent, findSequentialParent, firstHumanMessage, flattenVerticalBlocks, formatAuditTimestamp, formatCompactNumber, formatFileSize, formatLatencySeconds, formatResult, formatSessionDate, formatTimeZoneLabel, getCatalog, getConditionCount, getConditions, getFirstAvailableUnit, getFriendlyToolName, getLLMModelDisplayName, getLocalLLMModel, getLocalLLMToolSupport, getNextUnitIframe, getOrg, getParentBlockById, getParentsInfosFromSublessonId, getPreviousUnitIframe, getQueryLabel, getRandomCourseImage, getSectorById, getTenant, getUnitToIframe, getUserId, getUserName, granularityForFilter, hasDistinctName, hasOnboardingContent, humanizeAuditToken, humanizeFieldName, inBrowserPrint, inIframe, inferProviderKeysFromModel, initialCuaDriverInstallState, initialModelDownloadState, isAuthoredInstructions, isClassifierType, isCoworkEnabled, isEmailLike, isFileReference, isLlmUsageForbidden, isLlmUsageUnavailable, isLocalLLMEnabled, isLtiPlaceholderEmail, isPlatformNavbarCreditBalanceVisible, isSlashCommandToken, isTauriApp, isValidTimeZone, isValidVariableName, latexToReadableText, llmUsageDateArgs, localModelDisplayName, components as markdownComponents, migrateNodeData, migrateWorkflowDefinition, modelSupportsCowork, newClassifierData, onboardingPrimaryButtonClass, onboardingSecondaryButtonClass, parseVariableDefault, placeholderSources, previewPlan, readUserOnboardingForm, readUserOnboardingSubmission, readUserOnboardingSubmissions, reconcileClassifierEdges, reindexConditionEdges, resolveAuditTimeZone, resolveBinaryMimeType, resolveCreateAgentLabels, resolveEffectiveFileExtension, resolveUserIdentity, sanitizeCss, sanitizeFilename, setCoworkEnabled, setLocalLLMEnabled, setLocalLLMModel, setLocalLLMToolSupport, shouldUseBinaryCanvas, smallestCoworkModel, startVariableDefaults, stepHasResult, stepPlaceholder, stepsBefore, summarizeTranscriptTurns, toChatPrivacyActionError, toFileReference, toRetrievedDocuments, toToolCallInfos, useAccessibility, useAgentSettingsLauncher, useAnalyticsGlobalFilters, useAnalyticsScope, useAnalyticsSettings, useAuditLog, useCatalogSearch, useChartFilters, useChatPrivacy, useChatState, useCourseDetail, useCourseMetadata, useCourses, useCreateAgentFieldPermissions, useCredentialsSchemaLogos, useCuaDriver, useDiscover, useDraggablePosition, useEdxIframe, useFinancial, useIframeMessageHandler, useLlmDisplayName, useLlmProviderCatalogue, useLlmTraces, useLlmUsage, useLocalStorage, useMemory, useModelDownload, useMonetization, useOverview, usePlatformAuditLabels, usePlatformAuditLog, useProfileActivityStats, useProfileCredentials, useProfilePathways, useProfilePrograms, useProfileSkills, useProfileTimeSpent, usePrograms, useReports, useScopedMentorDbId, useScopedMentorId, useSelectedLocalModel, useSessionCanvases, useSlashSkillPicker, useSlashSkills, useT, useTauri, useTimeTracking, useTopics, useTranscripts, useUserCourses, useUserMetadata, useUsers, useWebContainersI18n, useWebContainersLocale, variablePlaceholder, withCategoryLabel, withoutNoteConnectivityWarnings };
7309
- export type { AccessibilityContextType, AccessibilityFabProps, AccessibilitySettings, AccessibilityToolbarProps, ActivityStats, AddSkillDialogProps, AddSkillDialogResultRow, AgentPromptDefaults, AgentScopeLinkProps, AgentSettingsLauncherValue, AgentSettingsLinkProps, AgentSettingsTarget, AnalyticsAgentPickerProps, AnalyticsChartPoint, AnalyticsControlBarProps, AnalyticsDataSource, AnalyticsMemoryStatsProps, AnalyticsNoticeTone, AnalyticsPlatformAuditLogProps, AnalyticsScopeValue, AnalyticsScopedMentor, AnalyticsSettings, AnalyticsTracesProps, ApiTabProps, ApplyWizardProps, AuditLogDateRange, AuditLogJsonViewProps, AuditLogScope, AvailablePlacementExam, CanvasDialogProps, CanvasMarkdownEngine, CanvasViewProps, CatalogSearchParams, CategorizedDropdownAction, CategorizedDropdownMenuProps, CategorizedItem, CategoryConfig, ChartDateRange, ChartFilters, ChatContextValue, ChatPrivacyAction, ChatPrivacyActionError, ChatPrivacyToggleProps, ChatProviderProps, ClassifierAnswerType, ClassifierBranch, ClassifierBranchKind, ClassifierCategory, ClassifierExample, ClassifierHistory, ClassifierLevel, ClassifierTryOutcome, ClassifierWhenUnsure, Condition, ContactAdminModalProps, ConversationSentimentLabels, ConversationSentimentProps, ConversationTitleSource, ConversationTopicsProps, CourseAccessGuardProps, CourseAssignmentPolicy, CourseCertificateData, CourseCompletion, CourseCompletionData, CourseCompletionSummary, CourseEdxData, CourseEligibility, CourseFacet, CourseFacetTerm, CourseGrade, CourseGradingPolicy, CourseInfoLoadingState, CourseInstructor, CourseInstructorInfo, CourseOutlineChildNode, CourseOutlineContextType, CourseOutlineNode, CourseOutlineResponse, CourseProgress, CourseSectionScore, CourseSubsection, CourseVerificationData, CreateAgentFormProps, CreateAgentFormValues, CreateAgentInitialValues, CreateAgentLabels, CreateAgentModalProps, CreateAgentOption, CreateAgentWizardProps, CreateAgentWizardStep, CreateAgentWizardStepArgs, CreateProjectModalProps, CreatedAgent, CredentialBoxProps, CuaDriverInstallProgress, CuaDriverInstallState, CuaDriverStatus, DefaultEmptyBoxProps, DeleteProjectModalProps, DiscoverContent, DiscoverContentCardComponentProps, DiscoverContentCardProps, DiskSpaceError, DocumentSidebarProps, DownloadProgress, DraggableAnchor, DraggableCorner, DraggablePosition, DraggableSide, EducationBoxProps, EdxIframeContextValue, EdxOutlineNodeLike, ExperienceBoxProps, FacetFilterContextValue, FlatVerticalBlock, FooterProps, GenericPagination, GroupOption, HostPortChipInputProps, InstallationLog, InviteUserContentProps, LlmModelBadgeProps, LlmProviderDetails, LocalLLMTabProps, LocalModel, LocalModelsContentProps, LoginButtonProps, MarkdownMenuItem, MasterAgentPanelProps, MasterAgentProps, MasterAgentProviderProps, MathSegment, McpConnector, McpServersMenuProps, MemoryAggregates, MemoryCategoryBreakdown, MemoryDateRange, MemoryRow, MemoryScope, ModelDownloadState, NodeConfig, NodeTypeItem, NodeTypeSection, Notification, NotificationDisplayProps, NotificationDropdownProps, OllamaStatus, OnboardingAgentEmbed, OnboardingAnswers, OnboardingFinalStepContext, OnboardingSector, OnboardingStepHeader, OnboardingWizardProps, ParsedDefault, PlacedCanvas, PlacementExamProps, PlatformAuditDateRange, PlatformAuditFilters, PlatformAuditLabels, PlatformNavbarCreditBalanceConfig, PlatformNavbarNotificationsConfig, PlatformNavbarPlacementsConfig, PlatformNavbarPrivacyToggleConfig, PlatformNavbarProps, PlatformNavbarSearchConfig, PreviewKind, PreviewPlan, PrivacyAuditLogModalProps, PrivacyAuditLogProps, PrivacyFlagDetailProps, ProfileCustomization, ProfileTimeChartProps, ProjectsPageProps, RankedBarItem, RenameProjectModalProps, ResolvedUserIdentity, ResumeBoxProps, RetrievedDocument, RetrievedDocumentsButtonProps, SearchedMentor, SecretsTabProps, SelectedLocalModel, SessionCanvasCardsProps, SessionCanvases, SetStateAssignment, SignupButtonProps, SkeletonMultiplierProps, SkillBoxProps, SkillBoxSkill, SkillDetailModalProps, SkillDetailModalSkill, SkillLeaderboardChartProps, SkillsBoxProps, SlashSkillPickerProps, StepReference, SubscriptionTopBannerProps, SummerNoteTextEditorProps, TabEntry, TenantMetadata, TimeSpent, ToolCallIndicatorProps, TopBannerProps, TranscriptFileCardFile, TranscriptFileReference, TranscriptRollupBadgesProps, TranscriptTurnDetailsProps, TranscriptTurnDetailsSlots, TranscriptTurnDetailsTurn, TranscriptTurnRollup, TransformExpression, UseCourseDetailOptions, UseCreateAgentFieldPermissionsArgs, UseCreateAgentFieldPermissionsResult, UseCredentialsSchemaLogosArgs, UseDiscoverOptions, UseDraggablePositionOptions, UseEdxIframeUrls, UseLlmDisplayNameArgs, UseLlmProviderCatalogueArgs, UseMemoryReturn, UsePlatformAuditLogReturn, UseProfilePathwaysArgs, UseProfileProgramsArgs, UseSessionCanvasesArgs, UseSlashSkillPickerArgs, UseSlashSkillPickerResult, UseSlashSkillsArgs, UseSlashSkillsResult, UseUserCoursesArgs, UserAvatarProps, UserCourseWithMetadata, UserIdentityField, UserIdentityOptions, UserIdentitySource, UserOnboardingAgent, UserOnboardingForm, UserOnboardingSubmission, UserOnboardingSubmissions, UserProfileDialogProps, UserProfileLinkProps, UserSkill, Variable, VirtualMachineAdminTabProps, VirtualMachineNetworkSectionProps, WebContainersI18nProviderProps, WebContainersI18nValue, WorkflowAgentSettingsConfig };
7455
+ export { ACCESS_COURSE_LABEL, ALL_CATEGORIES, AccessTimeHeatmap, AccessibilityFab, AccessibilityProvider, AccessibilityToolbar, AccessiblePaginate, AddMentorToProjectModal, AddSkillDialog, Admin, AdvancedTab, AgentConfigPrompts, AgentScopeLink, AgentSettingsLauncherProvider, AgentSettingsLink, AgentSkills, AlertsTab, AnalyticsAgentPicker, AnalyticsAreaChart, AnalyticsAuditLogStats, AnalyticsBarChart, AnalyticsControlBar, AnalyticsCourseDetail, AnalyticsCourses, AnalyticsFinancialStats, AnalyticsGlobalFiltersProvider, AnalyticsLayout, AnalyticsLlmUsageStats, AnalyticsMemoryStats, AnalyticsMonetizationStats, AnalyticsNotice, AnalyticsOverview, AnalyticsPlatformAuditLog, AnalyticsProgramDetail, AnalyticsPrograms, AnalyticsReportDownload, AnalyticsReports, AnalyticsScopeProvider, AnalyticsSettingsProvider, AnalyticsTopicsStats, AnalyticsTraces, AnalyticsTranscriptsStats, AnalyticsUsersStats, ApiTab, AppleRestrictionModal, ApplyWizard, AuditLogChangesView, AuditLogJsonView, BUILDER_DEFAULT_INSTRUCTIONS, BUY_NOW_LABEL, BillingTab, CATALOGS, CHART_ORDINAL_RAMP, CHART_SERIES_COLORS, CHART_SINGLE_SERIES_COLOR, CLASSIFIER_HANDLES, CLASSIFIER_LIMITS, CREATE_AGENT_LABELS, CREATE_AGENT_WIZARD_STEPS, CUA_DRIVER_REPO_URL, CUA_DRIVER_TAURI_COMMANDS, CUA_DRIVER_TAURI_EVENTS, CanvasDialog, CanvasView, CardInfoIcon, CategorizedDropdownMenu, ChartCardWrapper, ChartFiltersProvider, ChartLoading, ChartTooltipCard, ChatContext, ChatPrivacyToggle, ChatProvider, CompanyDialog, ConnectorManagementDialog, ContactAdminModal, ConversationSentiment, ConversationTopics, CopyButtonIcon, CourseAccessGuard, CourseCardSkeleton, CourseContentLoading, CourseOutline, CourseOutlineContext, CourseOutlineDrawer, CreateAgentForm, CreateAgentModal, CreateAgentWizard, CreateProjectModal, CreateWorkflowModal, CredentialBox, CredentialMiniBoxSkeleton, CredentialsList, CreditBalance, CustomDateRangePicker, CustomTooltip, DEFAULT_COWORK_REQUIRED_SIZE_GB, DEFAULT_USER_IDENTITY_ORDER, DRAGGABLE_SNAP_TRANSITION, DefaultEmptyBox, DeleteProjectModal, DeleteWorkflowModal, DiscoverContentCard, DiscoverFacetsFilter, DiscoverFilterDrawer, DocumentSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ENROLL_NOW_COURSE_STARTING_SOON_LABEL, ENROLL_NOW_LABEL, EXPRESSION_EXAMPLES, EditAlertDialog, EducationBox, EducationDialog, EducationTab, EdxIframeContext, EmptyStats, ExperienceBox, ExperienceDialog, ExperienceTab, FacetFilterContext, FloatingAccessibilityButton, Footer, GradebookTab, GroupsFilterDropdown, HostPortChipInput, IBLAI_DECISION_MODEL, INPUT_PLACEHOLDER, INVITATION_ONLY_LABEL, InstitutionDialog, IntegrationsTab, InviteUserContent, InviteUserDialog, InvitedUsersDialog, LOCAL_LLM_CHANGED_EVENT, LOCAL_MODELS, LlmModelBadge, Loader, LocalLLMTab, LocalModelsContent, LoginButton, MACOS_PERMISSIONS_COMMANDS, MEMORY_PAGE_SIZE, Markdown, MasterAgent, MasterAgentPanel, MasterAgentProvider, McpServersMenu, MemoryAdminTab, MinimumMentorAlert, MonetizationTab, NotificationDisplay, NotificationDropdown, ONBOARDING_FIELD_TYPES, ONBOARDING_METADATA_KEY, ONBOARDING_METADATA_VERSION, ONBOARDING_SECTORS, OnboardingField, OnboardingShell, OnboardingWizard, PLATFORM_AUDIT_DEEP_PAGING_THRESHOLD, PLATFORM_AUDIT_PAGE_SIZE, PRIVACY_AUDIT_LOG_DEFAULT_PAGE_SIZE, PaywallModal, PlacementExam, PlacementExamsDropdown, PlatformAuditLogDetailSheet, PlatformNavbar, PlatformNavbarSearch, PrivacyAuditLog, PrivacyAuditLogModal, PrivacyFlagDetail, Profile, ProfileTimeChart, ProgressDots, ProjectActionButtons, ProjectFilesModal, ProjectInstructionsModal, ProjectLandingPage, ProjectMentorsList, ProjectsPage, REQUEST_ACCESS_COURSE_STARTING_SOON_LABEL, REQUEST_ACCESS_LABEL, RankedBars, RenameProjectModal, ResumeBox, ResumeTab, RetrievedDocumentsButton, RichTextEditor, SERVICE_COLOR_ORDER, SandboxConfig, SearchableMultiSelect, SecretsTab, SendNotificationDialog, SessionCanvasCards, SignupButton, SkeletonActivityStatBox, SkeletonAddSkillsLoading, SkeletonCreatePathwaySearchList, SkeletonDiscoverFilterBox, SkeletonEducationBox, SkeletonMultiplier, SkeletonPathwayBox, SkeletonProfileInfoCard, SkeletonSkillBox, SkillBox, SkillDetailModal, SkillLeaderboardChart, SkillsBox, SkillsList, SlashSkillPicker, SourceChip, Spinner, StatCard, StepHeader, SubscriptionTopBanner, SummerNoteTextEditor, TAURI_COMMANDS, TAURI_EVENTS, TRACES_PAGE_SIZE, TenantSwitcher, TimeFilter, TimeTrackingProvider, TimedExam, ToolCallIndicator, ToolDialogs, TopBanner, TranscriptFileCards, TranscriptRollupBadges, TranscriptTurnDetails, TrendSparkline, USER_ONBOARDING_FORM_SLUG, USER_ONBOARDING_FORM_VERSION, USER_ONBOARDING_SUBMISSION_SLUG, UpgradePackageModal, UserAvatar, UserOnboardingWizard, UserProfileDialog, UserProfileLink, Version, VirtualMachineAdminTab, VirtualMachineNetworkSection, WHILE_DEFAULT_MAX_ITERATIONS, WHILE_DONE_HANDLE, WHILE_LOOP_HANDLE, WHILE_MAX_ITERATIONS, WebContainersI18nProvider, WorkflowSidebar, YourActivityButton, YourActivityPanel, addBookmarksTab, areChartFiltersEqual, availablePlacementExams, buildOnboardingAgentPath, buildOnboardingMetadata, buildUserOnboardingFormMetadata, buildUserOnboardingSubmissionMetadata, canOpenOrganizationSettings, canReceiveConnection, categoryIdFor, chatTextPreview, classifierAnswerType, classifierBranches, coerceOnboardingAgent, coerceOnboardingAgents, coerceUserOnboardingForm, collectVariableUsages, collectWorkflowVariables, colorForRank, colorForSeries, configureCanvasMarkdown, configureHtmlPreview, conversationDocuments, conversationTitle, conversationTopics, describeTextFile, downloadBlob, edgeIdFor, emptyUserOnboardingForm, findLastResumeBlock, findMathSegments, findOnboardingAgent, findSequentialParent, firstHumanMessage, flattenVerticalBlocks, formatAuditTimestamp, formatCompactNumber, formatFileSize, formatLatencySeconds, formatResult, formatSessionDate, formatTimeZoneLabel, getCatalog, getConditionCount, getConditions, getFirstAvailableUnit, getFriendlyToolName, getLLMModelDisplayName, getLocalLLMModel, getLocalLLMToolSupport, getNextUnitIframe, getOrg, getParentBlockById, getParentsInfosFromSublessonId, getPreviousUnitIframe, getQueryLabel, getRandomCourseImage, getSectorById, getTenant, getUnitToIframe, getUserId, getUserName, granularityForFilter, hasDistinctName, hasOnboardingContent, headlineStreak, humanizeAuditToken, humanizeFieldName, inBrowserPrint, inIframe, inferProviderKeysFromModel, initialCuaDriverInstallState, initialModelDownloadState, installOpaqueOriginMessageGuard, isAuthoredInstructions, isClassifierType, isCodeFile, isCoworkEnabled, isEmailLike, isFileReference, isLlmUsageForbidden, isLlmUsageUnavailable, isLocalLLMEnabled, isLtiPlaceholderEmail, isPlatformNavbarCreditBalanceVisible, isSlashCommandToken, isTauriApp, isUntrustedOpaqueSender, isValidTimeZone, isValidVariableName, latexToReadableText, llmUsageDateArgs, localModelDisplayName, components as markdownComponents, migrateNodeData, migrateWorkflowDefinition, modelSupportsCowork, newClassifierData, onboardingPrimaryButtonClass, onboardingSecondaryButtonClass, parseVariableDefault, placeholderSources, previewPlan, readUserOnboardingForm, readUserOnboardingSubmission, readUserOnboardingSubmissions, reconcileClassifierEdges, reindexConditionEdges, resolveAuditTimeZone, resolveBinaryMimeType, resolveCreateAgentLabels, resolveEffectiveFileExtension, resolveUserIdentity, sanitizeCss, sanitizeFilename, setCoworkEnabled, setLocalLLMEnabled, setLocalLLMModel, setLocalLLMToolSupport, shouldUseBinaryCanvas, smallestCoworkModel, startVariableDefaults, stepHasResult, stepPlaceholder, stepsBefore, summarizeTranscriptTurns, toChatPrivacyActionError, toFileReference, toRetrievedDocuments, toToolCallInfos, useAccessibility, useAgentSettingsLauncher, useAnalyticsGlobalFilters, useAnalyticsScope, useAnalyticsSettings, useAuditLog, useCatalogSearch, useChartFilters, useChatPrivacy, useChatState, useCourseDetail, useCourseMetadata, useCourses, useCreateAgentFieldPermissions, useCredentialsSchemaLogos, useCuaDriver, useDiscover, useDraggablePosition, useEdxIframe, useFinancial, useIframeMessageHandler, useLlmDisplayName, useLlmProviderCatalogue, useLlmTraces, useLlmUsage, useLocalStorage, useMasterAgentToggle, useMemory, useModelDownload, useMonetization, useOverview, usePlatformAuditLabels, usePlatformAuditLog, useProfileActivityStats, useProfileCredentials, useProfilePathways, useProfilePrograms, useProfileSkills, useProfileTimeSpent, usePrograms, useReports, useScopedMentorDbId, useScopedMentorId, useSelectedLocalModel, useSessionCanvases, useSlashSkillPicker, useSlashSkills, useT, useTauri, useTimeTracking, useTopics, useTranscripts, useUserCourses, useUserMetadata, useUsers, useWebContainersI18n, useWebContainersLocale, useYourActivity, variablePlaceholder, withCategoryLabel, withoutNoteConnectivityWarnings };
7456
+ export type { AccessibilityContextType, AccessibilityFabProps, AccessibilitySettings, AccessibilityToolbarProps, ActivityStats, AddSkillDialogProps, AddSkillDialogResultRow, AgentPromptDefaults, AgentScopeLinkProps, AgentSettingsLauncherValue, AgentSettingsLinkProps, AgentSettingsTarget, AnalyticsAgentPickerProps, AnalyticsChartPoint, AnalyticsControlBarProps, AnalyticsDataSource, AnalyticsMemoryStatsProps, AnalyticsNoticeTone, AnalyticsPlatformAuditLogProps, AnalyticsScopeValue, AnalyticsScopedMentor, AnalyticsSettings, AnalyticsTracesProps, ApiTabProps, ApplyWizardProps, AuditLogDateRange, AuditLogJsonViewProps, AuditLogScope, AvailablePlacementExam, CanvasDialogProps, CanvasMarkdownEngine, CanvasViewProps, CatalogSearchParams, CategorizedDropdownAction, CategorizedDropdownMenuProps, CategorizedItem, CategoryConfig, ChartDateRange, ChartFilters, ChatContextValue, ChatPrivacyAction, ChatPrivacyActionError, ChatPrivacyToggleProps, ChatProviderProps, ClassifierAnswerType, ClassifierBranch, ClassifierBranchKind, ClassifierCategory, ClassifierExample, ClassifierHistory, ClassifierLevel, ClassifierTryOutcome, ClassifierWhenUnsure, Condition, ContactAdminModalProps, ConversationSentimentLabels, ConversationSentimentProps, ConversationTitleSource, ConversationTopicsProps, CourseAccessGuardProps, CourseAssignmentPolicy, CourseCertificateData, CourseCompletion, CourseCompletionData, CourseCompletionSummary, CourseEdxData, CourseEligibility, CourseFacet, CourseFacetTerm, CourseGrade, CourseGradingPolicy, CourseInfoLoadingState, CourseInstructor, CourseInstructorInfo, CourseOutlineChildNode, CourseOutlineContextType, CourseOutlineNode, CourseOutlineResponse, CourseProgress, CourseSectionScore, CourseSubsection, CourseVerificationData, CreateAgentFormProps, CreateAgentFormValues, CreateAgentInitialValues, CreateAgentLabels, CreateAgentModalProps, CreateAgentOption, CreateAgentWizardProps, CreateAgentWizardStep, CreateAgentWizardStepArgs, CreateProjectModalProps, CreatedAgent, CredentialBoxProps, CuaDriverInstallProgress, CuaDriverInstallState, CuaDriverStatus, DefaultEmptyBoxProps, DeleteProjectModalProps, DiscoverContent, DiscoverContentCardComponentProps, DiscoverContentCardProps, DiskSpaceError, DocumentSidebarProps, DownloadProgress, DraggableAnchor, DraggableCorner, DraggablePosition, DraggableSide, EducationBoxProps, EdxIframeContextValue, EdxOutlineNodeLike, ExperienceBoxProps, FacetFilterContextValue, FlatVerticalBlock, FooterProps, GenericPagination, GroupOption, HostPortChipInputProps, HtmlPreviewConfig, InstallationLog, InviteUserContentProps, LlmModelBadgeProps, LlmProviderDetails, LocalLLMTabProps, LocalModel, LocalModelsContentProps, LoginButtonProps, MarkdownMenuItem, MasterAgentPanelProps, MasterAgentProps, MasterAgentProviderProps, MathSegment, McpConnector, McpServersMenuProps, MemoryAggregates, MemoryCategoryBreakdown, MemoryDateRange, MemoryRow, MemoryScope, ModelDownloadState, NodeConfig, NodeTypeItem, NodeTypeSection, Notification, NotificationDisplayProps, NotificationDropdownProps, OllamaStatus, OnboardingAgentEmbed, OnboardingAnswers, OnboardingFinalStepContext, OnboardingSector, OnboardingStepHeader, OnboardingWizardProps, ParsedDefault, PlacedCanvas, PlacementExamProps, PlatformAuditDateRange, PlatformAuditFilters, PlatformAuditLabels, PlatformNavbarActivityConfig, PlatformNavbarCreditBalanceConfig, PlatformNavbarNotificationsConfig, PlatformNavbarPlacementsConfig, PlatformNavbarPrivacyToggleConfig, PlatformNavbarProps, PlatformNavbarSearchConfig, PreviewKind, PreviewPlan, PrivacyAuditLogModalProps, PrivacyAuditLogProps, PrivacyFlagDetailProps, ProfileCustomization, ProfileTimeChartProps, ProjectsPageProps, RankedBarItem, RenameProjectModalProps, ResolvedUserIdentity, ResumeBoxProps, RetrievedDocument, RetrievedDocumentsButtonProps, SearchedMentor, SecretsTabProps, SelectedLocalModel, SessionCanvasCardsProps, SessionCanvases, SetStateAssignment, SignupButtonProps, SkeletonMultiplierProps, SkillBoxProps, SkillBoxSkill, SkillDetailModalProps, SkillDetailModalSkill, SkillLeaderboardChartProps, SkillsBoxProps, SlashSkillPickerProps, StepReference, SubscriptionTopBannerProps, SummerNoteTextEditorProps, TabEntry, TenantMetadata, TextFileKind, TimeSpent, ToolCallIndicatorProps, TopBannerProps, TranscriptFileCardFile, TranscriptFileReference, TranscriptRollupBadgesProps, TranscriptTurnDetailsProps, TranscriptTurnDetailsSlots, TranscriptTurnDetailsTurn, TranscriptTurnRollup, TransformExpression, UseCourseDetailOptions, UseCreateAgentFieldPermissionsArgs, UseCreateAgentFieldPermissionsResult, UseCredentialsSchemaLogosArgs, UseDiscoverOptions, UseDraggablePositionOptions, UseEdxIframeUrls, UseLlmDisplayNameArgs, UseLlmProviderCatalogueArgs, UseMemoryReturn, UsePlatformAuditLogReturn, UseProfilePathwaysArgs, UseProfileProgramsArgs, UseSessionCanvasesArgs, UseSlashSkillPickerArgs, UseSlashSkillPickerResult, UseSlashSkillsArgs, UseSlashSkillsResult, UseUserCoursesArgs, UserAvatarProps, UserCourseWithMetadata, UserIdentityField, UserIdentityOptions, UserIdentitySource, UserOnboardingAgent, UserOnboardingForm, UserOnboardingSubmission, UserOnboardingSubmissions, UserProfileDialogProps, UserProfileLinkProps, UserSkill, Variable, VirtualMachineAdminTabProps, VirtualMachineNetworkSectionProps, WebContainersI18nProviderProps, WebContainersI18nValue, WorkflowAgentSettingsConfig, YourActivityButtonProps, YourActivityPanelProps };
@@ -91,6 +91,23 @@ type Props$5 = {
91
91
  };
92
92
  declare const ClientErrorPage: ({ header, message, supportEmail, errorCode, showHomeButton, handleError, }: Props$5) => react_jsx_runtime.JSX.Element;
93
93
 
94
+ /** What a phone header hands to the account sheet so it can drop those buttons. */
95
+ interface AccountSheetOptions {
96
+ /** Your Activity, shown once the user has some. */
97
+ showActivity?: boolean;
98
+ /** The Assistant, shown when the app has one. */
99
+ showAssistant?: boolean;
100
+ /** Opens the credit balance; the row shows only when given. */
101
+ onCreditsClick?: () => void;
102
+ /** Opens the notifications; the row and the count on the picture show only when given. */
103
+ onNotificationsClick?: () => void;
104
+ /** The User / Admin picker, for an admin who can also see the app as a user does. */
105
+ adminView?: {
106
+ on: boolean;
107
+ onChange: (on: boolean) => void;
108
+ };
109
+ }
110
+
94
111
  /**
95
112
  * Model Manager installation and model status
96
113
  */
@@ -242,8 +259,14 @@ interface UserProfileDropdownProps {
242
259
  * per-agent link (Onboarding tab). Defaults to the browser's own origin.
243
260
  */
244
261
  onboardingBasePath?: string;
262
+ /**
263
+ * On a phone, the picture opens one bottom sheet instead of the menu: the
264
+ * menu's items plus the header features named here, so a phone header can
265
+ * drop their buttons. Leave out to keep the menu on every screen.
266
+ */
267
+ accountSheet?: AccountSheetOptions;
245
268
  }
246
- declare function UserProfileDropdown({ email, mainPlatformKey, username, userIsAdmin, userIsStudent, userIsVisiting, tenantKey, visitingTenant, mentorId, userTenants, showProfileTab, showAccountTab, showTenantSwitcher, showOrganizationsLink, showHelpLink, showLogoutButton, showLearnerModeSwitch, helpCenterUrl, enableGravatarOnProfilePic, onProfileClick, onTabChange, onBillingTabRequest, onLogout, onOrganizationsClick, onHelpClick, currentPlan, userActiveApp, LearnerModeSwitchComponent, CustomProfileModal, className, dropdownClassName, avatarSize, metadata, metadataLoaded, currentSPA, showMentorAIDisplayCheckbox, showLeaderboardDisplayCheckbox, showGradebookTab, showUsernameField, showPlatformName, enableCatalogInvite, authURL, onTenantUpdate, currentPlatformBaseDomain, rbacPermissions, enableRbac, onLoadGroupPermissions, defaultSupportPhone, enableSupportPhone, localLLMProps, isModalOpen, onModalOpenChange, defaultActiveTab, onAccountDeleted, enableMemoryTab, showBenchmarks, onboardingBasePath, }: UserProfileDropdownProps): react_jsx_runtime.JSX.Element;
269
+ declare function UserProfileDropdown({ email, mainPlatformKey, username, userIsAdmin, userIsStudent, userIsVisiting, tenantKey, visitingTenant, mentorId, userTenants, showProfileTab, showAccountTab, showTenantSwitcher, showOrganizationsLink, showHelpLink, showLogoutButton, showLearnerModeSwitch, helpCenterUrl, enableGravatarOnProfilePic, onProfileClick, onTabChange, onBillingTabRequest, onLogout, onOrganizationsClick, onHelpClick, currentPlan, userActiveApp, LearnerModeSwitchComponent, CustomProfileModal, className, dropdownClassName, avatarSize, metadata, metadataLoaded, currentSPA, showMentorAIDisplayCheckbox, showLeaderboardDisplayCheckbox, showGradebookTab, showUsernameField, showPlatformName, enableCatalogInvite, authURL, onTenantUpdate, currentPlatformBaseDomain, rbacPermissions, enableRbac, onLoadGroupPermissions, defaultSupportPhone, enableSupportPhone, localLLMProps, isModalOpen, onModalOpenChange, defaultActiveTab, onAccountDeleted, enableMemoryTab, showBenchmarks, onboardingBasePath, accountSheet, }: UserProfileDropdownProps): react_jsx_runtime.JSX.Element;
247
270
 
248
271
  interface UserProfileModalProps$1 {
249
272
  isOpen: boolean;
@@ -4413,10 +4436,12 @@ type ChatExportLabels = TranscriptLabels & {
4413
4436
  columnMessage: string;
4414
4437
  };
4415
4438
  /**
4416
- * Saves a finished export. The default is a browser download; hosts whose
4417
- * webview ignores `<a download>` (the macOS desktop app) pass a native save.
4418
- * A returned promise rejects when saving failed; resolving covers a cancelled
4419
- * save too.
4439
+ * Saves a finished file: a chat export, or a file exported from the canvas
4440
+ * file viewer (any type, under its own name). The default is a browser
4441
+ * download; hosts whose webview ignores `<a download>` (the macOS desktop
4442
+ * app) pass a native save. A returned promise rejects when saving failed;
4443
+ * resolving covers a cancelled save too. The download dialog shows a
4444
+ * rejection; the file viewer does not.
4420
4445
  */
4421
4446
  type ChatSaveFile = (blob: Blob, filename: string) => void | Promise<void>;
4422
4447
  /** `<chat|message>-<agent name>-<YYYY-MM-DD>.<txt|xlsx>` */
@@ -4572,8 +4597,9 @@ type ChatConfig = {
4572
4597
  */
4573
4598
  markdownComponent?: ChatMarkdownComponent;
4574
4599
  /**
4575
- * Saves a chat download (see {@link ChatSaveFile}). Defaults to a browser
4576
- * download; the desktop app passes its native save dialog.
4600
+ * Saves a chat download, or a file exported from the canvas file viewer,
4601
+ * which can be of any type (see {@link ChatSaveFile}). Defaults to a
4602
+ * browser download; the desktop app passes its native save dialog.
4577
4603
  */
4578
4604
  saveFile?: ChatSaveFile;
4579
4605
  /**
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -150,6 +150,7 @@
150
150
  "cmdk": "1.1.1",
151
151
  "date-fns": "4.1.0",
152
152
  "dayjs": "1.11.20",
153
+ "docx-preview": "0.4.1",
153
154
  "dompurify": "3.4.17",
154
155
  "highlight.js": "11.11.1",
155
156
  "jquery": "3.7.1",
@@ -157,12 +158,14 @@
157
158
  "katex": "0.16.44",
158
159
  "lucide-react": "0.528.0",
159
160
  "next-themes": "0.4.6",
161
+ "pdfjs-dist": "4.8.69",
160
162
  "react-day-picker": "9.7.0",
161
163
  "react-gravatar": "2.6.3",
162
164
  "react-markdown": "10.1.0",
163
165
  "react-paginate": "8.3.0",
164
166
  "react-pdf": "9.2.1",
165
167
  "react-syntax-highlighter": "15.6.6",
168
+ "read-excel-file": "9.3.17",
166
169
  "recharts": "2.15.2",
167
170
  "rehype-katex": "7.0.1",
168
171
  "rehype-parse": "9.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -136,6 +136,7 @@
136
136
  "cmdk": "1.1.1",
137
137
  "date-fns": "4.1.0",
138
138
  "dayjs": "1.11.20",
139
+ "docx-preview": "0.4.1",
139
140
  "dompurify": "3.4.17",
140
141
  "highlight.js": "11.11.1",
141
142
  "jquery": "3.7.1",
@@ -143,12 +144,14 @@
143
144
  "katex": "0.16.44",
144
145
  "lucide-react": "0.528.0",
145
146
  "next-themes": "0.4.6",
147
+ "pdfjs-dist": "4.8.69",
146
148
  "react-day-picker": "9.7.0",
147
149
  "react-gravatar": "2.6.3",
148
150
  "react-markdown": "10.1.0",
149
151
  "react-paginate": "8.3.0",
150
152
  "react-pdf": "9.2.1",
151
153
  "react-syntax-highlighter": "15.6.6",
154
+ "read-excel-file": "9.3.17",
152
155
  "recharts": "2.15.2",
153
156
  "rehype-katex": "7.0.1",
154
157
  "rehype-parse": "9.0.1",
@@ -180,9 +183,9 @@
180
183
  "react-remove-scroll": "^2.7.2",
181
184
  "react-remove-scroll-bar": "^2.3.8",
182
185
  "sonner": "^2.0.0",
183
- "@iblai/data-layer": "2.1.0",
184
- "@iblai/web-utils": "3.0.2",
185
- "@iblai/agent-ai": "2.15.3"
186
+ "@iblai/agent-ai": "2.15.3",
187
+ "@iblai/web-utils": "3.1.0",
188
+ "@iblai/data-layer": "2.3.0"
186
189
  },
187
190
  "peerDependenciesMeta": {
188
191
  "@livekit/components-react": {
@@ -1,110 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Utilities for binary artifacts — files the agent shares from its sandbox VM
5
- * (pdf, xlsx, zip, …). The backend marks them with `is_binary` / `mime_type`
6
- * and serves the bytes base64-encoded in `binary_content` on the artifact
7
- * detail endpoint only (streamed and embedded payloads null it out), so the
8
- * bytes are always fetched from the REST detail endpoint on demand.
9
- */
10
- /**
11
- * Extensions the backend can produce as binary artifacts, mapped to their
12
- * mime types. Text extensions (md, py, html, …) intentionally absent: those
13
- * keep the regular text-canvas flow. Images are not artifacts (they stay
14
- * download links), but are mapped defensively.
15
- */
16
- const BINARY_EXTENSION_MIME_TYPES = {
17
- pdf: 'application/pdf',
18
- zip: 'application/zip',
19
- gz: 'application/gzip',
20
- tar: 'application/x-tar',
21
- '7z': 'application/x-7z-compressed',
22
- rar: 'application/vnd.rar',
23
- xls: 'application/vnd.ms-excel',
24
- xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
25
- doc: 'application/msword',
26
- docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
27
- ppt: 'application/vnd.ms-powerpoint',
28
- pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
29
- odt: 'application/vnd.oasis.opendocument.text',
30
- ods: 'application/vnd.oasis.opendocument.spreadsheet',
31
- odp: 'application/vnd.oasis.opendocument.presentation',
32
- epub: 'application/epub+zip',
33
- sqlite: 'application/vnd.sqlite3',
34
- db: 'application/vnd.sqlite3',
35
- parquet: 'application/vnd.apache.parquet',
36
- bin: 'application/octet-stream',
37
- exe: 'application/octet-stream',
38
- wasm: 'application/wasm',
39
- // svg is text on the wire (is_binary=false, bytes in `content`), but it
40
- // must render in the image viewer, not the rich-text editor — see
41
- // shouldUseBinaryCanvas / artifactFileToBlob.
42
- svg: 'image/svg+xml',
43
- png: 'image/png',
44
- jpg: 'image/jpeg',
45
- jpeg: 'image/jpeg',
46
- gif: 'image/gif',
47
- webp: 'image/webp',
48
- mp3: 'audio/mpeg',
49
- wav: 'audio/wav',
50
- ogg: 'audio/ogg',
51
- mp4: 'video/mp4',
52
- webm: 'video/webm',
53
- mov: 'video/quicktime',
54
- };
55
- const normalizeExtension = (fileExtension) => (fileExtension !== null && fileExtension !== void 0 ? fileExtension : '').trim().toLowerCase().replace(/^\./, '');
56
- /** Best-effort mime type for a binary artifact. */
57
- const resolveBinaryMimeType = (fileExtension, mimeType) => {
58
- if (mimeType && mimeType.trim())
59
- return mimeType.trim();
60
- return BINARY_EXTENSION_MIME_TYPES[normalizeExtension(fileExtension)];
61
- };
62
- /**
63
- * Whether an artifact is binary. The explicit `is_binary` flag (REST) wins;
64
- * live stream events don't carry it, so fall back to the extension map.
65
- */
66
- const isBinaryArtifact = (info) => {
67
- if (typeof info.isBinary === 'boolean')
68
- return info.isBinary;
69
- if (info.mimeType && info.mimeType.trim()) {
70
- const mime = info.mimeType.trim().toLowerCase();
71
- return !mime.startsWith('text/') && mime !== 'application/json';
72
- }
73
- return normalizeExtension(info.fileExtension) in BINARY_EXTENSION_MIME_TYPES;
74
- };
75
- /**
76
- * Whether an artifact belongs in the read-only binary canvas rather than the
77
- * rich-text editor. This is `isBinaryArtifact` plus the svg special case:
78
- * svg streams as a text artifact (`is_binary: false`), but raw XML is
79
- * useless in the text editor — it renders as an image instead.
80
- */
81
- const shouldUseBinaryCanvas = (info) => normalizeExtension(info.fileExtension) === 'svg' || isBinaryArtifact(info);
82
- /**
83
- * Best-effort file extension for an artifact, preferring the explicit
84
- * `file_extension` but falling back to the title's filename suffix when the
85
- * extension is missing or a placeholder. The WS parser defaults a missing
86
- * `file_extension` to "txt" on stream events, while the backend titles
87
- * binary artifacts by filename ("report.pdf") — so when the extension is
88
- * absent/"txt" but the title ends in a known binary extension, the title
89
- * wins. A genuine text artifact is never misclassified by this: only
90
- * known-binary suffixes override.
91
- */
92
- const resolveEffectiveFileExtension = (fileExtension, title) => {
93
- var _a;
94
- const ext = normalizeExtension(fileExtension);
95
- if (ext && ext !== 'txt')
96
- return ext;
97
- const titleExt = (_a = (title !== null && title !== void 0 ? title : '')
98
- .trim()
99
- .toLowerCase()
100
- .match(/\.([a-z0-9]+)$/)) === null || _a === void 0 ? void 0 : _a[1];
101
- if (titleExt && titleExt in BINARY_EXTENSION_MIME_TYPES)
102
- return titleExt;
103
- return ext || undefined;
104
- };
105
-
106
- exports.isBinaryArtifact = isBinaryArtifact;
107
- exports.resolveBinaryMimeType = resolveBinaryMimeType;
108
- exports.resolveEffectiveFileExtension = resolveEffectiveFileExtension;
109
- exports.shouldUseBinaryCanvas = shouldUseBinaryCanvas;
110
- //# sourceMappingURL=chat-binary-artifact-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-binary-artifact-utils.js","sources":["../../../../../../../src/components/chat/chat-binary-artifact-utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;AAMG;AAgBH;;;;;AAKG;AACH,MAAM,2BAA2B,GAA2B;AAC1D,IAAA,GAAG,EAAE,iBAAiB;AACtB,IAAA,GAAG,EAAE,iBAAiB;AACtB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,GAAG,EAAE,mBAAmB;AACxB,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,GAAG,EAAE,qBAAqB;AAC1B,IAAA,GAAG,EAAE,0BAA0B;AAC/B,IAAA,IAAI,EAAE,mEAAmE;AACzE,IAAA,GAAG,EAAE,oBAAoB;AACzB,IAAA,IAAI,EAAE,yEAAyE;AAC/E,IAAA,GAAG,EAAE,+BAA+B;AACpC,IAAA,IAAI,EAAE,2EAA2E;AACjF,IAAA,GAAG,EAAE,yCAAyC;AAC9C,IAAA,GAAG,EAAE,gDAAgD;AACrD,IAAA,GAAG,EAAE,iDAAiD;AACtD,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,yBAAyB;AACjC,IAAA,EAAE,EAAE,yBAAyB;AAC7B,IAAA,OAAO,EAAE,gCAAgC;AACzC,IAAA,GAAG,EAAE,0BAA0B;AAC/B,IAAA,GAAG,EAAE,0BAA0B;AAC/B,IAAA,IAAI,EAAE,kBAAkB;;;;AAIxB,IAAA,GAAG,EAAE,eAAe;AACpB,IAAA,GAAG,EAAE,WAAW;AAChB,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,GAAG,EAAE,WAAW;AAChB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,GAAG,EAAE,WAAW;AAChB,IAAA,GAAG,EAAE,WAAW;AAChB,IAAA,GAAG,EAAE,WAAW;AAChB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,GAAG,EAAE,iBAAiB;CACvB;AAED,MAAM,kBAAkB,GAAG,CAAC,aAA6B,KACvD,CAAC,aAAa,KAAA,IAAA,IAAb,aAAa,KAAA,MAAA,GAAb,aAAa,GAAI,EAAE,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;AAE/D;MACa,qBAAqB,GAAG,CACnC,aAA6B,EAC7B,QAAwB,KACF;AACtB,IAAA,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE;AAAE,QAAA,OAAO,QAAQ,CAAC,IAAI,EAAE;AACvD,IAAA,OAAO,2BAA2B,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;AACvE;AAEA;;;AAGG;AACI,MAAM,gBAAgB,GAAG,CAAC,IAIhC,KAAa;AACZ,IAAA,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,QAAQ;IAC5D,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;QAC/C,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,KAAK,kBAAkB;IACjE;IACA,OAAO,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,2BAA2B;AAC9E;AAMA;;;;;AAKG;MACU,qBAAqB,GAAG,CAAC,IAIrC,KAAc,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,KAAK,IAAI,gBAAgB,CAAC,IAAI;AAExF;;;;;;;;;AASG;MACU,6BAA6B,GAAG,CAC3C,aAA6B,EAC7B,KAAqB,KACC;;AACtB,IAAA,MAAM,GAAG,GAAG,kBAAkB,CAAC,aAAa,CAAC;AAC7C,IAAA,IAAI,GAAG,IAAI,GAAG,KAAK,KAAK;AAAE,QAAA,OAAO,GAAG;IACpC,MAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,CAAC,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,MAAA,GAAL,KAAK,GAAI,EAAE;AAC1B,SAAA,IAAI;AACJ,SAAA,WAAW;AACX,SAAA,KAAK,CAAC,gBAAgB,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAG,CAAC,CAAC;AAC/B,IAAA,IAAI,QAAQ,IAAI,QAAQ,IAAI,2BAA2B;AAAE,QAAA,OAAO,QAAQ;IACxE,OAAO,GAAG,IAAI,SAAS;AACzB;;;;;;;"}