@ones-editor/editor 2.1.1-beta.61 → 2.1.1-beta.62

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
@@ -75069,10 +75069,6 @@ ${content}
75069
75069
  name: i18n$1.t("file.commands.download"),
75070
75070
  icon: DownloadIcon
75071
75071
  },
75072
- {
75073
- id: "preview",
75074
- name: i18n$1.t("file.commands.preview")
75075
- },
75076
75072
  {
75077
75073
  id: "add-comment",
75078
75074
  name: i18n$1.t("file.commands.comment"),
@@ -75109,9 +75105,6 @@ ${content}
75109
75105
  get commands() {
75110
75106
  let items = this._commands.slice();
75111
75107
  const needRemoveCommandIds = /* @__PURE__ */ new Set();
75112
- if (!clientType.isMobile || this.editor.readonly) {
75113
- needRemoveCommandIds.add("preview");
75114
- }
75115
75108
  if (this.editor.readonly || clientType.isMobile) {
75116
75109
  needRemoveCommandIds.add("to-link");
75117
75110
  needRemoveCommandIds.add("to-card");
@@ -75138,18 +75131,6 @@ ${content}
75138
75131
  return items;
75139
75132
  }
75140
75133
  executeCommand(editor, block, box, item) {
75141
- if (item.id === "preview") {
75142
- const options = editor.options.componentsOptions.file;
75143
- if (options == null ? void 0 : options.onClick) {
75144
- const mouseEvent = new MouseEvent("mousedown", {
75145
- bubbles: true,
75146
- cancelable: true,
75147
- button: 0
75148
- });
75149
- options.onClick(editor, box, mouseEvent);
75150
- }
75151
- return;
75152
- }
75153
75134
  if (item.id === "to-card") {
75154
75135
  const container = getParentContainer(block);
75155
75136
  const containerId = getContainerId(container);
@@ -86659,7 +86640,7 @@ ${data2.flowchartText}
86659
86640
  }
86660
86641
  }
86661
86642
  });
86662
- editor.version = "2.1.1-beta.61";
86643
+ editor.version = "2.1.1-beta.62";
86663
86644
  if (Logger$2.level === LogLevel.DEBUG) {
86664
86645
  window.setReauthFail = (fail) => {
86665
86646
  window.isReauthError = fail;
@@ -86757,7 +86738,7 @@ ${data2.flowchartText}
86757
86738
  });
86758
86739
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86759
86740
  OnesEditorToolbar.register(editor);
86760
- editor.version = "2.1.1-beta.61";
86741
+ editor.version = "2.1.1-beta.62";
86761
86742
  return editor;
86762
86743
  }
86763
86744
  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.1-beta.61",
3
+ "version": "2.1.1-beta.62",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",