@ones-editor/editor 2.1.2-beta.14 → 2.1.2-beta.15

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 CHANGED
@@ -65954,6 +65954,10 @@ ${codeText}
65954
65954
  continue;
65955
65955
  }
65956
65956
  if (commands.group === "block-comment-actions") {
65957
+ const command = commands.commands[0];
65958
+ if (!command) {
65959
+ continue;
65960
+ }
65957
65961
  commands.executeCommand(editor, block, commands.commands[0], null);
65958
65962
  return true;
65959
65963
  }
@@ -69010,7 +69014,8 @@ ${codeText}
69010
69014
  }
69011
69015
  editor2.selection.selectBlock(block, 0, getBlockTextLength$6(editor2, block), { noScroll: true });
69012
69016
  editor2.readonly = false;
69013
- addCommentToBlock(editor2, block);
69017
+ const editorComments = editor2.getCustom("editor-comments");
69018
+ addCommentToBlock$1(editor2, block, editorComments.commentProvider);
69014
69019
  setTimeout(() => {
69015
69020
  editor2.readonly = true;
69016
69021
  }, 100);
@@ -69047,7 +69052,8 @@ ${codeText}
69047
69052
  const selectedBlock = range.getSelectedBlocks()[0];
69048
69053
  if (selectedBlock) {
69049
69054
  editor.readonly = false;
69050
- addCommentToBlock(editor, selectedBlock.block);
69055
+ const editorComments = editor.getCustom("editor-comments");
69056
+ addCommentToBlock$1(editor, selectedBlock.block, editorComments.commentProvider);
69051
69057
  setTimeout(() => {
69052
69058
  editor.readonly = true;
69053
69059
  }, 100);
@@ -88111,7 +88117,7 @@ ${data2.flowchartText}
88111
88117
  }
88112
88118
  }
88113
88119
  });
88114
- editor.version = "2.1.2-beta.14";
88120
+ editor.version = "2.1.2-beta.15";
88115
88121
  if (Logger$2.level === LogLevel.DEBUG) {
88116
88122
  window.setReauthFail = (fail) => {
88117
88123
  window.isReauthError = fail;
@@ -88212,7 +88218,7 @@ ${data2.flowchartText}
88212
88218
  });
88213
88219
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88214
88220
  OnesEditorToolbar.register(editor);
88215
- editor.version = "2.1.2-beta.14";
88221
+ editor.version = "2.1.2-beta.15";
88216
88222
  return editor;
88217
88223
  }
88218
88224
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.1.2-beta.14",
3
+ "version": "2.1.2-beta.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",