@trinityui/design-system 2.1.3 → 2.2.1

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 (220) hide show
  1. package/CHANGELOG.md +628 -1
  2. package/MIGRATION.md +118 -0
  3. package/README.md +546 -136
  4. package/dist/Legend.js +873 -868
  5. package/dist/app-shell.js +5705 -5757
  6. package/dist/charts.js +2399 -2407
  7. package/dist/components/AI/AIActions.d.ts +3 -3
  8. package/dist/components/AI/AIActions.d.ts.map +1 -1
  9. package/dist/components/AI/AIAvatar.d.ts +1 -1
  10. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  11. package/dist/components/AI/AIChainOfThought.d.ts +63 -188
  12. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  13. package/dist/components/AI/AIChainOfThought.types.d.ts +195 -0
  14. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -0
  15. package/dist/components/AI/AIChainOfThought.utils.d.ts +20 -0
  16. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -0
  17. package/dist/components/AI/AIChat.d.ts +5 -5
  18. package/dist/components/AI/AIChat.d.ts.map +1 -1
  19. package/dist/components/AI/AIContainer.d.ts +3 -3
  20. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  21. package/dist/components/AI/AIExplainability.d.ts +1 -1
  22. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  23. package/dist/components/AI/AILabel.d.ts +1 -1
  24. package/dist/components/AI/AILabel.d.ts.map +1 -1
  25. package/dist/components/AI/AIMessage.d.ts +15 -2
  26. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  27. package/dist/components/AI/AIRelatedQuestions.d.ts +1 -1
  28. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  29. package/dist/components/AI/AIResponseRenderer.d.ts +33 -26
  30. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  31. package/dist/components/AI/AISources.d.ts +2 -2
  32. package/dist/components/AI/AISources.d.ts.map +1 -1
  33. package/dist/components/AI/AISourcesPanel.d.ts +2 -2
  34. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  35. package/dist/components/AI/AITextBlock.d.ts +59 -19
  36. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  37. package/dist/components/AI/AIVisuals.d.ts +4 -4
  38. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  39. package/dist/components/AI/AIVoiceInput.d.ts +2 -2
  40. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  41. package/dist/components/AI/ChatHeader.d.ts +1 -1
  42. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  43. package/dist/components/AI/ChatHistoryList.d.ts +1 -1
  44. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  45. package/dist/components/AI/ChatThread.d.ts +21 -1
  46. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  47. package/dist/components/AI/InsightEngine.d.ts +29 -1
  48. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  49. package/dist/components/AI/InsightEngineInput.d.ts +1 -1
  50. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  51. package/dist/components/AI/QueryInput.d.ts +1 -1
  52. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  53. package/dist/components/AI/UserAvatar.d.ts +1 -1
  54. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  55. package/dist/components/AI/UserMessage.d.ts +1 -1
  56. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  57. package/dist/components/AI/tokens.d.ts +120 -10
  58. package/dist/components/AI/tokens.d.ts.map +1 -1
  59. package/dist/components/AppLayout/AIFab.d.ts +1 -1
  60. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  61. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +3 -2
  62. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  63. package/dist/components/AppLayout/AppLayout.d.ts +45 -1
  64. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  65. package/dist/components/AppLayout/InsightEnginePanel.d.ts +1 -1
  66. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  67. package/dist/components/AppLayout/ResizablePanel.d.ts +1 -1
  68. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  69. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +1 -1
  70. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  71. package/dist/components/Autocomplete/Autocomplete.d.ts +10 -1
  72. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  73. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +57 -0
  74. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  75. package/dist/components/Breadcrumbs/index.d.ts +3 -0
  76. package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
  77. package/dist/components/Carousel/Carousel.d.ts +26 -1
  78. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  79. package/dist/components/Carousel/index.d.ts +1 -1
  80. package/dist/components/Carousel/index.d.ts.map +1 -1
  81. package/dist/components/Charts/AreaChart.d.ts +1 -1
  82. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  83. package/dist/components/Charts/BarChart.d.ts +1 -1
  84. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  85. package/dist/components/Charts/ChartWrapper.d.ts +1 -1
  86. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  87. package/dist/components/Charts/ComposedChart.d.ts +1 -1
  88. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  89. package/dist/components/Charts/CustomLegend.d.ts +6 -8
  90. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  91. package/dist/components/Charts/CustomTooltip.d.ts +4 -3
  92. package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
  93. package/dist/components/Charts/LineChart.d.ts +1 -1
  94. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  95. package/dist/components/Charts/PieChart.d.ts +1 -1
  96. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  97. package/dist/components/Charts/RadialChart.d.ts +2 -2
  98. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  99. package/dist/components/Charts/ScatterChart.d.ts +1 -1
  100. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  101. package/dist/components/Charts/Sparkline.d.ts +1 -1
  102. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  103. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  104. package/dist/components/ChipsInput/ChipsInput.d.ts +1 -1
  105. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  106. package/dist/components/ClearableTextField/ClearableTextField.d.ts +7 -1
  107. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  108. package/dist/components/Combobox/Combobox.d.ts +1 -1
  109. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  110. package/dist/components/CommandPalette/CommandPalette.d.ts +10 -1
  111. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  112. package/dist/components/Cron/Cron.d.ts +1 -1
  113. package/dist/components/Cron/Cron.d.ts.map +1 -1
  114. package/dist/components/DataCard/DataCard.d.ts +1 -1
  115. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  116. package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
  117. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  118. package/dist/components/DockLayout/DockLayout.d.ts +1 -1
  119. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  120. package/dist/components/DocumentCard/DocumentCard.d.ts +77 -0
  121. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -0
  122. package/dist/components/DocumentCard/index.d.ts +3 -0
  123. package/dist/components/DocumentCard/index.d.ts.map +1 -0
  124. package/dist/components/FileUpload/FileUpload.d.ts +1 -1
  125. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  126. package/dist/components/FilterBar/FilterBar.d.ts +42 -1
  127. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  128. package/dist/components/Footer.d.ts +17 -2
  129. package/dist/components/Footer.d.ts.map +1 -1
  130. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  131. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  132. package/dist/components/HtmlToMui/HtmlToMui.d.ts +39 -0
  133. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -0
  134. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +35 -0
  135. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -0
  136. package/dist/components/HtmlToMui/index.d.ts +4 -0
  137. package/dist/components/HtmlToMui/index.d.ts.map +1 -0
  138. package/dist/components/IllustratedMessage.d.ts +2 -2
  139. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  140. package/dist/components/LandingPage/LandingPage.d.ts +1 -1
  141. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  142. package/dist/components/MentionsInput/MentionsInput.d.ts +1 -1
  143. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  144. package/dist/components/Modal/Modal.d.ts +1 -1
  145. package/dist/components/Modal/Modal.d.ts.map +1 -1
  146. package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
  147. package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
  148. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
  149. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  150. package/dist/components/PageHeader/PageHeader.d.ts +23 -5
  151. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  152. package/dist/components/Popper/Popper.d.ts +1 -1
  153. package/dist/components/Popper/Popper.d.ts.map +1 -1
  154. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
  155. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  156. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +62 -0
  157. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -0
  158. package/dist/components/SandboxedIframeRenderer/index.d.ts +3 -0
  159. package/dist/components/SandboxedIframeRenderer/index.d.ts.map +1 -0
  160. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  161. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  162. package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
  163. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  164. package/dist/components/SplitPane/SplitPane.d.ts +51 -7
  165. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  166. package/dist/components/SplitPane/index.d.ts +1 -1
  167. package/dist/components/SplitPane/index.d.ts.map +1 -1
  168. package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
  169. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  170. package/dist/components/Timeline/Timeline.d.ts +1 -1
  171. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  172. package/dist/components/Toast/Toast.d.ts +1 -1
  173. package/dist/components/Toast/Toast.d.ts.map +1 -1
  174. package/dist/components/TopNavHeader.d.ts +14 -2
  175. package/dist/components/TopNavHeader.d.ts.map +1 -1
  176. package/dist/components/TopNavWithSidebar.d.ts +34 -4
  177. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  178. package/dist/components/Tour/Tour.d.ts +1 -1
  179. package/dist/components/Tour/Tour.d.ts.map +1 -1
  180. package/dist/components/TransferList/TransferList.d.ts +1 -1
  181. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  182. package/dist/components/TreeView/TreeView.d.ts +1 -1
  183. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  184. package/dist/components/index.d.ts +2 -2
  185. package/dist/components/index.d.ts.map +1 -1
  186. package/dist/components/navigation/components.d.ts +5 -5
  187. package/dist/components/navigation/components.d.ts.map +1 -1
  188. package/dist/components/shared/NavBar.styles.d.ts +65 -0
  189. package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
  190. package/dist/components/shared/useResizable.d.ts +82 -0
  191. package/dist/components/shared/useResizable.d.ts.map +1 -0
  192. package/dist/components/shared/warnDeprecated.d.ts +30 -0
  193. package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
  194. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
  195. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
  196. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
  197. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  198. package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
  199. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  200. package/dist/data-table2.js +18194 -15721
  201. package/dist/data.js +116 -114
  202. package/dist/essentials.js +91 -89
  203. package/dist/form.d.ts.map +1 -1
  204. package/dist/forms.js +358 -45092
  205. package/dist/index.d.ts +44 -11
  206. package/dist/index.d.ts.map +1 -1
  207. package/dist/index.js +30203 -29843
  208. package/dist/theme.d.ts +4 -1
  209. package/dist/theme.d.ts.map +1 -1
  210. package/dist/theme.js +188 -161
  211. package/dist/tokens.d.ts +16 -0
  212. package/dist/tokens.d.ts.map +1 -1
  213. package/dist/tokens.js +1 -1
  214. package/dist/trinity.css +862 -1014
  215. package/package.json +69 -27
  216. package/dist/assets/design-system.css +0 -1
  217. package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
  218. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
  219. package/dist/components/RichTextEditor/index.d.ts +0 -3
  220. package/dist/components/RichTextEditor/index.d.ts.map +0 -1
@@ -49,7 +49,7 @@ export interface AISuggestedActionProps {
49
49
  * - primary: Filled primary style
50
50
  * - outlined: Bordered style
51
51
  */
52
- export declare const AISuggestedAction: React.FC<AISuggestedActionProps>;
52
+ export declare const AISuggestedAction: React.ForwardRefExoticComponent<AISuggestedActionProps & React.RefAttributes<HTMLButtonElement>>;
53
53
  /**
54
54
  * Props for AICircularAction component.
55
55
  */
@@ -83,7 +83,7 @@ export interface AICircularActionProps {
83
83
  * - refresh: Retry actions
84
84
  * - copy: Copy to clipboard
85
85
  */
86
- export declare const AICircularAction: React.FC<AICircularActionProps>;
86
+ export declare const AICircularAction: React.ForwardRefExoticComponent<AICircularActionProps & React.RefAttributes<HTMLDivElement>>;
87
87
  /**
88
88
  * Props for AIActionsGroup component.
89
89
  */
@@ -100,5 +100,5 @@ export interface AIActionsGroupProps {
100
100
  /**
101
101
  * AI Actions Group - Group of suggested actions.
102
102
  */
103
- export declare const AIActionsGroup: React.FC<AIActionsGroupProps>;
103
+ export declare const AIActionsGroup: React.ForwardRefExoticComponent<AIActionsGroupProps & React.RefAttributes<HTMLDivElement>>;
104
104
  //# sourceMappingURL=AIActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIActions.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIActions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAQL,OAAO,EACP,KAAK,EACN,MAAM,eAAe,CAAC;AASvB;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACtD,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAE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AW,mBAAmB;IAClC,sBAAsB;IACtB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,uBAAuB;IACvB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,4FAU1B,CAAC"}
@@ -28,5 +28,5 @@ export interface AIAvatarProps {
28
28
  /**
29
29
  * AI Avatar - Visual representation of the AI assistant.
30
30
  */
31
- export declare const AIAvatar: React.FC<AIAvatarProps>;
31
+ export declare const AIAvatar: React.ForwardRefExoticComponent<AIAvatarProps & React.RefAttributes<HTMLDivElement>>;
32
32
  //# sourceMappingURL=AIAvatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIAvatar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQvD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAiBD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiC5C,CAAC"}
1
+ {"version":3,"file":"AIAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIAvatar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQvD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAiBD;;GAEG;AACH,eAAO,MAAM,QAAQ,sFAgCnB,CAAC"}
@@ -5,6 +5,66 @@
5
5
  * Evolved Chain-of-Thought UI — shows AI reasoning steps in a digestible,
6
6
  * personable way. Inspired by Replit, Perplexity, and VS Code Coding Agent.
7
7
  *
8
+ * ## State Machine
9
+ *
10
+ * AIChainOfThought displays a sequence of `ChainPhase` objects. Each phase has
11
+ * a derived `status` (see `derivePhaseStatus()`) based on its type-specific
12
+ * completion signals:
13
+ *
14
+ * ```
15
+ * ┌──────────────────────────────────────────┐
16
+ * │ PHASE LIFECYCLE │
17
+ * └──────────────────────────────────────────┘
18
+ *
19
+ * ┌─pending────► active ──► completed ──┐ ╳ error
20
+ * │ │ ▲
21
+ * │ ▼ │
22
+ * │ (next phase │
23
+ * │ starts here) │
24
+ * │ │
25
+ * └──────────── retry / reset ───────────────────┘
26
+ * ```
27
+ *
28
+ * Phase-type-specific "active → completed" triggers:
29
+ *
30
+ * | Phase type | Becomes `active` when | Becomes `completed` when |
31
+ * |----------------|---------------------------------|---------------------------------------------------|
32
+ * | `understanding`| Has ≥1 thought bubble | `phase.complete === true` |
33
+ * | `plan` | Has ≥1 step | `phase.complete === true` |
34
+ * | `execution` | Any task is not `pending` | All tasks are `completed` or user set `complete` |
35
+ * | `output` | Has artifacts or `complete` | `phase.complete === true` |
36
+ * | `insight` | Has content or `complete` | `phase.complete === true` |
37
+ *
38
+ * **Error state:** Any phase flips to `error` if its `error` field is set
39
+ * (execution) or if `phase.status === 'error'` is explicitly set. Rendering
40
+ * shows the ErrorBanner and a retry affordance.
41
+ *
42
+ * ## UI State (internal)
43
+ *
44
+ * The component owns the following UI-only state. Do NOT pass these as props —
45
+ * they're affordances, not domain data:
46
+ *
47
+ * - `collapsed: boolean` — whether the "thinking" phases are collapsed behind
48
+ * the toggle bar. Auto-flips to `true` when all thinking phases complete AND
49
+ * the final-response phase arrives (controlled by `hasAutoCollapsed` ref).
50
+ * - `expanded: Record<phaseId, boolean>` — per-phase expansion state, seeded
51
+ * from each phase's `defaultExpanded` field.
52
+ *
53
+ * ## Parent-owned data
54
+ *
55
+ * - `phases: ChainPhase[]` — array of phase objects, each with a discriminated
56
+ * `type` field. The parent is responsible for updating this over time as the
57
+ * AI streams its reasoning.
58
+ * - `sources`, `relatedQuestions`, `suggestedActions` — presented after the
59
+ * final-response phase appears.
60
+ *
61
+ * ## Auto-collapse behavior
62
+ *
63
+ * When all "thinking" phases (default: understanding / plan / execution) reach
64
+ * `completed` AND one or more "final" phases (output / insight) appear, the
65
+ * thinking group collapses automatically — only fires once, tracked via
66
+ * `hasAutoCollapsed` ref so subsequent toggles stick.
67
+ *
8
68
  * Features:
9
69
  * - Collapsible "Thought Process" toggle bar with phase dots & elapsed time
10
70
  * - Understanding phase with thought bubbles (supports bold/code), sources
@@ -27,192 +87,8 @@
27
87
  * ```
28
88
  */
29
89
  import React from 'react';
30
- import { SxProps, Theme } from '@mui/material';
31
- import { type AISourceCategory } from './AISourcesPanel';
32
- /** Status of an individual execution step */
33
- export type StepStatus = 'pending' | 'running' | 'completed' | 'error' | 'retrying';
34
- /** Status of a phase overall */
35
- export type PhaseStatus = 'pending' | 'active' | 'completed' | 'error';
36
- export interface ChainSource {
37
- /** Icon name */
38
- icon?: string;
39
- /** Source label */
40
- label: string;
41
- /** Source type badge text */
42
- type?: string;
43
- }
44
- export interface TaskError {
45
- /** Error message */
46
- message: string;
47
- /** Error code (e.g. "ERROR 55P03") */
48
- code?: string;
49
- /** Resolution description */
50
- resolution?: string;
51
- }
52
- export interface ExecutionTask {
53
- /** Task label */
54
- label: string;
55
- /** Sub-detail text shown while running */
56
- detail?: string;
57
- /** Timing string */
58
- time?: string;
59
- /** Current status */
60
- status: StepStatus;
61
- /** Error details (when status is 'error') */
62
- error?: TaskError;
63
- /** Retry detail text */
64
- retryDetail?: string;
65
- /** Retry timing */
66
- retryTime?: string;
67
- }
68
- export interface ChainArtifact {
69
- /** Unique id */
70
- id: string;
71
- /** Display label */
72
- label: string;
73
- /** Icon name */
74
- icon?: string;
75
- /** Short description */
76
- description?: string;
77
- /** File format badge (e.g. "CSV", "Interactive", "PDF") */
78
- format?: string;
79
- /** Meta text (e.g. "12,420 records") */
80
- meta?: string;
81
- /** Whether to show mini chart bars */
82
- showChart?: boolean;
83
- /** Click handler */
84
- onClick?: () => void;
85
- }
86
- export interface OutputStat {
87
- /** Icon name */
88
- icon?: string;
89
- /** Stat label */
90
- label: string;
91
- /** Stat value */
92
- value: string;
93
- }
94
- export interface InsightMetric {
95
- /** Metric value (e.g. "+34%") */
96
- value: string;
97
- /** Metric label (e.g. "APAC Growth") */
98
- label: string;
99
- }
100
- export interface InsightReference {
101
- /** Icon name */
102
- icon?: string;
103
- /** Reference title */
104
- title: string;
105
- /** Badge text (e.g. "Internal", "Docs") */
106
- badge?: string;
107
- /** Description */
108
- description?: string;
109
- /** Meta text (e.g. "Updated 2h ago") */
110
- meta?: string;
111
- }
112
- interface PhaseBase {
113
- /** Unique identifier */
114
- id: string;
115
- /** Display title */
116
- title: string;
117
- /** Subtitle / description */
118
- subtitle?: string;
119
- /** Phase status */
120
- status?: PhaseStatus;
121
- /** Duration string shown when completed */
122
- duration?: string;
123
- /** Whether phase body is initially expanded */
124
- defaultExpanded?: boolean;
125
- }
126
- /** Understanding phase — thought bubbles + sources */
127
- export interface UnderstandingPhase extends PhaseBase {
128
- type: 'understanding';
129
- /** Thought bubble contents (supports HTML: strong, code) */
130
- thoughts: string[];
131
- /** Sources consulted */
132
- sources?: ChainSource[];
133
- }
134
- /** Plan phase — numbered steps with optional Run button */
135
- export interface PlanPhase extends PhaseBase {
136
- type: 'plan';
137
- /** Ordered list of plan steps */
138
- steps: string[];
139
- /** Optional "Run" button handler */
140
- onRun?: () => void;
141
- /** Whether the run button is shown */
142
- showRun?: boolean;
143
- }
144
- /** Execution phase — tasks with detail, error, and retry */
145
- export interface ExecutionPhase extends PhaseBase {
146
- type: 'execution';
147
- /** Execution tasks */
148
- tasks: ExecutionTask[];
149
- }
150
- /** Output phase — summary + artifact cards */
151
- export interface OutputPhase extends PhaseBase {
152
- type: 'output';
153
- /** Summary title */
154
- summary?: string;
155
- /** Summary description */
156
- description?: string;
157
- /** Stats row */
158
- stats?: OutputStat[];
159
- /** Artifact cards */
160
- artifacts: ChainArtifact[];
161
- }
162
- /** Insight phase — highlighted body, metrics, references */
163
- export interface InsightPhase extends PhaseBase {
164
- type: 'insight';
165
- /** The insight body (supports HTML: p, strong, code, span.insight-highlight) */
166
- content: string;
167
- /** Optional confidence 0-1 */
168
- confidence?: number;
169
- /** Key metrics */
170
- metrics?: InsightMetric[];
171
- /** References / sources */
172
- references?: InsightReference[];
173
- }
174
- /** Discriminated union of all phase types */
175
- export type ChainPhase = UnderstandingPhase | PlanPhase | ExecutionPhase | OutputPhase | InsightPhase;
176
- export interface AIChainOfThoughtProps {
177
- /** The original user query (shown at top) */
178
- query?: string;
179
- /** Ordered list of reasoning phases */
180
- phases: ChainPhase[];
181
- /** Whether to show the collapsible thought-process toggle bar */
182
- showToggle?: boolean;
183
- /** Whether the thought process starts collapsed */
184
- defaultCollapsed?: boolean;
185
- /** Which phase IDs are "thinking" phases (shown in toggle, collapsible).
186
- * Output and Insight phases are always shown outside the collapsible area. */
187
- thinkingPhaseIds?: string[];
188
- /** Whether to animate phase entrance */
189
- animated?: boolean;
190
- /** Elapsed time string shown in toggle bar */
191
- elapsedTime?: string;
192
- /** Source citations displayed after the AI response (reuses AISourcesPanel) */
193
- sources?: AISourceCategory[];
194
- /** Related follow-up questions (reuses AIRelatedQuestions) */
195
- relatedQuestions?: string[];
196
- /** Callback when a related question is clicked */
197
- onQuestionClick?: (question: string) => void;
198
- /** Suggested actions shown after the response (reuses AISuggestedAction) */
199
- suggestedActions?: Array<{
200
- label: string;
201
- onClick?: () => void;
202
- }>;
203
- /** Timestamp displayed in the AI message footer */
204
- timestamp?: string;
205
- /** Callback for copy action on the AI message */
206
- onCopy?: () => void;
207
- /** Callback for feedback (thumbs up/down) on the AI message */
208
- onFeedback?: (positive: boolean) => void;
209
- /** Callback for share action on the AI message */
210
- onShare?: () => void;
211
- /** Callback for download action on the AI message */
212
- onDownload?: () => void;
213
- /** Custom sx */
214
- sx?: SxProps<Theme>;
215
- }
90
+ import type { StepStatus, PhaseStatus, ChainSource, TaskError, ExecutionTask, ChainArtifact, OutputStat, InsightMetric, InsightReference, UnderstandingPhase, PlanPhase, ExecutionPhase, OutputPhase, InsightPhase, ChainPhase, AIChainOfThoughtProps } from './AIChainOfThought.types';
91
+ export type { StepStatus, PhaseStatus, ChainSource, TaskError, ExecutionTask, ChainArtifact, OutputStat, InsightMetric, InsightReference, UnderstandingPhase, PlanPhase, ExecutionPhase, OutputPhase, InsightPhase, ChainPhase, AIChainOfThoughtProps, };
216
92
  /**
217
93
  * AIChainOfThought — Evolved reasoning UI.
218
94
  *
@@ -223,6 +99,5 @@ export interface AIChainOfThoughtProps {
223
99
  * "Thought Process" toggle bar. Output and Insight phases are always visible
224
100
  * as the final response.
225
101
  */
226
- export declare const AIChainOfThought: React.FC<AIChainOfThoughtProps>;
227
- export {};
102
+ export declare const AIChainOfThought: React.ForwardRefExoticComponent<AIChainOfThoughtProps & React.RefAttributes<HTMLDivElement>>;
228
103
  //# sourceMappingURL=AIChainOfThought.d.ts.map
@@ -1 +1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AC;CACrB;AA8vCD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwN5D,CAAC"}
1
+ {"version":3,"file":"AIChainOfThought.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAC;AAsBxE,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAIlC,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,qBAAqB,GACtB,CAAC;AAqvCF;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,8FAwO5B,CAAC"}
@@ -0,0 +1,195 @@
1
+ /**
2
+ * @fileoverview Types for AIChainOfThought.
3
+ * @module components/AI/AIChainOfThought.types
4
+ *
5
+ * Extracted from `AIChainOfThought.tsx` so the type surface can be imported
6
+ * without pulling in the full 1800-line component (e.g. for test fixtures,
7
+ * mock data generators, or server-side rendering of chain data).
8
+ */
9
+ import type { SxProps, Theme } from '@mui/material';
10
+ import type { AISourceCategory } from './AISourcesPanel';
11
+ /** Status of an individual execution step */
12
+ export type StepStatus = 'pending' | 'running' | 'completed' | 'error' | 'retrying';
13
+ /** Status of a phase overall */
14
+ export type PhaseStatus = 'pending' | 'active' | 'completed' | 'error';
15
+ export interface ChainSource {
16
+ /** Icon name */
17
+ icon?: string;
18
+ /** Source label */
19
+ label: string;
20
+ /** Source type badge text */
21
+ type?: string;
22
+ }
23
+ export interface TaskError {
24
+ /** Error message */
25
+ message: string;
26
+ /** Error code (e.g. "ERROR 55P03") */
27
+ code?: string;
28
+ /** Resolution description */
29
+ resolution?: string;
30
+ }
31
+ export interface ExecutionTask {
32
+ /** Task label */
33
+ label: string;
34
+ /** Sub-detail text shown while running */
35
+ detail?: string;
36
+ /** Timing string */
37
+ time?: string;
38
+ /** Current status */
39
+ status: StepStatus;
40
+ /** Error details (when status is 'error') */
41
+ error?: TaskError;
42
+ /** Retry detail text */
43
+ retryDetail?: string;
44
+ /** Retry timing */
45
+ retryTime?: string;
46
+ }
47
+ export interface ChainArtifact {
48
+ /** Unique id */
49
+ id: string;
50
+ /** Display label */
51
+ label: string;
52
+ /** Icon name */
53
+ icon?: string;
54
+ /** Short description */
55
+ description?: string;
56
+ /** File format badge (e.g. "CSV", "Interactive", "PDF") */
57
+ format?: string;
58
+ /** Meta text (e.g. "12,420 records") */
59
+ meta?: string;
60
+ /** Whether to show mini chart bars */
61
+ showChart?: boolean;
62
+ /** Click handler */
63
+ onClick?: () => void;
64
+ }
65
+ export interface OutputStat {
66
+ /** Icon name */
67
+ icon?: string;
68
+ /** Stat label */
69
+ label: string;
70
+ /** Stat value */
71
+ value: string;
72
+ }
73
+ export interface InsightMetric {
74
+ /** Metric value (e.g. "+34%") */
75
+ value: string;
76
+ /** Metric label (e.g. "APAC Growth") */
77
+ label: string;
78
+ }
79
+ export interface InsightReference {
80
+ /** Icon name */
81
+ icon?: string;
82
+ /** Reference title */
83
+ title: string;
84
+ /** Badge text (e.g. "Internal", "Docs") */
85
+ badge?: string;
86
+ /** Description */
87
+ description?: string;
88
+ /** Meta text (e.g. "Updated 2h ago") */
89
+ meta?: string;
90
+ }
91
+ export interface PhaseBase {
92
+ /** Unique identifier */
93
+ id: string;
94
+ /** Display title */
95
+ title: string;
96
+ /** Subtitle / description */
97
+ subtitle?: string;
98
+ /** Phase status */
99
+ status?: PhaseStatus;
100
+ /** Duration string shown when completed */
101
+ duration?: string;
102
+ /** Whether phase body is initially expanded */
103
+ defaultExpanded?: boolean;
104
+ }
105
+ /** Understanding phase — thought bubbles + sources */
106
+ export interface UnderstandingPhase extends PhaseBase {
107
+ type: 'understanding';
108
+ /** Thought bubble contents (supports HTML: strong, code) */
109
+ thoughts: string[];
110
+ /** Sources consulted */
111
+ sources?: ChainSource[];
112
+ }
113
+ /** Plan phase — numbered steps with optional Run button */
114
+ export interface PlanPhase extends PhaseBase {
115
+ type: 'plan';
116
+ /** Ordered list of plan steps */
117
+ steps: string[];
118
+ /** Optional "Run" button handler */
119
+ onRun?: () => void;
120
+ /** Whether the run button is shown */
121
+ showRun?: boolean;
122
+ }
123
+ /** Execution phase — tasks with detail, error, and retry */
124
+ export interface ExecutionPhase extends PhaseBase {
125
+ type: 'execution';
126
+ /** Execution tasks */
127
+ tasks: ExecutionTask[];
128
+ }
129
+ /** Output phase — summary + artifact cards */
130
+ export interface OutputPhase extends PhaseBase {
131
+ type: 'output';
132
+ /** Summary title */
133
+ summary?: string;
134
+ /** Summary description */
135
+ description?: string;
136
+ /** Stats row */
137
+ stats?: OutputStat[];
138
+ /** Artifact cards */
139
+ artifacts: ChainArtifact[];
140
+ }
141
+ /** Insight phase — highlighted body, metrics, references */
142
+ export interface InsightPhase extends PhaseBase {
143
+ type: 'insight';
144
+ /** The insight body (supports HTML: p, strong, code, span.insight-highlight) */
145
+ content: string;
146
+ /** Optional confidence 0-1 */
147
+ confidence?: number;
148
+ /** Key metrics */
149
+ metrics?: InsightMetric[];
150
+ /** References / sources */
151
+ references?: InsightReference[];
152
+ }
153
+ /** Discriminated union of all phase types */
154
+ export type ChainPhase = UnderstandingPhase | PlanPhase | ExecutionPhase | OutputPhase | InsightPhase;
155
+ export interface AIChainOfThoughtProps {
156
+ /** The original user query (shown at top) */
157
+ query?: string;
158
+ /** Ordered list of reasoning phases */
159
+ phases: ChainPhase[];
160
+ /** Whether to show the collapsible thought-process toggle bar */
161
+ showToggle?: boolean;
162
+ /** Whether the thought process starts collapsed */
163
+ defaultCollapsed?: boolean;
164
+ /** Which phase IDs are "thinking" phases (shown in toggle, collapsible).
165
+ * Output and Insight phases are always shown outside the collapsible area. */
166
+ thinkingPhaseIds?: string[];
167
+ /** Whether to animate phase entrance */
168
+ animated?: boolean;
169
+ /** Elapsed time string shown in toggle bar */
170
+ elapsedTime?: string;
171
+ /** Source citations displayed after the AI response (reuses AISourcesPanel) */
172
+ sources?: AISourceCategory[];
173
+ /** Related follow-up questions (reuses AIRelatedQuestions) */
174
+ relatedQuestions?: string[];
175
+ /** Callback when a related question is clicked */
176
+ onQuestionClick?: (question: string) => void;
177
+ /** Suggested actions shown after the response (reuses AISuggestedAction) */
178
+ suggestedActions?: Array<{
179
+ label: string;
180
+ onClick?: () => void;
181
+ }>;
182
+ /** Timestamp displayed in the AI message footer */
183
+ timestamp?: string;
184
+ /** Callback for copy action on the AI message */
185
+ onCopy?: () => void;
186
+ /** Callback for feedback (thumbs up/down) on the AI message */
187
+ onFeedback?: (positive: boolean) => void;
188
+ /** Callback for share action on the AI message */
189
+ onShare?: () => void;
190
+ /** Callback for download action on the AI message */
191
+ onDownload?: () => void;
192
+ /** Custom sx */
193
+ sx?: SxProps<Theme>;
194
+ }
195
+ //# sourceMappingURL=AIChainOfThought.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChainOfThought.types.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,MAAM,UAAU,GAAG,S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O,CAAC;IAC3B;mFAC+E;IAC/E,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,kDAAkD;IAClD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IAClE,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @fileoverview Pure helpers for AIChainOfThought.
3
+ * @module components/AI/AIChainOfThought.utils
4
+ *
5
+ * Extracted from `AIChainOfThought.tsx` so the state-derivation logic can be
6
+ * unit-tested in isolation without mounting the full 1800-line component.
7
+ */
8
+ import type { ChainPhase, PhaseStatus } from './AIChainOfThought.types';
9
+ /**
10
+ * Derive a `PhaseStatus` from a `ChainPhase`. If the phase has an explicit
11
+ * `status` field, that wins; otherwise the status is inferred from phase-type
12
+ * signals (execution tasks' statuses, output artifacts, etc.).
13
+ *
14
+ * See the "State Machine" section in `AIChainOfThought.tsx` for the full
15
+ * decision table.
16
+ *
17
+ * This function is pure and side-effect-free — safe to call during render.
18
+ */
19
+ export declare function derivePhaseStatus(phase: ChainPhase): PhaseStatus;
20
+ //# sourceMappingURL=AIChainOfThought.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChainOfThought.utils.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,CAYhE"}
@@ -25,7 +25,7 @@ import { SxProps, Theme } from '@mui/material';
25
25
  export type MessageRole = 'user' | 'assistant';
26
26
  /**
27
27
  * @deprecated Use `AIMessage` instead for rendering AI responses.
28
- * AIChatMessage duplicates AIMessage functionality and will be removed in a future release.
28
+ * AIChatMessage duplicates AIMessage functionality and will be removed in v3.0.0.
29
29
  *
30
30
  * Migration:
31
31
  * ```tsx
@@ -81,7 +81,7 @@ export interface AIChatMessageProps {
81
81
  *
82
82
  * Vertical rhythm is controlled by parent container spacing.
83
83
  */
84
- export declare const AIChatMessage: React.FC<AIChatMessageProps>;
84
+ export declare const AIChatMessage: React.ForwardRefExoticComponent<AIChatMessageProps & React.RefAttributes<HTMLDivElement>>;
85
85
  /**
86
86
  * Props for AIChatInput component.
87
87
  */
@@ -110,7 +110,7 @@ export interface AIChatInputProps {
110
110
  /**
111
111
  * AI Chat Input - Input field for chat messages with send and voice buttons.
112
112
  */
113
- export declare const AIChatInput: React.FC<AIChatInputProps>;
113
+ export declare const AIChatInput: React.ForwardRefExoticComponent<AIChatInputProps & React.RefAttributes<HTMLDivElement>>;
114
114
  /**
115
115
  * Props for AITypingIndicator component.
116
116
  */
@@ -123,7 +123,7 @@ export interface AITypingIndicatorProps {
123
123
  /**
124
124
  * AI Typing Indicator - Shows when AI is generating a response.
125
125
  */
126
- export declare const AITypingIndicator: React.FC<AITypingIndicatorProps>;
126
+ export declare const AITypingIndicator: React.ForwardRefExoticComponent<AITypingIndicatorProps & React.RefAttributes<HTMLDivElement>>;
127
127
  /**
128
128
  * Props for AIQuickReply component.
129
129
  */
@@ -138,5 +138,5 @@ export interface AIQuickReplyProps {
138
138
  /**
139
139
  * AI Quick Reply - Suggested quick reply options.
140
140
  */
141
- export declare const AIQuickReply: React.FC<AIQuickReplyProps>;
141
+ export declare const AIQuickReply: React.ForwardRefExoticComponent<AIQuickReplyProps & React.RefAttributes<HTMLDivElement>>;
142
142
  //# sourceMappingURL=AIChat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIChat.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAUL,OAAO,EACP,KAAK,EACN,MAAM,eAAe,CAAC;AAmBvB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,iCAAiC;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC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,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,yCAAyC;IACzC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,yFA+IvB,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,+FAwC7B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wBAAwB;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,0FAuBxB,CAAC"}
@@ -45,7 +45,7 @@ export interface AIContainerProps {
45
45
  /**
46
46
  * AI Container - Wrapper for AI content with optional header.
47
47
  */
48
- export declare const AIContainer: React.FC<AIContainerProps>;
48
+ export declare const AIContainer: React.ForwardRefExoticComponent<AIContainerProps & React.RefAttributes<HTMLDivElement>>;
49
49
  /**
50
50
  * Props for AIExpandableSection component.
51
51
  */
@@ -70,7 +70,7 @@ export interface AIExpandableSectionProps {
70
70
  /**
71
71
  * AI Expandable Section - Collapsible content section.
72
72
  */
73
- export declare const AIExpandableSection: React.FC<AIExpandableSectionProps>;
73
+ export declare const AIExpandableSection: React.ForwardRefExoticComponent<AIExpandableSectionProps & React.RefAttributes<HTMLDivElement>>;
74
74
  /**
75
75
  * Props for AIPersonaCard component.
76
76
  */
@@ -93,5 +93,5 @@ export interface AIPersonaCardProps {
93
93
  /**
94
94
  * AI Persona Card - Card for selecting AI personas/agents.
95
95
  */
96
- export declare const AIPersonaCard: React.FC<AIPersonaCardProps>;
96
+ export declare const AIPersonaCard: React.ForwardRefExoticComponent<AIPersonaCardProps & React.RefAttributes<HTMLDivElement>>;
97
97
  //# sourceMappingURL=AIContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EASL,OAAO,EACP,KAAK,EACN,MAAM,eAAe,CAAC;AAUvB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0DlD,CAAC;AAMF;;GA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