@ones-editor/editor 2.8.1 → 2.8.2

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
@@ -85549,6 +85549,13 @@ ${data2.flowchartText}
85549
85549
  if (!pre.endsWith("/")) {
85550
85550
  pre += "/";
85551
85551
  }
85552
+ if (pre.startsWith("http://") || pre.startsWith("https://"))
85553
+ ;
85554
+ else {
85555
+ const host = window.location.host;
85556
+ const protocol = window.location.protocol;
85557
+ pre = `${protocol}//${host}${pre}`;
85558
+ }
85552
85559
  const encodedText = plantumlEncoder__default.default.encode(plantumlText);
85553
85560
  assert(logger$g, encodedText, encodedText);
85554
85561
  pre += encodedText;
@@ -92539,7 +92546,7 @@ ${data2.plantumlText}
92539
92546
  }
92540
92547
  }
92541
92548
  });
92542
- editor.version = "2.8.1";
92549
+ editor.version = "2.8.2";
92543
92550
  return editor;
92544
92551
  }
92545
92552
  function isDoc(doc2) {
@@ -92652,7 +92659,7 @@ ${data2.plantumlText}
92652
92659
  }
92653
92660
  });
92654
92661
  OnesEditorToolbar.register(editor);
92655
- editor.version = "2.8.1";
92662
+ editor.version = "2.8.2";
92656
92663
  return editor;
92657
92664
  }
92658
92665
  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.8.1",
3
+ "version": "2.8.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {