@ones-editor/editor 2.8.21 → 2.8.23
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/core/src/core/index.d.ts +1 -0
- package/@ones-editor/core/src/core/patch.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/config/drawio.d.ts +1 -1
- package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8951,6 +8951,11 @@ var __publicField = (obj, key, value) => {
|
|
|
8951
8951
|
getCurrentLang
|
|
8952
8952
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8953
8953
|
const style$f = "";
|
|
8954
|
+
(function() {
|
|
8955
|
+
String.prototype.replaceAll || (String.prototype.replaceAll = function(e2, t2) {
|
|
8956
|
+
return Object.prototype.toString.call(e2).toLowerCase() === "[object regexp]" ? this.replace(e2, t2) : this.replace(new RegExp(e2, "g"), t2);
|
|
8957
|
+
});
|
|
8958
|
+
})();
|
|
8954
8959
|
class OnesEditorCustomDataWrapper {
|
|
8955
8960
|
constructor(editor, data2) {
|
|
8956
8961
|
this.editor = editor;
|
|
@@ -85006,7 +85011,7 @@ ${data2.flowchartText}
|
|
|
85006
85011
|
};
|
|
85007
85012
|
const drawioIframeUrl = "https://embed.diagrams.net/?embed=1";
|
|
85008
85013
|
const DrawioJsUrl = "https://www.draw.io/embed.js";
|
|
85009
|
-
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";
|
|
85010
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';
|
|
85011
85016
|
const DEFAULT_STYLES = `
|
|
85012
85017
|
<mxStylesheet>
|
|
@@ -85428,7 +85433,7 @@ ${data2.flowchartText}
|
|
|
85428
85433
|
async function initDrawIo(editor) {
|
|
85429
85434
|
var _a, _b;
|
|
85430
85435
|
const option = getDrawioOptions(editor);
|
|
85431
|
-
const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.
|
|
85436
|
+
const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.drawioJs) || DrawioJsUrl;
|
|
85432
85437
|
const pakoUrl = ((_b = option.cdn) == null ? void 0 : _b.pako) || PakoJsUrl;
|
|
85433
85438
|
await loadJsPromise(pakoUrl, "editor-pako");
|
|
85434
85439
|
await loadJsPromise(drawIoUrl, "editor-drawio");
|
|
@@ -93108,7 +93113,7 @@ ${data2.plantumlText}
|
|
|
93108
93113
|
}
|
|
93109
93114
|
}
|
|
93110
93115
|
});
|
|
93111
|
-
editor.version = "2.8.
|
|
93116
|
+
editor.version = "2.8.23";
|
|
93112
93117
|
return editor;
|
|
93113
93118
|
}
|
|
93114
93119
|
function isDoc(doc2) {
|
|
@@ -93221,7 +93226,7 @@ ${data2.plantumlText}
|
|
|
93221
93226
|
}
|
|
93222
93227
|
});
|
|
93223
93228
|
OnesEditorToolbar.register(editor);
|
|
93224
|
-
editor.version = "2.8.
|
|
93229
|
+
editor.version = "2.8.23";
|
|
93225
93230
|
return editor;
|
|
93226
93231
|
}
|
|
93227
93232
|
async function showDocVersions(editor, options, serverUrl) {
|