@mce/openxml 0.30.0 → 0.31.0
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.js +2 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { base64ToBytes, definePlugin, matchSource
|
|
1
|
+
import { base64ToBytes, definePlugin, matchSource } from "mce";
|
|
2
2
|
//#region src/plugin.ts
|
|
3
3
|
var PPTX_MIME = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
4
4
|
var XLSX_MIME = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
@@ -13,7 +13,6 @@ function plugin() {
|
|
|
13
13
|
handle: async (options) => {
|
|
14
14
|
const { [name]: specificOptions, ...jsonOptions } = options;
|
|
15
15
|
const doc = await to("json", jsonOptions);
|
|
16
|
-
await materializeImagePipelines(doc, resolveImagePipelines);
|
|
17
16
|
if (reverse) doc.children?.reverse();
|
|
18
17
|
const bytes = await run({
|
|
19
18
|
...doc,
|
|
@@ -115,7 +114,7 @@ function plugin() {
|
|
|
115
114
|
exporters: [
|
|
116
115
|
makeExporter("pptx", PPTX_MIME, true, true, async (payload) => {
|
|
117
116
|
const { docToPptx } = await import("modern-openxml");
|
|
118
|
-
return await docToPptx(payload);
|
|
117
|
+
return await docToPptx(payload, { imagePipelineResolver: resolveImagePipelines });
|
|
119
118
|
}),
|
|
120
119
|
makeExporter("xlsx", XLSX_MIME, false, false, async (payload) => {
|
|
121
120
|
const { docToXlsx } = await import("modern-openxml");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mce/openxml",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.0",
|
|
5
5
|
"description": "Openxml plugin for mce",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"modern-openxml": "^1.
|
|
49
|
+
"modern-openxml": "^1.13.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"mce": "0.
|
|
52
|
+
"mce": "0.31.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"mce": "^0"
|