@epam/ai-dial-chat-shared 1.3.0-dev.98 → 1.4.0-dev.5

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 (155) 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 +24 -25
  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.module.scss.js +5 -4
  29. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +6 -2
  30. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  31. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +58 -58
  32. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +9 -8
  33. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -1
  34. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +6 -0
  35. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  36. package/components/MarkdownRenderer/MarkdownRenderer.js +29 -24
  37. package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +9 -8
  38. package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +5 -4
  39. package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
  40. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +4 -0
  41. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  42. package/components/MarkdownRenderer/Table/MarkdownTable.js +68 -63
  43. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -13
  44. package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -2
  45. package/components/MarkdownRenderer/markdown-whitespace.js +2 -6
  46. package/components/NewVersionAlert/NewVersionAlert.d.ts +27 -0
  47. package/components/NewVersionAlert/NewVersionAlert.d.ts.map +1 -0
  48. package/components/NewVersionAlert/NewVersionAlert.js +28 -0
  49. package/components/NewVersionAlert/NewVersionAlert.module.scss.js +4 -0
  50. package/components/NotificationStack/NotificationStack.d.ts +48 -0
  51. package/components/NotificationStack/NotificationStack.d.ts.map +1 -0
  52. package/components/NotificationStack/NotificationStack.js +111 -0
  53. package/components/PanelEmptyState/PanelEmptyState.d.ts +12 -2
  54. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
  55. package/components/PanelEmptyState/PanelEmptyState.js +19 -9
  56. package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -2
  57. package/components/ResourceSummary/ResourceSummary.module.scss.js +5 -4
  58. package/components/TextRefinementField/TextRefinementField.d.ts +4 -2
  59. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -1
  60. package/components/TextRefinementField/TextRefinementField.js +84 -55
  61. package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts +22 -0
  62. package/components/UnsavedChangesProvider/UnsavedChangesProvider.d.ts.map +1 -0
  63. package/components/UnsavedChangesProvider/UnsavedChangesProvider.js +57 -0
  64. package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts +44 -0
  65. package/components/UnsavedChangesProvider/unsaved-changes-context.d.ts.map +1 -0
  66. package/components/UnsavedChangesProvider/unsaved-changes-context.js +13 -0
  67. package/constants/breakpoint.d.ts +6 -0
  68. package/constants/breakpoint.d.ts.map +1 -1
  69. package/constants/breakpoint.js +2 -2
  70. package/conversation-transfer/conversation-transfer-queue.d.ts +16 -0
  71. package/conversation-transfer/conversation-transfer-queue.d.ts.map +1 -0
  72. package/conversation-transfer/conversation-transfer-queue.js +24 -0
  73. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +9 -0
  74. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
  75. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +330 -269
  76. package/file-manager/DialFileManagerShell/DialFileManagerShell.module.scss.js +8 -0
  77. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +7 -0
  78. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -1
  79. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +85 -80
  80. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.module.scss.js +7 -0
  81. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +5 -0
  82. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -1
  83. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +25 -20
  84. package/file-manager/OperationLoaderModal/OperationLoaderModal.module.scss.js +4 -0
  85. package/file-manager/file-manager-controller.d.ts +11 -3
  86. package/file-manager/file-manager-controller.d.ts.map +1 -1
  87. package/file-manager/index.d.ts +1 -0
  88. package/file-manager/index.d.ts.map +1 -1
  89. package/file-manager/labels.d.ts +21 -2
  90. package/file-manager/labels.d.ts.map +1 -1
  91. package/file-manager/shell-styles.d.ts +37 -0
  92. package/file-manager/shell-styles.d.ts.map +1 -0
  93. package/file-manager/upload-batch.d.ts +46 -0
  94. package/file-manager/upload-batch.d.ts.map +1 -1
  95. package/file-manager/upload-batch.js +6 -2
  96. package/file-manager/upload-queue.d.ts +44 -4
  97. package/file-manager/upload-queue.d.ts.map +1 -1
  98. package/file-manager/upload-queue.js +45 -13
  99. package/file-manager.js +4 -4
  100. package/hooks/useAvailableHeightCap.js +1 -1
  101. package/hooks/useControlErrorAssociation.d.ts +3 -0
  102. package/hooks/useControlErrorAssociation.d.ts.map +1 -0
  103. package/hooks/useControlErrorAssociation.js +12 -0
  104. package/hooks/useIsMobile.js +1 -1
  105. package/hooks/useIsPhone.d.ts +3 -0
  106. package/hooks/useIsPhone.d.ts.map +1 -0
  107. package/hooks/useIsPhone.js +13 -0
  108. package/hooks/useIsTablet.d.ts +3 -0
  109. package/hooks/useIsTablet.d.ts.map +1 -0
  110. package/hooks/useIsTablet.js +13 -0
  111. package/hooks/useIsTextClipped.d.ts +26 -0
  112. package/hooks/useIsTextClipped.d.ts.map +1 -0
  113. package/hooks/useIsTextClipped.js +25 -0
  114. package/hooks/useIsVerticallyClamped.d.ts +16 -0
  115. package/hooks/useIsVerticallyClamped.d.ts.map +1 -0
  116. package/hooks/useIsVerticallyClamped.js +20 -0
  117. package/hooks/useTextRefinement.d.ts +1 -1
  118. package/hooks/useTextRefinement.d.ts.map +1 -1
  119. package/hooks/useTextRefinement.js +4 -4
  120. package/hooks/useUnsavedChangesGuard.js +1 -5
  121. package/hooks/useUnsavedChangesLeaveConfirmation.d.ts +12 -0
  122. package/hooks/useUnsavedChangesLeaveConfirmation.d.ts.map +1 -0
  123. package/hooks/useUnsavedChangesLeaveConfirmation.js +22 -0
  124. package/hooks/useUnsavedChangesLeaveGuard.d.ts +24 -0
  125. package/hooks/useUnsavedChangesLeaveGuard.d.ts.map +1 -0
  126. package/hooks/useUnsavedChangesLeaveGuard.js +24 -0
  127. package/index.css +2 -2
  128. package/index.d.ts +15 -0
  129. package/index.d.ts.map +1 -1
  130. package/index.js +93 -78
  131. package/models/auth.d.ts +2 -0
  132. package/models/auth.d.ts.map +1 -1
  133. package/models/chat.d.ts +19 -0
  134. package/models/chat.d.ts.map +1 -1
  135. package/models/conversation-classification.d.ts +5 -0
  136. package/models/conversation-classification.d.ts.map +1 -1
  137. package/models/conversation-classification.js +3 -1
  138. package/models/text-refinement.d.ts +6 -2
  139. package/models/text-refinement.d.ts.map +1 -1
  140. package/package.json +10 -17
  141. package/types/mime-type.d.ts +30 -0
  142. package/types/mime-type.d.ts.map +1 -1
  143. package/types/mime-type.js +1 -1
  144. package/utils/dom.d.ts +8 -0
  145. package/utils/dom.d.ts.map +1 -0
  146. package/utils/dom.js +10 -0
  147. package/utils/format-price.js +10 -10
  148. package/utils/inline-segments.js +1 -1
  149. package/utils/latex.d.ts +4 -3
  150. package/utils/latex.d.ts.map +1 -1
  151. package/utils/latex.js +47 -41
  152. package/utils/message-attachment-to-display.js +1 -1
  153. package/utils/mime-type.js +1 -1
  154. package/utils/prompt-variables.js +5 -9
  155. package/utils/syntax-highlighting.js +8 -8
@@ -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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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 [overflow:clip] rounded-xl border", 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"}
@@ -107,6 +107,8 @@ export interface MarkdownRendererProps {
107
107
  tableScrollRegionAriaLabel?: string;
108
108
  /** Accessible label for a block formula's horizontally scrollable region. Defaults to `'Scrollable formula'`. */
109
109
  mathScrollRegionAriaLabel?: string;
110
+ /** Accessible label for a code block's scrollable region. Defaults to `'Scrollable code'`. */
111
+ codeBlockScrollRegionAriaLabel?: string;
110
112
  }
111
113
  /** CSS custom-property overrides for the `MarkdownRenderer` component. */
112
114
  export interface MarkdownRendererColors {
@@ -132,6 +134,10 @@ export interface MarkdownRendererColors {
132
134
  inlineCodeBackground?: string;
133
135
  /** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
134
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;
135
141
  }
136
142
  export declare const defaultMarkdownComponents: Components;
137
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;AASzD,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;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iCAAiC;IACjC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yIAAyI;IACzI,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iE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ACzG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmLD,eAAO,MAAM,yBAAyB,EAAE,UAGvC,CAAC;AAkRF,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAqKtD,CAAC"}
@@ -91,7 +91,7 @@ var O = [
91
91
  }, H = (e) => {
92
92
  let t = e?.properties?.align;
93
93
  return typeof t == "string" ? V[t] : void 0;
94
- }, U = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(U).join("") : "", W = (t, { isStreaming: n, codeBlockCopyLabel: r, codeBlockCopiedLabel: i, codeBlockDownloadLabel: o, codeBlockTheme: f, tableActionLabels: p, tableDownloadFilename: m, tableOnOpenInCanvas: h, tableScrollRegionAriaLabel: g, mathScrollRegionAriaLabel: _ }) => ({
94
+ }, U = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(U).join("") : "", W = (t, { isStreaming: n, codeBlockCopyLabel: r, codeBlockCopiedLabel: i, codeBlockDownloadLabel: o, codeBlockTheme: f, tableActionLabels: p, tableDownloadFilename: m, tableOnOpenInCanvas: h, tableScrollRegionAriaLabel: g, mathScrollRegionAriaLabel: _, codeBlockScrollRegionAriaLabel: b }) => ({
95
95
  h1: ({ children: e }) => /* @__PURE__ */ y("h1", {
96
96
  className: t.h1,
97
97
  children: e
@@ -117,7 +117,7 @@ var O = [
117
117
  children: n
118
118
  }),
119
119
  p: ({ children: n }) => /* @__PURE__ */ y("p", {
120
- className: e("break-words", t.p),
120
+ className: e("wrap-break-word", t.p),
121
121
  children: n
122
122
  }),
123
123
  ul: ({ children: n }) => /* @__PURE__ */ y("ul", {
@@ -147,6 +147,7 @@ var O = [
147
147
  copyLabel: r,
148
148
  copiedLabel: i,
149
149
  downloadLabel: o,
150
+ scrollRegionAriaLabel: b,
150
151
  containerClassName: t.codeBlockContainer,
151
152
  headerClassName: t.codeBlockHeader,
152
153
  codeClassName: t.codeFont
@@ -163,7 +164,7 @@ var O = [
163
164
  href: n,
164
165
  target: "_blank",
165
166
  rel: "noopener noreferrer",
166
- className: e("break-words underline decoration-current/60 underline-offset-2 hover:decoration-current focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2", s.link, t.link),
167
+ className: e("wrap-break-word underline decoration-current/60 underline-offset-2 hover:decoration-current focus-visible:outline-1 focus-visible:outline-offset-2", s.link, t.link),
167
168
  children: r
168
169
  }),
169
170
  hr: () => /* @__PURE__ */ y("hr", { className: e("my-5 border-t", s.secondaryBorder, t.hr) }),
@@ -198,39 +199,39 @@ var O = [
198
199
  },
199
200
  th: ({ children: n, node: r }) => /* @__PURE__ */ y("th", {
200
201
  scope: "col",
201
- className: e("sticky top-0 z-[2] max-w-96 px-3 py-2.5 text-start break-words whitespace-normal", H(r), l.rowDivider, l.tableHeaderCell, t.tableHeaderFont ?? "dial-tiny-lead-semi-text", t.tableCell, t.tableHeader),
202
+ className: e("sticky top-0 z-2 max-w-96 px-3 py-2.5 text-start wrap-break-word whitespace-normal", H(r), l.rowDivider, l.tableHeaderCell, t.tableHeaderFont ?? "dial-tiny-lead-semi-text", t.tableCell, t.tableHeader),
202
203
  children: n
203
204
  }),
204
205
  td: ({ children: n, node: r }) => /* @__PURE__ */ y("td", {
205
- className: e("max-w-96 px-3 py-[7px] align-top [overflow-wrap:anywhere] whitespace-normal", H(r), l.rowDivider, t.tableBodyCell, t.tableCell),
206
+ className: e("max-w-96 px-3 py-[7px] align-top wrap-anywhere whitespace-normal", H(r), l.rowDivider, t.tableBodyCell, t.tableCell),
206
207
  children: n
207
208
  })
208
- }), G = m(({ content: i, containerClassName: a, isStreaming: s, streamCharactersPerSecond: c, classNames: l = L, components: u, urlTransform: d, rehypePlugins: p = P, isRawHtmlEnabled: m = !0, thinkingLabel: v = "Thinking", codeBlockCopyLabel: b, codeBlockCopiedLabel: S, codeBlockDownloadLabel: C, codeBlockTheme: w, colors: T, tableActionLabels: E, tableDownloadFilename: D, tableOnOpenInCanvas: k, tableScrollRegionAriaLabel: A, mathScrollRegionAriaLabel: F }) => {
209
- let B = n(i, s, c), V = g(() => r(B), [B]), H = g(() => I(V), [V]), [U, G] = _(null);
209
+ }), G = m(({ content: i, containerClassName: a, isStreaming: s, streamCharactersPerSecond: c, classNames: l = L, components: u, urlTransform: d, rehypePlugins: p = P, isRawHtmlEnabled: m = !0, thinkingLabel: v = "Thinking", codeBlockCopyLabel: b, codeBlockCopiedLabel: S, codeBlockDownloadLabel: C, codeBlockTheme: w, colors: T, tableActionLabels: E, tableDownloadFilename: D, tableOnOpenInCanvas: k, tableScrollRegionAriaLabel: A, mathScrollRegionAriaLabel: F, codeBlockScrollRegionAriaLabel: B }) => {
210
+ let V = n(i, s, c), H = g(() => r(V), [V]), U = g(() => I(H), [H]), [G, K] = _(null);
210
211
  h(() => {
211
- if (!H || U) return;
212
+ if (!U || G) return;
212
213
  let e = !1;
213
214
  return (async () => {
214
215
  let [t] = await Promise.all([import("rehype-katex"), import("katex/dist/katex.min.css")]);
215
- e || G([t.default, {
216
+ e || K([t.default, {
216
217
  output: "mathml",
217
218
  strict: !1
218
219
  }]);
219
220
  })(), () => {
220
221
  e = !0;
221
222
  };
222
- }, [H, U]);
223
- let K = g(() => [
223
+ }, [U, G]);
224
+ let q = g(() => [
224
225
  ...m ? j : M,
225
- ...U ? [U] : [],
226
+ ...G ? [G] : [],
226
227
  N,
227
228
  o,
228
229
  ...p
229
230
  ], [
230
231
  m,
231
- U,
232
+ G,
232
233
  p
233
- ]), q = t({
234
+ ]), J = t({
234
235
  "--cm-markdown-border": T?.border,
235
236
  "--cm-blockquote-border": T?.blockquoteBorder,
236
237
  "--cm-blockquote-text": T?.blockquoteText,
@@ -239,8 +240,10 @@ var O = [
239
240
  "--cm-table-header-text": T?.tableHeaderText,
240
241
  "--cm-h6-text": T?.headingSixText,
241
242
  "--cm-code-inline-bg": T?.inlineCodeBackground,
242
- "--cm-code-inline-text": T?.inlineCodeText
243
- }), J = g(() => R(d), [d]), Y = g(() => ({
243
+ "--cm-code-inline-text": T?.inlineCodeText,
244
+ "--cm-math-scrollbar": T?.mathScrollbar,
245
+ "--cm-math-focus": T?.mathFocus
246
+ }), Y = g(() => R(d), [d]), X = g(() => ({
244
247
  ...W(l, {
245
248
  isStreaming: s,
246
249
  codeBlockCopyLabel: b,
@@ -251,7 +254,8 @@ var O = [
251
254
  tableDownloadFilename: D,
252
255
  tableOnOpenInCanvas: k,
253
256
  tableScrollRegionAriaLabel: A,
254
- mathScrollRegionAriaLabel: F
257
+ mathScrollRegionAriaLabel: F,
258
+ codeBlockScrollRegionAriaLabel: B
255
259
  }),
256
260
  ...z,
257
261
  ...u
@@ -267,20 +271,21 @@ var O = [
267
271
  k,
268
272
  A,
269
273
  F,
274
+ B,
270
275
  u
271
276
  ]);
272
- return s && !B ? /* @__PURE__ */ y(f, {
277
+ return s && !V ? /* @__PURE__ */ y(f, {
273
278
  label: v,
274
279
  colors: T
275
280
  }) : /* @__PURE__ */ y("div", {
276
- style: q,
277
- className: e("[overflow-wrap:anywhere]", a),
281
+ style: J,
282
+ className: e("wrap-anywhere", a),
278
283
  children: /* @__PURE__ */ y(x, {
279
284
  remarkPlugins: O,
280
- rehypePlugins: K,
281
- components: Y,
282
- urlTransform: J,
283
- children: V
285
+ rehypePlugins: q,
286
+ components: X,
287
+ urlTransform: Y,
288
+ children: H
284
289
  })
285
290
  });
286
291
  });
@@ -1,11 +1,12 @@
1
- var e = {
2
- thinking: "_thinking_1ql91_9",
1
+ //#region src/components/MarkdownRenderer/MarkdownRenderer.module.scss
2
+ var e = "_thinking_1ql91_9", t = "_h6_1ql91_18", n = "_codeInline_1ql91_22", r = "_secondaryBorder_1ql91_27", i = "_blockquote_1ql91_31", a = "_link_1ql91_36", o = {
3
+ thinking: e,
3
4
  "cm-shimmer": "_cm-shimmer_1ql91_1",
4
- h6: "_h6_1ql91_18",
5
- codeInline: "_codeInline_1ql91_22",
6
- secondaryBorder: "_secondaryBorder_1ql91_27",
7
- blockquote: "_blockquote_1ql91_31",
8
- link: "_link_1ql91_36"
5
+ h6: t,
6
+ codeInline: n,
7
+ secondaryBorder: r,
8
+ blockquote: i,
9
+ link: a
9
10
  };
10
11
  //#endregion
11
- export { e as default };
12
+ export { i as blockquote, n as codeInline, o as default, t as h6, a as link, r as secondaryBorder, e as thinking };
@@ -1,6 +1,7 @@
1
- var e = {
2
- scrollContainer: "_scrollContainer_n2oom_1",
3
- mathContent: "_mathContent_n2oom_24"
1
+ //#region src/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss
2
+ var e = "_scrollContainer_n2oom_1", t = "_mathContent_n2oom_24", n = {
3
+ scrollContainer: e,
4
+ mathContent: t
4
5
  };
5
6
  //#endregion
6
- export { e as default };
7
+ export { n as default, t as mathContent, e as scrollContainer };
@@ -12,7 +12,7 @@ var a = {}, o = r(({ content: r, containerClassName: o, isStreaming: s, streamCh
12
12
  }) : /* @__PURE__ */ i("div", {
13
13
  className: o,
14
14
  children: /* @__PURE__ */ i("p", {
15
- className: e(l.p, "[overflow-wrap:anywhere] break-words whitespace-pre-wrap"),
15
+ className: e(l.p, "wrap-anywhere whitespace-pre-wrap"),
16
16
  children: f
17
17
  })
18
18
  });
@@ -23,6 +23,10 @@ export interface MarkdownTableColors {
23
23
  rowDivider?: string;
24
24
  /** Background of a body row on hover. Defaults to `--bg-control-accent-alpha-hover`. */
25
25
  rowHoverBackground?: string;
26
+ /** Border color of the copy/download actions toolbar. Defaults to `--stroke-tertiary`. */
27
+ actionsBorder?: string;
28
+ /** Background of the copy/download actions toolbar. Defaults to `--bg-layer-raised`. */
29
+ actionsBackground?: string;
26
30
  }
27
31
  /** Props for {@link MarkdownTable}. */
28
32
  export interface MarkdownTableProps {
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KA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CAAC,EAAE,MAAM,CAAC;CAChC;AAID,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6JhD,CAAC"}
1
+ {"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAQf,OAAO,EAKL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,wCAAwC,EACxC,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAEnG,iEAAiE;AACjE,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,sHAAsH;IACtH,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,UAAU,EAAE,uBAAuB,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iFAAiF;IACjF,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iGAAiG;IACjG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoKhD,CAAC"}
@@ -5,88 +5,93 @@ import { downloadTextFile as r } from "../../../utils/file-download.js";
5
5
  import { CHAT_SHARED_CLASS as i } from "../../../constants/public-class-names.js";
6
6
  import { useHorizontalOverflow as a } from "../../../hooks/useHorizontalOverflow.js";
7
7
  import o from "./MarkdownTable.module.scss.js";
8
- import { MARKDOWN_TABLE_CSV_MIME_TYPE as s, MarkdownTableCopyFormat as c, serializeMarkdownTableRows as l } from "./table-serialization.js";
9
- import { useMarkdownTableActions as u } from "./useMarkdownTableActions/useMarkdownTableActions.js";
10
- import { ElementSize as d, GhostIconButton as f } from "@epam/ai-dial-ui-kit";
11
- import { memo as p, useCallback as m, useEffect as h, useRef as g, useState as _ } from "react";
12
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
8
+ import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as s, MARKDOWN_TABLE_CSV_MIME_TYPE as c, MarkdownTableCopyFormat as l, serializeMarkdownTableRows as u } from "./table-serialization.js";
9
+ import { useMarkdownTableActions as d } from "./useMarkdownTableActions/useMarkdownTableActions.js";
10
+ import { ElementSize as f, GhostIconButton as p, LiveRegion as m, LiveRegionElement as h } from "@epam/ai-dial-ui-kit";
11
+ import { memo as g, useCallback as _, useEffect as v, useRef as y, useState as b } from "react";
12
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
13
13
  //#region src/components/MarkdownRenderer/Table/MarkdownTable.tsx
14
- var b = 2e3, x = p(({ children: p, classNames: x, colors: S, actionLabels: C, downloadFilename: w, isStreaming: T, onOpenInCanvas: E, scrollRegionAriaLabel: D = "Scrollable table" }) => {
15
- let [O, k] = _(!1), A = g(null), { scrollContainerRef: j, contentRef: M, hasContentBeyondStart: N, hasContentBeyondEnd: P, handleScroll: F } = a(), I = t({
16
- "--cm-markdown-border": S?.border,
17
- "--cm-table-scrollbar": S?.scrollbar,
18
- "--cm-table-fade": S?.fade,
19
- "--cm-table-row-divider": S?.rowDivider,
20
- "--cm-table-row-hover-bg": S?.rowHoverBackground
21
- }), L = N || P;
22
- h(() => () => {
23
- A.current != null && clearTimeout(A.current);
14
+ var C = 2e3, w = g(({ children: s, classNames: g, colors: w, actionLabels: T, downloadFilename: E, isStreaming: D, onOpenInCanvas: O, scrollRegionAriaLabel: k = "Scrollable table" }) => {
15
+ let [A, j] = b(!1), M = y(null), { scrollContainerRef: N, contentRef: P, hasContentBeyondStart: F, hasContentBeyondEnd: I, handleScroll: L } = a(), R = t({
16
+ "--cm-markdown-border": w?.border,
17
+ "--cm-table-scrollbar": w?.scrollbar,
18
+ "--cm-table-fade": w?.fade,
19
+ "--cm-table-row-divider": w?.rowDivider,
20
+ "--cm-table-row-hover-bg": w?.rowHoverBackground,
21
+ "--cm-table-actions-border": w?.actionsBorder,
22
+ "--cm-table-actions-bg": w?.actionsBackground
23
+ }), z = F || I;
24
+ v(() => () => {
25
+ M.current != null && clearTimeout(M.current);
24
26
  }, []);
25
- let R = m(() => {
26
- let e = M.current;
27
- e != null && n(l(Array.from(e.rows), c.Markdown)).then((e) => {
28
- e && (A.current != null && clearTimeout(A.current), k(!0), A.current = setTimeout(() => {
29
- k(!1);
30
- }, b));
27
+ let B = _(() => {
28
+ let e = P.current;
29
+ if (e == null) return;
30
+ let t = u(Array.from(e.rows), l.Markdown);
31
+ n(t).then((e) => {
32
+ e && (M.current != null && clearTimeout(M.current), j(!0), M.current = setTimeout(() => {
33
+ j(!1);
34
+ }, C));
31
35
  });
32
- }, [M]), z = m(() => {
33
- let e = M.current;
34
- e != null && r(`\uFEFF${l(Array.from(e.rows), c.Csv)}`, w ?? "table.csv", s);
35
- }, [M, w]), B = m(() => {
36
- let e = M.current;
37
- e == null || E == null || E(l(Array.from(e.rows), c.Markdown));
38
- }, [M, E]), V = u({
39
- actionLabels: C,
40
- isCopied: O,
41
- onCopy: R,
42
- onDownloadCsv: z,
43
- onOpenInCanvas: E == null ? void 0 : B
44
- }), H = V.length > 0 && !T;
45
- return /* @__PURE__ */ y("div", {
46
- style: I,
47
- className: e("group/table relative w-full max-w-full min-w-0 [overflow:clip] rounded-xl border", o.tableContainer, x.tableWrapper, i.table),
36
+ }, [P]), V = _(() => {
37
+ let e = P.current;
38
+ if (e == null) return;
39
+ let t = u(Array.from(e.rows), l.Csv);
40
+ r(`\uFEFF${t}`, E ?? "table.csv", c);
41
+ }, [P, E]), H = _(() => {
42
+ let e = P.current;
43
+ e != null && O != null && O(u(Array.from(e.rows), l.Markdown));
44
+ }, [P, O]), U = d({
45
+ actionLabels: T,
46
+ isCopied: A,
47
+ onCopy: B,
48
+ onDownloadCsv: V,
49
+ onOpenInCanvas: O == null ? void 0 : H
50
+ }), W = U.length > 0 && !D;
51
+ return /* @__PURE__ */ S("div", {
52
+ style: R,
53
+ className: e("group/table relative w-full max-w-full min-w-0 overflow-clip rounded-xl border", o.tableContainer, g.tableWrapper, i.table),
48
54
  children: [
49
- H && /* @__PURE__ */ v("div", {
55
+ W && /* @__PURE__ */ x("div", {
50
56
  className: "sticky top-0 z-10 h-0",
51
- children: /* @__PURE__ */ v("div", {
52
- className: "absolute end-2 top-2 flex items-center gap-1 rounded-lg border border-tertiary bg-layer-raised px-2 py-1 opacity-0 shadow-xs transition-opacity group-hover/table:opacity-100 focus-within:opacity-100",
53
- children: V.map((e) => /* @__PURE__ */ v(f, {
57
+ children: /* @__PURE__ */ x("div", {
58
+ className: e("absolute inset-e-2 top-2 flex items-center gap-1 rounded-lg border px-2 py-1 opacity-0 shadow-xs transition-opacity group-hover/table:opacity-100 focus-within:opacity-100", o.actions),
59
+ children: U.map((e) => /* @__PURE__ */ x(p, {
54
60
  tooltipProps: { tooltip: e.label },
55
61
  "aria-label": e.label,
56
- icon: /* @__PURE__ */ v("span", {
62
+ icon: /* @__PURE__ */ x("span", {
57
63
  "aria-hidden": !0,
58
64
  children: e.icon
59
65
  }),
60
- size: d.Small,
66
+ size: f.Small,
61
67
  onClick: e.onClick
62
68
  }, e.label))
63
69
  })
64
70
  }),
65
- /* @__PURE__ */ v("div", {
66
- ref: j,
67
- className: e("w-full max-w-full min-w-0 overflow-x-auto", o.scrollContainer, x.tableScrollContainer, {
68
- [o.tableScrollFadeBoth]: N && P,
69
- [o.tableScrollFadeStart]: N && !P,
70
- [o.tableScrollFadeEnd]: !N && P
71
+ /* @__PURE__ */ x("div", {
72
+ ref: N,
73
+ className: e("w-full max-w-full min-w-0 overflow-x-auto", o.scrollContainer, g.tableScrollContainer, {
74
+ [o.tableScrollFadeBoth]: F && I,
75
+ [o.tableScrollFadeStart]: F && !I,
76
+ [o.tableScrollFadeEnd]: !F && I
71
77
  }, i.tableScroll),
72
- onScroll: F,
73
- role: L ? "region" : void 0,
74
- "aria-label": L ? D : void 0,
75
- tabIndex: L ? 0 : void 0,
76
- children: /* @__PURE__ */ v("table", {
77
- ref: M,
78
- className: e("w-max min-w-full border-collapse", x.tableFont ?? "dial-small-text"),
79
- children: p
78
+ onScroll: L,
79
+ role: z ? "region" : void 0,
80
+ "aria-label": z ? k : void 0,
81
+ tabIndex: z ? 0 : void 0,
82
+ children: /* @__PURE__ */ x("table", {
83
+ ref: P,
84
+ className: e("w-max min-w-full border-collapse", g.tableFont ?? "dial-small-text"),
85
+ children: s
80
86
  })
81
87
  }),
82
- C?.copyLabel && /* @__PURE__ */ v("span", {
83
- "aria-live": "polite",
84
- className: "sr-only",
85
- role: "status",
86
- children: O ? C.copiedLabel ?? "" : ""
88
+ T?.copyLabel && /* @__PURE__ */ x(m, {
89
+ visuallyHidden: !0,
90
+ as: h.Span,
91
+ children: A ? T.copiedLabel ?? "" : ""
87
92
  })
88
93
  ]
89
94
  });
90
95
  });
91
96
  //#endregion
92
- export { x as MarkdownTable };
97
+ export { s as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, c as MARKDOWN_TABLE_CSV_MIME_TYPE, w as MarkdownTable, l as MarkdownTableCopyFormat, u as serializeMarkdownTableRows };