@superdoc-dev/cli 0.2.0-next.8 → 0.2.0-next.9
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 +40 -19
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -5,25 +5,43 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
33
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
+
var __returnValue = (v) => v;
|
|
35
|
+
function __exportSetter(name, newValue) {
|
|
36
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
+
}
|
|
20
38
|
var __export = (target, all) => {
|
|
21
39
|
for (var name in all)
|
|
22
40
|
__defProp(target, name, {
|
|
23
41
|
get: all[name],
|
|
24
42
|
enumerable: true,
|
|
25
43
|
configurable: true,
|
|
26
|
-
set: (
|
|
44
|
+
set: __exportSetter.bind(all, name)
|
|
27
45
|
});
|
|
28
46
|
};
|
|
29
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -18368,7 +18386,7 @@ var init_constants_DBKi0Amm_es = __esm(() => {
|
|
|
18368
18386
|
]);
|
|
18369
18387
|
});
|
|
18370
18388
|
|
|
18371
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
18389
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DFpPWkcl.es.js
|
|
18372
18390
|
function getExtensionConfigField(extension, field, context = { name: "" }) {
|
|
18373
18391
|
const fieldValue = extension.config[field];
|
|
18374
18392
|
if (typeof fieldValue === "function")
|
|
@@ -19308,7 +19326,8 @@ function decodeProperties(params, translatorsBySdName, properties) {
|
|
|
19308
19326
|
node: { attrs: { [key]: properties[key] } }
|
|
19309
19327
|
});
|
|
19310
19328
|
if (result != null) {
|
|
19311
|
-
result.name
|
|
19329
|
+
if (result.name == null)
|
|
19330
|
+
result.name = translator$202.xmlName;
|
|
19312
19331
|
elements.push(result);
|
|
19313
19332
|
}
|
|
19314
19333
|
}
|
|
@@ -42119,7 +42138,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42119
42138
|
state.kern = kernNode.attributes["w:val"];
|
|
42120
42139
|
}
|
|
42121
42140
|
}, SuperConverter;
|
|
42122
|
-
var
|
|
42141
|
+
var init_SuperConverter_DFpPWkcl_es = __esm(() => {
|
|
42123
42142
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
42124
42143
|
init_jszip_ChlR43oI_es();
|
|
42125
42144
|
init_xml_js_DLE8mr0n_es();
|
|
@@ -87507,9 +87526,9 @@ var init_remark_gfm_RDxetNVS_es = __esm(() => {
|
|
|
87507
87526
|
emptyOptions4 = {};
|
|
87508
87527
|
});
|
|
87509
87528
|
|
|
87510
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
87511
|
-
var
|
|
87512
|
-
__export(
|
|
87529
|
+
// ../../packages/superdoc/dist/chunks/src-Cl9CKlDG.es.js
|
|
87530
|
+
var exports_src_Cl9CKlDG_es = {};
|
|
87531
|
+
__export(exports_src_Cl9CKlDG_es, {
|
|
87513
87532
|
zt: () => defineMark,
|
|
87514
87533
|
z: () => cM,
|
|
87515
87534
|
yt: () => removeAwarenessStates,
|
|
@@ -153196,9 +153215,9 @@ var Node$13 = class Node$14 {
|
|
|
153196
153215
|
trackedChanges: context.trackedChanges ?? []
|
|
153197
153216
|
});
|
|
153198
153217
|
}, _hoisted_1$6, _hoisted_2$1, _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, RESIZE_HANDLE_WIDTH_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, 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;
|
|
153199
|
-
var
|
|
153218
|
+
var init_src_Cl9CKlDG_es = __esm(() => {
|
|
153200
153219
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
153201
|
-
|
|
153220
|
+
init_SuperConverter_DFpPWkcl_es();
|
|
153202
153221
|
init_jszip_ChlR43oI_es();
|
|
153203
153222
|
init_uuid_2IzDu5nl_es();
|
|
153204
153223
|
init_constants_DBKi0Amm_es();
|
|
@@ -184899,8 +184918,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
184899
184918
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
184900
184919
|
};
|
|
184901
184920
|
stubFalse_default = stubFalse;
|
|
184902
|
-
freeExports$2 = typeof
|
|
184903
|
-
freeModule$2 = freeExports$2 && typeof
|
|
184921
|
+
freeExports$2 = typeof exports_src_Cl9CKlDG_es == "object" && exports_src_Cl9CKlDG_es && !exports_src_Cl9CKlDG_es.nodeType && exports_src_Cl9CKlDG_es;
|
|
184922
|
+
freeModule$2 = freeExports$2 && typeof module_src_Cl9CKlDG_es == "object" && module_src_Cl9CKlDG_es && !module_src_Cl9CKlDG_es.nodeType && module_src_Cl9CKlDG_es;
|
|
184904
184923
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
184905
184924
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
184906
184925
|
typedArrayTags = {};
|
|
@@ -184908,8 +184927,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
184908
184927
|
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;
|
|
184909
184928
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
184910
184929
|
_baseUnary_default = baseUnary;
|
|
184911
|
-
freeExports$1 = typeof
|
|
184912
|
-
freeModule$1 = freeExports$1 && typeof
|
|
184930
|
+
freeExports$1 = typeof exports_src_Cl9CKlDG_es == "object" && exports_src_Cl9CKlDG_es && !exports_src_Cl9CKlDG_es.nodeType && exports_src_Cl9CKlDG_es;
|
|
184931
|
+
freeModule$1 = freeExports$1 && typeof module_src_Cl9CKlDG_es == "object" && module_src_Cl9CKlDG_es && !module_src_Cl9CKlDG_es.nodeType && module_src_Cl9CKlDG_es;
|
|
184913
184932
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
184914
184933
|
_nodeUtil_default = function() {
|
|
184915
184934
|
try {
|
|
@@ -185014,8 +185033,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
185014
185033
|
Stack.prototype.has = _stackHas_default;
|
|
185015
185034
|
Stack.prototype.set = _stackSet_default;
|
|
185016
185035
|
_Stack_default = Stack;
|
|
185017
|
-
freeExports = typeof
|
|
185018
|
-
freeModule = freeExports && typeof
|
|
185036
|
+
freeExports = typeof exports_src_Cl9CKlDG_es == "object" && exports_src_Cl9CKlDG_es && !exports_src_Cl9CKlDG_es.nodeType && exports_src_Cl9CKlDG_es;
|
|
185037
|
+
freeModule = freeExports && typeof module_src_Cl9CKlDG_es == "object" && module_src_Cl9CKlDG_es && !module_src_Cl9CKlDG_es.nodeType && module_src_Cl9CKlDG_es;
|
|
185019
185038
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
185020
185039
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
185021
185040
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -192634,8 +192653,8 @@ var init_zipper_BJHqrQMq_es = __esm(() => {
|
|
|
192634
192653
|
|
|
192635
192654
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
192636
192655
|
var init_super_editor_es = __esm(() => {
|
|
192637
|
-
|
|
192638
|
-
|
|
192656
|
+
init_src_Cl9CKlDG_es();
|
|
192657
|
+
init_SuperConverter_DFpPWkcl_es();
|
|
192639
192658
|
init_jszip_ChlR43oI_es();
|
|
192640
192659
|
init_xml_js_DLE8mr0n_es();
|
|
192641
192660
|
init_constants_DBKi0Amm_es();
|
|
@@ -209893,7 +209912,9 @@ function decodeProperties2(params3, translatorsBySdName, properties) {
|
|
|
209893
209912
|
if (translator5) {
|
|
209894
209913
|
const result = translator5.decode({ ...params3, node: { attrs: { [key2]: properties[key2] } } });
|
|
209895
209914
|
if (result != null) {
|
|
209896
|
-
result.name
|
|
209915
|
+
if (result.name == null) {
|
|
209916
|
+
result.name = translator5.xmlName;
|
|
209917
|
+
}
|
|
209897
209918
|
elements.push(result);
|
|
209898
209919
|
}
|
|
209899
209920
|
}
|
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.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/document-api": "0.0.1",
|
|
23
22
|
"@superdoc/super-editor": "0.0.1",
|
|
23
|
+
"@superdoc/document-api": "0.0.1",
|
|
24
24
|
"superdoc": "1.16.0"
|
|
25
25
|
},
|
|
26
26
|
"module": "src/index.ts",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@superdoc-dev/cli-darwin-
|
|
32
|
-
"@superdoc-dev/cli-darwin-
|
|
33
|
-
"@superdoc-dev/cli-linux-x64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-windows-x64": "0.2.0-next.
|
|
31
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.9",
|
|
32
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.9",
|
|
33
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.9",
|
|
34
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.9",
|
|
35
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.9"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "bun run src/index.ts",
|