@silurus/ooxml 0.89.8 → 0.89.10
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 +9 -3
- package/dist/assets/{render-worker-DJiGqgi0.js → render-worker-Coh33rbW.js} +11 -11
- package/dist/assets/{render-worker-hPLJ82d2.js → render-worker-jGsxSIGb.js} +23 -23
- package/dist/{comment-overlay-controller-B7AoyoDK.js → comment-overlay-controller-b3tKmzMa.js} +11 -7
- package/dist/{comment-ui-runtime-C5eWtZSW.js → comment-ui-runtime-BkpFlPT0.js} +3 -3
- package/dist/{comment-ui-runtime-CV0I9faV.js → comment-ui-runtime-Bp37ytDC.js} +2 -2
- package/dist/{document-model-source-90ext13g.js → document-model-source-Ca2fk_Fc.js} +4 -4
- package/dist/{document-pull-client-DSYpUET2.js → document-pull-client-CTGM4i1m.js} +2447 -2406
- package/dist/{docx-DCCDnwrG.js → docx-B-47Ff78.js} +5 -5
- package/dist/{docx-G7pt7ajR.js → docx-DwdB7I59.js} +3 -3
- package/dist/{docx-model-source-Beon3BD5.js → docx-model-source-CWuvf9jk.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{host-layout-measure-Z2fIsmDw.js → host-layout-measure-IFLllYwV.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{pptx-Ci1Y9SS_.js → pptx-DbjWegUB.js} +27 -12
- package/dist/pptx.mjs +1 -1
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-3N7xLtmI.js → presentation-model-source-DLNioq7T.js} +2 -2
- package/dist/{render-worker-host-BZoh-wqR.js → render-worker-host-80mSndWp.js} +1 -1
- package/dist/{render-worker-host-BmVeB_mR.js → render-worker-host-pKls3F_t.js} +1 -1
- package/dist/{renderer-CCA_bQB8.js → renderer-DuYC3xXi.js} +1029 -917
- package/dist/types/docx.d.ts +3 -3
- package/dist/types/index.d.ts +7 -5
- package/dist/types/node.d.ts +2 -2
- package/dist/types/pptx.d.ts +3 -1
- package/dist/types/xlsx.d.ts +1 -1
- package/dist/{workbook-model-source-BHR8shXr.js → workbook-model-source-D1dmkDMP.js} +3 -3
- package/dist/{xlsx-7aY3Pbvh.js → xlsx-DA0uR1B1.js} +1 -1
- package/dist/{xlsx-DTtDjzFq.js → xlsx-DBhYlJKp.js} +652 -640
- package/dist/{xlsx-model-source-DXKvb90T.js → xlsx-model-source-zemVDAfl.js} +2 -2
- package/dist/xlsx.mjs +1 -1
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/{comment-overlay-controller-B7AoyoDK.js → comment-overlay-controller-b3tKmzMa.js}
RENAMED
|
@@ -141,13 +141,14 @@ var N = class {
|
|
|
141
141
|
_collectRuns;
|
|
142
142
|
_location;
|
|
143
143
|
_acceptMatch;
|
|
144
|
+
_includeUnit;
|
|
144
145
|
_runs = /* @__PURE__ */ new Map();
|
|
145
146
|
_matches = [];
|
|
146
147
|
_active = -1;
|
|
147
148
|
_generation = 0;
|
|
148
149
|
_runsRevision = 0;
|
|
149
|
-
constructor(e, t, n, r = () => !0) {
|
|
150
|
-
this._count = e, this._collectRuns = t, this._location = n, this._acceptMatch = r;
|
|
150
|
+
constructor(e, t, n, r = () => !0, i = () => !0) {
|
|
151
|
+
this._count = e, this._collectRuns = t, this._location = n, this._acceptMatch = r, this._includeUnit = i;
|
|
151
152
|
}
|
|
152
153
|
invalidate() {
|
|
153
154
|
this._generation++, this._runsRevision++, this._runs.clear(), this._matches = [], this._active = -1;
|
|
@@ -182,8 +183,10 @@ var N = class {
|
|
|
182
183
|
async find(e, t = {}) {
|
|
183
184
|
let n = ++this._generation;
|
|
184
185
|
if (e.length === 0) return this._runsRevision++, this._runs.clear(), this._matches = [], this._active = -1, [];
|
|
185
|
-
let r = this._runsRevision, i = new Map(this._runs), a = this._count();
|
|
186
|
+
let r = this._runsRevision, i = new Map(this._runs), a = this._count(), o = [];
|
|
187
|
+
for (let e = 0; e < a; e++) o.push(this._includeUnit(e));
|
|
186
188
|
for (let e = 0; e < a; e++) {
|
|
189
|
+
if (!o[e]) continue;
|
|
187
190
|
let t = i.get(e);
|
|
188
191
|
if (!t) {
|
|
189
192
|
try {
|
|
@@ -197,20 +200,21 @@ var N = class {
|
|
|
197
200
|
}
|
|
198
201
|
}
|
|
199
202
|
if (n !== this._generation) return [];
|
|
200
|
-
let
|
|
203
|
+
let s = r === this._runsRevision ? i : new Map([...i, ...this._runs]), l = [];
|
|
201
204
|
for (let n = 0; n < a; n++) {
|
|
202
|
-
|
|
205
|
+
if (!o[n]) continue;
|
|
206
|
+
let r = s.get(n) ?? [];
|
|
203
207
|
for (let i of c(d(r), e, t)) {
|
|
204
208
|
if (!this._acceptMatch(r, i.slices)) continue;
|
|
205
209
|
let e = i.slices.map((e) => r[e.runIndex].text.slice(e.start, e.end)).join("");
|
|
206
|
-
|
|
210
|
+
l.push({
|
|
207
211
|
unit: n,
|
|
208
212
|
text: e,
|
|
209
213
|
slices: i.slices
|
|
210
214
|
});
|
|
211
215
|
}
|
|
212
216
|
}
|
|
213
|
-
return this._runsRevision++, this._runs =
|
|
217
|
+
return this._runsRevision++, this._runs = s, this._matches = l, this._active = -1, this.matches();
|
|
214
218
|
}
|
|
215
219
|
next() {
|
|
216
220
|
return this._active = m(this._active, this._matches.length), this._activePublic();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as e } from "./comment-overlay-controller-
|
|
2
|
-
import { L as t } from "./document-pull-client-
|
|
3
|
-
import { f as n } from "./docx-
|
|
1
|
+
import { E as e } from "./comment-overlay-controller-b3tKmzMa.js";
|
|
2
|
+
import { L as t } from "./document-pull-client-CTGM4i1m.js";
|
|
3
|
+
import { f as n } from "./docx-B-47Ff78.js";
|
|
4
4
|
import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-Ee9Y6vPg.js";
|
|
5
5
|
import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-B06YO2zk.js";
|
|
6
6
|
function p(e, r) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fa as e } from "./plot-area-frame-DNYMd9Pf.js";
|
|
2
|
-
import { E as t } from "./comment-overlay-controller-
|
|
3
|
-
import { r as n } from "./pptx-
|
|
2
|
+
import { E as t } from "./comment-overlay-controller-b3tKmzMa.js";
|
|
3
|
+
import { r as n } from "./pptx-DbjWegUB.js";
|
|
4
4
|
import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-Ee9Y6vPg.js";
|
|
5
5
|
import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-B06YO2zk.js";
|
|
6
6
|
function f(e, t, n) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $t as e, An as t, I as n, P as r, Xt as i, jn as a } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
2
|
-
import { P as o, b as s } from "./comment-overlay-controller-
|
|
3
|
-
import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-
|
|
4
|
-
import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-
|
|
2
|
+
import { P as o, b as s } from "./comment-overlay-controller-b3tKmzMa.js";
|
|
3
|
+
import { N as c, _ as l, a as u, d, f, j as p, l as m, o as h, p as g, s as _, v, y } from "./document-pull-client-CTGM4i1m.js";
|
|
4
|
+
import { _ as b, c as x, g as S, h as C, l as w, m as T, u as E } from "./docx-B-47Ff78.js";
|
|
5
5
|
import { T as D } from "./canvas-viewer-mechanics-BsqaoYgK.js";
|
|
6
6
|
import { n as O } from "./renderer-module-contract-BuTx2FWJ.js";
|
|
7
7
|
import { n as k, o as A, r as j } from "./model-source-COXegBNA.js";
|
|
@@ -54,7 +54,7 @@ async function F(j, M = {}, N) {
|
|
|
54
54
|
let i = k(r, "docx");
|
|
55
55
|
try {
|
|
56
56
|
H.setSourceBytes(n.byteLength), H.checkpoint("container ready");
|
|
57
|
-
let r = V === "worker" ? (await import("./render-worker-host-
|
|
57
|
+
let r = V === "worker" ? (await import("./render-worker-host-80mSndWp.js")).createRenderWorker() : new (await (import("./worker-source-D3NwPe6l.js"))).default(), k, A, j = !1, U = () => {
|
|
58
58
|
j || !k || (j = !0, k.destroy());
|
|
59
59
|
}, W = I(r, i, M, (e) => {
|
|
60
60
|
k && P(k, e);
|