@epam/ai-dial-attachment-canvas 1.1.0-dev.400 → 1.1.0-dev.405

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.
Files changed (49) hide show
  1. package/{LazyContentBoundary-CqvIcNMp.js → LazyContentBoundary-DkAcpR4S.js} +3 -2
  2. package/{PdfContent-CU1Q5IV6.js → PdfContent-BBUc0_SC.js} +1 -1
  3. package/{renderer-module-contract-BNGz8HvO-BmSLiM0k.js → bounded-raw-part-cache-BfbSxRIL-DD07NKh9.js} +2448 -8979
  4. package/chart-ex-B0DgG3Dt.js +1009 -0
  5. package/comment-occurrence-CqejEuts-7SeKCBXk.js +6 -0
  6. package/comment-ui-runtime-DEtgcmj7-B1G7PH4z.js +170 -0
  7. package/comment-ui-runtime-TLHustXJ-DWCXG2mL.js +2 -0
  8. package/comment-ui-runtime-lXwVOgjW-Be4RALsI.js +112 -0
  9. package/comments-CAn2A_Xh-CdgNAj0h.js +282 -0
  10. package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
  11. package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -1
  12. package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
  13. package/components/McpAppCanvasRenderer/McpAppCanvasRenderer.d.ts.map +1 -1
  14. package/components/OoxmlContent/OoxmlContent.d.ts +7 -3
  15. package/components/OoxmlContent/OoxmlContent.d.ts.map +1 -1
  16. package/delimited-text-worker-host-DcHj_JZt-DWJmaPag.js +25 -0
  17. package/docx-B9qBTEkj.js +29822 -0
  18. package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts +1 -1
  19. package/index.css +1 -1
  20. package/index.d.ts +9 -7
  21. package/index.d.ts.map +1 -1
  22. package/index.js +446 -359
  23. package/line-distribute-IsUGfHXm-DeITjLzJ.js +1234 -0
  24. package/line-metrics-CBbw80Ko-DoOuwYxZ.js +60 -0
  25. package/models/attachment-canvas.d.ts +19 -5
  26. package/models/attachment-canvas.d.ts.map +1 -1
  27. package/package.json +5 -5
  28. package/pptx-dkJw0-Vx.js +9179 -0
  29. package/read-only-comment-decoration-BTnWEeo5-BNhbteYc.js +94 -0
  30. package/read-only-comment-margin-plStyGfE-mggNAMB_.js +189 -0
  31. package/render-worker-host-BEfLZvSL-COy91Rd8.js +7 -0
  32. package/render-worker-host-Ba6Fchqr-DZeKpMWD.js +7 -0
  33. package/render-worker-host-C3xwtHnv-BBGHFdo9.js +7 -0
  34. package/renderer-module-contract-Cu-GKuPd-Bt0YZuzB.js +10063 -0
  35. package/types/attachment-canvas.d.ts +3 -2
  36. package/types/attachment-canvas.d.ts.map +1 -1
  37. package/utils/content.d.ts +3 -3
  38. package/utils/content.d.ts.map +1 -1
  39. package/utils/download.d.ts.map +1 -1
  40. package/visible-index-DPoQYSDt-9lRc-2Ik.js +162 -0
  41. package/xlsx-BAXMTJTG.js +8585 -0
  42. package/docx-TK1kGI6t.js +0 -27179
  43. package/highlight-rect-BuX5rWP4-BMOCuZYw.js +0 -1037
  44. package/pptx-DfVqSUxc.js +0 -7410
  45. package/render-worker-host-Br7ZDyGE-ByESfBjH.js +0 -7
  46. package/render-worker-host-CM1JXVqg-DGwZpsUd.js +0 -7
  47. package/render-worker-host-DFtd9Z-J-DU7fugLI.js +0 -7
  48. package/visible-index-BjesVGhg-DvGeguMs.js +0 -133
  49. package/xlsx-44AZTEry.js +0 -7800
@@ -14,11 +14,12 @@ export declare enum AttachmentContentType {
14
14
  Unsupported = "unsupported",
15
15
  Error = "error"
16
16
  }
17
- /** Supported Office Open XML document formats. */
17
+ /** Supported document formats rendered by the bundled `@silurus/ooxml` runtime. */
18
18
  export declare enum OoxmlFileType {
19
19
  Docx = "docx",
20
20
  Xlsx = "xlsx",
21
- Pptx = "pptx"
21
+ Pptx = "pptx",
22
+ Csv = "csv"
22
23
  }
23
24
  /** The kind of failure that produced an `ErrorCanvasContent`. */
24
25
  export declare enum AttachmentErrorType {
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/types/attachment-canvas.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,YAAY;IAClB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,kDAAkD;AAClD,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,iEAAiE;AACjE,oBAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,UAAU,gBAAgB;IAC1B,wFAAwF;IACxF,SAAS,cAAc;CACxB"}
1
+ {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/types/attachment-canvas.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,YAAY;IAClB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,mFAAmF;AACnF,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,iEAAiE;AACjE,oBAAY,mBAAmB;IAC7B,8EAA8E;IAC9E,UAAU,gBAAgB;IAC1B,wFAAwF;IACxF,SAAS,cAAc;CACxB"}
@@ -1,10 +1,10 @@
1
1
  import { ErrorCanvasContent, UnsupportedCanvasContent } from '../models/attachment-canvas';
2
2
  import { OoxmlFileType } from '../types/attachment-canvas';
3
- /** Resolves a supported OOXML format from a MIME type or file extension. */
3
+ /** Resolves a format supported by the bundled `@silurus/ooxml` renderer from a MIME type or file extension. */
4
4
  export declare const getOoxmlFileType: (name: string, mimeType?: string) => OoxmlFileType | undefined;
5
- /** Returns true when a file can be rendered by the built-in OOXML viewer. */
5
+ /** Returns true when a file can be rendered by the built-in `@silurus/ooxml` viewer. */
6
6
  export declare const isOoxmlPreviewable: (name: string, mimeType?: string) => boolean;
7
- /** Returns the canonical OOXML MIME type recognized from `name`'s extension or `mimeType`, or `undefined` if neither matches a supported format. */
7
+ /** Returns the canonical MIME type recognized from `name`'s extension or `mimeType`, or `undefined` if neither matches a supported renderer format. */
8
8
  export declare const getOoxmlMimeType: (name: string, mimeType?: string) => string | undefined;
9
9
  /** Returns true if the file name has an extension known to be text-previewable. */
10
10
  export declare const isTextPreviewable: (name: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/utils/content.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,aAAa,EACd,MAAM,4BAA4B,CAAC;AAoBpC,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,aAAa,GAAG,SAUlB,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,WAAW,MAAM,KAAG,OAC3B,CAAC;AAE3C,oJAAoJ;AACpJ,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,MAAM,GAAG,SAGX,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,OAIhD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM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,MAAM,MAAM,KACX,kBAID,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,GACvC,MAAM,MAAM,KACX,kBAID,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAmB3E,kEAAkE;AAClE,eAAO,MAAM,cAAc,GAAI,SAAS,uBAAuB,KAAG,OAwBjE,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAIhE,CAAC;AAmCF,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,GACpC,SAAS,uBAAuB,EAChC,WAAW,MAAM,KAChB,IA4DF,CAAC"}
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAoB3E,kEAAkE;AAClE,eAAO,MAAM,cAAc,GAAI,SAAS,uBAAuB,KAAG,OAwBjE,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,IAAI,CAIhE,CAAC;AAsCF,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,GACpC,SAAS,uBAAuB,EAChC,WAAW,MAAM,KAChB,IA4DF,CAAC"}
@@ -0,0 +1,162 @@
1
+ import { $ as e, $t as t } from "./renderer-module-contract-Cu-GKuPd-Bt0YZuzB.js";
2
+ import { En as n, Fn as r, In as i, Ln as a, en as o, fn as s } from "./bounded-raw-part-cache-BfbSxRIL-DD07NKh9.js";
3
+ //#region ../../node_modules/@silurus/ooxml/dist/resource-measurement-CclArDRs.js
4
+ function c(e, t) {
5
+ return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
6
+ }
7
+ var l = "duotone";
8
+ async function u(u, d, f, p, m = {}) {
9
+ let { offscreenFactory: h, failClosedOnDuotoneFailure: g = !1, ..._ } = m, v = f ? {
10
+ ..._,
11
+ maxRetainedPixels: Math.min(_.maxRetainedPixels ?? 33554432, Math.floor(t / 4))
12
+ } : _, y = f ? {
13
+ ...v,
14
+ targetWidthPx: void 0,
15
+ targetHeightPx: void 0
16
+ } : v, b = f ? i(p, l) : void 0, x = await r(u, d, p, y);
17
+ if (!f || !x) return x;
18
+ let S = await s(u, d, p, y, b, x), C = a(Number(x.width), Number(x.height), _.targetWidthPx, _.targetHeightPx), w = C ? `|resize:${C.resizeWidth}x${C.resizeHeight}` : "";
19
+ return n(l, `${c(S, f)}${w}${g ? "|strict" : ""}`, p, async () => {
20
+ let { w: t, h: n } = e(x);
21
+ if (t <= 0 || n <= 0) return {
22
+ bitmap: g ? null : x,
23
+ owned: !1
24
+ };
25
+ let r = await o(x, f, {
26
+ width: t,
27
+ height: n,
28
+ offscreenFactory: h,
29
+ targetWidthPx: _.targetWidthPx,
30
+ targetHeightPx: _.targetHeightPx
31
+ });
32
+ if (r === x) {
33
+ if (g) return {
34
+ bitmap: null,
35
+ owned: !1
36
+ };
37
+ if (!C) return {
38
+ bitmap: x,
39
+ owned: !1
40
+ };
41
+ if (typeof createImageBitmap > "u") throw Error("createImageBitmap is unavailable for duotone fallback resampling");
42
+ let e = await createImageBitmap(x, C);
43
+ return {
44
+ bitmap: e,
45
+ owned: e !== x
46
+ };
47
+ }
48
+ let i = r;
49
+ return {
50
+ bitmap: i,
51
+ owned: i !== x
52
+ };
53
+ }, b);
54
+ }
55
+ function d(e, t) {
56
+ if (!Number.isSafeInteger(e) || e < 0) throw Error(`${t} must be a non-negative safe integer`);
57
+ }
58
+ function f(e, t, n) {
59
+ return d(e, "resource measurement"), d(t, "resource measurement"), d(n, "resource measurement limit"), e > n || t > n || t > n - e ? n === 2 ** 53 - 1 ? n : n + 1 : e + t;
60
+ }
61
+ function p(e, t = 2 ** 53 - 1) {
62
+ d(t, "resource measurement limit");
63
+ let n = 0;
64
+ for (let r = 0; r < e.length; r += 1) {
65
+ let i = e.charCodeAt(r), a;
66
+ if (i <= 127) a = 1;
67
+ else if (i <= 2047) a = 2;
68
+ else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
69
+ let t = e.charCodeAt(r + 1);
70
+ t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 3;
71
+ } else a = 3;
72
+ if (n = f(n, a, t), n > t) return n;
73
+ }
74
+ return n;
75
+ }
76
+ function m(e, t = 2 ** 53 - 1) {
77
+ d(t, "resource measurement limit");
78
+ let n = f(0, 2, t);
79
+ if (n > t) return n;
80
+ for (let r = 0; r < e.length; r += 1) {
81
+ let i = e.charCodeAt(r), a;
82
+ if (i === 34 || i === 92 || i === 8 || i === 9 || i === 10 || i === 12 || i === 13) a = 2;
83
+ else if (i <= 31) a = 6;
84
+ else if (i <= 127) a = 1;
85
+ else if (i <= 2047) a = 2;
86
+ else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
87
+ let t = e.charCodeAt(r + 1);
88
+ t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 6;
89
+ } else a = i >= 55296 && i <= 57343 ? 6 : 3;
90
+ if (n = f(n, a, t), n > t) return n;
91
+ }
92
+ return n;
93
+ }
94
+ function h(e, t) {
95
+ return f(0, e, t);
96
+ }
97
+ function g(e, t = 2 ** 53 - 1, n = !1) {
98
+ if (d(t, "resource measurement limit"), e === null) return {
99
+ jsonBytes: h(4, t),
100
+ stringValueUtf8Bytes: 0
101
+ };
102
+ if (typeof e == "string") return {
103
+ jsonBytes: m(e, t),
104
+ stringValueUtf8Bytes: p(e, t)
105
+ };
106
+ if (typeof e == "boolean") return {
107
+ jsonBytes: h(e ? 4 : 5, t),
108
+ stringValueUtf8Bytes: 0
109
+ };
110
+ if (typeof e == "number") return {
111
+ jsonBytes: h((Number.isFinite(e) ? String(Object.is(e, -0) ? 0 : e) : "null").length, t),
112
+ stringValueUtf8Bytes: 0
113
+ };
114
+ if (typeof e == "bigint") throw TypeError("BigInt values cannot be serialized to JSON");
115
+ if (Array.isArray(e)) {
116
+ let n = h(2, t), r = 0;
117
+ for (let i = 0; i < e.length; i += 1) {
118
+ i !== 0 && (n = f(n, 1, t));
119
+ let a = g(e[i], t, !0);
120
+ n = f(n, a.jsonBytes, t), r = f(r, a.stringValueUtf8Bytes, t);
121
+ }
122
+ return {
123
+ jsonBytes: n,
124
+ stringValueUtf8Bytes: r
125
+ };
126
+ }
127
+ if (typeof e == "object") {
128
+ let n = h(2, t), r = 0, i = 0;
129
+ for (let [a, o] of Object.entries(e)) {
130
+ if (o === void 0 || typeof o == "function" || typeof o == "symbol") continue;
131
+ i++ !== 0 && (n = f(n, 1, t)), n = f(n, m(a, t), t), n = f(n, 1, t);
132
+ let e = g(o, t);
133
+ n = f(n, e.jsonBytes, t), r = f(r, e.stringValueUtf8Bytes, t);
134
+ }
135
+ return {
136
+ jsonBytes: n,
137
+ stringValueUtf8Bytes: r
138
+ };
139
+ }
140
+ return {
141
+ jsonBytes: n ? h(4, t) : 0,
142
+ stringValueUtf8Bytes: 0
143
+ };
144
+ }
145
+ //#endregion
146
+ //#region ../../node_modules/@silurus/ooxml/dist/visible-index-DPoQYSDt.js
147
+ function _(e, t, n, r) {
148
+ for (let i = e + t; i >= 0 && i < r; i += t) if (!n(i)) return i;
149
+ return e;
150
+ }
151
+ function v(e, t, n) {
152
+ if (n === 0 || !t(e)) return e;
153
+ let r = _(e, 1, t, n);
154
+ return r === e ? _(e, -1, t, n) : r;
155
+ }
156
+ function y(e, t) {
157
+ let n = 0;
158
+ for (let r = 0; r < t; r++) e(r) || n++;
159
+ return n;
160
+ }
161
+ //#endregion
162
+ export { f as a, u as c, c as i, y as n, g as o, v as r, p as s, _ as t };