file-viewer3 1.0.1 → 1.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.
@@ -1,5 +1,5 @@
1
- import { c as _e, g as Ne } from "./_commonjsHelpers-92157f1b.mjs";
2
- import { c as ke } from "./_commonjs-dynamic-modules-bed80856.mjs";
1
+ import { c as _e, g as Ne } from "./_commonjsHelpers.js";
2
+ import { c as ke } from "./_commonjs-dynamic-modules.js";
3
3
  function Be(ce, be) {
4
4
  for (var T = 0; T < be.length; T++) {
5
5
  const j = be[T];
@@ -6,7 +6,7 @@ const rt = (() => {
6
6
  const e = {
7
7
  module: null,
8
8
  async load() {
9
- return this.module || (this.module = import("./docx-preview.min-31358ab2.mjs").then((t) => t.d)), this.module;
9
+ return this.module || (this.module = import("./docx-preview.min.js").then((t) => t.d)), this.module;
10
10
  }
11
11
  };
12
12
  return async () => await e.load();
@@ -18,7 +18,7 @@ async function st(e, t) {
18
18
  });
19
19
  await r(e, t, void 0, s);
20
20
  }
21
- const ot = D(() => import("./PptxRender-f90c00c0.mjs"));
21
+ const ot = D(() => import("./PptxRender.js"));
22
22
  async function it(e, t) {
23
23
  return P({
24
24
  render: () => N(ot, {
@@ -26,7 +26,7 @@ async function it(e, t) {
26
26
  }, null)
27
27
  }).mount(t);
28
28
  }
29
- const at = D(() => import("./XlsxTable-22ea834f.mjs"));
29
+ const at = D(() => import("./XlsxTable.js"));
30
30
  async function ct(e, t) {
31
31
  const n = P({
32
32
  render: () => N(at, {
@@ -35,7 +35,7 @@ async function ct(e, t) {
35
35
  });
36
36
  return n.mount(t), n;
37
37
  }
38
- const ut = D(() => import("./PdfView-c5946833.mjs"));
38
+ const ut = D(() => import("./PdfView.js"));
39
39
  async function lt(e, t) {
40
40
  const n = P({
41
41
  render: () => N(ut, {
@@ -73,7 +73,7 @@ async function Ne(e) {
73
73
  }, r.onerror = (s) => n(s), r.readAsText(new Blob([e]), "utf-8");
74
74
  });
75
75
  }
76
- const pt = D(() => import("./ImageViewer-3aabb7c7.mjs"));
76
+ const pt = D(() => import("./ImageViewer.js"));
77
77
  async function ht(e, t) {
78
78
  const n = await dt(e), r = P({
79
79
  render: () => N(pt, {
@@ -82,7 +82,7 @@ async function ht(e, t) {
82
82
  });
83
83
  return r.mount(t), r;
84
84
  }
85
- const mt = D(() => import("./MarkdownViewer-11f6e7ed.mjs"));
85
+ const mt = D(() => import("./MarkdownViewer.js"));
86
86
  async function yt(e, t) {
87
87
  const n = await Ne(e), r = P({
88
88
  render: () => N(mt, {
@@ -0,0 +1,21 @@
1
+ var s = Object.defineProperty;
2
+ var n = (e, r, o) => r in e ? s(e, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[r] = o;
3
+ var t = (e, r, o) => (n(e, typeof r != "symbol" ? r + "" : r, o), o);
4
+ const u = "/node_modules/file-viewer3/dist/worker/";
5
+ class w {
6
+ constructor(r) {
7
+ t(this, "worker", null);
8
+ this.worker = r;
9
+ }
10
+ defaults(r) {
11
+ return this.worker || r();
12
+ }
13
+ }
14
+ function i(e, r = !1) {
15
+ let o = null;
16
+ const l = `${u}${e}`;
17
+ return o = new Worker(new URL(l, import.meta.url), { type: r ? "module" : "classic" }), new w(o);
18
+ }
19
+ export {
20
+ i as r
21
+ };
@@ -1,4 +1,4 @@
1
- import { F as a, i as o } from "./index-59c602ca.mjs";
1
+ import { F as a, i as o } from "./components/index.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as FileViewer,