@superdoc-dev/cli 0.3.0-next.12 → 0.3.0-next.13
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 +16 -11
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -136626,7 +136626,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
136626
136626
|
init_remark_gfm_z_sDF4ss_es();
|
|
136627
136627
|
});
|
|
136628
136628
|
|
|
136629
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
136629
|
+
// ../../packages/superdoc/dist/chunks/src-bUO0Qk2d.es.js
|
|
136630
136630
|
function deleteProps(obj, propOrProps) {
|
|
136631
136631
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
136632
136632
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -223178,7 +223178,7 @@ var Node$13 = class Node$14 {
|
|
|
223178
223178
|
return false;
|
|
223179
223179
|
return Boolean(checker(attrs));
|
|
223180
223180
|
}, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
|
|
223181
|
-
var
|
|
223181
|
+
var init_src_bUO0Qk2d_es = __esm(() => {
|
|
223182
223182
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
223183
223183
|
init_SuperConverter_DrtBPaMq_es();
|
|
223184
223184
|
init_jszip_ChlR43oI_es();
|
|
@@ -225752,13 +225752,20 @@ ${err.toString()}`);
|
|
|
225752
225752
|
setCursorById: (id2, options = {}) => ({ state, editor }) => {
|
|
225753
225753
|
const { from: from$1 } = findRangeById(state.doc, id2) || {};
|
|
225754
225754
|
if (from$1 != null) {
|
|
225755
|
-
state.tr
|
|
225756
|
-
|
|
225757
|
-
|
|
225755
|
+
const tr = state.tr;
|
|
225756
|
+
tr.setSelection(TextSelection2.create(state.doc, from$1));
|
|
225757
|
+
if (options.activeCommentId)
|
|
225758
|
+
tr.setMeta(CommentsPluginKey, {
|
|
225759
|
+
type: "setActiveComment",
|
|
225760
|
+
activeThreadId: options.activeCommentId,
|
|
225761
|
+
forceUpdate: true
|
|
225762
|
+
});
|
|
225763
|
+
else if (options.preferredActiveThreadId)
|
|
225764
|
+
tr.setMeta(CommentsPluginKey, {
|
|
225758
225765
|
type: "setCursorById",
|
|
225759
225766
|
preferredActiveThreadId: options.preferredActiveThreadId
|
|
225760
225767
|
});
|
|
225761
|
-
if (editor.view && typeof editor.view.focus === "function")
|
|
225768
|
+
if (!options.activeCommentId && editor.view && typeof editor.view.focus === "function")
|
|
225762
225769
|
editor.view.focus();
|
|
225763
225770
|
return true;
|
|
225764
225771
|
}
|
|
@@ -225782,7 +225789,6 @@ ${err.toString()}`);
|
|
|
225782
225789
|
decorations: DecorationSet.empty,
|
|
225783
225790
|
allCommentPositions: {},
|
|
225784
225791
|
allCommentIds: [],
|
|
225785
|
-
changedActiveThread: false,
|
|
225786
225792
|
trackedChanges: {}
|
|
225787
225793
|
};
|
|
225788
225794
|
},
|
|
@@ -225805,8 +225811,7 @@ ${err.toString()}`);
|
|
|
225805
225811
|
pluginState.activeThreadId = newActiveThreadId;
|
|
225806
225812
|
return {
|
|
225807
225813
|
...pluginState,
|
|
225808
|
-
activeThreadId: newActiveThreadId
|
|
225809
|
-
changedActiveThread: true
|
|
225814
|
+
activeThreadId: newActiveThreadId
|
|
225810
225815
|
};
|
|
225811
225816
|
}
|
|
225812
225817
|
if (meta2 && meta2.decorations)
|
|
@@ -225837,7 +225842,7 @@ ${err.toString()}`);
|
|
|
225837
225842
|
editor.emit("commentsUpdate", update);
|
|
225838
225843
|
}
|
|
225839
225844
|
}
|
|
225840
|
-
return pluginState;
|
|
225845
|
+
return { ...pluginState };
|
|
225841
225846
|
}
|
|
225842
225847
|
}
|
|
225843
225848
|
};
|
|
@@ -257364,7 +257369,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
257364
257369
|
|
|
257365
257370
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
257366
257371
|
var init_super_editor_es = __esm(() => {
|
|
257367
|
-
|
|
257372
|
+
init_src_bUO0Qk2d_es();
|
|
257368
257373
|
init_SuperConverter_DrtBPaMq_es();
|
|
257369
257374
|
init_jszip_ChlR43oI_es();
|
|
257370
257375
|
init_xml_js_BtmJ6bNs_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"@types/bun": "^1.3.8",
|
|
21
21
|
"@types/node": "22.19.2",
|
|
22
22
|
"typescript": "^5.9.2",
|
|
23
|
-
"@superdoc/document-api": "0.0.1",
|
|
24
23
|
"@superdoc/super-editor": "0.0.1",
|
|
25
|
-
"superdoc": "
|
|
26
|
-
"@superdoc/
|
|
24
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
25
|
+
"@superdoc/document-api": "0.0.1",
|
|
26
|
+
"superdoc": "1.19.0"
|
|
27
27
|
},
|
|
28
28
|
"module": "src/index.ts",
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.
|
|
34
|
-
"@superdoc-dev/cli-darwin-x64": "0.3.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-x64": "0.3.0-next.
|
|
36
|
-
"@superdoc-dev/cli-linux-arm64": "0.3.0-next.
|
|
37
|
-
"@superdoc-dev/cli-windows-x64": "0.3.0-next.
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.13",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.3.0-next.13",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.3.0-next.13",
|
|
36
|
+
"@superdoc-dev/cli-linux-arm64": "0.3.0-next.13",
|
|
37
|
+
"@superdoc-dev/cli-windows-x64": "0.3.0-next.13"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"dev": "bun run src/index.ts",
|