@silurus/ooxml 0.78.0 → 0.78.1

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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/{canvas-viewer-mechanics-ChxLdOJg.js → canvas-viewer-mechanics-B4K_t5X_.js} +1 -1
  3. package/dist/{document-pull-client-xsdVDuVD.js → document-pull-client-5AakVD6e.js} +3137 -3016
  4. package/dist/{docx-CZC3j4s4.js → docx-bjhRwb2u.js} +4 -4
  5. package/dist/docx.mjs +3 -3
  6. package/dist/docx_parser_bg.wasm +0 -0
  7. package/dist/index.mjs +3 -3
  8. package/dist/{line-distribute-HuZyTARz.js → line-distribute-BVFW1-Hs.js} +1 -1
  9. package/dist/{line-metrics-z9AdgPaZ.js → line-metrics-DS0NS2Iq.js} +1720 -1686
  10. package/dist/node.mjs +7 -7
  11. package/dist/{pptx-c3UgGKIs.js → pptx-D1rCrHGR.js} +5 -5
  12. package/dist/pptx.mjs +4 -4
  13. package/dist/pptx_parser_bg.wasm +0 -0
  14. package/dist/{render-yhFUeiYl.js → render-DhlT5jxZ.js} +1 -1
  15. package/dist/render-worker-host-CtJo7hc9.js +27 -0
  16. package/dist/render-worker-host-D8vv-Asx.js +27 -0
  17. package/dist/render-worker-host-DAjG9nmw.js +27 -0
  18. package/dist/{resource-measurement-5g27Av6n.js → resource-measurement-BA-4Q-II.js} +1 -1
  19. package/dist/{session-BOuXp10X.js → session-C_HGxbRD.js} +2 -2
  20. package/dist/{slide-pull-client-DKckZrLx.js → slide-pull-client-BiC4sVGi.js} +641 -579
  21. package/dist/types/docx.d.ts +6 -2
  22. package/dist/types/index.d.ts +13 -4
  23. package/dist/types/node.d.ts +10 -1
  24. package/dist/types/pptx.d.ts +6 -2
  25. package/dist/types/xlsx.d.ts +11 -2
  26. package/dist/{worksheet-pull-client-CMDRPZ5E.js → worksheet-pull-client-BnvgeqfG.js} +2 -2
  27. package/dist/{xlsx-BAScjxlC.js → xlsx-BG_WYSc0.js} +484 -449
  28. package/dist/xlsx.mjs +4 -4
  29. package/dist/xlsx_parser_bg.wasm +0 -0
  30. package/package.json +1 -1
  31. package/dist/render-worker-host-BzxTAscX.js +0 -27
  32. package/dist/render-worker-host-CBjWHxMb.js +0 -27
  33. package/dist/render-worker-host-Ivhx3KII.js +0 -27
package/dist/node.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { t } from "./slide-pull-client-DKckZrLx.js";
3
- import { B as n, Et as r, F as i, H as a, I as o, It as s, Lt as c, P as l, R as u, U as d, W as ee, at as f, gn as p, kt as m, ot as h, q as te, rt as g, st as ne } from "./line-metrics-z9AdgPaZ.js";
2
+ import { t } from "./slide-pull-client-BiC4sVGi.js";
3
+ import { B as n, Et as r, F as i, H as a, I as o, It as s, Lt as c, P as l, R as u, U as d, W as ee, at as f, gn as p, kt as m, ot as h, q as te, rt as g, st as ne } from "./line-metrics-DS0NS2Iq.js";
4
4
  import { t as re } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
- import { a as ie, c as ae, i as oe, l as se, r as ce, u as le } from "./document-pull-client-xsdVDuVD.js";
5
+ import { a as ie, c as ae, i as oe, l as se, r as ce, u as le } from "./document-pull-client-5AakVD6e.js";
6
6
  import { t as ue } from "./transfer-DCu4c2BL.js";
7
- import { a as de, c as fe, d as pe, l as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./worksheet-pull-client-CMDRPZ5E.js";
8
- import { a as be, i as xe, n as Se, r as Ce } from "./session-BOuXp10X.js";
9
- import { a as we, n as Te, r as Ee, t as De } from "./render-yhFUeiYl.js";
7
+ import { a as de, c as fe, d as pe, l as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./worksheet-pull-client-BnvgeqfG.js";
8
+ import { a as be, i as xe, n as Se, r as Ce } from "./session-C_HGxbRD.js";
9
+ import { a as we, n as Te, r as Ee, t as De } from "./render-DhlT5jxZ.js";
10
10
  import { existsSync as Oe, readFileSync as ke } from "node:fs";
11
11
  import { fileURLToPath as Ae } from "node:url";
12
12
  import { basename as je, dirname as Me, resolve as Ne } from "node:path";
@@ -133,7 +133,7 @@ var Be = class {
133
133
  async renderSlide(e, t, n) {
134
134
  return this.assertOpen(), this.enqueueRender(async () => {
135
135
  b(this.signal);
136
- let { renderSlideNode: r } = await import("./render-yhFUeiYl.js").then((e) => e.i);
136
+ let { renderSlideNode: r } = await import("./render-DhlT5jxZ.js").then((e) => e.i);
137
137
  await r(e, {
138
138
  slideWidth: this.slideWidth,
139
139
  slideHeight: this.slideHeight,
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./slide-pull-client-DKckZrLx.js";
3
- import { B as u, Et as d, G as f, It as p, Lt as m, R as h, a as g, an as _, at as v, gn as y, gt as b, hn as x, ht as S, it as C, kt as w, q as T, z as ee } from "./line-metrics-z9AdgPaZ.js";
4
- import { C as te, E as ne, S as re, T as ie, _ as E, a as D, b as ae, c as O, d as oe, f as se, g as ce, h as le, i as k, l as A, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as j, w as _e, x as ve, y as M } from "./canvas-viewer-mechanics-ChxLdOJg.js";
2
+ import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./slide-pull-client-BiC4sVGi.js";
3
+ import { B as u, Et as d, G as f, It as p, Lt as m, R as h, a as g, an as _, at as v, gn as y, gt as b, hn as x, ht as S, it as C, kt as w, q as T, z as ee } from "./line-metrics-DS0NS2Iq.js";
4
+ import { C as te, E as ne, S as re, T as ie, _ as E, a as D, b as ae, c as O, d as oe, f as se, g as ce, h as le, i as k, l as A, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as j, w as _e, x as ve, y as M } from "./canvas-viewer-mechanics-B4K_t5X_.js";
5
5
  import { a as ye, i as be, n as xe, t as Se } from "./bounded-raw-part-cache-C6ro6Ezf.js";
6
- import { n as Ce } from "./resource-measurement-5g27Av6n.js";
6
+ import { n as Ce } from "./resource-measurement-BA-4Q-II.js";
7
7
  import { n as we, r as N, t as Te } from "./visible-index-CgyJLAS_.js";
8
8
  import { n as Ee, r as P, t as F } from "./highlight-rect-CAkCWJ37.js";
9
9
  //#region packages/core/src/nav/internal-target.ts
@@ -761,7 +761,7 @@ var Y = class e {
761
761
  s = await e.arrayBuffer();
762
762
  } else s = t;
763
763
  s = ne(await ie(s, n.password)), a.setSourceBytes(s.byteLength), a.checkpoint("container ready");
764
- let c = i === "worker" ? (await import("./render-worker-host-BzxTAscX.js")).createRenderWorker() : new et(), l;
764
+ let c = i === "worker" ? (await import("./render-worker-host-DAjG9nmw.js")).createRenderWorker() : new et(), l;
765
765
  try {
766
766
  return l = new e(c, i, n.wasmUrl), l._metrics = a, n.math && i === "worker" && console.warn("[ooxml] the math engine is unavailable in mode: 'worker'; equations will be skipped. Use mode: 'main' for documents with equations."), l._math = i === "worker" ? void 0 : n.math, await l._parse(s, r.policy, i === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => a.observeUsage(e)), a.checkpoint("presentation preflight ready"), i === "main" && n.useGoogleFonts && l._preflight && (l._googleFontFaces = await be(l._preflight.fontPreloadNames, o)), a.succeed({ slides: l.slideCount }), l;
767
767
  } catch (e) {
package/dist/pptx.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { c as e } from "./slide-pull-client-DKckZrLx.js";
2
- import { It as t, Lt as n, a as r, gn as i, hn as a } from "./line-metrics-z9AdgPaZ.js";
3
- import { w as o } from "./canvas-viewer-mechanics-ChxLdOJg.js";
4
- import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-c3UgGKIs.js";
1
+ import { c as e } from "./slide-pull-client-BiC4sVGi.js";
2
+ import { It as t, Lt as n, a as r, gn as i, hn as a } from "./line-metrics-DS0NS2Iq.js";
3
+ import { w as o } from "./canvas-viewer-mechanics-B4K_t5X_.js";
4
+ import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-D1rCrHGR.js";
5
5
  export { t as OoxmlDecodedImageLimitError, a as OoxmlError, i as OoxmlResourceLimitError, s as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, o as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, n as isOoxmlDecodedImageLimitError, r as openExternalHyperlink, c as readPptxTextSelectionContext, e as renderSlide };
Binary file
@@ -43,7 +43,7 @@ function a(e, t) {
43
43
  return n = o.then(() => void 0, () => void 0), o;
44
44
  }
45
45
  async function o(e, t, n, r = {}) {
46
- let { renderSlide: i } = await import("./session-BOuXp10X.js").then((e) => e.t), o = t.slides[n];
46
+ let { renderSlide: i } = await import("./session-C_HGxbRD.js").then((e) => e.t), o = t.slides[n];
47
47
  if (!o) throw Error(`Slide index ${n} out of range`);
48
48
  let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
49
49
  await i(e, o, t.slideWidth, t.slideHeight, {