@epam/ai-dial-attachment-canvas 1.1.0-dev.30 → 1.1.0-dev.307
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.
- package/components/AttachmentCanvas/AttachmentCanvas.d.ts +1 -0
- package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
- package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts +4 -0
- package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -0
- package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
- package/components/CodeContent/CodeContent.d.ts +13 -0
- package/components/CodeContent/CodeContent.d.ts.map +1 -0
- package/components/HtmlContent/HtmlContent.d.ts +21 -0
- package/components/HtmlContent/HtmlContent.d.ts.map +1 -0
- package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts +12 -0
- package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts.map +1 -0
- package/components/OoxmlContent/OoxmlContent.d.ts +14 -0
- package/components/OoxmlContent/OoxmlContent.d.ts.map +1 -0
- package/components/PdfContent/PdfContent.d.ts +31 -0
- package/components/PdfContent/PdfContent.d.ts.map +1 -1
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts +25 -0
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts.map +1 -0
- package/constants/file.d.ts +8 -0
- package/constants/file.d.ts.map +1 -1
- package/context/AttachmentCanvasContext.d.ts +4 -2
- package/context/AttachmentCanvasContext.d.ts.map +1 -1
- package/docx-TK1kGI6t.js +27179 -0
- package/highlight-rect-BuX5rWP4-BMOCuZYw.js +1037 -0
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts +64 -0
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +9 -3
- package/index.d.ts.map +1 -1
- package/index.js +34937 -1756
- package/models/attachment-canvas.d.ts +170 -11
- package/models/attachment-canvas.d.ts.map +1 -1
- package/package.json +14 -7
- package/pptx-DfVqSUxc.js +7410 -0
- package/render-worker-host-Br7ZDyGE-ByESfBjH.js +7 -0
- package/render-worker-host-CM1JXVqg-DGwZpsUd.js +7 -0
- package/render-worker-host-DFtd9Z-J-DU7fugLI.js +7 -0
- package/renderer-module-contract-BNGz8HvO-BmSLiM0k.js +44363 -0
- package/types/attachment-canvas.d.ts +11 -0
- package/types/attachment-canvas.d.ts.map +1 -1
- package/utils/content.d.ts +9 -0
- package/utils/content.d.ts.map +1 -1
- package/utils/download.d.ts.map +1 -1
- package/utils/visualizer.d.ts +8 -0
- package/utils/visualizer.d.ts.map +1 -0
- package/visible-index-BjesVGhg-DvGeguMs.js +133 -0
- package/xlsx-44AZTEry.js +7800 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { CodeBlockTheme } from '@epam/ai-dial-chat-shared';
|
|
1
|
+
import { CodeBlockTheme, CustomVisualizerDataLayout } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { SidebarPanelStyles } from '@epam/ai-dial-sidebar';
|
|
3
3
|
import { InputHighlightData } from '@epam/pdf-highlighter-kit';
|
|
4
|
+
import { McpUiHostContext } from '@mcp-ui/client';
|
|
5
|
+
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
4
6
|
import { CSSProperties } from 'react';
|
|
5
|
-
import { AttachmentContentType, AttachmentErrorType } from '../types/attachment-canvas';
|
|
7
|
+
import { AttachmentContentType, AttachmentErrorType, OoxmlFileType } from '../types/attachment-canvas';
|
|
6
8
|
/** Content payload for plain-text attachments. */
|
|
7
9
|
export interface PlainTextCanvasContent {
|
|
8
10
|
/** Discriminates the content type to select the correct renderer. */
|
|
@@ -42,6 +44,15 @@ export interface PdfCanvasContent {
|
|
|
42
44
|
/** ID of the highlight to scroll to and select on initial load. */
|
|
43
45
|
selectedHighlightId?: string;
|
|
44
46
|
}
|
|
47
|
+
/** Content payload for Office Open XML document attachments. */
|
|
48
|
+
export interface OoxmlCanvasContent {
|
|
49
|
+
/** Discriminates the content type to select the correct renderer. */
|
|
50
|
+
type: AttachmentContentType.Ooxml;
|
|
51
|
+
/** Resolved download URL or object URL for the OOXML file. */
|
|
52
|
+
url: string;
|
|
53
|
+
/** The document format used to select the format-specific renderer. */
|
|
54
|
+
format: OoxmlFileType;
|
|
55
|
+
}
|
|
45
56
|
/** Content payload for audio file attachments. */
|
|
46
57
|
export interface AudioCanvasContent {
|
|
47
58
|
/** Discriminates the content type to select the correct renderer. */
|
|
@@ -51,6 +62,60 @@ export interface AudioCanvasContent {
|
|
|
51
62
|
/** MIME type forwarded to the `<audio>` element (e.g. `audio/webm`). */
|
|
52
63
|
mimeType?: string;
|
|
53
64
|
}
|
|
65
|
+
/** Content payload for syntax-highlighted source-code or text file attachments. */
|
|
66
|
+
export interface CodeCanvasContent {
|
|
67
|
+
/** Discriminates the content type to select the correct renderer. */
|
|
68
|
+
type: AttachmentContentType.Code;
|
|
69
|
+
/** The raw source text to display. */
|
|
70
|
+
text: string;
|
|
71
|
+
/** `react-syntax-highlighter` language identifier (e.g. `'typescript'`). `undefined` renders plain monospace. */
|
|
72
|
+
language?: string;
|
|
73
|
+
}
|
|
74
|
+
/** Content payload for HTML file attachments or external HTML URL sources. */
|
|
75
|
+
export interface HtmlCanvasContent {
|
|
76
|
+
/** Discriminates the content type to select the correct renderer. */
|
|
77
|
+
type: AttachmentContentType.Html;
|
|
78
|
+
/** Full HTML text rendered via `srcdoc` in a sandboxed iframe. Used for file attachments. */
|
|
79
|
+
srcdoc?: string;
|
|
80
|
+
/** External URL rendered via `src` in a sandboxed iframe. Used for external link sources. */
|
|
81
|
+
url?: string;
|
|
82
|
+
}
|
|
83
|
+
/** Content payload for a custom-visualizer attachment rendered inside a sandboxed iframe. */
|
|
84
|
+
export interface VisualizerCanvasContent {
|
|
85
|
+
/** Discriminates the content type to select the correct renderer. */
|
|
86
|
+
type: AttachmentContentType.Visualizer;
|
|
87
|
+
/** Iframe `src`, resolved from the matching registry entry's `url`. */
|
|
88
|
+
url: string;
|
|
89
|
+
/** The attachment's own MIME type (not the registry entry's raw, possibly comma-separated, `contentType`). */
|
|
90
|
+
mimeType: string;
|
|
91
|
+
/** Opaque attachment payload consumed by the visualizer. */
|
|
92
|
+
data: unknown;
|
|
93
|
+
/** Presentation layout hints (`themeId`, `width`, `height`, `mobileHeight`). */
|
|
94
|
+
layout: CustomVisualizerDataLayout;
|
|
95
|
+
/** postMessage protocol namespace — MUST equal the registry entry's `title`, or the iframe never receives data. */
|
|
96
|
+
visualizerName: string;
|
|
97
|
+
/** Milliseconds to wait for a `send()` request's response before rejecting. From the registry entry; does NOT bound the handshake. */
|
|
98
|
+
requestTimeout?: number;
|
|
99
|
+
}
|
|
100
|
+
/** Content payload for an MCP App's `ui://` resource, rendered in a sandboxed iframe via an isolated-origin sandbox proxy. */
|
|
101
|
+
export interface McpAppCanvasContent {
|
|
102
|
+
/** Discriminates the content type to select the correct renderer. */
|
|
103
|
+
type: AttachmentContentType.McpApp;
|
|
104
|
+
/** HTML body of the tool's `ui://` resource, fetched by the app layer — never fetched by this lib. */
|
|
105
|
+
html: string;
|
|
106
|
+
/** Isolated-origin URL of the MCP Apps sandbox-proxy page, resolved by the app layer from its own config. */
|
|
107
|
+
sandboxUrl: string;
|
|
108
|
+
/** Name of the tool call that produced this resource, forwarded on every `onToolCall`. */
|
|
109
|
+
toolName: string;
|
|
110
|
+
/** Arguments of the original tool call that produced this resource, passed to the mounted app so it renders that invocation immediately instead of an empty initial state. */
|
|
111
|
+
toolInput?: Record<string, unknown>;
|
|
112
|
+
/** Result of the original tool call that produced this resource, passed to the mounted app so it renders that invocation immediately instead of an empty initial state. */
|
|
113
|
+
toolResult?: CallToolResult;
|
|
114
|
+
/** UI context delivered to the View during the `ui/initialize` handshake; built by the app layer from the active theme, locale, and CSS design tokens. */
|
|
115
|
+
hostContext?: McpUiHostContext;
|
|
116
|
+
/** Forwards a `tools/call` request issued by the mounted app to the owning MCP session via the app layer. */
|
|
117
|
+
onToolCall: (name: string, args: unknown) => Promise<CallToolResult>;
|
|
118
|
+
}
|
|
54
119
|
/** Content payload for attachments whose format cannot be previewed. */
|
|
55
120
|
export interface UnsupportedCanvasContent {
|
|
56
121
|
/** Discriminates the content type to select the correct renderer. */
|
|
@@ -66,15 +131,51 @@ export interface ErrorCanvasContent {
|
|
|
66
131
|
errorType: AttachmentErrorType;
|
|
67
132
|
/** Remote URL of the file, if known. Ignored for download purposes when `errorType` is `Forbidden`. */
|
|
68
133
|
url?: string;
|
|
134
|
+
/** Overrides the default `loadErrorLabel`/`forbiddenErrorLabel` message, for callers whose failed content isn't a generic "file" (e.g. an MCP App). */
|
|
135
|
+
label?: string;
|
|
69
136
|
}
|
|
70
137
|
/** The content payload passed to AttachmentCanvas. */
|
|
71
|
-
export type AttachmentCanvasContent = PlainTextCanvasContent | ImageCanvasContent | AudioCanvasContent | MarkdownCanvasContent | JsonCanvasContent | PdfCanvasContent | UnsupportedCanvasContent | ErrorCanvasContent;
|
|
138
|
+
export type AttachmentCanvasContent = PlainTextCanvasContent | ImageCanvasContent | AudioCanvasContent | MarkdownCanvasContent | JsonCanvasContent | PdfCanvasContent | OoxmlCanvasContent | CodeCanvasContent | HtmlCanvasContent | VisualizerCanvasContent | McpAppCanvasContent | UnsupportedCanvasContent | ErrorCanvasContent;
|
|
72
139
|
/** Themeable color overrides for the AttachmentCanvas content body. */
|
|
73
140
|
export interface AttachmentCanvasColors {
|
|
74
141
|
/** Primary text color for the content body. */
|
|
75
142
|
text?: string;
|
|
143
|
+
/** Status/summary line text color. Defaults to `--text-secondary`. */
|
|
144
|
+
statusText?: string;
|
|
145
|
+
/** Error icon color. Defaults to `--text-error`. */
|
|
146
|
+
errorIcon?: string;
|
|
147
|
+
/** "Open in new tab" link color in the blocked-iframe panel. Defaults to `--text-accent`. */
|
|
148
|
+
openInNewTabText?: string;
|
|
149
|
+
/** Border color of the JSON viewer wrapper. Defaults to `--stroke-secondary`. */
|
|
150
|
+
jsonBorder?: string;
|
|
151
|
+
/** Background color of the JSON viewer wrapper. Defaults to `--bg-layer-base`. */
|
|
152
|
+
jsonBackground?: string;
|
|
153
|
+
/** JSON key/label color. Defaults to `--text-primary`. */
|
|
154
|
+
jsonLabel?: string;
|
|
155
|
+
/** JSON expandable key/label color. Defaults to `--text-primary`. */
|
|
156
|
+
jsonClickableLabel?: string;
|
|
157
|
+
/** JSON punctuation (braces, commas, colons) color. Defaults to `--text-secondary`. */
|
|
158
|
+
jsonPunctuation?: string;
|
|
159
|
+
/** JSON string-literal color. Defaults to `--text-success`. */
|
|
160
|
+
jsonString?: string;
|
|
161
|
+
/** JSON number-literal color. Defaults to `--text-accent`. */
|
|
162
|
+
jsonNumber?: string;
|
|
163
|
+
/** JSON boolean-literal color. Defaults to `--text-warning`. */
|
|
164
|
+
jsonBoolean?: string;
|
|
165
|
+
/** JSON `null`-literal color. Defaults to `--text-secondary`. */
|
|
166
|
+
jsonNull?: string;
|
|
167
|
+
/** Expand/collapse triangle color. Defaults to `--text-secondary`. */
|
|
168
|
+
jsonToggleIcon?: string;
|
|
169
|
+
/** Expand/collapse triangle color on hover. Defaults to `--text-primary`. */
|
|
170
|
+
jsonToggleIconHover?: string;
|
|
171
|
+
/** Background color of the OOXML (DOCX/XLSX/PPTX) viewer surface and its loading/error overlay. Defaults to `--bg-layer-raised`. */
|
|
172
|
+
ooxmlBackground?: string;
|
|
173
|
+
/** Text color of the collapsed-content ellipsis. Defaults to `--text-secondary`. */
|
|
174
|
+
jsonCollapsedText?: string;
|
|
175
|
+
/** Background color of the collapsed-content ellipsis. Defaults to `--bg-layer-raised`. */
|
|
176
|
+
jsonCollapsedBackground?: string;
|
|
76
177
|
}
|
|
77
|
-
/** Themeable typography overrides for the AttachmentCanvas content body. */
|
|
178
|
+
/** Themeable typography overrides for the AttachmentCanvas plain-text content body. */
|
|
78
179
|
export interface AttachmentCanvasTypography {
|
|
79
180
|
/** CSS font-family value. */
|
|
80
181
|
fontFamily?: string;
|
|
@@ -87,27 +188,31 @@ export interface AttachmentCanvasTypography {
|
|
|
87
188
|
/** CSS letter-spacing value. */
|
|
88
189
|
letterSpacing?: string;
|
|
89
190
|
/**
|
|
90
|
-
* A single CSS utility class applied to the content body instead of
|
|
91
|
-
* individual typography
|
|
92
|
-
* are ignored.
|
|
191
|
+
* A single CSS utility class applied to the content body instead of the
|
|
192
|
+
* individual typography fields above. When set, those fields are ignored.
|
|
93
193
|
*/
|
|
94
194
|
fontClassName?: string;
|
|
195
|
+
/** CSS utility class applied to the JSON tree viewer. Defaults to `'dial-code-text'`. */
|
|
196
|
+
jsonClassName?: string;
|
|
95
197
|
}
|
|
96
|
-
/**
|
|
97
|
-
export interface
|
|
198
|
+
/** Style override prop for `AttachmentCanvasBody`'s content-rendering area. */
|
|
199
|
+
export interface AttachmentCanvasBodyStyles {
|
|
98
200
|
/** Color overrides for the content body, applied as CSS custom properties. */
|
|
99
201
|
colors?: AttachmentCanvasColors;
|
|
100
202
|
/** Typography overrides for the content body. */
|
|
101
203
|
typography?: AttachmentCanvasTypography;
|
|
102
204
|
/** Extra class name(s) merged onto the scrollable content body element. */
|
|
103
205
|
bodyClassName?: string;
|
|
104
|
-
/** Extra class name(s) merged onto the panel width wrapper. */
|
|
105
|
-
className?: string;
|
|
106
206
|
/**
|
|
107
207
|
* Arbitrary CSS custom properties applied inline to the content body.
|
|
108
208
|
* Merged after the typed color/typography vars, so they can override them.
|
|
109
209
|
*/
|
|
110
210
|
cssVars?: CSSProperties;
|
|
211
|
+
}
|
|
212
|
+
/** Combined style override prop for AttachmentCanvas. */
|
|
213
|
+
export interface AttachmentCanvasStyles extends AttachmentCanvasBodyStyles {
|
|
214
|
+
/** Extra class name(s) merged onto the panel width wrapper. */
|
|
215
|
+
className?: string;
|
|
111
216
|
/** Style overrides forwarded to the underlying SidebarPanel (panel chrome). */
|
|
112
217
|
panelStyles?: SidebarPanelStyles;
|
|
113
218
|
}
|
|
@@ -137,6 +242,24 @@ export interface AttachmentCanvasLabels {
|
|
|
137
242
|
copyJsonLabel?: string;
|
|
138
243
|
/** Tooltip and accessible label for the copy-JSON button after a successful copy. Defaults to `'Copied!'`. */
|
|
139
244
|
copiedJsonLabel?: string;
|
|
245
|
+
/** Message shown inside the visualizer canvas when the iframe handshake fails. Defaults to `'Failed to load visualizer'`. */
|
|
246
|
+
visualizerErrorLabel?: string;
|
|
247
|
+
/** Message shown when a URL-sourced iframe is blocked by the page's CSP or X-Frame-Options. Defaults to `'This page cannot be displayed in preview'`. */
|
|
248
|
+
htmlFrameBlockedLabel?: string;
|
|
249
|
+
/** Label for the "Open in new tab" fallback link shown alongside `htmlFrameBlockedLabel`. Defaults to `'Open in new tab'`. */
|
|
250
|
+
htmlOpenInNewTabLabel?: string;
|
|
251
|
+
/** Tooltip and `aria-label` for the toggle button when the rendered view is active (clicking switches to source). Defaults to `'View source'`. */
|
|
252
|
+
htmlViewSourceLabel?: string;
|
|
253
|
+
/** Tooltip and `aria-label` for the toggle button when the source view is active (clicking switches back to rendered). Defaults to `'View rendered'`. */
|
|
254
|
+
htmlViewRenderedLabel?: string;
|
|
255
|
+
/** Accessible name for the PDF viewer's floating thumbnails panel region. Defaults to `'Thumbnails'`. */
|
|
256
|
+
pdfThumbnailsLabel?: string;
|
|
257
|
+
/** Accessible label for the FAB button that opens the PDF thumbnails panel. Defaults to `'Show thumbnails'`. */
|
|
258
|
+
pdfShowThumbnailsLabel?: string;
|
|
259
|
+
/** Accessible label for the FAB button that closes the PDF thumbnails panel. Defaults to `'Hide thumbnails'`. */
|
|
260
|
+
pdfHideThumbnailsLabel?: string;
|
|
261
|
+
/** Accessible label for the current-page number input at the top of the PDF thumbnails panel. Defaults to `'Page number'`. */
|
|
262
|
+
pdfPageNumberLabel?: string;
|
|
140
263
|
}
|
|
141
264
|
/** Props for the AttachmentCanvas component. */
|
|
142
265
|
export interface AttachmentCanvasProps {
|
|
@@ -181,4 +304,40 @@ export interface AttachmentCanvasProps {
|
|
|
181
304
|
*/
|
|
182
305
|
loadPdf?: (url: string) => Promise<Blob>;
|
|
183
306
|
}
|
|
307
|
+
/** User-visible strings for `AttachmentCanvasBody`'s content states. */
|
|
308
|
+
export type AttachmentCanvasBodyLabels = Pick<AttachmentCanvasLabels, 'unsupportedLabel' | 'loadErrorLabel' | 'forbiddenErrorLabel' | 'visualizerErrorLabel' | 'htmlFrameBlockedLabel' | 'htmlOpenInNewTabLabel' | 'pdfThumbnailsLabel' | 'pdfShowThumbnailsLabel' | 'pdfHideThumbnailsLabel' | 'pdfPageNumberLabel'>;
|
|
309
|
+
/** Props for the `AttachmentCanvasBody` component. */
|
|
310
|
+
export interface AttachmentCanvasBodyProps {
|
|
311
|
+
/** The attachment content to render. */
|
|
312
|
+
content: AttachmentCanvasContent;
|
|
313
|
+
/** When `true`, renders a loading spinner instead of content. Defaults to `false`. */
|
|
314
|
+
isLoading?: boolean;
|
|
315
|
+
/** File name used for image `alt` text and the audio player's accessible label. */
|
|
316
|
+
fileName?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Whether an `Html` content type renders its raw source instead of the
|
|
319
|
+
* sandboxed rendered view. Ignored for every other content type. Defaults
|
|
320
|
+
* to `false`. The host owns this toggle's state since the corresponding
|
|
321
|
+
* toggle button lives outside this component.
|
|
322
|
+
*/
|
|
323
|
+
isHtmlSourceView?: boolean;
|
|
324
|
+
/** User-visible strings for content states (unsupported/error/HTML-blocked messages). */
|
|
325
|
+
labels?: AttachmentCanvasBodyLabels;
|
|
326
|
+
/** Style overrides for the content body. */
|
|
327
|
+
styles?: AttachmentCanvasBodyStyles;
|
|
328
|
+
/** Syntax highlight color theme forwarded to MarkdownRenderer/CodeContent code blocks. */
|
|
329
|
+
codeBlockTheme?: CodeBlockTheme;
|
|
330
|
+
/**
|
|
331
|
+
* Fetches a PDF file by URL and returns its bytes as a `Blob`. Used when
|
|
332
|
+
* content type is `Pdf` to load the file before rendering. Defaults to a
|
|
333
|
+
* plain `fetch` if not provided.
|
|
334
|
+
*/
|
|
335
|
+
loadPdf?: (url: string) => Promise<Blob>;
|
|
336
|
+
/**
|
|
337
|
+
* Hides the PDF renderer's own title/zoom toolbar row for `Pdf` content —
|
|
338
|
+
* for hosts that render their own header and don't want it duplicated.
|
|
339
|
+
* Ignored for every other content type. Defaults to `false`.
|
|
340
|
+
*/
|
|
341
|
+
hidePdfToolbar?: boolean;
|
|
342
|
+
}
|
|
184
343
|
//# sourceMappingURL=attachment-canvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/models/attachment-canvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/models/attachment-canvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACd,MAAM,4BAA4B,CAAC;AAEpC,kDAAkD;AAClD,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC;IACtC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,6CAA6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,qEAAqE;IACrE,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC;IAClC,yEAA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CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yFAAyF;IACzF,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,4CAA4C;IAC5C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,0FAA0F;IAC1F,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-attachment-canvas",
|
|
3
|
-
"description": "Canvas viewer for rendering attachment content — images, PDFs, JSON, markdown, and plain text",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
3
|
+
"description": "Canvas viewer for rendering attachment content — images, PDFs, Office documents, JSON, markdown, and plain text",
|
|
4
|
+
"version": "1.1.0-dev.307",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,16 +17,23 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-
|
|
22
|
-
"@epam/ai-dial-
|
|
20
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.307",
|
|
21
|
+
"@epam/ai-dial-react-pdf-highlighter": "*",
|
|
22
|
+
"@epam/ai-dial-shared": "0.48.0",
|
|
23
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.307",
|
|
24
|
+
"@epam/ai-dial-visualizer-connector": "0.48.0",
|
|
25
|
+
"@epam/ai-dial-ui-kit": "^0.14.0-dev.15",
|
|
23
26
|
"@epam/pdf-highlighter-kit": ">=0.0.14",
|
|
27
|
+
"@mcp-ui/client": "^7.1.1",
|
|
28
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
24
29
|
"@tabler/icons-react": "^3.44.0",
|
|
25
30
|
"react": "^19.0.0",
|
|
26
31
|
"react-json-view-lite": "^2.5.0",
|
|
27
|
-
"
|
|
32
|
+
"react-syntax-highlighter": "^16.1.1"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@silurus/ooxml": "^0.80.2"
|
|
28
36
|
},
|
|
29
|
-
"dependencies": {},
|
|
30
37
|
"repository": {
|
|
31
38
|
"type": "git",
|
|
32
39
|
"url": "git+https://github.com/epam/ai-dial-chat.git",
|