@innovastudio/contentbox 1.6.163 → 1.6.165

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.163",
4
+ "version": "1.6.165",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "ws": "^8.13.0"
60
60
  },
61
61
  "dependencies": {
62
- "@innovastudio/contentbuilder": "^1.5.161",
62
+ "@innovastudio/contentbuilder": "^1.5.163",
63
63
  "js-beautify": "^1.14.0",
64
64
  "sortablejs": "^1.15.2"
65
65
  }
@@ -12326,7 +12326,7 @@ class SettingsUIGenerator$1 {
12326
12326
  const plugin = this.runtime.getPlugin(pluginName);
12327
12327
 
12328
12328
  if (!plugin || !plugin.settings) {
12329
- console.warn(`Plugin "${pluginName}" has no settings schema`);
12329
+ // console.warn(`Plugin "${pluginName}" has no settings schema`);
12330
12330
  return this.createEmptyForm();
12331
12331
  }
12332
12332
 
@@ -33054,6 +33054,9 @@ class Util$1 {
33054
33054
 
33055
33055
  //Trigger Render event
33056
33056
  this.builder.opts.onRender();
33057
+
33058
+ // Reinit after drag drop block
33059
+ if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
33057
33060
  }
33058
33061
  clearActiveCell() {
33059
33062
  // this.builder.lastActiveCol = this.cellSelected(); // get active cell before cleared (will be used by snippets dialog)
@@ -33705,6 +33708,7 @@ class Util$1 {
33705
33708
  // when column has just been deleted
33706
33709
  row = this.rowSelected();
33707
33710
  }
33711
+ if (!row) return;
33708
33712
  this.colTool = row.querySelector('.is-col-tool');
33709
33713
  if (!this.colTool) return; // when drag block as a new section
33710
33714
 
@@ -41531,7 +41535,7 @@ class HtmlUtil {
41531
41535
  });
41532
41536
  }
41533
41537
  }
41534
- applyHtml(modal) {
41538
+ async applyHtml(modal) {
41535
41539
  const util = this.builder.util;
41536
41540
  const cell = util.cellSelected();
41537
41541
  if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
@@ -41657,7 +41661,7 @@ class HtmlUtil {
41657
41661
  util.clearControls(); // NEW
41658
41662
 
41659
41663
  // Re-init plugins
41660
- if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
41664
+ if (this.builder.win.builderRuntime) await this.builder.win.builderRuntime.reinitialize();
41661
41665
  this.builder.hideModal(modal);
41662
41666
  }
41663
41667
  viewHtmlExternal() {
@@ -125052,6 +125056,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
125052
125056
 
125053
125057
  // After snippet has been added, re-apply behavior on builder areas
125054
125058
  this.applyBehaviorOn(builder);
125059
+
125060
+ // Reinit after drag drop block
125061
+ if (this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
125055
125062
  if (newRows.length > 0) {
125056
125063
  let newRow = newRows[0]; // get first added row
125057
125064
  if (newRow.children.length > 0) {
@@ -125124,8 +125131,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
125124
125131
  this.setZoomOnControl(builder);
125125
125132
 
125126
125133
  // Re-init plugins
125127
- if (this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
125134
+ // if(this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
125128
125135
  }
125136
+
125129
125137
  applySortableGrid() {
125130
125138
  if (this.iframe) {
125131
125139
  const oldCss = this.contentStuff.querySelector('#css-scale');
@@ -129537,6 +129545,9 @@ Please obtain a license at: https://innovastudio.com/contentbox`);
129537
129545
 
129538
129546
  // // Hide element tool
129539
129547
  // this.elmTool.hide();
129548
+
129549
+ // Reinit after drag drop block
129550
+ if (this.win.builderRuntime) this.win.builderRuntime.reinitialize();
129540
129551
  }
129541
129552
 
129542
129553
  // this.sortableOnPage.option('draggable', '.dummy');