@work-zhanguo/light-file-preview 0.0.6 → 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.
- package/README.md +2 -1
- package/dist/{DocxRenderer-D0ngcG2T.js → DocxRenderer-DogNhBLd.js} +1 -1
- package/dist/PdfRenderer-Due2M5cA.js +57 -0
- package/dist/{UnsupportedRenderer-Y2AgN0-l.js → UnsupportedRenderer-8vWx7yB8.js} +1 -1
- package/dist/_commonjs-dynamic-modules-C74YT1gS.js +32 -0
- package/dist/{vue2/docx-preview-D_8kC8vU.js → docx-preview-BV-bQyiM.js} +75 -81
- package/dist/{index-DZOrV9D_.js → index-BNN8UXSN.js} +1 -1
- package/dist/light-file-preview.js +1 -1
- package/dist/light-file-preview.umd.cjs +158 -161
- package/dist/pdf-BiKi76Et.js +15320 -0
- package/dist/standalone/light-file-preview.iife.js +160 -163
- package/dist/vue2/{DocxRenderer-D-MItvaP.js → DocxRenderer-B9neMid7.js} +2 -2
- package/dist/vue2/PdfRenderer-iEictZ1C.js +57 -0
- package/dist/vue2/{SheetRenderer-BxfF54Q3.js → SheetRenderer-KITfWM9E.js} +1 -1
- package/dist/vue2/{TextRenderer-DOzgi4YR.js → TextRenderer-B8_BjhwJ.js} +1 -1
- package/dist/vue2/{UnsupportedRenderer-VozD1bVb.js → UnsupportedRenderer-WZYKdRc9.js} +1 -1
- package/dist/vue2/_commonjs-dynamic-modules-C74YT1gS.js +32 -0
- package/dist/{docx-preview-D_8kC8vU.js → vue2/docx-preview-BV-bQyiM.js} +75 -81
- package/dist/vue2/light-file-preview-vue2.js +1 -1
- package/dist/vue2/light-file-preview-vue2.umd.cjs +160 -163
- package/dist/vue2/pdf-BiKi76Et.js +15320 -0
- package/dist/vue2/{vue2-rrMAk2-n.js → vue2-C2dNeAAJ.js} +1 -1
- package/package.json +2 -2
- package/dist/PdfRenderer-SICIjXYT.js +0 -57
- package/dist/pdf-CV932zwQ.js +0 -14611
- package/dist/vue2/PdfRenderer-rw-3PY9w.js +0 -57
- package/dist/vue2/pdf-CV932zwQ.js +0 -14611
|
@@ -5820,7 +5820,7 @@ const df = ["aria-modal"], pf = {
|
|
|
5820
5820
|
},
|
|
5821
5821
|
emits: ["update:visible", "error"],
|
|
5822
5822
|
setup(e, { emit: t }) {
|
|
5823
|
-
const n = /* @__PURE__ */ Xt(() => import("./PdfRenderer-
|
|
5823
|
+
const n = /* @__PURE__ */ Xt(() => import("./PdfRenderer-iEictZ1C.js")), o = /* @__PURE__ */ Xt(() => import("./TextRenderer-B8_BjhwJ.js")), r = /* @__PURE__ */ Xt(() => import("./DocxRenderer-B9neMid7.js")), s = /* @__PURE__ */ Xt(() => import("./SheetRenderer-KITfWM9E.js")), i = /* @__PURE__ */ Xt(() => import("./UnsupportedRenderer-WZYKdRc9.js")), l = e, u = t, p = /* @__PURE__ */ Nt(null), f = /* @__PURE__ */ Nt(!1), a = /* @__PURE__ */ Nt(""), h = /* @__PURE__ */ Nt(gs(l.source, l.fileName)), m = Mt(() => uf(h.value.name)), O = Mt(() => l.fileName || h.value.name || l.dialogTitle), v = Mt(() => l.mode === "dialog"), j = Mt(() => v.value ? l.visible : !0), P = Mt(() => m.value === "image" ? "img" : m.value === "video" ? "video" : m.value === "audio" ? "audio" : null);
|
|
5824
5824
|
Ln(
|
|
5825
5825
|
() => [l.source, l.fileName],
|
|
5826
5826
|
() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-zhanguo/light-file-preview",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "轻量级通用文件预览组件,支持 Vue3、Vue2 适配与独立产物嵌入。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/light-file-preview.umd.cjs",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"docx-preview": "^0.3.6",
|
|
58
58
|
"dompurify": "^3.2.6",
|
|
59
59
|
"marked": "^15.0.7",
|
|
60
|
-
"pdfjs-dist": "
|
|
60
|
+
"pdfjs-dist": "3.11.174",
|
|
61
61
|
"xlsx": "^0.18.5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|