@epam/ai-dial-chat-shared 1.3.0-dev.28 → 1.3.0-dev.282

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 (312) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +46 -0
  2. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
  3. package/components/ConfirmationDialog/ConfirmationDialog.js +11 -9
  4. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
  5. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
  6. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +5 -4
  7. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
  8. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
  9. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +2 -2
  10. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -2
  11. package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
  12. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  13. package/components/ConfirmationView/ConfirmationFooter.js +25 -26
  14. package/components/ConfirmationView/ConfirmationView.d.ts +59 -0
  15. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  16. package/components/ConfirmationView/ConfirmationView.js +12 -12
  17. package/components/ConfirmationView/ConfirmationView.module.scss.js +6 -5
  18. package/components/CopyButton/CopyButton.d.ts +19 -0
  19. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  20. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  21. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  22. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  23. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  24. package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +5 -4
  25. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  26. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  27. package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -2
  28. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  29. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  30. package/components/EntityHeader/EntityHeader.js +1 -1
  31. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  32. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  33. package/components/ErrorAlert/ErrorAlert.d.ts +27 -0
  34. package/components/ErrorAlert/ErrorAlert.d.ts.map +1 -0
  35. package/components/ErrorAlert/ErrorAlert.js +26 -0
  36. package/components/ErrorAlert/ErrorAlert.module.scss.js +4 -0
  37. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  38. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  39. package/components/FullScreenAlert/FullScreenAlert.d.ts +17 -0
  40. package/components/FullScreenAlert/FullScreenAlert.d.ts.map +1 -0
  41. package/components/FullScreenAlert/FullScreenAlert.js +19 -0
  42. package/components/InitialsAvatar/InitialsAvatar.d.ts +18 -0
  43. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  44. package/components/InitialsAvatar/InitialsAvatar.js +4 -3
  45. package/components/ItemHeader/ItemHeader.d.ts +40 -0
  46. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  47. package/components/ItemHeader/ItemHeader.js +4 -1
  48. package/components/ItemHeader/ItemHeader.module.scss.js +5 -4
  49. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +57 -0
  50. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  51. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +58 -58
  52. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +9 -8
  53. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  54. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  55. package/components/MarkdownRenderer/MDMessageViewer.d.ts +66 -0
  56. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  57. package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
  58. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +145 -0
  59. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  60. package/components/MarkdownRenderer/MarkdownRenderer.js +146 -136
  61. package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +9 -8
  62. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  63. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  64. package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +1 -1
  65. package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +5 -4
  66. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  67. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  68. package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
  69. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +51 -0
  70. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  71. package/components/MarkdownRenderer/Table/MarkdownTable.js +68 -63
  72. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -13
  73. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  74. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  75. package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -2
  76. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  77. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  78. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  79. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  80. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  81. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  82. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  83. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  84. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  85. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  86. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  87. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  88. package/components/MarkdownRenderer/markdown-whitespace.js +2 -6
  89. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  90. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  91. package/components/NewVersionAlert/NewVersionAlert.d.ts +27 -0
  92. package/components/NewVersionAlert/NewVersionAlert.d.ts.map +1 -0
  93. package/components/NewVersionAlert/NewVersionAlert.js +26 -0
  94. package/components/NewVersionAlert/NewVersionAlert.module.scss.js +4 -0
  95. package/components/NotificationStack/NotificationStack.d.ts +46 -0
  96. package/components/NotificationStack/NotificationStack.d.ts.map +1 -0
  97. package/components/NotificationStack/NotificationStack.js +109 -0
  98. package/components/PanelEmptyState/PanelEmptyState.d.ts +32 -0
  99. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  100. package/components/PanelEmptyState/PanelEmptyState.js +19 -9
  101. package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -2
  102. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  103. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  104. package/components/ResourceSummary/ResourceSummary.module.scss.js +5 -4
  105. package/components/TextRefinementField/TextRefinementField.d.ts +33 -0
  106. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  107. package/components/TextRefinementField/TextRefinementField.js +84 -55
  108. package/constants/breakpoint.d.ts +9 -0
  109. package/constants/breakpoint.d.ts.map +1 -0
  110. package/constants/breakpoint.js +1 -1
  111. package/constants/dial.d.ts +5 -0
  112. package/constants/dial.d.ts.map +1 -0
  113. package/constants/entity-colors.d.ts +6 -0
  114. package/constants/entity-colors.d.ts.map +1 -0
  115. package/constants/icon.d.ts +14 -0
  116. package/constants/icon.d.ts.map +1 -0
  117. package/constants/markdown-editor.d.ts +2 -0
  118. package/constants/markdown-editor.d.ts.map +1 -0
  119. package/constants/mime-types.d.ts +27 -0
  120. package/constants/mime-types.d.ts.map +1 -0
  121. package/constants/public-class-names.d.ts +13 -0
  122. package/constants/public-class-names.d.ts.map +1 -0
  123. package/constants/resizable-fields.d.ts +5 -0
  124. package/constants/resizable-fields.d.ts.map +1 -0
  125. package/constants/select-list.d.ts +4 -0
  126. package/constants/select-list.d.ts.map +1 -0
  127. package/constants/tag-input.d.ts +2 -0
  128. package/constants/tag-input.d.ts.map +1 -0
  129. package/conversation-transfer/conversation-transfer-queue.d.ts +16 -0
  130. package/conversation-transfer/conversation-transfer-queue.d.ts.map +1 -0
  131. package/conversation-transfer/conversation-transfer-queue.js +24 -0
  132. package/entry-points/file-manager.d.ts +5 -0
  133. package/entry-points/file-manager.d.ts.map +1 -0
  134. package/entry-points/markdown.d.ts +19 -0
  135. package/entry-points/markdown.d.ts.map +1 -0
  136. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +67 -0
  137. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  138. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +328 -266
  139. package/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss.js +8 -0
  140. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +96 -0
  141. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  142. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +82 -78
  143. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.module.scss.js +7 -0
  144. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +22 -0
  145. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  146. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +21 -17
  147. package/file-manager/OperationLoaderModal/OperationLoaderModal.module.scss.js +4 -0
  148. package/file-manager/attach-result.d.ts +9 -0
  149. package/file-manager/attach-result.d.ts.map +1 -0
  150. package/file-manager/file-manager-controller.d.ts +129 -0
  151. package/file-manager/file-manager-controller.d.ts.map +1 -0
  152. package/file-manager/file-manager-variant.d.ts +21 -0
  153. package/file-manager/file-manager-variant.d.ts.map +1 -0
  154. package/file-manager/file-upload-validation.d.ts +8 -0
  155. package/file-manager/file-upload-validation.d.ts.map +1 -0
  156. package/file-manager/index.d.ts +11 -0
  157. package/file-manager/index.d.ts.map +1 -0
  158. package/file-manager/labels.d.ts +177 -0
  159. package/file-manager/labels.d.ts.map +1 -0
  160. package/file-manager/path.d.ts +12 -0
  161. package/file-manager/path.d.ts.map +1 -0
  162. package/file-manager/shell-styles.d.ts +33 -0
  163. package/file-manager/shell-styles.d.ts.map +1 -0
  164. package/file-manager/upload-batch.d.ts +75 -0
  165. package/file-manager/upload-batch.d.ts.map +1 -0
  166. package/file-manager/upload-batch.js +6 -2
  167. package/file-manager/upload-queue.d.ts +45 -0
  168. package/file-manager/upload-queue.d.ts.map +1 -0
  169. package/file-manager/upload-queue.js +45 -13
  170. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  171. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  172. package/file-manager.d.ts +2 -506
  173. package/file-manager.js +4 -4
  174. package/hooks/useAvailableHeightCap.d.ts +30 -0
  175. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  176. package/hooks/useAvailableHeightCap.js +1 -1
  177. package/hooks/useCodeCopy.d.ts +6 -0
  178. package/hooks/useCodeCopy.d.ts.map +1 -0
  179. package/hooks/useCollapsedText.d.ts +27 -0
  180. package/hooks/useCollapsedText.d.ts.map +1 -0
  181. package/hooks/useControlErrorAssociation.d.ts +3 -0
  182. package/hooks/useControlErrorAssociation.d.ts.map +1 -0
  183. package/hooks/useControlErrorAssociation.js +12 -0
  184. package/hooks/useHorizontalOverflow.d.ts +21 -0
  185. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  186. package/hooks/useIsMobile.d.ts +3 -0
  187. package/hooks/useIsMobile.d.ts.map +1 -0
  188. package/hooks/useIsMobile.js +1 -1
  189. package/hooks/useIsTextClipped.d.ts +26 -0
  190. package/hooks/useIsTextClipped.d.ts.map +1 -0
  191. package/hooks/useIsTextClipped.js +25 -0
  192. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  193. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  194. package/hooks/useTextRefinement.d.ts +44 -0
  195. package/hooks/useTextRefinement.d.ts.map +1 -0
  196. package/hooks/useTextRefinement.js +4 -4
  197. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  198. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  199. package/hooks/useUnsavedChangesGuard.js +1 -5
  200. package/index.css +3 -2
  201. package/index.d.ts +86 -3167
  202. package/index.d.ts.map +1 -0
  203. package/index.js +85 -76
  204. package/markdown.d.ts +2 -465
  205. package/markdown.js +3 -2
  206. package/models/annotation.d.ts +143 -0
  207. package/models/annotation.d.ts.map +1 -0
  208. package/models/application-visualizer.d.ts +67 -0
  209. package/models/application-visualizer.d.ts.map +1 -0
  210. package/models/auth.d.ts +28 -0
  211. package/models/auth.d.ts.map +1 -0
  212. package/models/chat.d.ts +409 -0
  213. package/models/chat.d.ts.map +1 -0
  214. package/models/conversation-classification.d.ts +14 -0
  215. package/models/conversation-classification.d.ts.map +1 -0
  216. package/models/conversation-classification.js +3 -1
  217. package/models/conversation-transfer.d.ts +96 -0
  218. package/models/conversation-transfer.d.ts.map +1 -0
  219. package/models/custom-visualizer.d.ts +61 -0
  220. package/models/custom-visualizer.d.ts.map +1 -0
  221. package/models/deployment-configuration.d.ts +55 -0
  222. package/models/deployment-configuration.d.ts.map +1 -0
  223. package/models/deployment-features.d.ts +17 -0
  224. package/models/deployment-features.d.ts.map +1 -0
  225. package/models/deployment.d.ts +31 -0
  226. package/models/deployment.d.ts.map +1 -0
  227. package/models/dial-model.d.ts +19 -0
  228. package/models/dial-model.d.ts.map +1 -0
  229. package/models/entity.d.ts +15 -0
  230. package/models/entity.d.ts.map +1 -0
  231. package/models/import-export.d.ts +23 -0
  232. package/models/import-export.d.ts.map +1 -0
  233. package/models/inline-segment.d.ts +11 -0
  234. package/models/inline-segment.d.ts.map +1 -0
  235. package/models/locale.d.ts +19 -0
  236. package/models/locale.d.ts.map +1 -0
  237. package/models/text-refinement.d.ts +22 -0
  238. package/models/text-refinement.d.ts.map +1 -0
  239. package/models/theme.d.ts +36 -0
  240. package/models/theme.d.ts.map +1 -0
  241. package/models/tool-menu-item.d.ts +13 -0
  242. package/models/tool-menu-item.d.ts.map +1 -0
  243. package/package.json +10 -17
  244. package/types/attachment.d.ts +25 -0
  245. package/types/attachment.d.ts.map +1 -0
  246. package/types/code-editor.d.ts +8 -0
  247. package/types/code-editor.d.ts.map +1 -0
  248. package/types/entity-type.d.ts +10 -0
  249. package/types/entity-type.d.ts.map +1 -0
  250. package/types/file-manager-node.d.ts +17 -0
  251. package/types/file-manager-node.d.ts.map +1 -0
  252. package/types/mime-type.d.ts +59 -0
  253. package/types/mime-type.d.ts.map +1 -0
  254. package/utils/annotation.d.ts +29 -0
  255. package/utils/annotation.d.ts.map +1 -0
  256. package/utils/avatar-color.d.ts +10 -0
  257. package/utils/avatar-color.d.ts.map +1 -0
  258. package/utils/base64-json.d.ts +14 -0
  259. package/utils/base64-json.d.ts.map +1 -0
  260. package/utils/base64-json.js +4 -0
  261. package/utils/build-css-vars.d.ts +4 -0
  262. package/utils/build-css-vars.d.ts.map +1 -0
  263. package/utils/copy-to-clipboard.d.ts +18 -0
  264. package/utils/copy-to-clipboard.d.ts.map +1 -0
  265. package/utils/entity-field-limits.d.ts +11 -0
  266. package/utils/entity-field-limits.d.ts.map +1 -0
  267. package/utils/entity-type.d.ts +5 -0
  268. package/utils/entity-type.d.ts.map +1 -0
  269. package/utils/file-download.d.ts +21 -0
  270. package/utils/file-download.d.ts.map +1 -0
  271. package/utils/format-file-size.d.ts +3 -0
  272. package/utils/format-file-size.d.ts.map +1 -0
  273. package/utils/format-last-used.d.ts +3 -0
  274. package/utils/format-last-used.d.ts.map +1 -0
  275. package/utils/format-price.d.ts +7 -0
  276. package/utils/format-price.d.ts.map +1 -0
  277. package/utils/format-price.js +10 -10
  278. package/utils/generate-uuid.d.ts +3 -0
  279. package/utils/generate-uuid.d.ts.map +1 -0
  280. package/utils/initials.d.ts +3 -0
  281. package/utils/initials.d.ts.map +1 -0
  282. package/utils/inline-segments.d.ts +38 -0
  283. package/utils/inline-segments.d.ts.map +1 -0
  284. package/utils/inline-segments.js +53 -0
  285. package/utils/is-audio-transcription-supported.d.ts +3 -0
  286. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  287. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  288. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  289. package/utils/latex.d.ts +22 -0
  290. package/utils/latex.d.ts.map +1 -0
  291. package/utils/latex.js +47 -41
  292. package/utils/markdown-html.d.ts +14 -0
  293. package/utils/markdown-html.d.ts.map +1 -0
  294. package/utils/markdown-html.js +11 -0
  295. package/utils/merge-class.d.ts +4 -0
  296. package/utils/merge-class.d.ts.map +1 -0
  297. package/utils/message-attachment-to-display.d.ts +22 -0
  298. package/utils/message-attachment-to-display.d.ts.map +1 -0
  299. package/utils/message-attachment-to-display.js +1 -1
  300. package/utils/message.d.ts +4 -0
  301. package/utils/message.d.ts.map +1 -0
  302. package/utils/mime-type.d.ts +22 -0
  303. package/utils/mime-type.d.ts.map +1 -0
  304. package/utils/mime-type.js +1 -1
  305. package/utils/prompt-variables.d.ts +62 -0
  306. package/utils/prompt-variables.d.ts.map +1 -0
  307. package/utils/prompt-variables.js +5 -9
  308. package/utils/string-utils.d.ts +11 -0
  309. package/utils/string-utils.d.ts.map +1 -0
  310. package/utils/syntax-highlighting.d.ts +8 -0
  311. package/utils/syntax-highlighting.d.ts.map +1 -0
  312. package/utils/syntax-highlighting.js +8 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,8HAA8H;AAC9H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8FlD,CAAC"}
@@ -1,3 +1,4 @@
1
- var e = { agentIconBadge: "_agentIconBadge_1ger8_1" };
1
+ //#region src/components/DeploymentIcon/DeploymentIcon.module.scss
2
+ var e = "_agentIconBadge_147d2_1", t = { agentIconBadge: e };
2
3
  //#endregion
3
- export { e as default };
4
+ export { e as agentIconBadge, t as default };
@@ -0,0 +1,38 @@
1
+ import { CSSProperties, FC, ReactNode } from 'react';
2
+ import { EntityHeaderItem } from '../../models/entity';
3
+ /** Props for EntityHeader. */
4
+ export interface EntityHeaderProps {
5
+ /** The entity to display. */
6
+ item: EntityHeaderItem;
7
+ /** Typography CSS class for the item name. Falls back to `ItemHeader`'s own default when omitted. */
8
+ nameClassName?: string;
9
+ /** CSS class for the entity type label. Default: 'dial-caption-lead-semi-text'. */
10
+ typeClassName?: string;
11
+ /** Visible type text, e.g. a translated type name. Default: the raw `item.type` value. */
12
+ typeLabel?: string;
13
+ /** CSS class applied to the icon badge, e.g. to set border-radius. Default: 'rounded-[14px]'. */
14
+ iconBadgeClassName?: string;
15
+ /** Typography CSS class for the version text. Falls back to `ItemHeader`'s own default when omitted. */
16
+ versionClassName?: string;
17
+ /** Whether to show `item.version` next to the title. Default: true. */
18
+ showVersion?: boolean;
19
+ /** Label for the featured tag shown when item.isFeatured is true. Default: 'Featured'. */
20
+ featuredLabel?: string;
21
+ /** Whether to render the featured tag. Default: true. */
22
+ hasFeaturedTag?: boolean;
23
+ /** Size of the deployment icon. Default: 48. */
24
+ iconSize?: number;
25
+ /** Search query string; when provided, matching text in the title is highlighted. */
26
+ query?: string;
27
+ /** Content pinned to the bottom of the text column via `mt-auto`, aligning its baseline with the avatar bottom. When provided, the column stretches to fill the icon height exactly. */
28
+ footer?: ReactNode;
29
+ /** CSS class for the featured chip. */
30
+ featuredChipClassName?: string;
31
+ /** Style override for the featured chip, merged over its default per-entity-type colors, e.g. `{ backgroundColor, color, border }`. */
32
+ featuredChipStyle?: CSSProperties;
33
+ /** Arbitrary badge rendered before the featured chip, in the same top-end corner. Omitted (the default) renders nothing in that slot. */
34
+ statusBadge?: ReactNode;
35
+ }
36
+ /** Reusable entity identity block: deployment icon, type label, name, version, and optional featured chip. */
37
+ export declare const EntityHeader: FC<EntityHeaderProps>;
38
+ //# sourceMappingURL=EntityHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityHeader.d.ts","sourceRoot":"","sources":["../../../src/components/EntityHeader/EntityHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wLAAwL;IACxL,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uIAAuI;IACvI,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,yIAAyI;IACzI,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,8GAA8G;AAC9G,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+D9C,CAAC"}
@@ -22,7 +22,7 @@ var s = ({ item: s, nameClassName: c, versionClassName: l, showVersion: u = !0,
22
22
  className: d,
23
23
  label: f
24
24
  }), (x != null || _ && s.isFeatured) && /* @__PURE__ */ o("div", {
25
- className: "absolute end-0 top-[-6px] flex items-center gap-2",
25
+ className: "absolute inset-e-0 top-[-6px] flex items-center gap-2",
26
26
  children: [x, _ && s.isFeatured && /* @__PURE__ */ a(i, {
27
27
  type: s.type,
28
28
  label: g,
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { CatalogEntityType } from '../../types/entity-type';
3
+ /** Props for EntityTypeLabel. */
4
+ export interface EntityTypeLabelProps {
5
+ /** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
6
+ type: CatalogEntityType;
7
+ /** CSS class for the label text. Default: 'dial-caption-lead-semi-text'. */
8
+ className?: string;
9
+ /** Visible text, e.g. a translated type name. Default: the raw `type` value (`'MODEL'`, `'TOOLSET'`, …). */
10
+ label?: string;
11
+ }
12
+ /**
13
+ * Entity type label rendered as plain uppercase text — no pill, no background.
14
+ * Shared by the card grid (via AppIdentity) and the list view, so both
15
+ * densities of the catalog use the same type treatment.
16
+ */
17
+ export declare const EntityTypeLabel: FC<EntityTypeLabelProps>;
18
+ //# sourceMappingURL=EntityTypeLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityTypeLabel.d.ts","sourceRoot":"","sources":["../../../src/components/EntityTypeLabel/EntityTypeLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,iCAAiC;AACjC,MAAM,WAAW,oBAAoB;IACnC,0EAA0E;IAC1E,IAAI,EAAE,iBAAiB,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAQpD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { FC } from 'react';
2
+ /** User-visible strings of `ErrorAlert`. */
3
+ export interface ErrorAlertLabels {
4
+ /** Screen heading. Defaults to `'Something went wrong'`. */
5
+ heading?: string;
6
+ /** Explanation under the heading. Defaults to `'An unexpected error occurred. You can try again or reload the page.'`. */
7
+ message?: string;
8
+ /** Recovery button text. Defaults to `'Try again'`. */
9
+ actionLabel?: string;
10
+ }
11
+ /** CSS custom-property overrides for `ErrorAlert`. */
12
+ export interface ErrorAlertColors {
13
+ /** Warning icon color. Defaults to `--text-error`. */
14
+ icon?: string;
15
+ }
16
+ /** Props for `ErrorAlert`. */
17
+ export interface ErrorAlertProps {
18
+ /** Called when the recovery button is activated, e.g. to reset an error boundary or reload the page. */
19
+ onAction: () => void;
20
+ /** User-visible strings, each with an English default. */
21
+ labels?: ErrorAlertLabels;
22
+ /** Color overrides applied as CSS custom properties. */
23
+ colors?: ErrorAlertColors;
24
+ }
25
+ /** Full-screen error fallback with a warning icon and one recovery action. */
26
+ export declare const ErrorAlert: FC<ErrorAlertProps>;
27
+ //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorAlert/ErrorAlert.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKtC,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0HAA0H;IAC1H,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,wGAAwG;IACxG,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,8EAA8E;AAC9E,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAyB1C,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { buildCssVars as e } from "../../utils/build-css-vars.js";
2
+ import { FullScreenAlert as t } from "../FullScreenAlert/FullScreenAlert.js";
3
+ import n from "./ErrorAlert.module.scss.js";
4
+ import { DIAL_KIT_ICON_STROKE as r } from "@epam/ai-dial-ui-kit";
5
+ import { memo as i } from "react";
6
+ import { jsx as a } from "react/jsx-runtime";
7
+ import { IconAlertTriangle as o } from "@tabler/icons-react";
8
+ //#region src/components/ErrorAlert/ErrorAlert.tsx
9
+ var s = i(({ onAction: i, labels: s, colors: c }) => /* @__PURE__ */ a("div", {
10
+ className: "size-full",
11
+ style: e({ "--ea-icon": c?.icon }),
12
+ children: /* @__PURE__ */ a(t, {
13
+ icon: /* @__PURE__ */ a(o, {
14
+ "aria-hidden": "true",
15
+ size: 48,
16
+ stroke: r,
17
+ className: n.icon
18
+ }),
19
+ heading: s?.heading ?? "Something went wrong",
20
+ message: s?.message ?? "An unexpected error occurred. You can try again or reload the page.",
21
+ actionLabel: s?.actionLabel ?? "Try again",
22
+ onAction: i
23
+ })
24
+ }));
25
+ //#endregion
26
+ export { s as ErrorAlert };
@@ -0,0 +1,4 @@
1
+ //#region src/components/ErrorAlert/ErrorAlert.module.scss
2
+ var e = "_icon_1wzpc_1", t = { icon: e };
3
+ //#endregion
4
+ export { t as default, e as icon };
@@ -0,0 +1,16 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ import { CatalogEntityType } from '../../types/entity-type';
3
+ /** Props for `FeaturedChip`. */
4
+ export interface FeaturedChipProps {
5
+ /** Label text shown inside the chip. */
6
+ label: string;
7
+ /** Typography class for the label. Defaults to the kit badge's `'dial-caption-lead-semi-text'`. */
8
+ className?: string;
9
+ /** Entity category — picks the chip's default colours. */
10
+ type: CatalogEntityType;
11
+ /** Style overrides merged over the chip's default per-entity-type colors, e.g. `{ backgroundColor, color, border }`. */
12
+ style?: CSSProperties;
13
+ }
14
+ /** Featured badge rendered on a catalog card when `item.isFeatured` is true. */
15
+ export declare const FeaturedChip: FC<FeaturedChipProps>;
16
+ //# sourceMappingURL=FeaturedChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturedChip.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedChip/FeaturedChip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,IAAI,EAAE,iBAAiB,CAAC;IACxB,wHAAwH;IACxH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,gFAAgF;AAChF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAe9C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { FC, ReactNode } from 'react';
2
+ /** Props for `FullScreenAlert`. */
3
+ export interface FullScreenAlertProps {
4
+ /** Decorative icon drawn in the badge above the heading; mark it `aria-hidden`. */
5
+ icon: ReactNode;
6
+ /** Screen heading, rendered as the `h1` that names the section. */
7
+ heading: string;
8
+ /** Explanation under the heading. */
9
+ message: string;
10
+ /** Text of the single action button. */
11
+ actionLabel: string;
12
+ /** Called when the action button is activated. */
13
+ onAction: () => void;
14
+ }
15
+ /** Full-screen state that replaces the whole app with an icon, heading, message and one focused action. */
16
+ export declare const FullScreenAlert: FC<FullScreenAlertProps>;
17
+ //# sourceMappingURL=FullScreenAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullScreenAlert.d.ts","sourceRoot":"","sources":["../../../src/components/FullScreenAlert/FullScreenAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,IAAI,EAAE,SAAS,CAAC;IAChB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAQD,2GAA2G;AAC3G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAapD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { PrimaryButton as e, StateScreen as t } from "@epam/ai-dial-ui-kit";
2
+ import { memo as n } from "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ //#region src/components/FullScreenAlert/FullScreenAlert.tsx
5
+ var i = n(({ icon: n, heading: i, message: a, actionLabel: o, onAction: s }) => /* @__PURE__ */ r("div", {
6
+ className: "size-full",
7
+ children: /* @__PURE__ */ r(t, {
8
+ icon: n,
9
+ title: i,
10
+ description: a,
11
+ action: /* @__PURE__ */ r(e, {
12
+ autoFocus: !0,
13
+ label: o,
14
+ onClick: s
15
+ })
16
+ })
17
+ }));
18
+ //#endregion
19
+ export { i as FullScreenAlert };
@@ -0,0 +1,18 @@
1
+ import { AvatarColorClasses } from '@epam/ai-dial-ui-kit';
2
+ import { FC } from 'react';
3
+ /** Props for `InitialsAvatar`. */
4
+ export interface InitialsAvatarProps {
5
+ /** Display name from which initials are derived. Empty string renders `"?"`. */
6
+ name: string;
7
+ /** Badge width and height in pixels. */
8
+ size: number;
9
+ /** Explicit colour pair overriding the deterministic pick from `name` (an `AVATAR_PALETTE` entry); omit to keep the name-derived colour. */
10
+ color?: AvatarColorClasses;
11
+ /** Extra classes applied to the root element (e.g. `'shrink-0'`). */
12
+ className?: string;
13
+ /** Type-scale class for the initials. Defaults to none: the initials are semibold at 40% of `size`. */
14
+ textClassName?: string;
15
+ }
16
+ /** A square badge showing 1–2 initials derived from `name` on a deterministic colour background. */
17
+ export declare const InitialsAvatar: FC<InitialsAvatarProps>;
18
+ //# sourceMappingURL=InitialsAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,4IAA4I;IAC5I,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgBlD,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { Avatar as e, AvatarShape as t } from "@epam/ai-dial-ui-kit";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  //#region src/components/InitialsAvatar/InitialsAvatar.tsx
4
- var r = ({ name: r, size: i, className: a, textClassName: o }) => /* @__PURE__ */ n(e, {
4
+ var r = ({ name: r, size: i, color: a, className: o, textClassName: s }) => /* @__PURE__ */ n(e, {
5
5
  name: r,
6
6
  size: i,
7
7
  shape: t.Square,
8
- className: a,
9
- textClassName: o
8
+ color: a,
9
+ className: o,
10
+ textClassName: s
10
11
  });
11
12
  //#endregion
12
13
  export { r as InitialsAvatar };
@@ -0,0 +1,40 @@
1
+ import { FC, ReactNode } from 'react';
2
+ /** CSS custom-property overrides for the `ItemHeader` component. */
3
+ export interface ItemHeaderColors {
4
+ /** Title text color. Defaults to `--text-primary`. */
5
+ title?: string;
6
+ /** Postfix text color. Defaults to `--text-secondary`. */
7
+ count?: string;
8
+ }
9
+ /** Props for `ItemHeader`. */
10
+ export interface ItemHeaderProps {
11
+ /** Title text rendered in the heading element. */
12
+ title: string;
13
+ /**
14
+ * Secondary value rendered after the title. A number (an item count) always
15
+ * renders in full; a string (a version) is capped at 30% of the row and
16
+ * truncates with a tooltip.
17
+ */
18
+ postfix?: number | string;
19
+ /** CSS class applied to the title. Defaults to `'dial-h3-text'`. */
20
+ titleClassName?: string;
21
+ /** CSS class applied to the postfix. Defaults to `'dial-tiny-text'`. */
22
+ postfixClassName?: string;
23
+ /** CSS class applied to the header row. */
24
+ className?: string;
25
+ /** Search query; when provided, the matching part of the title is highlighted. */
26
+ query?: string;
27
+ /** Optional content rendered at the trailing end of the header row. */
28
+ trailing?: ReactNode;
29
+ /** Color overrides applied as CSS custom properties. */
30
+ colors?: ItemHeaderColors;
31
+ /**
32
+ * Whether the title shrinks and truncates with an ellipsis. When `false` the
33
+ * title keeps its full width and the rest of the row gives way instead.
34
+ * Defaults to `true`.
35
+ */
36
+ shouldTruncateTitle?: boolean;
37
+ }
38
+ /** Item title header with optional numeric or string postfix and trailing slot. */
39
+ export declare const ItemHeader: FC<ItemHeaderProps>;
40
+ //# sourceMappingURL=ItemHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ItemHeader/ItemHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtC,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,oEAAoE;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,mFAAmF;AACnF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiF1C,CAAC"}
@@ -20,7 +20,10 @@ var s = ({ title: s, postfix: c, titleClassName: l = "dial-h3-text", postfixClas
20
20
  query: f
21
21
  }) : h ? /* @__PURE__ */ a(r, { text: s }) : s
22
22
  }),
23
- c != null && /* @__PURE__ */ a(r, {
23
+ c == null ? null : typeof c == "number" ? /* @__PURE__ */ a("span", {
24
+ className: e("shrink-0 whitespace-nowrap", u, n.count),
25
+ children: c
26
+ }) : /* @__PURE__ */ a(r, {
24
27
  className: e("max-w-[30%] shrink-0", u, n.count),
25
28
  text: c
26
29
  }),
@@ -1,6 +1,7 @@
1
- var e = {
2
- title: "_title_11w3i_1",
3
- count: "_count_11w3i_5"
1
+ //#region src/components/ItemHeader/ItemHeader.module.scss
2
+ var e = "_title_11w3i_1", t = "_count_11w3i_5", n = {
3
+ title: e,
4
+ count: t
4
5
  };
5
6
  //#endregion
6
- export { e as default };
7
+ export { t as count, n as default, e as title };
@@ -0,0 +1,57 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { CodeBlockTheme } from '../../../types/code-editor';
3
+ /** CSS custom-property overrides for the `MarkdownCodeBlock` component. */
4
+ export interface MarkdownCodeBlockColors {
5
+ /** Container background color. */
6
+ background?: string;
7
+ /** Container/header border color. */
8
+ border?: string;
9
+ /** Header background color. */
10
+ headerBackground?: string;
11
+ /** Language label text color. */
12
+ language?: string;
13
+ /** Copy button icon color once copied. */
14
+ copied?: string;
15
+ /** Scrollbar thumb/track color. */
16
+ scrollbar?: string;
17
+ }
18
+ /** Props for {@link MarkdownCodeBlock}. */
19
+ export interface MarkdownCodeBlockProps {
20
+ /** Detected language from the fenced code block. Empty string for language-less blocks. */
21
+ language: string;
22
+ /** Raw code value with trailing newline stripped. */
23
+ value: string;
24
+ /** When true, the copy button is hidden (streaming in progress). */
25
+ isStreaming?: boolean;
26
+ /** Color theme for syntax highlighting. Defaults to `'dark'`. */
27
+ theme?: CodeBlockTheme;
28
+ /** Accessible label for the copy button. Defaults to `'Copy code'`. */
29
+ copyLabel?: string;
30
+ /** Message announced through the block's polite kit `LiveRegion` after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
31
+ copiedLabel?: string;
32
+ /** Accessible label for the download button. Defaults to `'Download code'`. */
33
+ downloadLabel?: string;
34
+ /** Accessible label for the scrollable code region. Defaults to `'Scrollable code'`. */
35
+ scrollRegionAriaLabel?: string;
36
+ /** When true, hides the download button while still showing copy. Defaults to `false`. */
37
+ hideDownload?: boolean;
38
+ /** Extra classes applied to the outer container element. */
39
+ containerClassName?: string;
40
+ /** Extra classes applied to the sticky header bar. */
41
+ headerClassName?: string;
42
+ /** Typography class for the code text — the `<code>` element, plus the highlighted `<pre>` when a language is detected. Defaults to `'dial-code-text'`. */
43
+ codeClassName?: string;
44
+ /** Whether the code keeps its own top padding below the header; `false` starts it right under the header. Defaults to `true`. */
45
+ hasContentTopPadding?: boolean;
46
+ /** CSS class applied to the language label in the header. Defaults to `'dial-tiny-lead-semi-text'` plus the module's `.languageLabel` class (`--text-secondary`). */
47
+ languageLabelClassName?: string;
48
+ /** Header text shown in place of `language`, for blocks whose highlighting id is not the name to display (e.g. `bash` highlighted, `cURL` shown). Defaults to the `language` value. */
49
+ title?: string;
50
+ /** Custom content rendered in the header in place of the plain label, e.g. a language/endpoint select. Defaults to the plain label text. */
51
+ titleSlot?: ReactNode;
52
+ /** Color overrides applied as CSS custom properties. */
53
+ colors?: MarkdownCodeBlockColors;
54
+ }
55
+ /** Renders a fenced or multi-line code block with syntax highlighting and a copy button. */
56
+ export declare const MarkdownCodeBlock: FC<MarkdownCodeBlockProps>;
57
+ //# sourceMappingURL=CodeBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AASA,OAAO,EAAQ,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAW5D,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iEAAiE;IACjE,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8KAA8K;IAC9K,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,0FAA0F;IAC1F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2JAA2J;IAC3J,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iIAAiI;IACjI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qKAAqK;IACrK,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uLAAuL;IACvL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4IAA4I;IAC5I,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAiBD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA+JxD,CAAC"}
@@ -7,100 +7,100 @@ import { CHAT_SHARED_CLASS as o } from "../../../constants/public-class-names.js
7
7
  import { useCodeCopy as s } from "../../../hooks/useCodeCopy.js";
8
8
  import c from "./CodeBlock.module.scss.js";
9
9
  import { restrainedSyntaxTheme as l } from "./syntax-theme.js";
10
- import { DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, ElementSize as f, GhostIconButton as p } from "@epam/ai-dial-ui-kit";
11
- import { Suspense as m, lazy as h, memo as g, useMemo as _ } from "react";
12
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
- import { IconCheck as b, IconCopy as x, IconDownload as S } from "@tabler/icons-react";
10
+ import { DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, ElementSize as f, GhostIconButton as p, LiveRegion as m, LiveRegionElement as h } from "@epam/ai-dial-ui-kit";
11
+ import { Suspense as g, lazy as _, memo as v, useMemo as y } from "react";
12
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
13
+ import { IconCheck as S, IconCopy as C, IconDownload as w } from "@tabler/icons-react";
14
14
  //#region src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx
15
- var C = {
15
+ var T = {
16
16
  dark: l,
17
17
  light: l
18
- }, w = h(async () => {
18
+ }, E = _(async () => {
19
19
  let { Prism: e } = await import("react-syntax-highlighter");
20
20
  return { default: e };
21
- }), T = g(({ language: h, value: g, isStreaming: T, theme: E = e.Dark, copyLabel: D = "Copy code", copiedLabel: O = "Copied!", downloadLabel: k = "Download code", hideDownload: A = !1, containerClassName: j, headerClassName: M, codeClassName: N = "dial-code-text", languageLabelClassName: P = "dial-tiny-lead-semi-text", title: F, titleSlot: I, colors: L }) => {
22
- let { isCopied: R, copy: z } = s(g), B = _(() => a(g), [g]), V = E === e.Light, H = () => {
23
- r(g, `code.${i(h)}`);
24
- }, U = /* @__PURE__ */ v("pre", {
25
- className: "p-4",
26
- children: /* @__PURE__ */ v("code", {
27
- className: t("whitespace-pre", N),
28
- children: g
21
+ }), D = v(({ language: _, value: v, isStreaming: D, theme: O = e.Dark, copyLabel: k = "Copy code", copiedLabel: A = "Copied!", downloadLabel: j = "Download code", scrollRegionAriaLabel: M = "Scrollable code", hideDownload: N = !1, hasContentTopPadding: P = !0, containerClassName: F, headerClassName: I, codeClassName: L = "dial-code-text", languageLabelClassName: R = "dial-tiny-lead-semi-text", title: z, titleSlot: B, colors: V }) => {
22
+ let { isCopied: H, copy: U } = s(v), W = y(() => a(v), [v]), G = O === e.Light, K = () => {
23
+ r(v, `code.${i(_)}`);
24
+ }, q = /* @__PURE__ */ b("pre", {
25
+ className: P ? "p-4" : "px-4 pt-0 pb-4",
26
+ children: /* @__PURE__ */ b("code", {
27
+ className: t("whitespace-pre", L),
28
+ children: v
29
29
  })
30
+ }), J = n({
31
+ "--cm-code-block-bg": V?.background,
32
+ "--cm-code-block-border": V?.border,
33
+ "--cm-code-block-header-bg": V?.headerBackground,
34
+ "--cm-code-block-language": V?.language,
35
+ "--cm-code-block-copied": V?.copied,
36
+ "--cm-code-block-scrollbar": V?.scrollbar
30
37
  });
31
- return /* @__PURE__ */ y("div", {
32
- style: n({
33
- "--cm-code-block-bg": L?.background,
34
- "--cm-code-block-border": L?.border,
35
- "--cm-code-block-header-bg": L?.headerBackground,
36
- "--cm-code-block-language": L?.language,
37
- "--cm-code-block-copied": L?.copied,
38
- "--cm-code-block-scrollbar": L?.scrollbar
39
- }),
40
- className: t("my-4 max-w-full rounded-xl border [overflow:clip]", c.container, V && c.containerLight, j, o.codeBlock),
38
+ return /* @__PURE__ */ x("div", {
39
+ style: J,
40
+ className: t("my-4 max-w-full overflow-clip rounded-xl border", c.container, G && c.containerLight, F, o.codeBlock),
41
41
  children: [
42
- /* @__PURE__ */ y("div", {
43
- className: t("sticky top-0 z-10 flex min-h-10 items-center justify-between px-4", I == null ? "py-2" : "py-0", c.header, M, o.codeBlockHeader),
44
- children: [I ?? /* @__PURE__ */ v("span", {
45
- className: t(c.languageLabel, P),
46
- children: F ?? h
47
- }), !T && /* @__PURE__ */ y("div", {
42
+ /* @__PURE__ */ x("div", {
43
+ className: t("sticky top-0 z-10 flex min-h-10 items-center justify-between px-4", B == null ? "py-2" : "py-0", c.header, I, o.codeBlockHeader),
44
+ children: [B ?? /* @__PURE__ */ b("span", {
45
+ className: t(c.languageLabel, R),
46
+ children: z ?? _
47
+ }), !D && /* @__PURE__ */ x("div", {
48
48
  className: "flex items-center gap-1",
49
- children: [!A && /* @__PURE__ */ v(p, {
50
- icon: /* @__PURE__ */ v(S, {
49
+ children: [!N && /* @__PURE__ */ b(p, {
50
+ icon: /* @__PURE__ */ b(w, {
51
51
  size: u.SM,
52
52
  stroke: d
53
53
  }),
54
- "aria-label": k,
54
+ "aria-label": j,
55
55
  size: f.Small,
56
- onClick: H
57
- }), /* @__PURE__ */ v(p, {
58
- icon: R ? /* @__PURE__ */ v(b, {
56
+ onClick: K
57
+ }), /* @__PURE__ */ b(p, {
58
+ icon: H ? /* @__PURE__ */ b(S, {
59
59
  size: u.SM,
60
60
  className: c.copiedIcon,
61
61
  "aria-hidden": !0,
62
62
  stroke: d
63
- }) : /* @__PURE__ */ v(x, {
63
+ }) : /* @__PURE__ */ b(C, {
64
64
  size: u.SM,
65
65
  "aria-hidden": !0,
66
66
  stroke: d
67
67
  }),
68
- "aria-label": D,
68
+ "aria-label": k,
69
69
  size: f.Small,
70
- onClick: z
70
+ onClick: U
71
71
  })]
72
72
  })]
73
73
  }),
74
- /* @__PURE__ */ v("div", {
74
+ /* @__PURE__ */ b("div", {
75
75
  className: t(c.scrollContainer, "max-h-[60vh] overflow-auto"),
76
76
  dir: "ltr",
77
- children: h && B ? /* @__PURE__ */ v(m, {
78
- fallback: U,
79
- children: /* @__PURE__ */ v(w, {
80
- language: h,
81
- style: C[E] ?? l,
77
+ role: "region",
78
+ "aria-label": M,
79
+ tabIndex: 0,
80
+ children: _ && W ? /* @__PURE__ */ b(g, {
81
+ fallback: q,
82
+ children: /* @__PURE__ */ b(E, {
83
+ language: _,
84
+ style: T[O] ?? l,
82
85
  customStyle: {
83
86
  margin: 0,
84
87
  borderRadius: 0,
85
88
  background: "transparent",
86
- fontSize: 14,
87
- lineHeight: 1.5,
88
- padding: "14px 16px",
89
- letterSpacing: 0
89
+ padding: P ? "14px 16px" : "0 16px 14px"
90
90
  },
91
- codeTagProps: { className: N },
92
- children: g
91
+ className: L,
92
+ codeTagProps: { className: L },
93
+ children: v
93
94
  })
94
- }) : U
95
+ }) : q
95
96
  }),
96
- /* @__PURE__ */ v("span", {
97
- role: "status",
98
- "aria-live": "polite",
99
- className: "sr-only",
100
- children: R ? O : ""
97
+ /* @__PURE__ */ b(m, {
98
+ visuallyHidden: !0,
99
+ as: h.Span,
100
+ children: H ? A : ""
101
101
  })
102
102
  ]
103
103
  });
104
104
  });
105
105
  //#endregion
106
- export { T as MarkdownCodeBlock };
106
+ export { D as MarkdownCodeBlock };
@@ -1,10 +1,11 @@
1
- var e = {
2
- container: "_container_sqe5k_1",
3
- containerLight: "_containerLight_sqe5k_6",
4
- header: "_header_sqe5k_10",
5
- languageLabel: "_languageLabel_sqe5k_15",
6
- copiedIcon: "_copiedIcon_sqe5k_19",
7
- scrollContainer: "_scrollContainer_sqe5k_23"
1
+ //#region src/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss
2
+ var e = "_container_sqe5k_1", t = "_containerLight_sqe5k_6", n = "_header_sqe5k_10", r = "_languageLabel_sqe5k_15", i = "_copiedIcon_sqe5k_19", a = "_scrollContainer_sqe5k_23", o = {
3
+ container: e,
4
+ containerLight: t,
5
+ header: n,
6
+ languageLabel: r,
7
+ copiedIcon: i,
8
+ scrollContainer: a
8
9
  };
9
10
  //#endregion
10
- export { e as default };
11
+ export { e as container, t as containerLight, i as copiedIcon, o as default, n as header, r as languageLabel, a as scrollContainer };
@@ -0,0 +1,7 @@
1
+ import { CSSProperties } from 'react';
2
+ /** Style map consumed by `react-syntax-highlighter`'s `Prism` renderer. */
3
+ type PrismStyleMap = Record<string, CSSProperties>;
4
+ /** Prism syntax-highlighting style map used by {@link MarkdownCodeBlock}, restrained to design-system CSS variables. */
5
+ export declare const restrainedSyntaxTheme: PrismStyleMap;
6
+ export {};
7
+ //# sourceMappingURL=syntax-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntax-theme.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/syntax-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,2EAA2E;AAC3E,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AASnD,wHAAwH;AACxH,eAAO,MAAM,qBAAqB,EAAE,aA6DnC,CAAC"}