@superdoc-dev/cli 0.12.0-next.4 → 0.12.0-next.6
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 +27 -15
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -158934,7 +158934,7 @@ var init_SuperConverter_UqLu6KQU_es = __esm(() => {
|
|
|
158934
158934
|
};
|
|
158935
158935
|
});
|
|
158936
158936
|
|
|
158937
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
158937
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-QcQvy-nD.es.js
|
|
158938
158938
|
function parseSizeUnit(val = "0") {
|
|
158939
158939
|
const length3 = val.toString() || "0";
|
|
158940
158940
|
const value = Number.parseFloat(length3);
|
|
@@ -167841,6 +167841,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
167841
167841
|
const documentId = activeEditor?.options?.documentId;
|
|
167842
167842
|
if (!documentId)
|
|
167843
167843
|
return null;
|
|
167844
|
+
if (typeof superdoc.getPresentationEditorForDocument === "function")
|
|
167845
|
+
return superdoc.getPresentationEditorForDocument(documentId);
|
|
167844
167846
|
return (superdoc.superdocStore?.documents ?? []).find((doc2) => doc2.getEditor?.()?.options?.documentId === documentId)?.getPresentationEditor?.() ?? null;
|
|
167845
167847
|
}, resolveToolbarSources = (superdoc) => {
|
|
167846
167848
|
const presentationEditor = resolvePresentationEditor(superdoc);
|
|
@@ -168587,17 +168589,21 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
168587
168589
|
active: false,
|
|
168588
168590
|
disabled: isCommandDisabled(context) || !inTable
|
|
168589
168591
|
};
|
|
168592
|
+
}, lookupCommentByCommentId = (superdoc, commentId) => {
|
|
168593
|
+
if (typeof superdoc?.getComment === "function")
|
|
168594
|
+
return superdoc.getComment(commentId) ?? null;
|
|
168595
|
+
const store = superdoc?.commentsStore;
|
|
168596
|
+
if (typeof store?.getComment === "function")
|
|
168597
|
+
return store.getComment(commentId) ?? null;
|
|
168598
|
+
return null;
|
|
168590
168599
|
}, enrichTrackedChanges = (trackedChanges = [], superdoc) => {
|
|
168591
168600
|
if (!trackedChanges.length)
|
|
168592
168601
|
return trackedChanges;
|
|
168593
|
-
const store = superdoc?.commentsStore;
|
|
168594
|
-
if (!store?.getComment)
|
|
168595
|
-
return trackedChanges;
|
|
168596
168602
|
return trackedChanges.map((change) => {
|
|
168597
168603
|
const commentId = change.id;
|
|
168598
168604
|
if (!commentId)
|
|
168599
168605
|
return change;
|
|
168600
|
-
const storeComment =
|
|
168606
|
+
const storeComment = lookupCommentByCommentId(superdoc, commentId);
|
|
168601
168607
|
if (!storeComment)
|
|
168602
168608
|
return change;
|
|
168603
168609
|
const comment = typeof storeComment.getValues === "function" ? storeComment.getValues() : storeComment;
|
|
@@ -168945,7 +168951,7 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
168945
168951
|
}
|
|
168946
168952
|
};
|
|
168947
168953
|
};
|
|
168948
|
-
var
|
|
168954
|
+
var init_create_headless_toolbar_QcQvy_nD_es = __esm(() => {
|
|
168949
168955
|
init_SuperConverter_UqLu6KQU_es();
|
|
168950
168956
|
init_uuid_qzgm05fK_es();
|
|
168951
168957
|
init_constants_DrU4EASo_es();
|
|
@@ -218151,7 +218157,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
218151
218157
|
init_remark_gfm_BhnWr3yf_es();
|
|
218152
218158
|
});
|
|
218153
218159
|
|
|
218154
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
218160
|
+
// ../../packages/superdoc/dist/chunks/src-DXlYP0an.es.js
|
|
218155
218161
|
function deleteProps(obj, propOrProps) {
|
|
218156
218162
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
218157
218163
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -306540,13 +306546,13 @@ menclose::after {
|
|
|
306540
306546
|
return;
|
|
306541
306547
|
console.log(...args$1);
|
|
306542
306548
|
}, 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;
|
|
306543
|
-
var
|
|
306549
|
+
var init_src_DXlYP0an_es = __esm(() => {
|
|
306544
306550
|
init_rolldown_runtime_Bg48TavK_es();
|
|
306545
306551
|
init_SuperConverter_UqLu6KQU_es();
|
|
306546
306552
|
init_jszip_C49i9kUs_es();
|
|
306547
306553
|
init_xml_js_CqGKpaft_es();
|
|
306548
306554
|
init_uuid_qzgm05fK_es();
|
|
306549
|
-
|
|
306555
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
306550
306556
|
init_constants_DrU4EASo_es();
|
|
306551
306557
|
init_dist_B8HfvhaK_es();
|
|
306552
306558
|
init_unified_Dsuw2be5_es();
|
|
@@ -328429,6 +328435,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328429
328435
|
customButtons: [],
|
|
328430
328436
|
showFormattingMarksButton: false
|
|
328431
328437
|
};
|
|
328438
|
+
toolbarItems = [];
|
|
328439
|
+
overflowItems = [];
|
|
328440
|
+
isDev = false;
|
|
328441
|
+
role = "editor";
|
|
328442
|
+
superdoc;
|
|
328443
|
+
toolbarContainer = null;
|
|
328432
328444
|
constructor(config2) {
|
|
328433
328445
|
super();
|
|
328434
328446
|
this.config = {
|
|
@@ -344262,11 +344274,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
344262
344274
|
];
|
|
344263
344275
|
});
|
|
344264
344276
|
|
|
344265
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
344277
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BuJIur0F.es.js
|
|
344266
344278
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
344267
|
-
var
|
|
344279
|
+
var init_create_super_doc_ui_BuJIur0F_es = __esm(() => {
|
|
344268
344280
|
init_SuperConverter_UqLu6KQU_es();
|
|
344269
|
-
|
|
344281
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
344270
344282
|
MOD_ALIASES = new Set([
|
|
344271
344283
|
"Mod",
|
|
344272
344284
|
"Meta",
|
|
@@ -344308,16 +344320,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
344308
344320
|
|
|
344309
344321
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
344310
344322
|
var init_super_editor_es = __esm(() => {
|
|
344311
|
-
|
|
344323
|
+
init_src_DXlYP0an_es();
|
|
344312
344324
|
init_SuperConverter_UqLu6KQU_es();
|
|
344313
344325
|
init_jszip_C49i9kUs_es();
|
|
344314
344326
|
init_xml_js_CqGKpaft_es();
|
|
344315
|
-
|
|
344327
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
344316
344328
|
init_constants_DrU4EASo_es();
|
|
344317
344329
|
init_dist_B8HfvhaK_es();
|
|
344318
344330
|
init_unified_Dsuw2be5_es();
|
|
344319
344331
|
init_DocxZipper_CZMPWpOp_es();
|
|
344320
|
-
|
|
344332
|
+
init_create_super_doc_ui_BuJIur0F_es();
|
|
344321
344333
|
init_ui_C5PAS9hY_es();
|
|
344322
344334
|
init_eventemitter3_BnGqBE_Q_es();
|
|
344323
344335
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.12.0-next.
|
|
3
|
+
"version": "0.12.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,9 +24,9 @@
|
|
|
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",
|
|
27
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"superdoc": "1.34.0",
|
|
29
|
-
"@superdoc/document-api": "0.0.1",
|
|
30
30
|
"@superdoc/super-editor": "0.0.1"
|
|
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.12.0-next.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.12.0-next.6",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.12.0-next.6",
|
|
39
|
+
"@superdoc-dev/cli-darwin-x64": "0.12.0-next.6",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.12.0-next.6",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.12.0-next.6"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|