@ones-editor/editor 2.1.1-beta.20 → 2.1.1-beta.22
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.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export * from '../@ones-editor/layout-block';
|
|
|
20
20
|
export { Popup, ManualMenu, OnesEditorAutoSuggest, tippy, ManualToolbar, ManualCloseDialog, TextColorItem, shouldFocusToEditor, FixedToolbar, } from '../@ones-editor/ui-base';
|
|
21
21
|
export * from '../@ones-editor/drawio-embed';
|
|
22
22
|
export * from '../@ones-editor/block-resizer';
|
|
23
|
-
export { editorAddComment } from '../@ones-editor/comments';
|
|
23
|
+
export { editorAddComment, CommentsCommandProvider } from '../@ones-editor/comments';
|
|
24
24
|
export { editorShowFindDialog } from '../@ones-editor/find-dialog';
|
|
25
25
|
export * from '../@ones-editor/toc';
|
|
26
26
|
export * from '../@ones-editor/embed-block-helper';
|
package/dist/index.js
CHANGED
|
@@ -56842,6 +56842,7 @@ $$${mathData.mathjaxText}$$
|
|
|
56842
56842
|
if (!options.insertBlockCommandItems) {
|
|
56843
56843
|
return;
|
|
56844
56844
|
}
|
|
56845
|
+
injectBlockOptions(options.insertBlockCommandItems, options);
|
|
56845
56846
|
commands.push(...options.insertBlockCommandItems);
|
|
56846
56847
|
});
|
|
56847
56848
|
for (const provider of this.providers) {
|
|
@@ -58010,7 +58011,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58010
58011
|
return [];
|
|
58011
58012
|
}
|
|
58012
58013
|
let commands;
|
|
58013
|
-
if (getBlockTextLength$6(editor, block) === 0) {
|
|
58014
|
+
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58014
58015
|
commands = getCommands$1([]);
|
|
58015
58016
|
} else {
|
|
58016
58017
|
const subText2 = getSubText(editor, block, range);
|
|
@@ -84899,7 +84900,7 @@ ${data2.flowchartText}
|
|
|
84899
84900
|
}
|
|
84900
84901
|
}
|
|
84901
84902
|
});
|
|
84902
|
-
editor.version = "2.1.1-beta.
|
|
84903
|
+
editor.version = "2.1.1-beta.22";
|
|
84903
84904
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
84904
84905
|
window.setReauthFail = (fail) => {
|
|
84905
84906
|
window.isReauthError = fail;
|
|
@@ -84996,7 +84997,7 @@ ${data2.flowchartText}
|
|
|
84996
84997
|
});
|
|
84997
84998
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
84998
84999
|
OnesEditorToolbar.register(editor);
|
|
84999
|
-
editor.version = "2.1.1-beta.
|
|
85000
|
+
editor.version = "2.1.1-beta.22";
|
|
85000
85001
|
return editor;
|
|
85001
85002
|
}
|
|
85002
85003
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -130752,6 +130753,7 @@ ${data2.flowchartText}
|
|
|
130752
130753
|
exports2.CodeLineBlock = CodeLineBlock;
|
|
130753
130754
|
exports2.CodeTextDecorator = CodeTextDecorator;
|
|
130754
130755
|
exports2.ColorStyleProvider = ColorStyleProvider;
|
|
130756
|
+
exports2.CommentsCommandProvider = CommentsCommandProvider;
|
|
130755
130757
|
exports2.DOC_RE_AUTH_KEYS = DOC_RE_AUTH_KEYS;
|
|
130756
130758
|
exports2.DefaultShortcuts = DefaultShortcuts;
|
|
130757
130759
|
exports2.DocIdError = DocIdError;
|