@ones-editor/editor 2.2.16-beta.2 → 2.2.16-beta.4

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
@@ -76749,12 +76749,6 @@ ${content}
76749
76749
  id: "download",
76750
76750
  name: i18n$1.t("file.commands.download"),
76751
76751
  icon: DownloadIcon
76752
- }, {
76753
- id: "add-comment",
76754
- name: i18n$1.t("file.commands.comment"),
76755
- icon: CommentIcon$1,
76756
- groupOrder: 1e3,
76757
- order: 100
76758
76752
  }, {
76759
76753
  id: "sep",
76760
76754
  name: "",
@@ -76783,10 +76777,6 @@ ${content}
76783
76777
  if (!options.canDownload) {
76784
76778
  result = result.filter((command) => command.id !== "download");
76785
76779
  }
76786
- const { enableComments = true } = this.editor.options;
76787
- if (!enableComments) {
76788
- result = result.filter((command) => command.id !== "add-comment");
76789
- }
76790
76780
  return result;
76791
76781
  }
76792
76782
  executeCommand(editor, block, item) {
@@ -76818,8 +76808,6 @@ ${content}
76818
76808
  });
76819
76809
  } else if (item.id === "download") {
76820
76810
  downloadFile(editor, block);
76821
- } else if (item.id === "add-comment") {
76822
- addCommentToBlock$1(editor, block);
76823
76811
  }
76824
76812
  }
76825
76813
  }
@@ -88384,7 +88372,7 @@ ${data2.flowchartText}
88384
88372
  }
88385
88373
  }
88386
88374
  });
88387
- editor.version = "2.2.16-beta.2";
88375
+ editor.version = "2.2.16-beta.4";
88388
88376
  return editor;
88389
88377
  }
88390
88378
  function isDoc(doc2) {
@@ -88478,7 +88466,7 @@ ${data2.flowchartText}
88478
88466
  });
88479
88467
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88480
88468
  OnesEditorToolbar.register(editor);
88481
- editor.version = "2.2.16-beta.2";
88469
+ editor.version = "2.2.16-beta.4";
88482
88470
  return editor;
88483
88471
  }
88484
88472
  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.2.16-beta.2",
3
+ "version": "2.2.16-beta.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",