@silurus/ooxml 0.77.1 → 0.78.0

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 +2 -2
  2. package/dist/{canvas-viewer-mechanics-D5zXbOrS.js → canvas-viewer-mechanics-ChxLdOJg.js} +1 -1
  3. package/dist/{document-pull-client-CC8pPuzi.js → document-pull-client-xsdVDuVD.js} +2 -2
  4. package/dist/{docx-Dg9N9OX4.js → docx-CZC3j4s4.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-BtfPlM2A.js → line-distribute-HuZyTARz.js} +1 -1
  9. package/dist/{line-metrics-B66x33iy.js → line-metrics-z9AdgPaZ.js} +2498 -1724
  10. package/dist/node.mjs +7 -7
  11. package/dist/{pptx-BFP7Isgf.js → pptx-c3UgGKIs.js} +5 -5
  12. package/dist/pptx.mjs +4 -4
  13. package/dist/pptx_parser_bg.wasm +0 -0
  14. package/dist/render-worker-host-BzxTAscX.js +27 -0
  15. package/dist/render-worker-host-CBjWHxMb.js +27 -0
  16. package/dist/render-worker-host-Ivhx3KII.js +27 -0
  17. package/dist/{render-D-cOpMLV.js → render-yhFUeiYl.js} +1 -1
  18. package/dist/{resource-measurement-CVfVTQrt.js → resource-measurement-5g27Av6n.js} +1 -1
  19. package/dist/{session-DxAVpIP-.js → session-BOuXp10X.js} +2 -2
  20. package/dist/{slide-pull-client-Lag44QA8.js → slide-pull-client-DKckZrLx.js} +4 -4
  21. package/dist/types/docx.d.ts +98 -8
  22. package/dist/types/index.d.ts +80 -12
  23. package/dist/types/node.d.ts +73 -6
  24. package/dist/types/pptx.d.ts +72 -8
  25. package/dist/types/xlsx.d.ts +76 -8
  26. package/dist/{worksheet-pull-client-D74b_23i.js → worksheet-pull-client-CMDRPZ5E.js} +2 -2
  27. package/dist/{xlsx-Bik59Raj.js → xlsx-BAScjxlC.js} +965 -673
  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-BzpMoFRr.js +0 -27
  32. package/dist/render-worker-host-CdZ5hW2X.js +0 -27
  33. package/dist/render-worker-host-quqYq02i.js +0 -27
package/README.md CHANGED
@@ -79,7 +79,7 @@ pnpm add @silurus/ooxml
79
79
  > **Bundle size note**: the package is ESM-only (`.mjs`). npm's *Unpacked
80
80
  > Size* sums every entry bundle **and** the standalone MathJax + STIX Two Math
81
81
  > asset, so the reported figure is much larger than any single app build. For
82
- > v0.77.1, the complete npm package is approximately 11.3 MB unpacked (3.8 MB
82
+ > v0.78.0, the complete npm package is approximately 12.0 MB unpacked (4.0 MB
83
83
  > as the downloaded tarball), while a format-specific application graph is
84
84
  > approximately:
85
85
  >
@@ -654,7 +654,7 @@ file without uploading it.
654
654
  | | Markdown export (`XlsxWorkbook.toMarkdown()` — each sheet as a `## SheetName` pipe table) | ✅ |
655
655
  | **Interaction** | Cell selection (single / range / row / column / all / multiple areas; `setSelection('B2:D5')` or canonical structured state) | ✅ |
656
656
  | | Excel-style row / column header highlight on selection | ✅ |
657
- | | Shift+click to extend, Ctrl+C to copy as TSV | ✅ |
657
+ | | Shift+click to extend, Ctrl/⌘+drag to add another area, Ctrl+C to copy as TSV | ✅ |
658
658
  | | Text selection inside cells (transparent overlay) | ✅ |
659
659
  | | `onSelectionStateChange`, bounded range/element `getSelectionContext()` / `copySelection()`, chart/picture/shape selection, `getCellAt(x, y)` | ✅ |
660
660
  | | Zoom slider (Excel-style, right of the tab bar, 10–400% with 100% centered; `showZoomSlider` option) | ✅ |
@@ -1,4 +1,4 @@
1
- import { hn as e } from "./line-metrics-B66x33iy.js";
1
+ import { hn as e } from "./line-metrics-z9AdgPaZ.js";
2
2
  //#region packages/core/src/errors/cfb-sniff.ts
3
3
  var t = [
4
4
  208,
@@ -1,6 +1,6 @@
1
- import { A as e, At as t, Bt as n, C as r, Ct as i, D as a, Dt as o, E as s, Ht as c, Jt as l, Kt as u, M as d, Mt as f, N as p, O as m, Ot as h, Pt as g, Rt as _, S as v, Tt as y, U as b, Ut as x, W as S, Xt as C, Zt as w, _ as T, _t as E, c as D, cn as O, ct as k, d as A, dn as j, f as M, fn as N, g as ee, gt as P, h as te, ht as ne, j as re, k as ie, l as F, ln as ae, m as oe, mn as se, mt as ce, n as le, o as ue, pn as de, pt as fe, qt as pe, s as me, sn as he, t as ge, u as _e, un as ve, v as ye, vt as be, w as xe, wt as Se, y as Ce, yt as we } from "./line-metrics-B66x33iy.js";
1
+ import { A as e, At as t, Bt as n, C as r, Ct as i, D as a, Dt as o, E as s, Ht as c, Jt as l, Kt as u, M as d, Mt as f, N as p, O as m, Ot as h, Pt as g, Rt as _, S as v, Tt as y, U as b, Ut as x, W as S, Xt as C, Zt as w, _ as T, _t as E, c as D, cn as O, ct as k, d as A, dn as j, f as M, fn as N, g as ee, gt as P, h as te, ht as ne, j as re, k as ie, l as F, ln as ae, m as oe, mn as se, mt as ce, n as le, o as ue, pn as de, pt as fe, qt as pe, s as me, sn as he, t as ge, u as _e, un as ve, v as ye, vt as be, w as xe, wt as Se, y as Ce, yt as we } from "./line-metrics-z9AdgPaZ.js";
2
2
  import { c as Te, o as Ee, r as De, s as Oe } from "./bounded-raw-part-cache-C6ro6Ezf.js";
3
- import { a as I, c as ke, d as Ae, f as je, i as Me, n as Ne, o as L, s as Pe, t as Fe, u as Ie } from "./line-distribute-BtfPlM2A.js";
3
+ import { a as I, c as ke, d as Ae, f as je, i as Me, n as Ne, o as L, s as Pe, t as Fe, u as Ie } from "./line-distribute-HuZyTARz.js";
4
4
  import { t as Le } from "./mathjax-CMjda8Ip.js";
5
5
  //#region packages/core/src/fonts/canvas-route.ts
6
6
  function Re(e, t) {
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { B as t, Et as n, It as r, Lt as i, R as a, a as o, gn as s, hn as c, ht as l, it as u, kt as d, on as f, q as p, z as m } from "./line-metrics-B66x33iy.js";
3
- import { C as h, E as g, S as _, T as v, _ as y, a as b, b as x, c as S, d as ee, f as te, g as ne, h as re, i as C, l as w, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as T, w as fe, x as pe, y as E } from "./canvas-viewer-mechanics-D5zXbOrS.js";
2
+ import { B as t, Et as n, It as r, Lt as i, R as a, a as o, gn as s, hn as c, ht as l, it as u, kt as d, on as f, q as p, z as m } from "./line-metrics-z9AdgPaZ.js";
3
+ import { C as h, E as g, S as _, T as v, _ as y, a as b, b as x, c as S, d as ee, f as te, g as ne, h as re, i as C, l as w, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as T, w as fe, x as pe, y as E } from "./canvas-viewer-mechanics-ChxLdOJg.js";
4
4
  import { a as me, c as he, i as ge, o as _e, r as ve, s as ye, t as be } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
- import { C as xe, S as Se, _ as D, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as O, o as Me, p as Ne, s as Pe, t as k, v as A, w as Fe, x as j, y as Ie } from "./document-pull-client-CC8pPuzi.js";
5
+ import { C as xe, S as Se, _ as D, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as O, o as Me, p as Ne, s as Pe, t as k, v as A, w as Fe, x as j, y as Ie } from "./document-pull-client-xsdVDuVD.js";
6
6
  import { n as Le, r as M, t as N } from "./highlight-rect-CAkCWJ37.js";
7
7
  //#region packages/core/src/fonts/embedded.ts
8
8
  function Re(e, t) {
@@ -341,7 +341,7 @@ var U = class e {
341
341
  t = await e.arrayBuffer();
342
342
  } else t = n;
343
343
  t = g(await v(t, r.password)), c.setSourceBytes(t.byteLength), c.checkpoint("container ready");
344
- let a = s === "worker" ? (await import("./render-worker-host-CdZ5hW2X.js")).createRenderWorker() : new Ue(), l;
344
+ let a = s === "worker" ? (await import("./render-worker-host-CBjWHxMb.js")).createRenderWorker() : new Ue(), l;
345
345
  try {
346
346
  if (l = new e(a, s, o, r.wasmUrl), l._metrics = c, await l._parse(t, i.policy, s === "worker" ? !!r.useGoogleFonts : !1, r.workerTimeoutMs, (e) => c.observeUsage(e)), s === "worker" && l._mode === "main" && (c.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), r.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" && r.useGoogleFonts && l._document && (l._googleFontFaces = await ge(Ne(l._document), De)), l._mode === "main" && l._document?.embeddedFonts?.length) {
347
347
  let e = l;
package/dist/docx.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { It as e, Lt as t, a as n, gn as r, hn as i } from "./line-metrics-B66x33iy.js";
2
- import { w as a } from "./canvas-viewer-mechanics-D5zXbOrS.js";
3
- import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-Dg9N9OX4.js";
1
+ import { It as e, Lt as t, a as n, gn as r, hn as i } from "./line-metrics-z9AdgPaZ.js";
2
+ import { w as a } from "./canvas-viewer-mechanics-ChxLdOJg.js";
3
+ import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-CZC3j4s4.js";
4
4
  export { s as DocxDocument, d as DocxScrollViewer, c as DocxViewer, e as OoxmlDecodedImageLimitError, i as OoxmlError, r as OoxmlResourceLimitError, a as autoResize, u as buildDocxHighlightLayer, f as buildDocxTextLayer, t as isOoxmlDecodedImageLimitError, l as noteText, n as openExternalHyperlink, o as readDocxTextSelectionContext };
Binary file
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-Dg9N9OX4.js";
2
- import { t } from "./xlsx-Bik59Raj.js";
3
- import { t as n } from "./pptx-BFP7Isgf.js";
1
+ import { t as e } from "./docx-CZC3j4s4.js";
2
+ import { t } from "./xlsx-BAScjxlC.js";
3
+ import { t as n } from "./pptx-c3UgGKIs.js";
4
4
  export { e as docx, n as pptx, t as xlsx };
@@ -1,4 +1,4 @@
1
- import { Yt as e, b as t, w as n, x as r, zt as i } from "./line-metrics-B66x33iy.js";
1
+ import { Yt as e, b as t, w as n, x as r, zt as i } from "./line-metrics-z9AdgPaZ.js";
2
2
  //#region packages/core/src/fonts/symbol-font.ts
3
3
  var a = {
4
4
  167: "♣",