@epam/ai-dial-chat-shared 1.3.0-dev.34 → 1.3.0-dev.37

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 (223) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +41 -0
  2. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
  3. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
  4. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
  5. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
  6. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
  7. package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
  8. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  9. package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
  10. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  11. package/components/CopyButton/CopyButton.d.ts +19 -0
  12. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  13. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  14. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  15. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  16. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  17. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  18. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  19. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  20. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  21. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  22. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  23. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  24. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  25. package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
  26. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  27. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  28. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  29. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
  30. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  31. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  32. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  33. package/components/MarkdownRenderer/MDMessageViewer.d.ts +62 -0
  34. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  35. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +137 -0
  36. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  37. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  38. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  39. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  40. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  41. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
  42. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  43. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  44. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  45. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  46. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  47. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  48. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  49. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  50. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  51. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  52. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  53. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  54. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  55. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  56. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  57. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  58. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  59. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  60. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  61. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  62. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  63. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  64. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  65. package/constants/breakpoint.d.ts +9 -0
  66. package/constants/breakpoint.d.ts.map +1 -0
  67. package/constants/dial.d.ts +5 -0
  68. package/constants/dial.d.ts.map +1 -0
  69. package/constants/entity-colors.d.ts +6 -0
  70. package/constants/entity-colors.d.ts.map +1 -0
  71. package/constants/icon.d.ts +14 -0
  72. package/constants/icon.d.ts.map +1 -0
  73. package/constants/markdown-editor.d.ts +2 -0
  74. package/constants/markdown-editor.d.ts.map +1 -0
  75. package/constants/mime-types.d.ts +27 -0
  76. package/constants/mime-types.d.ts.map +1 -0
  77. package/constants/public-class-names.d.ts +13 -0
  78. package/constants/public-class-names.d.ts.map +1 -0
  79. package/constants/resizable-fields.d.ts +5 -0
  80. package/constants/resizable-fields.d.ts.map +1 -0
  81. package/constants/select-list.d.ts +4 -0
  82. package/constants/select-list.d.ts.map +1 -0
  83. package/constants/tag-input.d.ts +2 -0
  84. package/constants/tag-input.d.ts.map +1 -0
  85. package/entry-points/file-manager.d.ts +5 -0
  86. package/entry-points/file-manager.d.ts.map +1 -0
  87. package/entry-points/markdown.d.ts +18 -0
  88. package/entry-points/markdown.d.ts.map +1 -0
  89. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  90. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  91. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  92. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  93. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  94. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  95. package/file-manager/attach-result.d.ts +9 -0
  96. package/file-manager/attach-result.d.ts.map +1 -0
  97. package/file-manager/file-manager-controller.d.ts +121 -0
  98. package/file-manager/file-manager-controller.d.ts.map +1 -0
  99. package/file-manager/file-manager-variant.d.ts +21 -0
  100. package/file-manager/file-manager-variant.d.ts.map +1 -0
  101. package/file-manager/file-upload-validation.d.ts +8 -0
  102. package/file-manager/file-upload-validation.d.ts.map +1 -0
  103. package/file-manager/index.d.ts +10 -0
  104. package/file-manager/index.d.ts.map +1 -0
  105. package/file-manager/labels.d.ts +156 -0
  106. package/file-manager/labels.d.ts.map +1 -0
  107. package/file-manager/path.d.ts +12 -0
  108. package/file-manager/path.d.ts.map +1 -0
  109. package/file-manager/upload-batch.d.ts +29 -0
  110. package/file-manager/upload-batch.d.ts.map +1 -0
  111. package/file-manager/upload-queue.d.ts +5 -0
  112. package/file-manager/upload-queue.d.ts.map +1 -0
  113. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  114. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  115. package/file-manager.d.ts +2 -506
  116. package/hooks/useAvailableHeightCap.d.ts +30 -0
  117. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  118. package/hooks/useCodeCopy.d.ts +6 -0
  119. package/hooks/useCodeCopy.d.ts.map +1 -0
  120. package/hooks/useCollapsedText.d.ts +27 -0
  121. package/hooks/useCollapsedText.d.ts.map +1 -0
  122. package/hooks/useHorizontalOverflow.d.ts +21 -0
  123. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  124. package/hooks/useIsMobile.d.ts +3 -0
  125. package/hooks/useIsMobile.d.ts.map +1 -0
  126. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  127. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  128. package/hooks/useTextRefinement.d.ts +44 -0
  129. package/hooks/useTextRefinement.d.ts.map +1 -0
  130. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  131. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  132. package/index.d.ts +77 -3167
  133. package/index.d.ts.map +1 -0
  134. package/markdown.d.ts +2 -465
  135. package/models/annotation.d.ts +143 -0
  136. package/models/annotation.d.ts.map +1 -0
  137. package/models/application-visualizer.d.ts +67 -0
  138. package/models/application-visualizer.d.ts.map +1 -0
  139. package/models/auth.d.ts +26 -0
  140. package/models/auth.d.ts.map +1 -0
  141. package/models/chat.d.ts +407 -0
  142. package/models/chat.d.ts.map +1 -0
  143. package/models/conversation-classification.d.ts +9 -0
  144. package/models/conversation-classification.d.ts.map +1 -0
  145. package/models/conversation-transfer.d.ts +96 -0
  146. package/models/conversation-transfer.d.ts.map +1 -0
  147. package/models/custom-visualizer.d.ts +61 -0
  148. package/models/custom-visualizer.d.ts.map +1 -0
  149. package/models/deployment-configuration.d.ts +55 -0
  150. package/models/deployment-configuration.d.ts.map +1 -0
  151. package/models/deployment-features.d.ts +17 -0
  152. package/models/deployment-features.d.ts.map +1 -0
  153. package/models/deployment.d.ts +31 -0
  154. package/models/deployment.d.ts.map +1 -0
  155. package/models/dial-model.d.ts +19 -0
  156. package/models/dial-model.d.ts.map +1 -0
  157. package/models/entity.d.ts +15 -0
  158. package/models/entity.d.ts.map +1 -0
  159. package/models/import-export.d.ts +23 -0
  160. package/models/import-export.d.ts.map +1 -0
  161. package/models/locale.d.ts +19 -0
  162. package/models/locale.d.ts.map +1 -0
  163. package/models/text-refinement.d.ts +18 -0
  164. package/models/text-refinement.d.ts.map +1 -0
  165. package/models/theme.d.ts +36 -0
  166. package/models/theme.d.ts.map +1 -0
  167. package/models/tool-menu-item.d.ts +13 -0
  168. package/models/tool-menu-item.d.ts.map +1 -0
  169. package/package.json +1 -1
  170. package/types/attachment.d.ts +25 -0
  171. package/types/attachment.d.ts.map +1 -0
  172. package/types/code-editor.d.ts +8 -0
  173. package/types/code-editor.d.ts.map +1 -0
  174. package/types/entity-type.d.ts +10 -0
  175. package/types/entity-type.d.ts.map +1 -0
  176. package/types/file-manager-node.d.ts +17 -0
  177. package/types/file-manager-node.d.ts.map +1 -0
  178. package/types/mime-type.d.ts +59 -0
  179. package/types/mime-type.d.ts.map +1 -0
  180. package/utils/annotation.d.ts +29 -0
  181. package/utils/annotation.d.ts.map +1 -0
  182. package/utils/avatar-color.d.ts +10 -0
  183. package/utils/avatar-color.d.ts.map +1 -0
  184. package/utils/build-css-vars.d.ts +4 -0
  185. package/utils/build-css-vars.d.ts.map +1 -0
  186. package/utils/copy-to-clipboard.d.ts +18 -0
  187. package/utils/copy-to-clipboard.d.ts.map +1 -0
  188. package/utils/entity-field-limits.d.ts +11 -0
  189. package/utils/entity-field-limits.d.ts.map +1 -0
  190. package/utils/entity-type.d.ts +5 -0
  191. package/utils/entity-type.d.ts.map +1 -0
  192. package/utils/file-download.d.ts +21 -0
  193. package/utils/file-download.d.ts.map +1 -0
  194. package/utils/format-file-size.d.ts +3 -0
  195. package/utils/format-file-size.d.ts.map +1 -0
  196. package/utils/format-last-used.d.ts +3 -0
  197. package/utils/format-last-used.d.ts.map +1 -0
  198. package/utils/format-price.d.ts +7 -0
  199. package/utils/format-price.d.ts.map +1 -0
  200. package/utils/generate-uuid.d.ts +3 -0
  201. package/utils/generate-uuid.d.ts.map +1 -0
  202. package/utils/initials.d.ts +3 -0
  203. package/utils/initials.d.ts.map +1 -0
  204. package/utils/is-audio-transcription-supported.d.ts +3 -0
  205. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  206. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  207. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  208. package/utils/latex.d.ts +21 -0
  209. package/utils/latex.d.ts.map +1 -0
  210. package/utils/merge-class.d.ts +4 -0
  211. package/utils/merge-class.d.ts.map +1 -0
  212. package/utils/message-attachment-to-display.d.ts +22 -0
  213. package/utils/message-attachment-to-display.d.ts.map +1 -0
  214. package/utils/message.d.ts +4 -0
  215. package/utils/message.d.ts.map +1 -0
  216. package/utils/mime-type.d.ts +22 -0
  217. package/utils/mime-type.d.ts.map +1 -0
  218. package/utils/prompt-variables.d.ts +62 -0
  219. package/utils/prompt-variables.d.ts.map +1 -0
  220. package/utils/string-utils.d.ts +11 -0
  221. package/utils/string-utils.d.ts.map +1 -0
  222. package/utils/syntax-highlighting.d.ts +8 -0
  223. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -0,0 +1,44 @@
1
+ /** Asynchronous rewriting callback supplied by the consuming host. */
2
+ export type TextRefinementCallback = (value: string, signal: AbortSignal) => Promise<string>;
3
+ /** Field-local refinement feedback state. */
4
+ export declare enum TextRefinementState {
5
+ Idle = "idle",
6
+ Pending = "pending",
7
+ Success = "success",
8
+ Error = "error",
9
+ Restored = "restored",
10
+ Unchanged = "unchanged"
11
+ }
12
+ /** Controlled value and lifecycle inputs for one refinable field. */
13
+ export interface UseTextRefinementOptions {
14
+ /** Current controlled field value. */
15
+ value: string;
16
+ /** Host rewriting callback. Omission disables refinement and clears its state. */
17
+ onRefine?: TextRefinementCallback;
18
+ /** Publishes a successful result or the original Undo baseline. */
19
+ onChange: (value: string) => void;
20
+ /** Disables refinement and cancels active work when true. Defaults to false. */
21
+ disabled?: boolean;
22
+ /** Draft identity; changing it resets state even when text is equal. */
23
+ resetKey?: unknown;
24
+ }
25
+ /** Controls and feedback for a single field. */
26
+ export interface TextRefinementResult {
27
+ /** Current field-local feedback state. */
28
+ state: TextRefinementState;
29
+ /** Whether this field has a request in progress. */
30
+ isPending: boolean;
31
+ /** Whether the current value can be refined. */
32
+ canRefine: boolean;
33
+ /** Whether an original baseline can be restored. */
34
+ canUndo: boolean;
35
+ /** Refines the latest committed value; duplicate activation is ignored. */
36
+ refine: () => Promise<void>;
37
+ /** Restores the baseline from before the first successful refinement. */
38
+ undo: () => void;
39
+ /** Cancels work and clears feedback and Undo without modifying the value. */
40
+ reset: () => void;
41
+ }
42
+ /** Preserves an author's draft and Undo baseline across asynchronous controlled updates. */
43
+ export declare const useTextRefinement: (options: UseTextRefinementOptions) => TextRefinementResult;
44
+ //# sourceMappingURL=useTextRefinement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextRefinement.d.ts","sourceRoot":"","sources":["../../src/hooks/useTextRefinement.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,6CAA6C;AAC7C,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACvC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,mEAAmE;IACnE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,gDAAgD;AAChD,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,KAAK,EAAE,mBAAmB,CAAC;IAC3B,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,yEAAyE;IACzE,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,GAC5B,SAAS,wBAAwB,KAChC,oBA+IF,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** Result of {@link useUnsavedChangesGuard}. */
2
+ export interface UnsavedChangesGuardResult {
3
+ /** Runs `action` immediately when nothing is dirty; otherwise defers it and opens the confirmation. */
4
+ guard: (action: () => void) => void;
5
+ /** Whether the discard confirmation should be shown. */
6
+ isConfirmOpen: boolean;
7
+ /** Closes the confirmation and runs the deferred action. */
8
+ confirm: () => void;
9
+ /** Closes the confirmation and drops the deferred action. */
10
+ dismiss: () => void;
11
+ }
12
+ /** Defers leaving a form with unsaved changes until the user confirms, and asks the browser to warn before the page unloads. */
13
+ export declare const useUnsavedChangesGuard: (isDirty: boolean) => UnsavedChangesGuardResult;
14
+ //# sourceMappingURL=useUnsavedChangesGuard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnsavedChangesGuard.d.ts","sourceRoot":"","sources":["../../src/hooks/useUnsavedChangesGuard.ts"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,uGAAuG;IACvG,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IACpC,wDAAwD;IACxD,aAAa,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,gIAAgI;AAChI,eAAO,MAAM,sBAAsB,GACjC,SAAS,OAAO,KACf,yBAsCF,CAAC"}