@silurus/ooxml 0.79.0 → 0.79.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 (36) hide show
  1. package/dist/{canvas-viewer-mechanics-D9tsuHnG.js → canvas-viewer-mechanics-DJ9yfiLN.js} +1 -1
  2. package/dist/{dash-Cyc-sevN.js → dash-CMzZIDz_.js} +87 -49
  3. package/dist/{document-pull-client-YiU8M4LO.js → document-pull-client-DYoybVCn.js} +3 -3
  4. package/dist/{docx-a1UpmRf8.js → docx-CSk_-kj_.js} +5 -5
  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-pDqovJpT.js → line-distribute-CU7vu7XS.js} +1 -1
  9. package/dist/{line-metrics-DjKxiIUD.js → line-metrics-A77J_KRx.js} +2616 -2499
  10. package/dist/node.mjs +7 -7
  11. package/dist/{pptx-t5ABdzfd.js → pptx-CO1Ut97p.js} +6 -6
  12. package/dist/pptx.mjs +4 -4
  13. package/dist/pptx_parser_bg.wasm +0 -0
  14. package/dist/{render-BjIEuFIG.js → render-C5m7Ddwx.js} +1 -1
  15. package/dist/render-worker-host-BhMT5U73.js +27 -0
  16. package/dist/render-worker-host-DNMxGh5s.js +27 -0
  17. package/dist/render-worker-host-DWyg7wio.js +27 -0
  18. package/dist/{resource-measurement-D8EiTm_E.js → resource-measurement-COxqtfGk.js} +1 -1
  19. package/dist/{session-Bhe_eY-s.js → session-CJwZaquG.js} +2 -2
  20. package/dist/{slide-pull-client-BQ8gJPTq.js → slide-pull-client-CFHNk0ek.js} +4 -4
  21. package/dist/three-d.mjs +838 -570
  22. package/dist/types/docx.d.ts +72 -6
  23. package/dist/types/index.d.ts +80 -10
  24. package/dist/types/node.d.ts +70 -2
  25. package/dist/types/pptx.d.ts +72 -6
  26. package/dist/types/region-map.d.ts +68 -2
  27. package/dist/types/three-d.d.ts +68 -2
  28. package/dist/types/xlsx.d.ts +76 -6
  29. package/dist/{worksheet-pull-client-T0EzdEEQ.js → worksheet-pull-client-CziyJf24.js} +2 -2
  30. package/dist/{xlsx-CsDDMJIK.js → xlsx-DHQmjAfh.js} +944 -799
  31. package/dist/xlsx.mjs +4 -4
  32. package/dist/xlsx_parser_bg.wasm +0 -0
  33. package/package.json +1 -1
  34. package/dist/render-worker-host-BB320snY.js +0 -27
  35. package/dist/render-worker-host-BjEPZBwf.js +0 -27
  36. package/dist/render-worker-host-hZ0o4OD7.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-BQ8gJPTq.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 f, at as p, kt as m, ot as h, q as g, rt as _, sn as v, st as ee } from "./line-metrics-DjKxiIUD.js";
2
+ import { t } from "./slide-pull-client-CFHNk0ek.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 f, at as p, kt as m, ot as h, q as g, rt as _, sn as v, st as ee } from "./line-metrics-A77J_KRx.js";
4
4
  import { t as te } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
- import { a as ne, c as re, i as ie, l as ae, r as oe, u as se } from "./document-pull-client-YiU8M4LO.js";
5
+ import { a as ne, c as re, i as ie, l as ae, r as oe, u as se } from "./document-pull-client-DYoybVCn.js";
6
6
  import { t as ce } from "./transfer-3QEJrsJa.js";
7
- import { a as le, c as ue, d as de, l as fe, o as pe, r as me, s as he, t as ge, u as _e } from "./worksheet-pull-client-T0EzdEEQ.js";
8
- import { a as ve, i as ye, n as be, r as xe } from "./session-Bhe_eY-s.js";
9
- import { a as Se, n as Ce, r as we, t as Te } from "./render-BjIEuFIG.js";
7
+ import { a as le, c as ue, d as de, l as fe, o as pe, r as me, s as he, t as ge, u as _e } from "./worksheet-pull-client-CziyJf24.js";
8
+ import { a as ve, i as ye, n as be, r as xe } from "./session-CJwZaquG.js";
9
+ import { a as Se, n as Ce, r as we, t as Te } from "./render-C5m7Ddwx.js";
10
10
  import { existsSync as Ee, readFileSync as De } from "node:fs";
11
11
  import { fileURLToPath as Oe } from "node:url";
12
12
  import { basename as ke, dirname as Ae, resolve as je } from "node:path";
@@ -133,7 +133,7 @@ var ze = class {
133
133
  async renderSlide(e, t, n) {
134
134
  return this.assertOpen(), this.enqueueRender(async () => {
135
135
  x(this.signal);
136
- let { renderSlideNode: r } = await import("./render-BjIEuFIG.js").then((e) => e.i);
136
+ let { renderSlideNode: r } = await import("./render-C5m7Ddwx.js").then((e) => e.i);
137
137
  await r(e, {
138
138
  slideWidth: this.slideWidth,
139
139
  slideHeight: this.slideHeight,
@@ -1,10 +1,10 @@
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-BQ8gJPTq.js";
3
- import { B as u, Et as d, G as f, It as p, Lt as m, R as h, a as g, at as _, gt as v, ht as y, it as b, kt as x, on as S, q as C, sn as w, z as ee } from "./line-metrics-DjKxiIUD.js";
4
- import { C as te, E as ne, S as re, T as ie, _ as T, a as E, b as ae, c as D, d as oe, f as se, g as ce, h as le, i as O, l as k, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as A, w as _e, x as ve, y as j } from "./canvas-viewer-mechanics-D9tsuHnG.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-CFHNk0ek.js";
3
+ import { B as u, Et as d, G as f, It as p, Lt as m, R as h, a as g, at as _, gt as v, ht as y, it as b, kt as x, on as S, q as C, sn as w, z as ee } from "./line-metrics-A77J_KRx.js";
4
+ import { C as te, E as ne, S as re, T as ie, _ as T, a as E, b as ae, c as D, d as oe, f as se, g as ce, h as le, i as O, l as k, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, v as A, w as _e, x as ve, y as j } from "./canvas-viewer-mechanics-DJ9yfiLN.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 { g as M } from "./dash-Cyc-sevN.js";
7
- import { n as Ce } from "./resource-measurement-D8EiTm_E.js";
6
+ import { x as M } from "./dash-CMzZIDz_.js";
7
+ import { n as Ce } from "./resource-measurement-COxqtfGk.js";
8
8
  import { n as we, r as N, t as Te } from "./visible-index-CKvgpUrf.js";
9
9
  import { n as Ee, r as P, t as F } from "./highlight-rect-cCvVU-MW.js";
10
10
  //#region packages/core/src/nav/internal-target.ts
@@ -764,7 +764,7 @@ var X = class e {
764
764
  s = await e.arrayBuffer();
765
765
  } else s = t;
766
766
  s = ne(await ie(s, n.password)), a.setSourceBytes(s.byteLength), a.checkpoint("container ready");
767
- let c = i === "worker" ? (await import("./render-worker-host-BB320snY.js")).createRenderWorker() : new $e(), l;
767
+ let c = i === "worker" ? (await import("./render-worker-host-DNMxGh5s.js")).createRenderWorker() : new $e(), l;
768
768
  try {
769
769
  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."), n.threeD && i === "worker" && console.warn("[ooxml] the 3-D chart addon is unavailable in mode: 'worker'; charts use their 2-D family fallback. Use mode: 'main' for authored 3-D charts."), l._math = i === "worker" ? void 0 : n.math, l._threeD = i === "worker" ? void 0 : n.threeD, n.regionMap && i === "worker" && console.warn("[ooxml] the Region Map addon is unavailable in mode: 'worker'; geospatial charts use the unsupported-chart placeholder. Use mode: 'main' for Region Maps."), l._regionMap = i === "worker" ? void 0 : n.regionMap, 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;
770
770
  } catch (e) {
package/dist/pptx.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { c as e } from "./slide-pull-client-BQ8gJPTq.js";
2
- import { It as t, Lt as n, a as r, on as i, sn as a } from "./line-metrics-DjKxiIUD.js";
3
- import { w as o } from "./canvas-viewer-mechanics-D9tsuHnG.js";
4
- import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-t5ABdzfd.js";
1
+ import { c as e } from "./slide-pull-client-CFHNk0ek.js";
2
+ import { It as t, Lt as n, a as r, on as i, sn as a } from "./line-metrics-A77J_KRx.js";
3
+ import { w as o } from "./canvas-viewer-mechanics-DJ9yfiLN.js";
4
+ import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-CO1Ut97p.js";
5
5
  export { t as OoxmlDecodedImageLimitError, i as OoxmlError, a 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-Bhe_eY-s.js").then((e) => e.t), o = t.slides[n];
46
+ let { renderSlide: i } = await import("./session-CJwZaquG.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, {