@superdoc-dev/cli 0.2.0-next.68 → 0.2.0-next.69
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 +55 -19
- package/package.json +9 -9
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-DLewdNXt.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")
|
|
@@ -60956,7 +60956,7 @@ var isRegExp = (value) => {
|
|
|
60956
60956
|
state.kern = kernNode.attributes["w:val"];
|
|
60957
60957
|
}
|
|
60958
60958
|
}, SuperConverter;
|
|
60959
|
-
var
|
|
60959
|
+
var init_SuperConverter_DLewdNXt_es = __esm(() => {
|
|
60960
60960
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
60961
60961
|
init_jszip_ChlR43oI_es();
|
|
60962
60962
|
init_xml_js_DLE8mr0n_es();
|
|
@@ -78926,7 +78926,7 @@ var init_SuperConverter_BTfRwdVj_es = __esm(() => {
|
|
|
78926
78926
|
static getStoredSuperdocVersion(docx) {
|
|
78927
78927
|
return SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
78928
78928
|
}
|
|
78929
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.
|
|
78929
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.17.0") {
|
|
78930
78930
|
return SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
78931
78931
|
}
|
|
78932
78932
|
static generateWordTimestamp() {
|
|
@@ -105834,9 +105834,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
105834
105834
|
init_remark_gfm_z_sDF4ss_es();
|
|
105835
105835
|
});
|
|
105836
105836
|
|
|
105837
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
105838
|
-
var
|
|
105839
|
-
__export(
|
|
105837
|
+
// ../../packages/superdoc/dist/chunks/src-vQGwphVf.es.js
|
|
105838
|
+
var exports_src_vQGwphVf_es = {};
|
|
105839
|
+
__export(exports_src_vQGwphVf_es, {
|
|
105840
105840
|
zt: () => defineMark,
|
|
105841
105841
|
z: () => cM,
|
|
105842
105842
|
yt: () => removeAwarenessStates,
|
|
@@ -106066,7 +106066,7 @@ function hasV8CaptureStackTrace(error) {
|
|
|
106066
106066
|
}
|
|
106067
106067
|
function getSuperdocVersion() {
|
|
106068
106068
|
try {
|
|
106069
|
-
return "1.
|
|
106069
|
+
return "1.17.0";
|
|
106070
106070
|
} catch {
|
|
106071
106071
|
return "unknown";
|
|
106072
106072
|
}
|
|
@@ -124683,6 +124683,16 @@ function writeSectPrPageSetup(sectPr, setup) {
|
|
|
124683
124683
|
setStringAttr(pgSz, "w:orient", setup.orientation);
|
|
124684
124684
|
if (setup.paperSize !== undefined)
|
|
124685
124685
|
setStringAttr(pgSz, "w:code", setup.paperSize);
|
|
124686
|
+
if (setup.orientation !== undefined) {
|
|
124687
|
+
const widthTwips = toNumber$1(pgSz.attributes?.["w:w"]);
|
|
124688
|
+
const heightTwips = toNumber$1(pgSz.attributes?.["w:h"]);
|
|
124689
|
+
if (widthTwips == null || heightTwips == null)
|
|
124690
|
+
return;
|
|
124691
|
+
if (widthTwips > heightTwips === (setup.orientation === "landscape"))
|
|
124692
|
+
return;
|
|
124693
|
+
setStringAttr(pgSz, "w:w", String(heightTwips));
|
|
124694
|
+
setStringAttr(pgSz, "w:h", String(widthTwips));
|
|
124695
|
+
}
|
|
124686
124696
|
}
|
|
124687
124697
|
function readSectPrColumns(sectPr) {
|
|
124688
124698
|
const cols = findChild(sectPr, "w:cols");
|
|
@@ -125467,8 +125477,15 @@ function syncConverterBodySection(editor, sectPr) {
|
|
|
125467
125477
|
savedBodyNode.elements = preservedChildren;
|
|
125468
125478
|
}
|
|
125469
125479
|
const margins = readSectPrMargins(sectPr);
|
|
125480
|
+
const pageSetup = readSectPrPageSetup(sectPr);
|
|
125470
125481
|
if (!converter.pageStyles)
|
|
125471
125482
|
converter.pageStyles = {};
|
|
125483
|
+
if (!converter.pageStyles.pageSize)
|
|
125484
|
+
converter.pageStyles.pageSize = {};
|
|
125485
|
+
if (pageSetup?.width !== undefined)
|
|
125486
|
+
converter.pageStyles.pageSize.width = pageSetup.width;
|
|
125487
|
+
if (pageSetup?.height !== undefined)
|
|
125488
|
+
converter.pageStyles.pageSize.height = pageSetup.height;
|
|
125472
125489
|
if (!converter.pageStyles.pageMargins)
|
|
125473
125490
|
converter.pageStyles.pageMargins = {};
|
|
125474
125491
|
const pageMargins = converter.pageStyles.pageMargins;
|
|
@@ -161630,7 +161647,7 @@ var Node$13 = class Node$14 {
|
|
|
161630
161647
|
domAvailabilityCache = false;
|
|
161631
161648
|
return false;
|
|
161632
161649
|
}
|
|
161633
|
-
}, summaryVersion = "1.
|
|
161650
|
+
}, summaryVersion = "1.17.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
161634
161651
|
const container = document.createElement("div");
|
|
161635
161652
|
container.innerHTML = html3;
|
|
161636
161653
|
const result = [];
|
|
@@ -180498,9 +180515,9 @@ var Node$13 = class Node$14 {
|
|
|
180498
180515
|
trackedChanges: context.trackedChanges ?? []
|
|
180499
180516
|
});
|
|
180500
180517
|
}, _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;
|
|
180501
|
-
var
|
|
180518
|
+
var init_src_vQGwphVf_es = __esm(() => {
|
|
180502
180519
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
180503
|
-
|
|
180520
|
+
init_SuperConverter_DLewdNXt_es();
|
|
180504
180521
|
init_jszip_ChlR43oI_es();
|
|
180505
180522
|
init_uuid_2IzDu5nl_es();
|
|
180506
180523
|
init_constants_CqvgVEDh_es();
|
|
@@ -190759,7 +190776,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
190759
190776
|
return migrations.length > 0;
|
|
190760
190777
|
}
|
|
190761
190778
|
processCollaborationMigrations() {
|
|
190762
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.
|
|
190779
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.17.0");
|
|
190763
190780
|
if (!this.options.ydoc)
|
|
190764
190781
|
return;
|
|
190765
190782
|
let docVersion = this.options.ydoc.getMap("meta").get("version");
|
|
@@ -211827,8 +211844,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211827
211844
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
211828
211845
|
};
|
|
211829
211846
|
stubFalse_default = stubFalse;
|
|
211830
|
-
freeExports$2 = typeof
|
|
211831
|
-
freeModule$2 = freeExports$2 && typeof
|
|
211847
|
+
freeExports$2 = typeof exports_src_vQGwphVf_es == "object" && exports_src_vQGwphVf_es && !exports_src_vQGwphVf_es.nodeType && exports_src_vQGwphVf_es;
|
|
211848
|
+
freeModule$2 = freeExports$2 && typeof module_src_vQGwphVf_es == "object" && module_src_vQGwphVf_es && !module_src_vQGwphVf_es.nodeType && module_src_vQGwphVf_es;
|
|
211832
211849
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
211833
211850
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
211834
211851
|
typedArrayTags = {};
|
|
@@ -211836,8 +211853,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211836
211853
|
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;
|
|
211837
211854
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
211838
211855
|
_baseUnary_default = baseUnary;
|
|
211839
|
-
freeExports$1 = typeof
|
|
211840
|
-
freeModule$1 = freeExports$1 && typeof
|
|
211856
|
+
freeExports$1 = typeof exports_src_vQGwphVf_es == "object" && exports_src_vQGwphVf_es && !exports_src_vQGwphVf_es.nodeType && exports_src_vQGwphVf_es;
|
|
211857
|
+
freeModule$1 = freeExports$1 && typeof module_src_vQGwphVf_es == "object" && module_src_vQGwphVf_es && !module_src_vQGwphVf_es.nodeType && module_src_vQGwphVf_es;
|
|
211841
211858
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
211842
211859
|
_nodeUtil_default = function() {
|
|
211843
211860
|
try {
|
|
@@ -211942,8 +211959,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211942
211959
|
Stack.prototype.has = _stackHas_default;
|
|
211943
211960
|
Stack.prototype.set = _stackSet_default;
|
|
211944
211961
|
_Stack_default = Stack;
|
|
211945
|
-
freeExports = typeof
|
|
211946
|
-
freeModule = freeExports && typeof
|
|
211962
|
+
freeExports = typeof exports_src_vQGwphVf_es == "object" && exports_src_vQGwphVf_es && !exports_src_vQGwphVf_es.nodeType && exports_src_vQGwphVf_es;
|
|
211963
|
+
freeModule = freeExports && typeof module_src_vQGwphVf_es == "object" && module_src_vQGwphVf_es && !module_src_vQGwphVf_es.nodeType && module_src_vQGwphVf_es;
|
|
211947
211964
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
211948
211965
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
211949
211966
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -220023,8 +220040,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
220023
220040
|
|
|
220024
220041
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
220025
220042
|
var init_super_editor_es = __esm(() => {
|
|
220026
|
-
|
|
220027
|
-
|
|
220043
|
+
init_src_vQGwphVf_es();
|
|
220044
|
+
init_SuperConverter_DLewdNXt_es();
|
|
220028
220045
|
init_jszip_ChlR43oI_es();
|
|
220029
220046
|
init_xml_js_DLE8mr0n_es();
|
|
220030
220047
|
init_constants_CqvgVEDh_es();
|
|
@@ -285845,6 +285862,18 @@ function writeSectPrPageSetup2(sectPr, setup) {
|
|
|
285845
285862
|
setStringAttr2(pgSz, "w:orient", setup.orientation);
|
|
285846
285863
|
if (setup.paperSize !== undefined)
|
|
285847
285864
|
setStringAttr2(pgSz, "w:code", setup.paperSize);
|
|
285865
|
+
if (setup.orientation !== undefined) {
|
|
285866
|
+
const widthTwips = toNumber3(pgSz.attributes?.["w:w"]);
|
|
285867
|
+
const heightTwips = toNumber3(pgSz.attributes?.["w:h"]);
|
|
285868
|
+
if (widthTwips == null || heightTwips == null)
|
|
285869
|
+
return;
|
|
285870
|
+
const isLandscapeDimensions = widthTwips > heightTwips;
|
|
285871
|
+
const wantsLandscape = setup.orientation === "landscape";
|
|
285872
|
+
if (isLandscapeDimensions === wantsLandscape)
|
|
285873
|
+
return;
|
|
285874
|
+
setStringAttr2(pgSz, "w:w", String(heightTwips));
|
|
285875
|
+
setStringAttr2(pgSz, "w:h", String(widthTwips));
|
|
285876
|
+
}
|
|
285848
285877
|
}
|
|
285849
285878
|
function readSectPrColumns2(sectPr) {
|
|
285850
285879
|
const cols = findChild2(sectPr, "w:cols");
|
|
@@ -286665,8 +286694,15 @@ function syncConverterBodySection2(editor, sectPr) {
|
|
|
286665
286694
|
savedBodyNode.elements = preservedChildren;
|
|
286666
286695
|
}
|
|
286667
286696
|
const margins = readSectPrMargins2(sectPr);
|
|
286697
|
+
const pageSetup = readSectPrPageSetup2(sectPr);
|
|
286668
286698
|
if (!converter.pageStyles)
|
|
286669
286699
|
converter.pageStyles = {};
|
|
286700
|
+
if (!converter.pageStyles.pageSize)
|
|
286701
|
+
converter.pageStyles.pageSize = {};
|
|
286702
|
+
if (pageSetup?.width !== undefined)
|
|
286703
|
+
converter.pageStyles.pageSize.width = pageSetup.width;
|
|
286704
|
+
if (pageSetup?.height !== undefined)
|
|
286705
|
+
converter.pageStyles.pageSize.height = pageSetup.height;
|
|
286670
286706
|
if (!converter.pageStyles.pageMargins)
|
|
286671
286707
|
converter.pageStyles.pageMargins = {};
|
|
286672
286708
|
const pageMargins = converter.pageStyles.pageMargins;
|
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.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/super-editor": "0.0.1",
|
|
23
|
-
"superdoc": "1.16.0",
|
|
24
22
|
"@superdoc/document-api": "0.0.1",
|
|
25
|
-
"@superdoc/pm-adapter": "0.0.0"
|
|
23
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
24
|
+
"superdoc": "1.17.0",
|
|
25
|
+
"@superdoc/super-editor": "0.0.1"
|
|
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-windows-x64": "0.2.0-next.
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.
|
|
32
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.69",
|
|
33
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.69",
|
|
34
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.69",
|
|
35
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.69",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.69"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "bun run src/index.ts",
|