@ones-editor/editor 2.2.14-beta.3 → 2.2.14-beta.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 +13 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47301,9 +47301,8 @@ ${codeText}
|
|
|
47301
47301
|
if (((_b = (_a = getBlockClass(this.editor, block)).notify) == null ? void 0 : _b.call(_a, this.editor, "resize", { block, rect })) === true) {
|
|
47302
47302
|
return;
|
|
47303
47303
|
}
|
|
47304
|
-
const
|
|
47305
|
-
const
|
|
47306
|
-
const maxHeight = Number.parseInt(computedStyle.maxHeight, 10) || Infinity;
|
|
47304
|
+
const minHeight = Number.parseInt(block.getAttribute("data-min-height") || "", 10) || 100;
|
|
47305
|
+
const maxHeight = Number.parseInt(block.getAttribute("data-max-height") || "", 10) || Infinity;
|
|
47307
47306
|
const height = Math.max(minHeight, Math.min(maxHeight, rect.height));
|
|
47308
47307
|
const oldData = this.editor.getBlockData(block);
|
|
47309
47308
|
const oldEmbedData = oldData.embedData;
|
|
@@ -47353,10 +47352,14 @@ ${codeText}
|
|
|
47353
47352
|
static register(editor, block, options = {}) {
|
|
47354
47353
|
addClass(block, "resizable");
|
|
47355
47354
|
if (options.maxHeight) {
|
|
47356
|
-
block
|
|
47355
|
+
setAttributes(block, {
|
|
47356
|
+
"data-max-height": options.maxHeight.toString()
|
|
47357
|
+
});
|
|
47357
47358
|
}
|
|
47358
47359
|
if (options.minHeight) {
|
|
47359
|
-
block
|
|
47360
|
+
setAttributes(block, {
|
|
47361
|
+
"data-min-height": options.minHeight.toString()
|
|
47362
|
+
});
|
|
47360
47363
|
}
|
|
47361
47364
|
return editor.addCustom("EmbedBlockResizer", () => new EmbedBlockResizer(editor));
|
|
47362
47365
|
}
|
|
@@ -81318,6 +81321,7 @@ ${content}
|
|
|
81318
81321
|
if (this.status === "error") {
|
|
81319
81322
|
return;
|
|
81320
81323
|
}
|
|
81324
|
+
this.parent.attributes.removeNamedItem("data-src");
|
|
81321
81325
|
this.parent.innerHTML = "";
|
|
81322
81326
|
this.setStatus("error");
|
|
81323
81327
|
const errorContent = createElement("div", ["graph-default-content"], this.parent);
|
|
@@ -81344,6 +81348,7 @@ ${content}
|
|
|
81344
81348
|
return;
|
|
81345
81349
|
}
|
|
81346
81350
|
this.parent.innerHTML = "";
|
|
81351
|
+
this.parent.attributes.removeNamedItem("data-src");
|
|
81347
81352
|
this.setStatus("empty");
|
|
81348
81353
|
const errorContent = createElement("div", ["graph-default-content"], this.parent);
|
|
81349
81354
|
const brandIcon = createElement("div", ["graph-brand-icon"], errorContent);
|
|
@@ -81365,6 +81370,7 @@ ${content}
|
|
|
81365
81370
|
this.image = createElement("img", [IMAGE_CLASS_NAME], this.parent);
|
|
81366
81371
|
this.bindImage();
|
|
81367
81372
|
}
|
|
81373
|
+
setAttributes(this.parent, { "data-src": src });
|
|
81368
81374
|
this.image.src = src;
|
|
81369
81375
|
}
|
|
81370
81376
|
destroy() {
|
|
@@ -88767,7 +88773,7 @@ ${data2.plantumlText}
|
|
|
88767
88773
|
}
|
|
88768
88774
|
}
|
|
88769
88775
|
});
|
|
88770
|
-
editor.version = "2.2.14-beta.
|
|
88776
|
+
editor.version = "2.2.14-beta.4";
|
|
88771
88777
|
return editor;
|
|
88772
88778
|
}
|
|
88773
88779
|
function isDoc(doc2) {
|
|
@@ -88864,7 +88870,7 @@ ${data2.plantumlText}
|
|
|
88864
88870
|
});
|
|
88865
88871
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88866
88872
|
OnesEditorToolbar.register(editor);
|
|
88867
|
-
editor.version = "2.2.14-beta.
|
|
88873
|
+
editor.version = "2.2.14-beta.4";
|
|
88868
88874
|
return editor;
|
|
88869
88875
|
}
|
|
88870
88876
|
async function showDocVersions(editor, options, serverUrl) {
|