@ones-editor/editor 2.1.1-beta.83 → 2.1.1-beta.84

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
@@ -40400,7 +40400,7 @@ ${codeText}
40400
40400
  if (this.popper) {
40401
40401
  this.popper.setAttribute("data-command-bar-id", "mobile-bottom-menu");
40402
40402
  }
40403
- }, 200);
40403
+ }, 600);
40404
40404
  });
40405
40405
  }
40406
40406
  close(reason) {
@@ -84786,6 +84786,9 @@ ${data2.flowchartText}
84786
84786
  this.block = block;
84787
84787
  }
84788
84788
  get commands() {
84789
+ if (clientType.isMobile) {
84790
+ return [];
84791
+ }
84789
84792
  if (this.isHoveringImageEmpty()) {
84790
84793
  return [];
84791
84794
  }
@@ -84828,7 +84831,9 @@ ${data2.flowchartText}
84828
84831
  video.controls = true;
84829
84832
  video.src = url;
84830
84833
  video.addEventListener("canplay", () => {
84831
- editor.addCustom("video-resizer", () => new VideoResizer(editor));
84834
+ if (!clientType.isMobile) {
84835
+ editor.addCustom("video-resizer", () => new VideoResizer(editor));
84836
+ }
84832
84837
  this.getMedia(editor, blockData.id).removeListener("mediaError", this.handleMediaError);
84833
84838
  this.getMedia(editor, blockData.id).addListener("mediaError", this.handleMediaError);
84834
84839
  this.getMedia(editor, blockData.id).removeFullScreen();
@@ -84870,9 +84875,11 @@ ${data2.flowchartText}
84870
84875
  };
84871
84876
  }
84872
84877
  handleMediaError(editor, type, blockId) {
84873
- const videoResizer = editor.addCustom("video-resizer", () => new VideoResizer(editor));
84874
- const block = editor.getBlockById(blockId);
84875
- videoResizer.disableBlockResize(block);
84878
+ if (!clientType.isMobile) {
84879
+ const videoResizer = editor.addCustom("video-resizer", () => new VideoResizer(editor));
84880
+ const block = editor.getBlockById(blockId);
84881
+ videoResizer.disableBlockResize(block);
84882
+ }
84876
84883
  }
84877
84884
  updateMediaElement(editor, mediaElement, blockData, url) {
84878
84885
  const video = mediaElement.querySelector(":scope .video-container > video");
@@ -84886,12 +84893,12 @@ ${data2.flowchartText}
84886
84893
  video.style.width = "";
84887
84894
  }
84888
84895
  const block = editor.getBlockById(blockData.id);
84889
- setTimeout(() => {
84890
- if (!clientType.isMobile) {
84896
+ if (!clientType.isMobile) {
84897
+ setTimeout(() => {
84891
84898
  const videoResizer = editor.addCustom("video-resizer", () => new VideoResizer(editor));
84892
84899
  videoResizer.updateResizer(block);
84893
- }
84894
- });
84900
+ });
84901
+ }
84895
84902
  return video;
84896
84903
  }
84897
84904
  }
@@ -86823,7 +86830,7 @@ ${data2.flowchartText}
86823
86830
  }
86824
86831
  }
86825
86832
  });
86826
- editor.version = "2.1.1-beta.83";
86833
+ editor.version = "2.1.1-beta.84";
86827
86834
  if (Logger$2.level === LogLevel.DEBUG) {
86828
86835
  window.setReauthFail = (fail) => {
86829
86836
  window.isReauthError = fail;
@@ -86924,7 +86931,7 @@ ${data2.flowchartText}
86924
86931
  });
86925
86932
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86926
86933
  OnesEditorToolbar.register(editor);
86927
- editor.version = "2.1.1-beta.83";
86934
+ editor.version = "2.1.1-beta.84";
86928
86935
  return editor;
86929
86936
  }
86930
86937
  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.83",
3
+ "version": "2.1.1-beta.84",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",