@ones-editor/editor 2.2.16-beta.12 → 2.2.16-beta.13
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
|
@@ -82359,8 +82359,7 @@ ${content}
|
|
|
82359
82359
|
assert(logger$j, iframe.contentWindow, "iframe.contentWindow does not exist");
|
|
82360
82360
|
if (evt.data.length > 0) {
|
|
82361
82361
|
const msg = JSON.parse(evt.data);
|
|
82362
|
-
const xml = drawIoData.xmlSvg || drawIoData.xml;
|
|
82363
|
-
assert(logger$j, xml, "xml does not exist");
|
|
82362
|
+
const xml = drawIoData.xmlSvg || drawIoData.xml || "";
|
|
82364
82363
|
switch (msg.event) {
|
|
82365
82364
|
case "configure":
|
|
82366
82365
|
iframe.contentWindow.postMessage(JSON.stringify({
|
|
@@ -82433,12 +82432,13 @@ ${content}
|
|
|
82433
82432
|
const svg = await downloadSvgToString(editor, editor.doc.buildResourceUrl(data2.src));
|
|
82434
82433
|
if (svg) {
|
|
82435
82434
|
data2.xmlSvg = svg;
|
|
82435
|
+
} else {
|
|
82436
|
+
if (!data2.xml && !data2.xmlSvg) {
|
|
82437
|
+
showWarnToast();
|
|
82438
|
+
return;
|
|
82439
|
+
}
|
|
82436
82440
|
}
|
|
82437
82441
|
}
|
|
82438
|
-
if (!data2.xml && !data2.xmlSvg) {
|
|
82439
|
-
showWarnToast();
|
|
82440
|
-
return;
|
|
82441
|
-
}
|
|
82442
82442
|
const { drawioIframe, exit: exitIframe } = await initializeDrawioIframe(editor, block);
|
|
82443
82443
|
exclusiveBlock(editor, block);
|
|
82444
82444
|
const loaded = () => {
|
|
@@ -88486,7 +88486,7 @@ ${data2.flowchartText}
|
|
|
88486
88486
|
}
|
|
88487
88487
|
}
|
|
88488
88488
|
});
|
|
88489
|
-
editor.version = "2.2.16-beta.
|
|
88489
|
+
editor.version = "2.2.16-beta.13";
|
|
88490
88490
|
return editor;
|
|
88491
88491
|
}
|
|
88492
88492
|
function isDoc(doc2) {
|
|
@@ -88581,7 +88581,7 @@ ${data2.flowchartText}
|
|
|
88581
88581
|
});
|
|
88582
88582
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88583
88583
|
OnesEditorToolbar.register(editor);
|
|
88584
|
-
editor.version = "2.2.16-beta.
|
|
88584
|
+
editor.version = "2.2.16-beta.13";
|
|
88585
88585
|
return editor;
|
|
88586
88586
|
}
|
|
88587
88587
|
async function showDocVersions(editor, options, serverUrl) {
|