@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.
- package/README.md +158 -169
- package/dist/src/components/MarketrixWidget.d.ts +0 -1
- package/dist/src/components/base/Avatar.d.ts +0 -1
- package/dist/src/components/base/Badge.d.ts +0 -1
- package/dist/src/components/base/Button.d.ts +0 -1
- package/dist/src/components/base/Card.d.ts +0 -1
- package/dist/src/components/base/Dialog.d.ts +9 -12
- package/dist/src/components/base/Flex.d.ts +0 -1
- package/dist/src/components/base/Icon.d.ts +0 -1
- package/dist/src/components/base/IconButton.d.ts +0 -1
- package/dist/src/components/base/Indicator.d.ts +0 -1
- package/dist/src/components/base/Menu.d.ts +4 -5
- package/dist/src/components/base/Pill.d.ts +0 -1
- package/dist/src/components/base/Spinner.d.ts +0 -1
- package/dist/src/components/base/Stack.d.ts +0 -1
- package/dist/src/components/base/Surface.d.ts +0 -1
- package/dist/src/components/base/Text.d.ts +0 -1
- package/dist/src/components/base/Textarea.d.ts +0 -1
- package/dist/src/components/base/Video.d.ts +0 -1
- package/dist/src/components/base/icons.d.ts +0 -256
- package/dist/src/components/base/layoutProps.d.ts +0 -1
- package/dist/src/components/base/tokens.d.ts +0 -1
- package/dist/src/components/base/useDisclosure.d.ts +0 -1
- package/dist/src/components/blocks/ChatInput.d.ts +0 -1
- package/dist/src/components/blocks/HeaderBar.d.ts +0 -1
- package/dist/src/components/blocks/NotificationToast.d.ts +0 -1
- package/dist/src/components/blocks/WidgetDialog.d.ts +0 -13
- package/dist/src/components/blocks/WidgetFab.d.ts +0 -1
- package/dist/src/components/chat/MessageContent.d.ts +0 -1
- package/dist/src/components/chat/MessageItem.d.ts +0 -1
- package/dist/src/components/chat/MessageList.d.ts +1 -2
- package/dist/src/components/chat/ProgressLine.d.ts +0 -1
- package/dist/src/components/chat/SuggestedActions.d.ts +0 -1
- package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -1
- package/dist/src/components/chat/ThinkingIndicator.d.ts +0 -1
- package/dist/src/components/chat/VideoStreamDisplay.d.ts +0 -1
- package/dist/src/components/navigation/MessengerShell.d.ts +1 -3
- package/dist/src/components/navigation/ResizeHandles.d.ts +0 -1
- package/dist/src/components/navigation/ShellTabBar.d.ts +0 -1
- package/dist/src/components/navigation/ViewTransition.d.ts +0 -1
- package/dist/src/components/ui/StateMessage.d.ts +0 -1
- package/dist/src/components/ui/WidgetSettingsLoader.d.ts +1 -2
- package/dist/src/components/views/ChatView.d.ts +1 -3
- package/dist/src/components/views/HomeView.d.ts +0 -1
- package/dist/src/constants/theme.d.ts +0 -1
- package/dist/src/context/ConversationContext.d.ts +56 -0
- package/dist/src/context/UIStateContext.d.ts +0 -1
- package/dist/src/context/WidgetProviders.d.ts +8 -7
- package/dist/src/context/sseReducer.d.ts +3 -4
- package/dist/src/design-system/component-tokens.d.ts +0 -1
- package/dist/src/design-system/layers.d.ts +0 -1
- package/dist/src/design-system/semantic-tokens.d.ts +0 -1
- package/dist/src/design-system/shadows.d.ts +0 -1
- package/dist/src/design-system/token-adapter.d.ts +0 -1
- package/dist/src/hooks/useDragSnap.d.ts +0 -1
- package/dist/src/hooks/useFocusTrap.d.ts +0 -1
- package/dist/src/hooks/useResize.d.ts +0 -1
- package/dist/src/hooks/useScreenShare.d.ts +0 -1
- package/dist/src/hooks/useScrollLock.d.ts +0 -1
- package/dist/src/hooks/useWidget.d.ts +2 -6
- package/dist/src/index.d.ts +0 -1
- package/dist/src/lib/utils.d.ts +0 -1
- package/dist/src/sdk/contract.d.ts +0 -371
- package/dist/src/sdk/contracts/activityLog.d.ts +0 -25
- package/dist/src/sdk/contracts/application.d.ts +54 -5
- package/dist/src/sdk/contracts/chat.d.ts +0 -1
- package/dist/src/sdk/contracts/common.d.ts +10 -14
- package/dist/src/sdk/contracts/entities.d.ts +12 -271
- package/dist/src/sdk/contracts/widget.d.ts +0 -973
- package/dist/src/sdk/index.d.ts +1 -372
- package/dist/src/services/ApiService.d.ts +1 -3
- package/dist/src/services/ChatService.d.ts +3 -6
- package/dist/src/services/ConfigManager.d.ts +0 -1
- package/dist/src/services/DomService.d.ts +3 -33
- package/dist/src/services/ScreenShareService.d.ts +0 -6
- package/dist/src/services/SessionManager.d.ts +0 -1
- package/dist/src/services/SessionRecorder.d.ts +0 -1
- package/dist/src/services/ShowModeService.d.ts +0 -1
- package/dist/src/services/StorageService.d.ts +3 -5
- package/dist/src/services/StreamClient.d.ts +0 -2
- package/dist/src/services/ToolService.d.ts +3 -4
- package/dist/src/services/ValidationService.d.ts +9 -12
- package/dist/src/services/WidgetService.d.ts +0 -2
- package/dist/src/test/a11y-utils.d.ts +0 -1
- package/dist/src/test/fixtures.d.ts +0 -1
- package/dist/src/test/setup.d.ts +0 -1
- package/dist/src/types/browserTools.d.ts +2 -9
- package/dist/src/types/index.d.ts +3 -19
- package/dist/src/utils/apiUtils.d.ts +0 -1
- package/dist/src/utils/bootstrap.d.ts +0 -11
- package/dist/src/utils/chat.d.ts +0 -11
- package/dist/src/utils/common.d.ts +0 -1
- package/dist/src/utils/dom.d.ts +0 -13
- package/dist/src/utils/format.d.ts +0 -1
- package/dist/src/utils/suggestedActions.d.ts +0 -1
- package/dist/src/utils/validation.d.ts +0 -9
- package/dist/src/utils/widgetPositioning.d.ts +0 -1
- package/dist/widget.mjs +62 -65
- package/dist/widget.mjs.map +1 -1
- package/package.json +15 -15
- package/dist/index.html +0 -1697
- package/dist/src/components/MarketrixWidget.d.ts.map +0 -1
- package/dist/src/components/base/Avatar.d.ts.map +0 -1
- package/dist/src/components/base/Badge.d.ts.map +0 -1
- package/dist/src/components/base/Button.d.ts.map +0 -1
- package/dist/src/components/base/Card.d.ts.map +0 -1
- package/dist/src/components/base/Dialog.d.ts.map +0 -1
- package/dist/src/components/base/Flex.d.ts.map +0 -1
- package/dist/src/components/base/Icon.d.ts.map +0 -1
- package/dist/src/components/base/IconButton.d.ts.map +0 -1
- package/dist/src/components/base/Indicator.d.ts.map +0 -1
- package/dist/src/components/base/Menu.d.ts.map +0 -1
- package/dist/src/components/base/Pill.d.ts.map +0 -1
- package/dist/src/components/base/Spinner.d.ts.map +0 -1
- package/dist/src/components/base/Stack.d.ts.map +0 -1
- package/dist/src/components/base/Surface.d.ts.map +0 -1
- package/dist/src/components/base/Text.d.ts.map +0 -1
- package/dist/src/components/base/Textarea.d.ts.map +0 -1
- package/dist/src/components/base/Video.d.ts.map +0 -1
- package/dist/src/components/base/icons.d.ts.map +0 -1
- package/dist/src/components/base/index.d.ts +0 -22
- package/dist/src/components/base/index.d.ts.map +0 -1
- package/dist/src/components/base/layoutProps.d.ts.map +0 -1
- package/dist/src/components/base/tokens.d.ts.map +0 -1
- package/dist/src/components/base/useDisclosure.d.ts.map +0 -1
- package/dist/src/components/blocks/ChatInput.d.ts.map +0 -1
- package/dist/src/components/blocks/HeaderBar.d.ts.map +0 -1
- package/dist/src/components/blocks/NotificationToast.d.ts.map +0 -1
- package/dist/src/components/blocks/TabBar.d.ts +0 -13
- package/dist/src/components/blocks/TabBar.d.ts.map +0 -1
- package/dist/src/components/blocks/WidgetDialog.d.ts.map +0 -1
- package/dist/src/components/blocks/WidgetFab.d.ts.map +0 -1
- package/dist/src/components/blocks/index.d.ts +0 -7
- package/dist/src/components/blocks/index.d.ts.map +0 -1
- package/dist/src/components/chat/MessageContent.d.ts.map +0 -1
- package/dist/src/components/chat/MessageItem.d.ts.map +0 -1
- package/dist/src/components/chat/MessageList.d.ts.map +0 -1
- package/dist/src/components/chat/ProgressLine.d.ts.map +0 -1
- package/dist/src/components/chat/SuggestedActions.d.ts.map +0 -1
- package/dist/src/components/chat/TaskStatusIcon.d.ts.map +0 -1
- package/dist/src/components/chat/ThinkingIndicator.d.ts.map +0 -1
- package/dist/src/components/chat/VideoStreamDisplay.d.ts.map +0 -1
- package/dist/src/components/navigation/MessengerShell.d.ts.map +0 -1
- package/dist/src/components/navigation/ResizeHandles.d.ts.map +0 -1
- package/dist/src/components/navigation/ShellTabBar.d.ts.map +0 -1
- package/dist/src/components/navigation/ViewTransition.d.ts.map +0 -1
- package/dist/src/components/ui/StateMessage.d.ts.map +0 -1
- package/dist/src/components/ui/WidgetSettingsLoader.d.ts.map +0 -1
- package/dist/src/components/views/ChatView.d.ts.map +0 -1
- package/dist/src/components/views/HomeView.d.ts.map +0 -1
- package/dist/src/constants/config.d.ts +0 -8
- package/dist/src/constants/config.d.ts.map +0 -1
- package/dist/src/constants/theme.d.ts.map +0 -1
- package/dist/src/context/ChatContext.d.ts +0 -34
- package/dist/src/context/ChatContext.d.ts.map +0 -1
- package/dist/src/context/TaskContext.d.ts +0 -39
- package/dist/src/context/TaskContext.d.ts.map +0 -1
- package/dist/src/context/UIStateContext.d.ts.map +0 -1
- package/dist/src/context/WidgetProviders.d.ts.map +0 -1
- package/dist/src/context/sseReducer.d.ts.map +0 -1
- package/dist/src/design-system/component-tokens.d.ts.map +0 -1
- package/dist/src/design-system/layers.d.ts.map +0 -1
- package/dist/src/design-system/semantic-tokens.d.ts.map +0 -1
- package/dist/src/design-system/shadows.d.ts.map +0 -1
- package/dist/src/design-system/themes/default.d.ts +0 -7
- package/dist/src/design-system/themes/default.d.ts.map +0 -1
- package/dist/src/design-system/themes/high-contrast.d.ts +0 -4
- package/dist/src/design-system/themes/high-contrast.d.ts.map +0 -1
- package/dist/src/design-system/themes/index.d.ts +0 -3
- package/dist/src/design-system/themes/index.d.ts.map +0 -1
- package/dist/src/design-system/token-adapter.d.ts.map +0 -1
- package/dist/src/hooks/useDragSnap.d.ts.map +0 -1
- package/dist/src/hooks/useFocusTrap.d.ts.map +0 -1
- package/dist/src/hooks/useResize.d.ts.map +0 -1
- package/dist/src/hooks/useScreenShare.d.ts.map +0 -1
- package/dist/src/hooks/useScrollLock.d.ts.map +0 -1
- package/dist/src/hooks/useWidget.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/sdk/contract.d.ts.map +0 -1
- package/dist/src/sdk/contracts/activityLog.d.ts.map +0 -1
- package/dist/src/sdk/contracts/agent.d.ts +0 -3243
- package/dist/src/sdk/contracts/agent.d.ts.map +0 -1
- package/dist/src/sdk/contracts/application.d.ts.map +0 -1
- package/dist/src/sdk/contracts/chat.d.ts.map +0 -1
- package/dist/src/sdk/contracts/common.d.ts.map +0 -1
- package/dist/src/sdk/contracts/entities.d.ts.map +0 -1
- package/dist/src/sdk/contracts/widget.d.ts.map +0 -1
- package/dist/src/sdk/index.d.ts.map +0 -1
- package/dist/src/services/ApiService.d.ts.map +0 -1
- package/dist/src/services/ChatService.d.ts.map +0 -1
- package/dist/src/services/ConfigManager.d.ts.map +0 -1
- package/dist/src/services/DomService.d.ts.map +0 -1
- package/dist/src/services/ScreenShareService.d.ts.map +0 -1
- package/dist/src/services/SessionManager.d.ts.map +0 -1
- package/dist/src/services/SessionRecorder.d.ts.map +0 -1
- package/dist/src/services/ShowModeService.d.ts.map +0 -1
- package/dist/src/services/StorageService.d.ts.map +0 -1
- package/dist/src/services/StreamClient.d.ts.map +0 -1
- package/dist/src/services/ToolService.d.ts.map +0 -1
- package/dist/src/services/ValidationService.d.ts.map +0 -1
- package/dist/src/services/WidgetService.d.ts.map +0 -1
- package/dist/src/test/a11y-utils.d.ts.map +0 -1
- package/dist/src/test/fixtures.d.ts.map +0 -1
- package/dist/src/test/setup.d.ts.map +0 -1
- package/dist/src/types/browserTools.d.ts.map +0 -1
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/utils/apiUtils.d.ts.map +0 -1
- package/dist/src/utils/bootstrap.d.ts.map +0 -1
- package/dist/src/utils/chat.d.ts.map +0 -1
- package/dist/src/utils/common.d.ts.map +0 -1
- package/dist/src/utils/dom.d.ts.map +0 -1
- package/dist/src/utils/format.d.ts.map +0 -1
- package/dist/src/utils/suggestedActions.d.ts.map +0 -1
- package/dist/src/utils/validation.d.ts.map +0 -1
- 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
|
|
@@ -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
|
|
@@ -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) =>
|
|
11
|
+
export declare const MessageList: ({ messages, messagesEndRef, config, onScreenAccessAllow, onScreenAccessDeny, onClearChat, }: MessageListProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ChatMessage, InstructionType, MarketrixConfig,
|
|
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
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { InstructionType } from '../../sdk';
|
|
3
|
-
import type { ChatMessage, MarketrixConfig
|
|
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
|
|
@@ -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 {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* WidgetProviders — composition root that wires UIStateProvider
|
|
3
|
-
*
|
|
2
|
+
* WidgetProviders — composition root that wires UIStateProvider and
|
|
3
|
+
* ConversationProvider together.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
|
5
|
-
* runs the returned effects (tool exec, wsClient.send, setLoading), and
|
|
6
|
-
* via
|
|
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
|
|
@@ -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
|