@work-zhanguo/light-file-preview 0.0.5 → 0.0.7

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 (39) hide show
  1. package/README.md +3 -1
  2. package/dist/{DocxRenderer-B8Ed3qFw.js → DocxRenderer-DogNhBLd.js} +2 -2
  3. package/dist/PdfRenderer-Due2M5cA.js +57 -0
  4. package/dist/{SheetRenderer-C9AKQiKN.js → SheetRenderer-D4Y1dYZX.js} +2 -2
  5. package/dist/{TextRenderer-W4uPsa5O.js → TextRenderer-KUhpnf63.js} +14 -14
  6. package/dist/{UnsupportedRenderer-BpyBTIIE.js → UnsupportedRenderer-8vWx7yB8.js} +1 -1
  7. package/dist/_commonjs-dynamic-modules-C74YT1gS.js +32 -0
  8. package/dist/{docx-preview-B2OPGnfm.js → docx-preview-BV-bQyiM.js} +729 -721
  9. package/dist/{index-BlBE9ZR-.js → index-BNN8UXSN.js} +86 -85
  10. package/dist/light-file-preview.js +1 -1
  11. package/dist/light-file-preview.umd.cjs +158 -161
  12. package/dist/{marked.esm-toXckLRC.js → marked.esm-CRmQbSOC.js} +15 -15
  13. package/dist/pdf-BiKi76Et.js +15320 -0
  14. package/dist/{purify.es-D5dazAgD.js → purify.es-CCmmh-Lt.js} +10 -10
  15. package/dist/standalone/light-file-preview.iife.js +160 -163
  16. package/dist/standalone/style.css +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/{text-CcxmtFce.js → text-Bqxn_tMI.js} +5 -5
  19. package/dist/vue2/{DocxRenderer-IkLQeCjg.js → DocxRenderer-B9neMid7.js} +3 -3
  20. package/dist/vue2/PdfRenderer-iEictZ1C.js +57 -0
  21. package/dist/vue2/{SheetRenderer-CuAyFgj9.js → SheetRenderer-KITfWM9E.js} +3 -3
  22. package/dist/vue2/{TextRenderer-Bxqs7APd.js → TextRenderer-B8_BjhwJ.js} +14 -14
  23. package/dist/vue2/{UnsupportedRenderer-Cs2uPl_6.js → UnsupportedRenderer-WZYKdRc9.js} +1 -1
  24. package/dist/vue2/_commonjs-dynamic-modules-C74YT1gS.js +32 -0
  25. package/dist/vue2/{docx-preview-B2OPGnfm.js → docx-preview-BV-bQyiM.js} +729 -721
  26. package/dist/vue2/light-file-preview-vue2.js +1 -1
  27. package/dist/vue2/light-file-preview-vue2.umd.cjs +160 -163
  28. package/dist/vue2/{marked.esm-toXckLRC.js → marked.esm-CRmQbSOC.js} +15 -15
  29. package/dist/vue2/pdf-BiKi76Et.js +15320 -0
  30. package/dist/vue2/{purify.es-D5dazAgD.js → purify.es-CCmmh-Lt.js} +10 -10
  31. package/dist/vue2/{text-CcxmtFce.js → text-Bqxn_tMI.js} +5 -5
  32. package/dist/vue2/{vue2-CzAkhodr.js → vue2-C2dNeAAJ.js} +119 -118
  33. package/dist/vue2/{xlsx-CZNBZqms.js → xlsx-j9Zzywas.js} +82 -82
  34. package/dist/{xlsx-CZNBZqms.js → xlsx-j9Zzywas.js} +82 -82
  35. package/package.json +2 -2
  36. package/dist/PdfRenderer-CYtwJLrP.js +0 -57
  37. package/dist/pdf-B2JYpzlX.js +0 -14597
  38. package/dist/vue2/PdfRenderer-DmgMRpqS.js +0 -57
  39. package/dist/vue2/pdf-B2JYpzlX.js +0 -14597
@@ -13,7 +13,7 @@ let {
13
13
  } = Object, {
14
14
  apply: ve,
15
15
  construct: Ue
16
- } = typeof Reflect < "u" && 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 > "u" ? null : 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
  }