@work-zhanguo/light-file-preview 0.0.5 → 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 +2 -1
- 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 +1 -1
|
@@ -193,7 +193,7 @@ function w(n, e) {
|
|
|
193
193
|
function se(n) {
|
|
194
194
|
try {
|
|
195
195
|
n = encodeURI(n).replace(b.percentDecode, "%");
|
|
196
|
-
} catch {
|
|
196
|
+
} catch (e) {
|
|
197
197
|
return null;
|
|
198
198
|
}
|
|
199
199
|
return n;
|
|
@@ -707,29 +707,29 @@ ${o}` : o;
|
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
url(n) {
|
|
710
|
-
var t;
|
|
710
|
+
var t, r;
|
|
711
711
|
let e;
|
|
712
712
|
if (e = this.rules.inline.url.exec(n)) {
|
|
713
|
-
let
|
|
713
|
+
let s, i;
|
|
714
714
|
if (e[2] === "@")
|
|
715
|
-
|
|
715
|
+
s = e[0], i = "mailto:" + s;
|
|
716
716
|
else {
|
|
717
|
-
let
|
|
717
|
+
let c;
|
|
718
718
|
do
|
|
719
|
-
|
|
720
|
-
while (
|
|
721
|
-
|
|
719
|
+
c = e[0], e[0] = (r = (t = this.rules.inline._backpedal.exec(e[0])) == null ? void 0 : t[0]) != null ? r : "";
|
|
720
|
+
while (c !== e[0]);
|
|
721
|
+
s = e[0], e[1] === "www." ? i = "http://" + e[0] : i = e[0];
|
|
722
722
|
}
|
|
723
723
|
return {
|
|
724
724
|
type: "link",
|
|
725
725
|
raw: e[0],
|
|
726
|
-
text:
|
|
727
|
-
href:
|
|
726
|
+
text: s,
|
|
727
|
+
href: i,
|
|
728
728
|
tokens: [
|
|
729
729
|
{
|
|
730
730
|
type: "text",
|
|
731
|
-
raw:
|
|
732
|
-
text:
|
|
731
|
+
raw: s,
|
|
732
|
+
text: s
|
|
733
733
|
}
|
|
734
734
|
]
|
|
735
735
|
};
|
|
@@ -1488,17 +1488,17 @@ ${n}</tr>
|
|
|
1488
1488
|
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1489
1489
|
}
|
|
1490
1490
|
lexer(n, e) {
|
|
1491
|
-
return y.lex(n, e
|
|
1491
|
+
return y.lex(n, e != null ? e : this.defaults);
|
|
1492
1492
|
}
|
|
1493
1493
|
parser(n, e) {
|
|
1494
|
-
return R.parse(n, e
|
|
1494
|
+
return R.parse(n, e != null ? e : this.defaults);
|
|
1495
1495
|
}
|
|
1496
1496
|
parseMarkdown(n) {
|
|
1497
1497
|
return (t, r) => {
|
|
1498
1498
|
const s = { ...r }, i = { ...this.defaults, ...s }, c = this.onError(!!i.silent, !!i.async);
|
|
1499
1499
|
if (this.defaults.async === !0 && s.async === !1)
|
|
1500
1500
|
return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
1501
|
-
if (typeof t
|
|
1501
|
+
if (typeof t == "undefined" || t === null)
|
|
1502
1502
|
return c(new Error("marked(): input parameter is undefined or null"));
|
|
1503
1503
|
if (typeof t != "string")
|
|
1504
1504
|
return c(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|