@innovastudio/contentbuilder 1.0.66 → 1.0.70

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.0.66",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -11059,14 +11059,16 @@ const renderQuickAdd = builder => {
11059
11059
  elm = quickadd.querySelector('.add-button');
11060
11060
  if (elm) dom$B.addEventListener(elm, 'click', () => {
11061
11061
  const mode = quickadd.getAttribute('data-mode');
11062
- const html = '<a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a>';
11062
+ const html = '<div><a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a></div>';
11063
11063
  util.addContent(html, mode);
11064
11064
  });
11065
11065
  elm = quickadd.querySelector('.add-twobutton');
11066
11066
  if (elm) dom$B.addEventListener(elm, 'click', () => {
11067
11067
  const mode = quickadd.getAttribute('data-mode');
11068
- const html = `<a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a> &nbsp;
11069
- <a href="#" style="display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgba(0, 0, 0, 0); border-color: rgb(53, 53, 53); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: 3px; color: rgb(53, 53, 53);">Get Started</a>`;
11068
+ const html = `<div>
11069
+ <a href="#" style="margin-top: ;margin-right: ;margin-bottom: ;margin-left: ;display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgb(220, 220, 220); color: rgb(0, 0, 0); border-color: rgb(220, 220, 220); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: 3px;">Read More</a> &nbsp;
11070
+ <a href="#" style="display: inline-block; text-decoration: none; transition: all 0.16s ease 0s; border-style: solid; cursor: pointer; background-color: rgba(0, 0, 0, 0); border-color: rgb(53, 53, 53); border-width: 2px; border-radius: 0px; padding: 13px 28px; line-height: 21px; text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: 3px; color: rgb(53, 53, 53);">Get Started</a>
11071
+ </div>`;
11070
11072
  util.addContent(html, mode);
11071
11073
  });
11072
11074
  elm = quickadd.querySelector('.add-spacer');
@@ -52226,6 +52228,9 @@ class Preferences {
52226
52228
  }
52227
52229
  }
52228
52230
  }
52231
+ } else {
52232
+ this.builder.setUIColor('', '');
52233
+ this.builder.renderIframeLater = true;
52229
52234
  }
52230
52235
 
52231
52236
  if (!this.builder.renderIframeLater) {
@@ -52945,8 +52950,9 @@ class Rte {
52945
52950
  <button title="96px" data-value="96">96</button>
52946
52951
 
52947
52952
  <button title="120px" data-value="120">120</button>
52948
- <button title="160px" data-value="160">160</button>
52953
+ <!--<button title="160px" data-value="160">160</button>-->
52949
52954
  <button title="200px" data-value="200">200</button>
52955
+ <button title="300px" data-value="300">300</button>
52950
52956
 
52951
52957
  <button title="${util.out('Decrease')}" data-value="-" style="font-size:13px">-</button>
52952
52958
  <button title="${util.out('Increase')}" data-value="+" style="font-size:13px">+</button>
@@ -57663,7 +57669,7 @@ class ContentBuilder {
57663
57669
  clearPreferences: false,
57664
57670
  toolbarAddSnippetButton: false,
57665
57671
  animateModal: true,
57666
- fontSizeClassValues: [12, 14, 16, 18, 21, 24, 28, 32, 35, 38, 42, 46, 48, 50, 54, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220],
57672
+ fontSizeClassValues: [12, 14, 16, 18, 21, 24, 28, 32, 35, 38, 42, 46, 48, 50, 54, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220, 224, 228, 232, 236, 240, 244, 248, 252, 256, 260, 264, 268, 272, 276, 280, 284, 288, 292, 296, 300, 304, 308, 312, 316, 320, 324, 328, 332, 336, 340, 344, 348, 352, 356, 360, 364, 368, 372, 376, 380, 384, 388, 392, 396, 400],
57667
57673
 
57668
57674
  /* If not empty, applying font size will apply class: size-12, size-14, and so on. All responsive, defined in content.css */
57669
57675
  gradientcolors: [['linear-gradient(0deg, rgb(255, 57, 25), rgb(249, 168, 37))'], ['linear-gradient(0deg, rgb(255, 57, 25), rgb(255, 104, 15))'], ['linear-gradient(0deg, #FF5722, #FF9800)'], ['linear-gradient(0deg, #613ca2, rgb(110, 123, 217))'], ['linear-gradient(0deg, rgb(65, 70, 206), rgb(236, 78, 130))'], ['linear-gradient(0deg, rgb(0, 150, 102), rgb(90, 103, 197))'], ['linear-gradient(30deg, rgb(249, 119, 148), rgb(98, 58, 162))'], ['linear-gradient(0deg, rgb(223, 70, 137), rgb(90, 103, 197))'], ['linear-gradient(0deg, rgb(40, 53, 147), rgb(90, 103, 197))'], ['linear-gradient(0deg, rgb(21, 101, 192), rgb(52, 169, 239))'], ['linear-gradient(0deg, rgb(32, 149, 219), rgb(139, 109, 230))'], ['linear-gradient(0deg, rgb(90, 103, 197), rgb(0, 184, 201))'], ['linear-gradient(0deg, rgb(0, 184, 201), rgb(253, 187, 45))'], ['linear-gradient(0deg, rgb(255, 208, 100), rgb(239, 98, 159))'], ['linear-gradient(0deg, rgb(0, 214, 223), rgb(130, 162, 253))'], ['linear-gradient(0deg, rgb(50, 234, 251), rgb(248, 247, 126))'], ['linear-gradient(0deg, rgb(141, 221, 255), rgb(255, 227, 255))'], ['linear-gradient(0deg, rgb(255, 170, 170), rgb(255, 255, 200))'], ['linear-gradient(0deg, rgb(239, 239, 239), rgb(252, 252, 252))']],
@@ -59467,10 +59473,15 @@ class ContentBuilder {
59467
59473
  } // Css loaded. Now we can get UI styles.
59468
59474
 
59469
59475
 
59470
- const util = this.util;
59471
- util.getUIStyles();
59472
- this.setUIColorRefresh();
59473
- if (this.opts.onThemeChange) this.opts.onThemeChange();
59476
+ const util = this.util; // util.getUIStyles();
59477
+ // this.setUIColorRefresh();
59478
+ // if(this.opts.onThemeChange) this.opts.onThemeChange();
59479
+
59480
+ setTimeout(() => {
59481
+ util.getUIStyles();
59482
+ this.setUIColorRefresh();
59483
+ if (this.opts.onThemeChange) this.opts.onThemeChange();
59484
+ }, 300);
59474
59485
  });
59475
59486
  document.head.appendChild(link);
59476
59487
  } else {
@@ -59486,10 +59497,15 @@ class ContentBuilder {
59486
59497
  } // Css loaded. Now we can get UI styles.
59487
59498
 
59488
59499
 
59489
- const util = this.util;
59490
- util.getUIStyles();
59491
- this.setUIColorRefresh();
59492
- if (this.opts.onThemeChange) this.opts.onThemeChange();
59500
+ const util = this.util; // util.getUIStyles();
59501
+ // this.setUIColorRefresh();
59502
+ // if(this.opts.onThemeChange) this.opts.onThemeChange();
59503
+
59504
+ setTimeout(() => {
59505
+ util.getUIStyles();
59506
+ this.setUIColorRefresh();
59507
+ if (this.opts.onThemeChange) this.opts.onThemeChange();
59508
+ }, 1000);
59493
59509
  }
59494
59510
  }
59495
59511