@work-zhanguo/light-file-preview 0.0.4 → 0.0.6
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 +14 -2
- package/dist/{DocxRenderer-B8Ed3qFw.js → DocxRenderer-D0ngcG2T.js} +2 -2
- package/dist/{PdfRenderer-CYtwJLrP.js → PdfRenderer-SICIjXYT.js} +2 -2
- package/dist/{SheetRenderer-C9AKQiKN.js → SheetRenderer-D4Y1dYZX.js} +2 -2
- package/dist/{TextRenderer-W4uPsa5O.js → TextRenderer-KUhpnf63.js} +14 -14
- package/dist/{UnsupportedRenderer-BpyBTIIE.js → UnsupportedRenderer-Y2AgN0-l.js} +1 -1
- package/dist/{docx-preview-B2OPGnfm.js → docx-preview-D_8kC8vU.js} +666 -652
- package/dist/{index-BlBE9ZR-.js → index-DZOrV9D_.js} +86 -85
- package/dist/light-file-preview.js +1 -1
- package/dist/light-file-preview.umd.cjs +29 -29
- package/dist/{marked.esm-toXckLRC.js → marked.esm-CRmQbSOC.js} +15 -15
- package/dist/{pdf-B2JYpzlX.js → pdf-CV932zwQ.js} +1863 -1849
- package/dist/{purify.es-D5dazAgD.js → purify.es-CCmmh-Lt.js} +10 -10
- package/dist/standalone/light-file-preview.iife.js +68 -68
- package/dist/standalone/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/{text-CcxmtFce.js → text-Bqxn_tMI.js} +5 -5
- package/dist/vue2/{DocxRenderer-IkLQeCjg.js → DocxRenderer-D-MItvaP.js} +3 -3
- package/dist/vue2/{PdfRenderer-DmgMRpqS.js → PdfRenderer-rw-3PY9w.js} +3 -3
- package/dist/vue2/{SheetRenderer-CuAyFgj9.js → SheetRenderer-BxfF54Q3.js} +3 -3
- package/dist/vue2/{TextRenderer-Bxqs7APd.js → TextRenderer-DOzgi4YR.js} +14 -14
- package/dist/vue2/{UnsupportedRenderer-Cs2uPl_6.js → UnsupportedRenderer-VozD1bVb.js} +1 -1
- package/dist/vue2/{docx-preview-B2OPGnfm.js → docx-preview-D_8kC8vU.js} +666 -652
- package/dist/vue2/light-file-preview-vue2.js +1 -1
- package/dist/vue2/light-file-preview-vue2.umd.cjs +76 -76
- package/dist/vue2/{marked.esm-toXckLRC.js → marked.esm-CRmQbSOC.js} +15 -15
- package/dist/vue2/{pdf-B2JYpzlX.js → pdf-CV932zwQ.js} +1863 -1849
- package/dist/vue2/{purify.es-D5dazAgD.js → purify.es-CCmmh-Lt.js} +10 -10
- package/dist/vue2/{text-CcxmtFce.js → text-Bqxn_tMI.js} +5 -5
- package/dist/vue2/{vue2-CzAkhodr.js → vue2-rrMAk2-n.js} +119 -118
- package/dist/vue2/{xlsx-CZNBZqms.js → xlsx-j9Zzywas.js} +82 -82
- package/dist/{xlsx-CZNBZqms.js → xlsx-j9Zzywas.js} +82 -82
- package/package.json +4 -2
- package/style.css +1 -0
- package/vue2.js +2 -0
|
@@ -13,7 +13,7 @@ let {
|
|
|
13
13
|
} = Object, {
|
|
14
14
|
apply: ve,
|
|
15
15
|
construct: Ue
|
|
16
|
-
} = typeof Reflect
|
|
16
|
+
} = typeof Reflect != "undefined" && Reflect;
|
|
17
17
|
S || (S = function(o) {
|
|
18
18
|
return o;
|
|
19
19
|
});
|
|
@@ -115,7 +115,7 @@ const Q = {
|
|
|
115
115
|
comment: 8,
|
|
116
116
|
document: 9
|
|
117
117
|
}, fn = function() {
|
|
118
|
-
return typeof window
|
|
118
|
+
return typeof window == "undefined" ? null : window;
|
|
119
119
|
}, un = function(o, l) {
|
|
120
120
|
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
121
121
|
return null;
|
|
@@ -132,7 +132,7 @@ const Q = {
|
|
|
132
132
|
return v;
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
} catch {
|
|
135
|
+
} catch (v) {
|
|
136
136
|
return console.warn("TrustedTypes policy " + D + " could not be created."), null;
|
|
137
137
|
}
|
|
138
138
|
}, Et = function() {
|
|
@@ -277,7 +277,7 @@ function ht() {
|
|
|
277
277
|
});
|
|
278
278
|
try {
|
|
279
279
|
te(e).removeChild(e);
|
|
280
|
-
} catch {
|
|
280
|
+
} catch (t) {
|
|
281
281
|
Lt(e);
|
|
282
282
|
}
|
|
283
283
|
}, k = function(e, t) {
|
|
@@ -286,7 +286,7 @@ function ht() {
|
|
|
286
286
|
attribute: t.getAttributeNode(e),
|
|
287
287
|
from: t
|
|
288
288
|
});
|
|
289
|
-
} catch {
|
|
289
|
+
} catch (n) {
|
|
290
290
|
q(o.removed, {
|
|
291
291
|
attribute: null,
|
|
292
292
|
from: t
|
|
@@ -296,12 +296,12 @@ function ht() {
|
|
|
296
296
|
if (F || ie)
|
|
297
297
|
try {
|
|
298
298
|
N(t);
|
|
299
|
-
} catch {
|
|
299
|
+
} catch (n) {
|
|
300
300
|
}
|
|
301
301
|
else
|
|
302
302
|
try {
|
|
303
303
|
t.setAttribute(e, "");
|
|
304
|
-
} catch {
|
|
304
|
+
} catch (n) {
|
|
305
305
|
}
|
|
306
306
|
}, et = function(e) {
|
|
307
307
|
let t = null, n = null;
|
|
@@ -316,13 +316,13 @@ function ht() {
|
|
|
316
316
|
if (z === I)
|
|
317
317
|
try {
|
|
318
318
|
t = new Dt().parseFromString(f, $);
|
|
319
|
-
} catch {
|
|
319
|
+
} catch (m) {
|
|
320
320
|
}
|
|
321
321
|
if (!t || !t.documentElement) {
|
|
322
322
|
t = de.createDocument(z, "template", null);
|
|
323
323
|
try {
|
|
324
324
|
t.documentElement.innerHTML = Le ? X : f;
|
|
325
|
-
} catch {
|
|
325
|
+
} catch (m) {
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
const _ = t.body || t.documentElement;
|
|
@@ -468,7 +468,7 @@ function ht() {
|
|
|
468
468
|
if (E !== Ce)
|
|
469
469
|
try {
|
|
470
470
|
O ? e.setAttributeNS(O, m, E) : e.setAttribute(m, E), Ne(e) ? N(e) : ft(o.removed);
|
|
471
|
-
} catch {
|
|
471
|
+
} catch (lt) {
|
|
472
472
|
k(m, e);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
@@ -7,18 +7,18 @@ async function f(e, r) {
|
|
|
7
7
|
}
|
|
8
8
|
return e.arrayBuffer();
|
|
9
9
|
}
|
|
10
|
-
async function
|
|
10
|
+
async function u(e, r, t, o) {
|
|
11
11
|
const n = await f(e, o), a = n.byteLength > t ? n.slice(0, t) : n;
|
|
12
12
|
try {
|
|
13
13
|
return new TextDecoder(r, { fatal: !0 }).decode(a);
|
|
14
|
-
} catch {
|
|
14
|
+
} catch (c) {
|
|
15
15
|
return new TextDecoder("utf-8").decode(a);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
async function
|
|
18
|
+
async function s(e, r) {
|
|
19
19
|
return f(e, r);
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
u as a,
|
|
23
|
+
s as r
|
|
24
24
|
};
|