@innovastudio/contentbox 1.2.35 → 1.2.38

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/contentbox",
3
- "version": "1.2.35",
3
+ "version": "1.2.38",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.1.26",
49
+ "@innovastudio/contentbuilder": "^1.1.29",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -58676,8 +58676,6 @@ class ButtonEditor {
58676
58676
  this.getVisibleBgColor(item, color => {
58677
58677
  btnBgColor.style.backgroundColor = color;
58678
58678
  activeButton.setAttribute('data-bg', color); //new inline
58679
-
58680
- activeButton.style.backgroundColor = color; //new inline
58681
58679
  });
58682
58680
  }
58683
58681
 
@@ -58685,7 +58683,6 @@ class ButtonEditor {
58685
58683
  this.getVisibleTextColor(item, color => {
58686
58684
  btnTextColor.style.backgroundColor = color;
58687
58685
  currColor = color;
58688
- activeButton.style.color = color; //new inline
58689
58686
  });
58690
58687
  }
58691
58688
  });
@@ -58698,7 +58695,8 @@ class ButtonEditor {
58698
58695
  } // NEW: inline color
58699
58696
 
58700
58697
 
58701
- if (activeButton.style.backgroundColor) btnBgColor.style.backgroundColor = activeButton.style.backgroundColor;
58698
+ if (activeButton.style.backgroundColor) btnBgColor.style.backgroundColor = activeButton.getAttribute('data-bg'); //activeButton.style.backgroundColor;
58699
+
58702
58700
  if (activeButton.getAttribute('data-hover-bg')) btnHoverBgColor.style.backgroundColor = activeButton.getAttribute('data-hover-bg');
58703
58701
  if (activeButton.style.color) btnTextColor.style.backgroundColor = activeButton.style.color;
58704
58702
  let btn;
@@ -59015,6 +59013,8 @@ class ButtonEditor {
59015
59013
  link.removeAttribute('data-hover-bgcolor');
59016
59014
  link.removeAttribute('data-hover-color');
59017
59015
  link.removeAttribute('data-hover-bordercolor');
59016
+ link.setAttribute('onmouseover', 'if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');');
59017
+ link.setAttribute('onmouseout', 'if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\'');
59018
59018
  }
59019
59019
 
59020
59020
  cleanupOldClasses(link) {
@@ -83683,8 +83683,12 @@ class ContentBox {
83683
83683
  maxColumns: 6,
83684
83684
  maxEmbedImageWidth: this.settings.maxEmbedImageWidth,
83685
83685
  slider: this.settings.slider,
83686
- onRender: this.settings.onRender,
83687
- onChange: this.settings.onChange,
83686
+ onRender: () => {
83687
+ this.settings.onRender();
83688
+ },
83689
+ onChange: () => {
83690
+ this.settings.onChange();
83691
+ },
83688
83692
  onRefreshTool: () => {
83689
83693
  setTimeout(() => {
83690
83694
  this.quickPosTool();