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

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,16 @@ ${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
+ editor.selection.setSelection(createSimpleBlockPosition(block, 0, "home"), createSimpleBlockPosition(block, 0, "end"));
68478
+ comment = addCommentToBlock$1(editor, block, this.provider);
68479
+ }
68480
+ }
68481
+ comment = comment != null ? comment : addCommentToTextBlocks(editor, range, this.provider);
68473
68482
  if (result) {
68474
68483
  result["add-comment"] = comment;
68475
68484
  }
@@ -88157,7 +88166,7 @@ ${data2.flowchartText}
88157
88166
  }
88158
88167
  }
88159
88168
  });
88160
- editor.version = "2.1.2-beta.29";
88169
+ editor.version = "2.1.2-beta.31";
88161
88170
  if (Logger$2.level === LogLevel.DEBUG) {
88162
88171
  window.setReauthFail = (fail) => {
88163
88172
  window.isReauthError = fail;
@@ -88258,7 +88267,7 @@ ${data2.flowchartText}
88258
88267
  });
88259
88268
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88260
88269
  OnesEditorToolbar.register(editor);
88261
- editor.version = "2.1.2-beta.29";
88270
+ editor.version = "2.1.2-beta.31";
88262
88271
  return editor;
88263
88272
  }
88264
88273
  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.31",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",