@ones-editor/editor 2.8.1 → 2.8.4
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +15 -4
- package/package.json +1 -1
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;
|
|
@@ -91034,8 +91041,12 @@ ${data2.plantumlText}
|
|
|
91034
91041
|
const embedData = embedBlock.embedData;
|
|
91035
91042
|
const embedType = embedBlock.embedType;
|
|
91036
91043
|
if (embedTypeHasImage(embedType)) {
|
|
91037
|
-
|
|
91038
|
-
|
|
91044
|
+
try {
|
|
91045
|
+
const blockObj = await getBlockObject(block, md5HexFunc, getTextsByBox);
|
|
91046
|
+
await dbg.addImagesBlockObject(block, blockObj, maxWidth);
|
|
91047
|
+
} catch (err) {
|
|
91048
|
+
console.error(err.message);
|
|
91049
|
+
}
|
|
91039
91050
|
} else if (block.embedType === "hr") {
|
|
91040
91051
|
dbg.addSeparatorBlock();
|
|
91041
91052
|
} else if (block.embedType === "video") {
|
|
@@ -92539,7 +92550,7 @@ ${data2.plantumlText}
|
|
|
92539
92550
|
}
|
|
92540
92551
|
}
|
|
92541
92552
|
});
|
|
92542
|
-
editor.version = "2.8.
|
|
92553
|
+
editor.version = "2.8.4";
|
|
92543
92554
|
return editor;
|
|
92544
92555
|
}
|
|
92545
92556
|
function isDoc(doc2) {
|
|
@@ -92652,7 +92663,7 @@ ${data2.plantumlText}
|
|
|
92652
92663
|
}
|
|
92653
92664
|
});
|
|
92654
92665
|
OnesEditorToolbar.register(editor);
|
|
92655
|
-
editor.version = "2.8.
|
|
92666
|
+
editor.version = "2.8.4";
|
|
92656
92667
|
return editor;
|
|
92657
92668
|
}
|
|
92658
92669
|
async function showDocVersions(editor, options, serverUrl) {
|