@epam/ai-dial-attachment-canvas 1.1.0-dev.30 → 1.1.0-dev.38
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/PdfContent/PdfContent.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +48 -48
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdfContent.d.ts","sourceRoot":"","sources":["../../../src/components/PdfContent/PdfContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PdfContent.d.ts","sourceRoot":"","sources":["../../../src/components/PdfContent/PdfContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAyF1C,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
._GzYRV{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;line-height:1.2}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{-webkit-user-select:none;user-select:none;margin-right:5px;font-size:1.2em}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{color:#000;margin-right:5px;font-weight:600}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{color:#fdf6e3;margin-right:5px;font-weight:bolder}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._body_t1fhd_2{color:var(--ac-text,var(--text-primary,#161b2d))}._statusLabel_t1fhd_6{color:var(--text-secondary,#575f73)}._errorIcon_t1fhd_10{color:var(--text-error,#ae2f2f)}._jsonWrapper_t1fhd_14{border-color:var(--stroke-secondary,#d1dbea);background-color:var(--bg-layer-1,#e0e6f0)}._jsonContainer_t1fhd_19{font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;font-size:.8125rem;line-height:1.6}._jsonLabel_t1fhd_25,._jsonClickableLabel_t1fhd_29{color:var(--text-primary,#161b2d)}._jsonPunctuation_t1fhd_33{color:var(--text-secondary,#575f73)}._jsonStringValue_t1fhd_37{color:var(--text-success,#007274)}._jsonNumberValue_t1fhd_41{color:var(--text-accent-primary,#124ace)}._jsonBooleanValue_t1fhd_45{color:var(--text-warning,#7f6300)}._jsonNullValue_t1fhd_49,._jsonExpandIcon_t1fhd_53{color:var(--text-secondary,#575f73)}._jsonExpandIcon_t1fhd_53:hover{color:var(--text-primary,#161b2d)}._jsonExpandIcon_t1fhd_53:after{content:"▶";vertical-align:middle;font-size:.6em}._jsonCollapseIcon_t1fhd_65{color:var(--text-secondary,#575f73)}._jsonCollapseIcon_t1fhd_65:hover{color:var(--text-primary,#161b2d)}._jsonCollapseIcon_t1fhd_65:after{content:"▼";vertical-align:middle;font-size:.6em}.pdf-container:has(+.pdf-container){padding:0}._jsonCollapsedContent_t1fhd_81{color:var(--text-secondary,#575f73);background-color:var(--bg-layer-3,#fcfcfc);font-size:.75em}._jsonCollapsedContent_t1fhd_81:after{content:"…"}
|
|
1
|
+
._GzYRV{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;line-height:1.2}._3eOF8{margin-right:5px;font-weight:700}._3eOF8+._3eOF8{margin-left:-5px}._1MFti{cursor:pointer}._f10Tu{-webkit-user-select:none;user-select:none;margin-right:5px;font-size:1.2em}._1UmXx:after{content:"▸"}._1LId0:after{content:"▾"}._1pNG9{margin-right:5px}._1pNG9:after{content:"...";font-size:.8em}._2IvMF{background:#eee}._2bkNM{margin:0;padding:0 10px}._1BXBN{margin:0;padding:0}._1MGIk{color:#000;margin-right:5px;font-weight:600}._3uHL6{color:#000}._2T6PJ,._1Gho6{color:#df113a}._vGjyY{color:#2a3f3c}._1bQdo{color:#0b75f5}._3zQKs{color:#469038}._1xvuR{color:#43413d}._oLqym,._2AXVT,._2KJWg{color:#000}._11RoI{background:#002b36}._17H2C,._3QHg2,._3fDAz{color:#fdf6e3}._2bSDX{color:#fdf6e3;margin-right:5px;font-weight:bolder}._gsbQL{color:#fdf6e3}._LaAZe,._GTKgm{color:#81b5ac}._Chy1W{color:#cb4b16}._2bveF{color:#d33682}._2vRm-{color:#ae81ff}._1prJR{color:#268bd2}._viewer_1gfxm_1 .pdf-container{min-width:max-content}._body_t1fhd_2{color:var(--ac-text,var(--text-primary,#161b2d))}._statusLabel_t1fhd_6{color:var(--text-secondary,#575f73)}._errorIcon_t1fhd_10{color:var(--text-error,#ae2f2f)}._jsonWrapper_t1fhd_14{border-color:var(--stroke-secondary,#d1dbea);background-color:var(--bg-layer-1,#e0e6f0)}._jsonContainer_t1fhd_19{font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;font-size:.8125rem;line-height:1.6}._jsonLabel_t1fhd_25,._jsonClickableLabel_t1fhd_29{color:var(--text-primary,#161b2d)}._jsonPunctuation_t1fhd_33{color:var(--text-secondary,#575f73)}._jsonStringValue_t1fhd_37{color:var(--text-success,#007274)}._jsonNumberValue_t1fhd_41{color:var(--text-accent-primary,#124ace)}._jsonBooleanValue_t1fhd_45{color:var(--text-warning,#7f6300)}._jsonNullValue_t1fhd_49,._jsonExpandIcon_t1fhd_53{color:var(--text-secondary,#575f73)}._jsonExpandIcon_t1fhd_53:hover{color:var(--text-primary,#161b2d)}._jsonExpandIcon_t1fhd_53:after{content:"▶";vertical-align:middle;font-size:.6em}._jsonCollapseIcon_t1fhd_65{color:var(--text-secondary,#575f73)}._jsonCollapseIcon_t1fhd_65:hover{color:var(--text-primary,#161b2d)}._jsonCollapseIcon_t1fhd_65:after{content:"▼";vertical-align:middle;font-size:.6em}.pdf-container:has(+.pdf-container){padding:0}._jsonCollapsedContent_t1fhd_81{color:var(--text-secondary,#575f73);background-color:var(--bg-layer-3,#fcfcfc);font-size:.75em}._jsonCollapsedContent_t1fhd_81:after{content:"…"}
|
|
2
2
|
/*$vite$:1*/
|
package/index.js
CHANGED
|
@@ -17009,53 +17009,53 @@ var Eo = po.map((e) => ({
|
|
|
17009
17009
|
className: "dial-tiny-text text-primary",
|
|
17010
17010
|
children: e
|
|
17011
17011
|
})]
|
|
17012
|
-
}), Ao = ({ url: e, highlights: t, selectedHighlightId: n, loadPdf: r }) => {
|
|
17013
|
-
let i = c(), [
|
|
17012
|
+
}), Ao = { viewer: "_viewer_1gfxm_1" }, jo = ({ url: e, highlights: t, selectedHighlightId: n, loadPdf: r }) => {
|
|
17013
|
+
let i = c(), [o, s] = j(0), [l, u] = j(/* @__PURE__ */ new Map()), [d, f] = j(() => n ? t.find((e) => e.id === n)?.bboxes[0]?.page ?? 1 : 1), p = se(null), m = se(/* @__PURE__ */ new Map());
|
|
17014
17014
|
A(() => {
|
|
17015
17015
|
if (!n) return;
|
|
17016
17016
|
let e = t.find((e) => e.id === n)?.bboxes[0]?.page;
|
|
17017
|
-
e != null &&
|
|
17017
|
+
e != null && f(e);
|
|
17018
17018
|
}, [n, t]), A(() => {
|
|
17019
|
-
|
|
17019
|
+
m.current.get(d)?.scrollIntoView({
|
|
17020
17020
|
block: "center",
|
|
17021
17021
|
behavior: "smooth"
|
|
17022
17022
|
});
|
|
17023
|
-
}, [
|
|
17024
|
-
let
|
|
17025
|
-
|
|
17026
|
-
}, []), g = k((e) => {
|
|
17027
|
-
f.current = e;
|
|
17023
|
+
}, [d, o]);
|
|
17024
|
+
let h = oe(() => i ? [] : Array.from({ length: o }, (e, t) => t + 1), [i, o]), g = k((e) => {
|
|
17025
|
+
u((t) => new Map([...t, ...e]));
|
|
17028
17026
|
}, []), _ = k((e) => {
|
|
17029
|
-
|
|
17027
|
+
p.current = e;
|
|
17028
|
+
}, []), v = k((e) => {
|
|
17029
|
+
f(e), p.current?.navigateToPage(e);
|
|
17030
17030
|
}, []);
|
|
17031
17031
|
return /* @__PURE__ */ N("div", {
|
|
17032
17032
|
className: "flex h-full overflow-hidden",
|
|
17033
|
-
children: [
|
|
17033
|
+
children: [o > 0 && /* @__PURE__ */ M("div", {
|
|
17034
17034
|
className: "w-30 me-1 shrink-0 overflow-auto pe-0.5 mobile:hidden",
|
|
17035
|
-
children:
|
|
17035
|
+
children: h.map((e) => /* @__PURE__ */ M("div", {
|
|
17036
17036
|
ref: (t) => {
|
|
17037
|
-
t ?
|
|
17037
|
+
t ? m.current.set(e, t) : m.current.delete(e);
|
|
17038
17038
|
},
|
|
17039
17039
|
children: /* @__PURE__ */ M(ko, {
|
|
17040
17040
|
pageNum: e,
|
|
17041
|
-
onSelectPage:
|
|
17042
|
-
isSelected:
|
|
17043
|
-
isLoading: !
|
|
17044
|
-
thumbnailUrl:
|
|
17041
|
+
onSelectPage: v,
|
|
17042
|
+
isSelected: d === e,
|
|
17043
|
+
isLoading: !l.has(e),
|
|
17044
|
+
thumbnailUrl: l.get(e) ?? null
|
|
17045
17045
|
})
|
|
17046
17046
|
}, e))
|
|
17047
17047
|
}), /* @__PURE__ */ M("div", {
|
|
17048
|
-
className: "min-w-0 flex-1 overflow-
|
|
17048
|
+
className: a("min-w-0 flex-1 overflow-auto", Ao.viewer),
|
|
17049
17049
|
children: /* @__PURE__ */ M(Oo, {
|
|
17050
17050
|
fileUrl: e,
|
|
17051
17051
|
loadFileCb: r ?? pe,
|
|
17052
17052
|
highlights: t,
|
|
17053
17053
|
selectedHighlightId: n,
|
|
17054
17054
|
showOccurrences: !1,
|
|
17055
|
-
onTotalPagesChange:
|
|
17056
|
-
thumbnailPageNumbers:
|
|
17057
|
-
onThumbnailsLoaded:
|
|
17058
|
-
onViewerReady:
|
|
17055
|
+
onTotalPagesChange: s,
|
|
17056
|
+
thumbnailPageNumbers: h,
|
|
17057
|
+
onThumbnailsLoaded: g,
|
|
17058
|
+
onViewerReady: _
|
|
17059
17059
|
})
|
|
17060
17060
|
})]
|
|
17061
17061
|
});
|
|
@@ -17075,7 +17075,7 @@ var Eo = po.map((e) => ({
|
|
|
17075
17075
|
jsonExpandIcon: "_jsonExpandIcon_t1fhd_53",
|
|
17076
17076
|
jsonCollapseIcon: "_jsonCollapseIcon_t1fhd_65",
|
|
17077
17077
|
jsonCollapsedContent: "_jsonCollapsedContent_t1fhd_81"
|
|
17078
|
-
},
|
|
17078
|
+
}, Mo = 2e3, No = ({ url: e, fileName: t, loadErrorLabel: n }) => {
|
|
17079
17079
|
let [r, i] = j(!1);
|
|
17080
17080
|
return A(() => {
|
|
17081
17081
|
i(!1);
|
|
@@ -17095,13 +17095,13 @@ var Eo = po.map((e) => ({
|
|
|
17095
17095
|
className: "max-h-full max-w-full object-contain",
|
|
17096
17096
|
onError: () => i(!0)
|
|
17097
17097
|
});
|
|
17098
|
-
},
|
|
17098
|
+
}, Po = ie(({ isOpen: t, isLoading: i = !1, onClose: o, content: s, fileName: c, labels: { ariaLabel: f, closeLabel: p = "Close", downloadLabel: m = "Download", copyTextLabel: g = "Copy text", copiedTextLabel: _ = "Copied!", copyMarkdownLabel: y = "Copy as Markdown", copiedMarkdownLabel: b = "Copied!", copyJsonLabel: x = "Copy as JSON", copiedJsonLabel: w = "Copied!", unsupportedLabel: T = "Preview is not supported for this file", loadErrorLabel: D = "Failed to load file", forbiddenErrorLabel: re = "You don't have permission to access this file" }, onDownload: O, onCopyText: ie, onCopyMarkdown: ae, onCopyJson: A, isMobile: pe = !1, defaultWidth: me, minWidth: he = 600, maxWidth: ge = 1500, onResizeStop: _e, styles: F, codeBlockTheme: ve, loadPdf: ye }) => {
|
|
17099
17099
|
let [be, xe] = j(!1), [Se, I] = j(!1), [L, Ce] = j(!1), R = se(null), we = se(null), z = se(null), Te = k(() => {
|
|
17100
|
-
ie?.(), R.current != null && clearTimeout(R.current), xe(!0), R.current = setTimeout(() => xe(!1),
|
|
17100
|
+
ie?.(), R.current != null && clearTimeout(R.current), xe(!0), R.current = setTimeout(() => xe(!1), Mo);
|
|
17101
17101
|
}, [ie]), Ee = k(() => {
|
|
17102
|
-
ae?.(), we.current != null && clearTimeout(we.current), I(!0), we.current = setTimeout(() => I(!1),
|
|
17102
|
+
ae?.(), we.current != null && clearTimeout(we.current), I(!0), we.current = setTimeout(() => I(!1), Mo);
|
|
17103
17103
|
}, [ae]), De = k(() => {
|
|
17104
|
-
A?.(), z.current != null && clearTimeout(z.current), Ce(!0), z.current = setTimeout(() => Ce(!1),
|
|
17104
|
+
A?.(), z.current != null && clearTimeout(z.current), Ce(!0), z.current = setTimeout(() => Ce(!1), Mo);
|
|
17105
17105
|
}, [A]), { colors: Oe, typography: ke, bodyClassName: Ae, className: je, cssVars: Me, panelStyles: Ne } = F ?? {}, B = oe(() => ({
|
|
17106
17106
|
...r({ "--ac-text": Oe?.text }),
|
|
17107
17107
|
...Me
|
|
@@ -17121,7 +17121,7 @@ var Eo = po.map((e) => ({
|
|
|
17121
17121
|
className: a("whitespace-pre-wrap break-words", $.body, ke?.fontClassName),
|
|
17122
17122
|
children: s.text
|
|
17123
17123
|
});
|
|
17124
|
-
case P.Image: return /* @__PURE__ */ M(
|
|
17124
|
+
case P.Image: return /* @__PURE__ */ M(No, {
|
|
17125
17125
|
url: s.url,
|
|
17126
17126
|
fileName: c,
|
|
17127
17127
|
loadErrorLabel: D
|
|
@@ -17170,7 +17170,7 @@ var Eo = po.map((e) => ({
|
|
|
17170
17170
|
})
|
|
17171
17171
|
})
|
|
17172
17172
|
});
|
|
17173
|
-
case P.Pdf: return /* @__PURE__ */ M(
|
|
17173
|
+
case P.Pdf: return /* @__PURE__ */ M(jo, {
|
|
17174
17174
|
fileName: c,
|
|
17175
17175
|
url: s.url,
|
|
17176
17176
|
highlights: s.highlights ?? [],
|
|
@@ -17268,15 +17268,15 @@ var Eo = po.map((e) => ({
|
|
|
17268
17268
|
children: i ? /* @__PURE__ */ M(v, {}) : U
|
|
17269
17269
|
})
|
|
17270
17270
|
});
|
|
17271
|
-
}),
|
|
17271
|
+
}), Fo = {
|
|
17272
17272
|
type: P.PlainText,
|
|
17273
17273
|
text: ""
|
|
17274
|
-
},
|
|
17274
|
+
}, Io = (e) => {
|
|
17275
17275
|
if (!(e.type !== P.Image && e.type !== P.Audio && e.type !== P.Pdf)) return e.url.startsWith("blob:") ? e.url : void 0;
|
|
17276
|
-
},
|
|
17277
|
-
|
|
17278
|
-
var
|
|
17279
|
-
let [t, n] = j(!1), [r, i] = j(!1), [a, o] = j(
|
|
17276
|
+
}, Lo = O(void 0);
|
|
17277
|
+
Lo.displayName = "AttachmentCanvasContext";
|
|
17278
|
+
var Ro = ({ children: e }) => {
|
|
17279
|
+
let [t, n] = j(!1), [r, i] = j(!1), [a, o] = j(Fo), [s, c] = j(void 0), l = k((e) => {
|
|
17280
17280
|
c(e), i(!0), n(!0);
|
|
17281
17281
|
}, []), u = k((e, t) => {
|
|
17282
17282
|
o(e), c(t), i(!1), n(!0);
|
|
@@ -17284,9 +17284,9 @@ var Lo = ({ children: e }) => {
|
|
|
17284
17284
|
n(!1), i(!1);
|
|
17285
17285
|
}, []);
|
|
17286
17286
|
return A(() => () => {
|
|
17287
|
-
let e =
|
|
17287
|
+
let e = Io(a);
|
|
17288
17288
|
e != null && URL.revokeObjectURL(e);
|
|
17289
|
-
}, [a]), /* @__PURE__ */ M(
|
|
17289
|
+
}, [a]), /* @__PURE__ */ M(Lo.Provider, {
|
|
17290
17290
|
value: oe(() => ({
|
|
17291
17291
|
isOpen: t,
|
|
17292
17292
|
isLoading: r,
|
|
@@ -17306,12 +17306,12 @@ var Lo = ({ children: e }) => {
|
|
|
17306
17306
|
]),
|
|
17307
17307
|
children: e
|
|
17308
17308
|
});
|
|
17309
|
-
},
|
|
17310
|
-
let e = ae(
|
|
17309
|
+
}, zo = () => {
|
|
17310
|
+
let e = ae(Lo);
|
|
17311
17311
|
if (!e) throw Error("useAttachmentCanvas must be used within an AttachmentCanvasProvider");
|
|
17312
17312
|
return e;
|
|
17313
|
-
},
|
|
17314
|
-
let { ariaLabel: o = "Attachment preview", closeLabel: s = "Close", downloadLabel: c = "Download", unsupportedLabel: l = "Preview is not supported for this file", loadErrorLabel: u = "Failed to load file", forbiddenErrorLabel: d = "You don't have permission to access this file", copyTextLabel: f, copiedTextLabel: p, copyMarkdownLabel: m, copiedMarkdownLabel: h, copyJsonLabel: g, copiedJsonLabel: _ } = e ?? {}, { isOpen: v, isLoading: y, content: b, fileName: x, closeCanvas: S } =
|
|
17313
|
+
}, Bo = ie(({ labels: e, isMobile: t = !1, defaultWidth: n, maxWidth: r, codeBlockTheme: a }) => {
|
|
17314
|
+
let { ariaLabel: o = "Attachment preview", closeLabel: s = "Close", downloadLabel: c = "Download", unsupportedLabel: l = "Preview is not supported for this file", loadErrorLabel: u = "Failed to load file", forbiddenErrorLabel: d = "You don't have permission to access this file", copyTextLabel: f, copiedTextLabel: p, copyMarkdownLabel: m, copiedMarkdownLabel: h, copyJsonLabel: g, copiedJsonLabel: _ } = e ?? {}, { isOpen: v, isLoading: y, content: b, fileName: x, closeCanvas: S } = zo(), C = k(() => {
|
|
17315
17315
|
me(b, x);
|
|
17316
17316
|
}, [b, x]), w = k(() => {
|
|
17317
17317
|
b.type === P.PlainText && i(b.text);
|
|
@@ -17320,7 +17320,7 @@ var Lo = ({ children: e }) => {
|
|
|
17320
17320
|
}, [b]), E = k(() => {
|
|
17321
17321
|
b.type === P.Json && i(JSON.stringify(b.value, null, 2));
|
|
17322
17322
|
}, [b]);
|
|
17323
|
-
return /* @__PURE__ */ M(
|
|
17323
|
+
return /* @__PURE__ */ M(Po, {
|
|
17324
17324
|
isOpen: v,
|
|
17325
17325
|
isLoading: y,
|
|
17326
17326
|
onClose: S,
|
|
@@ -17349,20 +17349,20 @@ var Lo = ({ children: e }) => {
|
|
|
17349
17349
|
maxWidth: r,
|
|
17350
17350
|
codeBlockTheme: a
|
|
17351
17351
|
});
|
|
17352
|
-
}),
|
|
17352
|
+
}), Vo = new Set(/* @__PURE__ */ "txt.md.markdown.json.jsonl.ndjson.xml.csv.tsv.yaml.yml.toml.ini.conf.cfg.html.htm.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(".")), Ho = (e) => {
|
|
17353
17353
|
let t = e.lastIndexOf(".");
|
|
17354
|
-
return t === -1 ? !1 :
|
|
17355
|
-
},
|
|
17354
|
+
return t === -1 ? !1 : Vo.has(e.slice(t + 1).toLowerCase());
|
|
17355
|
+
}, Uo = (e) => ({
|
|
17356
17356
|
type: P.Unsupported,
|
|
17357
17357
|
...e != null && { url: e }
|
|
17358
|
-
}),
|
|
17358
|
+
}), Wo = (e) => ({
|
|
17359
17359
|
type: P.Error,
|
|
17360
17360
|
errorType: de.LoadFailed,
|
|
17361
17361
|
...e != null && { url: e }
|
|
17362
|
-
}),
|
|
17362
|
+
}), Go = (e) => ({
|
|
17363
17363
|
type: P.Error,
|
|
17364
17364
|
errorType: de.Forbidden,
|
|
17365
17365
|
...e != null && { url: e }
|
|
17366
17366
|
});
|
|
17367
17367
|
//#endregion
|
|
17368
|
-
export {
|
|
17368
|
+
export { Po as AttachmentCanvas, Bo as AttachmentCanvasContainer, Ro as AttachmentCanvasProvider, P as AttachmentContentType, de as AttachmentErrorType, Go as createForbiddenCanvasContent, Wo as createLoadErrorCanvasContent, Uo as createUnsupportedCanvasContent, me as downloadAttachmentContent, fe as isDownloadable, Ho as isTextPreviewable, zo as useAttachmentCanvas };
|
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, JSON, markdown, and plain text",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.38",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-sidebar": "1.1.0-dev.
|
|
20
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.38",
|
|
21
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.38",
|
|
22
22
|
"@epam/ai-dial-ui-kit": "0.12.0-dev.36",
|
|
23
23
|
"@epam/pdf-highlighter-kit": ">=0.0.14",
|
|
24
24
|
"@tabler/icons-react": "^3.44.0",
|