@silurus/ooxml 0.89.2 → 0.89.4
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/README.md +4 -3
- package/dist/{abort-VrnK7mdP.js → abort-JztSoyw2.js} +0 -2
- package/dist/assets/render-worker-BUa1gyCE.js +15 -0
- package/dist/{bounded-raw-part-cache-C3daknU-.js → bounded-raw-part-cache-Bi_VqXmg.js} +7 -115
- package/dist/{bundled-asset-url-E2nXURF9.js → bundled-asset-url-BMJ8vNHP.js} +0 -2
- package/dist/{canvas-viewer-mechanics-SZWSnn6j.js → canvas-viewer-mechanics-ycCX6v-z.js} +3 -25
- package/dist/{cfb-guard-dNeUiANF.js → cfb-guard-BIaHdonq.js} +1 -13
- package/dist/chart-ex.mjs +4 -7
- package/dist/{chunk-Dy4uBu1J.js → chunk-D5OxutzX.js} +0 -2
- package/dist/{comment-overlay-controller-CHDxT0e7.js → comment-overlay-controller-CR5ySvki.js} +2 -22
- package/dist/{comment-ui-runtime-Dk2qrPy_.js → comment-ui-runtime-BWhLz4gq.js} +5 -7
- package/dist/comment-ui-runtime-BtP_TpvT.js +2 -0
- package/dist/{comment-ui-runtime-BcwaRnMR.js → comment-ui-runtime-CwTOCwA8.js} +5 -7
- package/dist/{delimited-text-worker-host-CikWU6_m.js → delimited-text-worker-host-RwvuSsP2.js} +0 -4
- package/dist/{document-model-source-BD2VSd2L.js → document-model-source-Csow9uxO.js} +9 -11
- package/dist/{document-pull-client-DhSGspvi.js → document-pull-client-CHpz0Q1p.js} +7572 -7285
- package/dist/{document-pull-worker-D-E0Iz3P.js → document-pull-worker-1ZJv9f9W.js} +3 -7
- package/dist/{docx-CXfILbzI.js → docx-D9E0vCq-.js} +12 -18
- package/dist/{docx-CCZBO1WQ.js → docx-GXxH0AwW.js} +13 -65
- package/dist/{docx-model-source-Ci6xb487.js → docx-model-source-aKx2gZH9.js} +7 -9
- package/dist/docx.mjs +6 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{drawingml-shape-Bp0yEZHC.js → drawingml-shape-BwELUfNW.js} +2 -6
- package/dist/{duotone-DN8P4aXe.js → duotone-BI7CoghW.js} +2 -6
- package/dist/{emf-CGFQIz6c.js → emf-DgUBx9BU.js} +2 -4
- package/dist/{font-preload-demand-CGOB-MoE.js → font-preload-demand-BuMy4iJ1.js} +2 -8
- package/dist/{grid-geometry-C3IG20ut.js → grid-geometry-CqTDvpDr.js} +1 -6
- package/dist/{host-layout-DVMw8hDY.js → host-layout-Cz_lCuTZ.js} +0 -1
- package/dist/{host-layout-measure-BAysJILu.js → host-layout-measure-GU0oJ4Me.js} +1 -3
- package/dist/{in-process-pull-transport-DuXcPZng.js → in-process-pull-transport-BPJ7M0uC.js} +0 -2
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +3 -5
- package/dist/{line-distribute-DhQqysA2.js → line-distribute-C_CJisnJ.js} +2 -18
- package/dist/math.mjs +2 -8
- package/dist/{mathjax-BhwN6ilc.js → mathjax-DvwccQ8e.js} +0 -2
- package/dist/{model-source-kz_NkZqT.js → model-source-COXegBNA.js} +1 -3
- package/dist/{model-source-BkmyX_r-.js → model-source-DLXFe4_2.js} +3 -5
- package/dist/{model-source-session-CnPCTRDD.js → model-source-session-B3WVQCM5.js} +5 -9
- package/dist/{model-source-session-CF4iXav8.js → model-source-session-BVZBHZ04.js} +5 -11
- package/dist/{model-source-session-CJmkItIK.js → model-source-session-DfUgVpr1.js} +4 -8
- package/dist/node.mjs +6 -6
- package/dist/{pixel-budget-BpTYrepD.js → pixel-budget-DI82Hn3R.js} +0 -2
- package/dist/{plot-area-frame-Bs_j4uu7.js → plot-area-frame-D3JtHvov.js} +1 -167
- package/dist/{pptx-BhmLP_Ed.js → pptx-BD0jwWs6.js} +9 -11
- package/dist/{pptx-Bo9hCGQU.js → pptx-CLyebeF_.js} +16 -62
- package/dist/{pptx-model-source-J0SrVkO6.js → pptx-model-source-D_2mnSxI.js} +5 -7
- package/dist/pptx.mjs +7 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-CebYmrOD.js → presentation-model-source-rWZ3Y-S_.js} +8 -10
- package/dist/{raster-target-YQ4G6rxo.js → raster-target-Ca3tyA0L.js} +0 -2
- package/dist/{read-only-comment-decoration-PidH0wnP.js → read-only-comment-decoration-B06YO2zk.js} +0 -4
- package/dist/{read-only-comment-margin-B52rDVKo.js → read-only-comment-margin-Ee9Y6vPg.js} +0 -2
- package/dist/region-map.mjs +4 -7
- package/dist/{render-hT2OVZUi.js → render-Cs1bgbEm.js} +3 -5
- package/dist/{render-worker-host-Desevuoc.js → render-worker-host-BR7n4xKy.js} +0 -4
- package/dist/render-worker-host-BxsA-yJo.js +5 -0
- package/dist/{render-worker-host-BmAQ-sWT.js → render-worker-host-CZC0WOn8.js} +0 -4
- package/dist/{renderer-CvZ4JmoL.js → renderer-DFDF48zw.js} +7 -55
- package/dist/{renderer-module-contract-CWM7jv6d.js → renderer-module-contract-BuTx2FWJ.js} +0 -2
- package/dist/{renderer-BFWqhLEt.js → renderer-xdugdcMd.js} +6 -70
- package/dist/{resource-measurement-DBiUwblM.js → resource-measurement-CTGrNAsD.js} +2 -18
- package/dist/{session-CWDKFWCh.js → session-B5CgMc2N.js} +7 -17
- package/dist/{slide-pull-client-BuBvXMyc.js → slide-pull-client-43mS9T70.js} +9 -63
- package/dist/{three-d-BKwNPAP4.js → three-d-ByHGsYrX.js} +1 -11
- package/dist/three-d.mjs +4 -17
- package/dist/{tiff-contract-C6M3QcPp.js → tiff-contract-DEd8CGuz.js} +0 -2
- package/dist/tiff.mjs +5 -8
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +12 -11
- package/dist/types/index.d.ts +19 -15
- package/dist/types/internal-companion.d.ts +1 -1
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +7 -6
- package/dist/types/pptx.d.ts +11 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +14 -11
- package/dist/{visible-index-FeVA0mGE.js → visible-index-vN-4BNn7.js} +0 -2
- package/dist/{wasm-loader-rlgHmcSv.js → wasm-loader-KAOyLXzf.js} +0 -4
- package/dist/{wasm-runtime-generation-BWGfM44b.js → wasm-runtime-generation-BsWKRY7U.js} +1 -3
- package/dist/{workbook-model-source-Che8Zbjw.js → workbook-model-source-CZtKSWad.js} +9 -11
- package/dist/{worker-source-UAi3GNcM.js → worker-source-C29EQNUj.js} +0 -2
- package/dist/{worker-source-SbudzjYL.js → worker-source-D3NwPe6l.js} +0 -2
- package/dist/{worker-source-DrwhR9fw.js → worker-source-ZQE9C1j6.js} +0 -2
- package/dist/{worksheet-pull-client-Cxzj6uuB.js → worksheet-pull-client-D5zAevQv.js} +4 -18
- package/dist/{xlsx-C5BSwMUd.js → xlsx-S6orTmKI.js} +8 -16
- package/dist/{xlsx-CUVUep5I.js → xlsx-lvftmF1U.js} +119 -131
- package/dist/{xlsx-model-source-C3_PiPBo.js → xlsx-model-source-Cm9ocDgT.js} +8 -12
- package/dist/xlsx.mjs +7 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +2 -2
- package/dist/assets/render-worker-D_SMt5nl.js +0 -15
- package/dist/comment-ui-runtime-B7ZvovcS.js +0 -2
- package/dist/render-worker-host-Cz224I38.js +0 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { yo as e } from "./plot-area-frame-
|
|
2
|
-
import { B as t, D as n, G as r, O as i, k as a } from "./bounded-raw-part-cache-
|
|
3
|
-
import { S as o, b as s, c, d as l, f as u, g as d, i as f, p, u as m, y as h } from "./worksheet-pull-client-
|
|
4
|
-
import { t as g } from "./grid-geometry-
|
|
5
|
-
import { o as _, t as v } from "./xlsx-
|
|
6
|
-
import { t as y } from "./model-source-
|
|
7
|
-
//#region packages/xlsx/src/worksheet-pull-source-worker.ts
|
|
1
|
+
import { yo as e } from "./plot-area-frame-D3JtHvov.js";
|
|
2
|
+
import { B as t, D as n, G as r, O as i, k as a } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
3
|
+
import { S as o, b as s, c, d as l, f as u, g as d, i as f, p, u as m, y as h } from "./worksheet-pull-client-D5zAevQv.js";
|
|
4
|
+
import { t as g } from "./grid-geometry-CqTDvpDr.js";
|
|
5
|
+
import { o as _, t as v } from "./xlsx-S6orTmKI.js";
|
|
6
|
+
import { t as y } from "./model-source-DLXFe4_2.js";
|
|
8
7
|
var b = 64 * 1024 * 1024, x = class {
|
|
9
8
|
archive;
|
|
10
9
|
acceptWorksheet;
|
|
@@ -252,8 +251,6 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
252
251
|
return e === void 0 ? void 0 : t(e);
|
|
253
252
|
}
|
|
254
253
|
};
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region packages/node/src/xlsx-model-source.ts
|
|
257
254
|
async function S(e, t, n) {
|
|
258
255
|
return new C(await w(e, t, n), t.signal);
|
|
259
256
|
}
|
|
@@ -277,7 +274,7 @@ async function w(e, t, n) {
|
|
|
277
274
|
let r = s(t), i = {
|
|
278
275
|
...t,
|
|
279
276
|
xlsxWorksheetLimits: r.worksheet
|
|
280
|
-
}, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-
|
|
277
|
+
}, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-BVZBHZ04.js"), u = await y(e, "xlsx", {
|
|
281
278
|
...i,
|
|
282
279
|
source: i.legacyXls
|
|
283
280
|
}, c);
|
|
@@ -286,7 +283,7 @@ async function w(e, t, n) {
|
|
|
286
283
|
try {
|
|
287
284
|
if (l(d.viewDefaults), f = await o(d.archive, async (e) => {
|
|
288
285
|
if (!t.factory) return;
|
|
289
|
-
let { measureHostLayoutFont: n } = await import("./host-layout-measure-
|
|
286
|
+
let { measureHostLayoutFont: n } = await import("./host-layout-measure-GU0oJ4Me.js"), r = t.factory.createCanvas(1, 1).getContext("2d");
|
|
290
287
|
return r ? n(e, r) : void 0;
|
|
291
288
|
}), t.signal?.aborted) {
|
|
292
289
|
let e = /* @__PURE__ */ Error("XLSX workbook session was aborted");
|
|
@@ -305,5 +302,4 @@ async function w(e, t, n) {
|
|
|
305
302
|
closeArchive: d.close
|
|
306
303
|
}, i);
|
|
307
304
|
}
|
|
308
|
-
//#endregion
|
|
309
305
|
export { S as openXlsxSource };
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { vo as e, yo as t } from "./plot-area-frame-
|
|
2
|
-
import { u as n } from "./bounded-raw-part-cache-
|
|
3
|
-
import { f as r, u as i } from "./pixel-budget-
|
|
4
|
-
import { i as a, t as o } from "./tiff-contract-
|
|
5
|
-
import { D as s } from "./canvas-viewer-mechanics-
|
|
6
|
-
import { a as c } from "./worksheet-pull-client-
|
|
7
|
-
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-
|
|
1
|
+
import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
|
|
2
|
+
import { u as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
3
|
+
import { f as r, u as i } from "./pixel-budget-DI82Hn3R.js";
|
|
4
|
+
import { i as a, t as o } from "./tiff-contract-DEd8CGuz.js";
|
|
5
|
+
import { D as s } from "./canvas-viewer-mechanics-ycCX6v-z.js";
|
|
6
|
+
import { a as c } from "./worksheet-pull-client-D5zAevQv.js";
|
|
7
|
+
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-lvftmF1U.js";
|
|
8
8
|
export { u as MAX_SELECTION_AREAS, l as MAX_SELECTION_CONTEXT_CELLS, f as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, i as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, o as TiffDecodeError, d as XlsxSheetViewer, p as XlsxViewer, m as XlsxWorkbook, s as autoResize, r as isOoxmlDecodedImageLimitError, a as isTiffDecodeError, n as openExternalHyperlink, c as resolveSharedStrings };
|
package/dist/xlsx_parser_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silurus/ooxml",
|
|
3
|
-
"version": "0.89.
|
|
3
|
+
"version": "0.89.4",
|
|
4
4
|
"description": "Browser-based OOXML viewer (docx/xlsx/pptx) — Rust/WASM parser + Canvas renderer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yuki Yokotani <silurus.dev@gmail.com>",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"screenshots:readme": "playwright test --config tests/smoke/playwright.config.ts readme-screenshots --project=chrome",
|
|
138
138
|
"test:pattern-browser": "playwright test --config tests/patterns/playwright.config.ts",
|
|
139
139
|
"test:site-runtime": "playwright test --config tests/site-dist/playwright.config.ts",
|
|
140
|
-
"test": "vitest run && node --test tests/visual/private-corpus.test.mjs scripts/companion-release.test.mjs scripts/check-relative-wasm-urls.test.mjs packages/docx/tests/visual/stable-canvas-render.test.mjs 'packages/legacy-office/tools/*.test.mjs'",
|
|
140
|
+
"test": "vitest run && node --test scripts/optional-renderer-markers.test.mjs tests/visual/private-corpus.test.mjs scripts/companion-release.test.mjs scripts/check-relative-wasm-urls.test.mjs packages/docx/tests/visual/stable-canvas-render.test.mjs 'packages/legacy-office/tools/*.test.mjs'",
|
|
141
141
|
"test:python": "uv run --no-project --with python-docx==1.2.0 --with lxml==6.1.3 --with fonttools==4.67.0 python scripts/run-python-tests.py",
|
|
142
142
|
"bench:layout": "vitest bench --run packages/docx/src/layout/layout.bench.ts",
|
|
143
143
|
"bench:progressive": "OOXML_DOCX_PROGRESSIVE_BENCH=1 vitest run --disableConsoleIntercept packages/docx/src/layout/progressive-timing.test.ts",
|