@superdoc-dev/cli 0.3.0-next.41 → 0.3.0-next.42
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 +11 -8
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -39922,7 +39922,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
|
|
|
39922
39922
|
emptyOptions2 = {};
|
|
39923
39923
|
});
|
|
39924
39924
|
|
|
39925
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
39925
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-oKnAIRIw.es.js
|
|
39926
39926
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
39927
39927
|
const fieldValue = extension$1.config[field];
|
|
39928
39928
|
if (typeof fieldValue === "function")
|
|
@@ -85997,7 +85997,7 @@ var isRegExp = (value) => {
|
|
|
85997
85997
|
state.kern = kernNode.attributes["w:val"];
|
|
85998
85998
|
}
|
|
85999
85999
|
}, SuperConverter;
|
|
86000
|
-
var
|
|
86000
|
+
var init_SuperConverter_oKnAIRIw_es = __esm(() => {
|
|
86001
86001
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
86002
86002
|
init_jszip_ChlR43oI_es();
|
|
86003
86003
|
init_xml_js_BtmJ6bNs_es();
|
|
@@ -122099,7 +122099,7 @@ var init_SuperConverter_DarcJh0X_es = __esm(() => {
|
|
|
122099
122099
|
if (!editor)
|
|
122100
122100
|
return;
|
|
122101
122101
|
try {
|
|
122102
|
-
const stats = getWordStatistics(editor);
|
|
122102
|
+
const stats = getWordStatistics(resolveMainBodyEditor(editor));
|
|
122103
122103
|
writeAppStatistics(this.convertedXml, stats);
|
|
122104
122104
|
const settingsPart = this.convertedXml["word/settings.xml"];
|
|
122105
122105
|
if (settingsPart && stats.pages == null) {
|
|
@@ -148813,7 +148813,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
148813
148813
|
init_remark_gfm_z_sDF4ss_es();
|
|
148814
148814
|
});
|
|
148815
148815
|
|
|
148816
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
148816
|
+
// ../../packages/superdoc/dist/chunks/src-CLe3UbDE.es.js
|
|
148817
148817
|
function deleteProps(obj, propOrProps) {
|
|
148818
148818
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
148819
148819
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -229021,9 +229021,9 @@ var Node$13 = class Node$14 {
|
|
|
229021
229021
|
return false;
|
|
229022
229022
|
return Boolean(checker(attrs));
|
|
229023
229023
|
}, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
|
|
229024
|
-
var
|
|
229024
|
+
var init_src_CLe3UbDE_es = __esm(() => {
|
|
229025
229025
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
229026
|
-
|
|
229026
|
+
init_SuperConverter_oKnAIRIw_es();
|
|
229027
229027
|
init_jszip_ChlR43oI_es();
|
|
229028
229028
|
init_uuid_qzgm05fK_es();
|
|
229029
229029
|
init_constants_ep1_Gwqi_es();
|
|
@@ -238836,6 +238836,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238836
238836
|
});
|
|
238837
238837
|
const numberingData = this.converter.convertedXml["word/numbering.xml"];
|
|
238838
238838
|
const numbering = this.converter.schemaToXml(numberingData.elements[0]);
|
|
238839
|
+
const appXmlData = this.converter.convertedXml["docProps/app.xml"];
|
|
238840
|
+
const appXml = appXmlData?.elements?.[0] ? this.converter.schemaToXml(appXmlData.elements[0]) : null;
|
|
238839
238841
|
const coreXmlData = this.converter.convertedXml["docProps/core.xml"];
|
|
238840
238842
|
const coreXml = coreXmlData?.elements?.[0] ? this.converter.schemaToXml(coreXmlData.elements[0]) : null;
|
|
238841
238843
|
const updatedDocs = {
|
|
@@ -238846,6 +238848,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238846
238848
|
"word/numbering.xml": String(numbering),
|
|
238847
238849
|
"word/styles.xml": String(styles),
|
|
238848
238850
|
...updatedHeadersFooters,
|
|
238851
|
+
...appXml ? { "docProps/app.xml": String(appXml) } : {},
|
|
238849
238852
|
...coreXml ? { "docProps/core.xml": String(coreXml) } : {}
|
|
238850
238853
|
};
|
|
238851
238854
|
if (hasCustomSettings)
|
|
@@ -262353,8 +262356,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
262353
262356
|
|
|
262354
262357
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
262355
262358
|
var init_super_editor_es = __esm(() => {
|
|
262356
|
-
|
|
262357
|
-
|
|
262359
|
+
init_src_CLe3UbDE_es();
|
|
262360
|
+
init_SuperConverter_oKnAIRIw_es();
|
|
262358
262361
|
init_jszip_ChlR43oI_es();
|
|
262359
262362
|
init_xml_js_BtmJ6bNs_es();
|
|
262360
262363
|
init_constants_ep1_Gwqi_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.
|
|
34
|
-
"@superdoc-dev/cli-
|
|
35
|
-
"@superdoc-dev/cli-
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.3.0-next.
|
|
37
|
-
"@superdoc-dev/cli-windows-x64": "0.3.0-next.
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.42",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.3.0-next.42",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.3.0-next.42",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.3.0-next.42",
|
|
37
|
+
"@superdoc-dev/cli-windows-x64": "0.3.0-next.42"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"predev": "node scripts/ensure-superdoc-build.js",
|