@silurus/ooxml 0.89.6 → 0.89.7

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 (27) hide show
  1. package/dist/assets/render-worker-B3hF7Akg.js +35 -0
  2. package/dist/assets/render-worker-DNGf06QT.js +15 -0
  3. package/dist/{comment-ui-runtime-hfewTmVJ.js → comment-ui-runtime-DKlEfBPp.js} +2 -2
  4. package/dist/{document-model-source-BUTSwkyP.js → document-model-source-xnkMoTZ_.js} +3 -3
  5. package/dist/{document-pull-client-C_D779tO.js → document-pull-client-CzhPbnY_.js} +6690 -6263
  6. package/dist/{docx-BC2HQtjg.js → docx-BWyACb-n.js} +3 -3
  7. package/dist/{docx-BfLZeiwa.js → docx-BgCQiuuN.js} +4 -4
  8. package/dist/{docx-model-source-IjrOZgnl.js → docx-model-source-DCRFgO7-.js} +2 -2
  9. package/dist/docx.mjs +1 -1
  10. package/dist/docx_parser_bg.wasm +0 -0
  11. package/dist/{host-layout-measure-DJvccDI3.js → host-layout-measure-CXKOWA5J.js} +1 -1
  12. package/dist/index.mjs +2 -2
  13. package/dist/internal-companion.mjs +2 -2
  14. package/dist/node.mjs +2 -2
  15. package/dist/pptx_parser_bg.wasm +0 -0
  16. package/dist/{render-worker-host-D_0g-TQ2.js → render-worker-host-CZHIKTtZ.js} +1 -1
  17. package/dist/{render-worker-host-DjBotZNL.js → render-worker-host-G1fnymI8.js} +1 -1
  18. package/dist/{renderer-IFuBkPvF.js → renderer-B4KIpz-2.js} +452 -382
  19. package/dist/{workbook-model-source-DBfVsWj7.js → workbook-model-source-J9ir5Kov.js} +3 -3
  20. package/dist/{xlsx-CD1VeDIg.js → xlsx-BbQ7RcNc.js} +1 -1
  21. package/dist/{xlsx-CCMRAxPB.js → xlsx-ClQiNSrr.js} +4 -4
  22. package/dist/{xlsx-model-source-udh7Q4WB.js → xlsx-model-source-C-Riw89p.js} +2 -2
  23. package/dist/xlsx.mjs +1 -1
  24. package/dist/xlsx_parser_bg.wasm +0 -0
  25. package/package.json +1 -1
  26. package/dist/assets/render-worker-Ba4LYMJd.js +0 -15
  27. package/dist/assets/render-worker-DkqinUC6.js +0 -35
@@ -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-C_D779tO.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-CzhPbnY_.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-IjrOZgnl.js");
324
+ let { openDocxSource: n } = await import("./docx-model-source-DCRFgO7-.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-IjrOZgnl.js");
346
+ let { materializeDocxSource: n } = await import("./docx-model-source-DCRFgO7-.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-C_D779tO.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-CzhPbnY_.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-BUTSwkyP.js"), a = await e(t, n, r);
1347
+ let { loadDocxModelSource: e } = await import("./document-model-source-xnkMoTZ_.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-DjBotZNL.js")).createRenderWorker() : new fn(), y = g === "worker" ? jt(n) : void 0, b = g === "worker" && !!n.progressiveLayout, x, S = !1, ee = () => {
1368
+ let v = g === "worker" ? (await import("./render-worker-host-G1fnymI8.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-hfewTmVJ.js");
2763
+ return zr ??= import("./comment-ui-runtime-DKlEfBPp.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-C_D779tO.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-CzhPbnY_.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-BC2HQtjg.js";
5
+ import { i as d, t as f } from "./docx-BWyACb-n.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-BfLZeiwa.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-BgCQiuuN.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";
Binary file
@@ -1,4 +1,4 @@
1
- import { a as e } from "./renderer-IFuBkPvF.js";
1
+ import { a as e } from "./renderer-B4KIpz-2.js";
2
2
  function t(t, n) {
3
3
  return e(t.family, t.sizePt, void 0, !1, t.bold ? 700 : 400, t.italic ? "italic" : "normal", n);
4
4
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-BfLZeiwa.js";
1
+ import { t as e } from "./docx-BgCQiuuN.js";
2
2
  import { t } from "./pptx-CfCiVlNB.js";
3
- import { t as n } from "./xlsx-CCMRAxPB.js";
3
+ import { t as n } from "./xlsx-ClQiNSrr.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.6", n = class extends Error {
2
+ var t = "0.89.7", 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.6" || t !== "ooxml-model-source-module/v2") throw new n(e, t);
8
+ if (e !== "0.89.7" || 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-BC2HQtjg.js";
4
+ import { n as o, r as s } from "./docx-BWyACb-n.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-CD1VeDIg.js";
6
+ import { a as d, i as f, n as p, r as m } from "./xlsx-BbQ7RcNc.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 };
Binary file
@@ -1,4 +1,4 @@
1
- var e = "" + new URL("assets/render-worker-DkqinUC6.js", import.meta.url).href;
1
+ var e = "" + new URL("assets/render-worker-B3hF7Akg.js", import.meta.url).href;
2
2
  function t() {
3
3
  return new Worker(e, { type: "module" });
4
4
  }
@@ -1,4 +1,4 @@
1
- var e = "" + new URL("assets/render-worker-Ba4LYMJd.js", import.meta.url).href;
1
+ var e = "" + new URL("assets/render-worker-DNGf06QT.js", import.meta.url).href;
2
2
  function t() {
3
3
  return new Worker(e, { type: "module" });
4
4
  }