@superdoc-dev/cli 0.6.0 → 0.7.0-next.2
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 +26 -13
- package/package.json +7 -7
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-DdDUYAlC.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,15 @@ var isRegExp = (value) => {
|
|
|
110976
110976
|
const runType = newState.schema.nodes.run;
|
|
110977
110977
|
if (!runType)
|
|
110978
110978
|
return null;
|
|
110979
|
+
const isAcceptReject = transactions.some((t) => t.getMeta("inputType") === "acceptReject");
|
|
110980
|
+
const removedMarkTypes = /* @__PURE__ */ new Set;
|
|
110981
|
+
transactions.forEach((t) => {
|
|
110982
|
+
t.steps.forEach((step$1) => {
|
|
110983
|
+
const jsonStep = step$1.toJSON?.();
|
|
110984
|
+
if (jsonStep?.stepType === "removeMark" && jsonStep.mark?.type)
|
|
110985
|
+
removedMarkTypes.add(jsonStep.mark.type);
|
|
110986
|
+
});
|
|
110987
|
+
});
|
|
110979
110988
|
const preservedDerivedKeys = /* @__PURE__ */ new Set;
|
|
110980
110989
|
const preferExistingKeys = /* @__PURE__ */ new Set;
|
|
110981
110990
|
transactions.forEach((transaction) => {
|
|
@@ -111037,16 +111046,20 @@ var isRegExp = (value) => {
|
|
|
111037
111046
|
const hadInlineKeys = Array.isArray(runNode.attrs?.runPropertiesInlineKeys) && runNode.attrs.runPropertiesInlineKeys.length > 0;
|
|
111038
111047
|
if (JSON.stringify(runProperties) === JSON.stringify(runNode.attrs.runProperties) && hadInlineKeys)
|
|
111039
111048
|
return;
|
|
111040
|
-
if (hadInlineKeys) {
|
|
111049
|
+
if (hadInlineKeys && !isAcceptReject) {
|
|
111041
111050
|
const computedKeys = new Set(runProperties ? Object.keys(runProperties) : []);
|
|
111042
111051
|
const lostKeys = existingInlineKeys.filter((k) => !computedKeys.has(k));
|
|
111043
111052
|
if (lostKeys.length > 0) {
|
|
111044
111053
|
if (!runProperties)
|
|
111045
111054
|
runProperties = {};
|
|
111046
111055
|
lostKeys.forEach((k) => {
|
|
111056
|
+
if (removedMarkTypes.has(k))
|
|
111057
|
+
return;
|
|
111047
111058
|
if (runNode.attrs?.runProperties?.[k] !== undefined)
|
|
111048
111059
|
runProperties[k] = runNode.attrs.runProperties[k];
|
|
111049
111060
|
});
|
|
111061
|
+
if (runProperties && Object.keys(runProperties).length === 0)
|
|
111062
|
+
runProperties = null;
|
|
111050
111063
|
}
|
|
111051
111064
|
}
|
|
111052
111065
|
const { inlineKeys: newInlineKeys, overrideKeys: newOverrideKeys } = computeSegmentKeys(runProperties, segments[0]);
|
|
@@ -117024,7 +117037,7 @@ var isRegExp = (value) => {
|
|
|
117024
117037
|
state.kern = kernNode.attributes["w:val"];
|
|
117025
117038
|
}
|
|
117026
117039
|
}, SuperConverter;
|
|
117027
|
-
var
|
|
117040
|
+
var init_SuperConverter_DdDUYAlC_es = __esm(() => {
|
|
117028
117041
|
init_rolldown_runtime_Bg48TavK_es();
|
|
117029
117042
|
init_jszip_C49i9kUs_es();
|
|
117030
117043
|
init_xml_js_CqGKpaft_es();
|
|
@@ -154220,7 +154233,7 @@ var init_SuperConverter_DWRVjawM_es = __esm(() => {
|
|
|
154220
154233
|
};
|
|
154221
154234
|
});
|
|
154222
154235
|
|
|
154223
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
154236
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-BX6lNsQC.es.js
|
|
154224
154237
|
function parseSizeUnit(val = "0") {
|
|
154225
154238
|
const length3 = val.toString() || "0";
|
|
154226
154239
|
const value = Number.parseFloat(length3);
|
|
@@ -155831,8 +155844,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
155831
155844
|
return false;
|
|
155832
155845
|
return Boolean(checker(attrs));
|
|
155833
155846
|
};
|
|
155834
|
-
var
|
|
155835
|
-
|
|
155847
|
+
var init_create_headless_toolbar_BX6lNsQC_es = __esm(() => {
|
|
155848
|
+
init_SuperConverter_DdDUYAlC_es();
|
|
155836
155849
|
init_constants_CGhJRd87_es();
|
|
155837
155850
|
init_dist_B8HfvhaK_es();
|
|
155838
155851
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -204270,7 +204283,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
204270
204283
|
init_remark_gfm_BhnWr3yf_es();
|
|
204271
204284
|
});
|
|
204272
204285
|
|
|
204273
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
204286
|
+
// ../../packages/superdoc/dist/chunks/src-DrQirVNk.es.js
|
|
204274
204287
|
function deleteProps(obj, propOrProps) {
|
|
204275
204288
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
204276
204289
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -287394,12 +287407,12 @@ var Node$13 = class Node$14 {
|
|
|
287394
287407
|
return;
|
|
287395
287408
|
console.log(...args$1);
|
|
287396
287409
|
}, 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
|
|
287410
|
+
var init_src_DrQirVNk_es = __esm(() => {
|
|
287398
287411
|
init_rolldown_runtime_Bg48TavK_es();
|
|
287399
|
-
|
|
287412
|
+
init_SuperConverter_DdDUYAlC_es();
|
|
287400
287413
|
init_jszip_C49i9kUs_es();
|
|
287401
287414
|
init_uuid_qzgm05fK_es();
|
|
287402
|
-
|
|
287415
|
+
init_create_headless_toolbar_BX6lNsQC_es();
|
|
287403
287416
|
init_constants_CGhJRd87_es();
|
|
287404
287417
|
init_dist_B8HfvhaK_es();
|
|
287405
287418
|
init_unified_Dsuw2be5_es();
|
|
@@ -322121,11 +322134,11 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
322121
322134
|
|
|
322122
322135
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
322123
322136
|
var init_super_editor_es = __esm(() => {
|
|
322124
|
-
|
|
322125
|
-
|
|
322137
|
+
init_src_DrQirVNk_es();
|
|
322138
|
+
init_SuperConverter_DdDUYAlC_es();
|
|
322126
322139
|
init_jszip_C49i9kUs_es();
|
|
322127
322140
|
init_xml_js_CqGKpaft_es();
|
|
322128
|
-
|
|
322141
|
+
init_create_headless_toolbar_BX6lNsQC_es();
|
|
322129
322142
|
init_constants_CGhJRd87_es();
|
|
322130
322143
|
init_dist_B8HfvhaK_es();
|
|
322131
322144
|
init_unified_Dsuw2be5_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-next.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
|
-
"@superdoc/pm-adapter": "0.0.0",
|
|
29
28
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
30
30
|
"superdoc": "1.25.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.7.0-next.2",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.7.0-next.2",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.7.0-next.2",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.7.0-next.2",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.7.0-next.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|