@ones-editor/editor 2.1.2-beta.29 → 2.1.2-beta.30

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
@@ -68469,7 +68469,15 @@ ${codeText}
68469
68469
  executeRangeCommand(editor, range, command, params, result) {
68470
68470
  if (command.id === "add-comment") {
68471
68471
  this.editorComments.showCommentList();
68472
- const comment = addCommentToTextBlocks(editor, range, this.provider);
68472
+ let comment;
68473
+ if (!range.isSimple() && isFullSelectedOneComplexBlock(editor, range)) {
68474
+ const block = editor.getBlockById(range.anchor.blockId);
68475
+ const types2 = ["table", "layout"];
68476
+ if (types2.includes(getBlockType(block))) {
68477
+ comment = addCommentToBlock$1(editor, block, this.provider);
68478
+ }
68479
+ }
68480
+ comment = comment != null ? comment : addCommentToTextBlocks(editor, range, this.provider);
68473
68481
  if (result) {
68474
68482
  result["add-comment"] = comment;
68475
68483
  }
@@ -88157,7 +88165,7 @@ ${data2.flowchartText}
88157
88165
  }
88158
88166
  }
88159
88167
  });
88160
- editor.version = "2.1.2-beta.29";
88168
+ editor.version = "2.1.2-beta.30";
88161
88169
  if (Logger$2.level === LogLevel.DEBUG) {
88162
88170
  window.setReauthFail = (fail) => {
88163
88171
  window.isReauthError = fail;
@@ -88258,7 +88266,7 @@ ${data2.flowchartText}
88258
88266
  });
88259
88267
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88260
88268
  OnesEditorToolbar.register(editor);
88261
- editor.version = "2.1.2-beta.29";
88269
+ editor.version = "2.1.2-beta.30";
88262
88270
  return editor;
88263
88271
  }
88264
88272
  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.29",
3
+ "version": "2.1.2-beta.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",