@silurus/ooxml 0.89.5 → 0.89.6
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/dist/assets/{render-worker-CeSlHUkL.js → render-worker-Ba4LYMJd.js} +1 -1
- package/dist/assets/{render-worker-ph4iY7VS.js → render-worker-DkqinUC6.js} +15 -15
- package/dist/{comment-ui-runtime-u7zk49cg.js → comment-ui-runtime-hfewTmVJ.js} +2 -2
- package/dist/{document-model-source-qsnWuGuH.js → document-model-source-BUTSwkyP.js} +3 -3
- package/dist/{document-pull-client-Ckq8THk6.js → document-pull-client-C_D779tO.js} +6 -5
- package/dist/{docx-DRojqjH-.js → docx-BC2HQtjg.js} +3 -3
- package/dist/{docx-ChGrdRyp.js → docx-BfLZeiwa.js} +4 -4
- package/dist/{docx-model-source-D0dmXDOs.js → docx-model-source-IjrOZgnl.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{host-layout-measure-DP918TOq.js → host-layout-measure-DJvccDI3.js} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internal-companion.mjs +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{render-worker-host-DSrgUCkT.js → render-worker-host-D_0g-TQ2.js} +1 -1
- package/dist/{render-worker-host-DYUY1TuP.js → render-worker-host-DjBotZNL.js} +1 -1
- package/dist/{renderer-BYt3nsdR.js → renderer-IFuBkPvF.js} +844 -769
- package/dist/{workbook-model-source-CbEnWvU-.js → workbook-model-source-DBfVsWj7.js} +3 -3
- package/dist/{xlsx-CVVWeouT.js → xlsx-CCMRAxPB.js} +174 -169
- package/dist/{xlsx-Deg8dBy8.js → xlsx-CD1VeDIg.js} +1 -1
- package/dist/{xlsx-model-source-D2rRp5-N.js → xlsx-model-source-udh7Q4WB.js} +2 -2
- package/dist/xlsx.mjs +1 -1
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./comment-overlay-controller-Crm5Syhx.js";
|
|
2
|
-
import { L as t } from "./document-pull-client-
|
|
3
|
-
import { f as n } from "./docx-
|
|
2
|
+
import { L as t } from "./document-pull-client-C_D779tO.js";
|
|
3
|
+
import { f as n } from "./docx-BfLZeiwa.js";
|
|
4
4
|
import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-Ee9Y6vPg.js";
|
|
5
5
|
import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-B06YO2zk.js";
|
|
6
6
|
function p(e, r) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dn as e, N as t, On as n, Xt as r, j as i, qt as a } from "./bounded-raw-part-cache-B8t03tSP.js";
|
|
2
2
|
import { P as o, b as s } from "./comment-overlay-controller-Crm5Syhx.js";
|
|
3
|
-
import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-
|
|
4
|
-
import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-
|
|
3
|
+
import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-C_D779tO.js";
|
|
4
|
+
import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-BfLZeiwa.js";
|
|
5
5
|
import { T as D } from "./canvas-viewer-mechanics-DI38gHNV.js";
|
|
6
6
|
import { n as O } from "./renderer-module-contract-BuTx2FWJ.js";
|
|
7
7
|
import { n as k, o as A, r as j } from "./model-source-COXegBNA.js";
|
|
@@ -54,7 +54,7 @@ async function F(j, M = {}, N) {
|
|
|
54
54
|
let a = k(i, "docx");
|
|
55
55
|
try {
|
|
56
56
|
H.setSourceBytes(t.byteLength), H.checkpoint("container ready");
|
|
57
|
-
let i = V === "worker" ? (await import("./render-worker-host-
|
|
57
|
+
let i = V === "worker" ? (await import("./render-worker-host-DjBotZNL.js")).createRenderWorker() : new (await (import("./worker-source-D3NwPe6l.js"))).default(), k, A, j = !1, U = () => {
|
|
58
58
|
j || !k || (j = !0, k.destroy());
|
|
59
59
|
}, W = I(i, a, M, (e) => {
|
|
60
60
|
k && P(k, e);
|
|
@@ -18602,17 +18602,18 @@ function fT(e, t) {
|
|
|
18602
18602
|
yPt: t.yPt + i.y / Jw * t.heightPt
|
|
18603
18603
|
});
|
|
18604
18604
|
}
|
|
18605
|
-
let i =
|
|
18605
|
+
let i = Infinity, a = -Infinity, o = Infinity, s = -Infinity;
|
|
18606
|
+
for (let e of r) i = Math.min(i, e.xPt), a = Math.max(a, e.xPt), o = Math.min(o, e.yPt), s = Math.max(s, e.yPt);
|
|
18606
18607
|
return {
|
|
18607
18608
|
polygon: {
|
|
18608
18609
|
edited: n.edited,
|
|
18609
18610
|
points: r
|
|
18610
18611
|
},
|
|
18611
18612
|
bounds: {
|
|
18612
|
-
xPt:
|
|
18613
|
-
yPt:
|
|
18614
|
-
widthPt:
|
|
18615
|
-
heightPt:
|
|
18613
|
+
xPt: i,
|
|
18614
|
+
yPt: o,
|
|
18615
|
+
widthPt: a - i,
|
|
18616
|
+
heightPt: s - o
|
|
18616
18617
|
}
|
|
18617
18618
|
};
|
|
18618
18619
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./chunk-D5OxutzX.js";
|
|
2
2
|
import { yo as t } from "./plot-area-frame-D3JtHvov.js";
|
|
3
3
|
import { B as n, F as r, H as i, N as a, U as o, j as s, lt as c, ot as l, qt as u } from "./bounded-raw-part-cache-B8t03tSP.js";
|
|
4
|
-
import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-
|
|
4
|
+
import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-C_D779tO.js";
|
|
5
5
|
import { n as _, t as ee } from "./abort-JztSoyw2.js";
|
|
6
6
|
import { n as v, r as te, t as y } from "./wasm-loader-KAOyLXzf.js";
|
|
7
7
|
import { t as b } from "./wasm-runtime-generation-BLweKv8r.js";
|
|
@@ -321,7 +321,7 @@ var X = "DOCX document session was aborted", Z = y(() => v(import.meta.url, "doc
|
|
|
321
321
|
async function ue(e, t) {
|
|
322
322
|
if (!t?.factory) throw TypeError("openDocxDocument requires a canvas factory");
|
|
323
323
|
if (t.legacyDoc !== void 0) {
|
|
324
|
-
let { openDocxSource: n } = await import("./docx-model-source-
|
|
324
|
+
let { openDocxSource: n } = await import("./docx-model-source-IjrOZgnl.js");
|
|
325
325
|
return n(e, t, Z);
|
|
326
326
|
}
|
|
327
327
|
let n = u(t.cjkFallback), r = await Y($(e), Z(), t, (e, t, n) => g(e, t, n));
|
|
@@ -343,7 +343,7 @@ async function ue(e, t) {
|
|
|
343
343
|
}
|
|
344
344
|
async function de(e, t = {}) {
|
|
345
345
|
if (t.legacyDoc !== void 0) {
|
|
346
|
-
let { materializeDocxSource: n } = await import("./docx-model-source-
|
|
346
|
+
let { materializeDocxSource: n } = await import("./docx-model-source-IjrOZgnl.js");
|
|
347
347
|
return n(e, t, Z);
|
|
348
348
|
}
|
|
349
349
|
return te(async () => {
|
|
@@ -3,7 +3,7 @@ import { _o as t, ja as n, vo as r, yo as i } from "./plot-area-frame-D3JtHvov.j
|
|
|
3
3
|
import { n as a, t as o } from "./cfb-guard-BIaHdonq.js";
|
|
4
4
|
import { Dn as s, En as c, H as l, M as u, N as d, On as f, V as p, Xt as m, Y as h, Yt as g, hn as _, j as v, lt as y, mt as b, ot as x, qt as S, t as ee, u as C } from "./bounded-raw-part-cache-B8t03tSP.js";
|
|
5
5
|
import { A as te, C as w, D as ne, E as T, M as re, N as ie, P as E, S as ae, T as D, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as he, k as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, t as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "./comment-overlay-controller-Crm5Syhx.js";
|
|
6
|
-
import { A as ke, B as Ae, C as je, D as O, E as Me, F as Ne, I as Pe, L as k, M as Fe, N as A, O as Ie, P as Le, R as Re, S as ze, T as Be, V as j, _ as Ve, a as He, b as Ue, c as We, f as Ge, h as Ke, j as M, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, y as N, z as at } from "./document-pull-client-
|
|
6
|
+
import { A as ke, B as Ae, C as je, D as O, E as Me, F as Ne, I as Pe, L as k, M as Fe, N as A, O as Ie, P as Le, R as Re, S as ze, T as Be, V as j, _ as Ve, a as He, b as Ue, c as We, f as Ge, h as Ke, j as M, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, y as N, z as at } from "./document-pull-client-C_D779tO.js";
|
|
7
7
|
import { f as ot, u as st } from "./pixel-budget-DI82Hn3R.js";
|
|
8
8
|
import { i as ct, t as lt } from "./tiff-contract-DEd8CGuz.js";
|
|
9
9
|
import { D as ut, E as dt, T as ft, a as pt, b as mt, c as ht, d as gt, f as _t, i as vt, l as yt, n as bt, o as xt, p as St, r as Ct, s as wt, t as Tt, u as Et, v as Dt, w as Ot, x as kt, y as At } from "./canvas-viewer-mechanics-DI38gHNV.js";
|
|
@@ -1344,7 +1344,7 @@ var Q = class e {
|
|
|
1344
1344
|
if (i?.aborted) throw new N();
|
|
1345
1345
|
};
|
|
1346
1346
|
if (l(), n.legacyDoc !== void 0) {
|
|
1347
|
-
let { loadDocxModelSource: e } = await import("./document-model-source-
|
|
1347
|
+
let { loadDocxModelSource: e } = await import("./document-model-source-BUTSwkyP.js"), a = await e(t, n, r);
|
|
1348
1348
|
if (i?.aborted) throw a.destroy(), new N();
|
|
1349
1349
|
return a;
|
|
1350
1350
|
}
|
|
@@ -1365,7 +1365,7 @@ var Q = class e {
|
|
|
1365
1365
|
d = await e.arrayBuffer();
|
|
1366
1366
|
} else d = t;
|
|
1367
1367
|
l(), d = a(await o(d, n.password)), l(), _.setSourceBytes(d.byteLength), _.checkpoint("container ready");
|
|
1368
|
-
let v = g === "worker" ? (await import("./render-worker-host-
|
|
1368
|
+
let v = g === "worker" ? (await import("./render-worker-host-DjBotZNL.js")).createRenderWorker() : new fn(), y = g === "worker" ? jt(n) : void 0, b = g === "worker" && !!n.progressiveLayout, x, S = !1, ee = () => {
|
|
1369
1369
|
S || !x || (S = !0, x.destroy());
|
|
1370
1370
|
};
|
|
1371
1371
|
try {
|
|
@@ -2760,7 +2760,7 @@ var Mr = Symbol("DocxViewer.borrowedDocument"), Nr = class e {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
}, Ir = 12, Lr = 13, Rr = Symbol("DocxScrollViewer.borrowedDocument"), zr;
|
|
2762
2762
|
function Br() {
|
|
2763
|
-
return zr ??= import("./comment-ui-runtime-
|
|
2763
|
+
return zr ??= import("./comment-ui-runtime-hfewTmVJ.js");
|
|
2764
2764
|
}
|
|
2765
2765
|
var Vr = class e {
|
|
2766
2766
|
_pendingLoadAbort = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { H as e, U as t, qt as n } from "./bounded-raw-part-cache-B8t03tSP.js";
|
|
2
|
-
import { a as r, g as i, i as a, j as o, l as s, r as c } from "./document-pull-client-
|
|
2
|
+
import { a as r, g as i, i as a, j as o, l as s, r as c } from "./document-pull-client-C_D779tO.js";
|
|
3
3
|
import { r as l } from "./wasm-loader-KAOyLXzf.js";
|
|
4
4
|
import { r as u } from "./document-pull-worker-Bkewz-So.js";
|
|
5
|
-
import { i as d, t as f } from "./docx-
|
|
5
|
+
import { i as d, t as f } from "./docx-BC2HQtjg.js";
|
|
6
6
|
import { t as p } from "./model-source-DcI3vC00.js";
|
|
7
7
|
var m = class extends f {
|
|
8
8
|
constructor(...e) {
|
package/dist/docx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
|
|
2
2
|
import { u as n } from "./bounded-raw-part-cache-B8t03tSP.js";
|
|
3
|
-
import { a as r, c as i, d as a, f as o, i as s, n as c, o as l, p as u, r as d, s as f } from "./docx-
|
|
3
|
+
import { a as r, c as i, d as a, f as o, i as s, n as c, o as l, p as u, r as d, s as f } from "./docx-BfLZeiwa.js";
|
|
4
4
|
import { f as p, u as m } from "./pixel-budget-DI82Hn3R.js";
|
|
5
5
|
import { i as h, t as g } from "./tiff-contract-DEd8CGuz.js";
|
|
6
6
|
import { D as _ } from "./canvas-viewer-mechanics-DI38gHNV.js";
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./docx-
|
|
1
|
+
import { t as e } from "./docx-BfLZeiwa.js";
|
|
2
2
|
import { t } from "./pptx-CfCiVlNB.js";
|
|
3
|
-
import { t as n } from "./xlsx-
|
|
3
|
+
import { t as n } from "./xlsx-CCMRAxPB.js";
|
|
4
4
|
export { e as docx, t as pptx, n as xlsx };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./model-source-COXegBNA.js";
|
|
2
|
-
var t = "0.89.
|
|
2
|
+
var t = "0.89.6", n = class extends Error {
|
|
3
3
|
constructor(n, r) {
|
|
4
4
|
super(`Companion requires @silurus/ooxml ${n} (${r}); installed runtime is ${t} (${e})`), this.code = "companion-runtime-mismatch", this.name = "CompanionRuntimeMismatchError";
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
7
|
function r(e, t) {
|
|
8
|
-
if (e !== "0.89.
|
|
8
|
+
if (e !== "0.89.6" || t !== "ooxml-model-source-module/v2") throw new n(e, t);
|
|
9
9
|
}
|
|
10
10
|
export { n as CompanionRuntimeMismatchError, e as MODEL_SOURCE_MODULE_PROTOCOL, r as assertCompanionRuntime };
|
package/dist/node.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
|
|
2
2
|
import { f as n, u as r } from "./pixel-budget-DI82Hn3R.js";
|
|
3
3
|
import { n as i, r as a } from "./pptx-SmjDGyub.js";
|
|
4
|
-
import { n as o, r as s } from "./docx-
|
|
4
|
+
import { n as o, r as s } from "./docx-BC2HQtjg.js";
|
|
5
5
|
import { n as c, r as l, t as u } from "./render-CMUEAeHp.js";
|
|
6
|
-
import { a as d, i as f, n as p, r as m } from "./xlsx-
|
|
6
|
+
import { a as d, i as f, n as p, r as m } from "./xlsx-CD1VeDIg.js";
|
|
7
7
|
export { r as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, u as installImageBitmapShim, c as installOffscreenCanvasShim, n as isOoxmlDecodedImageLimitError, o as materializeDocxDocument, i as materializePptxPresentation, p as materializeXlsxWorkbook, m as materializeXlsxWorkbookIndex, f as materializeXlsxWorksheet, s as openDocxDocument, a as openPptxPresentation, d as openXlsxWorkbook, l as renderSlideNode };
|