@superdoc-dev/cli 0.12.0-next.4 → 0.12.0-next.5
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 +21 -15
- package/package.json +9 -9
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-BJQRcFsD.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_BJQRcFsD_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();
|
|
@@ -344262,11 +344268,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
344262
344268
|
];
|
|
344263
344269
|
});
|
|
344264
344270
|
|
|
344265
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
344271
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-FWAQonYc.es.js
|
|
344266
344272
|
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
|
|
344273
|
+
var init_create_super_doc_ui_FWAQonYc_es = __esm(() => {
|
|
344268
344274
|
init_SuperConverter_UqLu6KQU_es();
|
|
344269
|
-
|
|
344275
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
344270
344276
|
MOD_ALIASES = new Set([
|
|
344271
344277
|
"Mod",
|
|
344272
344278
|
"Meta",
|
|
@@ -344308,16 +344314,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
344308
344314
|
|
|
344309
344315
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
344310
344316
|
var init_super_editor_es = __esm(() => {
|
|
344311
|
-
|
|
344317
|
+
init_src_BJQRcFsD_es();
|
|
344312
344318
|
init_SuperConverter_UqLu6KQU_es();
|
|
344313
344319
|
init_jszip_C49i9kUs_es();
|
|
344314
344320
|
init_xml_js_CqGKpaft_es();
|
|
344315
|
-
|
|
344321
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
344316
344322
|
init_constants_DrU4EASo_es();
|
|
344317
344323
|
init_dist_B8HfvhaK_es();
|
|
344318
344324
|
init_unified_Dsuw2be5_es();
|
|
344319
344325
|
init_DocxZipper_CZMPWpOp_es();
|
|
344320
|
-
|
|
344326
|
+
init_create_super_doc_ui_FWAQonYc_es();
|
|
344321
344327
|
init_ui_C5PAS9hY_es();
|
|
344322
344328
|
init_eventemitter3_BnGqBE_Q_es();
|
|
344323
344329
|
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.5",
|
|
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/pm-adapter": "0.0.0",
|
|
28
|
-
"superdoc": "1.34.0",
|
|
29
27
|
"@superdoc/document-api": "0.0.1",
|
|
30
|
-
"@superdoc/super-editor": "0.0.1"
|
|
28
|
+
"@superdoc/super-editor": "0.0.1",
|
|
29
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
30
|
+
"superdoc": "1.34.0"
|
|
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.12.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.12.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-arm64": "0.12.0-next.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.12.0-next.5",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.12.0-next.5",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.12.0-next.5",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.12.0-next.5",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.12.0-next.5"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|