@silurus/ooxml 0.89.6 → 0.89.8

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 (73) hide show
  1. package/dist/assets/render-worker-Ck21oePL.js +16 -0
  2. package/dist/assets/render-worker-DJiGqgi0.js +15 -0
  3. package/dist/assets/render-worker-hPLJ82d2.js +35 -0
  4. package/dist/{bounded-raw-part-cache-B8t03tSP.js → bounded-raw-part-cache-B5a6cGKO.js} +1713 -1515
  5. package/dist/{canvas-viewer-mechanics-DI38gHNV.js → canvas-viewer-mechanics-BsqaoYgK.js} +2 -2
  6. package/dist/{cfb-guard-BIaHdonq.js → cfb-guard-DzYlucez.js} +1 -1
  7. package/dist/chart-ex.mjs +367 -367
  8. package/dist/{comment-overlay-controller-Crm5Syhx.js → comment-overlay-controller-B7AoyoDK.js} +18 -18
  9. package/dist/{comment-ui-runtime-hfewTmVJ.js → comment-ui-runtime-C5eWtZSW.js} +3 -3
  10. package/dist/{comment-ui-runtime-BfEPgl5r.js → comment-ui-runtime-CV0I9faV.js} +3 -3
  11. package/dist/{document-model-source-BUTSwkyP.js → document-model-source-90ext13g.js} +37 -37
  12. package/dist/{document-pull-client-C_D779tO.js → document-pull-client-DSYpUET2.js} +17525 -13847
  13. package/dist/{document-pull-worker-Bkewz-So.js → document-pull-worker-hMKJ5RdB.js} +14 -14
  14. package/dist/{docx-BfLZeiwa.js → docx-DCCDnwrG.js} +593 -593
  15. package/dist/{docx-BC2HQtjg.js → docx-G7pt7ajR.js} +33 -33
  16. package/dist/{docx-model-source-IjrOZgnl.js → docx-model-source-Beon3BD5.js} +6 -6
  17. package/dist/docx.mjs +4 -4
  18. package/dist/docx_parser_bg.wasm +0 -0
  19. package/dist/{drawingml-shape-BcXkRayC.js → drawingml-shape-B1_kg4BV.js} +55 -55
  20. package/dist/{duotone-BI7CoghW.js → duotone-GK4Hqn7f.js} +1 -1
  21. package/dist/{emf-DgUBx9BU.js → emf--QWY-UlT.js} +50 -50
  22. package/dist/{font-preload-demand-B6HPFxDp.js → font-preload-demand-NqcVKIpX.js} +2 -2
  23. package/dist/{grid-geometry-CqTDvpDr.js → grid-geometry-DpMAiSZb.js} +1 -1
  24. package/dist/{host-layout-measure-DJvccDI3.js → host-layout-measure-Z2fIsmDw.js} +1 -1
  25. package/dist/index.mjs +3 -3
  26. package/dist/internal-companion.mjs +2 -2
  27. package/dist/{line-distribute-DR9Qwd3u.js → line-distribute-CwtditQo.js} +31 -25
  28. package/dist/{model-source-DcI3vC00.js → model-source-Cch44xsb.js} +2 -2
  29. package/dist/{model-source-session-BlQWNyj2.js → model-source-session-ClNCRDOg.js} +21 -21
  30. package/dist/{model-source-session-D0LF49Ve.js → model-source-session-DRcqFGfM.js} +2 -2
  31. package/dist/{model-source-session-BCteVilS.js → model-source-session-DSABX94B.js} +2 -2
  32. package/dist/node.mjs +5 -5
  33. package/dist/{plot-area-frame-D3JtHvov.js → plot-area-frame-DNYMd9Pf.js} +1914 -1890
  34. package/dist/{pptx-SmjDGyub.js → pptx-C1CiFW1D.js} +35 -33
  35. package/dist/{pptx-CfCiVlNB.js → pptx-Ci1Y9SS_.js} +261 -259
  36. package/dist/{pptx-model-source-B2Irk68a.js → pptx-model-source-C9TuBisH.js} +18 -12
  37. package/dist/pptx-parsed-slides-BMGr4khe.js +8 -0
  38. package/dist/pptx.mjs +5 -5
  39. package/dist/pptx_parser_bg.wasm +0 -0
  40. package/dist/{presentation-model-source-DL6duh5l.js → presentation-model-source-3N7xLtmI.js} +6 -6
  41. package/dist/region-map.mjs +39 -39
  42. package/dist/{render-CMUEAeHp.js → render-Bf_Gywxw.js} +32 -30
  43. package/dist/{render-worker-host-CtlBbau5.js → render-worker-host-BZoh-wqR.js} +1 -1
  44. package/dist/{render-worker-host-D_0g-TQ2.js → render-worker-host-BmVeB_mR.js} +1 -1
  45. package/dist/{render-worker-host-DjBotZNL.js → render-worker-host-CVr53kg0.js} +1 -1
  46. package/dist/{renderer-IFuBkPvF.js → renderer-CCA_bQB8.js} +777 -707
  47. package/dist/renderer-DpTePxGq.js +5887 -0
  48. package/dist/{resource-measurement-D2bu0Qfx.js → resource-measurement-CfJtbwiR.js} +129 -129
  49. package/dist/{session-KIWcCCP2.js → session-DPXK_lpI.js} +64 -64
  50. package/dist/{slide-pull-client-BUuJQQVE.js → slide-pull-client-3g6TxaKa.js} +1421 -1421
  51. package/dist/{three-d-ByHGsYrX.js → three-d-BfMZVR0w.js} +98 -98
  52. package/dist/three-d.mjs +678 -678
  53. package/dist/types/chart-ex.d.ts +5 -2
  54. package/dist/types/docx.d.ts +29 -7
  55. package/dist/types/index.d.ts +34 -11
  56. package/dist/types/node.d.ts +27 -5
  57. package/dist/types/pptx.d.ts +11 -7
  58. package/dist/types/region-map.d.ts +5 -2
  59. package/dist/types/three-d.d.ts +5 -2
  60. package/dist/types/xlsx.d.ts +10 -7
  61. package/dist/{wasm-runtime-generation-BLweKv8r.js → wasm-runtime-generation-D97yoAXz.js} +17 -17
  62. package/dist/{workbook-model-source-DBfVsWj7.js → workbook-model-source-BHR8shXr.js} +6 -6
  63. package/dist/{worksheet-pull-client-Du0MuIro.js → worksheet-pull-client-BudfclVl.js} +84 -84
  64. package/dist/{xlsx-CD1VeDIg.js → xlsx-7aY3Pbvh.js} +44 -44
  65. package/dist/{xlsx-CCMRAxPB.js → xlsx-DTtDjzFq.js} +299 -299
  66. package/dist/{xlsx-model-source-udh7Q4WB.js → xlsx-model-source-DXKvb90T.js} +36 -36
  67. package/dist/xlsx.mjs +5 -5
  68. package/dist/xlsx_parser_bg.wasm +0 -0
  69. package/package.json +1 -1
  70. package/dist/assets/render-worker-B5HWxkbU.js +0 -16
  71. package/dist/assets/render-worker-Ba4LYMJd.js +0 -15
  72. package/dist/assets/render-worker-DkqinUC6.js +0 -35
  73. package/dist/renderer-xdugdcMd.js +0 -5769
@@ -1,9 +1,9 @@
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-B8t03tSP.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-Du0MuIro.js";
4
- import { t as g } from "./grid-geometry-CqTDvpDr.js";
5
- import { o as _, t as v } from "./xlsx-CD1VeDIg.js";
6
- import { t as y } from "./model-source-DcI3vC00.js";
1
+ import { wo as e } from "./plot-area-frame-DNYMd9Pf.js";
2
+ import { A as t, J as n, M as r, U as i, j as a } from "./bounded-raw-part-cache-B5a6cGKO.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-BudfclVl.js";
4
+ import { t as g } from "./grid-geometry-DpMAiSZb.js";
5
+ import { o as _, t as v } from "./xlsx-7aY3Pbvh.js";
6
+ import { t as y } from "./model-source-Cch44xsb.js";
7
7
  var b = 64 * 1024 * 1024, x = class {
8
8
  archive;
9
9
  acceptWorksheet;
@@ -11,7 +11,7 @@ var b = 64 * 1024 * 1024, x = class {
11
11
  prepareRows;
12
12
  provisional;
13
13
  worksheetPolicy;
14
- coordinator = new a();
14
+ coordinator = new r();
15
15
  sessions = /* @__PURE__ */ new Map();
16
16
  operationTail = Promise.resolve();
17
17
  pendingOpens = /* @__PURE__ */ new Map();
@@ -43,18 +43,18 @@ var b = 64 * 1024 * 1024, x = class {
43
43
  }
44
44
  async open(t, n, r) {
45
45
  if (this.resourceFailure) throw this.resourceFailure;
46
- let a = this.pendingOpens.get(r.sessionId);
47
- if (!a || a.identity.operationId !== r.operationId || a.identity.generation !== r.generation) throw Error("worksheet pull session open reservation is stale or missing");
46
+ let i = this.pendingOpens.get(r.sessionId);
47
+ if (!i || i.identity.operationId !== r.operationId || i.identity.generation !== r.generation) throw Error("worksheet pull session open reservation is stale or missing");
48
48
  let s = this.worksheetPolicy(), h, g = new Promise((e) => {
49
49
  h = e;
50
50
  }), _ = this.operationTail.then(() => this.coordinator.enqueue(async () => {
51
- if (a.canceled) throw Error("worksheet pull session open was canceled");
51
+ if (i.canceled) throw Error("worksheet pull session open was canceled");
52
52
  this.executeArchive((e) => e.open_sheet_cursor(t, n));
53
53
  let g = [], _ = {
54
54
  rows: 0,
55
55
  cells: 0,
56
56
  ownedUtf8Bytes: 0
57
- }, v, y = !1, x = new i({
57
+ }, v, y = !1, x = new a({
58
58
  ...r,
59
59
  maxByteCredit: b,
60
60
  coordinator: this.coordinator,
@@ -144,14 +144,14 @@ var b = 64 * 1024 * 1024, x = class {
144
144
  } catch {}
145
145
  }
146
146
  }
147
- dispatch(e, t) {
147
+ dispatch(e, r) {
148
148
  let i = this.sessions.get(e.sessionId);
149
- if (i) return i.host.dispatch(e, t);
149
+ if (i) return i.host.dispatch(e, r);
150
150
  let a = this.pendingOpens.get(e.sessionId);
151
151
  if (a && (e.kind === "cancel" || e.kind === "close")) {
152
- let r = a.identity.operationId === e.operationId && a.identity.generation === e.generation;
153
- return r && (a.canceled = !0), t(r ? {
154
- protocol: n,
152
+ let n = a.identity.operationId === e.operationId && a.identity.generation === e.generation;
153
+ return n && (a.canceled = !0), r(n ? {
154
+ protocol: t,
155
155
  kind: "accepted",
156
156
  sessionId: e.sessionId,
157
157
  operationId: e.operationId,
@@ -159,7 +159,7 @@ var b = 64 * 1024 * 1024, x = class {
159
159
  requestId: e.requestId,
160
160
  command: e.kind
161
161
  } : {
162
- protocol: n,
162
+ protocol: t,
163
163
  kind: "error",
164
164
  sessionId: e.sessionId,
165
165
  operationId: e.operationId,
@@ -172,37 +172,37 @@ var b = 64 * 1024 * 1024, x = class {
172
172
  }
173
173
  }), Promise.resolve();
174
174
  }
175
- return e.kind === "cancel" || e.kind === "close" ? (t({
176
- protocol: n,
175
+ return e.kind === "cancel" || e.kind === "close" ? (r({
176
+ protocol: t,
177
177
  kind: "accepted",
178
178
  sessionId: e.sessionId,
179
179
  operationId: e.operationId,
180
180
  generation: e.generation,
181
181
  requestId: e.requestId,
182
182
  command: e.kind
183
- }), Promise.resolve()) : (t({
184
- protocol: n,
183
+ }), Promise.resolve()) : (r({
184
+ protocol: t,
185
185
  kind: "error",
186
186
  sessionId: e.sessionId,
187
187
  operationId: e.operationId,
188
188
  generation: e.generation,
189
189
  requestId: e.requestId,
190
- error: r(/* @__PURE__ */ Error("worksheet pull session is not open"))
190
+ error: n(/* @__PURE__ */ Error("worksheet pull session is not open"))
191
191
  }), Promise.resolve());
192
192
  }
193
- async dispatchSafely(e, t) {
193
+ async dispatchSafely(e, r) {
194
194
  try {
195
- await this.dispatch(e, t);
195
+ await this.dispatch(e, r);
196
196
  } catch (i) {
197
197
  try {
198
- t({
199
- protocol: n,
198
+ r({
199
+ protocol: t,
200
200
  kind: "error",
201
201
  sessionId: e.sessionId,
202
202
  operationId: e.operationId,
203
203
  generation: e.generation,
204
204
  requestId: e.requestId,
205
- error: r(i)
205
+ error: n(i)
206
206
  });
207
207
  } catch {}
208
208
  }
@@ -219,8 +219,8 @@ var b = 64 * 1024 * 1024, x = class {
219
219
  async reset() {
220
220
  for (let e of this.pendingOpens.values()) e.canceled = !0;
221
221
  let e = 1;
222
- for (let { host: t, identity: r } of [...this.sessions.values()]) await t.dispatch({
223
- protocol: n,
222
+ for (let { host: n, identity: r } of [...this.sessions.values()]) await n.dispatch({
223
+ protocol: t,
224
224
  kind: "close",
225
225
  ...r,
226
226
  requestId: e++
@@ -233,10 +233,10 @@ var b = 64 * 1024 * 1024, x = class {
233
233
  return e;
234
234
  }
235
235
  async closeIdentity(e) {
236
- let t = this.sessions.get(e.sessionId);
237
- if (t) {
238
- await t.host.dispatch({
239
- protocol: n,
236
+ let n = this.sessions.get(e.sessionId);
237
+ if (n) {
238
+ await n.host.dispatch({
239
+ protocol: t,
240
240
  kind: "close",
241
241
  ...e,
242
242
  requestId: 1
@@ -248,7 +248,7 @@ var b = 64 * 1024 * 1024, x = class {
248
248
  }
249
249
  readResourceUsage() {
250
250
  let e = this.executeArchive((e) => e.sheet_cursor_resource_usage?.());
251
- return e === void 0 ? void 0 : t(e);
251
+ return e === void 0 ? void 0 : i(e);
252
252
  }
253
253
  };
254
254
  async function S(e, t, n) {
@@ -274,7 +274,7 @@ async function w(e, t, n) {
274
274
  let r = s(t), i = {
275
275
  ...t,
276
276
  xlsxWorksheetLimits: r.worksheet
277
- }, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-BlQWNyj2.js"), u = await y(e, "xlsx", {
277
+ }, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-ClNCRDOg.js"), u = await y(e, "xlsx", {
278
278
  ...i,
279
279
  source: i.legacyXls
280
280
  }, c);
@@ -283,7 +283,7 @@ async function w(e, t, n) {
283
283
  try {
284
284
  if (l(d.viewDefaults), f = await o(d.archive, async (e) => {
285
285
  if (!t.factory) return;
286
- let { measureHostLayoutFont: n } = await import("./host-layout-measure-DJvccDI3.js"), r = t.factory.createCanvas(1, 1).getContext("2d");
286
+ let { measureHostLayoutFont: n } = await import("./host-layout-measure-Z2fIsmDw.js"), r = t.factory.createCanvas(1, 1).getContext("2d");
287
287
  return r ? n(e, r) : void 0;
288
288
  }), t.signal?.aborted) {
289
289
  let e = /* @__PURE__ */ Error("XLSX workbook session was aborted");
package/dist/xlsx.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
2
- import { u as n } from "./bounded-raw-part-cache-B8t03tSP.js";
1
+ import { Co as e, wo as t } from "./plot-area-frame-DNYMd9Pf.js";
2
+ import { p as n } from "./bounded-raw-part-cache-B5a6cGKO.js";
3
3
  import { f as r, u as i } from "./pixel-budget-DI82Hn3R.js";
4
4
  import { i as a, t as o } from "./tiff-contract-DEd8CGuz.js";
5
- import { D as s } from "./canvas-viewer-mechanics-DI38gHNV.js";
6
- import { a as c } from "./worksheet-pull-client-Du0MuIro.js";
7
- import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-CCMRAxPB.js";
5
+ import { D as s } from "./canvas-viewer-mechanics-BsqaoYgK.js";
6
+ import { a as c } from "./worksheet-pull-client-BudfclVl.js";
7
+ import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-DTtDjzFq.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 };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silurus/ooxml",
3
- "version": "0.89.6",
3
+ "version": "0.89.8",
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>",