jit-viewer 1.0.5 → 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.
- package/dist/index.cjs +6 -6
- package/dist/index.js +8 -42
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
import require$$1, { inject, ref, provide, watch, computed, defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, unref, withCtx, onMounted, onUnmounted, createBlock, createTextVNode, normalizeStyle, nextTick, withDirectives, vShow, createApp, h } from "vue";
|
|
13
|
+
import require$$0 from "vue-demi";
|
|
13
14
|
const EXTENSION_MAP = {
|
|
14
15
|
"docx": "docx",
|
|
15
16
|
"xlsx": "xlsx",
|
|
@@ -1513,45 +1514,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
1513
1514
|
function getDefaultExportFromCjs(x) {
|
|
1514
1515
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1515
1516
|
}
|
|
1516
|
-
var lib$
|
|
1517
|
-
var lib$3 = {};
|
|
1518
|
-
var hasRequiredLib;
|
|
1519
|
-
function requireLib() {
|
|
1520
|
-
if (hasRequiredLib) return lib$3;
|
|
1521
|
-
hasRequiredLib = 1;
|
|
1522
|
-
(function(exports$1) {
|
|
1523
|
-
var Vue = require$$1;
|
|
1524
|
-
Object.keys(Vue).forEach(function(key) {
|
|
1525
|
-
exports$1[key] = Vue[key];
|
|
1526
|
-
});
|
|
1527
|
-
exports$1.set = function(target, key, val2) {
|
|
1528
|
-
if (Array.isArray(target)) {
|
|
1529
|
-
target.length = Math.max(target.length, key);
|
|
1530
|
-
target.splice(key, 1, val2);
|
|
1531
|
-
return val2;
|
|
1532
|
-
}
|
|
1533
|
-
target[key] = val2;
|
|
1534
|
-
return val2;
|
|
1535
|
-
};
|
|
1536
|
-
exports$1.del = function(target, key) {
|
|
1537
|
-
if (Array.isArray(target)) {
|
|
1538
|
-
target.splice(key, 1);
|
|
1539
|
-
return;
|
|
1540
|
-
}
|
|
1541
|
-
delete target[key];
|
|
1542
|
-
};
|
|
1543
|
-
exports$1.Vue = Vue;
|
|
1544
|
-
exports$1.Vue2 = void 0;
|
|
1545
|
-
exports$1.isVue2 = false;
|
|
1546
|
-
exports$1.isVue3 = true;
|
|
1547
|
-
exports$1.install = function() {
|
|
1548
|
-
};
|
|
1549
|
-
})(lib$3);
|
|
1550
|
-
return lib$3;
|
|
1551
|
-
}
|
|
1517
|
+
var lib$3 = { exports: {} };
|
|
1552
1518
|
(function(module, exports$1) {
|
|
1553
1519
|
(function(dt, ft) {
|
|
1554
|
-
module.exports = ft(
|
|
1520
|
+
module.exports = ft(require$$0, require$$1);
|
|
1555
1521
|
})(commonjsGlobal, function(dt, ft) {
|
|
1556
1522
|
var gn = Object.defineProperty, bn = Object.defineProperties;
|
|
1557
1523
|
var vn = Object.getOwnPropertyDescriptors;
|
|
@@ -6606,8 +6572,8 @@ section.${e}>footer { z-index: 1; }
|
|
|
6606
6572
|
i.component(qt.name, qt);
|
|
6607
6573
|
}, qt;
|
|
6608
6574
|
});
|
|
6609
|
-
})(lib$
|
|
6610
|
-
var libExports$3 = lib$
|
|
6575
|
+
})(lib$3);
|
|
6576
|
+
var libExports$3 = lib$3.exports;
|
|
6611
6577
|
const VueOfficeDocx = /* @__PURE__ */ getDefaultExportFromCjs(libExports$3);
|
|
6612
6578
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
6613
6579
|
__name: "DocxRender",
|
|
@@ -6668,7 +6634,7 @@ const DocxRender = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data
|
|
|
6668
6634
|
var lib$2 = { exports: {} };
|
|
6669
6635
|
(function(module, exports$1) {
|
|
6670
6636
|
!function(e, t) {
|
|
6671
|
-
module.exports = t(
|
|
6637
|
+
module.exports = t(require$$0, require$$1);
|
|
6672
6638
|
}(commonjsGlobal, function(e, t) {
|
|
6673
6639
|
function r(e2) {
|
|
6674
6640
|
return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
|
|
@@ -49510,7 +49476,7 @@ const ExcelRender = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "dat
|
|
|
49510
49476
|
var lib$1 = { exports: {} };
|
|
49511
49477
|
(function(module, exports$1) {
|
|
49512
49478
|
(function(Q, k) {
|
|
49513
|
-
module.exports = k(
|
|
49479
|
+
module.exports = k(require$$0, require$$1);
|
|
49514
49480
|
})(commonjsGlobal, function(Q, k) {
|
|
49515
49481
|
var IC = Object.defineProperty;
|
|
49516
49482
|
var Vn = Object.getOwnPropertySymbols;
|
|
@@ -51268,7 +51234,7 @@ const PdfRender = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-
|
|
|
51268
51234
|
var lib = { exports: {} };
|
|
51269
51235
|
(function(module, exports$1) {
|
|
51270
51236
|
(function(Ma, No) {
|
|
51271
|
-
module.exports = No(
|
|
51237
|
+
module.exports = No(require$$0, require$$1);
|
|
51272
51238
|
})(commonjsGlobal, function(Ma, No) {
|
|
51273
51239
|
var fg = function(r, e) {
|
|
51274
51240
|
return fg = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jit-viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "JitViewer核心SDK - 跨框架文档预览引擎,支持PDF、DOCX、XLSX、PPTX、OFD、TXT、Markdown等格式",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"url": "https://github.com/jitOffice/jit-viewer-sdk/issues"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"vue": "^3.4.0"
|
|
65
|
+
"vue": "^3.4.0",
|
|
66
|
+
"vue-demi": "^0.14.6"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@rollup/plugin-commonjs": "^29.0.2",
|