@ones-editor/editor 2.1.2-beta.27 → 2.1.2-beta.28

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
@@ -68429,9 +68429,20 @@ ${codeText}
68429
68429
  }
68430
68430
  getAvailableCommands(editor, block, range, params) {
68431
68431
  var _a;
68432
+ const blockTypes = ["table", "layout"];
68433
+ if (blockTypes.includes(getBlockType(block)) && !range.isSimple()) {
68434
+ if (isFullSelectedOneComplexBlock(editor, range)) {
68435
+ return [{
68436
+ id: "add-comment",
68437
+ name: i18n$1.t("comment.command"),
68438
+ icon: CommentIcon$1,
68439
+ states: []
68440
+ }];
68441
+ }
68442
+ }
68443
+ const isFilter = (_a = params == null ? void 0 : params.isFilter) != null ? _a : true;
68432
68444
  const originRange = editor.selection.range;
68433
68445
  const enabled = isTextKindBlock(editor, block) && !range.isCollapsed() && originRange.isSimple();
68434
- const isFilter = (_a = params == null ? void 0 : params.isFilter) != null ? _a : true;
68435
68446
  if (!enabled && isFilter) {
68436
68447
  return [];
68437
68448
  }
@@ -82330,7 +82341,6 @@ ${content}
82330
82341
  findPreviewElement,
82331
82342
  innerToc: true,
82332
82343
  blockMenu: {
82333
- showComment: false,
82334
82344
  showLocker: false
82335
82345
  },
82336
82346
  overrideInertEmptyBlockInsideOptions: {
@@ -88142,7 +88152,7 @@ ${data2.flowchartText}
88142
88152
  }
88143
88153
  }
88144
88154
  });
88145
- editor.version = "2.1.2-beta.27";
88155
+ editor.version = "2.1.2-beta.28";
88146
88156
  if (Logger$2.level === LogLevel.DEBUG) {
88147
88157
  window.setReauthFail = (fail) => {
88148
88158
  window.isReauthError = fail;
@@ -88243,7 +88253,7 @@ ${data2.flowchartText}
88243
88253
  });
88244
88254
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88245
88255
  OnesEditorToolbar.register(editor);
88246
- editor.version = "2.1.2-beta.27";
88256
+ editor.version = "2.1.2-beta.28";
88247
88257
  return editor;
88248
88258
  }
88249
88259
  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.27",
3
+ "version": "2.1.2-beta.28",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",