@epam/ai-dial-chat-shared 1.1.0-dev.38 → 1.1.0-dev.383

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 (131) hide show
  1. package/components/CopyButton/CopyButton.d.ts +17 -0
  2. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  3. package/components/DeploymentIcon/DeploymentIcon.d.ts +1 -10
  4. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -1
  5. package/components/EntityHeader/EntityHeader.d.ts +34 -0
  6. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  7. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +16 -0
  8. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  9. package/components/FeaturedChip/FeaturedChip.d.ts +14 -0
  10. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  11. package/components/InitialsAvatar/InitialsAvatar.d.ts +3 -4
  12. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
  13. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  14. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  15. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +10 -7
  16. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  17. package/components/MarkdownRenderer/MDMessageViewer.d.ts +7 -0
  18. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
  19. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +27 -12
  20. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  21. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  22. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  23. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +8 -5
  24. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  25. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +1 -5
  26. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -1
  27. package/components/MarkdownRenderer/markdown-class-names.d.ts +6 -0
  28. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -1
  29. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +15 -0
  30. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  31. package/components/PanelEmptyState/PanelEmptyState.d.ts +4 -0
  32. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
  33. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  34. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  35. package/constants/entity-colors.d.ts +6 -0
  36. package/constants/entity-colors.d.ts.map +1 -0
  37. package/constants/icon.d.ts +2 -0
  38. package/constants/icon.d.ts.map +1 -1
  39. package/constants/mime-types.d.ts +7 -4
  40. package/constants/mime-types.d.ts.map +1 -1
  41. package/constants/tag-input.d.ts +2 -0
  42. package/constants/tag-input.d.ts.map +1 -0
  43. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +49 -0
  44. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  45. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  46. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  47. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  48. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  49. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +20 -0
  50. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +1 -0
  51. package/file-manager/attach-result.d.ts +9 -0
  52. package/file-manager/attach-result.d.ts.map +1 -0
  53. package/file-manager/file-manager-controller.d.ts +117 -0
  54. package/file-manager/file-manager-controller.d.ts.map +1 -0
  55. package/file-manager/file-manager-variant.d.ts +21 -0
  56. package/file-manager/file-manager-variant.d.ts.map +1 -0
  57. package/file-manager/file-upload-validation.d.ts +8 -0
  58. package/file-manager/file-upload-validation.d.ts.map +1 -0
  59. package/file-manager/index.d.ts +13 -0
  60. package/file-manager/index.d.ts.map +1 -0
  61. package/file-manager/labels.d.ts +137 -0
  62. package/file-manager/labels.d.ts.map +1 -0
  63. package/file-manager/path.d.ts +12 -0
  64. package/file-manager/path.d.ts.map +1 -0
  65. package/file-manager/upload-batch.d.ts +27 -0
  66. package/file-manager/upload-batch.d.ts.map +1 -0
  67. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  68. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  69. package/hooks/useCodeCopy.d.ts +1 -9
  70. package/hooks/useCodeCopy.d.ts.map +1 -1
  71. package/hooks/useCollapsedText.d.ts +3 -7
  72. package/hooks/useCollapsedText.d.ts.map +1 -1
  73. package/hooks/useHorizontalOverflow.d.ts +21 -0
  74. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  75. package/index.css +1 -1
  76. package/index.d.ts +21 -2
  77. package/index.d.ts.map +1 -1
  78. package/index.js +38703 -8308
  79. package/models/chat.d.ts +81 -38
  80. package/models/chat.d.ts.map +1 -1
  81. package/models/conversation-classification.d.ts +9 -0
  82. package/models/conversation-classification.d.ts.map +1 -0
  83. package/models/conversation-transfer.d.ts +94 -0
  84. package/models/conversation-transfer.d.ts.map +1 -0
  85. package/models/custom-visualizer.d.ts +61 -0
  86. package/models/custom-visualizer.d.ts.map +1 -0
  87. package/models/deployment-configuration.d.ts +2 -8
  88. package/models/deployment-configuration.d.ts.map +1 -1
  89. package/models/entity.d.ts +15 -0
  90. package/models/entity.d.ts.map +1 -0
  91. package/models/tool-menu-item.d.ts +13 -0
  92. package/models/tool-menu-item.d.ts.map +1 -0
  93. package/package.json +19 -5
  94. package/types/entity-type.d.ts +10 -0
  95. package/types/entity-type.d.ts.map +1 -0
  96. package/types/mime-type.d.ts +9 -9
  97. package/types/mime-type.d.ts.map +1 -1
  98. package/utils/avatar-color.d.ts +3 -6
  99. package/utils/avatar-color.d.ts.map +1 -1
  100. package/utils/build-css-vars.d.ts +1 -4
  101. package/utils/build-css-vars.d.ts.map +1 -1
  102. package/utils/copy-to-clipboard.d.ts +14 -11
  103. package/utils/copy-to-clipboard.d.ts.map +1 -1
  104. package/utils/file-download.d.ts +12 -0
  105. package/utils/file-download.d.ts.map +1 -1
  106. package/utils/format-last-used.d.ts +1 -6
  107. package/utils/format-last-used.d.ts.map +1 -1
  108. package/utils/format-price.d.ts +7 -0
  109. package/utils/format-price.d.ts.map +1 -0
  110. package/utils/generate-uuid.d.ts +3 -0
  111. package/utils/generate-uuid.d.ts.map +1 -0
  112. package/utils/initials.d.ts +1 -7
  113. package/utils/initials.d.ts.map +1 -1
  114. package/utils/latex.d.ts +11 -0
  115. package/utils/latex.d.ts.map +1 -0
  116. package/utils/message-attachment-to-display.d.ts +1 -1
  117. package/utils/message-attachment-to-display.d.ts.map +1 -1
  118. package/utils/message.d.ts +1 -7
  119. package/utils/message.d.ts.map +1 -1
  120. package/utils/mime-type.d.ts +13 -0
  121. package/utils/mime-type.d.ts.map +1 -0
  122. package/utils/prompt-variables.d.ts +38 -0
  123. package/utils/prompt-variables.d.ts.map +1 -0
  124. package/utils/string-utils.d.ts +6 -0
  125. package/utils/string-utils.d.ts.map +1 -1
  126. package/components/Highlight/Highlight.d.ts +0 -26
  127. package/components/Highlight/Highlight.d.ts.map +0 -1
  128. package/hooks/useTableScroll.d.ts +0 -16
  129. package/hooks/useTableScroll.d.ts.map +0 -1
  130. package/types/overlay/overlay-protocol.d.ts +0 -308
  131. 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;
@@ -92,6 +84,11 @@ export interface MessageCustomContent {
92
84
  configuration_value?: Record<string, unknown>;
93
85
  /** Accumulated agent execution stages streamed via `custom_content.stages`. */
94
86
  stages?: Stage[];
87
+ /**
88
+ * Opaque app-managed state echoed back verbatim on the next turn, per the DIAL
89
+ * stateful-app contract. Overwritten (not merged) by each new streaming delta.
90
+ */
91
+ state?: Record<string, unknown>;
95
92
  }
96
93
  /** A single message in a conversation. */
97
94
  export interface Message {
@@ -103,40 +100,24 @@ export interface Message {
103
100
  timestamp: string;
104
101
  /** DIAL Core response identifier used for the rate API. Present on the final chunk. */
105
102
  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
- */
103
+ /** Extra DIAL API payload; present on user requests and assistant responses. */
111
104
  custom_content?: MessageCustomContent;
112
- /** User-submitted rating for this message. Only meaningful for assistant messages. Stored in-memory only; not persisted. */
105
+ /** User-submitted rating for this message. */
113
106
  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
- */
107
+ /** Deployment ID on `MessageRole.Assistant` and `MessageRole.Status` messages. */
119
108
  deploymentId?: string;
109
+ streamErrorMessage?: string;
120
110
  /** Allows extra SDK-level properties to pass through when serializing to DIAL Core. */
121
111
  [key: string]: unknown;
122
112
  }
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
- */
113
+ /** In-conversation system event message, always with `role: MessageRole.Status`. */
130
114
  export interface StatusMessage extends Omit<Message, 'role' | 'custom_content'> {
131
115
  /** Always `MessageRole.Status` for status messages. */
132
116
  role: MessageRole.Status;
133
117
  /** Status event payload. */
134
118
  custom_content?: StatusMessageCustomContent;
135
119
  }
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
- */
120
+ /** A single agent execution stage produced during a streaming response. */
140
121
  export interface Stage {
141
122
  /** Zero-based ordering key; used to merge/upsert incoming stage updates. */
142
123
  index: number;
@@ -154,6 +135,68 @@ export interface Stage {
154
135
  */
155
136
  tag?: string;
156
137
  }
138
+ /** A single LangChain-style tool-call request emitted by the model, present on a `ToolStateMessage` with `type: 'ai'`. */
139
+ export interface ToolCallRequest {
140
+ /** Name of the tool being called. */
141
+ name: string;
142
+ /** Arguments passed to the tool call. */
143
+ args: Record<string, unknown>;
144
+ /** Correlates this call to its result message via that message's `tool_call_id`. */
145
+ id: string;
146
+ }
147
+ /** One entry in `custom_content.state.tool_messages` — either the model's tool-call request or the tool's result. */
148
+ export interface ToolStateMessage {
149
+ /** LangChain message type: `'ai'` for the request, `'tool'` for the result. */
150
+ type: string;
151
+ /** Present on `type: 'tool'` result messages — the tool's own name. */
152
+ name?: string;
153
+ /** Present on `type: 'ai'` messages that requested one or more tool calls. */
154
+ tool_calls?: ToolCallRequest[];
155
+ /** Present on `type: 'tool'` result messages — correlates to the request's `id`. */
156
+ tool_call_id?: string;
157
+ /** Text content — the tool's result body on `type: 'tool'` messages. */
158
+ content?: string;
159
+ }
160
+ /** A single OpenAI-style tool-call request, present on a `ToolExecutionHistoryMessage` with `role: 'assistant'`. */
161
+ export interface OpenAiToolCall {
162
+ /** Correlates this call to its result message via that message's `tool_call_id`. */
163
+ id: string;
164
+ /** Always `'function'` for a tool call. */
165
+ type: string;
166
+ /** The invoked function's name and raw (unparsed) JSON-encoded arguments. */
167
+ function: {
168
+ name: string;
169
+ /** JSON-encoded arguments object — parse before use. */
170
+ arguments: string;
171
+ };
172
+ }
173
+ /** One entry in `custom_content.state.tool_execution_history` — either the model's tool-call request or the tool's result, in OpenAI chat-completion message shape (as opposed to `ToolStateMessage`'s LangChain shape). */
174
+ export interface ToolExecutionHistoryMessage {
175
+ /** `'assistant'` for the request, `'tool'` for the result. */
176
+ role: string;
177
+ /** Present on `role: 'assistant'` messages that requested one or more tool calls. */
178
+ tool_calls?: OpenAiToolCall[];
179
+ /** Present on `role: 'tool'` result messages — correlates to the request's `id`. */
180
+ tool_call_id?: string;
181
+ /** Text content — the tool's result body on `role: 'tool'` messages. */
182
+ content?: string;
183
+ }
184
+ /**
185
+ * Orchestrator-specific execution state, kept wire-verbatim snake_case like
186
+ * every other pass-through field under `custom_content` (e.g. `stages`) —
187
+ * not part of any standard DIAL Core contract. Different orchestrators emit
188
+ * different shapes: `tool_messages` (LangChain-style) is known from the
189
+ * StatGPT agent, gated behind its own `show_debug_stages` flag;
190
+ * `tool_execution_history` (OpenAI chat-completion-style) is known from a
191
+ * different agent. Both are optional and independent — a given orchestrator
192
+ * emits at most one of them.
193
+ */
194
+ export interface MessageState {
195
+ /** The model's tool-call requests and their results for this turn, LangChain-style. */
196
+ tool_messages?: ToolStateMessage[];
197
+ /** The model's tool-call requests and their results for this turn, OpenAI chat-completion-style. */
198
+ tool_execution_history?: ToolExecutionHistoryMessage[];
199
+ }
157
200
  /** Incremental content delta inside a streaming SSE chunk. */
158
201
  export interface StreamChunkDelta {
159
202
  /** Partial text token appended to the assistant message. */
@@ -175,12 +218,10 @@ export interface StreamChunkDelta {
175
218
  attachments?: MessageAttachment[];
176
219
  /** Partial annotation updates; merge by `index` into the accumulating annotation list. */
177
220
  annotations?: Annotation[];
221
+ /** Opaque app-managed state for the DIAL stateful-app contract; overwrites any previous value. */
222
+ state?: Record<string, unknown>;
178
223
  };
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
- */
224
+ /** Raw custom fields in the DIAL wire format. */
184
225
  custom_fields?: {
185
226
  /** Raw annotations in the DIAL wire format; must be normalized before use. */
186
227
  annotations?: unknown[];
@@ -288,6 +329,8 @@ export interface Conversation {
288
329
  prompt: string;
289
330
  /** Sampling temperature passed to the model (0–1). */
290
331
  temperature: number;
332
+ /** Optional Responses-API output-token cap, forwarded as `max_output_tokens`. Never derived from deployment limits or Chat Completions defaults. */
333
+ maxOutputTokens?: number;
291
334
  /** Ordered list of messages in the conversation. */
292
335
  messages: Message[];
293
336
  /** Unix timestamp (ms) of the most recent activity. */
@@ -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,CA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AAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,EAAE,EAAE,MAAM,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,oJAAoJ;IACpJ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,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,9 @@
1
+ /** Filter tab identifier; also used as conversation source and group key. */
2
+ export declare enum FilterTab {
3
+ All = "all",
4
+ Pinned = "pinned",
5
+ MyChats = "my-chats",
6
+ Shared = "shared",
7
+ Organization = "organization"
8
+ }
9
+ //# sourceMappingURL=conversation-classification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-classification.d.ts","sourceRoot":"","sources":["../../src/models/conversation-classification.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B"}
@@ -0,0 +1,94 @@
1
+ /** Lifecycle status of a queued export/import job. */
2
+ export declare enum ConversationTransferJobStatus {
3
+ InProgress = "inProgress",
4
+ Success = "success",
5
+ /** Delivered its file, but not everything the user asked for made it in. */
6
+ Warning = "warning",
7
+ Failed = "failed",
8
+ Canceled = "canceled"
9
+ }
10
+ /** Whether a transfer job's subject is a single named conversation or the whole history. */
11
+ export declare enum ConversationTransferSubjectKind {
12
+ Single = "single",
13
+ All = "all"
14
+ }
15
+ /** What a transfer job operates on — structured data, never pre-rendered translated text. */
16
+ export type ConversationTransferSubject = {
17
+ kind: ConversationTransferSubjectKind.Single;
18
+ /** The conversation's own name. */
19
+ title: string;
20
+ /** Folder breadcrumb the conversation originated from, if nested. */
21
+ sourceBreadcrumb?: string;
22
+ } | {
23
+ kind: ConversationTransferSubjectKind.All;
24
+ };
25
+ /** Reason a transfer job failed. Translation-free; hosts map each member to their own copy. */
26
+ export declare enum ConversationTransferErrorCode {
27
+ Unauthorized = "unauthorized",
28
+ NotFound = "notFound",
29
+ UnsupportedFormat = "unsupportedFormat",
30
+ MissingBucket = "missingBucket",
31
+ FileTooLarge = "fileTooLarge",
32
+ Unknown = "unknown"
33
+ }
34
+ /**
35
+ * Reason a transfer job completed with a non-fatal warning. Translation-free;
36
+ * hosts map each member to their own copy.
37
+ */
38
+ export declare enum ConversationTransferWarningCode {
39
+ AttachmentSkipped = "attachmentSkipped"
40
+ }
41
+ /** What one unit of a transfer job's discoverable work represents. */
42
+ export declare enum ConversationTransferUnitKind {
43
+ Attachment = "attachment",
44
+ Conversation = "conversation"
45
+ }
46
+ /**
47
+ * Countable progress within the phase a job is currently working through —
48
+ * downloaded/uploaded attachments, or fetched/saved conversations. Describes
49
+ * only that phase, never the job as a whole.
50
+ */
51
+ export interface ConversationTransferProgressUnits {
52
+ /** Units settled so far in the current phase. */
53
+ completed: number;
54
+ /** Units the current phase will settle in total. */
55
+ total: number;
56
+ /** What a unit represents. */
57
+ kind: ConversationTransferUnitKind;
58
+ }
59
+ /**
60
+ * A transfer job's completion, always determinate — there is no indeterminate
61
+ * state, so a job is renderable as a real percentage from its first frame.
62
+ */
63
+ export interface ConversationTransferProgress {
64
+ /**
65
+ * Completion as an integer 0–100. Monotonically non-decreasing for the life
66
+ * of a job id: a write that would lower it is discarded rather than applied,
67
+ * so a discovered unit count can subdivide the work still to do but can
68
+ * never move the indicator backwards.
69
+ */
70
+ percent: number;
71
+ /**
72
+ * Readout for the phase currently advancing, for assistive technology.
73
+ * Absent while the phase's unit count is unknown.
74
+ */
75
+ units?: ConversationTransferProgressUnits;
76
+ }
77
+ /** A queued export or import job. */
78
+ export interface ConversationTransferJob {
79
+ id: string;
80
+ subject: ConversationTransferSubject;
81
+ status: ConversationTransferJobStatus;
82
+ /** Name of the file this job writes (export) or reads (import), known at enqueue time. */
83
+ fileName: string;
84
+ /** Determinate completion of this job. */
85
+ progress: ConversationTransferProgress;
86
+ /** Why the job failed. Set only alongside {@link ConversationTransferJobStatus.Failed}. */
87
+ errorCode?: ConversationTransferErrorCode;
88
+ /**
89
+ * What was incomplete about an otherwise-delivered job. Set only alongside
90
+ * {@link ConversationTransferJobStatus.Warning}.
91
+ */
92
+ warningCode?: ConversationTransferWarningCode;
93
+ }
94
+ //# sourceMappingURL=conversation-transfer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-transfer.d.ts","sourceRoot":"","sources":["../../src/models/conversation-transfer.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oBAAY,6BAA6B;IACvC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,4EAA4E;IAC5E,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;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AAS,CAAC,EAAE,6BAA6B,CAAC;IAC1C;;;OAGG;IACH,WAAW,CAAC,EAAE,+BAA+B,CAAC;CAC/C"}
@@ -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,15 @@
1
+ import { CatalogEntityType } from '../types/entity-type';
2
+ /** Minimal entity identity fields rendered by `EntityHeader`. */
3
+ export interface EntityHeaderItem {
4
+ /** Entity category. */
5
+ type: CatalogEntityType;
6
+ /** Display name. */
7
+ name: string;
8
+ /** Version string shown next to the name. */
9
+ version: string;
10
+ /** URL of the icon displayed inside the logo mark. */
11
+ iconUrl?: string;
12
+ /** Whether the entity is marked as featured. */
13
+ isFeatured?: boolean;
14
+ }
15
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/models/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -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.38",
4
+ "version": "1.1.0-dev.383",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -13,20 +13,34 @@
13
13
  "types": "./index.d.ts",
14
14
  "import": "./index.js",
15
15
  "default": "./index.js"
16
- }
16
+ },
17
+ "./styles.css": "./index.css"
17
18
  },
18
19
  "peerDependencies": {
19
20
  "react": "^19.2.6",
20
- "@epam/ai-dial-ui-kit": "0.12.0-dev.36",
21
21
  "vitest": "~4.1.0",
22
22
  "@tabler/icons-react": "^3.44.0",
23
23
  "react-syntax-highlighter": "^16.1.1",
24
24
  "react-markdown": "^10.1.0",
25
- "remark-gfm": "^4.0.1"
25
+ "remark-breaks": "^4.0.0",
26
+ "remark-gfm": "^4.0.1",
27
+ "remark-math": "^6.0.0",
28
+ "rehype-katex": "^7.0.1",
29
+ "rehype-raw": "^7.0.0",
30
+ "rehype-sanitize": "^6.0.0",
31
+ "katex": "^0.16.22",
32
+ "@epam/ai-dial-ui-kit": "^0.14.0-dev.15",
33
+ "@epam/ai-dial-react-file-manager": "*",
34
+ "ag-grid-community": "^35.3.0"
26
35
  },
27
36
  "dependencies": {
28
37
  "classnames": "2.5.1",
29
- "tailwind-merge": "^3.6.0"
38
+ "dompurify": "3.4.13",
39
+ "rehype-stringify": "^10.0.1",
40
+ "remark-parse": "^11.0.0",
41
+ "remark-rehype": "^11.1.2",
42
+ "tailwind-merge": "^3.6.0",
43
+ "unified": "^11.0.5"
30
44
  },
31
45
  "repository": {
32
46
  "type": "git",
@@ -0,0 +1,10 @@
1
+ /** Entity type for a catalog item. Values are uppercase for direct color-map lookup. */
2
+ export declare enum CatalogEntityType {
3
+ Model = "MODEL",
4
+ Agent = "AGENT",
5
+ Toolset = "TOOLSET",
6
+ Skill = "SKILL",
7
+ /** Reusable text prompt. Carries a body instead of a runtime. */
8
+ Prompt = "PROMPT"
9
+ }
10
+ //# sourceMappingURL=entity-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,iEAAiE;IACjE,MAAM,WAAW;CAClB"}
@@ -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",
@@ -40,12 +37,15 @@ export declare enum MIMEType {
40
37
  /** BMP bitmap image. */
41
38
  BMP = "image/bmp",
42
39
  /** SVG vector image. */
43
- SVG = "image/svg+xml"
40
+ SVG = "image/svg+xml",
41
+ /** MPEG audio (`.mp3`). */
42
+ MP3 = "audio/mpeg",
43
+ /** WAV audio. */
44
+ WAV = "audio/wav",
45
+ /** Ogg audio. */
46
+ OGG = "audio/ogg"
44
47
  }
45
- /**
46
- * Well-known file extension constants used as fallback when a MIME type is
47
- * unavailable or unreliable.
48
- */
48
+ /** Well-known file extension constants used as fallback when a MIME type is unavailable. */
49
49
  export declare enum FileExtension {
50
50
  /** PDF document. */
51
51
  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;IAGrB,2BAA2B;IAC3B,GAAG,eAAe;IAClB,iBAAiB;IACjB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;CAClB;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"}
@@ -1,13 +1,10 @@
1
1
  /** A background/foreground colour pair for an initials avatar badge. */
2
2
  export interface AvatarColorEntry {
3
- /** CSS hex colour for the badge background. */
3
+ /** CSS colour value for the badge background — a theme token with a hex fallback. */
4
4
  background: string;
5
- /** CSS hex colour for the initials text. */
5
+ /** CSS colour value for the initials text — a theme token with a hex fallback. */
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,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;CACpB;AAsCD,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,18 @@
1
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()`.
2
+ * Renders markdown to sanitized HTML whose styling travels inline, so a
3
+ * rich-text target it is pasted into shows the tables, headings, and code
4
+ * blocks the way the conversation does.
13
5
  */
6
+ export declare const markdownToRichTextHtml: (content: string) => string;
7
+ /**
8
+ * Copies markdown `content` to the clipboard as rich text, so pasting into a
9
+ * rich-text target (Word, Gmail, Slack) keeps the formatting. Both the
10
+ * `text/html` and the `text/plain` flavour are written, so a plain-text
11
+ * target (Notepad, a terminal, a code editor) pastes the raw markdown instead
12
+ * of nothing. Falls back to {@link copyToClipboard}, and therefore to the raw
13
+ * markdown, when the multi-format Clipboard API isn't available.
14
+ */
15
+ export declare const copyMarkdownAsRichText: (content: string) => Promise<boolean>;
16
+ /** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
14
17
  export declare const copyToClipboard: (text: string) => Promise<boolean>;
15
18
  //# sourceMappingURL=copy-to-clipboard.d.ts.map