@ones-editor/editor 2.9.8-beta.76 → 2.9.8-beta.77

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
@@ -87920,10 +87920,12 @@ ${data2.flowchartText}
87920
87920
  });
87921
87921
  }
87922
87922
  isSameOrigin(editor, doc2, src) {
87923
- var _a, _b;
87923
+ var _a, _b, _c;
87924
87924
  const apiServer = ((_b = (_a = editor.doc).getServerMeta) == null ? void 0 : _b.call(_a).apiServer) || window.location.origin;
87925
- const origin = new URL(apiServer).origin;
87926
- const docServer = src.startsWith("http") ? src : doc2.meta.apiServer;
87925
+ let origin = new URL(apiServer).origin;
87926
+ let docServer = src.startsWith("http") ? src : doc2.meta.apiServer;
87927
+ docServer = (_c = docServer == null ? void 0 : docServer.replace("wss:", "https:")) == null ? void 0 : _c.replace("ws:", "http:");
87928
+ origin = origin.replace("wss:", "https:").replace("ws:", "http:");
87927
87929
  return (docServer == null ? void 0 : docServer.startsWith(origin)) || false;
87928
87930
  }
87929
87931
  destroy() {
@@ -95947,7 +95949,7 @@ ${JSON.stringify(error2, null, 2)}`);
95947
95949
  }
95948
95950
  }
95949
95951
  });
95950
- editor.version = "2.9.8-beta.76";
95952
+ editor.version = "2.9.8-beta.77";
95951
95953
  return editor;
95952
95954
  }
95953
95955
  function isDoc(doc2) {
@@ -96081,7 +96083,7 @@ ${JSON.stringify(error2, null, 2)}`);
96081
96083
  OnesEditorDropTarget.register(editor);
96082
96084
  OnesEditorTocProvider.register(editor);
96083
96085
  OnesEditorExclusiveBlock.register(editor);
96084
- editor.version = "2.9.8-beta.76";
96086
+ editor.version = "2.9.8-beta.77";
96085
96087
  return editor;
96086
96088
  }
96087
96089
  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.9.8-beta.76",
3
+ "version": "2.9.8-beta.77",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {