@epam/ai-dial-chat-shared 1.2.0-dev.28 → 1.2.0-dev.284

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 (55) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.js +34 -0
  2. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.js +21 -0
  3. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +6 -0
  4. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +24 -0
  5. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -0
  6. package/components/ConfirmationView/ConfirmationFooter.js +42 -0
  7. package/components/ConfirmationView/ConfirmationView.js +39 -0
  8. package/components/ConfirmationView/ConfirmationView.module.scss.js +7 -0
  9. package/components/FeaturedChip/FeaturedChip.js +9 -14
  10. package/components/InitialsAvatar/InitialsAvatar.js +10 -27
  11. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +65 -63
  12. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +6 -6
  13. package/components/MarkdownRenderer/MDMessageViewer.js +23 -17
  14. package/components/MarkdownRenderer/MarkdownRenderer.js +88 -90
  15. package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +19 -18
  16. package/components/MarkdownRenderer/PlainTextRenderer.js +21 -0
  17. package/components/MarkdownRenderer/Table/MarkdownTable.js +71 -56
  18. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +11 -11
  19. package/components/MarkdownRenderer/Table/TableHeader.js +18 -21
  20. package/components/MarkdownRenderer/Table/table-serialization.js +23 -3
  21. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +48 -62
  22. package/components/MarkdownRenderer/ThinkingShimmer.js +14 -0
  23. package/components/PanelEmptyState/PanelEmptyState.js +2 -1
  24. package/components/TextRefinementField/TextRefinementField.js +86 -0
  25. package/constants/dial.js +2 -2
  26. package/constants/mime-types.js +49 -2
  27. package/constants/public-class-names.js +10 -0
  28. package/constants/resizable-fields.js +2 -2
  29. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +251 -234
  30. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +36 -32
  31. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +17 -20
  32. package/file-manager/upload-batch.js +2 -2
  33. package/file-manager/upload-queue.js +17 -0
  34. package/file-manager.d.ts +35 -20
  35. package/file-manager.js +4 -3
  36. package/hooks/useTextRefinement.js +66 -0
  37. package/hooks/useUnsavedChangesGuard.js +30 -0
  38. package/index.css +2 -2
  39. package/index.d.ts +531 -44
  40. package/index.js +73 -61
  41. package/markdown.d.ts +61 -8
  42. package/markdown.js +13 -11
  43. package/models/chat.js +4 -2
  44. package/package.json +5 -5
  45. package/types/attachment.js +1 -1
  46. package/utils/entity-field-limits.js +4 -0
  47. package/utils/entity-type.js +15 -0
  48. package/utils/file-download.js +6 -6
  49. package/utils/is-skill-selection-unsupported.js +4 -0
  50. package/utils/latex.js +5 -3
  51. package/utils/merge-class.js +5 -4
  52. package/utils/mime-type.js +10 -6
  53. package/utils/syntax-highlighting.js +13 -0
  54. package/components/InitialsAvatar/InitialsAvatar.module.scss.js +0 -6
  55. package/file-manager/UploadProgressModal/UploadProgressModal.js +0 -56
@@ -0,0 +1,34 @@
1
+ import { ConfirmationView as e } from "../ConfirmationView/ConfirmationView.js";
2
+ import { ConfirmationFooter as t } from "../ConfirmationView/ConfirmationFooter.js";
3
+ import { ConfirmationPopupVariant as n, Popup as r, PopupSize as i } from "@epam/ai-dial-ui-kit";
4
+ import { jsx as a } from "react/jsx-runtime";
5
+ //#region src/components/ConfirmationDialog/ConfirmationDialog.tsx
6
+ var o = ({ open: o, title: s, confirmLabel: c, cancelLabel: l, isLoading: u = !1, isConfirmDisabled: d = !1, loadingStatusLabel: f, size: p = i.Sm, popupClassName: m, titleClassName: h, variant: g = n.Info, onConfirm: _, onClose: v, ...y }) => {
7
+ let b = () => {
8
+ u || v();
9
+ };
10
+ return /* @__PURE__ */ a(r, {
11
+ open: o,
12
+ header: s,
13
+ size: p,
14
+ className: m,
15
+ titleClassName: h,
16
+ onClose: b,
17
+ footer: /* @__PURE__ */ a(t, {
18
+ variant: g,
19
+ confirmLabel: c,
20
+ cancelLabel: l,
21
+ isLoading: u,
22
+ isConfirmDisabled: d,
23
+ loadingStatusLabel: f,
24
+ onConfirm: _,
25
+ onCancel: b
26
+ }),
27
+ children: /* @__PURE__ */ a(e, {
28
+ variant: g,
29
+ ...y
30
+ })
31
+ });
32
+ };
33
+ //#endregion
34
+ export { o as ConfirmationDialog };
@@ -0,0 +1,21 @@
1
+ import { ResourceSummary as e } from "../ResourceSummary/ResourceSummary.js";
2
+ import t from "./ConfirmationIdentityCard.module.scss.js";
3
+ import { ConfirmationPopupVariant as n } from "@epam/ai-dial-ui-kit";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ //#region src/components/ConfirmationIdentityCard/ConfirmationIdentityCard.tsx
6
+ var i = ({ item: i, children: a, variant: o = n.Info, iconSize: s = 40, styles: c }) => {
7
+ let l = o === n.Danger, u = c?.colors, d = l ? {
8
+ background: u?.dangerBackground,
9
+ border: u?.dangerBorder
10
+ } : { background: u?.background };
11
+ return /* @__PURE__ */ r(e, {
12
+ item: i,
13
+ iconSize: s,
14
+ hasVersionTag: !1,
15
+ className: l ? t.danger : t.info,
16
+ styles: { colors: d },
17
+ children: a
18
+ });
19
+ };
20
+ //#endregion
21
+ export { i as ConfirmationIdentityCard };
@@ -0,0 +1,6 @@
1
+ var e = {
2
+ info: "_info_vyo7p_1",
3
+ danger: "_danger_vyo7p_5"
4
+ };
5
+ //#endregion
6
+ export { e as default };
@@ -0,0 +1,24 @@
1
+ import { mergeClasses as e } from "../../utils/merge-class.js";
2
+ import { buildCssVars as t } from "../../utils/build-css-vars.js";
3
+ import n from "./ConfirmationIdentityRow.module.scss.js";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/components/ConfirmationIdentityRow/ConfirmationIdentityRow.tsx
6
+ var a = ({ icon: a, typeLabel: o, name: s, styles: c }) => {
7
+ let { colors: l, typeLabelClassName: u = "dial-caption-lead-semi-text", nameClassName: d = "dial-small-semi-text" } = c ?? {};
8
+ return /* @__PURE__ */ i("div", {
9
+ style: t({ "--cir-type-label-text": l?.typeLabelText }),
10
+ className: "flex min-w-0 items-center gap-2",
11
+ children: [a, /* @__PURE__ */ i("div", {
12
+ className: "flex min-w-0 flex-col",
13
+ children: [o != null && /* @__PURE__ */ r("span", {
14
+ className: e(u, n.typeLabel),
15
+ children: o
16
+ }), /* @__PURE__ */ r("span", {
17
+ className: e(d, "truncate"),
18
+ children: s
19
+ })]
20
+ })]
21
+ });
22
+ };
23
+ //#endregion
24
+ export { a as ConfirmationIdentityRow };
@@ -0,0 +1,3 @@
1
+ var e = { typeLabel: "_typeLabel_17nhs_1" };
2
+ //#endregion
3
+ export { e as default };
@@ -0,0 +1,42 @@
1
+ import { mergeClasses as e } from "../../utils/merge-class.js";
2
+ import { buildCssVars as t } from "../../utils/build-css-vars.js";
3
+ import n from "./ConfirmationView.module.scss.js";
4
+ import { ConfirmationPopupVariant as r, DIAL_ICON_SIZE as i, DIAL_KIT_ICON_STROKE as a, DangerButton as o, GhostButton as s, NeutralButton as c, Spinner as l } from "@epam/ai-dial-ui-kit";
5
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ import { IconTrashX as f } from "@tabler/icons-react";
7
+ //#region src/components/ConfirmationView/ConfirmationFooter.tsx
8
+ var p = ({ confirmLabel: p, cancelLabel: m, variant: h = r.Info, isLoading: g = !1, isConfirmDisabled: _ = !1, loadingStatusLabel: v, styles: y, onConfirm: b, onCancel: x }) => {
9
+ let S = h === r.Danger, C = t({ "--cfm-footer-border": y?.colors?.border }), w = (() => {
10
+ if (g) return /* @__PURE__ */ u(l, { size: i.SM });
11
+ if (S) return /* @__PURE__ */ u(f, {
12
+ size: i.MD,
13
+ "aria-hidden": !0,
14
+ stroke: a
15
+ });
16
+ })(), T = S ? o : c;
17
+ return /* @__PURE__ */ d("div", {
18
+ style: C,
19
+ className: e("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", n.footer),
20
+ children: [
21
+ /* @__PURE__ */ u(s, {
22
+ label: m,
23
+ disabled: g,
24
+ onClick: x
25
+ }),
26
+ /* @__PURE__ */ u(T, {
27
+ label: p,
28
+ disabled: g || _,
29
+ iconBefore: w,
30
+ onClick: b
31
+ }),
32
+ g && v != null && /* @__PURE__ */ u("span", {
33
+ role: "status",
34
+ "aria-live": "polite",
35
+ className: "sr-only",
36
+ children: v
37
+ })
38
+ ]
39
+ });
40
+ };
41
+ //#endregion
42
+ export { p as ConfirmationFooter };
@@ -0,0 +1,39 @@
1
+ import { mergeClasses as e } from "../../utils/merge-class.js";
2
+ import { buildCssVars as t } from "../../utils/build-css-vars.js";
3
+ import { ConfirmationIdentityCard as n } from "../ConfirmationIdentityCard/ConfirmationIdentityCard.js";
4
+ import r from "./ConfirmationView.module.scss.js";
5
+ import { ConfirmationPopupVariant as i } from "@epam/ai-dial-ui-kit";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ //#region src/components/ConfirmationView/ConfirmationView.tsx
8
+ var s = ({ item: s, identity: c, message: l, consequences: u, variant: d = i.Info, messageClassName: f = "dial-small-text", styles: p, children: m }) => {
9
+ let h = p?.colors;
10
+ return /* @__PURE__ */ o("div", {
11
+ style: t({
12
+ "--cfm-message-text": h?.messageText,
13
+ "--cfm-consequence-text": h?.consequenceText
14
+ }),
15
+ className: "flex flex-col gap-4 px-6 py-4",
16
+ children: [
17
+ c ?? (s != null && /* @__PURE__ */ a(n, {
18
+ item: s,
19
+ variant: d,
20
+ styles: { colors: {
21
+ background: h?.cardBackground,
22
+ dangerBackground: h?.cardDangerBackground,
23
+ dangerBorder: h?.cardDangerBorder
24
+ } }
25
+ })),
26
+ /* @__PURE__ */ a("p", {
27
+ className: e(f, "break-words", r.message),
28
+ children: l
29
+ }),
30
+ u != null && u.length > 0 && /* @__PURE__ */ a("ul", {
31
+ className: e("flex list-disc flex-col gap-2 ps-5", f, r.consequences),
32
+ children: u.map((e) => /* @__PURE__ */ a("li", { children: e }, e))
33
+ }),
34
+ m
35
+ ]
36
+ });
37
+ };
38
+ //#endregion
39
+ export { s as ConfirmationView };
@@ -0,0 +1,7 @@
1
+ var e = {
2
+ message: "_message_1iqfi_1",
3
+ consequences: "_consequences_1iqfi_5",
4
+ footer: "_footer_1iqfi_9"
5
+ };
6
+ //#endregion
7
+ export { e as default };
@@ -1,18 +1,13 @@
1
- import { mergeClasses as e } from "../../utils/merge-class.js";
2
- import { ENTITY_TYPE_BG_COLOR as t, ENTITY_TYPE_COLOR as n } from "../../constants/entity-colors.js";
1
+ import { getEntityTypeBadgeColor as e } from "../../utils/entity-type.js";
2
+ import { Badge as t, BadgeVariant as n } from "@epam/ai-dial-ui-kit";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/components/FeaturedChip/FeaturedChip.tsx
5
- var i = ({ label: i, className: a, type: o, style: s }) => {
6
- let c = t[o], l = n[o];
7
- return /* @__PURE__ */ r("div", {
8
- className: e("h-[24px] gap-1 rounded-2xl border-none px-2", "flex items-center justify-center", a ?? "dial-caption-lead-semi-text"),
9
- style: {
10
- backgroundColor: c,
11
- color: l,
12
- ...s
13
- },
14
- children: i
15
- });
16
- };
5
+ var i = ({ label: i, className: a, type: o, style: s }) => /* @__PURE__ */ r(t, {
6
+ label: i,
7
+ variant: n.Filled,
8
+ color: e(o),
9
+ textClassName: a,
10
+ style: s
11
+ });
17
12
  //#endregion
18
13
  export { i as FeaturedChip };
@@ -1,29 +1,12 @@
1
- import { mergeClasses as e } from "../../utils/merge-class.js";
2
- import { buildCssVars as t } from "../../utils/build-css-vars.js";
3
- import { pickAvatarColor as n } from "../../utils/avatar-color.js";
4
- import { extractInitials as r } from "../../utils/initials.js";
5
- import i from "./InitialsAvatar.module.scss.js";
6
- import { jsx as a } from "react/jsx-runtime";
1
+ import { Avatar as e, AvatarShape as t } from "@epam/ai-dial-ui-kit";
2
+ import { jsx as n } from "react/jsx-runtime";
7
3
  //#region src/components/InitialsAvatar/InitialsAvatar.tsx
8
- var o = ({ name: o, size: s, className: c, textClassName: l = "dial-h3-text" }) => {
9
- let { background: u, foreground: d } = n(o), f = r(o), p = Math.round(s * .4), m = t({
10
- "--ia-bg": u,
11
- "--ia-fg": d
12
- });
13
- return /* @__PURE__ */ a("div", {
14
- "aria-hidden": "true",
15
- className: e("flex select-none items-center justify-center rounded-md", i.badge, c),
16
- style: {
17
- ...m,
18
- width: s,
19
- height: s
20
- },
21
- children: /* @__PURE__ */ a("h3", {
22
- className: e(i.initials, l),
23
- style: { fontSize: p },
24
- children: f
25
- })
26
- });
27
- };
4
+ var r = ({ name: r, size: i, className: a, textClassName: o }) => /* @__PURE__ */ n(e, {
5
+ name: r,
6
+ size: i,
7
+ shape: t.Square,
8
+ className: a,
9
+ textClassName: o
10
+ });
28
11
  //#endregion
29
- export { o as InitialsAvatar };
12
+ export { r as InitialsAvatar };
@@ -2,81 +2,83 @@ import { CodeBlockTheme as e } from "../../../types/code-editor.js";
2
2
  import { mergeClasses as t } from "../../../utils/merge-class.js";
3
3
  import { buildCssVars as n } from "../../../utils/build-css-vars.js";
4
4
  import { downloadTextFile as r, getFileExtensionForLanguage as i } from "../../../utils/file-download.js";
5
- import { useCodeCopy as a } from "../../../hooks/useCodeCopy.js";
6
- import o from "./CodeBlock.module.scss.js";
7
- import { restrainedSyntaxTheme as s } from "./syntax-theme.js";
8
- import { DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, ElementSize as u, GhostIconButton as d } from "@epam/ai-dial-ui-kit";
9
- import { Suspense as f, lazy as p, memo as m } from "react";
10
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
11
- import { IconCheck as _, IconCopy as v, IconDownload as y } from "@tabler/icons-react";
5
+ import { isSyntaxHighlightingAllowed as a } from "../../../utils/syntax-highlighting.js";
6
+ import { CHAT_SHARED_CLASS as o } from "../../../constants/public-class-names.js";
7
+ import { useCodeCopy as s } from "../../../hooks/useCodeCopy.js";
8
+ import c from "./CodeBlock.module.scss.js";
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";
12
14
  //#region src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx
13
- var b = {
14
- dark: s,
15
- light: s
16
- }, x = p(async () => {
15
+ var C = {
16
+ dark: l,
17
+ light: l
18
+ }, w = h(async () => {
17
19
  let { Prism: e } = await import("react-syntax-highlighter");
18
20
  return { default: e };
19
- }), S = m(({ language: p, value: m, isStreaming: S, theme: C = e.Dark, copyLabel: w = "Copy code", copiedLabel: T = "Copied!", downloadLabel: E = "Download code", hideDownload: D = !1, containerClassName: O, headerClassName: k, codeClassName: A = "dial-code-text", languageLabelClassName: j = "dial-tiny-lead-semi-text", title: M, titleSlot: N, colors: P }) => {
20
- let { isCopied: F, copy: I } = a(m), L = C === e.Light, R = () => {
21
- r(m, `code.${i(p)}`);
22
- }, z = /* @__PURE__ */ h("pre", {
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", {
23
25
  className: "p-4",
24
- children: /* @__PURE__ */ h("code", {
25
- className: t("whitespace-pre", A),
26
- children: m
26
+ children: /* @__PURE__ */ v("code", {
27
+ className: t("whitespace-pre", N),
28
+ children: g
27
29
  })
28
30
  });
29
- return /* @__PURE__ */ g("div", {
31
+ return /* @__PURE__ */ y("div", {
30
32
  style: n({
31
- "--cm-code-block-bg": P?.background,
32
- "--cm-code-block-border": P?.border,
33
- "--cm-code-block-header-bg": P?.headerBackground,
34
- "--cm-code-block-language": P?.language,
35
- "--cm-code-block-copied": P?.copied,
36
- "--cm-code-block-scrollbar": P?.scrollbar
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
37
39
  }),
38
- className: t("my-4 max-w-full overflow-hidden rounded-xl border", o.container, L && o.containerLight, O),
40
+ className: t("my-4 max-w-full rounded-xl border [overflow:clip]", c.container, V && c.containerLight, j, o.codeBlock),
39
41
  children: [
40
- /* @__PURE__ */ g("div", {
41
- className: t("flex min-h-10 items-center justify-between border-b px-4", N == null ? "py-2" : "py-0", o.header, k),
42
- children: [N ?? /* @__PURE__ */ h("span", {
43
- className: t(o.languageLabel, j),
44
- children: M ?? p
45
- }), !S && /* @__PURE__ */ g("div", {
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", {
46
48
  className: "flex items-center gap-1",
47
- children: [!D && /* @__PURE__ */ h(d, {
48
- icon: /* @__PURE__ */ h(y, {
49
- size: c.SM,
50
- stroke: l
49
+ children: [!A && /* @__PURE__ */ v(p, {
50
+ icon: /* @__PURE__ */ v(S, {
51
+ size: u.SM,
52
+ stroke: d
51
53
  }),
52
- "aria-label": E,
53
- size: u.Small,
54
- onClick: R
55
- }), /* @__PURE__ */ h(d, {
56
- icon: F ? /* @__PURE__ */ h(_, {
57
- size: c.SM,
58
- className: o.copiedIcon,
54
+ "aria-label": k,
55
+ size: f.Small,
56
+ onClick: H
57
+ }), /* @__PURE__ */ v(p, {
58
+ icon: R ? /* @__PURE__ */ v(b, {
59
+ size: u.SM,
60
+ className: c.copiedIcon,
59
61
  "aria-hidden": !0,
60
- stroke: l
61
- }) : /* @__PURE__ */ h(v, {
62
- size: c.SM,
62
+ stroke: d
63
+ }) : /* @__PURE__ */ v(x, {
64
+ size: u.SM,
63
65
  "aria-hidden": !0,
64
- stroke: l
66
+ stroke: d
65
67
  }),
66
- "aria-label": w,
67
- size: u.Small,
68
- onClick: I
68
+ "aria-label": D,
69
+ size: f.Small,
70
+ onClick: z
69
71
  })]
70
72
  })]
71
73
  }),
72
- /* @__PURE__ */ h("div", {
73
- className: t(o.scrollContainer, "max-h-[60vh] overflow-auto"),
74
+ /* @__PURE__ */ v("div", {
75
+ className: t(c.scrollContainer, "max-h-[60vh] overflow-auto"),
74
76
  dir: "ltr",
75
- children: p ? /* @__PURE__ */ h(f, {
76
- fallback: z,
77
- children: /* @__PURE__ */ h(x, {
78
- language: p,
79
- style: b[C] ?? s,
77
+ children: h && B ? /* @__PURE__ */ v(m, {
78
+ fallback: U,
79
+ children: /* @__PURE__ */ v(w, {
80
+ language: h,
81
+ style: C[E] ?? l,
80
82
  customStyle: {
81
83
  margin: 0,
82
84
  borderRadius: 0,
@@ -86,19 +88,19 @@ var b = {
86
88
  padding: "14px 16px",
87
89
  letterSpacing: 0
88
90
  },
89
- codeTagProps: { className: A },
90
- children: m
91
+ codeTagProps: { className: N },
92
+ children: g
91
93
  })
92
- }) : z
94
+ }) : U
93
95
  }),
94
- /* @__PURE__ */ h("span", {
96
+ /* @__PURE__ */ v("span", {
95
97
  role: "status",
96
98
  "aria-live": "polite",
97
99
  className: "sr-only",
98
- children: F ? T : ""
100
+ children: R ? O : ""
99
101
  })
100
102
  ]
101
103
  });
102
104
  });
103
105
  //#endregion
104
- export { S as MarkdownCodeBlock };
106
+ export { T as MarkdownCodeBlock };
@@ -1,10 +1,10 @@
1
1
  var e = {
2
- container: "_container_spugt_1",
3
- containerLight: "_containerLight_spugt_6",
4
- header: "_header_spugt_10",
5
- languageLabel: "_languageLabel_spugt_15",
6
- copiedIcon: "_copiedIcon_spugt_19",
7
- scrollContainer: "_scrollContainer_spugt_23"
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"
8
8
  };
9
9
  //#endregion
10
10
  export { e as default };
@@ -1,22 +1,28 @@
1
1
  import { MarkdownRenderer as e } from "./MarkdownRenderer.js";
2
2
  import { DEFAULT_MARKDOWN_CLASS_NAMES as t } from "./markdown-class-names.js";
3
- import { memo as n } from "react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import { PlainTextRenderer as n } from "./PlainTextRenderer.js";
4
+ import { memo as r } from "react";
5
+ import { jsx as i } from "react/jsx-runtime";
5
6
  //#region src/components/MarkdownRenderer/MDMessageViewer.tsx
6
- var i = n(({ content: n, isStreaming: i, thinkingLabel: a, components: o, urlTransform: s, codeBlockCopyLabel: c, codeBlockCopiedLabel: l, codeBlockTheme: u, tableActionLabels: d, tableDownloadFilename: f, tableOnOpenInCanvas: p, tableScrollRegionAriaLabel: m, classNames: h = t }) => /* @__PURE__ */ r(e, {
7
- content: n,
8
- isStreaming: i,
9
- thinkingLabel: a,
10
- components: o,
11
- urlTransform: s,
12
- codeBlockCopyLabel: c,
13
- codeBlockCopiedLabel: l,
14
- codeBlockTheme: u,
15
- tableActionLabels: d,
16
- tableDownloadFilename: f,
17
- tableOnOpenInCanvas: p,
18
- tableScrollRegionAriaLabel: m,
19
- classNames: h
7
+ var a = r(({ content: r, isPlainText: a, isStreaming: o, thinkingLabel: s, components: c, urlTransform: l, codeBlockCopyLabel: u, codeBlockCopiedLabel: d, codeBlockTheme: f, tableActionLabels: p, tableDownloadFilename: m, tableOnOpenInCanvas: h, tableScrollRegionAriaLabel: g, classNames: _ = t }) => a ? /* @__PURE__ */ i(n, {
8
+ content: r,
9
+ isStreaming: o,
10
+ thinkingLabel: s,
11
+ classNames: _
12
+ }) : /* @__PURE__ */ i(e, {
13
+ content: r,
14
+ isStreaming: o,
15
+ thinkingLabel: s,
16
+ components: c,
17
+ urlTransform: l,
18
+ codeBlockCopyLabel: u,
19
+ codeBlockCopiedLabel: d,
20
+ codeBlockTheme: f,
21
+ tableActionLabels: p,
22
+ tableDownloadFilename: m,
23
+ tableOnOpenInCanvas: h,
24
+ tableScrollRegionAriaLabel: g,
25
+ classNames: _
20
26
  }));
21
27
  //#endregion
22
- export { i as MDMessageViewer };
28
+ export { a as MDMessageViewer };