@epam/ai-dial-chat-shared 1.1.0-dev.78 → 1.1.0-dev.87

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.1.0-dev.78",
4
+ "version": "1.1.0-dev.87",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -23,7 +23,10 @@
23
23
  "react-markdown": "^10.1.0",
24
24
  "remark-breaks": "^4.0.0",
25
25
  "remark-gfm": "^4.0.1",
26
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.25"
26
+ "remark-math": "^6.0.0",
27
+ "rehype-katex": "^7.0.1",
28
+ "katex": "^0.16.22",
29
+ "@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
27
30
  },
28
31
  "dependencies": {
29
32
  "classnames": "2.5.1",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Escapes currency-looking dollar signs and converts single-dollar LaTeX math delimiters
3
+ * (`$...$`) to the double-dollar form (`$$...$$`) that `remark-math`/KaTeX render, leaving
4
+ * code blocks and already-escaped `\$` untouched.
5
+ *
6
+ * The `\(...\)`/`\[...\]` delimiters LLMs commonly emit are deliberately left as-is: they are
7
+ * recognized directly by `micromark-extension-llm-math`, which the consuming app's bundler
8
+ * config aliases in place of the default `micromark-extension-math` used by `remark-math`.
9
+ */
10
+ export declare const preprocessLaTeX: (content: string) => string;
11
+ //# sourceMappingURL=latex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latex.d.ts","sourceRoot":"","sources":["../../src/utils/latex.ts"],"names":[],"mappings":"AA8EA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAuCjD,CAAC"}
@@ -1,378 +0,0 @@
1
- /** Namespace prefix for every `@DIAL_OVERLAY` postMessage type string. */
2
- export declare const DIAL_OVERLAY_NAMESPACE = "@DIAL_OVERLAY";
3
- /** Request message types the host can send to the embedded app. */
4
- export declare enum OverlayRequestType {
5
- /** Fetch the active conversation's messages. */
6
- GetMessages = "@DIAL_OVERLAY/GET_MESSAGES",
7
- /** Send a new message in the active conversation. */
8
- SendMessage = "@DIAL_OVERLAY/SEND_MESSAGE",
9
- /** Set the current text content of the message input. */
10
- SetInputContent = "@DIAL_OVERLAY/SET_INPUT_CONTENT",
11
- /** Set the active conversation's system prompt. */
12
- SetSystemPrompt = "@DIAL_OVERLAY/SET_SYSTEM_PROMPT",
13
- /** Set the active conversation's temperature. */
14
- SetTemperature = "@DIAL_OVERLAY/SET_TEMPERATURE",
15
- /** Set host-provided options (theme, model, conversation, host domain). */
16
- SetOverlayOptions = "@DIAL_OVERLAY/SET_OVERLAY_OPTIONS",
17
- /** Fetch the current user's conversation list. */
18
- GetConversations = "@DIAL_OVERLAY/GET_CONVERSATIONS",
19
- /** Fetch the currently displayed (active) conversation(s). */
20
- GetSelectedConversations = "@DIAL_OVERLAY/GET_SELECTED_CONVERSATIONS",
21
- /** Navigate to and load a specific conversation by id. */
22
- SelectConversation = "@DIAL_OVERLAY/SELECT_CONVERSATION",
23
- /** Create a new conversation, persisting immediately if a first message is given. */
24
- CreateConversation = "@DIAL_OVERLAY/CREATE_CONVERSATION",
25
- /** Open the conversation composer without persisting anything. */
26
- CreateLocalConversation = "@DIAL_OVERLAY/CREATE_LOCAL_CONVERSATION",
27
- /** Delete a conversation by id. */
28
- DeleteConversation = "@DIAL_OVERLAY/DELETE_CONVERSATION",
29
- /** Rename a conversation by id. */
30
- RenameConversation = "@DIAL_OVERLAY/RENAME_CONVERSATION"
31
- }
32
- /** Event message types the embedded app sends to the host. */
33
- export declare enum OverlayEventType {
34
- /** Sent once, immediately, before any host identity is known. */
35
- InitReady = "@DIAL_OVERLAY/INIT_READY",
36
- /** Sent once, after auth/model-load state resolves. */
37
- Ready = "@DIAL_OVERLAY/READY",
38
- /** Sent once, after the active conversation has been selected/loaded for the first time. */
39
- ReadyToInteract = "@DIAL_OVERLAY/READY_TO_INTERACT",
40
- /** Sent whenever the app finishes loading a conversation (initial load or navigation). */
41
- SelectedConversationLoaded = "@DIAL_OVERLAY/SELECTED_CONVERSATION_LOADED",
42
- /** Sent when a generation starts for the active conversation. */
43
- GptStartGenerating = "@DIAL_OVERLAY/GPT_START_GENERATING",
44
- /** Sent when a generation completes for the active conversation. */
45
- GptEndGenerating = "@DIAL_OVERLAY/GPT_END_GENERATING",
46
- /** Sent when a user (or host) stops an in-flight generation. */
47
- StopGenerating = "@DIAL_OVERLAY/STOP_GENERATING",
48
- /** Sent whenever the app's conversation list changes. */
49
- ConversationsUpdated = "@DIAL_OVERLAY/CONVERSATIONS_UPDATED"
50
- }
51
- /** Optional embed-time features a host can opt into via `ChatOverlayOptions.enabledFeatures`. */
52
- export declare enum OverlayFeature {
53
- /** Enables the "Add app" menu's Code Apps entry. */
54
- CodeApps = "code-apps",
55
- /** Enables the "Add app" menu's custom-application creation entry point. */
56
- CustomApplications = "custom-applications",
57
- /** Hides the "Custom app" creation entry in the "Add app" menu. */
58
- HideCustomAppCreation = "hide-custom-app-creation",
59
- /** Disables the send action on the chat input without removing the button. */
60
- DisabledSend = "disabled-send",
61
- /** Suppresses the chat input's auto-focus effect on load. */
62
- SkipFocusChatInputOnload = "skip-focus-chat-input-onload",
63
- /** Enables the comment field in the negative-feedback (dislike) modal. */
64
- DislikeComment = "dislike-comment",
65
- /** Enables attaching files to a message via the conversation input. */
66
- InputFiles = "input-files",
67
- /** Enables like/dislike actions on assistant messages. */
68
- Likes = "likes",
69
- /** Enables the live-chat-interaction sign-in UI affordance. */
70
- LiveChatInteraction = "live-chat-interaction",
71
- /** Restricts (disables) changing the selected agent/model on the conversation top bar. */
72
- DisallowChangeAgent = "disallow-change-agent",
73
- /** Hides the new-conversation controls in the header/layout. */
74
- HideNewConversation = "hide-new-conversation",
75
- /** Enables the empty-chat (new conversation composer) settings UI. */
76
- EmptyChatSettings = "empty-chat-settings",
77
- /** Hides the model selector on the empty-chat composer screen. */
78
- HideEmptyChatChangeAgent = "hide-empty-chat-change-agent",
79
- /** Enables the attachments-manager (`AttachmentCanvasProvider`) mount. */
80
- AttachmentsManager = "attachments-manager",
81
- /** Enables the conversations-panel toggle button. */
82
- ConversationsPanelToggle = "conversations-panel-toggle",
83
- /** Enables the conversations sidebar section. */
84
- ConversationsSection = "conversations-section",
85
- /** Enables the app header. */
86
- Header = "header",
87
- /** Makes the conversations sidebar section open by default. */
88
- ShowConversationsSectionByDefault = "showConversationsSectionByDefault",
89
- /** Enables the catalog (`/catalog`) route. */
90
- Catalog = "catalog",
91
- /** Restricts the catalog to hide the current user's own/shared-with-me apps. */
92
- CatalogHideMyApps = "catalog-hide-my-apps",
93
- /** Makes the catalog's table view the initial default (instead of grid). */
94
- CatalogTableView = "catalog-table-view",
95
- /** Hides the delete action on a user's own messages. */
96
- HideDeleteUserMessage = "hide-delete-user-message",
97
- /** Hides the edit action on a user's own messages. */
98
- HideEditUserMessage = "hide-edit-user-message",
99
- /** Hides the regenerate action on assistant messages. */
100
- HideRegenerateAssistantMessage = "hide-regenerate-assistant-message",
101
- /** Enables the conversation-publishing entry point. */
102
- ConversationsPublishing = "conversations-publishing",
103
- /** Enables the application-sharing entry point. */
104
- ApplicationsSharing = "applications-sharing",
105
- /** Enables the conversation-sharing entry point. */
106
- ConversationsSharing = "conversations-sharing",
107
- /** Enables the toolset-sharing entry point. */
108
- ToolsetsSharing = "toolsets-sharing",
109
- /** Enables toolsets functionality. */
110
- Toolsets = "toolsets",
111
- /** Hides the user avatar/menu button in the header. */
112
- HideUserMenu = "hide-user-menu",
113
- /** Hides the settings entry in the user menu. */
114
- HideUserSettings = "hide-user-settings",
115
- /** Enables the `microphone` permission on the iframe's `allow` attribute for voice input. */
116
- VoiceInput = "voice-input"
117
- }
118
- /** Controls how an overlay starts authentication for a configured provider. */
119
- export declare enum OverlayAuthUiMode {
120
- /** Opens authentication in a separate browser window or tab. */
121
- External = "external",
122
- /** Navigates the embedded overlay window through authentication. */
123
- SameWindow = "sameWindow"
124
- }
125
- /** Machine-readable reasons why an overlay request could not be completed. */
126
- export declare enum OverlayRequestErrorCode {
127
- /** The method requires an open conversation, but the composer is currently shown. */
128
- ActiveConversationUnavailable = "ACTIVE_CONVERSATION_UNAVAILABLE",
129
- /** The method requires the conversation-list integration, but it is not available. */
130
- ConversationListUnavailable = "CONVERSATION_LIST_UNAVAILABLE",
131
- /** The request payload does not match the method contract. */
132
- InvalidPayload = "INVALID_PAYLOAD",
133
- /** The embedded chat failed while executing the requested operation. */
134
- RequestExecutionFailed = "REQUEST_EXECUTION_FAILED"
135
- }
136
- /** Structured failure returned for an overlay request. */
137
- export interface OverlayRequestError {
138
- /** Stable code suitable for programmatic handling. */
139
- code: OverlayRequestErrorCode;
140
- /** Human-readable explanation suitable for logs and diagnostics. */
141
- message: string;
142
- }
143
- /** Minimal message shape carried in overlay protocol payloads. */
144
- export interface OverlayChatMessage {
145
- /** Message id. */
146
- id: string;
147
- /** Author role, e.g. `'user'`, `'assistant'`, or `'system'`. */
148
- role: string;
149
- /** Message text content. */
150
- content: string;
151
- }
152
- /** Host-agnostic conversation projection for the overlay protocol. */
153
- export interface OverlayConversation {
154
- /** Conversation id. */
155
- id: string;
156
- /** Conversation title. */
157
- title: string;
158
- /** Epoch milliseconds of the conversation's last update. */
159
- updatedAt: number;
160
- /** Whether the conversation is pinned. */
161
- isPinned: boolean;
162
- /** Whether the current user has read-only access. */
163
- isReadonly: boolean;
164
- /** Whether the conversation was shared with the current user. */
165
- sharedWithMe: boolean;
166
- /** Whether the conversation was published with the current user. */
167
- publishedWithMe: boolean;
168
- }
169
- /** Error signal carried by conversation-list method responses. */
170
- export interface OverlayConversationError {
171
- /** `NOT_FOUND` for an unknown/inaccessible id, `FORBIDDEN` for a read-only/shared-without-write-access conversation, `INVALID_ARGUMENT` for a rejected value (e.g. blank rename). */
172
- code: 'NOT_FOUND' | 'FORBIDDEN' | 'INVALID_ARGUMENT';
173
- /** Human-readable description of the failure. */
174
- message: string;
175
- }
176
- /** Options passed to `ChatOverlay`'s constructor. */
177
- export interface ChatOverlayOptions {
178
- /** Full URL of the chat app instance to embed (origin + optional path). */
179
- domain: string;
180
- /** Milliseconds to wait for a request's response before rejecting. Defaults to `10000`. */
181
- requestTimeout?: number;
182
- /** Inline CSS properties applied to the loader element while it is visible. */
183
- loaderStyles?: Record<string, string>;
184
- /** CSS class applied to the loader element. */
185
- loaderClass?: string;
186
- /** Custom HTML rendered inside the loader element, replacing the default spinner. */
187
- loaderInnerHTML?: string;
188
- /** Event whose receipt hides the loader. Defaults to `OverlayEventType.Ready`. */
189
- loaderHideEvent?: OverlayEventType;
190
- /** Embed-time features to enable, e.g. microphone access for voice input. */
191
- enabledFeatures?: OverlayFeature[];
192
- /** Theme name applied to the embedded app. */
193
- theme?: string;
194
- /** Deployment/model id to select in the embedded app. */
195
- modelId?: string;
196
- /** Conversation id the embedded app should load and display. */
197
- overlayConversationId?: string;
198
- /** Per-provider authentication UI behavior configured by the embedding host. */
199
- auth?: {
200
- providerUiModes?: Record<string, OverlayAuthUiMode>;
201
- };
202
- }
203
- /** Payload of a `SET_OVERLAY_OPTIONS` request. */
204
- export interface SetOverlayOptionsPayload {
205
- /** Origin of the host page, used by the app to target responses/events. */
206
- hostDomain: string;
207
- /** Theme name to apply, if provided. */
208
- theme?: string;
209
- /** Deployment/model id to select, if provided. */
210
- modelId?: string;
211
- /** Conversation id to navigate to and load, if provided. */
212
- overlayConversationId?: string;
213
- /**
214
- * UI-feature keys that replace (not merge with) the app's current effective
215
- * UI-feature set, if provided. Array only — no comma-separated-string form.
216
- */
217
- enabledFeatures?: string[];
218
- /** Opaque per-provider authentication UI modes supplied by the host. */
219
- authProviderUiModes?: Record<string, string>;
220
- }
221
- /** Payload of a `SEND_MESSAGE` request. */
222
- export interface SendMessagePayload {
223
- /** Text content of the message to send. */
224
- content: string;
225
- }
226
- /** Payload of a `SET_INPUT_CONTENT` request. */
227
- export interface SetInputContentPayload {
228
- /** Text content to set in the message input. */
229
- content: string;
230
- }
231
- /** Payload of a `SET_SYSTEM_PROMPT` request. */
232
- export interface SetSystemPromptPayload {
233
- /** System prompt to persist on the active conversation. */
234
- systemPrompt: string;
235
- }
236
- /** Payload of a `SET_TEMPERATURE` request. */
237
- export interface SetTemperaturePayload {
238
- /** Temperature value to persist on the active conversation. */
239
- temperature: number;
240
- }
241
- /** Payload of a `SELECT_CONVERSATION` request. */
242
- export interface SelectConversationPayload {
243
- /** Id of the conversation to select. */
244
- id: string;
245
- }
246
- /** Payload of a `DELETE_CONVERSATION` request. */
247
- export interface DeleteConversationPayload {
248
- /** Id of the conversation to delete. */
249
- id: string;
250
- }
251
- /** Payload of a `RENAME_CONVERSATION` request. */
252
- export interface RenameConversationPayload {
253
- /** Id of the conversation to rename. */
254
- id: string;
255
- /** New title for the conversation. */
256
- newName: string;
257
- }
258
- /** Payload of a `CREATE_CONVERSATION` request. */
259
- export interface CreateConversationPayload {
260
- /** Deployment/model id to create the conversation with, if given. */
261
- deploymentId?: string;
262
- /** Initial message to persist immediately. Omitted/blank opens the composer instead. */
263
- firstMessage?: string;
264
- }
265
- /** Response payload of a `GET_MESSAGES` request. */
266
- export interface GetMessagesResponse {
267
- /** Messages in the active conversation. */
268
- messages: OverlayChatMessage[];
269
- }
270
- /** Response payload of a `SEND_MESSAGE` request. */
271
- export interface SendMessageResponse {
272
- /** Messages in the active conversation after the send. */
273
- messages: OverlayChatMessage[];
274
- }
275
- /** Response payload of a `SET_SYSTEM_PROMPT` request. */
276
- export interface SetSystemPromptResponse {
277
- /** System prompt value that was persisted. */
278
- systemPrompt: string;
279
- }
280
- /** Response payload of a `SET_TEMPERATURE` request. */
281
- export interface SetTemperatureResponse {
282
- /** Temperature value that was persisted. */
283
- temperature: number;
284
- }
285
- /** Response payload of a `SET_OVERLAY_OPTIONS` request. */
286
- export interface SetOverlayOptionsResponse {
287
- /** Whether the supplied options were applied (`false` only signals a fallback, never a thrown error). */
288
- applied: boolean;
289
- }
290
- /** Response payload of a `GET_CONVERSATIONS` request. */
291
- export interface GetConversationsResponse {
292
- /** The current user's conversation list. */
293
- conversations: OverlayConversation[];
294
- }
295
- /** Response payload of a `GET_SELECTED_CONVERSATIONS` request. */
296
- export interface GetSelectedConversationsResponse {
297
- /** Currently displayed conversation(s); empty when no conversation is mounted. */
298
- conversations: OverlayConversation[];
299
- }
300
- /** Response payload of a `SELECT_CONVERSATION` request. */
301
- export interface SelectConversationResponse {
302
- /** The now-selected conversation's projection, present on success. */
303
- conversation?: OverlayConversation;
304
- /** Present when the selection failed. */
305
- error?: OverlayConversationError;
306
- }
307
- /** Response payload of a `CREATE_CONVERSATION` request. */
308
- export interface CreateConversationResponse {
309
- /** The created conversation's projection, or `null` when the composer path was taken. */
310
- conversation: OverlayConversation | null;
311
- /** Present when creation failed. */
312
- error?: OverlayConversationError;
313
- }
314
- /** Response payload of a `CREATE_LOCAL_CONVERSATION` request. */
315
- export interface CreateLocalConversationResponse {
316
- /** Always `null` — the composer opens without persisting anything. */
317
- conversation: null;
318
- }
319
- /** Response payload of a `DELETE_CONVERSATION` request. */
320
- export interface DeleteConversationResponse {
321
- /** Present when deletion failed. */
322
- error?: OverlayConversationError;
323
- }
324
- /** Response payload of a `RENAME_CONVERSATION` request. */
325
- export interface RenameConversationResponse {
326
- /** The renamed conversation's projection, present on success. */
327
- conversation?: OverlayConversation;
328
- /** Present when the rename failed. */
329
- error?: OverlayConversationError;
330
- }
331
- /**
332
- * A request message sent from the host (library) to the embedded app.
333
- * `type` is always `'${OverlayRequestType}'`.
334
- */
335
- export interface OverlayMessageRequest<TPayload = unknown> {
336
- /** Full wire type string, one of the `OverlayRequestType` values. */
337
- type: `${OverlayRequestType}`;
338
- /** Unique id used to match this request to its response. */
339
- requestId: string;
340
- /**
341
- * Epoch milliseconds after which the embedded app must stop waiting for
342
- * prerequisites (such as an active conversation bridge) and drop the request.
343
- */
344
- expiresAt?: number;
345
- /** Request-specific payload. */
346
- payload?: TPayload;
347
- }
348
- /**
349
- * A response message sent from the embedded app to the host (library),
350
- * answering a specific request by `requestId`.
351
- */
352
- export interface OverlayMessageResponse<TPayload = unknown> {
353
- /** Full wire type string, always `'${OverlayRequestType}/RESPONSE'`. */
354
- type: `${OverlayRequestType}/RESPONSE`;
355
- /** `requestId` of the request this message answers. */
356
- requestId: string;
357
- /** Response-specific payload. */
358
- payload?: TPayload;
359
- /** Present when the embedded chat could not complete the request. */
360
- error?: OverlayRequestError;
361
- }
362
- /**
363
- * An event message sent from the embedded app to the host (library),
364
- * with no associated request (no `requestId` field).
365
- */
366
- export interface OverlayMessageEvent<TPayload = unknown> {
367
- /** Full wire type string, one of the `OverlayEventType` values. */
368
- type: `${OverlayEventType}`;
369
- /** Event-specific payload. */
370
- payload?: TPayload;
371
- }
372
- /** Narrows an arbitrary value to a well-formed `OverlayMessageRequest`. */
373
- export declare const isOverlayMessageRequest: (data: unknown) => data is OverlayMessageRequest;
374
- /** Narrows an arbitrary value to a well-formed `OverlayMessageResponse`. */
375
- export declare const isOverlayMessageResponse: (data: unknown) => data is OverlayMessageResponse;
376
- /** Narrows an arbitrary value to a well-formed `OverlayMessageEvent`. */
377
- export declare const isOverlayMessageEvent: (data: unknown) => data is OverlayMessageEvent;
378
- //# sourceMappingURL=overlay-protocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overlay-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/overlay/overlay-protocol.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD,mEAAmE;AACnE,oBAAY,kBAAkB;IAC5B,gDAAgD;IAChD,WAAW,+BAA+B;IAC1C,qDAAqD;IACrD,WAAW,+BAA+B;IAC1C,yDAAyD;IACzD,eAAe,oCAAoC;IACnD,mDAAmD;IACnD,eAAe,oCAAoC;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