@ones-editor/editor 2.8.22 → 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/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>
|
|
@@ -85433,7 +85433,7 @@ ${data2.flowchartText}
|
|
|
85433
85433
|
async function initDrawIo(editor) {
|
|
85434
85434
|
var _a, _b;
|
|
85435
85435
|
const option = getDrawioOptions(editor);
|
|
85436
|
-
const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.
|
|
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
85438
|
await loadJsPromise(pakoUrl, "editor-pako");
|
|
85439
85439
|
await loadJsPromise(drawIoUrl, "editor-drawio");
|
|
@@ -93113,7 +93113,7 @@ ${data2.plantumlText}
|
|
|
93113
93113
|
}
|
|
93114
93114
|
}
|
|
93115
93115
|
});
|
|
93116
|
-
editor.version = "2.8.
|
|
93116
|
+
editor.version = "2.8.23";
|
|
93117
93117
|
return editor;
|
|
93118
93118
|
}
|
|
93119
93119
|
function isDoc(doc2) {
|
|
@@ -93226,7 +93226,7 @@ ${data2.plantumlText}
|
|
|
93226
93226
|
}
|
|
93227
93227
|
});
|
|
93228
93228
|
OnesEditorToolbar.register(editor);
|
|
93229
|
-
editor.version = "2.8.
|
|
93229
|
+
editor.version = "2.8.23";
|
|
93230
93230
|
return editor;
|
|
93231
93231
|
}
|
|
93232
93232
|
async function showDocVersions(editor, options, serverUrl) {
|