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

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 (172) hide show
  1. package/components/ActionMenu/ActionMenu.d.ts +26 -0
  2. package/components/ActionMenu/ActionMenu.d.ts.map +1 -0
  3. package/components/ActionMenu/ActionMenu.js +50 -0
  4. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +6 -1
  5. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
  6. package/components/ConfirmationDialog/ConfirmationDialog.js +11 -9
  7. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +5 -4
  8. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +2 -2
  9. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -2
  10. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -1
  11. package/components/ConfirmationView/ConfirmationFooter.js +25 -26
  12. package/components/ConfirmationView/ConfirmationView.d.ts +2 -0
  13. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -1
  14. package/components/ConfirmationView/ConfirmationView.js +12 -12
  15. package/components/ConfirmationView/ConfirmationView.module.scss.js +6 -5
  16. package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts +31 -0
  17. package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.d.ts.map +1 -0
  18. package/components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js +36 -0
  19. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +3 -0
  20. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -1
  21. package/components/DeleteConfirmationView/DeleteConfirmationView.js +36 -27
  22. package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +5 -4
  23. package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -2
  24. package/components/EntityHeader/EntityHeader.js +1 -1
  25. package/components/InitialsAvatar/InitialsAvatar.d.ts +3 -0
  26. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
  27. package/components/InitialsAvatar/InitialsAvatar.js +4 -3
  28. package/components/ItemHeader/ItemHeader.d.ts +5 -1
  29. package/components/ItemHeader/ItemHeader.d.ts.map +1 -1
  30. package/components/ItemHeader/ItemHeader.js +4 -1
  31. package/components/ItemHeader/ItemHeader.module.scss.js +5 -4
  32. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +6 -2
  33. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  34. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +58 -58
  35. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +9 -8
  36. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -1
  37. package/components/MarkdownRenderer/MDMessageViewer.d.ts +6 -2
  38. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
  39. package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
  40. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +8 -0
  41. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  42. package/components/MarkdownRenderer/MarkdownRenderer.js +146 -136
  43. package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +9 -8
  44. package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +1 -1
  45. package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +5 -4
  46. package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
  47. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +4 -0
  48. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  49. package/components/MarkdownRenderer/Table/MarkdownTable.js +68 -63
  50. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -13
  51. package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -2
  52. package/components/MarkdownRenderer/markdown-whitespace.js +2 -6
  53. package/components/NewVersionAlert/NewVersionAlert.d.ts +27 -0
  54. package/components/NewVersionAlert/NewVersionAlert.d.ts.map +1 -0
  55. package/components/NewVersionAlert/NewVersionAlert.js +28 -0
  56. package/components/NewVersionAlert/NewVersionAlert.module.scss.js +4 -0
  57. package/components/NotificationStack/NotificationStack.d.ts +48 -0
  58. package/components/NotificationStack/NotificationStack.d.ts.map +1 -0
  59. package/components/NotificationStack/NotificationStack.js +111 -0
  60. package/components/PanelEmptyState/PanelEmptyState.d.ts +12 -2
  61. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
  62. package/components/PanelEmptyState/PanelEmptyState.js +19 -9
  63. package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -2
  64. package/components/ResourceSummary/ResourceSummary.module.scss.js +5 -4
  65. package/components/TextRefinementField/TextRefinementField.d.ts +4 -2
  66. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -1
  67. package/components/TextRefinementField/TextRefinementField.js +84 -55
  68. package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts +22 -0
  69. package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts.map +1 -0
  70. package/components/UnsavedChangesProvider/UnsavedChangesProvider.js +57 -0
  71. package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts +44 -0
  72. package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts.map +1 -0
  73. package/components/UnsavedChangesProvider/unsaved-changes-context.js +13 -0
  74. package/constants/breakpoint.d.ts +6 -0
  75. package/constants/breakpoint.d.ts.map +1 -1
  76. package/constants/breakpoint.js +2 -2
  77. package/conversation-transfer/conversation-transfer-queue.d.ts +16 -0
  78. package/conversation-transfer/conversation-transfer-queue.d.ts.map +1 -0
  79. package/conversation-transfer/conversation-transfer-queue.js +24 -0
  80. package/entry-points/markdown.d.ts +1 -0
  81. package/entry-points/markdown.d.ts.map +1 -1
  82. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +15 -0
  83. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
  84. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +330 -266
  85. package/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss.js +8 -0
  86. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +7 -0
  87. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -1
  88. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +85 -80
  89. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.module.scss.js +7 -0
  90. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +5 -0
  91. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -1
  92. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +25 -20
  93. package/file-manager/OperationLoaderModal/OperationLoaderModal.module.scss.js +4 -0
  94. package/file-manager/file-manager-controller.d.ts +11 -3
  95. package/file-manager/file-manager-controller.d.ts.map +1 -1
  96. package/file-manager/index.d.ts +1 -0
  97. package/file-manager/index.d.ts.map +1 -1
  98. package/file-manager/labels.d.ts +23 -2
  99. package/file-manager/labels.d.ts.map +1 -1
  100. package/file-manager/shell-styles.d.ts +37 -0
  101. package/file-manager/shell-styles.d.ts.map +1 -0
  102. package/file-manager/upload-batch.d.ts +46 -0
  103. package/file-manager/upload-batch.d.ts.map +1 -1
  104. package/file-manager/upload-batch.js +6 -2
  105. package/file-manager/upload-queue.d.ts +44 -4
  106. package/file-manager/upload-queue.d.ts.map +1 -1
  107. package/file-manager/upload-queue.js +45 -13
  108. package/file-manager.js +4 -4
  109. package/hooks/useAvailableHeightCap.js +1 -1
  110. package/hooks/useControlErrorAssociation.d.ts +3 -0
  111. package/hooks/useControlErrorAssociation.d.ts.map +1 -0
  112. package/hooks/useControlErrorAssociation.js +12 -0
  113. package/hooks/useIsMobile.js +1 -1
  114. package/hooks/useIsPhone.d.ts +3 -0
  115. package/hooks/useIsPhone.d.ts.map +1 -0
  116. package/hooks/useIsPhone.js +13 -0
  117. package/hooks/useIsTablet.d.ts +3 -0
  118. package/hooks/useIsTablet.d.ts.map +1 -0
  119. package/hooks/useIsTablet.js +13 -0
  120. package/hooks/useIsTextClipped.d.ts +26 -0
  121. package/hooks/useIsTextClipped.d.ts.map +1 -0
  122. package/hooks/useIsTextClipped.js +25 -0
  123. package/hooks/useIsVerticallyClamped.d.ts +16 -0
  124. package/hooks/useIsVerticallyClamped.d.ts.map +1 -0
  125. package/hooks/useIsVerticallyClamped.js +20 -0
  126. package/hooks/useTextRefinement.d.ts +1 -1
  127. package/hooks/useTextRefinement.d.ts.map +1 -1
  128. package/hooks/useTextRefinement.js +4 -4
  129. package/hooks/useUnsavedChangesGuard.js +1 -5
  130. package/hooks/useUnsavedChangesLeaveConfirmation.d.ts +12 -0
  131. package/hooks/useUnsavedChangesLeaveConfirmation.d.ts.map +1 -0
  132. package/hooks/useUnsavedChangesLeaveConfirmation.js +22 -0
  133. package/hooks/useUnsavedChangesLeaveGuard.d.ts +24 -0
  134. package/hooks/useUnsavedChangesLeaveGuard.d.ts.map +1 -0
  135. package/hooks/useUnsavedChangesLeaveGuard.js +24 -0
  136. package/index.css +3 -2
  137. package/index.d.ts +17 -0
  138. package/index.d.ts.map +1 -1
  139. package/index.js +93 -76
  140. package/markdown.js +3 -2
  141. package/models/auth.d.ts +2 -0
  142. package/models/auth.d.ts.map +1 -1
  143. package/models/chat.d.ts +2 -0
  144. package/models/chat.d.ts.map +1 -1
  145. package/models/conversation-classification.d.ts +5 -0
  146. package/models/conversation-classification.d.ts.map +1 -1
  147. package/models/conversation-classification.js +3 -1
  148. package/models/inline-segment.d.ts +11 -0
  149. package/models/inline-segment.d.ts.map +1 -0
  150. package/models/text-refinement.d.ts +6 -2
  151. package/models/text-refinement.d.ts.map +1 -1
  152. package/package.json +10 -17
  153. package/utils/base64-json.d.ts +14 -0
  154. package/utils/base64-json.d.ts.map +1 -0
  155. package/utils/base64-json.js +4 -0
  156. package/utils/dom.d.ts +8 -0
  157. package/utils/dom.d.ts.map +1 -0
  158. package/utils/dom.js +10 -0
  159. package/utils/format-price.js +10 -10
  160. package/utils/inline-segments.d.ts +38 -0
  161. package/utils/inline-segments.d.ts.map +1 -0
  162. package/utils/inline-segments.js +53 -0
  163. package/utils/latex.d.ts +4 -3
  164. package/utils/latex.d.ts.map +1 -1
  165. package/utils/latex.js +47 -41
  166. package/utils/markdown-html.d.ts +14 -0
  167. package/utils/markdown-html.d.ts.map +1 -0
  168. package/utils/markdown-html.js +11 -0
  169. package/utils/message-attachment-to-display.js +1 -1
  170. package/utils/mime-type.js +1 -1
  171. package/utils/prompt-variables.js +5 -9
  172. package/utils/syntax-highlighting.js +8 -8
@@ -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 };
@@ -27,18 +27,22 @@ export interface MarkdownCodeBlockProps {
27
27
  theme?: CodeBlockTheme;
28
28
  /** Accessible label for the copy button. Defaults to `'Copy code'`. */
29
29
  copyLabel?: string;
30
- /** Message announced through the block's `aria-live="polite"` region after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
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
31
  copiedLabel?: string;
32
32
  /** Accessible label for the download button. Defaults to `'Download code'`. */
33
33
  downloadLabel?: string;
34
+ /** Accessible label for the scrollable code region. Defaults to `'Scrollable code'`. */
35
+ scrollRegionAriaLabel?: string;
34
36
  /** When true, hides the download button while still showing copy. Defaults to `false`. */
35
37
  hideDownload?: boolean;
36
38
  /** Extra classes applied to the outer container element. */
37
39
  containerClassName?: string;
38
40
  /** Extra classes applied to the sticky header bar. */
39
41
  headerClassName?: string;
40
- /** Typography class for the `<code>` element (used when no language is detected). Defaults to `'dial-code-text'`. */
42
+ /** Typography class for the code text — the `<code>` element, plus the highlighted `<pre>` when a language is detected. Defaults to `'dial-code-text'`. */
41
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;
42
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`). */
43
47
  languageLabelClassName?: string;
44
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. */
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAOA,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,kLAAkL;IAClL,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0FAA0F;IAC1F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qHAAqH;IACrH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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,CA0JxD,CAAC"}
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,4BAA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,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 };
@@ -1 +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;AAQnD,wHAAwH;AACxH,eAAO,MAAM,qBAAqB,EAAE,aA6DnC,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { Components } from 'react-markdown';
2
+ import { Components, Options } from 'react-markdown';
3
3
  import { CodeBlockTheme } from '../../types/code-editor';
4
4
  import { MarkdownRendererClassNames } from './MarkdownRenderer';
5
5
  import { MarkdownTableActionLabels } from './Table/MarkdownTable';
@@ -32,6 +32,10 @@ interface MDMessageViewerProps {
32
32
  * {@link MarkdownRenderer}. Defaults to no extra rewrite.
33
33
  */
34
34
  urlTransform?: (url: string) => string;
35
+ /** Extra rehype plugins forwarded to {@link MarkdownRenderer}. Defaults to none. */
36
+ rehypePlugins?: NonNullable<Options['rehypePlugins']>;
37
+ /** When `false`, raw HTML renders as literal text. Forwarded to {@link MarkdownRenderer}; defaults to `true`. */
38
+ isRawHtmlEnabled?: boolean;
35
39
  /** Accessible label for the copy button in code blocks. Forwarded to {@link MarkdownRenderer}. */
36
40
  codeBlockCopyLabel?: string;
37
41
  /** Accessible label for the copy button after copying. Forwarded to {@link MarkdownRenderer}. */
@@ -56,7 +60,7 @@ interface MDMessageViewerProps {
56
60
  */
57
61
  classNames?: MarkdownRendererClassNames;
58
62
  }
59
- /** Renders assistant message content as formatted markdown, or as escaped plain text when `isPlainText` is set. */
63
+ /** Renders message content as formatted markdown, or as escaped plain text when `isPlainText` is set. */
60
64
  export declare const MDMessageViewer: FC<MDMessageViewerProps>;
61
65
  export {};
62
66
  //# sourceMappingURL=MDMessageViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MDMessageViewer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MDMessageViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,+DAA+D;AAC/D,UAAU,oBAAoB;IAC5B,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;I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M,CAAC;IACvC,oFAAoF;IACpF,aAAa,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IACtD,iHAAiH;IACjH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,2FAA2F;IAC3F,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C,qGAAqG;IACrG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,+FAA+F;IAC/F,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uGAAuG;IACvG,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;CACzC;AAED,yGAAyG;AACzG,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAiDpD,CAAC"}
@@ -4,27 +4,29 @@ import { PlainTextRenderer as n } from "./PlainTextRenderer.js";
4
4
  import { memo as r } from "react";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  //#region src/components/MarkdownRenderer/MDMessageViewer.tsx
7
- var a = r(({ content: r, isPlainText: a, isStreaming: o, thinkingLabel: s, components: c, urlTransform: l, codeBlockCopyLabel: u, codeBlockCopiedLabel: d, codeBlockDownloadLabel: f, codeBlockTheme: p, tableActionLabels: m, tableDownloadFilename: h, tableOnOpenInCanvas: g, tableScrollRegionAriaLabel: _, mathScrollRegionAriaLabel: v, classNames: y = t }) => a ? /* @__PURE__ */ i(n, {
7
+ var a = r(({ content: r, isPlainText: a, isStreaming: o, thinkingLabel: s, components: c, urlTransform: l, rehypePlugins: u, isRawHtmlEnabled: d, codeBlockCopyLabel: f, codeBlockCopiedLabel: p, codeBlockDownloadLabel: m, codeBlockTheme: h, tableActionLabels: g, tableDownloadFilename: _, tableOnOpenInCanvas: v, tableScrollRegionAriaLabel: y, mathScrollRegionAriaLabel: b, classNames: x = t }) => a ? /* @__PURE__ */ i(n, {
8
8
  content: r,
9
9
  isStreaming: o,
10
10
  thinkingLabel: s,
11
- classNames: y
11
+ classNames: x
12
12
  }) : /* @__PURE__ */ i(e, {
13
13
  content: r,
14
14
  isStreaming: o,
15
15
  thinkingLabel: s,
16
16
  components: c,
17
17
  urlTransform: l,
18
- codeBlockCopyLabel: u,
19
- codeBlockCopiedLabel: d,
20
- codeBlockDownloadLabel: f,
21
- codeBlockTheme: p,
22
- tableActionLabels: m,
23
- tableDownloadFilename: h,
24
- tableOnOpenInCanvas: g,
25
- tableScrollRegionAriaLabel: _,
26
- mathScrollRegionAriaLabel: v,
27
- classNames: y
18
+ rehypePlugins: u,
19
+ isRawHtmlEnabled: d,
20
+ codeBlockCopyLabel: f,
21
+ codeBlockCopiedLabel: p,
22
+ codeBlockDownloadLabel: m,
23
+ codeBlockTheme: h,
24
+ tableActionLabels: g,
25
+ tableDownloadFilename: _,
26
+ tableOnOpenInCanvas: v,
27
+ tableScrollRegionAriaLabel: y,
28
+ mathScrollRegionAriaLabel: b,
29
+ classNames: x
28
30
  }));
29
31
  //#endregion
30
32
  export { a as MDMessageViewer };
@@ -81,6 +81,8 @@ export interface MarkdownRendererProps {
81
81
  urlTransform?: (url: string) => string;
82
82
  /** Extra rehype plugins, applied after the built-in KaTeX pass. Defaults to none. */
83
83
  rehypePlugins?: NonNullable<Options['rehypePlugins']>;
84
+ /** When `false`, raw HTML in `content` renders as literal text instead of being parsed into elements. Defaults to `true`. */
85
+ isRawHtmlEnabled?: boolean;
84
86
  /**
85
87
  * Label shown with a shimmer animation while `isStreaming` is true and no content has arrived yet.
86
88
  * Defaults to `'Thinking'`. Pass a translated string from the consuming app.
@@ -105,6 +107,8 @@ export interface MarkdownRendererProps {
105
107
  tableScrollRegionAriaLabel?: string;
106
108
  /** Accessible label for a block formula's horizontally scrollable region. Defaults to `'Scrollable formula'`. */
107
109
  mathScrollRegionAriaLabel?: string;
110
+ /** Accessible label for a code block's scrollable region. Defaults to `'Scrollable code'`. */
111
+ codeBlockScrollRegionAriaLabel?: string;
108
112
  }
109
113
  /** CSS custom-property overrides for the `MarkdownRenderer` component. */
110
114
  export interface MarkdownRendererColors {
@@ -130,6 +134,10 @@ export interface MarkdownRendererColors {
130
134
  inlineCodeBackground?: string;
131
135
  /** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
132
136
  inlineCodeText?: string;
137
+ /** Scrollbar thumb color of a horizontally scrolling display formula. Defaults to `--stroke-primary`. */
138
+ mathScrollbar?: string;
139
+ /** Focus-visible outline color of a scrollable display formula. Defaults to `--stroke-focus`. */
140
+ mathFocus?: string;
133
141
  }
134
142
  export declare const defaultMarkdownComponents: Components;
135
143
  /** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AACf,OAAsB,EAEpB,KAAK,UAAU,EACf,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAQzD,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAK/B,0EAA0E;AAC1E,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;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