@ones-editor/editor 1.1.16-beta.17 → 1.1.16-beta.18
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
|
@@ -64971,6 +64971,11 @@ ${codeText}
|
|
|
64971
64971
|
return checkBlocks.every((b) => isEmptyTextBlock2(b));
|
|
64972
64972
|
}
|
|
64973
64973
|
function autoShowHideTemplates(editor, options) {
|
|
64974
|
+
var _a, _b;
|
|
64975
|
+
const templateOptions = (_a = editor.options.componentsOptions) == null ? void 0 : _a.templates;
|
|
64976
|
+
if ((_b = templateOptions == null ? void 0 : templateOptions.onBeforeTemplateShowHide) == null ? void 0 : _b.call(templateOptions, editor)) {
|
|
64977
|
+
return;
|
|
64978
|
+
}
|
|
64974
64979
|
if (isEmptyDocForAddingTemplate(editor, editor.doc.toJSON())) {
|
|
64975
64980
|
showTemplates(editor, options);
|
|
64976
64981
|
} else {
|
|
@@ -75360,7 +75365,7 @@ ${data.flowchartText}
|
|
|
75360
75365
|
}
|
|
75361
75366
|
}
|
|
75362
75367
|
});
|
|
75363
|
-
editor.version = "1.1.16-beta.
|
|
75368
|
+
editor.version = "1.1.16-beta.18";
|
|
75364
75369
|
return editor;
|
|
75365
75370
|
}
|
|
75366
75371
|
function isDoc(doc2) {
|
|
@@ -75442,7 +75447,7 @@ ${data.flowchartText}
|
|
|
75442
75447
|
});
|
|
75443
75448
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
75444
75449
|
OnesEditorToolbar.register(editor);
|
|
75445
|
-
editor.version = "1.1.16-beta.
|
|
75450
|
+
editor.version = "1.1.16-beta.18";
|
|
75446
75451
|
return editor;
|
|
75447
75452
|
}
|
|
75448
75453
|
async function showDocVersions(editor, options, serverUrl) {
|