@marketrix.ai/widget 3.8.10 → 3.8.53

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 (216) hide show
  1. package/README.md +158 -169
  2. package/dist/src/components/MarketrixWidget.d.ts +0 -1
  3. package/dist/src/components/base/Avatar.d.ts +0 -1
  4. package/dist/src/components/base/Badge.d.ts +0 -1
  5. package/dist/src/components/base/Button.d.ts +0 -1
  6. package/dist/src/components/base/Card.d.ts +0 -1
  7. package/dist/src/components/base/Dialog.d.ts +9 -12
  8. package/dist/src/components/base/Flex.d.ts +0 -1
  9. package/dist/src/components/base/Icon.d.ts +0 -1
  10. package/dist/src/components/base/IconButton.d.ts +0 -1
  11. package/dist/src/components/base/Indicator.d.ts +0 -1
  12. package/dist/src/components/base/Menu.d.ts +4 -5
  13. package/dist/src/components/base/Pill.d.ts +0 -1
  14. package/dist/src/components/base/Spinner.d.ts +0 -1
  15. package/dist/src/components/base/Stack.d.ts +0 -1
  16. package/dist/src/components/base/Surface.d.ts +0 -1
  17. package/dist/src/components/base/Text.d.ts +0 -1
  18. package/dist/src/components/base/Textarea.d.ts +0 -1
  19. package/dist/src/components/base/Video.d.ts +0 -1
  20. package/dist/src/components/base/icons.d.ts +0 -256
  21. package/dist/src/components/base/layoutProps.d.ts +0 -1
  22. package/dist/src/components/base/tokens.d.ts +0 -1
  23. package/dist/src/components/base/useDisclosure.d.ts +0 -1
  24. package/dist/src/components/blocks/ChatInput.d.ts +0 -1
  25. package/dist/src/components/blocks/HeaderBar.d.ts +0 -1
  26. package/dist/src/components/blocks/NotificationToast.d.ts +0 -1
  27. package/dist/src/components/blocks/WidgetDialog.d.ts +0 -13
  28. package/dist/src/components/blocks/WidgetFab.d.ts +0 -1
  29. package/dist/src/components/chat/MessageContent.d.ts +0 -1
  30. package/dist/src/components/chat/MessageItem.d.ts +0 -1
  31. package/dist/src/components/chat/MessageList.d.ts +1 -2
  32. package/dist/src/components/chat/ProgressLine.d.ts +0 -1
  33. package/dist/src/components/chat/SuggestedActions.d.ts +0 -1
  34. package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -1
  35. package/dist/src/components/chat/ThinkingIndicator.d.ts +0 -1
  36. package/dist/src/components/chat/VideoStreamDisplay.d.ts +0 -1
  37. package/dist/src/components/navigation/MessengerShell.d.ts +1 -3
  38. package/dist/src/components/navigation/ResizeHandles.d.ts +0 -1
  39. package/dist/src/components/navigation/ShellTabBar.d.ts +0 -1
  40. package/dist/src/components/navigation/ViewTransition.d.ts +0 -1
  41. package/dist/src/components/ui/StateMessage.d.ts +0 -1
  42. package/dist/src/components/ui/WidgetSettingsLoader.d.ts +1 -2
  43. package/dist/src/components/views/ChatView.d.ts +1 -3
  44. package/dist/src/components/views/HomeView.d.ts +0 -1
  45. package/dist/src/constants/theme.d.ts +0 -1
  46. package/dist/src/context/ConversationContext.d.ts +56 -0
  47. package/dist/src/context/UIStateContext.d.ts +0 -1
  48. package/dist/src/context/WidgetProviders.d.ts +8 -7
  49. package/dist/src/context/sseReducer.d.ts +3 -4
  50. package/dist/src/design-system/component-tokens.d.ts +0 -1
  51. package/dist/src/design-system/layers.d.ts +0 -1
  52. package/dist/src/design-system/semantic-tokens.d.ts +0 -1
  53. package/dist/src/design-system/shadows.d.ts +0 -1
  54. package/dist/src/design-system/token-adapter.d.ts +0 -1
  55. package/dist/src/hooks/useDragSnap.d.ts +0 -1
  56. package/dist/src/hooks/useFocusTrap.d.ts +0 -1
  57. package/dist/src/hooks/useResize.d.ts +0 -1
  58. package/dist/src/hooks/useScreenShare.d.ts +0 -1
  59. package/dist/src/hooks/useScrollLock.d.ts +0 -1
  60. package/dist/src/hooks/useWidget.d.ts +2 -6
  61. package/dist/src/index.d.ts +0 -1
  62. package/dist/src/lib/utils.d.ts +0 -1
  63. package/dist/src/sdk/contract.d.ts +0 -371
  64. package/dist/src/sdk/contracts/activityLog.d.ts +0 -25
  65. package/dist/src/sdk/contracts/application.d.ts +54 -5
  66. package/dist/src/sdk/contracts/chat.d.ts +0 -1
  67. package/dist/src/sdk/contracts/common.d.ts +10 -14
  68. package/dist/src/sdk/contracts/entities.d.ts +12 -271
  69. package/dist/src/sdk/contracts/widget.d.ts +0 -973
  70. package/dist/src/sdk/index.d.ts +1 -372
  71. package/dist/src/services/ApiService.d.ts +1 -3
  72. package/dist/src/services/ChatService.d.ts +3 -6
  73. package/dist/src/services/ConfigManager.d.ts +0 -1
  74. package/dist/src/services/DomService.d.ts +3 -33
  75. package/dist/src/services/ScreenShareService.d.ts +0 -6
  76. package/dist/src/services/SessionManager.d.ts +0 -1
  77. package/dist/src/services/SessionRecorder.d.ts +0 -1
  78. package/dist/src/services/ShowModeService.d.ts +0 -1
  79. package/dist/src/services/StorageService.d.ts +3 -5
  80. package/dist/src/services/StreamClient.d.ts +0 -2
  81. package/dist/src/services/ToolService.d.ts +3 -4
  82. package/dist/src/services/ValidationService.d.ts +9 -12
  83. package/dist/src/services/WidgetService.d.ts +0 -2
  84. package/dist/src/test/a11y-utils.d.ts +0 -1
  85. package/dist/src/test/fixtures.d.ts +0 -1
  86. package/dist/src/test/setup.d.ts +0 -1
  87. package/dist/src/types/browserTools.d.ts +2 -9
  88. package/dist/src/types/index.d.ts +3 -19
  89. package/dist/src/utils/apiUtils.d.ts +0 -1
  90. package/dist/src/utils/bootstrap.d.ts +0 -11
  91. package/dist/src/utils/chat.d.ts +0 -11
  92. package/dist/src/utils/common.d.ts +0 -1
  93. package/dist/src/utils/dom.d.ts +0 -13
  94. package/dist/src/utils/format.d.ts +0 -1
  95. package/dist/src/utils/suggestedActions.d.ts +0 -1
  96. package/dist/src/utils/validation.d.ts +0 -9
  97. package/dist/src/utils/widgetPositioning.d.ts +0 -1
  98. package/dist/widget.mjs +62 -65
  99. package/dist/widget.mjs.map +1 -1
  100. package/package.json +15 -15
  101. package/dist/index.html +0 -1697
  102. package/dist/src/components/MarketrixWidget.d.ts.map +0 -1
  103. package/dist/src/components/base/Avatar.d.ts.map +0 -1
  104. package/dist/src/components/base/Badge.d.ts.map +0 -1
  105. package/dist/src/components/base/Button.d.ts.map +0 -1
  106. package/dist/src/components/base/Card.d.ts.map +0 -1
  107. package/dist/src/components/base/Dialog.d.ts.map +0 -1
  108. package/dist/src/components/base/Flex.d.ts.map +0 -1
  109. package/dist/src/components/base/Icon.d.ts.map +0 -1
  110. package/dist/src/components/base/IconButton.d.ts.map +0 -1
  111. package/dist/src/components/base/Indicator.d.ts.map +0 -1
  112. package/dist/src/components/base/Menu.d.ts.map +0 -1
  113. package/dist/src/components/base/Pill.d.ts.map +0 -1
  114. package/dist/src/components/base/Spinner.d.ts.map +0 -1
  115. package/dist/src/components/base/Stack.d.ts.map +0 -1
  116. package/dist/src/components/base/Surface.d.ts.map +0 -1
  117. package/dist/src/components/base/Text.d.ts.map +0 -1
  118. package/dist/src/components/base/Textarea.d.ts.map +0 -1
  119. package/dist/src/components/base/Video.d.ts.map +0 -1
  120. package/dist/src/components/base/icons.d.ts.map +0 -1
  121. package/dist/src/components/base/index.d.ts +0 -22
  122. package/dist/src/components/base/index.d.ts.map +0 -1
  123. package/dist/src/components/base/layoutProps.d.ts.map +0 -1
  124. package/dist/src/components/base/tokens.d.ts.map +0 -1
  125. package/dist/src/components/base/useDisclosure.d.ts.map +0 -1
  126. package/dist/src/components/blocks/ChatInput.d.ts.map +0 -1
  127. package/dist/src/components/blocks/HeaderBar.d.ts.map +0 -1
  128. package/dist/src/components/blocks/NotificationToast.d.ts.map +0 -1
  129. package/dist/src/components/blocks/TabBar.d.ts +0 -13
  130. package/dist/src/components/blocks/TabBar.d.ts.map +0 -1
  131. package/dist/src/components/blocks/WidgetDialog.d.ts.map +0 -1
  132. package/dist/src/components/blocks/WidgetFab.d.ts.map +0 -1
  133. package/dist/src/components/blocks/index.d.ts +0 -7
  134. package/dist/src/components/blocks/index.d.ts.map +0 -1
  135. package/dist/src/components/chat/MessageContent.d.ts.map +0 -1
  136. package/dist/src/components/chat/MessageItem.d.ts.map +0 -1
  137. package/dist/src/components/chat/MessageList.d.ts.map +0 -1
  138. package/dist/src/components/chat/ProgressLine.d.ts.map +0 -1
  139. package/dist/src/components/chat/SuggestedActions.d.ts.map +0 -1
  140. package/dist/src/components/chat/TaskStatusIcon.d.ts.map +0 -1
  141. package/dist/src/components/chat/ThinkingIndicator.d.ts.map +0 -1
  142. package/dist/src/components/chat/VideoStreamDisplay.d.ts.map +0 -1
  143. package/dist/src/components/navigation/MessengerShell.d.ts.map +0 -1
  144. package/dist/src/components/navigation/ResizeHandles.d.ts.map +0 -1
  145. package/dist/src/components/navigation/ShellTabBar.d.ts.map +0 -1
  146. package/dist/src/components/navigation/ViewTransition.d.ts.map +0 -1
  147. package/dist/src/components/ui/StateMessage.d.ts.map +0 -1
  148. package/dist/src/components/ui/WidgetSettingsLoader.d.ts.map +0 -1
  149. package/dist/src/components/views/ChatView.d.ts.map +0 -1
  150. package/dist/src/components/views/HomeView.d.ts.map +0 -1
  151. package/dist/src/constants/config.d.ts +0 -8
  152. package/dist/src/constants/config.d.ts.map +0 -1
  153. package/dist/src/constants/theme.d.ts.map +0 -1
  154. package/dist/src/context/ChatContext.d.ts +0 -34
  155. package/dist/src/context/ChatContext.d.ts.map +0 -1
  156. package/dist/src/context/TaskContext.d.ts +0 -39
  157. package/dist/src/context/TaskContext.d.ts.map +0 -1
  158. package/dist/src/context/UIStateContext.d.ts.map +0 -1
  159. package/dist/src/context/WidgetProviders.d.ts.map +0 -1
  160. package/dist/src/context/sseReducer.d.ts.map +0 -1
  161. package/dist/src/design-system/component-tokens.d.ts.map +0 -1
  162. package/dist/src/design-system/layers.d.ts.map +0 -1
  163. package/dist/src/design-system/semantic-tokens.d.ts.map +0 -1
  164. package/dist/src/design-system/shadows.d.ts.map +0 -1
  165. package/dist/src/design-system/themes/default.d.ts +0 -7
  166. package/dist/src/design-system/themes/default.d.ts.map +0 -1
  167. package/dist/src/design-system/themes/high-contrast.d.ts +0 -4
  168. package/dist/src/design-system/themes/high-contrast.d.ts.map +0 -1
  169. package/dist/src/design-system/themes/index.d.ts +0 -3
  170. package/dist/src/design-system/themes/index.d.ts.map +0 -1
  171. package/dist/src/design-system/token-adapter.d.ts.map +0 -1
  172. package/dist/src/hooks/useDragSnap.d.ts.map +0 -1
  173. package/dist/src/hooks/useFocusTrap.d.ts.map +0 -1
  174. package/dist/src/hooks/useResize.d.ts.map +0 -1
  175. package/dist/src/hooks/useScreenShare.d.ts.map +0 -1
  176. package/dist/src/hooks/useScrollLock.d.ts.map +0 -1
  177. package/dist/src/hooks/useWidget.d.ts.map +0 -1
  178. package/dist/src/index.d.ts.map +0 -1
  179. package/dist/src/lib/utils.d.ts.map +0 -1
  180. package/dist/src/sdk/contract.d.ts.map +0 -1
  181. package/dist/src/sdk/contracts/activityLog.d.ts.map +0 -1
  182. package/dist/src/sdk/contracts/agent.d.ts +0 -3243
  183. package/dist/src/sdk/contracts/agent.d.ts.map +0 -1
  184. package/dist/src/sdk/contracts/application.d.ts.map +0 -1
  185. package/dist/src/sdk/contracts/chat.d.ts.map +0 -1
  186. package/dist/src/sdk/contracts/common.d.ts.map +0 -1
  187. package/dist/src/sdk/contracts/entities.d.ts.map +0 -1
  188. package/dist/src/sdk/contracts/widget.d.ts.map +0 -1
  189. package/dist/src/sdk/index.d.ts.map +0 -1
  190. package/dist/src/services/ApiService.d.ts.map +0 -1
  191. package/dist/src/services/ChatService.d.ts.map +0 -1
  192. package/dist/src/services/ConfigManager.d.ts.map +0 -1
  193. package/dist/src/services/DomService.d.ts.map +0 -1
  194. package/dist/src/services/ScreenShareService.d.ts.map +0 -1
  195. package/dist/src/services/SessionManager.d.ts.map +0 -1
  196. package/dist/src/services/SessionRecorder.d.ts.map +0 -1
  197. package/dist/src/services/ShowModeService.d.ts.map +0 -1
  198. package/dist/src/services/StorageService.d.ts.map +0 -1
  199. package/dist/src/services/StreamClient.d.ts.map +0 -1
  200. package/dist/src/services/ToolService.d.ts.map +0 -1
  201. package/dist/src/services/ValidationService.d.ts.map +0 -1
  202. package/dist/src/services/WidgetService.d.ts.map +0 -1
  203. package/dist/src/test/a11y-utils.d.ts.map +0 -1
  204. package/dist/src/test/fixtures.d.ts.map +0 -1
  205. package/dist/src/test/setup.d.ts.map +0 -1
  206. package/dist/src/types/browserTools.d.ts.map +0 -1
  207. package/dist/src/types/index.d.ts.map +0 -1
  208. package/dist/src/utils/apiUtils.d.ts.map +0 -1
  209. package/dist/src/utils/bootstrap.d.ts.map +0 -1
  210. package/dist/src/utils/chat.d.ts.map +0 -1
  211. package/dist/src/utils/common.d.ts.map +0 -1
  212. package/dist/src/utils/dom.d.ts.map +0 -1
  213. package/dist/src/utils/format.d.ts.map +0 -1
  214. package/dist/src/utils/suggestedActions.d.ts.map +0 -1
  215. package/dist/src/utils/validation.d.ts.map +0 -1
  216. package/dist/src/utils/widgetPositioning.d.ts.map +0 -1
@@ -14,14 +14,6 @@ export interface IconData {
14
14
  paths: IconPath[];
15
15
  }
16
16
  export declare const icons: {
17
- /** FaSpinner */
18
- readonly spinner: {
19
- readonly viewBox: "0 0 512 512";
20
- readonly paths: [{
21
- readonly d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";
22
- readonly fill: "currentColor";
23
- }];
24
- };
25
17
  /** FaCheckCircle */
26
18
  readonly checkCircle: {
27
19
  readonly viewBox: "0 0 512 512";
@@ -78,67 +70,6 @@ export declare const icons: {
78
70
  readonly fill: "currentColor";
79
71
  }];
80
72
  };
81
- /** FiInfo — circle + two lines rendered via path-equivalent description.
82
- * The original uses <circle> and <line> child elements; represented here
83
- * as separate path entries with equivalent geometry. */
84
- readonly info: {
85
- readonly viewBox: "0 0 24 24";
86
- readonly paths: [{
87
- readonly d: "M 12 2 A 10 10 0 1 1 11.9999 2 Z";
88
- readonly fill: "none";
89
- readonly stroke: "currentColor";
90
- readonly strokeWidth: 2;
91
- readonly strokeLinecap: "round";
92
- readonly strokeLinejoin: "round";
93
- }, {
94
- readonly d: "M12 16L12 12";
95
- readonly fill: "none";
96
- readonly stroke: "currentColor";
97
- readonly strokeWidth: 2;
98
- readonly strokeLinecap: "round";
99
- readonly strokeLinejoin: "round";
100
- }, {
101
- readonly d: "M12 8L12.01 8";
102
- readonly fill: "none";
103
- readonly stroke: "currentColor";
104
- readonly strokeWidth: 2;
105
- readonly strokeLinecap: "round";
106
- readonly strokeLinejoin: "round";
107
- }];
108
- };
109
- /** FiTrash2 */
110
- readonly trash: {
111
- readonly viewBox: "0 0 24 24";
112
- readonly paths: [{
113
- readonly d: "M3 6L5 6L21 6";
114
- readonly fill: "none";
115
- readonly stroke: "currentColor";
116
- readonly strokeWidth: 2;
117
- readonly strokeLinecap: "round";
118
- readonly strokeLinejoin: "round";
119
- }, {
120
- readonly d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2";
121
- readonly fill: "none";
122
- readonly stroke: "currentColor";
123
- readonly strokeWidth: 2;
124
- readonly strokeLinecap: "round";
125
- readonly strokeLinejoin: "round";
126
- }, {
127
- readonly d: "M10 11L10 17";
128
- readonly fill: "none";
129
- readonly stroke: "currentColor";
130
- readonly strokeWidth: 2;
131
- readonly strokeLinecap: "round";
132
- readonly strokeLinejoin: "round";
133
- }, {
134
- readonly d: "M14 11L14 17";
135
- readonly fill: "none";
136
- readonly stroke: "currentColor";
137
- readonly strokeWidth: 2;
138
- readonly strokeLinecap: "round";
139
- readonly strokeLinejoin: "round";
140
- }];
141
- };
142
73
  /** FiX */
143
74
  readonly x: {
144
75
  readonly viewBox: "0 0 24 24";
@@ -226,25 +157,6 @@ export declare const icons: {
226
157
  readonly strokeLinejoin: "round";
227
158
  }];
228
159
  };
229
- /** LuScroll */
230
- readonly scroll: {
231
- readonly viewBox: "0 0 24 24";
232
- readonly paths: [{
233
- readonly d: "M19 17V5a2 2 0 0 0-2-2H4";
234
- readonly fill: "none";
235
- readonly stroke: "currentColor";
236
- readonly strokeWidth: 2;
237
- readonly strokeLinecap: "round";
238
- readonly strokeLinejoin: "round";
239
- }, {
240
- readonly d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3";
241
- readonly fill: "none";
242
- readonly stroke: "currentColor";
243
- readonly strokeWidth: 2;
244
- readonly strokeLinecap: "round";
245
- readonly strokeLinejoin: "round";
246
- }];
247
- };
248
160
  /** SiTicktick */
249
161
  readonly ticktick: {
250
162
  readonly viewBox: "0 0 24 24";
@@ -253,141 +165,6 @@ export declare const icons: {
253
165
  readonly fill: "currentColor";
254
166
  }];
255
167
  };
256
- /** HiOutlineArrowRight */
257
- readonly arrowRight: {
258
- readonly viewBox: "0 0 24 24";
259
- readonly paths: [{
260
- readonly d: "M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3";
261
- readonly fill: "none";
262
- readonly stroke: "currentColor";
263
- readonly strokeWidth: 1.5;
264
- readonly strokeLinecap: "round";
265
- readonly strokeLinejoin: "round";
266
- }];
267
- };
268
- /** HiOutlineDocumentText */
269
- readonly documentText: {
270
- readonly viewBox: "0 0 24 24";
271
- readonly paths: [{
272
- readonly d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z";
273
- readonly fill: "none";
274
- readonly stroke: "currentColor";
275
- readonly strokeWidth: 1.5;
276
- readonly strokeLinecap: "round";
277
- readonly strokeLinejoin: "round";
278
- }];
279
- };
280
- /** HiOutlineGlobeAlt */
281
- readonly globe: {
282
- readonly viewBox: "0 0 24 24";
283
- readonly paths: [{
284
- readonly d: "M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253";
285
- readonly fill: "none";
286
- readonly stroke: "currentColor";
287
- readonly strokeWidth: 1.5;
288
- readonly strokeLinecap: "round";
289
- readonly strokeLinejoin: "round";
290
- }];
291
- };
292
- /** HiOutlineMagnifyingGlass */
293
- readonly magnifyingGlass: {
294
- readonly viewBox: "0 0 24 24";
295
- readonly paths: [{
296
- readonly d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z";
297
- readonly fill: "none";
298
- readonly stroke: "currentColor";
299
- readonly strokeWidth: 1.5;
300
- readonly strokeLinecap: "round";
301
- readonly strokeLinejoin: "round";
302
- }];
303
- };
304
- /** HiOutlineXMark */
305
- readonly xMark: {
306
- readonly viewBox: "0 0 24 24";
307
- readonly paths: [{
308
- readonly d: "M6 18 18 6M6 6l12 12";
309
- readonly fill: "none";
310
- readonly stroke: "currentColor";
311
- readonly strokeWidth: 1.5;
312
- readonly strokeLinecap: "round";
313
- readonly strokeLinejoin: "round";
314
- }];
315
- };
316
- /** MdOutlineKeyboard */
317
- readonly keyboard: {
318
- readonly viewBox: "0 0 24 24";
319
- readonly paths: [{
320
- readonly d: "M20 7v10H4V7h16m0-2H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z";
321
- readonly fill: "currentColor";
322
- }];
323
- };
324
- /** MdOutlineSelectAll */
325
- readonly selectAll: {
326
- readonly viewBox: "0 0 24 24";
327
- readonly paths: [{
328
- readonly d: "M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z";
329
- readonly fill: "currentColor";
330
- }];
331
- };
332
- /** TbArrowDown */
333
- readonly tablerArrowDown: {
334
- readonly viewBox: "0 0 24 24";
335
- readonly paths: [{
336
- readonly d: "M12 5l0 14";
337
- readonly fill: "none";
338
- readonly stroke: "currentColor";
339
- readonly strokeWidth: 2;
340
- readonly strokeLinecap: "round";
341
- readonly strokeLinejoin: "round";
342
- }, {
343
- readonly d: "M18 13l-6 6";
344
- readonly fill: "none";
345
- readonly stroke: "currentColor";
346
- readonly strokeWidth: 2;
347
- readonly strokeLinecap: "round";
348
- readonly strokeLinejoin: "round";
349
- }, {
350
- readonly d: "M6 13l6 6";
351
- readonly fill: "none";
352
- readonly stroke: "currentColor";
353
- readonly strokeWidth: 2;
354
- readonly strokeLinecap: "round";
355
- readonly strokeLinejoin: "round";
356
- }];
357
- };
358
- /** TbFileUpload */
359
- readonly fileUpload: {
360
- readonly viewBox: "0 0 24 24";
361
- readonly paths: [{
362
- readonly d: "M14 3v4a1 1 0 0 0 1 1h4";
363
- readonly fill: "none";
364
- readonly stroke: "currentColor";
365
- readonly strokeWidth: 2;
366
- readonly strokeLinecap: "round";
367
- readonly strokeLinejoin: "round";
368
- }, {
369
- readonly d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z";
370
- readonly fill: "none";
371
- readonly stroke: "currentColor";
372
- readonly strokeWidth: 2;
373
- readonly strokeLinecap: "round";
374
- readonly strokeLinejoin: "round";
375
- }, {
376
- readonly d: "M12 11v6";
377
- readonly fill: "none";
378
- readonly stroke: "currentColor";
379
- readonly strokeWidth: 2;
380
- readonly strokeLinecap: "round";
381
- readonly strokeLinejoin: "round";
382
- }, {
383
- readonly d: "M9.5 13.5l2.5 -2.5l2.5 2.5";
384
- readonly fill: "none";
385
- readonly stroke: "currentColor";
386
- readonly strokeWidth: 2;
387
- readonly strokeLinecap: "round";
388
- readonly strokeLinejoin: "round";
389
- }];
390
- };
391
168
  /** Home icon — from MessengerShell TAB_ICONS.home, viewBox 0 0 24 24 */
392
169
  readonly home: {
393
170
  readonly viewBox: "0 0 24 24";
@@ -412,18 +189,6 @@ export declare const icons: {
412
189
  readonly strokeLinejoin: "round";
413
190
  }];
414
191
  };
415
- /** Help / question mark circle — from MessengerShell TAB_ICONS.help */
416
- readonly help: {
417
- readonly viewBox: "0 0 24 24";
418
- readonly paths: [{
419
- readonly d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";
420
- readonly fill: "none";
421
- readonly stroke: "currentColor";
422
- readonly strokeWidth: 2;
423
- readonly strokeLinecap: "round";
424
- readonly strokeLinejoin: "round";
425
- }];
426
- };
427
192
  /** Send / arrow right — from MessageInput send button */
428
193
  readonly send: {
429
194
  readonly viewBox: "0 0 24 24";
@@ -482,26 +247,6 @@ export declare const icons: {
482
247
  readonly strokeLinejoin: "round";
483
248
  }];
484
249
  };
485
- /** More vertical (three dots) — from MessengerShell more options menu */
486
- readonly moreVertical: {
487
- readonly viewBox: "0 0 20 20";
488
- readonly paths: [{
489
- readonly d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z";
490
- readonly fill: "currentColor";
491
- }];
492
- };
493
- /** Chevron right — from HomeView "Ask a question" CTA */
494
- readonly chevronRight: {
495
- readonly viewBox: "0 0 24 24";
496
- readonly paths: [{
497
- readonly d: "M9 5l7 7-7 7";
498
- readonly fill: "none";
499
- readonly stroke: "currentColor";
500
- readonly strokeWidth: 2;
501
- readonly strokeLinecap: "round";
502
- readonly strokeLinejoin: "round";
503
- }];
504
- };
505
250
  /** Alert circle / error — from VideoStreamDisplay stream error state */
506
251
  readonly alertCircle: {
507
252
  readonly viewBox: "0 0 24 24";
@@ -516,4 +261,3 @@ export declare const icons: {
516
261
  };
517
262
  };
518
263
  export type IconName = keyof typeof icons;
519
- //# sourceMappingURL=icons.d.ts.map
@@ -38,4 +38,3 @@ export interface LayoutProps {
38
38
  }
39
39
  export declare function resolveLayoutClasses(props: LayoutProps): string;
40
40
  export declare function stripLayoutProps<T extends LayoutProps>(props: T): Omit<T, keyof LayoutProps>;
41
- //# sourceMappingURL=layoutProps.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export type SpacingToken = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2
2
  export declare const spacingScale: Record<SpacingToken, string>;
3
- //# sourceMappingURL=tokens.d.ts.map
@@ -9,4 +9,3 @@ interface UseDisclosureResult {
9
9
  }
10
10
  export declare function useDisclosure({ defaultOpen, onOpenChange, open }: UseDisclosureProps): UseDisclosureResult;
11
11
  export {};
12
- //# sourceMappingURL=useDisclosure.d.ts.map
@@ -18,4 +18,3 @@ export interface ChatInputProps {
18
18
  placeholder?: string;
19
19
  }
20
20
  export declare const ChatInput: React.ForwardRefExoticComponent<ChatInputProps & React.RefAttributes<HTMLTextAreaElement>>;
21
- //# sourceMappingURL=ChatInput.d.ts.map
@@ -8,4 +8,3 @@ export interface HeaderBarProps {
8
8
  controls?: React.ReactNode;
9
9
  }
10
10
  export declare const HeaderBar: React.FC<HeaderBarProps>;
11
- //# sourceMappingURL=HeaderBar.d.ts.map
@@ -8,4 +8,3 @@ export interface NotificationToastProps {
8
8
  position?: 'bottom-center' | 'above-fab';
9
9
  }
10
10
  export declare const NotificationToast: React.FC<NotificationToastProps>;
11
- //# sourceMappingURL=NotificationToast.d.ts.map
@@ -1,15 +1,5 @@
1
1
  import React from 'react';
2
- export interface WidgetDialogRow {
3
- label: string;
4
- value: string;
5
- copyable?: boolean;
6
- }
7
- export interface WidgetDialogStatus {
8
- label: string;
9
- color: 'green' | 'blue' | 'yellow' | 'gray';
10
- }
11
2
  export interface WidgetDialogProps {
12
- variant: 'confirm' | 'info';
13
3
  open: boolean;
14
4
  onClose: () => void;
15
5
  title: string;
@@ -17,8 +7,5 @@ export interface WidgetDialogProps {
17
7
  onConfirm?: () => void;
18
8
  confirmLabel?: string;
19
9
  cancelLabel?: string;
20
- rows?: WidgetDialogRow[];
21
- status?: WidgetDialogStatus;
22
10
  }
23
11
  export declare const WidgetDialog: React.FC<WidgetDialogProps>;
24
- //# sourceMappingURL=WidgetDialog.d.ts.map
@@ -18,4 +18,3 @@ export interface WidgetFabProps {
18
18
  isPreviewMode?: boolean;
19
19
  }
20
20
  export declare const WidgetFab: React.FC<WidgetFabProps>;
21
- //# sourceMappingURL=WidgetFab.d.ts.map
@@ -6,4 +6,3 @@ interface MessageContentProps {
6
6
  }
7
7
  export declare const MessageContent: React.FC<MessageContentProps>;
8
8
  export {};
9
- //# sourceMappingURL=MessageContent.d.ts.map
@@ -9,4 +9,3 @@ interface MessageItemProps {
9
9
  }
10
10
  export declare const MessageItem: React.FC<MessageItemProps>;
11
11
  export {};
12
- //# sourceMappingURL=MessageItem.d.ts.map
@@ -8,6 +8,5 @@ interface MessageListProps {
8
8
  onScreenAccessDeny?: () => void;
9
9
  onClearChat?: () => void | Promise<void>;
10
10
  }
11
- export declare const MessageList: ({ messages, messagesEndRef, config, onScreenAccessAllow, onScreenAccessDeny, onClearChat, }: MessageListProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const MessageList: ({ messages, messagesEndRef, config, onScreenAccessAllow, onScreenAccessDeny, onClearChat, }: MessageListProps) => React.JSX.Element;
12
12
  export {};
13
- //# sourceMappingURL=MessageList.d.ts.map
@@ -7,4 +7,3 @@ interface ProgressLineProps {
7
7
  }
8
8
  export declare const ProgressLine: React.FC<ProgressLineProps>;
9
9
  export {};
10
- //# sourceMappingURL=ProgressLine.d.ts.map
@@ -12,4 +12,3 @@ interface SuggestedActionsProps {
12
12
  }
13
13
  export declare const SuggestedActions: React.FC<SuggestedActionsProps>;
14
14
  export {};
15
- //# sourceMappingURL=SuggestedActions.d.ts.map
@@ -4,4 +4,3 @@ interface TaskStatusIconProps {
4
4
  }
5
5
  export declare const TaskStatusIcon: React.FC<TaskStatusIconProps>;
6
6
  export {};
7
- //# sourceMappingURL=TaskStatusIcon.d.ts.map
@@ -4,4 +4,3 @@ interface ThinkingIndicatorProps {
4
4
  }
5
5
  export declare const ThinkingIndicator: React.FC<ThinkingIndicatorProps>;
6
6
  export {};
7
- //# sourceMappingURL=ThinkingIndicator.d.ts.map
@@ -4,4 +4,3 @@ interface VideoStreamDisplayProps {
4
4
  }
5
5
  export declare const VideoStreamDisplay: React.FC<VideoStreamDisplayProps>;
6
6
  export {};
7
- //# sourceMappingURL=VideoStreamDisplay.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ChatMessage, InstructionType, MarketrixConfig, TaskProgress, WidgetView } from '../../types';
2
+ import type { ChatMessage, InstructionType, MarketrixConfig, WidgetView } from '../../types';
3
3
  export interface MessengerShellProps {
4
4
  config: MarketrixConfig;
5
5
  isOpen: boolean;
@@ -7,7 +7,6 @@ export interface MessengerShellProps {
7
7
  messages: ChatMessage[];
8
8
  currentMode: InstructionType;
9
9
  isTaskRunning?: boolean;
10
- taskProgress?: TaskProgress[];
11
10
  activeView: WidgetView;
12
11
  onClose: () => void;
13
12
  onSendMessage: (message: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
@@ -21,4 +20,3 @@ export interface MessengerShellProps {
21
20
  setActiveView: (view: WidgetView) => void;
22
21
  }
23
22
  export declare const MessengerShell: React.FC<MessengerShellProps>;
24
- //# sourceMappingURL=MessengerShell.d.ts.map
@@ -4,4 +4,3 @@ export interface ResizeHandlesProps {
4
4
  onResizeStart: (corner: ResizeCorner) => (e: React.MouseEvent) => void;
5
5
  }
6
6
  export declare const ResizeHandles: React.FC<ResizeHandlesProps>;
7
- //# sourceMappingURL=ResizeHandles.d.ts.map
@@ -5,4 +5,3 @@ export interface ShellTabBarProps {
5
5
  onChange: (view: WidgetView) => void;
6
6
  }
7
7
  export declare const ShellTabBar: React.FC<ShellTabBarProps>;
8
- //# sourceMappingURL=ShellTabBar.d.ts.map
@@ -12,4 +12,3 @@ interface ViewTransitionProps {
12
12
  */
13
13
  export declare const ViewTransition: React.FC<ViewTransitionProps>;
14
14
  export {};
15
- //# sourceMappingURL=ViewTransition.d.ts.map
@@ -10,4 +10,3 @@ interface StateMessageProps {
10
10
  */
11
11
  export declare const StateMessage: React.FC<StateMessageProps>;
12
12
  export {};
13
- //# sourceMappingURL=StateMessage.d.ts.map
@@ -3,5 +3,4 @@ interface WidgetSettingsLoaderProps {
3
3
  message?: string;
4
4
  }
5
5
  export declare const WidgetSettingsLoader: React.FC<WidgetSettingsLoaderProps>;
6
- export default WidgetSettingsLoader;
7
- //# sourceMappingURL=WidgetSettingsLoader.d.ts.map
6
+ export {};
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { InstructionType } from '../../sdk';
3
- import type { ChatMessage, MarketrixConfig, TaskProgress } from '../../types';
3
+ import type { ChatMessage, MarketrixConfig } from '../../types';
4
4
  export interface ChatViewProps {
5
5
  config: MarketrixConfig;
6
6
  messages: ChatMessage[];
7
7
  currentMode: InstructionType;
8
8
  isTaskRunning?: boolean;
9
- taskProgress?: TaskProgress[];
10
9
  onSendMessage: (message: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
11
10
  onSetMode: (mode: InstructionType) => void;
12
11
  onAddMessage: (message: ChatMessage) => void;
@@ -22,4 +21,3 @@ export interface ChatViewProps {
22
21
  messageInputRef?: React.RefObject<HTMLTextAreaElement | null>;
23
22
  }
24
23
  export declare const ChatView: React.FC<ChatViewProps>;
25
- //# sourceMappingURL=ChatView.d.ts.map
@@ -9,4 +9,3 @@ interface HomeViewProps {
9
9
  }
10
10
  export declare const HomeView: React.FC<HomeViewProps>;
11
11
  export {};
12
- //# sourceMappingURL=HomeView.d.ts.map
@@ -18,4 +18,3 @@ export declare const DARK_THEME_COLORS: {
18
18
  readonly liveBadgeShadow: "rgba(31, 41, 55, 0.4)";
19
19
  readonly videoGradient: "linear-gradient(135deg, #111827 0%, #374151 100%)";
20
20
  };
21
- //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import type { ChatMessage, InstructionType } from '../types';
3
+ import type { UIStateActions } from './UIStateContext';
4
+ /**
5
+ * ConversationContext — the single store for the widget's conversation.
6
+ *
7
+ * Holds `{ messages, task }` as ONE `SseState`, so the SSE effect commits each
8
+ * transition through a single atomic `setState(prev => transition(prev))`. This
9
+ * removes the previous two-store split (ChatContext + TaskContext), which forced
10
+ * a raw-setState escape hatch and `messagesRef`/`taskRef` snapshots and could
11
+ * tear (messages updating while task lagged across an await). UIStateContext
12
+ * (open/minimized/mode/loading/error) stays separate — a genuinely different
13
+ * concern.
14
+ */
15
+ export interface TaskState {
16
+ activeTaskId: string | null;
17
+ isTaskRunning: boolean;
18
+ }
19
+ export interface ChatState {
20
+ messages: ChatMessage[];
21
+ }
22
+ export interface ChatActions {
23
+ addMessage: (message: ChatMessage) => void;
24
+ updateMessage: (messageId: string, updates: Partial<ChatMessage>) => void;
25
+ removeMessage: (messageId: string) => void;
26
+ setMessages: (messages: ChatMessage[]) => void;
27
+ clearMessages: () => void;
28
+ sendMessage: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
29
+ }
30
+ export interface TaskActions {
31
+ setTaskState: (payload: {
32
+ activeTaskId: string | null;
33
+ isTaskRunning: boolean;
34
+ }) => void;
35
+ stopTask: () => Promise<void>;
36
+ }
37
+ interface ConversationContextType {
38
+ chatState: ChatState;
39
+ chatActions: ChatActions;
40
+ taskState: TaskState;
41
+ taskActions: TaskActions;
42
+ }
43
+ interface ConversationProviderProps {
44
+ children: React.ReactNode;
45
+ previewMode?: boolean;
46
+ /** Current mode from UIState — fallback for sendMessage and progress-line logic. */
47
+ currentMode: InstructionType;
48
+ /** Injected UI actions so the conversation store drives loading/availability/error without nesting contexts. */
49
+ uiActions: Pick<UIStateActions, 'setLoading' | 'setAgentAvailable' | 'setError'>;
50
+ /** One-time hydrated snapshot to seed the store (messages + task) on mount. */
51
+ initialMessages?: ChatMessage[];
52
+ initialTask?: TaskState;
53
+ }
54
+ export declare const ConversationProvider: React.FC<ConversationProviderProps>;
55
+ export declare const useConversationContext: () => ConversationContextType;
56
+ export {};
@@ -34,4 +34,3 @@ interface UIStateProviderProps {
34
34
  export declare const UIStateProvider: React.FC<UIStateProviderProps>;
35
35
  export declare const useUIStateContext: () => UIStateContextType;
36
36
  export {};
37
- //# sourceMappingURL=UIStateContext.d.ts.map
@@ -1,11 +1,13 @@
1
1
  /**
2
- * WidgetProviders — composition root that wires UIStateProvider, ChatProvider,
3
- * and TaskProvider together.
2
+ * WidgetProviders — composition root that wires UIStateProvider and
3
+ * ConversationProvider together.
4
4
  *
5
- * Initialization (SSE connection, ChatService hydration) and persistence both
6
- * live in inner bridge components that have access to all three contexts.
7
- * React context is the single source of truth; ChatService is the load/persist
8
- * boundary only, driven by one effect here.
5
+ * Conversation state ({ messages, task }) lives in ONE store (ConversationProvider);
6
+ * UI state (open/minimized/mode/loading/error) lives in UIStateProvider. Both
7
+ * one-time initialization (SSE connection, ChatService hydration) and persistence
8
+ * live in inner bridge components that can read every context. React context is
9
+ * the single source of truth; ChatService is the load/persist boundary only,
10
+ * driven by one effect here.
9
11
  */
10
12
  import React from 'react';
11
13
  interface WidgetProvidersProps {
@@ -14,4 +16,3 @@ interface WidgetProvidersProps {
14
16
  }
15
17
  export declare const WidgetProviders: React.FC<WidgetProvidersProps>;
16
18
  export {};
17
- //# sourceMappingURL=WidgetProviders.d.ts.map
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Pure SSE reducer — the single place where a `WidgetEvent` turns into the next
3
3
  * widget state. No transport, no tool execution, no localStorage: just
4
- * `(state, event) => { state, effects }`. The TaskContext effect wires this up,
5
- * runs the returned effects (tool exec, wsClient.send, setLoading), and re-enters
6
- * via `applyToolResult` once an async tool finishes.
4
+ * `(state, event) => { state, effects }`. The ConversationContext effect wires
5
+ * this up, runs the returned effects (tool exec, wsClient.send, setLoading), and
6
+ * re-enters via the tool-progress helpers once an async tool finishes.
7
7
  *
8
8
  * Keeping this pure makes the previously-untestable ~180-line SSE handler unit
9
9
  * testable and removes the nested setState-within-setState that hid bugs.
@@ -50,4 +50,3 @@ export declare function reduceStop(state: SseState, currentMode: InstructionType
50
50
  */
51
51
  export declare function reduceSse(state: SseState, event: WidgetEvent, currentMode: InstructionType): ReduceResult;
52
52
  export {};
53
- //# sourceMappingURL=sseReducer.d.ts.map
@@ -33,4 +33,3 @@ export declare const notificationToneStyles: Record<NotificationTone, {
33
33
  actionBackground: string;
34
34
  }>;
35
35
  export declare function getElevationStyle(token?: ShadowToken | null): CSSProperties | undefined;
36
- //# sourceMappingURL=component-tokens.d.ts.map
@@ -7,4 +7,3 @@ export type LayerTokens = {
7
7
  debug: number;
8
8
  };
9
9
  export declare const LAYER_TOKENS: LayerTokens;
10
- //# sourceMappingURL=layers.d.ts.map
@@ -42,4 +42,3 @@ export declare const DEFAULT_SEMANTIC_TOKENS: SemanticTokens;
42
42
  * closed Shadow DOM regardless of host page styles.
43
43
  */
44
44
  export declare function semanticTokensToCssCustomProperties(tokens: SemanticTokens): Record<string, string>;
45
- //# sourceMappingURL=semantic-tokens.d.ts.map
@@ -13,4 +13,3 @@ export declare const SHADOW: {
13
13
  readonly button: "0 4px 6px -1px rgba(0,0,0,0.1)";
14
14
  };
15
15
  export type ShadowToken = keyof typeof SHADOW;
16
- //# sourceMappingURL=shadows.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { WidgetSettingsData } from '../sdk';
2
2
  import { type SemanticTokens } from './semantic-tokens';
3
3
  export declare function createSemanticTokens(settings?: Partial<WidgetSettingsData>): SemanticTokens;
4
- //# sourceMappingURL=token-adapter.d.ts.map
@@ -19,4 +19,3 @@ export interface UseDragSnapResult {
19
19
  suppressUntilRef: React.RefObject<number>;
20
20
  }
21
21
  export declare function useDragSnap({ position, onDrag, isPreviewMode, wrapperRef, }: UseDragSnapOptions): UseDragSnapResult;
22
- //# sourceMappingURL=useDragSnap.d.ts.map