@ones-editor/editor 2.8.22 → 2.8.24

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
@@ -85011,7 +85011,7 @@ ${data2.flowchartText}
85011
85011
  };
85012
85012
  const drawioIframeUrl = "https://embed.diagrams.net/?embed=1";
85013
85013
  const DrawioJsUrl = "https://www.draw.io/embed.js";
85014
- const PakoJsUrl = "https://cdn.jsdelivr.net/npm/pako@2.0.3/dist/pako.es5.js";
85014
+ const PakoJsUrl = "https://cdn.jsdelivr.net/npm/pako@2.0.3/dist/pako.es5.min.js";
85015
85015
  const EmptyIcon = '<svg width="48" height="49" viewBox="0 0 48 49" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="27" y="18.5" width="18" height="9" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="12" y="18.5" width="9" height="9" transform="rotate(45 12 18.5)" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="27" y="36.5" width="18" height="9" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M27 24.5L18 24.5" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M28.5 41H18" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M18 41H12L12 30.5" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M12 21.5L12 12.5" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="7.5" y="3.5" width="9" height="9" rx="4.5" stroke="#C7C7C7" stroke-width="3"/>\n</svg>\n';
85016
85016
  const DEFAULT_STYLES = `
85017
85017
  <mxStylesheet>
@@ -85431,10 +85431,13 @@ ${data2.flowchartText}
85431
85431
  drawioIframe.setAttribute("src", iframeUrl);
85432
85432
  }
85433
85433
  async function initDrawIo(editor) {
85434
- var _a, _b;
85434
+ var _a, _b, _c, _d, _e;
85435
85435
  const option = getDrawioOptions(editor);
85436
- const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.drawio) || DrawioJsUrl;
85436
+ const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.drawioJs) || DrawioJsUrl;
85437
85437
  const pakoUrl = ((_b = option.cdn) == null ? void 0 : _b.pako) || PakoJsUrl;
85438
+ window.DRAWIO_BASE_URL = ((_c = option.cdn) == null ? void 0 : _c.drawioBaseUrl) || void 0;
85439
+ window.DRAWIO_LIGHTBOX_URL = ((_d = option.cdn) == null ? void 0 : _d.drawioBaseUrl) || void 0;
85440
+ window.STENCIL_PATH = ((_e = option.cdn) == null ? void 0 : _e.drawioBaseUrl) ? `${option.cdn.drawioBaseUrl}/stencils` : void 0;
85438
85441
  await loadJsPromise(pakoUrl, "editor-pako");
85439
85442
  await loadJsPromise(drawIoUrl, "editor-drawio");
85440
85443
  }
@@ -93113,7 +93116,7 @@ ${data2.plantumlText}
93113
93116
  }
93114
93117
  }
93115
93118
  });
93116
- editor.version = "2.8.22";
93119
+ editor.version = "2.8.24";
93117
93120
  return editor;
93118
93121
  }
93119
93122
  function isDoc(doc2) {
@@ -93226,7 +93229,7 @@ ${data2.plantumlText}
93226
93229
  }
93227
93230
  });
93228
93231
  OnesEditorToolbar.register(editor);
93229
- editor.version = "2.8.22";
93232
+ editor.version = "2.8.24";
93230
93233
  return editor;
93231
93234
  }
93232
93235
  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.22",
3
+ "version": "2.8.24",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {