@innovastudio/contentbuilder 1.5.160 → 1.5.161

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.160",
4
+ "version": "1.5.161",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -6159,15 +6159,16 @@ class Util {
6159
6159
  rtepop.style.display = '';
6160
6160
  dom.removeClass(rtepop, 'active');
6161
6161
  dom.removeClass(rtepop, 'deactive');
6162
- // dom.addClass(rtepop, 'deactive');
6163
6162
  });
6164
6163
  }
6165
-
6166
6164
  let pops = builderStuff.querySelectorAll('.is-pop');
6167
6165
  Array.prototype.forEach.call(pops, pop => {
6168
6166
  pop.style.display = '';
6169
6167
  dom.removeClass(pop, 'active');
6170
- pop.setAttribute('aria-hidden', true);
6168
+ this.builder.doc.body.focus();
6169
+ setTimeout(() => {
6170
+ pop.setAttribute('aria-hidden', true);
6171
+ }, 0);
6171
6172
  });
6172
6173
  this.builder.colTool.lockIndicator.style.display = '';
6173
6174
  if (this.builder.resize) {
@@ -15040,7 +15041,6 @@ class HtmlUtil {
15040
15041
 
15041
15042
  // Remove runtime-added attributes
15042
15043
  element.removeAttribute('data-cb-original-content');
15043
- element.removeAttribute('data-cb-loaded');
15044
15044
 
15045
15045
  // element.removeAttribute('data-cb-logo-loop-initialized');
15046
15046
 
@@ -15051,12 +15051,12 @@ class HtmlUtil {
15051
15051
  element.removeAttribute(name);
15052
15052
  }
15053
15053
  });
15054
- element.removeAttribute('data-cb-editmode');
15055
15054
 
15056
15055
  // Remove runtime-added classes
15057
15056
  const type = element.getAttribute('data-cb-type');
15058
15057
  element.classList.remove(`cb-${type}`);
15059
15058
  }
15059
+ element.removeAttribute('data-cb-loaded');
15060
15060
  });
15061
15061
  html = '';
15062
15062
  if (multiple) {
@@ -16398,6 +16398,9 @@ class Grid {
16398
16398
  cell.click(); //refresh active cell/row
16399
16399
  }, 30);
16400
16400
  this.builder.opts.onChange();
16401
+
16402
+ // Re-init plugins
16403
+ if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(cellElement);
16401
16404
  }
16402
16405
  removeColumn() {
16403
16406
  let util = this.util;
@@ -17171,6 +17174,9 @@ class Grid {
17171
17174
  builder.applyBehaviorOn(builderActive);
17172
17175
  this.rowTool.position(rowElement);
17173
17176
  this.builder.opts.onChange();
17177
+
17178
+ // Re-init plugins
17179
+ if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(rowElement);
17174
17180
  }
17175
17181
  }
17176
17182
  class RowTool$1 {
@@ -62880,6 +62886,9 @@ class ElementTool {
62880
62886
 
62881
62887
  //Trigger Change event
62882
62888
  this.builder.opts.onChange();
62889
+
62890
+ // Re-init plugins
62891
+ if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(newelm.parentNode);
62883
62892
  }, 100); //Timeout needed by Safari
62884
62893
  });
62885
62894
 
@@ -97939,6 +97948,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
97939
97948
 
97940
97949
  // Zoom
97941
97950
  this.setZoomOnControl(builder);
97951
+
97952
+ // Re-init plugins
97953
+ if (this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
97942
97954
  }
97943
97955
  applySortableGrid() {
97944
97956
  if (this.iframe) {