@superdoc-dev/cli 0.7.0-next.1 → 0.7.0-next.3
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 -12
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -65352,7 +65352,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
65352
65352
|
emptyOptions2 = {};
|
|
65353
65353
|
});
|
|
65354
65354
|
|
|
65355
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
65355
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-H0ERuAZY.es.js
|
|
65356
65356
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
65357
65357
|
const fieldValue = extension$1.config[field];
|
|
65358
65358
|
if (typeof fieldValue === "function")
|
|
@@ -110976,6 +110976,21 @@ var isRegExp = (value) => {
|
|
|
110976
110976
|
const runType = newState.schema.nodes.run;
|
|
110977
110977
|
if (!runType)
|
|
110978
110978
|
return null;
|
|
110979
|
+
const removedKeys = /* @__PURE__ */ new Set;
|
|
110980
|
+
transactions.forEach((t) => {
|
|
110981
|
+
t.steps.forEach((step$1) => {
|
|
110982
|
+
const jsonStep = step$1.toJSON?.();
|
|
110983
|
+
if (jsonStep?.stepType !== "removeMark" || !jsonStep.mark?.type)
|
|
110984
|
+
return;
|
|
110985
|
+
if (jsonStep.mark.type === "textStyle")
|
|
110986
|
+
Object.entries(jsonStep.mark.attrs || {}).forEach(([key, value]) => {
|
|
110987
|
+
if (value != null)
|
|
110988
|
+
removedKeys.add(key);
|
|
110989
|
+
});
|
|
110990
|
+
else
|
|
110991
|
+
removedKeys.add(jsonStep.mark.type);
|
|
110992
|
+
});
|
|
110993
|
+
});
|
|
110979
110994
|
const preservedDerivedKeys = /* @__PURE__ */ new Set;
|
|
110980
110995
|
const preferExistingKeys = /* @__PURE__ */ new Set;
|
|
110981
110996
|
transactions.forEach((transaction) => {
|
|
@@ -111044,9 +111059,13 @@ var isRegExp = (value) => {
|
|
|
111044
111059
|
if (!runProperties)
|
|
111045
111060
|
runProperties = {};
|
|
111046
111061
|
lostKeys.forEach((k) => {
|
|
111062
|
+
if (removedKeys.has(k))
|
|
111063
|
+
return;
|
|
111047
111064
|
if (runNode.attrs?.runProperties?.[k] !== undefined)
|
|
111048
111065
|
runProperties[k] = runNode.attrs.runProperties[k];
|
|
111049
111066
|
});
|
|
111067
|
+
if (runProperties && Object.keys(runProperties).length === 0)
|
|
111068
|
+
runProperties = null;
|
|
111050
111069
|
}
|
|
111051
111070
|
}
|
|
111052
111071
|
const { inlineKeys: newInlineKeys, overrideKeys: newOverrideKeys } = computeSegmentKeys(runProperties, segments[0]);
|
|
@@ -117024,7 +117043,7 @@ var isRegExp = (value) => {
|
|
|
117024
117043
|
state.kern = kernNode.attributes["w:val"];
|
|
117025
117044
|
}
|
|
117026
117045
|
}, SuperConverter;
|
|
117027
|
-
var
|
|
117046
|
+
var init_SuperConverter_H0ERuAZY_es = __esm(() => {
|
|
117028
117047
|
init_rolldown_runtime_Bg48TavK_es();
|
|
117029
117048
|
init_jszip_C49i9kUs_es();
|
|
117030
117049
|
init_xml_js_CqGKpaft_es();
|
|
@@ -154220,7 +154239,7 @@ var init_SuperConverter_DWRVjawM_es = __esm(() => {
|
|
|
154220
154239
|
};
|
|
154221
154240
|
});
|
|
154222
154241
|
|
|
154223
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
154242
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-DqiJg0qo.es.js
|
|
154224
154243
|
function parseSizeUnit(val = "0") {
|
|
154225
154244
|
const length3 = val.toString() || "0";
|
|
154226
154245
|
const value = Number.parseFloat(length3);
|
|
@@ -155831,8 +155850,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
155831
155850
|
return false;
|
|
155832
155851
|
return Boolean(checker(attrs));
|
|
155833
155852
|
};
|
|
155834
|
-
var
|
|
155835
|
-
|
|
155853
|
+
var init_create_headless_toolbar_DqiJg0qo_es = __esm(() => {
|
|
155854
|
+
init_SuperConverter_H0ERuAZY_es();
|
|
155836
155855
|
init_constants_CGhJRd87_es();
|
|
155837
155856
|
init_dist_B8HfvhaK_es();
|
|
155838
155857
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -204270,7 +204289,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
204270
204289
|
init_remark_gfm_BhnWr3yf_es();
|
|
204271
204290
|
});
|
|
204272
204291
|
|
|
204273
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
204292
|
+
// ../../packages/superdoc/dist/chunks/src-D6bw0Eho.es.js
|
|
204274
204293
|
function deleteProps(obj, propOrProps) {
|
|
204275
204294
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
204276
204295
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -287394,12 +287413,12 @@ var Node$13 = class Node$14 {
|
|
|
287394
287413
|
return;
|
|
287395
287414
|
console.log(...args$1);
|
|
287396
287415
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
287397
|
-
var
|
|
287416
|
+
var init_src_D6bw0Eho_es = __esm(() => {
|
|
287398
287417
|
init_rolldown_runtime_Bg48TavK_es();
|
|
287399
|
-
|
|
287418
|
+
init_SuperConverter_H0ERuAZY_es();
|
|
287400
287419
|
init_jszip_C49i9kUs_es();
|
|
287401
287420
|
init_uuid_qzgm05fK_es();
|
|
287402
|
-
|
|
287421
|
+
init_create_headless_toolbar_DqiJg0qo_es();
|
|
287403
287422
|
init_constants_CGhJRd87_es();
|
|
287404
287423
|
init_dist_B8HfvhaK_es();
|
|
287405
287424
|
init_unified_Dsuw2be5_es();
|
|
@@ -322121,11 +322140,11 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
322121
322140
|
|
|
322122
322141
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
322123
322142
|
var init_super_editor_es = __esm(() => {
|
|
322124
|
-
|
|
322125
|
-
|
|
322143
|
+
init_src_D6bw0Eho_es();
|
|
322144
|
+
init_SuperConverter_H0ERuAZY_es();
|
|
322126
322145
|
init_jszip_C49i9kUs_es();
|
|
322127
322146
|
init_xml_js_CqGKpaft_es();
|
|
322128
|
-
|
|
322147
|
+
init_create_headless_toolbar_DqiJg0qo_es();
|
|
322129
322148
|
init_constants_CGhJRd87_es();
|
|
322130
322149
|
init_dist_B8HfvhaK_es();
|
|
322131
322150
|
init_unified_Dsuw2be5_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/document-api": "0.0.1",
|
|
28
27
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
|
+
"@superdoc/super-editor": "0.0.1",
|
|
29
29
|
"superdoc": "1.25.0",
|
|
30
|
-
"@superdoc/
|
|
30
|
+
"@superdoc/document-api": "0.0.1"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.7.0-next.
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.7.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.3",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.3",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.7.0-next.3",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.3",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.7.0-next.3"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|