@innovastudio/contentbuilder 1.4.48 → 1.4.50

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.4.48",
4
+ "version": "1.4.50",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -18243,19 +18243,19 @@ class Grid {
18243
18243
  if (this.builder.useDefaultGrid) {
18244
18244
  let arrColumns = this.getAllColumns(cell);
18245
18245
 
18246
- for (let i = 1; i < arrColumns.length; i++) {
18247
- let cellNext = arrColumns[i]; // cellNext.style.width = '100%';
18248
-
18249
- cellNext.style.width = '';
18250
- cellNext.style.flex = '';
18251
- this.removeColClasses(cellNext);
18252
- }
18253
-
18254
18246
  if (arrColumns.length > 1 && arrColumns.length < 9) {
18255
18247
  this.builder.uo.saveForUndo();
18256
18248
  let w = this.resizeColumn(cell, true, arrColumns.length);
18257
18249
 
18258
18250
  if (w) {
18251
+ for (let i = 1; i < arrColumns.length; i++) {
18252
+ let cellNext = arrColumns[i]; // cellNext.style.width = '100%';
18253
+
18254
+ cellNext.style.width = '';
18255
+ cellNext.style.flex = '';
18256
+ this.removeColClasses(cellNext);
18257
+ }
18258
+
18259
18259
  cell.style.width = w;
18260
18260
  cell.style.flex = '0 0 auto';
18261
18261
  this.removeColClasses(cell);
@@ -18435,19 +18435,19 @@ class Grid {
18435
18435
  if (this.builder.useDefaultGrid) {
18436
18436
  let arrColumns = this.getAllColumns(cell);
18437
18437
 
18438
- for (let i = 1; i < arrColumns.length; i++) {
18439
- let cellNext = arrColumns[i]; // cellNext.style.width = '100%';
18440
-
18441
- cellNext.style.width = '';
18442
- cellNext.style.flex = '';
18443
- this.removeColClasses(cellNext);
18444
- }
18445
-
18446
18438
  if (arrColumns.length > 1 && arrColumns.length < 9) {
18447
18439
  this.builder.uo.saveForUndo();
18448
18440
  let w = this.resizeColumn(cell, false, arrColumns.length);
18449
18441
 
18450
18442
  if (w) {
18443
+ for (let i = 1; i < arrColumns.length; i++) {
18444
+ let cellNext = arrColumns[i]; // cellNext.style.width = '100%';
18445
+
18446
+ cellNext.style.width = '';
18447
+ cellNext.style.flex = '';
18448
+ this.removeColClasses(cellNext);
18449
+ }
18450
+
18451
18451
  cell.style.width = w;
18452
18452
  cell.style.flex = '0 0 auto';
18453
18453
  this.removeColClasses(cell);
@@ -77933,7 +77933,27 @@ class LivePreview {
77933
77933
  iframeDocument.body.appendChild(scriptElm);
77934
77934
  }
77935
77935
  }
77936
+ }); // Play Anim
77937
+
77938
+ elms = wrapper.querySelectorAll('.is-animated');
77939
+ elms.forEach(elm => {
77940
+ elm.style.opacity = '0';
77941
+ elm.style.transition = 'none';
77936
77942
  });
77943
+ setTimeout(() => {
77944
+ let elms = wrapper.querySelectorAll('.is-animated');
77945
+ elms.forEach(elm => {
77946
+ elm.classList.remove('is-inview');
77947
+ });
77948
+ setTimeout(() => {
77949
+ elms = wrapper.querySelectorAll('.is-animated');
77950
+ elms.forEach(elm => {
77951
+ elm.style.opacity = '';
77952
+ elm.style.transition = '';
77953
+ elm.classList.add('is-inview');
77954
+ });
77955
+ }, 30);
77956
+ }, 200);
77937
77957
  }
77938
77958
  }
77939
77959
  } else {