@superdoc-dev/cli 0.2.0-next.115 → 0.2.0-next.116
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 +22 -18
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -108905,7 +108905,7 @@ var init_remark_stringify_D8vxv_XI_es = __esm(() => {
|
|
|
108905
108905
|
eol = /\r?\n|\r/g;
|
|
108906
108906
|
});
|
|
108907
108907
|
|
|
108908
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
108908
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-BBV7L99a.es.js
|
|
108909
108909
|
function getLens2(b64) {
|
|
108910
108910
|
var len$1 = b64.length;
|
|
108911
108911
|
if (len$1 % 4 > 0)
|
|
@@ -109016,7 +109016,11 @@ function ensureXmlString(content2) {
|
|
|
109016
109016
|
if (!u8)
|
|
109017
109017
|
throw new Error("Unsupported content type for XML");
|
|
109018
109018
|
const enc = sniffEncoding(u8);
|
|
109019
|
-
|
|
109019
|
+
let xml = new TextDecoder(enc).decode(u8);
|
|
109020
|
+
xml = stripBOM(xml);
|
|
109021
|
+
if (enc !== "utf-8")
|
|
109022
|
+
xml = xml.replace(/(<\?xml\b[^?]*?)\bencoding\s*=\s*["'][^"']*["']/i, '$1encoding="UTF-8"');
|
|
109023
|
+
return xml;
|
|
109020
109024
|
}
|
|
109021
109025
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", buffer2, base64Js2, lookup2, revLookup2, Arr2, code4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i2, len2, ieee7542, Buffer3, isXmlLike = (name) => /\.xml$|\.rels$/i.test(name), import_lib3, import_jszip_min, IMAGE_EXTS, MIME_TYPE_FOR_EXT, CUSTOM_XML_ITEM_PROPS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.customXmlProperties+xml", DocxZipper = class {
|
|
109022
109026
|
constructor(params = {}) {
|
|
@@ -109275,8 +109279,8 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
109275
109279
|
const unzippedOriginalDocx = await this.unzip(originalDocxFile);
|
|
109276
109280
|
const filePromises = [];
|
|
109277
109281
|
unzippedOriginalDocx.forEach((relativePath, zipEntry) => {
|
|
109278
|
-
const promise = zipEntry.async("
|
|
109279
|
-
unzippedOriginalDocx.file(zipEntry.name,
|
|
109282
|
+
const promise = zipEntry.async("uint8array").then((u8) => {
|
|
109283
|
+
unzippedOriginalDocx.file(zipEntry.name, isXmlLike(zipEntry.name) ? ensureXmlString(u8) : u8);
|
|
109280
109284
|
});
|
|
109281
109285
|
filePromises.push(promise);
|
|
109282
109286
|
});
|
|
@@ -109310,7 +109314,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
109310
109314
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
109311
109315
|
}
|
|
109312
109316
|
}, DocxZipper_default;
|
|
109313
|
-
var
|
|
109317
|
+
var init_DocxZipper_BBV7L99a_es = __esm(() => {
|
|
109314
109318
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
109315
109319
|
init_jszip_ChlR43oI_es();
|
|
109316
109320
|
init_xml_js_DLE8mr0n_es();
|
|
@@ -134600,9 +134604,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
134600
134604
|
init_remark_gfm_z_sDF4ss_es();
|
|
134601
134605
|
});
|
|
134602
134606
|
|
|
134603
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
134604
|
-
var
|
|
134605
|
-
__export(
|
|
134607
|
+
// ../../packages/superdoc/dist/chunks/src-bHTSgLrH.es.js
|
|
134608
|
+
var exports_src_bHTSgLrH_es = {};
|
|
134609
|
+
__export(exports_src_bHTSgLrH_es, {
|
|
134606
134610
|
zt: () => defineMark,
|
|
134607
134611
|
z: () => cM,
|
|
134608
134612
|
yt: () => Awareness,
|
|
@@ -221784,7 +221788,7 @@ var Node$13 = class Node$14 {
|
|
|
221784
221788
|
trackedChanges: context.trackedChanges ?? []
|
|
221785
221789
|
});
|
|
221786
221790
|
}, _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;
|
|
221787
|
-
var
|
|
221791
|
+
var init_src_bHTSgLrH_es = __esm(() => {
|
|
221788
221792
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
221789
221793
|
init_SuperConverter_BZ7c2IuL_es();
|
|
221790
221794
|
init_jszip_ChlR43oI_es();
|
|
@@ -221793,7 +221797,7 @@ var init_src_CI3K_V5w_es = __esm(() => {
|
|
|
221793
221797
|
init_unified_BRHLwnjP_es();
|
|
221794
221798
|
init_remark_gfm_z_sDF4ss_es();
|
|
221795
221799
|
init_remark_stringify_D8vxv_XI_es();
|
|
221796
|
-
|
|
221800
|
+
init_DocxZipper_BBV7L99a_es();
|
|
221797
221801
|
init_vue_q66HzpoR_es();
|
|
221798
221802
|
init__plugin_vue_export_helper_HmhZBO0u_es();
|
|
221799
221803
|
init_eventemitter3_DGBTyUUP_es();
|
|
@@ -254537,8 +254541,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
254537
254541
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
254538
254542
|
};
|
|
254539
254543
|
stubFalse_default = stubFalse;
|
|
254540
|
-
freeExports$2 = typeof
|
|
254541
|
-
freeModule$2 = freeExports$2 && typeof
|
|
254544
|
+
freeExports$2 = typeof exports_src_bHTSgLrH_es == "object" && exports_src_bHTSgLrH_es && !exports_src_bHTSgLrH_es.nodeType && exports_src_bHTSgLrH_es;
|
|
254545
|
+
freeModule$2 = freeExports$2 && typeof module_src_bHTSgLrH_es == "object" && module_src_bHTSgLrH_es && !module_src_bHTSgLrH_es.nodeType && module_src_bHTSgLrH_es;
|
|
254542
254546
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
254543
254547
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
254544
254548
|
typedArrayTags = {};
|
|
@@ -254546,8 +254550,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
254546
254550
|
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;
|
|
254547
254551
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
254548
254552
|
_baseUnary_default = baseUnary;
|
|
254549
|
-
freeExports$1 = typeof
|
|
254550
|
-
freeModule$1 = freeExports$1 && typeof
|
|
254553
|
+
freeExports$1 = typeof exports_src_bHTSgLrH_es == "object" && exports_src_bHTSgLrH_es && !exports_src_bHTSgLrH_es.nodeType && exports_src_bHTSgLrH_es;
|
|
254554
|
+
freeModule$1 = freeExports$1 && typeof module_src_bHTSgLrH_es == "object" && module_src_bHTSgLrH_es && !module_src_bHTSgLrH_es.nodeType && module_src_bHTSgLrH_es;
|
|
254551
254555
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
254552
254556
|
_nodeUtil_default = function() {
|
|
254553
254557
|
try {
|
|
@@ -254652,8 +254656,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
254652
254656
|
Stack.prototype.has = _stackHas_default;
|
|
254653
254657
|
Stack.prototype.set = _stackSet_default;
|
|
254654
254658
|
_Stack_default = Stack;
|
|
254655
|
-
freeExports = typeof
|
|
254656
|
-
freeModule = freeExports && typeof
|
|
254659
|
+
freeExports = typeof exports_src_bHTSgLrH_es == "object" && exports_src_bHTSgLrH_es && !exports_src_bHTSgLrH_es.nodeType && exports_src_bHTSgLrH_es;
|
|
254660
|
+
freeModule = freeExports && typeof module_src_bHTSgLrH_es == "object" && module_src_bHTSgLrH_es && !module_src_bHTSgLrH_es.nodeType && module_src_bHTSgLrH_es;
|
|
254657
254661
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
254658
254662
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
254659
254663
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -262749,13 +262753,13 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
262749
262753
|
|
|
262750
262754
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
262751
262755
|
var init_super_editor_es = __esm(() => {
|
|
262752
|
-
|
|
262756
|
+
init_src_bHTSgLrH_es();
|
|
262753
262757
|
init_SuperConverter_BZ7c2IuL_es();
|
|
262754
262758
|
init_jszip_ChlR43oI_es();
|
|
262755
262759
|
init_xml_js_DLE8mr0n_es();
|
|
262756
262760
|
init_constants_CMPtQbp7_es();
|
|
262757
262761
|
init_unified_BRHLwnjP_es();
|
|
262758
|
-
|
|
262762
|
+
init_DocxZipper_BBV7L99a_es();
|
|
262759
262763
|
init_vue_q66HzpoR_es();
|
|
262760
262764
|
init_eventemitter3_DGBTyUUP_es();
|
|
262761
262765
|
init_zipper_DqXT7uTa_es();
|
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.116",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@types/bun": "^1.3.8",
|
|
21
21
|
"@types/node": "22.19.2",
|
|
22
22
|
"typescript": "^5.9.2",
|
|
23
|
-
"@superdoc/super-editor": "0.0.1",
|
|
24
|
-
"@superdoc/pm-adapter": "0.0.0",
|
|
25
23
|
"@superdoc/document-api": "0.0.1",
|
|
24
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
25
|
+
"@superdoc/super-editor": "0.0.1",
|
|
26
26
|
"superdoc": "1.18.0"
|
|
27
27
|
},
|
|
28
28
|
"module": "src/index.ts",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-x64": "0.2.0-next.
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.
|
|
37
|
-
"@superdoc-dev/cli-windows-x64": "0.2.0-next.
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.116",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.116",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.116",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.116",
|
|
37
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.116"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"dev": "bun run src/index.ts",
|