@superdoc-dev/cli 0.2.0-next.71 → 0.2.0-next.72
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 +31 -15
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -30540,7 +30540,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
|
|
|
30540
30540
|
emptyOptions2 = {};
|
|
30541
30541
|
});
|
|
30542
30542
|
|
|
30543
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
30543
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-CN811zC3.es.js
|
|
30544
30544
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
30545
30545
|
const fieldValue = extension$1.config[field];
|
|
30546
30546
|
if (typeof fieldValue === "function")
|
|
@@ -47784,6 +47784,8 @@ function collectReferencedNumIds(convertedXml) {
|
|
|
47784
47784
|
if (!Array.isArray(elements))
|
|
47785
47785
|
return;
|
|
47786
47786
|
for (const el of elements) {
|
|
47787
|
+
if (!el || typeof el !== "object")
|
|
47788
|
+
continue;
|
|
47787
47789
|
if (el.name === "w:numId" && el.attributes?.["w:val"] != null)
|
|
47788
47790
|
numIds.add(Number(el.attributes["w:val"]));
|
|
47789
47791
|
if (el.elements)
|
|
@@ -60956,7 +60958,7 @@ var isRegExp = (value) => {
|
|
|
60956
60958
|
state.kern = kernNode.attributes["w:val"];
|
|
60957
60959
|
}
|
|
60958
60960
|
}, SuperConverter;
|
|
60959
|
-
var
|
|
60961
|
+
var init_SuperConverter_CN811zC3_es = __esm(() => {
|
|
60960
60962
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
60961
60963
|
init_jszip_ChlR43oI_es();
|
|
60962
60964
|
init_xml_js_DLE8mr0n_es();
|
|
@@ -79257,6 +79259,12 @@ var init_SuperConverter_DLewdNXt_es = __esm(() => {
|
|
|
79257
79259
|
editor,
|
|
79258
79260
|
fieldsHighlightColor
|
|
79259
79261
|
});
|
|
79262
|
+
const currentDocument = this.convertedXml["word/document.xml"] || {};
|
|
79263
|
+
this.convertedXml["word/document.xml"] = {
|
|
79264
|
+
...currentDocument,
|
|
79265
|
+
...result,
|
|
79266
|
+
declaration: result?.declaration ?? currentDocument.declaration
|
|
79267
|
+
};
|
|
79260
79268
|
if (exportJsonOnly)
|
|
79261
79269
|
return result;
|
|
79262
79270
|
const xml = new DocxExporter(this).schemaToXml(result);
|
|
@@ -105834,9 +105842,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
105834
105842
|
init_remark_gfm_z_sDF4ss_es();
|
|
105835
105843
|
});
|
|
105836
105844
|
|
|
105837
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
105838
|
-
var
|
|
105839
|
-
__export(
|
|
105845
|
+
// ../../packages/superdoc/dist/chunks/src-Cz_HGh8D.es.js
|
|
105846
|
+
var exports_src_Cz_HGh8D_es = {};
|
|
105847
|
+
__export(exports_src_Cz_HGh8D_es, {
|
|
105840
105848
|
zt: () => defineMark,
|
|
105841
105849
|
z: () => cM,
|
|
105842
105850
|
yt: () => removeAwarenessStates,
|
|
@@ -180522,9 +180530,9 @@ var Node$13 = class Node$14 {
|
|
|
180522
180530
|
trackedChanges: context.trackedChanges ?? []
|
|
180523
180531
|
});
|
|
180524
180532
|
}, _hoisted_1$6, _hoisted_2$2, _hoisted_3, _hoisted_4, ContextMenu_default, _hoisted_1$5, BasicUpload_default, _hoisted_1$4, MIN_WIDTH = 200, PPI = 96, alignment = "flex-end", Ruler_default, GenericPopover_default, _hoisted_1$3, _hoisted_2$1, RESIZE_HANDLE_WIDTH_PX = 9, RESIZE_HANDLE_HEIGHT_PX = 9, RESIZE_HANDLE_OFFSET_PX = 4, DRAG_OVERLAY_EXTENSION_PX = 1000, MIN_DRAG_OVERLAY_WIDTH_PX = 2000, THROTTLE_INTERVAL_MS = 16, MIN_RESIZE_DELTA_PX = 1, TableResizeOverlay_default, _hoisted_1$2, OVERLAY_EXPANSION_PX = 2000, RESIZE_HANDLE_SIZE_PX = 12, MOUSE_MOVE_THROTTLE_MS = 16, DIMENSION_CHANGE_THRESHOLD_PX = 1, Z_INDEX_OVERLAY = 10, Z_INDEX_HANDLE = 15, Z_INDEX_GUIDELINE = 20, ImageResizeOverlay_default, LINK_CLICK_DEBOUNCE_MS = 300, CURSOR_UPDATE_TIMEOUT_MS = 10, POPOVER_VERTICAL_OFFSET_PX = 15, LinkClickHandler_default, _hoisted_1$1, _hoisted_2, DOCX2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", TABLE_RESIZE_HOVER_THRESHOLD = 8, TABLE_RESIZE_THROTTLE_MS = 16, SuperEditor_default, _hoisted_1, SuperInput_default, SlashMenu, Extensions;
|
|
180525
|
-
var
|
|
180533
|
+
var init_src_Cz_HGh8D_es = __esm(() => {
|
|
180526
180534
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
180527
|
-
|
|
180535
|
+
init_SuperConverter_CN811zC3_es();
|
|
180528
180536
|
init_jszip_ChlR43oI_es();
|
|
180529
180537
|
init_uuid_2IzDu5nl_es();
|
|
180530
180538
|
init_constants_CqvgVEDh_es();
|
|
@@ -211865,8 +211873,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211865
211873
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
211866
211874
|
};
|
|
211867
211875
|
stubFalse_default = stubFalse;
|
|
211868
|
-
freeExports$2 = typeof
|
|
211869
|
-
freeModule$2 = freeExports$2 && typeof
|
|
211876
|
+
freeExports$2 = typeof exports_src_Cz_HGh8D_es == "object" && exports_src_Cz_HGh8D_es && !exports_src_Cz_HGh8D_es.nodeType && exports_src_Cz_HGh8D_es;
|
|
211877
|
+
freeModule$2 = freeExports$2 && typeof module_src_Cz_HGh8D_es == "object" && module_src_Cz_HGh8D_es && !module_src_Cz_HGh8D_es.nodeType && module_src_Cz_HGh8D_es;
|
|
211870
211878
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
211871
211879
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
211872
211880
|
typedArrayTags = {};
|
|
@@ -211874,8 +211882,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211874
211882
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
211875
211883
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
211876
211884
|
_baseUnary_default = baseUnary;
|
|
211877
|
-
freeExports$1 = typeof
|
|
211878
|
-
freeModule$1 = freeExports$1 && typeof
|
|
211885
|
+
freeExports$1 = typeof exports_src_Cz_HGh8D_es == "object" && exports_src_Cz_HGh8D_es && !exports_src_Cz_HGh8D_es.nodeType && exports_src_Cz_HGh8D_es;
|
|
211886
|
+
freeModule$1 = freeExports$1 && typeof module_src_Cz_HGh8D_es == "object" && module_src_Cz_HGh8D_es && !module_src_Cz_HGh8D_es.nodeType && module_src_Cz_HGh8D_es;
|
|
211879
211887
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
211880
211888
|
_nodeUtil_default = function() {
|
|
211881
211889
|
try {
|
|
@@ -211980,8 +211988,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211980
211988
|
Stack.prototype.has = _stackHas_default;
|
|
211981
211989
|
Stack.prototype.set = _stackSet_default;
|
|
211982
211990
|
_Stack_default = Stack;
|
|
211983
|
-
freeExports = typeof
|
|
211984
|
-
freeModule = freeExports && typeof
|
|
211991
|
+
freeExports = typeof exports_src_Cz_HGh8D_es == "object" && exports_src_Cz_HGh8D_es && !exports_src_Cz_HGh8D_es.nodeType && exports_src_Cz_HGh8D_es;
|
|
211992
|
+
freeModule = freeExports && typeof module_src_Cz_HGh8D_es == "object" && module_src_Cz_HGh8D_es && !module_src_Cz_HGh8D_es.nodeType && module_src_Cz_HGh8D_es;
|
|
211985
211993
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
211986
211994
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
211987
211995
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -220061,8 +220069,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
220061
220069
|
|
|
220062
220070
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
220063
220071
|
var init_super_editor_es = __esm(() => {
|
|
220064
|
-
|
|
220065
|
-
|
|
220072
|
+
init_src_Cz_HGh8D_es();
|
|
220073
|
+
init_SuperConverter_CN811zC3_es();
|
|
220066
220074
|
init_jszip_ChlR43oI_es();
|
|
220067
220075
|
init_xml_js_DLE8mr0n_es();
|
|
220068
220076
|
init_constants_CqvgVEDh_es();
|
|
@@ -268039,6 +268047,8 @@ function collectReferencedNumIds2(convertedXml) {
|
|
|
268039
268047
|
if (!Array.isArray(elements))
|
|
268040
268048
|
return;
|
|
268041
268049
|
for (const el of elements) {
|
|
268050
|
+
if (!el || typeof el !== "object")
|
|
268051
|
+
continue;
|
|
268042
268052
|
if (el.name === "w:numId" && el.attributes?.["w:val"] != null) {
|
|
268043
268053
|
numIds.add(Number(el.attributes["w:val"]));
|
|
268044
268054
|
}
|
|
@@ -268776,6 +268786,12 @@ var init_SuperConverter = __esm(() => {
|
|
|
268776
268786
|
editor,
|
|
268777
268787
|
fieldsHighlightColor
|
|
268778
268788
|
});
|
|
268789
|
+
const currentDocument = this.convertedXml["word/document.xml"] || {};
|
|
268790
|
+
this.convertedXml["word/document.xml"] = {
|
|
268791
|
+
...currentDocument,
|
|
268792
|
+
...result,
|
|
268793
|
+
declaration: result?.declaration ?? currentDocument.declaration
|
|
268794
|
+
};
|
|
268779
268795
|
if (exportJsonOnly)
|
|
268780
268796
|
return result;
|
|
268781
268797
|
const exporter = new DocxExporter2(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.72",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
23
24
|
"@superdoc/super-editor": "0.0.1",
|
|
24
|
-
"superdoc": "1.17.0"
|
|
25
|
-
"@superdoc/pm-adapter": "0.0.0"
|
|
25
|
+
"superdoc": "1.17.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "src/index.ts",
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
33
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-linux-x64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-
|
|
36
|
-
"@superdoc-dev/cli-
|
|
32
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.72",
|
|
33
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.72",
|
|
34
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.72",
|
|
35
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.72",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.72"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "bun run src/index.ts",
|