@epam/ai-dial-attachment-canvas 1.3.0-dev.112 → 1.3.0-dev.118

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.
@@ -11,6 +11,8 @@ export interface AttachmentCanvasContainerProps {
11
11
  isMobile?: boolean;
12
12
  /** Initial panel width in pixels. When omitted, SidebarPanel uses its own default. */
13
13
  defaultWidth?: number;
14
+ /** Minimum panel width in pixels (desktop resize). Defaults to the panel's own minimum (600). */
15
+ minWidth?: number;
14
16
  /** Maximum panel width in pixels. Constrains drag-to-resize so the chat area is never fully hidden. */
15
17
  maxWidth?: number;
16
18
  /** Syntax highlight color theme forwarded to MarkdownRenderer code blocks. */
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentCanvasContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasContainer/AttachmentCanvasContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAqB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAKxC,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6FAA6F;IAC7F,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iNAAiN;IACjN,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CA8JtE,CAAC"}
1
+ {"version":3,"file":"AttachmentCanvasContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvasContainer/AttachmentCanvasContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAqB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAKxC,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6FAA6F;IAC7F,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iNAAiN;IACjN,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAgKtE,CAAC"}
package/index.js CHANGED
@@ -8,8 +8,8 @@ import { createContext as M, lazy as N, memo as P, useCallback as F, useContext
8
8
  import { JsonView as se, defaultStyles as ce } from "react-json-view-lite";
9
9
  import { Fragment as le, jsx as B, jsxs as V } from "react/jsx-runtime";
10
10
  import { AppBridge as H, AppFrame as ue } from "@mcp-ui/client";
11
- import { McpUiHostContextChangedNotificationSchema as U } from "@modelcontextprotocol/ext-apps/app-bridge";
12
- import { VisualizerConnector as W, VisualizerConnectorEvents as de, VisualizerConnectorRequests as fe } from "@epam/ai-dial-visualizer-connector";
11
+ import { McpUiHostContextChangedNotificationSchema as de } from "@modelcontextprotocol/ext-apps/app-bridge";
12
+ import { VisualizerConnector as U, VisualizerConnectorEvents as W, VisualizerConnectorRequests as fe } from "@epam/ai-dial-visualizer-connector";
13
13
  //#region src/constants/public-class-names.ts
14
14
  var pe = { panel: "dial-attachment-canvas-panel" }, G = {
15
15
  container: "_container_1nhig_1",
@@ -197,7 +197,7 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
197
197
  }, e.onrequestdisplaymode = async ({ mode: e }) => {
198
198
  let t = r.current.onRequestDisplayMode, n = r.current.hostContext?.displayMode ?? "inline";
199
199
  return { mode: t?.(e) ?? n };
200
- }, e.oncalltool = (e) => r.current.onToolCall(e.name, e.arguments), e.setNotificationHandler(U, ({ params: e }) => {
200
+ }, e.oncalltool = (e) => r.current.onToolCall(e.name, e.arguments), e.setNotificationHandler(de, ({ params: e }) => {
201
201
  let n = t.current?.querySelector("iframe");
202
202
  n != null && Se(n, e.containerDimensions, r.current.hostContext?.displayMode === "fullscreen");
203
203
  }), a(e);
@@ -594,11 +594,11 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
594
594
  let e = s.current;
595
595
  if (!e) return;
596
596
  l("loading");
597
- let t = new W(e, {
597
+ let t = new U(e, {
598
598
  domain: u,
599
599
  visualizerName: d,
600
600
  requestTimeout: f
601
- }), n = !0, r = t.subscribe(`${d}/${de.SendMessage}`, (e) => {
601
+ }), n = !0, r = t.subscribe(`${d}/${W.SendMessage}`, (e) => {
602
602
  let t = Ne(e);
603
603
  t != null && h.current?.(t);
604
604
  });
@@ -710,7 +710,7 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
710
710
  i.PlainText,
711
711
  i.Code,
712
712
  i.Ooxml
713
- ]), ze = P(({ content: e, isLoading: t = !1, fileName: r, isHtmlSourceView: a = !1, labels: { unsupportedLabel: o = "Preview is not supported for this file", loadErrorLabel: c = "Failed to load file", forbiddenErrorLabel: l = "You don't have permission to access this file", visualizerErrorLabel: d, htmlFrameBlockedLabel: f = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: h = "Open in new tab", pdfThumbnailsLabel: g, pdfShowThumbnailsLabel: v, pdfHideThumbnailsLabel: y, pdfPageNumberLabel: b, pdfContentLoadingLabel: x, pdfContentErrorLabel: S, pdfContentRetryLabel: w, xlsxFormulaLabel: T = "Formula", codeContentLoadingLabel: E, codeContentErrorLabel: k, codeContentRetryLabel: A, tableCopyLabel: ee, tableCopiedLabel: te, tableDownloadCsvLabel: ne, codeBlockCopyLabel: j, codeBlockCopiedLabel: ie, codeBlockDownloadLabel: ae, tableScrollRegionAriaLabel: M, mathScrollRegionAriaLabel: N, ooxmlHighlightsLabel: P, ooxmlHighlightNavigatedLabel: oe } = {}, styles: le, codeBlockTheme: H, tableDownloadFilename: ue, loadPdf: U, hidePdfToolbar: W = !1, configurePdfWorker: de, onAppInfo: fe, onVisualizerSendMessage: pe }) => {
713
+ ]), ze = P(({ content: e, isLoading: t = !1, fileName: r, isHtmlSourceView: a = !1, labels: { unsupportedLabel: o = "Preview is not supported for this file", loadErrorLabel: c = "Failed to load file", forbiddenErrorLabel: l = "You don't have permission to access this file", visualizerErrorLabel: d, htmlFrameBlockedLabel: f = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: h = "Open in new tab", pdfThumbnailsLabel: g, pdfShowThumbnailsLabel: v, pdfHideThumbnailsLabel: y, pdfPageNumberLabel: b, pdfContentLoadingLabel: x, pdfContentErrorLabel: S, pdfContentRetryLabel: w, xlsxFormulaLabel: T = "Formula", codeContentLoadingLabel: E, codeContentErrorLabel: k, codeContentRetryLabel: A, tableCopyLabel: ee, tableCopiedLabel: te, tableDownloadCsvLabel: ne, codeBlockCopyLabel: j, codeBlockCopiedLabel: ie, codeBlockDownloadLabel: ae, tableScrollRegionAriaLabel: M, mathScrollRegionAriaLabel: N, ooxmlHighlightsLabel: P, ooxmlHighlightNavigatedLabel: oe } = {}, styles: le, codeBlockTheme: H, tableDownloadFilename: ue, loadPdf: de, hidePdfToolbar: U = !1, configurePdfWorker: W, onAppInfo: fe, onVisualizerSendMessage: pe }) => {
714
714
  let { colors: G, typography: K, bodyClassName: me, cssVars: ge } = le ?? {}, [_e, ye] = z(0), be = L(Ie, [_e]), xe = F(() => {
715
715
  ye((e) => e + 1);
716
716
  }, []), Se = R(void 0), [Ce, q] = z(0), J = F((e) => {
@@ -889,10 +889,10 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
889
889
  highlights: e.highlights ?? [],
890
890
  selectedHighlightId: e.selectedHighlightId,
891
891
  selectedPageNumber: e.page,
892
- loadPdf: U,
892
+ loadPdf: de,
893
893
  onLoadError: J,
894
- hideHeader: W,
895
- configurePdfWorker: de,
894
+ hideHeader: U,
895
+ configurePdfWorker: W,
896
896
  labels: {
897
897
  thumbnailsLabel: g,
898
898
  showThumbnailsLabel: v,
@@ -958,9 +958,9 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
958
958
  h,
959
959
  a,
960
960
  ue,
961
+ de,
961
962
  U,
962
963
  W,
963
- de,
964
964
  fe,
965
965
  g,
966
966
  v,
@@ -997,7 +997,7 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
997
997
  }), Be = {
998
998
  mcpAppDivider: "_mcpAppDivider_1jh5p_1",
999
999
  mcpAppVersion: "_mcpAppVersion_1jh5p_5"
1000
- }, Ve = 2e3, He = P(({ isOpen: e, isLoading: t = !1, onClose: n, content: r, fileName: a, leftActions: s, labels: { ariaLabel: c, closeLabel: l = "Close", resizeLabel: u = "Resize panel", downloadLabel: d = "Download", copyTextLabel: f = "Copy text", copiedTextLabel: p = "Copied!", copyMarkdownLabel: h = "Copy as Markdown", copiedMarkdownLabel: g = "Copied!", copyJsonLabel: v = "Copy as JSON", copiedJsonLabel: y = "Copied!", visualizerErrorLabel: w, unsupportedLabel: E = "Preview is not supported for this file", loadErrorLabel: D = "Failed to load file", forbiddenErrorLabel: O = "You don't have permission to access this file", htmlFrameBlockedLabel: k = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: re = "Open in new tab", htmlViewSourceLabel: M = "View source", htmlViewRenderedLabel: N = "View rendered", mcpAppReloadLabel: P = "Reload", pdfThumbnailsLabel: oe, pdfShowThumbnailsLabel: se, pdfHideThumbnailsLabel: ce, pdfPageNumberLabel: H, pdfContentLoadingLabel: ue, pdfContentErrorLabel: U, pdfContentRetryLabel: W, xlsxFormulaLabel: de, codeContentLoadingLabel: fe, codeContentErrorLabel: G, codeContentRetryLabel: K, tableCopyLabel: me, tableCopiedLabel: he, tableDownloadCsvLabel: ge, codeBlockCopyLabel: _e, codeBlockCopiedLabel: ve, codeBlockDownloadLabel: ye, tableScrollRegionAriaLabel: be, mathScrollRegionAriaLabel: xe, ooxmlHighlightsLabel: Se, ooxmlHighlightNavigatedLabel: Ce }, onDownload: q, onCopyText: we, onCopyMarkdown: J, onCopyJson: Y, tableDownloadFilename: Te, isMobile: Ee = !1, defaultWidth: De, minWidth: Oe = 600, maxWidth: ke = 1500, onResizeStop: Ae, styles: je, codeBlockTheme: Me, loadPdf: Ne, configurePdfWorker: Pe, onVisualizerSendMessage: Fe }) => {
1000
+ }, Ve = 2e3, He = P(({ isOpen: e, isLoading: t = !1, onClose: n, content: r, fileName: a, leftActions: s, labels: { ariaLabel: c, closeLabel: l = "Close", resizeLabel: u = "Resize panel", downloadLabel: d = "Download", copyTextLabel: f = "Copy text", copiedTextLabel: p = "Copied!", copyMarkdownLabel: h = "Copy as Markdown", copiedMarkdownLabel: g = "Copied!", copyJsonLabel: v = "Copy as JSON", copiedJsonLabel: y = "Copied!", visualizerErrorLabel: w, unsupportedLabel: E = "Preview is not supported for this file", loadErrorLabel: D = "Failed to load file", forbiddenErrorLabel: O = "You don't have permission to access this file", htmlFrameBlockedLabel: k = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: re = "Open in new tab", htmlViewSourceLabel: M = "View source", htmlViewRenderedLabel: N = "View rendered", mcpAppReloadLabel: P = "Reload", pdfThumbnailsLabel: oe, pdfShowThumbnailsLabel: se, pdfHideThumbnailsLabel: ce, pdfPageNumberLabel: H, pdfContentLoadingLabel: ue, pdfContentErrorLabel: de, pdfContentRetryLabel: U, xlsxFormulaLabel: W, codeContentLoadingLabel: fe, codeContentErrorLabel: G, codeContentRetryLabel: K, tableCopyLabel: me, tableCopiedLabel: he, tableDownloadCsvLabel: ge, codeBlockCopyLabel: _e, codeBlockCopiedLabel: ve, codeBlockDownloadLabel: ye, tableScrollRegionAriaLabel: be, mathScrollRegionAriaLabel: xe, ooxmlHighlightsLabel: Se, ooxmlHighlightNavigatedLabel: Ce }, onDownload: q, onCopyText: we, onCopyMarkdown: J, onCopyJson: Y, tableDownloadFilename: Te, isMobile: Ee = !1, defaultWidth: De, minWidth: Oe = 600, maxWidth: ke = 1500, onResizeStop: Ae, styles: je, codeBlockTheme: Me, loadPdf: Ne, configurePdfWorker: Pe, onVisualizerSendMessage: Fe }) => {
1001
1001
  let [X, Ie] = z(!1), [Le, Re] = z(!1), [He, Ue] = z(!1), [Z, We] = z(!1), [Ge, Ke] = z(void 0), qe = R(null), Q = R(null), Je = R(null), Ye = F(() => {
1002
1002
  we?.(), qe.current != null && clearTimeout(qe.current), Ie(!0), qe.current = setTimeout(() => Ie(!1), Ve);
1003
1003
  }, [we]), Xe = F(() => {
@@ -1134,9 +1134,9 @@ var pe = { panel: "dial-attachment-canvas-panel" }, G = {
1134
1134
  pdfHideThumbnailsLabel: ce,
1135
1135
  pdfPageNumberLabel: H,
1136
1136
  pdfContentLoadingLabel: ue,
1137
- pdfContentErrorLabel: U,
1138
- pdfContentRetryLabel: W,
1139
- xlsxFormulaLabel: de,
1137
+ pdfContentErrorLabel: de,
1138
+ pdfContentRetryLabel: U,
1139
+ xlsxFormulaLabel: W,
1140
1140
  codeContentLoadingLabel: fe,
1141
1141
  codeContentErrorLabel: G,
1142
1142
  codeContentRetryLabel: K,
@@ -1301,74 +1301,75 @@ var ot = ({ children: e }) => {
1301
1301
  let e = oe(at);
1302
1302
  if (!e) throw Error("useAttachmentCanvas must be used within an AttachmentCanvasProvider");
1303
1303
  return e;
1304
- }, ct = P(({ labels: e, leftActions: t, isMobile: n = !1, defaultWidth: r, maxWidth: o, codeBlockTheme: s, tableDownloadFilename: c, loadPdf: l, configurePdfWorker: u, onVisualizerSendMessage: d }) => {
1305
- let { ariaLabel: f = "Attachment preview", closeLabel: p = "Close", downloadLabel: m = "Download", unsupportedLabel: g = "Preview is not supported for this file", loadErrorLabel: _ = "Failed to load file", forbiddenErrorLabel: v = "You don't have permission to access this file", copyTextLabel: y, copiedTextLabel: b, copyMarkdownLabel: x, copiedMarkdownLabel: S, copyJsonLabel: C, copiedJsonLabel: w, htmlFrameBlockedLabel: T, htmlOpenInNewTabLabel: E, htmlViewSourceLabel: D, htmlViewRenderedLabel: O, pdfThumbnailsLabel: k, pdfShowThumbnailsLabel: A, pdfHideThumbnailsLabel: ee, pdfPageNumberLabel: te, pdfContentLoadingLabel: ne, pdfContentErrorLabel: j, pdfContentRetryLabel: re, xlsxFormulaLabel: ie, codeContentLoadingLabel: ae, codeContentErrorLabel: M, codeContentRetryLabel: N, tableCopyLabel: P, tableCopiedLabel: oe, tableDownloadCsvLabel: I, codeBlockCopyLabel: L, codeBlockCopiedLabel: R, codeBlockDownloadLabel: z, tableScrollRegionAriaLabel: se, mathScrollRegionAriaLabel: ce, ooxmlHighlightsLabel: le, ooxmlHighlightNavigatedLabel: V } = e ?? {}, { isOpen: H, isLoading: ue, content: U, fileName: W, closeCanvas: de } = st(), fe = F(() => {
1304
+ }, ct = P(({ labels: e, leftActions: t, isMobile: n = !1, defaultWidth: r, minWidth: o, maxWidth: s, codeBlockTheme: c, tableDownloadFilename: l, loadPdf: u, configurePdfWorker: d, onVisualizerSendMessage: f }) => {
1305
+ let { ariaLabel: p = "Attachment preview", closeLabel: m = "Close", downloadLabel: g = "Download", unsupportedLabel: _ = "Preview is not supported for this file", loadErrorLabel: v = "Failed to load file", forbiddenErrorLabel: y = "You don't have permission to access this file", copyTextLabel: b, copiedTextLabel: x, copyMarkdownLabel: S, copiedMarkdownLabel: C, copyJsonLabel: w, copiedJsonLabel: T, htmlFrameBlockedLabel: E, htmlOpenInNewTabLabel: D, htmlViewSourceLabel: O, htmlViewRenderedLabel: k, pdfThumbnailsLabel: A, pdfShowThumbnailsLabel: ee, pdfHideThumbnailsLabel: te, pdfPageNumberLabel: ne, pdfContentLoadingLabel: j, pdfContentErrorLabel: re, pdfContentRetryLabel: ie, xlsxFormulaLabel: ae, codeContentLoadingLabel: M, codeContentErrorLabel: N, codeContentRetryLabel: P, tableCopyLabel: oe, tableCopiedLabel: I, tableDownloadCsvLabel: L, codeBlockCopyLabel: R, codeBlockCopiedLabel: z, codeBlockDownloadLabel: se, tableScrollRegionAriaLabel: ce, mathScrollRegionAriaLabel: le, ooxmlHighlightsLabel: V, ooxmlHighlightNavigatedLabel: H } = e ?? {}, { isOpen: ue, isLoading: de, content: U, fileName: W, closeCanvas: fe } = st(), pe = F(() => {
1306
1306
  a(U, W);
1307
- }, [U, W]), pe = F(() => {
1307
+ }, [U, W]), G = F(() => {
1308
1308
  (U.type === i.PlainText || U.type === i.Code) && h(U.text);
1309
- }, [U]), G = F(() => {
1310
- U.type === i.Markdown && h(U.text);
1311
1309
  }, [U]), K = F(() => {
1310
+ U.type === i.Markdown && h(U.text);
1311
+ }, [U]), me = F(() => {
1312
1312
  U.type === i.Json && h(JSON.stringify(U.value, null, 2));
1313
1313
  }, [U]);
1314
1314
  return /* @__PURE__ */ B(He, {
1315
- isOpen: H,
1316
- isLoading: ue,
1317
- onClose: de,
1315
+ isOpen: ue,
1316
+ isLoading: de,
1317
+ onClose: fe,
1318
1318
  content: U,
1319
1319
  fileName: W,
1320
1320
  leftActions: t,
1321
1321
  labels: {
1322
- ariaLabel: f,
1323
- closeLabel: p,
1324
- downloadLabel: m,
1325
- copyTextLabel: y,
1326
- copiedTextLabel: b,
1327
- copyMarkdownLabel: x,
1328
- copiedMarkdownLabel: S,
1329
- copyJsonLabel: C,
1330
- copiedJsonLabel: w,
1331
- unsupportedLabel: g,
1332
- loadErrorLabel: _,
1333
- forbiddenErrorLabel: v,
1334
- htmlFrameBlockedLabel: T,
1335
- htmlOpenInNewTabLabel: E,
1336
- htmlViewSourceLabel: D,
1337
- htmlViewRenderedLabel: O,
1338
- pdfThumbnailsLabel: k,
1339
- pdfShowThumbnailsLabel: A,
1340
- pdfHideThumbnailsLabel: ee,
1341
- pdfPageNumberLabel: te,
1342
- pdfContentLoadingLabel: ne,
1343
- pdfContentErrorLabel: j,
1344
- pdfContentRetryLabel: re,
1345
- xlsxFormulaLabel: ie,
1346
- codeContentLoadingLabel: ae,
1347
- codeContentErrorLabel: M,
1348
- codeContentRetryLabel: N,
1349
- tableCopyLabel: P,
1350
- tableCopiedLabel: oe,
1351
- tableDownloadCsvLabel: I,
1352
- codeBlockCopyLabel: L,
1353
- codeBlockCopiedLabel: R,
1354
- codeBlockDownloadLabel: z,
1355
- tableScrollRegionAriaLabel: se,
1356
- mathScrollRegionAriaLabel: ce,
1357
- ooxmlHighlightsLabel: le,
1358
- ooxmlHighlightNavigatedLabel: V
1322
+ ariaLabel: p,
1323
+ closeLabel: m,
1324
+ downloadLabel: g,
1325
+ copyTextLabel: b,
1326
+ copiedTextLabel: x,
1327
+ copyMarkdownLabel: S,
1328
+ copiedMarkdownLabel: C,
1329
+ copyJsonLabel: w,
1330
+ copiedJsonLabel: T,
1331
+ unsupportedLabel: _,
1332
+ loadErrorLabel: v,
1333
+ forbiddenErrorLabel: y,
1334
+ htmlFrameBlockedLabel: E,
1335
+ htmlOpenInNewTabLabel: D,
1336
+ htmlViewSourceLabel: O,
1337
+ htmlViewRenderedLabel: k,
1338
+ pdfThumbnailsLabel: A,
1339
+ pdfShowThumbnailsLabel: ee,
1340
+ pdfHideThumbnailsLabel: te,
1341
+ pdfPageNumberLabel: ne,
1342
+ pdfContentLoadingLabel: j,
1343
+ pdfContentErrorLabel: re,
1344
+ pdfContentRetryLabel: ie,
1345
+ xlsxFormulaLabel: ae,
1346
+ codeContentLoadingLabel: M,
1347
+ codeContentErrorLabel: N,
1348
+ codeContentRetryLabel: P,
1349
+ tableCopyLabel: oe,
1350
+ tableCopiedLabel: I,
1351
+ tableDownloadCsvLabel: L,
1352
+ codeBlockCopyLabel: R,
1353
+ codeBlockCopiedLabel: z,
1354
+ codeBlockDownloadLabel: se,
1355
+ tableScrollRegionAriaLabel: ce,
1356
+ mathScrollRegionAriaLabel: le,
1357
+ ooxmlHighlightsLabel: V,
1358
+ ooxmlHighlightNavigatedLabel: H
1359
1359
  },
1360
- onDownload: fe,
1361
- onCopyText: U.type === i.PlainText || U.type === i.Code ? pe : void 0,
1362
- onCopyMarkdown: U.type === i.Markdown ? G : void 0,
1363
- onCopyJson: U.type === i.Json ? K : void 0,
1364
- tableDownloadFilename: c,
1360
+ onDownload: pe,
1361
+ onCopyText: U.type === i.PlainText || U.type === i.Code ? G : void 0,
1362
+ onCopyMarkdown: U.type === i.Markdown ? K : void 0,
1363
+ onCopyJson: U.type === i.Json ? me : void 0,
1364
+ tableDownloadFilename: l,
1365
1365
  isMobile: n,
1366
1366
  defaultWidth: r,
1367
- maxWidth: o,
1368
- codeBlockTheme: s,
1369
- configurePdfWorker: u,
1370
- loadPdf: l,
1371
- onVisualizerSendMessage: d
1367
+ minWidth: o,
1368
+ maxWidth: s,
1369
+ codeBlockTheme: c,
1370
+ configurePdfWorker: d,
1371
+ loadPdf: u,
1372
+ onVisualizerSendMessage: f
1372
1373
  });
1373
1374
  }), lt = {
1374
1375
  frame: "_frame_1ys0b_1",
@@ -466,7 +466,7 @@ export interface AttachmentCanvasProps {
466
466
  isMobile?: boolean;
467
467
  /** Initial panel width in pixels (when resizable). Defaults to `min(maxWidth, 2/3 of viewport width)`. */
468
468
  defaultWidth?: number;
469
- /** Minimum panel width in pixels (when resizable). Defaults to `320`. */
469
+ /** Minimum panel width in pixels (when resizable). Defaults to `600`. */
470
470
  minWidth?: number;
471
471
  /** Maximum panel width in pixels (when resizable). Defaults to `1500`. */
472
472
  maxWidth?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-attachment-canvas",
3
3
  "description": "Canvas viewer for rendering attachment content — images, PDFs, Office documents, CSV, JSON, markdown, and plain text",
4
- "version": "1.3.0-dev.112",
4
+ "version": "1.3.0-dev.118",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -22,16 +22,16 @@
22
22
  "react-json-view-lite": "^2.5.0",
23
23
  "react-syntax-highlighter": "^16.1.1",
24
24
  "@epam/ai-dial-react-pdf-highlighter": "0.3.0-dev.6",
25
- "@epam/ai-dial-visualizer-connector": "1.3.0-dev.112",
25
+ "@epam/ai-dial-visualizer-connector": "1.3.0-dev.118",
26
26
  "@epam/pdf-highlighter-kit": "^0.0.19",
27
27
  "@mcp-ui/client": "^7.1.1",
28
28
  "@modelcontextprotocol/sdk": "^1.32.1",
29
29
  "@modelcontextprotocol/ext-apps": "1.7.5",
30
30
  "pdfjs-dist": "^5.4.149",
31
- "@epam/ai-dial-sidebar": "1.3.0-dev.112"
31
+ "@epam/ai-dial-sidebar": "1.3.0-dev.118"
32
32
  },
33
33
  "peerDependencies": {
34
- "@epam/ai-dial-chat-shared": "1.3.0-dev.112",
34
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.118",
35
35
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.20",
36
36
  "react": "^19.2.8"
37
37
  },