@silurus/ooxml 0.75.4 → 0.75.5
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/{document-pull-client-o6FhJ32O.js → document-pull-client-BcNYhoAG.js} +3989 -3931
- package/dist/{docx-DpLpTFTQ.js → docx-DjF8FgoP.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +1 -1
- package/dist/node.mjs +1 -1
- package/dist/render-worker-host-Cyv5Hkbh.js +27 -0
- package/dist/types/docx.d.ts +19 -10
- package/dist/types/index.d.ts +19 -10
- package/dist/types/node.d.ts +18 -9
- package/package.json +1 -1
- package/dist/render-worker-host-B5VtQmQx.js +0 -27
|
@@ -2,7 +2,7 @@ import { t as e } from "./chunk-DmhlhrBa.js";
|
|
|
2
2
|
import { E as t, M as n, N as r, _ as i, c as a, l as o, t as s, u as c } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
3
3
|
import { a as l, c as u, d, f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as ee, u as te } from "./find-cursor-Dc5iM6s7.js";
|
|
4
4
|
import { a as S, i as C, n as w, o as T, r as E, t as D } from "./preload-BEouWnlI.js";
|
|
5
|
-
import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-
|
|
5
|
+
import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-BcNYhoAG.js";
|
|
6
6
|
import { f as N, i as P, p as F, t as I } from "./svg-image-by-path-C1M3N2pT.js";
|
|
7
7
|
import { M as L, lt as R } from "./line-metrics-D9gqQWHl.js";
|
|
8
8
|
import { n as z, r as B, t as V } from "./highlight-rect-cCvVU-MW.js";
|
|
@@ -166,7 +166,7 @@ var K = class e {
|
|
|
166
166
|
a = await e.arrayBuffer();
|
|
167
167
|
} else a = t;
|
|
168
168
|
a = p(await g(a, n.password)), s.setSourceBytes(a.byteLength), s.checkpoint("container ready");
|
|
169
|
-
let c = o === "worker" ? (await import("./render-worker-host-
|
|
169
|
+
let c = o === "worker" ? (await import("./render-worker-host-Cyv5Hkbh.js")).createRenderWorker() : new _e(), l;
|
|
170
170
|
try {
|
|
171
171
|
if (l = new e(c, o, i, n.wasmUrl), l._metrics = s, await l._parse(a, r.policy, o === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => s.observeUsage(e)), o === "worker" && l._mode === "main" && (s.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), n.math && l._mode === "worker" && console.warn("[ooxml] the math engine is unavailable in mode: 'worker'; equations will be skipped. Use mode: 'main' for documents with equations."), l._mode === "main" && n.useGoogleFonts && l._document && (l._googleFontFaces = await w(re(l._document), M)), l._mode === "main" && l._document?.embeddedFonts?.length) {
|
|
172
172
|
let e = l;
|
package/dist/docx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as e, N as t } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
2
2
|
import { p as n } from "./find-cursor-Dc5iM6s7.js";
|
|
3
|
-
import { a as r, i, n as a, o, r as s, s as c } from "./docx-
|
|
3
|
+
import { a as r, i, n as a, o, r as s, s as c } from "./docx-DjF8FgoP.js";
|
|
4
4
|
import { f as l, p as u } from "./svg-image-by-path-C1M3N2pT.js";
|
|
5
5
|
import { r as d } from "./hyperlink-D85FexTa.js";
|
|
6
6
|
export { c as DocxDocument, s as DocxScrollViewer, i as DocxViewer, l as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, n as autoResize, r as buildDocxHighlightLayer, o as buildDocxTextLayer, u as isOoxmlDecodedImageLimitError, a as noteText, d as openExternalHyperlink };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { D as t, N as n, O as r, T as i, a, c as o, f as s, i as c, k as l, m as u, o as d, p as f, r as p, u as m } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
3
|
-
import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-
|
|
3
|
+
import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-BcNYhoAG.js";
|
|
4
4
|
import { f as re, i as _, p as ie, t as ae } from "./svg-image-by-path-C1M3N2pT.js";
|
|
5
5
|
import { t as oe } from "./transfer-3QEJrsJa.js";
|
|
6
6
|
import { d as se, n as ce, t as le, u as ue } from "./worksheet-pull-worker-DCei8u-4.js";
|