@epam/ai-dial-attachment-canvas 1.1.4 → 1.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvas/AttachmentCanvas.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAkX5E,wGAAwG;AACxG,eAAO,MAAM,gBAAgB,6DAA6B,CAAC"}
1
+ {"version":3,"file":"AttachmentCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCanvas/AttachmentCanvas.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAoX5E,wGAAwG;AACxG,eAAO,MAAM,gBAAgB,6DAA6B,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { CodeBlockTheme } from '@epam/ai-dial-chat-shared';
2
- import { FC } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  import { AttachmentCanvasLabels } from '../../models/attachment-canvas';
4
4
  /** Props for the AttachmentCanvasContainer component. */
5
5
  export interface AttachmentCanvasContainerProps {
6
6
  /** User-visible strings. All fields have English defaults. */
7
7
  labels?: AttachmentCanvasLabels;
8
+ /** Host-supplied controls rendered in the header before the title. */
9
+ leftActions?: ReactNode;
8
10
  /** Whether the viewport is in mobile breakpoint — disables drag-to-resize. Defaults to `false`. */
9
11
  isMobile?: boolean;
10
12
  /** Initial panel width in pixels. When omitted, SidebarPanel uses its own default. */
@@ -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,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAKxC,yDAAyD;AACzD,MAAM,WAAW,8BAA8B;IAC7C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,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;CACjD;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAoJtE,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,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;CACjD;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAsJtE,CAAC"}
package/index.js CHANGED
@@ -6,8 +6,8 @@ import { DIAL_ICON_SIZE as x, DIAL_KIT_ICON_STROKE as S, ElementSize as C, Ghost
6
6
  import { IconAlertTriangle as D, IconArrowsMaximize as O, IconCheck as k, IconCode as ee, IconCopy as te, IconDownload as ne, IconEye as re, IconLock as ie, IconMarkdown as ae, IconRefresh as oe } from "@tabler/icons-react";
7
7
  import { createContext as A, lazy as j, memo as M, useCallback as N, useContext as P, useEffect as F, useMemo as I, useRef as L, useState as R } from "react";
8
8
  import { JsonView as se, defaultStyles as ce } from "react-json-view-lite";
9
- import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
10
- import { AppBridge as le, AppFrame as H } from "@mcp-ui/client";
9
+ import { Fragment as le, jsx as z, jsxs as B } from "react/jsx-runtime";
10
+ import { AppBridge as V, AppFrame as H } from "@mcp-ui/client";
11
11
  import { McpUiHostContextChangedNotificationSchema as U } from "@modelcontextprotocol/ext-apps/app-bridge";
12
12
  import { VisualizerConnectorRequests as ue } from "@epam/ai-dial-shared";
13
13
  import { VisualizerConnector as de } from "@epam/ai-dial-visualizer-connector";
@@ -23,20 +23,20 @@ var W = {
23
23
  }), me = M(({ content: e, codeBlockTheme: t = l.Light, labels: n }) => {
24
24
  let { text: r, language: i } = e, a = i == null || i === "plaintext", o = fe[t], c = t === l.Light, [u, d] = R(0), f = I(pe, [u]), p = N(() => {
25
25
  d((e) => e + 1);
26
- }, []), m = /* @__PURE__ */ B("pre", {
26
+ }, []), m = /* @__PURE__ */ z("pre", {
27
27
  className: "whitespace-pre-wrap break-words p-4",
28
28
  children: r
29
29
  });
30
- return /* @__PURE__ */ B("div", {
30
+ return /* @__PURE__ */ z("div", {
31
31
  dir: "ltr",
32
32
  className: g("h-full overflow-auto", W.container, c && W.containerLight),
33
- children: a ? m : /* @__PURE__ */ B(s, {
33
+ children: a ? m : /* @__PURE__ */ z(s, {
34
34
  retryKey: u,
35
35
  onRetry: p,
36
36
  pendingContent: m,
37
37
  errorContent: m,
38
38
  labels: n,
39
- children: /* @__PURE__ */ B(f, {
39
+ children: /* @__PURE__ */ z(f, {
40
40
  language: i,
41
41
  style: o,
42
42
  customStyle: {
@@ -67,7 +67,7 @@ var W = {
67
67
  }, [e.srcdoc]), h = N(() => {
68
68
  u(!1), f(!0);
69
69
  }, []);
70
- if (n && e.srcdoc != null) return /* @__PURE__ */ B(me, {
70
+ if (n && e.srcdoc != null) return /* @__PURE__ */ z(me, {
71
71
  content: {
72
72
  type: i.Code,
73
73
  text: e.srcdoc,
@@ -75,12 +75,12 @@ var W = {
75
75
  },
76
76
  codeBlockTheme: a
77
77
  });
78
- if (d) return /* @__PURE__ */ V("div", {
78
+ if (d) return /* @__PURE__ */ B("div", {
79
79
  className: "flex h-full flex-col items-center justify-center gap-3 p-4",
80
- children: [/* @__PURE__ */ B("p", {
80
+ children: [/* @__PURE__ */ z("p", {
81
81
  className: "text-center",
82
82
  children: s
83
- }), e.url != null && /* @__PURE__ */ B(T, {
83
+ }), e.url != null && /* @__PURE__ */ z(T, {
84
84
  href: e.url,
85
85
  target: "_blank",
86
86
  label: c,
@@ -89,12 +89,12 @@ var W = {
89
89
  })]
90
90
  });
91
91
  let _ = e.srcdoc != null, v = _ ? void 0 : e.url, y = _ ? e.srcdoc : void 0;
92
- return /* @__PURE__ */ V("div", {
92
+ return /* @__PURE__ */ B("div", {
93
93
  className: "relative h-full",
94
- children: [l && /* @__PURE__ */ B("div", {
94
+ children: [l && /* @__PURE__ */ z("div", {
95
95
  className: "absolute inset-0 flex items-center justify-center",
96
- children: /* @__PURE__ */ B(E, {})
97
- }), /* @__PURE__ */ B("iframe", {
96
+ children: /* @__PURE__ */ z(E, {})
97
+ }), /* @__PURE__ */ z("iframe", {
98
98
  ref: p,
99
99
  title: r,
100
100
  src: v,
@@ -138,7 +138,7 @@ var W = {
138
138
  return F(() => {
139
139
  let e = null;
140
140
  try {
141
- e = new le(null, G, _e, { hostContext: r.current.hostContext }), e.onopenlink = async ({ url: e }) => {
141
+ e = new V(null, G, _e, { hostContext: r.current.hostContext }), e.onopenlink = async ({ url: e }) => {
142
142
  let t = r.current.onOpenLink;
143
143
  return (t == null ? ve(e) : t(e)) === !1 ? { isError: !0 } : {};
144
144
  }, e.onrequestdisplaymode = async ({ mode: e }) => {
@@ -184,11 +184,11 @@ var W = {
184
184
  ...c,
185
185
  containerDimensions: f
186
186
  }, [c, f])), _ = h || n === "error";
187
- return /* @__PURE__ */ V("div", {
187
+ return /* @__PURE__ */ B("div", {
188
188
  ref: d,
189
189
  className: g("relative h-full w-full", u && K.fullscreenFrame),
190
190
  children: [
191
- m != null && /* @__PURE__ */ B(H, {
191
+ m != null && /* @__PURE__ */ z(H, {
192
192
  html: i,
193
193
  sandbox: l,
194
194
  appBridge: m,
@@ -198,18 +198,18 @@ var W = {
198
198
  onInitialized: () => r("ready"),
199
199
  onError: () => r("error")
200
200
  }),
201
- !_ && n === "loading" && /* @__PURE__ */ B("div", {
201
+ !_ && n === "loading" && /* @__PURE__ */ z("div", {
202
202
  className: g("absolute inset-0 flex flex-col items-center justify-center gap-2", K.loadingOverlay),
203
- children: /* @__PURE__ */ B(E, {})
203
+ children: /* @__PURE__ */ z(E, {})
204
204
  }),
205
- _ && /* @__PURE__ */ V("div", {
205
+ _ && /* @__PURE__ */ B("div", {
206
206
  className: "absolute inset-0 flex flex-col items-center justify-center gap-2",
207
- children: [/* @__PURE__ */ B(D, {
207
+ children: [/* @__PURE__ */ z(D, {
208
208
  size: 60,
209
209
  stroke: S,
210
210
  "aria-hidden": !0,
211
211
  className: K.errorIcon
212
- }), /* @__PURE__ */ B("p", {
212
+ }), /* @__PURE__ */ z("p", {
213
213
  role: "alert",
214
214
  className: g("text-center", K.statusLabel),
215
215
  children: t
@@ -429,18 +429,18 @@ var W = {
429
429
  })(), () => {
430
430
  r = !0;
431
431
  };
432
- }, [C, u]), /* @__PURE__ */ V("div", {
432
+ }, [C, u]), /* @__PURE__ */ B("div", {
433
433
  className: "relative flex h-full w-full min-w-0 flex-col overflow-hidden",
434
434
  children: [
435
- t.format === r.Xlsx && /* @__PURE__ */ V("div", {
435
+ t.format === r.Xlsx && /* @__PURE__ */ B("div", {
436
436
  role: "region",
437
437
  "aria-label": a,
438
438
  className: g("flex min-w-0 shrink-0 items-center gap-2 border-b px-3 py-2", q.formulaPanel),
439
- children: [/* @__PURE__ */ B("span", {
439
+ children: [/* @__PURE__ */ z("span", {
440
440
  "aria-hidden": "true",
441
441
  className: g("shrink-0", o),
442
442
  children: "fx"
443
- }), /* @__PURE__ */ B("code", {
443
+ }), /* @__PURE__ */ z("code", {
444
444
  dir: "ltr",
445
445
  tabIndex: 0,
446
446
  "aria-live": "polite",
@@ -448,19 +448,19 @@ var W = {
448
448
  children: m
449
449
  })]
450
450
  }),
451
- /* @__PURE__ */ V("div", {
451
+ /* @__PURE__ */ B("div", {
452
452
  className: "relative min-h-0 w-full flex-1",
453
- children: [/* @__PURE__ */ B("div", {
453
+ children: [/* @__PURE__ */ z("div", {
454
454
  ref: l,
455
455
  role: "document",
456
456
  "aria-label": n,
457
457
  "aria-busy": u,
458
458
  className: g("h-full w-full overflow-hidden", q.viewer)
459
- }), _.length > 0 && /* @__PURE__ */ B("div", {
459
+ }), _.length > 0 && /* @__PURE__ */ z("div", {
460
460
  role: "region",
461
461
  "aria-label": s,
462
462
  className: "pointer-events-none absolute inset-0 overflow-hidden",
463
- children: _.map((e, t) => /* @__PURE__ */ B("div", {
463
+ children: _.map((e, t) => /* @__PURE__ */ z("div", {
464
464
  "aria-hidden": "true",
465
465
  style: {
466
466
  left: `${e.left}px`,
@@ -474,24 +474,24 @@ var W = {
474
474
  }, `${e.highlightId}-${t}`))
475
475
  })]
476
476
  }),
477
- /* @__PURE__ */ B("div", {
477
+ /* @__PURE__ */ z("div", {
478
478
  role: "status",
479
479
  "aria-live": "polite",
480
480
  className: "sr-only",
481
481
  children: y ? c : ""
482
482
  }),
483
- (u || f) && /* @__PURE__ */ B("div", {
483
+ (u || f) && /* @__PURE__ */ z("div", {
484
484
  role: f ? "alert" : void 0,
485
485
  "aria-live": "polite",
486
486
  className: g("absolute inset-0 flex items-center justify-center", q.statusOverlay),
487
- children: u ? /* @__PURE__ */ B(E, { size: 48 }) : /* @__PURE__ */ V("div", {
487
+ children: u ? /* @__PURE__ */ z(E, { size: 48 }) : /* @__PURE__ */ B("div", {
488
488
  className: "flex flex-col items-center gap-2",
489
- children: [/* @__PURE__ */ B(D, {
489
+ children: [/* @__PURE__ */ z(D, {
490
490
  "aria-hidden": "true",
491
491
  size: 60,
492
492
  stroke: S,
493
493
  className: q.errorIcon
494
- }), /* @__PURE__ */ B("p", {
494
+ }), /* @__PURE__ */ z("p", {
495
495
  className: "text-center",
496
496
  children: i
497
497
  })]
@@ -550,7 +550,7 @@ var W = {
550
550
  u,
551
551
  l,
552
552
  d
553
- ]), /* @__PURE__ */ V("div", {
553
+ ]), /* @__PURE__ */ B("div", {
554
554
  className: "relative h-full w-full",
555
555
  style: m({
556
556
  "--vs-loading-bg": a?.loadingBackground,
@@ -558,25 +558,25 @@ var W = {
558
558
  "--vs-error-icon": a?.errorIcon
559
559
  }),
560
560
  children: [
561
- /* @__PURE__ */ B("div", {
561
+ /* @__PURE__ */ z("div", {
562
562
  ref: o,
563
563
  className: "h-full w-full"
564
564
  }),
565
- s === "loading" && /* @__PURE__ */ V("div", {
565
+ s === "loading" && /* @__PURE__ */ B("div", {
566
566
  className: g("absolute inset-0 flex flex-col items-center justify-center gap-2", De.loadingOverlay),
567
- children: [/* @__PURE__ */ B(E, {}), t && /* @__PURE__ */ B("p", {
567
+ children: [/* @__PURE__ */ z(E, {}), t && /* @__PURE__ */ z("p", {
568
568
  className: g("text-center", De.statusLabel),
569
569
  children: t
570
570
  })]
571
571
  }),
572
- s === "error" && /* @__PURE__ */ V("div", {
572
+ s === "error" && /* @__PURE__ */ B("div", {
573
573
  className: "absolute inset-0 flex flex-col items-center justify-center gap-2",
574
- children: [/* @__PURE__ */ B(D, {
574
+ children: [/* @__PURE__ */ z(D, {
575
575
  size: 60,
576
576
  stroke: S,
577
577
  "aria-hidden": !0,
578
578
  className: De.errorIcon
579
- }), /* @__PURE__ */ B("p", {
579
+ }), /* @__PURE__ */ z("p", {
580
580
  role: "alert",
581
581
  className: g("text-center", De.statusLabel),
582
582
  children: n
@@ -603,17 +603,17 @@ var W = {
603
603
  let [r, i] = R(!1);
604
604
  return F(() => {
605
605
  i(!1);
606
- }, [e]), r ? /* @__PURE__ */ V("div", {
606
+ }, [e]), r ? /* @__PURE__ */ B("div", {
607
607
  className: "flex flex-col items-center gap-2",
608
- children: [/* @__PURE__ */ B(D, {
608
+ children: [/* @__PURE__ */ z(D, {
609
609
  size: 60,
610
610
  stroke: S,
611
611
  className: J.errorIcon
612
- }), /* @__PURE__ */ B("p", {
612
+ }), /* @__PURE__ */ z("p", {
613
613
  className: g("text-center", J.statusLabel),
614
614
  children: n
615
615
  })]
616
- }) : /* @__PURE__ */ B("img", {
616
+ }) : /* @__PURE__ */ z("img", {
617
617
  src: e,
618
618
  alt: t ?? "",
619
619
  className: "max-h-full max-w-full object-contain",
@@ -623,7 +623,7 @@ var W = {
623
623
  i.PlainText,
624
624
  i.Code,
625
625
  i.Ooxml
626
- ]), Me = M(({ 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: _, pdfShowThumbnailsLabel: v, pdfHideThumbnailsLabel: y, pdfPageNumberLabel: b, pdfContentLoadingLabel: x, pdfContentErrorLabel: C, pdfContentRetryLabel: w, xlsxFormulaLabel: T = "Formula", codeContentLoadingLabel: O, codeContentErrorLabel: k, codeContentRetryLabel: ee, tableCopyCsvLabel: te, tableCopyTxtLabel: ne, tableCopyMarkdownLabel: re, tableCopiedLabel: ae, tableDownloadCsvLabel: oe, ooxmlHighlightsLabel: A, ooxmlHighlightNavigatedLabel: j } = {}, styles: M, codeBlockTheme: P, tableDownloadFilename: F, loadPdf: L, hidePdfToolbar: z = !1, configurePdfWorker: le }) => {
626
+ ]), Me = M(({ 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: _, pdfShowThumbnailsLabel: v, pdfHideThumbnailsLabel: y, pdfPageNumberLabel: b, pdfContentLoadingLabel: x, pdfContentErrorLabel: C, pdfContentRetryLabel: w, xlsxFormulaLabel: T = "Formula", codeContentLoadingLabel: O, codeContentErrorLabel: k, codeContentRetryLabel: ee, tableCopyCsvLabel: te, tableCopyTxtLabel: ne, tableCopyMarkdownLabel: re, tableCopiedLabel: ae, tableDownloadCsvLabel: oe, ooxmlHighlightsLabel: A, ooxmlHighlightNavigatedLabel: j } = {}, styles: M, codeBlockTheme: P, tableDownloadFilename: F, loadPdf: L, hidePdfToolbar: le = !1, configurePdfWorker: V }) => {
627
627
  let { colors: H, typography: U, bodyClassName: ue, cssVars: de } = M ?? {}, [W, fe] = R(0), pe = I(ke, [W]), he = N(() => {
628
628
  fe((e) => e + 1);
629
629
  }, []), G = U?.fontClassName != null, _e = I(() => ({
@@ -678,33 +678,33 @@ var W = {
678
678
  }
679
679
  }, [e.type]), ye = I(() => {
680
680
  switch (e.type) {
681
- case i.PlainText: return /* @__PURE__ */ B("pre", {
681
+ case i.PlainText: return /* @__PURE__ */ z("pre", {
682
682
  className: g("whitespace-pre-wrap break-words", J.body, U?.fontClassName),
683
683
  children: e.text
684
684
  });
685
- case i.Image: return /* @__PURE__ */ B(Ae, {
685
+ case i.Image: return /* @__PURE__ */ z(Ae, {
686
686
  url: e.url,
687
687
  fileName: r,
688
688
  loadErrorLabel: c
689
689
  });
690
- case i.Audio: return /* @__PURE__ */ B("audio", {
690
+ case i.Audio: return /* @__PURE__ */ z("audio", {
691
691
  controls: !0,
692
692
  src: e.url,
693
693
  "aria-label": r ?? "Audio attachment",
694
694
  className: "w-full max-w-sm",
695
695
  preload: "metadata",
696
- children: e.mimeType && /* @__PURE__ */ B("source", {
696
+ children: e.mimeType && /* @__PURE__ */ z("source", {
697
697
  src: e.url,
698
698
  type: e.mimeType
699
699
  })
700
700
  });
701
- case i.Markdown: return /* @__PURE__ */ B(p, {
701
+ case i.Markdown: return /* @__PURE__ */ z(p, {
702
702
  content: e.text,
703
703
  isStreaming: !1,
704
704
  codeBlockTheme: P,
705
705
  classNames: u
706
706
  });
707
- case i.MarkdownTable: return /* @__PURE__ */ B(p, {
707
+ case i.MarkdownTable: return /* @__PURE__ */ z(p, {
708
708
  content: e.text,
709
709
  isStreaming: !1,
710
710
  codeBlockTheme: P,
@@ -723,12 +723,12 @@ var W = {
723
723
  },
724
724
  tableDownloadFilename: F
725
725
  });
726
- case i.Json: return /* @__PURE__ */ B("div", {
726
+ case i.Json: return /* @__PURE__ */ z("div", {
727
727
  dir: "ltr",
728
728
  className: "h-full overflow-auto",
729
- children: /* @__PURE__ */ B("div", {
729
+ children: /* @__PURE__ */ z("div", {
730
730
  className: g("m-3 overflow-auto rounded-md border", J.jsonWrapper),
731
- children: /* @__PURE__ */ B(se, {
731
+ children: /* @__PURE__ */ z(se, {
732
732
  data: e.value,
733
733
  style: {
734
734
  container: g("whitespace-pre-wrap break-words p-2", U?.jsonClassName ?? "dial-code-text"),
@@ -750,7 +750,7 @@ var W = {
750
750
  })
751
751
  })
752
752
  });
753
- case i.Code: return /* @__PURE__ */ B(me, {
753
+ case i.Code: return /* @__PURE__ */ z(me, {
754
754
  content: e,
755
755
  codeBlockTheme: P,
756
756
  labels: {
@@ -759,7 +759,7 @@ var W = {
759
759
  retryLabel: ee
760
760
  }
761
761
  });
762
- case i.Html: return /* @__PURE__ */ B(ge, {
762
+ case i.Html: return /* @__PURE__ */ z(ge, {
763
763
  content: e,
764
764
  labels: {
765
765
  htmlFrameBlockedLabel: f,
@@ -769,7 +769,7 @@ var W = {
769
769
  title: r,
770
770
  codeBlockTheme: P
771
771
  });
772
- case i.Pdf: return /* @__PURE__ */ B(s, {
772
+ case i.Pdf: return /* @__PURE__ */ z(s, {
773
773
  retryKey: W,
774
774
  onRetry: he,
775
775
  labels: {
@@ -777,15 +777,15 @@ var W = {
777
777
  errorLabel: C,
778
778
  retryLabel: w
779
779
  },
780
- children: /* @__PURE__ */ B(pe, {
780
+ children: /* @__PURE__ */ z(pe, {
781
781
  fileName: r,
782
782
  url: e.url,
783
783
  highlights: e.highlights ?? [],
784
784
  selectedHighlightId: e.selectedHighlightId,
785
785
  selectedPageNumber: e.page,
786
786
  loadPdf: L,
787
- hideHeader: z,
788
- configurePdfWorker: le,
787
+ hideHeader: le,
788
+ configurePdfWorker: V,
789
789
  labels: {
790
790
  thumbnailsLabel: _,
791
791
  showThumbnailsLabel: v,
@@ -797,7 +797,7 @@ var W = {
797
797
  }
798
798
  })
799
799
  }, e.url);
800
- case i.Ooxml: return /* @__PURE__ */ B(Ee, {
800
+ case i.Ooxml: return /* @__PURE__ */ z(Ee, {
801
801
  content: e,
802
802
  fileName: r,
803
803
  loadErrorLabel: c,
@@ -807,24 +807,24 @@ var W = {
807
807
  highlightNavigatedLabel: j
808
808
  });
809
809
  case i.Visualizer:
810
- case i.GroupedVisualizer: return /* @__PURE__ */ B(Oe, {
810
+ case i.GroupedVisualizer: return /* @__PURE__ */ z(Oe, {
811
811
  content: e,
812
812
  errorLabel: d
813
813
  });
814
- case i.McpApp: return /* @__PURE__ */ B(xe, { content: e });
815
- case i.Unsupported: return /* @__PURE__ */ B("p", {
814
+ case i.McpApp: return /* @__PURE__ */ z(xe, { content: e });
815
+ case i.Unsupported: return /* @__PURE__ */ z("p", {
816
816
  className: g("text-center", J.statusLabel),
817
817
  children: o
818
818
  });
819
819
  case i.Error: {
820
820
  let t = e.errorType === n.Forbidden;
821
- return /* @__PURE__ */ V("div", {
821
+ return /* @__PURE__ */ B("div", {
822
822
  className: "flex flex-col items-center gap-2",
823
- children: [B(t ? ie : D, {
823
+ children: [z(t ? ie : D, {
824
824
  size: 60,
825
825
  stroke: S,
826
826
  className: J.errorIcon
827
- }), /* @__PURE__ */ B("p", {
827
+ }), /* @__PURE__ */ z("p", {
828
828
  className: g("text-center", J.statusLabel),
829
829
  children: t ? l : c
830
830
  })]
@@ -847,8 +847,8 @@ var W = {
847
847
  a,
848
848
  F,
849
849
  L,
850
- z,
851
850
  le,
851
+ V,
852
852
  _,
853
853
  v,
854
854
  y,
@@ -871,165 +871,166 @@ var W = {
871
871
  A,
872
872
  j
873
873
  ]);
874
- return /* @__PURE__ */ B("div", {
874
+ return /* @__PURE__ */ z("div", {
875
875
  style: !t && je.has(e.type) ? _e : void 0,
876
876
  className: g(t ? "flex h-full items-center justify-center" : ve, ue),
877
- children: t ? /* @__PURE__ */ B(E, {}) : ye
877
+ children: t ? /* @__PURE__ */ z(E, {}) : ye
878
878
  });
879
- }), Ne = 2e3, Pe = M(({ isOpen: e, isLoading: t = !1, onClose: n, content: r, fileName: a, labels: { ariaLabel: s, closeLabel: c = "Close", resizeLabel: l = "Resize panel", downloadLabel: u = "Download", copyTextLabel: d = "Copy text", copiedTextLabel: f = "Copied!", copyMarkdownLabel: p = "Copy as Markdown", copiedMarkdownLabel: m = "Copied!", copyJsonLabel: h = "Copy as JSON", copiedJsonLabel: _ = "Copied!", visualizerErrorLabel: v, unsupportedLabel: C = "Preview is not supported for this file", loadErrorLabel: T = "Failed to load file", forbiddenErrorLabel: E = "You don't have permission to access this file", htmlFrameBlockedLabel: D = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: O = "Open in new tab", htmlViewSourceLabel: ie = "View source", htmlViewRenderedLabel: A = "View rendered", mcpAppReloadLabel: j = "Reload", pdfThumbnailsLabel: M, pdfShowThumbnailsLabel: P, pdfHideThumbnailsLabel: I, pdfPageNumberLabel: se, pdfContentLoadingLabel: ce, pdfContentErrorLabel: le, pdfContentRetryLabel: H, xlsxFormulaLabel: U, codeContentLoadingLabel: ue, codeContentErrorLabel: de, codeContentRetryLabel: W, tableCopyCsvLabel: fe, tableCopyTxtLabel: pe, tableCopyMarkdownLabel: me, tableCopiedLabel: he, tableDownloadCsvLabel: ge, ooxmlHighlightsLabel: G, ooxmlHighlightNavigatedLabel: _e }, onDownload: ve, onCopyText: ye, onCopyMarkdown: be, onCopyJson: K, tableDownloadFilename: xe, isMobile: q = !1, defaultWidth: Se, minWidth: Ce = 600, maxWidth: we = 1500, onResizeStop: Te, styles: Ee, codeBlockTheme: De, loadPdf: Oe, configurePdfWorker: J }) => {
880
- let [ke, Ae] = R(!1), [je, Pe] = R(!1), [Fe, Y] = R(!1), [X, Ie] = R(!1), Z = L(null), Le = L(null), Q = L(null), Re = N(() => {
881
- ye?.(), Z.current != null && clearTimeout(Z.current), Ae(!0), Z.current = setTimeout(() => Ae(!1), Ne);
882
- }, [ye]), ze = N(() => {
883
- be?.(), Le.current != null && clearTimeout(Le.current), Pe(!0), Le.current = setTimeout(() => Pe(!1), Ne);
879
+ }), Ne = 2e3, Pe = M(({ 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: m = "Copy as Markdown", copiedMarkdownLabel: h = "Copied!", copyJsonLabel: _ = "Copy as JSON", copiedJsonLabel: v = "Copied!", visualizerErrorLabel: C, unsupportedLabel: T = "Preview is not supported for this file", loadErrorLabel: E = "Failed to load file", forbiddenErrorLabel: D = "You don't have permission to access this file", htmlFrameBlockedLabel: O = "This page cannot be displayed in preview", htmlOpenInNewTabLabel: ie = "Open in new tab", htmlViewSourceLabel: A = "View source", htmlViewRenderedLabel: j = "View rendered", mcpAppReloadLabel: M = "Reload", pdfThumbnailsLabel: P, pdfShowThumbnailsLabel: I, pdfHideThumbnailsLabel: se, pdfPageNumberLabel: ce, pdfContentLoadingLabel: V, pdfContentErrorLabel: H, pdfContentRetryLabel: U, xlsxFormulaLabel: ue, codeContentLoadingLabel: de, codeContentErrorLabel: W, codeContentRetryLabel: fe, tableCopyCsvLabel: pe, tableCopyTxtLabel: me, tableCopyMarkdownLabel: he, tableCopiedLabel: ge, tableDownloadCsvLabel: G, ooxmlHighlightsLabel: _e, ooxmlHighlightNavigatedLabel: ve }, onDownload: ye, onCopyText: be, onCopyMarkdown: K, onCopyJson: xe, tableDownloadFilename: q, isMobile: Se = !1, defaultWidth: Ce, minWidth: we = 600, maxWidth: Te = 1500, onResizeStop: Ee, styles: De, codeBlockTheme: Oe, loadPdf: J, configurePdfWorker: ke }) => {
880
+ let [Ae, je] = R(!1), [Pe, Fe] = R(!1), [Y, Ie] = R(!1), [X, Le] = R(!1), Z = L(null), Q = L(null), Re = L(null), ze = N(() => {
881
+ be?.(), Z.current != null && clearTimeout(Z.current), je(!0), Z.current = setTimeout(() => je(!1), Ne);
884
882
  }, [be]), Be = N(() => {
885
- K?.(), Q.current != null && clearTimeout(Q.current), Y(!0), Q.current = setTimeout(() => Y(!1), Ne);
886
- }, [K]);
883
+ K?.(), Q.current != null && clearTimeout(Q.current), Fe(!0), Q.current = setTimeout(() => Fe(!1), Ne);
884
+ }, [K]), Ve = N(() => {
885
+ xe?.(), Re.current != null && clearTimeout(Re.current), Ie(!0), Re.current = setTimeout(() => Ie(!1), Ne);
886
+ }, [xe]);
887
887
  F(() => () => {
888
- Z.current != null && clearTimeout(Z.current), Le.current != null && clearTimeout(Le.current), Q.current != null && clearTimeout(Q.current);
888
+ Z.current != null && clearTimeout(Z.current), Q.current != null && clearTimeout(Q.current), Re.current != null && clearTimeout(Re.current);
889
889
  }, []);
890
- let Ve = N(() => {
891
- Ie((e) => !e);
890
+ let He = N(() => {
891
+ Le((e) => !e);
892
892
  }, []);
893
893
  F(() => {
894
- Ie(!1);
894
+ Le(!1);
895
895
  }, [r]);
896
- let { className: He, panelStyles: Ue, ...$ } = Ee ?? {}, We = !t && r.type === i.Html && r.srcdoc != null, Ge = !t && ye != null && (r.type === i.PlainText || r.type === i.Code), Ke = !t && be != null && r.type === i.Markdown, qe = !t && K != null && r.type === i.Json, Je = !t && ve != null && o(r), Ye = !t && r.type === i.McpApp && r.onReload != null;
897
- return /* @__PURE__ */ B(b, {
896
+ let { className: Ue, panelStyles: $, ...We } = De ?? {}, Ge = !t && r.type === i.Html && r.srcdoc != null, Ke = !t && be != null && (r.type === i.PlainText || r.type === i.Code), qe = !t && K != null && r.type === i.Markdown, Je = !t && xe != null && r.type === i.Json, Ye = !t && ye != null && o(r), Xe = !t && r.type === i.McpApp && r.onReload != null;
897
+ return /* @__PURE__ */ z(b, {
898
898
  isOpen: e,
899
899
  orientation: y.Right,
900
900
  title: a,
901
901
  labels: {
902
- ariaLabel: s,
903
- closeLabel: c,
904
- resizeLabel: l
902
+ ariaLabel: c,
903
+ closeLabel: l,
904
+ resizeLabel: u
905
905
  },
906
906
  onClose: n,
907
- resizable: !q,
908
- defaultWidth: Se,
909
- minWidth: Ce,
910
- maxWidth: we,
911
- onResizeStop: Te,
907
+ resizable: !Se,
908
+ defaultWidth: Ce,
909
+ minWidth: we,
910
+ maxWidth: Te,
911
+ onResizeStop: Ee,
912
912
  styles: {
913
- ...Ue,
914
- titleClassName: Ue?.titleClassName ?? "dial-h3-text",
915
- headerClassName: g("border-b border-tertiary", Ue?.headerClassName),
916
- className: g(e ? "mobile:w-full mobile:max-w-full" : "w-0", He, Ue?.className)
913
+ ...$,
914
+ titleClassName: $?.titleClassName ?? "dial-h3-text",
915
+ headerClassName: g("border-b border-tertiary", $?.headerClassName),
916
+ className: g(e ? "mobile:w-full mobile:max-w-full" : "w-0", Ue, $?.className)
917
917
  },
918
- rightActions: We || Ge || Ke || qe || Je || Ye ? /* @__PURE__ */ V(z, { children: [
919
- Ye && /* @__PURE__ */ B(w, {
920
- icon: /* @__PURE__ */ B(oe, {
918
+ leftActions: s,
919
+ rightActions: Ge || Ke || qe || Je || Ye || Xe ? /* @__PURE__ */ B(le, { children: [
920
+ Xe && /* @__PURE__ */ z(w, {
921
+ icon: /* @__PURE__ */ z(oe, {
921
922
  size: x.LG,
922
923
  stroke: S,
923
924
  "aria-hidden": !0
924
925
  }),
925
- "aria-label": j,
926
- tooltipProps: { tooltip: j },
926
+ "aria-label": M,
927
+ tooltipProps: { tooltip: M },
927
928
  onClick: r.type === i.McpApp ? r.onReload : void 0
928
929
  }),
929
- We && /* @__PURE__ */ B(w, {
930
- icon: B(X ? re : ee, {
930
+ Ge && /* @__PURE__ */ z(w, {
931
+ icon: z(X ? re : ee, {
931
932
  size: x.LG,
932
933
  stroke: S,
933
934
  "aria-hidden": !0
934
935
  }),
935
- "aria-label": X ? A : ie,
936
+ "aria-label": X ? j : A,
936
937
  "aria-pressed": X,
937
- tooltipProps: { tooltip: X ? A : ie },
938
- onClick: Ve
938
+ tooltipProps: { tooltip: X ? j : A },
939
+ onClick: He
939
940
  }),
940
- Ge && /* @__PURE__ */ B(w, {
941
- icon: B(ke ? k : te, {
941
+ Ke && /* @__PURE__ */ z(w, {
942
+ icon: z(Ae ? k : te, {
942
943
  size: x.LG,
943
944
  stroke: S,
944
945
  "aria-hidden": !0
945
946
  }),
946
- "aria-label": ke ? f : d,
947
- tooltipProps: { tooltip: ke ? f : d },
948
- onClick: Re
947
+ "aria-label": Ae ? p : f,
948
+ tooltipProps: { tooltip: Ae ? p : f },
949
+ onClick: ze
949
950
  }),
950
- Ke && /* @__PURE__ */ B(w, {
951
- icon: B(je ? k : ae, {
951
+ qe && /* @__PURE__ */ z(w, {
952
+ icon: z(Pe ? k : ae, {
952
953
  size: x.LG,
953
954
  stroke: S,
954
955
  "aria-hidden": !0
955
956
  }),
956
- "aria-label": je ? m : p,
957
- tooltipProps: { tooltip: je ? m : p },
958
- onClick: ze
957
+ "aria-label": Pe ? h : m,
958
+ tooltipProps: { tooltip: Pe ? h : m },
959
+ onClick: Be
959
960
  }),
960
- qe && /* @__PURE__ */ B(w, {
961
- icon: B(Fe ? k : te, {
961
+ Je && /* @__PURE__ */ z(w, {
962
+ icon: z(Y ? k : te, {
962
963
  size: x.LG,
963
964
  stroke: S,
964
965
  "aria-hidden": !0
965
966
  }),
966
- "aria-label": Fe ? _ : h,
967
- tooltipProps: { tooltip: Fe ? _ : h },
968
- onClick: Be
967
+ "aria-label": Y ? v : _,
968
+ tooltipProps: { tooltip: Y ? v : _ },
969
+ onClick: Ve
969
970
  }),
970
- Je && /* @__PURE__ */ B(w, {
971
- icon: /* @__PURE__ */ B(ne, {
971
+ Ye && /* @__PURE__ */ z(w, {
972
+ icon: /* @__PURE__ */ z(ne, {
972
973
  size: x.LG,
973
974
  stroke: S
974
975
  }),
975
- "aria-label": u,
976
- tooltipProps: { tooltip: u },
977
- onClick: ve
976
+ "aria-label": d,
977
+ tooltipProps: { tooltip: d },
978
+ onClick: ye
978
979
  })
979
980
  ] }) : null,
980
- children: /* @__PURE__ */ B(Me, {
981
+ children: /* @__PURE__ */ z(Me, {
981
982
  content: r,
982
983
  isLoading: t,
983
984
  fileName: a,
984
985
  isHtmlSourceView: X,
985
986
  labels: {
986
- unsupportedLabel: C,
987
- loadErrorLabel: T,
988
- forbiddenErrorLabel: E,
989
- visualizerErrorLabel: v,
990
- htmlFrameBlockedLabel: D,
991
- htmlOpenInNewTabLabel: O,
992
- pdfThumbnailsLabel: M,
993
- pdfShowThumbnailsLabel: P,
994
- pdfHideThumbnailsLabel: I,
995
- pdfPageNumberLabel: se,
996
- pdfContentLoadingLabel: ce,
997
- pdfContentErrorLabel: le,
998
- pdfContentRetryLabel: H,
999
- xlsxFormulaLabel: U,
1000
- codeContentLoadingLabel: ue,
1001
- codeContentErrorLabel: de,
1002
- codeContentRetryLabel: W,
1003
- tableCopyCsvLabel: fe,
1004
- tableCopyTxtLabel: pe,
1005
- tableCopyMarkdownLabel: me,
1006
- tableCopiedLabel: he,
1007
- tableDownloadCsvLabel: ge,
1008
- ooxmlHighlightsLabel: G,
1009
- ooxmlHighlightNavigatedLabel: _e
987
+ unsupportedLabel: T,
988
+ loadErrorLabel: E,
989
+ forbiddenErrorLabel: D,
990
+ visualizerErrorLabel: C,
991
+ htmlFrameBlockedLabel: O,
992
+ htmlOpenInNewTabLabel: ie,
993
+ pdfThumbnailsLabel: P,
994
+ pdfShowThumbnailsLabel: I,
995
+ pdfHideThumbnailsLabel: se,
996
+ pdfPageNumberLabel: ce,
997
+ pdfContentLoadingLabel: V,
998
+ pdfContentErrorLabel: H,
999
+ pdfContentRetryLabel: U,
1000
+ xlsxFormulaLabel: ue,
1001
+ codeContentLoadingLabel: de,
1002
+ codeContentErrorLabel: W,
1003
+ codeContentRetryLabel: fe,
1004
+ tableCopyCsvLabel: pe,
1005
+ tableCopyTxtLabel: me,
1006
+ tableCopyMarkdownLabel: he,
1007
+ tableCopiedLabel: ge,
1008
+ tableDownloadCsvLabel: G,
1009
+ ooxmlHighlightsLabel: _e,
1010
+ ooxmlHighlightNavigatedLabel: ve
1010
1011
  },
1011
- styles: $,
1012
- codeBlockTheme: De,
1013
- tableDownloadFilename: xe,
1014
- loadPdf: Oe,
1015
- configurePdfWorker: J
1012
+ styles: We,
1013
+ codeBlockTheme: Oe,
1014
+ tableDownloadFilename: q,
1015
+ loadPdf: J,
1016
+ configurePdfWorker: ke
1016
1017
  })
1017
1018
  });
1018
1019
  }), Fe = new Set(["html", "htm"]), Y = {
1019
1020
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1020
1021
  xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
1021
1022
  pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
1022
- }, X = new Set(/* @__PURE__ */ "txt.md.markdown.json.jsonl.ndjson.xml.csv.tsv.yaml.yml.toml.ini.conf.cfg.css.scss.sass.less.js.jsx.ts.tsx.mjs.cjs.mts.cts.py.rb.go.rs.java.kt.swift.c.h.cpp.cs.sh.bash.zsh.fish.ps1.log.env.gitignore.dockerfile.makefile.sql".split(".")), Ie = {
1023
+ }, Ie = new Set(/* @__PURE__ */ "txt.md.markdown.json.jsonl.ndjson.xml.csv.tsv.yaml.yml.toml.ini.conf.cfg.css.scss.sass.less.js.jsx.ts.tsx.mjs.cjs.mts.cts.py.rb.go.rs.java.kt.swift.c.h.cpp.cs.sh.bash.zsh.fish.ps1.log.env.gitignore.dockerfile.makefile.sql".split(".")), X = {
1023
1024
  docx: r.Docx,
1024
1025
  xlsx: r.Xlsx,
1025
1026
  pptx: r.Pptx,
1026
1027
  csv: r.Csv
1027
- }, Z = {
1028
+ }, Le = {
1028
1029
  [Y.docx]: r.Docx,
1029
1030
  [Y.xlsx]: r.Xlsx,
1030
1031
  [Y.pptx]: r.Pptx,
1031
1032
  [f.CSV]: r.Csv
1032
- }, Le = {
1033
+ }, Z = {
1033
1034
  [r.Docx]: Y.docx,
1034
1035
  [r.Xlsx]: Y.xlsx,
1035
1036
  [r.Pptx]: Y.pptx,
@@ -1037,17 +1038,17 @@ var W = {
1037
1038
  }, Q = (e, t) => {
1038
1039
  let n = t?.split(";", 1)[0].trim().toLowerCase();
1039
1040
  if (n != null) {
1040
- let e = Z[n];
1041
+ let e = Le[n];
1041
1042
  if (e != null) return e;
1042
1043
  }
1043
1044
  let r = e.lastIndexOf(".");
1044
- if (r !== -1) return Ie[e.slice(r + 1).toLowerCase()];
1045
+ if (r !== -1) return X[e.slice(r + 1).toLowerCase()];
1045
1046
  }, Re = (e, t) => Q(e, t) != null, ze = (e, t) => {
1046
1047
  let n = Q(e, t);
1047
- return n == null ? void 0 : Le[n];
1048
+ return n == null ? void 0 : Z[n];
1048
1049
  }, Be = (e) => {
1049
1050
  let t = e.lastIndexOf(".");
1050
- return t === -1 ? !1 : X.has(e.slice(t + 1).toLowerCase());
1051
+ return t === -1 ? !1 : Ie.has(e.slice(t + 1).toLowerCase());
1051
1052
  }, Ve = (e) => {
1052
1053
  let t = e.lastIndexOf(".");
1053
1054
  return t === -1 ? !1 : Fe.has(e.slice(t + 1).toLowerCase());
@@ -1131,7 +1132,7 @@ var Xe = ({ children: e }) => {
1131
1132
  return F(() => () => {
1132
1133
  let e = Ke(a);
1133
1134
  e != null && URL.revokeObjectURL(e);
1134
- }, [a]), /* @__PURE__ */ B(Ye.Provider, {
1135
+ }, [a]), /* @__PURE__ */ z(Ye.Provider, {
1135
1136
  value: I(() => ({
1136
1137
  isOpen: t,
1137
1138
  isLoading: r,
@@ -1157,69 +1158,70 @@ var Xe = ({ children: e }) => {
1157
1158
  let e = P(Ye);
1158
1159
  if (!e) throw Error("useAttachmentCanvas must be used within an AttachmentCanvasProvider");
1159
1160
  return e;
1160
- }, Qe = M(({ labels: e, isMobile: t = !1, defaultWidth: n, maxWidth: r, codeBlockTheme: o, tableDownloadFilename: s, loadPdf: c, configurePdfWorker: l }) => {
1161
- let { ariaLabel: u = "Attachment preview", closeLabel: d = "Close", downloadLabel: f = "Download", unsupportedLabel: p = "Preview is not supported for this file", loadErrorLabel: m = "Failed to load file", forbiddenErrorLabel: g = "You don't have permission to access this file", copyTextLabel: _, copiedTextLabel: v, copyMarkdownLabel: y, copiedMarkdownLabel: b, copyJsonLabel: x, copiedJsonLabel: S, htmlFrameBlockedLabel: C, htmlOpenInNewTabLabel: w, htmlViewSourceLabel: T, htmlViewRenderedLabel: E, pdfThumbnailsLabel: D, pdfShowThumbnailsLabel: O, pdfHideThumbnailsLabel: k, pdfPageNumberLabel: ee, pdfContentLoadingLabel: te, pdfContentErrorLabel: ne, pdfContentRetryLabel: re, xlsxFormulaLabel: ie, codeContentLoadingLabel: ae, codeContentErrorLabel: oe, codeContentRetryLabel: A, tableCopyCsvLabel: j, tableCopyTxtLabel: M, tableCopyMarkdownLabel: P, tableCopiedLabel: F, tableDownloadCsvLabel: I, ooxmlHighlightsLabel: L, ooxmlHighlightNavigatedLabel: R } = e ?? {}, { isOpen: se, isLoading: ce, content: z, fileName: V, closeCanvas: le } = Ze(), H = N(() => {
1162
- a(z, V);
1163
- }, [z, V]), U = N(() => {
1164
- (z.type === i.PlainText || z.type === i.Code) && h(z.text);
1165
- }, [z]), ue = N(() => {
1166
- z.type === i.Markdown && h(z.text);
1167
- }, [z]), de = N(() => {
1168
- z.type === i.Json && h(JSON.stringify(z.value, null, 2));
1169
- }, [z]);
1170
- return /* @__PURE__ */ B(Pe, {
1171
- isOpen: se,
1172
- isLoading: ce,
1173
- onClose: le,
1174
- content: z,
1161
+ }, Qe = M(({ labels: e, leftActions: t, isMobile: n = !1, defaultWidth: r, maxWidth: o, codeBlockTheme: s, tableDownloadFilename: c, loadPdf: l, configurePdfWorker: u }) => {
1162
+ let { ariaLabel: d = "Attachment preview", closeLabel: f = "Close", downloadLabel: p = "Download", unsupportedLabel: m = "Preview is not supported for this file", loadErrorLabel: g = "Failed to load file", forbiddenErrorLabel: _ = "You don't have permission to access this file", copyTextLabel: v, copiedTextLabel: y, copyMarkdownLabel: b, copiedMarkdownLabel: x, copyJsonLabel: S, copiedJsonLabel: C, htmlFrameBlockedLabel: w, htmlOpenInNewTabLabel: T, htmlViewSourceLabel: E, htmlViewRenderedLabel: D, pdfThumbnailsLabel: O, pdfShowThumbnailsLabel: k, pdfHideThumbnailsLabel: ee, pdfPageNumberLabel: te, pdfContentLoadingLabel: ne, pdfContentErrorLabel: re, pdfContentRetryLabel: ie, xlsxFormulaLabel: ae, codeContentLoadingLabel: oe, codeContentErrorLabel: A, codeContentRetryLabel: j, tableCopyCsvLabel: M, tableCopyTxtLabel: P, tableCopyMarkdownLabel: F, tableCopiedLabel: I, tableDownloadCsvLabel: L, ooxmlHighlightsLabel: R, ooxmlHighlightNavigatedLabel: se } = e ?? {}, { isOpen: ce, isLoading: le, content: B, fileName: V, closeCanvas: H } = Ze(), U = N(() => {
1163
+ a(B, V);
1164
+ }, [B, V]), ue = N(() => {
1165
+ (B.type === i.PlainText || B.type === i.Code) && h(B.text);
1166
+ }, [B]), de = N(() => {
1167
+ B.type === i.Markdown && h(B.text);
1168
+ }, [B]), W = N(() => {
1169
+ B.type === i.Json && h(JSON.stringify(B.value, null, 2));
1170
+ }, [B]);
1171
+ return /* @__PURE__ */ z(Pe, {
1172
+ isOpen: ce,
1173
+ isLoading: le,
1174
+ onClose: H,
1175
+ content: B,
1175
1176
  fileName: V,
1177
+ leftActions: t,
1176
1178
  labels: {
1177
- ariaLabel: u,
1178
- closeLabel: d,
1179
- downloadLabel: f,
1180
- copyTextLabel: _,
1181
- copiedTextLabel: v,
1182
- copyMarkdownLabel: y,
1183
- copiedMarkdownLabel: b,
1184
- copyJsonLabel: x,
1185
- copiedJsonLabel: S,
1186
- unsupportedLabel: p,
1187
- loadErrorLabel: m,
1188
- forbiddenErrorLabel: g,
1189
- htmlFrameBlockedLabel: C,
1190
- htmlOpenInNewTabLabel: w,
1191
- htmlViewSourceLabel: T,
1192
- htmlViewRenderedLabel: E,
1193
- pdfThumbnailsLabel: D,
1194
- pdfShowThumbnailsLabel: O,
1195
- pdfHideThumbnailsLabel: k,
1196
- pdfPageNumberLabel: ee,
1197
- pdfContentLoadingLabel: te,
1198
- pdfContentErrorLabel: ne,
1199
- pdfContentRetryLabel: re,
1200
- xlsxFormulaLabel: ie,
1201
- codeContentLoadingLabel: ae,
1202
- codeContentErrorLabel: oe,
1203
- codeContentRetryLabel: A,
1204
- tableCopyCsvLabel: j,
1205
- tableCopyTxtLabel: M,
1206
- tableCopyMarkdownLabel: P,
1207
- tableCopiedLabel: F,
1208
- tableDownloadCsvLabel: I,
1209
- ooxmlHighlightsLabel: L,
1210
- ooxmlHighlightNavigatedLabel: R
1179
+ ariaLabel: d,
1180
+ closeLabel: f,
1181
+ downloadLabel: p,
1182
+ copyTextLabel: v,
1183
+ copiedTextLabel: y,
1184
+ copyMarkdownLabel: b,
1185
+ copiedMarkdownLabel: x,
1186
+ copyJsonLabel: S,
1187
+ copiedJsonLabel: C,
1188
+ unsupportedLabel: m,
1189
+ loadErrorLabel: g,
1190
+ forbiddenErrorLabel: _,
1191
+ htmlFrameBlockedLabel: w,
1192
+ htmlOpenInNewTabLabel: T,
1193
+ htmlViewSourceLabel: E,
1194
+ htmlViewRenderedLabel: D,
1195
+ pdfThumbnailsLabel: O,
1196
+ pdfShowThumbnailsLabel: k,
1197
+ pdfHideThumbnailsLabel: ee,
1198
+ pdfPageNumberLabel: te,
1199
+ pdfContentLoadingLabel: ne,
1200
+ pdfContentErrorLabel: re,
1201
+ pdfContentRetryLabel: ie,
1202
+ xlsxFormulaLabel: ae,
1203
+ codeContentLoadingLabel: oe,
1204
+ codeContentErrorLabel: A,
1205
+ codeContentRetryLabel: j,
1206
+ tableCopyCsvLabel: M,
1207
+ tableCopyTxtLabel: P,
1208
+ tableCopyMarkdownLabel: F,
1209
+ tableCopiedLabel: I,
1210
+ tableDownloadCsvLabel: L,
1211
+ ooxmlHighlightsLabel: R,
1212
+ ooxmlHighlightNavigatedLabel: se
1211
1213
  },
1212
- onDownload: H,
1213
- onCopyText: z.type === i.PlainText || z.type === i.Code ? U : void 0,
1214
- onCopyMarkdown: z.type === i.Markdown ? ue : void 0,
1215
- onCopyJson: z.type === i.Json ? de : void 0,
1216
- tableDownloadFilename: s,
1217
- isMobile: t,
1218
- defaultWidth: n,
1219
- maxWidth: r,
1220
- codeBlockTheme: o,
1221
- configurePdfWorker: l,
1222
- loadPdf: c
1214
+ onDownload: U,
1215
+ onCopyText: B.type === i.PlainText || B.type === i.Code ? ue : void 0,
1216
+ onCopyMarkdown: B.type === i.Markdown ? de : void 0,
1217
+ onCopyJson: B.type === i.Json ? W : void 0,
1218
+ tableDownloadFilename: c,
1219
+ isMobile: n,
1220
+ defaultWidth: r,
1221
+ maxWidth: o,
1222
+ codeBlockTheme: s,
1223
+ configurePdfWorker: u,
1224
+ loadPdf: l
1223
1225
  });
1224
1226
  }), $e = {
1225
1227
  frame: "_frame_g47g7_1",
@@ -1227,24 +1229,24 @@ var Xe = ({ children: e }) => {
1227
1229
  title: "_title_g47g7_10"
1228
1230
  }, et = M(({ content: e, height: t, onExpand: n, expandAriaLabel: r, actionsGroupAriaLabel: i = "Visualizer actions", frameTitle: a, loadingLabel: o, errorLabel: s, titleClassName: c = "dial-small-semi-text", colors: l }) => {
1229
1231
  let u = e.visualizerName.trim();
1230
- return /* @__PURE__ */ V("div", {
1232
+ return /* @__PURE__ */ B("div", {
1231
1233
  className: g("flex w-full min-w-0 flex-col overflow-hidden rounded-xl border", $e.frame),
1232
1234
  style: m({
1233
1235
  "--igv-bg": l?.background,
1234
1236
  "--igv-border": l?.border,
1235
1237
  "--igv-title-text": l?.titleText
1236
1238
  }),
1237
- children: [/* @__PURE__ */ V("div", {
1239
+ children: [/* @__PURE__ */ B("div", {
1238
1240
  className: g("flex min-h-10 items-center justify-between gap-2 border-b px-4 py-2", $e.header),
1239
- children: [/* @__PURE__ */ B("span", {
1241
+ children: [/* @__PURE__ */ z("span", {
1240
1242
  className: g("min-w-0 truncate", c, $e.title),
1241
1243
  children: u
1242
- }), /* @__PURE__ */ B("div", {
1244
+ }), /* @__PURE__ */ z("div", {
1243
1245
  role: "toolbar",
1244
1246
  "aria-label": i,
1245
1247
  className: "flex items-center gap-1",
1246
- children: /* @__PURE__ */ B(w, {
1247
- icon: /* @__PURE__ */ B(O, {
1248
+ children: /* @__PURE__ */ z(w, {
1249
+ icon: /* @__PURE__ */ z(O, {
1248
1250
  size: x.SM,
1249
1251
  stroke: S,
1250
1252
  "aria-hidden": !0
@@ -1254,10 +1256,10 @@ var Xe = ({ children: e }) => {
1254
1256
  onClick: n
1255
1257
  })
1256
1258
  })]
1257
- }), /* @__PURE__ */ B("div", {
1259
+ }), /* @__PURE__ */ z("div", {
1258
1260
  className: "w-full",
1259
1261
  style: { height: `${t}px` },
1260
- children: /* @__PURE__ */ B(Oe, {
1262
+ children: /* @__PURE__ */ z(Oe, {
1261
1263
  content: e,
1262
1264
  loadingLabel: o,
1263
1265
  errorLabel: s,
@@ -3,7 +3,7 @@ import { SidebarPanelStyles } from '@epam/ai-dial-sidebar';
3
3
  import { InputHighlightData } from '@epam/pdf-highlighter-kit';
4
4
  import { McpUiHostContext } from '@mcp-ui/client';
5
5
  import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
6
- import { CSSProperties } from 'react';
6
+ import { CSSProperties, ReactNode } from 'react';
7
7
  import { AttachmentContentType, AttachmentErrorType, OoxmlFileType, OoxmlHighlightKind } from '../types/attachment-canvas';
8
8
  /** Content payload for plain-text attachments. */
9
9
  export interface PlainTextCanvasContent {
@@ -428,6 +428,8 @@ export interface AttachmentCanvasProps {
428
428
  content: AttachmentCanvasContent;
429
429
  /** File name displayed as the panel title. */
430
430
  fileName?: string;
431
+ /** Host-supplied controls rendered in the header before the title. */
432
+ leftActions?: ReactNode;
431
433
  /** User-visible strings. */
432
434
  labels: AttachmentCanvasLabels;
433
435
  /** Called when the user activates the download button. When omitted the download button is hidden. Hidden automatically when content type is `Unsupported`. */
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/models/attachment-canvas.ts"],"names":[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c,CAAC;IAChC,wJAAwJ;IACxJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD"}
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.1.4",
4
+ "version": "1.1.5",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -29,10 +29,10 @@
29
29
  "@modelcontextprotocol/sdk": "^1.29.0",
30
30
  "@modelcontextprotocol/ext-apps": "1.7.5",
31
31
  "pdfjs-dist": "^5.4.149",
32
- "@epam/ai-dial-sidebar": "1.1.4"
32
+ "@epam/ai-dial-sidebar": "1.1.5"
33
33
  },
34
34
  "peerDependencies": {
35
- "@epam/ai-dial-chat-shared": "1.1.4",
35
+ "@epam/ai-dial-chat-shared": "1.1.5",
36
36
  "@epam/ai-dial-ui-kit": "^0.14.2",
37
37
  "react": "^19.2.8"
38
38
  },