@epam/ai-dial-chat-shared 1.1.0-dev.9 → 1.1.0-dev.91

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 (57) hide show
  1. package/components/DeploymentIcon/DeploymentIcon.d.ts +1 -10
  2. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -1
  3. package/components/InitialsAvatar/InitialsAvatar.d.ts +1 -4
  4. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
  5. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +1 -4
  6. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  7. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +2 -9
  8. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  9. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +1 -4
  10. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  11. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +1 -5
  12. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -1
  13. package/constants/icon.d.ts +2 -0
  14. package/constants/icon.d.ts.map +1 -1
  15. package/constants/mime-types.d.ts +3 -6
  16. package/constants/mime-types.d.ts.map +1 -1
  17. package/hooks/useCodeCopy.d.ts +1 -9
  18. package/hooks/useCodeCopy.d.ts.map +1 -1
  19. package/hooks/useCollapsedText.d.ts +3 -7
  20. package/hooks/useCollapsedText.d.ts.map +1 -1
  21. package/hooks/useTableScroll.d.ts +1 -0
  22. package/hooks/useTableScroll.d.ts.map +1 -1
  23. package/index.css +1 -1
  24. package/index.d.ts +2 -2
  25. package/index.d.ts.map +1 -1
  26. package/index.js +26019 -3377
  27. package/models/chat.d.ts +10 -38
  28. package/models/chat.d.ts.map +1 -1
  29. package/models/custom-visualizer.d.ts +61 -0
  30. package/models/custom-visualizer.d.ts.map +1 -0
  31. package/models/deployment-configuration.d.ts +2 -8
  32. package/models/deployment-configuration.d.ts.map +1 -1
  33. package/models/tool-menu-item.d.ts +13 -0
  34. package/models/tool-menu-item.d.ts.map +1 -0
  35. package/package.json +7 -3
  36. package/types/mime-type.d.ts +2 -8
  37. package/types/mime-type.d.ts.map +1 -1
  38. package/utils/avatar-color.d.ts +1 -4
  39. package/utils/avatar-color.d.ts.map +1 -1
  40. package/utils/build-css-vars.d.ts +1 -4
  41. package/utils/build-css-vars.d.ts.map +1 -1
  42. package/utils/copy-to-clipboard.d.ts +1 -13
  43. package/utils/copy-to-clipboard.d.ts.map +1 -1
  44. package/utils/format-last-used.d.ts +1 -6
  45. package/utils/format-last-used.d.ts.map +1 -1
  46. package/utils/initials.d.ts +1 -7
  47. package/utils/initials.d.ts.map +1 -1
  48. package/utils/latex.d.ts +11 -0
  49. package/utils/latex.d.ts.map +1 -0
  50. package/utils/message-attachment-to-display.d.ts +1 -1
  51. package/utils/message-attachment-to-display.d.ts.map +1 -1
  52. package/utils/message.d.ts +1 -7
  53. package/utils/message.d.ts.map +1 -1
  54. package/components/Highlight/Highlight.d.ts +0 -26
  55. package/components/Highlight/Highlight.d.ts.map +0 -1
  56. package/types/overlay/overlay-protocol.d.ts +0 -308
  57. package/types/overlay/overlay-protocol.d.ts.map +0 -1
package/models/chat.d.ts CHANGED
@@ -35,9 +35,7 @@ export declare enum MessageRole {
35
35
  /** In-conversation system event; never sent to DIAL Core. */
36
36
  Status = "status"
37
37
  }
38
- /** A user-submitted thumbs-up or thumbs-down rating for an assistant message.
39
- * Stored as a signed integer that DIAL Core adds to the message's running like count:
40
- * `Like = 1` increments the count, `Dislike = -1` decrements it. */
38
+ /** User-submitted thumbs-up or thumbs-down rating for an assistant message. */
41
39
  export declare enum MessageRating {
42
40
  Like = 1,
43
41
  Dislike = -1
@@ -51,19 +49,13 @@ export declare enum StageStatus {
51
49
  }
52
50
  /** Permitted scalar/array types for a single form field value. */
53
51
  export type MessageFormValueType = number | string | boolean | string[];
54
- /**
55
- * A key-value map submitted from a form widget embedded in a message.
56
- * Keys are field identifiers; values are typed form field values (or `undefined` for unset fields).
57
- */
52
+ /** Key-value map of field identifiers to form field values, submitted from an embedded form widget. */
58
53
  export type MessageFormValue = Record<string, MessageFormValueType | undefined>;
59
54
  /** Discriminator values for `StatusMessageCustomContent.event_type`. */
60
55
  export declare enum StatusEvent {
61
56
  ModelChanged = "model_changed"
62
57
  }
63
- /**
64
- * Extra payload attached to a `MessageRole.Status` message.
65
- * Discriminated by `event_type`; forward-compatible with future event types.
66
- */
58
+ /** Extra payload attached to a `MessageRole.Status` message. */
67
59
  export interface StatusMessageCustomContent {
68
60
  /** Machine-readable event discriminator. */
69
61
  event_type: StatusEvent;
@@ -103,40 +95,24 @@ export interface Message {
103
95
  timestamp: string;
104
96
  /** DIAL Core response identifier used for the rate API. Present on the final chunk. */
105
97
  responseId?: string;
106
- /**
107
- * Extra DIAL API payload attached to the message.
108
- * Present on both user requests (uploaded files) and assistant responses
109
- * (generated/referenced files).
110
- */
98
+ /** Extra DIAL API payload; present on user requests and assistant responses. */
111
99
  custom_content?: MessageCustomContent;
112
- /** User-submitted rating for this message. Only meaningful for assistant messages. Stored in-memory only; not persisted. */
100
+ /** User-submitted rating for this message. */
113
101
  rating?: MessageRating;
114
- /**
115
- * ID of the deployment that generated this message.
116
- * Set on `MessageRole.Assistant` and `MessageRole.Status` messages.
117
- * Used to render the deployment icon next to assistant responses.
118
- */
102
+ /** Deployment ID on `MessageRole.Assistant` and `MessageRole.Status` messages. */
119
103
  deploymentId?: string;
104
+ streamErrorMessage?: string;
120
105
  /** Allows extra SDK-level properties to pass through when serializing to DIAL Core. */
121
106
  [key: string]: unknown;
122
107
  }
123
- /**
124
- * An in-conversation system event message produced by the client (never forwarded to DIAL Core).
125
- * Discriminated from `Message` by `role: MessageRole.Status`.
126
- * Defined as a standalone interface rather than extending `Message` because
127
- * `custom_content` has an incompatible type (`StatusMessageCustomContent` vs
128
- * `MessageCustomContent`), which prevents structural subtyping.
129
- */
108
+ /** In-conversation system event message, always with `role: MessageRole.Status`. */
130
109
  export interface StatusMessage extends Omit<Message, 'role' | 'custom_content'> {
131
110
  /** Always `MessageRole.Status` for status messages. */
132
111
  role: MessageRole.Status;
133
112
  /** Status event payload. */
134
113
  custom_content?: StatusMessageCustomContent;
135
114
  }
136
- /**
137
- * A single stage entry produced by an agent during a streaming response.
138
- * Stages are delivered incrementally via `StreamChunkDelta.custom_content.stages`.
139
- */
115
+ /** A single agent execution stage produced during a streaming response. */
140
116
  export interface Stage {
141
117
  /** Zero-based ordering key; used to merge/upsert incoming stage updates. */
142
118
  index: number;
@@ -176,11 +152,7 @@ export interface StreamChunkDelta {
176
152
  /** Partial annotation updates; merge by `index` into the accumulating annotation list. */
177
153
  annotations?: Annotation[];
178
154
  };
179
- /**
180
- * Raw custom fields in the DIAL wire format.
181
- * Annotations here use `pdf_region` selectors and `attachment_index` references
182
- * and must be normalized to the internal model before use.
183
- */
155
+ /** Raw custom fields in the DIAL wire format. */
184
156
  custom_fields?: {
185
157
  /** Raw annotations in the DIAL wire format; must be normalized before use. */
186
158
  annotations?: unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/models/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,8FAA8F;AAC9F,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,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M,CAAC;IACX,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACtB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,uDAAuD;IACvD,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * A single MIME → visualizer mapping from the `CUSTOM_VISUALIZERS` registry.
3
+ * Field semantics are fixed by already-deployed visualizer applications and
4
+ * operator configurations — see `design.md` D9/D10 in the
5
+ * `add-custom-visualizers` change for why `title` is required and
6
+ * `contentType` accepts a comma-separated list.
7
+ */
8
+ export interface CustomVisualizer {
9
+ /**
10
+ * The postMessage protocol namespace, NOT a display label. Every message
11
+ * exchanged with the iframe is prefixed `${title}/…`, and the iframe-side
12
+ * visualizer application must be constructed with this identical string
13
+ * as its `appName`. A mismatch is a silent failure — the iframe loads but
14
+ * never receives data.
15
+ */
16
+ title: string;
17
+ /** Human-readable description of the visualizer (kept for parity with the development schema; not consumed by host UI). */
18
+ description?: string;
19
+ /** Icon URL or identifier for the visualizer (kept for parity with the development schema; not consumed by host UI). */
20
+ icon?: string;
21
+ /**
22
+ * Comma-separated list of one or more MIME types this entry matches (e.g.
23
+ * `'application/vnd.plotly.v1+json'` or
24
+ * `'application/vnd.plotly.v1+json, application/vnd.vega.v5+json'`).
25
+ * Stored verbatim; splitting happens at lookup time.
26
+ */
27
+ contentType: string;
28
+ /** Absolute HTTP(S) URL of the visualizer iframe. */
29
+ url: string;
30
+ /** Milliseconds to wait for a `send()` request's `/RESPONSE` before rejecting. Defaults to `10000`. Does NOT bound the initial handshake. */
31
+ requestTimeout?: number;
32
+ /** Suggested initial width of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
33
+ width?: number;
34
+ /** Suggested initial height of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
35
+ height?: number;
36
+ /** Suggested canvas panel height on mobile viewports in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
37
+ mobileHeight?: number;
38
+ /** Whether the host should pass auth info to the visualizer. Accepted for schema parity with development but auth forwarding is not yet wired. */
39
+ passAuthInfo?: boolean;
40
+ /** Whether the host should pass an explicit access token. Accepted for schema parity with development but auth forwarding is not yet wired. */
41
+ passExplicitToken?: boolean;
42
+ }
43
+ /** Presentation-only layout hints forwarded to the visualizer inside `SEND_VISUALIZE_DATA`. */
44
+ export interface CustomVisualizerDataLayout {
45
+ /** Suggested width of the canvas panel in pixels (from the registry entry). */
46
+ width?: number;
47
+ /** Suggested height of the canvas panel in pixels (from the registry entry). */
48
+ height?: number;
49
+ /** Suggested height on mobile-sized screens in pixels (from the registry entry). */
50
+ mobileHeight?: number;
51
+ /** Id of the host's currently active theme. */
52
+ themeId: string;
53
+ }
54
+ /** Payload of a `SEND_VISUALIZE_DATA` request: presentation layout plus the opaque attachment payload. */
55
+ export interface CustomVisualizerData {
56
+ /** Presentation layout hints. */
57
+ layout: CustomVisualizerDataLayout;
58
+ /** Opaque attachment payload consumed by the third-party visualizer. */
59
+ [key: string]: unknown;
60
+ }
61
+ //# sourceMappingURL=custom-visualizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-visualizer.d.ts","sourceRoot":"","sources":["../../src/models/custom-visualizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,2HAA2H;IAC3H,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wHAAwH;IACxH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,6IAA6I;IAC7I,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+GAA+G;IAC/G,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oHAAoH;IACpH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kJAAkJ;IAClJ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+IAA+I;IAC/I,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,+FAA+F;AAC/F,MAAM,WAAW,0BAA0B;IACzC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,0GAA0G;AAC1G,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,MAAM,EAAE,0BAA0B,CAAC;IACnC,wEAAwE;IACxE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -7,10 +7,7 @@ export interface StarterWidgetOptions {
7
7
  /** Optional confirmation message shown before submission. */
8
8
  confirmationMessage: string | null;
9
9
  }
10
- /**
11
- * A single entry in the `starter` property's `oneOf` array.
12
- * Represents one quick-start conversation button.
13
- */
10
+ /** A quick-start conversation button entry in the `starter` property's `oneOf` array. */
14
11
  export interface StarterOption {
15
12
  /** Numeric index used as the schema `const` value. */
16
13
  const: number;
@@ -19,10 +16,7 @@ export interface StarterOption {
19
16
  /** DIAL widget options controlling input population and auto-submit behaviour. */
20
17
  'dial:widgetOptions': StarterWidgetOptions;
21
18
  }
22
- /**
23
- * A single property entry within a deployment's configuration JSON Schema.
24
- * Each key in `DeploymentConfigurationSchema.properties` maps to this shape.
25
- */
19
+ /** A single property entry in a deployment's configuration JSON Schema. */
26
20
  export interface DeploymentConfigurationSchemaProperty {
27
21
  /** Default value for this property. */
28
22
  default?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-configuration.d.ts","sourceRoot":"","sources":["../../src/models/deployment-configuration.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,6DAA6D;IAC7D,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED;;;GAGG;AACH,MAAM,WAAW,qCAAqC;IACpD,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8HAA8H;IAC9H,KAAK,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qCAAqC,CAAC,CAAC;IACnE;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"deployment-configuration.d.ts","sourceRoot":"","sources":["../../src/models/deployment-configuration.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,6DAA6D;IAC7D,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED,2EAA2E;AAC3E,MAAM,WAAW,qCAAqC;IACpD,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8HAA8H;IAC9H,KAAK,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qCAAqC,CAAC,CAAC;IACnE;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ /** Resolved tool toggle item rendered in the conversation input tools submenu. */
3
+ export interface ToolMenuItem {
4
+ /** Unique tool identifier matching the deployment configuration schema property key. */
5
+ id: string;
6
+ /** Human-readable label displayed next to the tool icon. */
7
+ label: string;
8
+ /** Icon element rendered inline before the label. */
9
+ icon: ReactNode;
10
+ /** Whether the tool is currently toggled on. */
11
+ isSelected: boolean;
12
+ }
13
+ //# sourceMappingURL=tool-menu-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-menu-item.d.ts","sourceRoot":"","sources":["../../src/models/tool-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,wFAAwF;IACxF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,EAAE,SAAS,CAAC;IAChB,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;CACrB"}
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.9",
4
+ "version": "1.1.0-dev.91",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,12 +17,16 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "^19.2.6",
20
- "@epam/ai-dial-ui-kit": "0.12.0-dev.36",
21
20
  "vitest": "~4.1.0",
22
21
  "@tabler/icons-react": "^3.44.0",
23
22
  "react-syntax-highlighter": "^16.1.1",
24
23
  "react-markdown": "^10.1.0",
25
- "remark-gfm": "^4.0.1"
24
+ "remark-breaks": "^4.0.0",
25
+ "remark-gfm": "^4.0.1",
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"
26
30
  },
27
31
  "dependencies": {
28
32
  "classnames": "2.5.1",
@@ -1,7 +1,4 @@
1
- /**
2
- * Well-known MIME type constants used in DIAL API attachments.
3
- * For arbitrary subtypes, pass a plain `string` alongside this enum.
4
- */
1
+ /** Well-known MIME type constants used in DIAL API attachments. */
5
2
  export declare enum MIMEType {
6
3
  /** GitHub-flavoured Markdown. */
7
4
  Markdown = "text/markdown",
@@ -42,10 +39,7 @@ export declare enum MIMEType {
42
39
  /** SVG vector image. */
43
40
  SVG = "image/svg+xml"
44
41
  }
45
- /**
46
- * Well-known file extension constants used as fallback when a MIME type is
47
- * unavailable or unreliable.
48
- */
42
+ /** Well-known file extension constants used as fallback when a MIME type is unavailable. */
49
43
  export declare enum FileExtension {
50
44
  /** PDF document. */
51
45
  PDF = "pdf",
@@ -1 +1 @@
1
- {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/types/mime-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,QAAQ;IAElB,iCAAiC;IACjC,QAAQ,kBAAkB;IAC1B,8BAA8B;IAC9B,KAAK,eAAe;IACpB,mBAAmB;IACnB,IAAI,cAAc;IAClB,oBAAoB;IACpB,KAAK,0BAA0B;IAC/B,8BAA8B;IAC9B,GAAG,aAAa;IAChB,yBAAyB;IACzB,UAAU,oBAAoB;IAC9B,wDAAwD;IACxD,UAAU,oBAAoB;IAC9B,4BAA4B;IAC5B,GAAG,aAAa;IAGhB,iBAAiB;IACjB,IAAI,qBAAqB;IACzB,uCAAuC;IACvC,GAAG,oBAAoB;IACvB,oBAAoB;IACpB,GAAG,oBAAoB;IACvB,mBAAmB;IACnB,GAAG,oBAAoB;IACvB,4BAA4B;IAC5B,IAAI,qBAAqB;IAGzB,yBAAyB;IACzB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;IACjB,kBAAkB;IAClB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,wBAAwB;IACxB,GAAG,kBAAkB;CACtB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,oBAAoB;IACpB,GAAG,QAAQ;IACX,iCAAiC;IACjC,QAAQ,OAAO;IACf,4DAA4D;IAC5D,WAAW,aAAa;IACxB,qBAAqB;IACrB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/types/mime-type.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oBAAY,QAAQ;IAElB,iCAAiC;IACjC,QAAQ,kBAAkB;IAC1B,8BAA8B;IAC9B,KAAK,eAAe;IACpB,mBAAmB;IACnB,IAAI,cAAc;IAClB,oBAAoB;IACpB,KAAK,0BAA0B;IAC/B,8BAA8B;IAC9B,GAAG,aAAa;IAChB,yBAAyB;IACzB,UAAU,oBAAoB;IAC9B,wDAAwD;IACxD,UAAU,oBAAoB;IAC9B,4BAA4B;IAC5B,GAAG,aAAa;IAGhB,iBAAiB;IACjB,IAAI,qBAAqB;IACzB,uCAAuC;IACvC,GAAG,oBAAoB;IACvB,oBAAoB;IACpB,GAAG,oBAAoB;IACvB,mBAAmB;IACnB,GAAG,oBAAoB;IACvB,4BAA4B;IAC5B,IAAI,qBAAqB;IAGzB,yBAAyB;IACzB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;IACjB,kBAAkB;IAClB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,wBAAwB;IACxB,GAAG,kBAAkB;CACtB;AAED,4FAA4F;AAC5F,oBAAY,aAAa;IACvB,oBAAoB;IACpB,GAAG,QAAQ;IACX,iCAAiC;IACjC,QAAQ,OAAO;IACf,4DAA4D;IAC5D,WAAW,aAAa;IACxB,qBAAqB;IACrB,IAAI,SAAS;CACd"}
@@ -5,9 +5,6 @@ export interface AvatarColorEntry {
5
5
  /** CSS hex colour for the initials text. */
6
6
  foreground: string;
7
7
  }
8
- /**
9
- * Deterministically maps a display name to a palette entry using a
10
- * char-code-sum hash. The same name always returns the same colours.
11
- */
8
+ /** Returns a deterministic colour-pair for the given display name. */
12
9
  export declare const pickAvatarColor: (name: string) => AvatarColorEntry;
13
10
  //# sourceMappingURL=avatar-color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar-color.d.ts","sourceRoot":"","sources":["../../src/utils/avatar-color.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAcD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,gBAM9C,CAAC"}
1
+ {"version":3,"file":"avatar-color.d.ts","sourceRoot":"","sources":["../../src/utils/avatar-color.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAcD,sEAAsE;AACtE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,gBAM9C,CAAC"}
@@ -1,7 +1,4 @@
1
1
  import { CSSProperties } from 'react';
2
- /**
3
- * Builds a `CSSProperties` object from a record mapping CSS custom property
4
- * names to values. Entries with `undefined` or empty-string values are omitted.
5
- */
2
+ /** Builds a `CSSProperties` object from a record of CSS custom property names to values, omitting entries with `undefined` or empty-string values. */
6
3
  export declare const buildCssVars: (vars: Record<string, string | number | undefined>) => CSSProperties;
7
4
  //# sourceMappingURL=build-css-vars.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-css-vars.d.ts","sourceRoot":"","sources":["../../src/utils/build-css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,KAChD,aAQF,CAAC"}
1
+ {"version":3,"file":"build-css-vars.d.ts","sourceRoot":"","sources":["../../src/utils/build-css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,sJAAsJ;AACtJ,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,KAChD,aAQF,CAAC"}
@@ -1,15 +1,3 @@
1
- /**
2
- * Copies `text` to the clipboard. Returns `true` when the write succeeded,
3
- * `false` when both paths failed (e.g. sandboxed iframe without clipboard
4
- * permission).
5
- *
6
- * Strategy:
7
- * 1. Async Clipboard API (`navigator.clipboard.writeText`) — the preferred
8
- * path on modern browsers. Requires a secure context (HTTPS) and the page
9
- * to be focused.
10
- * 2. `execCommand('copy')` fallback — used when the Clipboard API is
11
- * unavailable (HTTP, older browsers) or rejects. Uses `setSelectionRange`
12
- * instead of `select()` because iOS Safari ignores `textarea.select()`.
13
- */
1
+ /** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
14
2
  export declare const copyToClipboard: (text: string) => Promise<boolean>;
15
3
  //# sourceMappingURL=copy-to-clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../src/utils/copy-to-clipboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAY7D,CAAC"}
1
+ {"version":3,"file":"copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../src/utils/copy-to-clipboard.ts"],"names":[],"mappings":"AAEA,0IAA0I;AAC1I,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAY7D,CAAC"}
@@ -1,8 +1,3 @@
1
- /**
2
- * Converts a timestamp to a human-readable "last used" string,
3
- * e.g. "just now", "5 min ago", "3 hours ago", "2 days ago".
4
- *
5
- * Returns an empty string when the input is falsy or not a valid date.
6
- */
1
+ /** Converts a timestamp to a relative time string (e.g. `'5 min ago'`, `'2 days ago'`); returns an empty string when the input is falsy or invalid. */
7
2
  export declare const formatLastUsed: (timestamp?: number) => string;
8
3
  //# sourceMappingURL=format-last-used.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
1
+ {"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA,uJAAuJ;AACvJ,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
@@ -1,9 +1,3 @@
1
- /**
2
- * Returns 1–2 uppercase initials derived from a display name.
3
- *
4
- * - Empty/whitespace-only → `"?"`
5
- * - Two or more words → first letter of each of the first two words (skipping leading punctuation like `[` or `(`)
6
- * - Single word → first two letter characters of that word
7
- */
1
+ /** Returns 1–2 uppercase initials derived from a display name, or `'?'` when the name is empty. */
8
2
  export declare const extractInitials: (name: string) => string;
9
3
  //# sourceMappingURL=initials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/utils/initials.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAa9C,CAAC"}
1
+ {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/utils/initials.ts"],"names":[],"mappings":"AAGA,mGAAmG;AACnG,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAa9C,CAAC"}
@@ -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"}
@@ -17,6 +17,6 @@ export interface AttachmentDisplayResolvers {
17
17
  * the optional `resolvers` argument rather than performed here.
18
18
  */
19
19
  export declare const messageAttachmentToDisplayAttachment: (dto: MessageAttachment, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment;
20
- /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. */
20
+ /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. Entries with duplicate `id` values are deduplicated — first occurrence wins. */
21
21
  export declare const messageAttachmentsToDisplayAttachments: (dtos: MessageAttachment[] | undefined, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment[];
22
22
  //# sourceMappingURL=message-attachment-to-display.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-attachment-to-display.d.ts","sourceRoot":"","sources":["../../src/utils/message-attachment-to-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,iBAAiB,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/D,iFAAiF;IACjF,cAAc,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7D;AAwCD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAC/C,KAAK,iBAAiB,EACtB,YAAW,0BAA+B,KACzC,iBA6CF,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,sCAAsC,GACjD,MAAM,iBAAiB,EAAE,GAAG,SAAS,EACrC,YAAW,0BAA+B,KACzC,iBAAiB,EAEhB,CAAC"}
1
+ {"version":3,"file":"message-attachment-to-display.d.ts","sourceRoot":"","sources":["../../src/utils/message-attachment-to-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,iBAAiB,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/D,iFAAiF;IACjF,cAAc,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7D;AAwCD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAC/C,KAAK,iBAAiB,EACtB,YAAW,0BAA+B,KACzC,iBA6CF,CAAC;AAEF,oKAAoK;AACpK,eAAO,MAAM,sCAAsC,GACjD,MAAM,iBAAiB,EAAE,GAAG,SAAS,EACrC,YAAW,0BAA+B,KACzC,iBAAiB,EAYnB,CAAC"}
@@ -1,10 +1,4 @@
1
1
  import { Message, StatusMessage } from '../models/chat';
2
- /**
3
- * Narrows a `Message` to `StatusMessage` when its role is `MessageRole.Status`.
4
- * The parameter accepts `Message | StatusMessage` because `StatusMessage.custom_content`
5
- * is not assignable to `Message.custom_content`, so `StatusMessage` cannot be a
6
- * structural subtype of `Message`. Callers with `Message`-typed values can still pass
7
- * them directly since `Message` is assignable to the union.
8
- */
2
+ /** Returns `true` when `msg` is a `StatusMessage`. */
9
3
  export declare const isStatusMessage: (msg: Message | StatusMessage) => msg is StatusMessage;
10
4
  //# sourceMappingURL=message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/utils/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,GAAG,aAAa,KAC3B,GAAG,IAAI,aAAgD,CAAC"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/utils/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/E,sDAAsD;AACtD,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,GAAG,aAAa,KAC3B,GAAG,IAAI,aAAgD,CAAC"}
@@ -1,26 +0,0 @@
1
- import { FC } from 'react';
2
- /** CSS custom-property overrides for the `Highlight` component. */
3
- export interface HighlightColors {
4
- /** Highlighted match text color. */
5
- text?: string;
6
- /** Highlighted match background color. */
7
- background?: string;
8
- }
9
- /** Props for `Highlight`. */
10
- export interface HighlightProps {
11
- /** Full text to display. */
12
- text: string;
13
- /** Search query; the first case-insensitive match is highlighted. */
14
- query: string;
15
- /** Optional class name for the highlighted segment. */
16
- markClassName?: string;
17
- /** Optional class name forwarded to the `DialEllipsisTooltip` container. */
18
- className?: string;
19
- /** Maximum number of lines to display before truncating. Use `1` for single-line ellipsis truncation (e.g. list rows). Defaults to `2`. */
20
- maxLines?: number;
21
- /** Color overrides applied as CSS custom properties. */
22
- colors?: HighlightColors;
23
- }
24
- /** Renders text with the first occurrence of `query` wrapped in a highlight mark, with ellipsis truncation and a tooltip when overflowing. */
25
- export declare const Highlight: FC<HighlightProps>;
26
- //# sourceMappingURL=Highlight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/components/Highlight/Highlight.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2IAA2I;IAC3I,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAkBD,8IAA8I;AAC9I,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA8CxC,CAAC"}