@burger-editor/client 4.0.0-alpha.43 → 4.0.0-alpha.44
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/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/package.json +6 -6
package/dist/client.js
CHANGED
|
@@ -4413,11 +4413,11 @@ class BurgerEditorEngine {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
async #createItemElement(itemData) {
|
|
4415
4415
|
if (typeof itemData !== 'string' && 'localName' in itemData) {
|
|
4416
|
-
Item$1.rebind(itemData, this.items, this.itemEditorDialog);
|
|
4417
|
-
return
|
|
4416
|
+
const item = Item$1.rebind(itemData, this.items, this.itemEditorDialog);
|
|
4417
|
+
return item.el;
|
|
4418
4418
|
}
|
|
4419
4419
|
const name = typeof itemData === 'string' ? itemData : itemData.name;
|
|
4420
|
-
const item = await Item$1.create(name, this.items, this.itemEditorDialog);
|
|
4420
|
+
const item = await Item$1.create(name, this.items, this.itemEditorDialog, typeof itemData === 'string' ? undefined : itemData.data);
|
|
4421
4421
|
return item.el;
|
|
4422
4422
|
}
|
|
4423
4423
|
#isUIName(name) {
|
|
@@ -44088,7 +44088,7 @@ function parseConfig(config) {
|
|
|
44088
44088
|
}
|
|
44089
44089
|
}
|
|
44090
44090
|
|
|
44091
|
-
const version = "4.0.0-alpha.
|
|
44091
|
+
const version = "4.0.0-alpha.43";
|
|
44092
44092
|
function attachDraftSwitcher(engine) {
|
|
44093
44093
|
if (engine.hasDraft()) {
|
|
44094
44094
|
const container = document.createElement("div");
|