@epam/ai-dial-attachment-canvas 1.1.0 → 1.1.2
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":"OoxmlContent.d.ts","sourceRoot":"","sources":["../../../src/components/OoxmlContent/OoxmlContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"OoxmlContent.d.ts","sourceRoot":"","sources":["../../../src/components/OoxmlContent/OoxmlContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqQzE,UAAU,iBAAiB;IACzB,gDAAgD;IAChD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2HAA2H;IAC3H,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,oHAAoH;AACpH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0V9C,CAAC"}
|
package/index.js
CHANGED
|
@@ -260,7 +260,11 @@ var G = {
|
|
|
260
260
|
});
|
|
261
261
|
return {
|
|
262
262
|
load: (e) => i.load(e, { format: "csv" }),
|
|
263
|
-
destroy: () => i.destroy()
|
|
263
|
+
destroy: () => i.destroy(),
|
|
264
|
+
resize: () => {
|
|
265
|
+
let { width: t, height: n } = e.getBoundingClientRect();
|
|
266
|
+
return t > 0 && (r.style.width = `${t}px`), n > 0 && (r.style.height = `${n}px`), i.relayout();
|
|
267
|
+
}
|
|
264
268
|
};
|
|
265
269
|
}
|
|
266
270
|
case r.Pptx: {
|
|
@@ -370,7 +374,9 @@ var G = {
|
|
|
370
374
|
},
|
|
371
375
|
onGeometryInvalidated: s
|
|
372
376
|
}, f = () => {
|
|
373
|
-
i || (r = new ResizeObserver(
|
|
377
|
+
i || (r = new ResizeObserver(() => {
|
|
378
|
+
n?.viewer.resize?.(), s();
|
|
379
|
+
}), r.observe(e));
|
|
374
380
|
};
|
|
375
381
|
return e.addEventListener("scroll", s, !0), k.current = s, (async () => {
|
|
376
382
|
try {
|
|
@@ -387,7 +393,8 @@ var G = {
|
|
|
387
393
|
r.destroy();
|
|
388
394
|
return;
|
|
389
395
|
}
|
|
390
|
-
n = { viewer: r }, T.current = void 0,
|
|
396
|
+
if (n = { viewer: r }, T.current = void 0, await r.load(t.url), i) return;
|
|
397
|
+
f();
|
|
391
398
|
}
|
|
392
399
|
if (i) return;
|
|
393
400
|
d(!1), await c();
|
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
|
+
"version": "1.1.2",
|
|
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.
|
|
32
|
+
"@epam/ai-dial-sidebar": "1.1.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.1.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.1.2",
|
|
36
36
|
"@epam/ai-dial-ui-kit": "^0.14.2",
|
|
37
37
|
"react": "^19.2.8"
|
|
38
38
|
},
|