@innovastudio/contentbox 1.6.142 → 1.6.144

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.142",
4
+ "version": "1.6.144",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -10668,7 +10668,7 @@ class PanelText {
10668
10668
  <button title="${out('Color')}" class="btn-color is-btn-color"></button>
10669
10669
  </div>
10670
10670
  </div>
10671
- <div class="mr-8">
10671
+ <div class="mr-8 div-text-gradient-control">
10672
10672
  <div class="label mt-2">${out('Gradient')}:</div>
10673
10673
  <div class="group">
10674
10674
  <button title="${out('Gradient')}" class="btn-gradient is-btn-color"></button>
@@ -11116,6 +11116,14 @@ class PanelText {
11116
11116
  if (!activeElement) return;
11117
11117
  }
11118
11118
 
11119
+ const divTextGradient = this.panel.querySelector('.div-text-gradient-control');
11120
+
11121
+ if (activeElement.closest('[role="button"]')) {
11122
+ divTextGradient.style.display = 'none';
11123
+ } else {
11124
+ divTextGradient.style.display = '';
11125
+ }
11126
+
11119
11127
  const btnColorPick = this.panel.querySelector('.btn-color');
11120
11128
  let currentColor = this.text.getStyle(activeElement, 'color');
11121
11129
  btnColorPick.style.backgroundColor = currentColor;
@@ -152016,8 +152024,6 @@ ${currentHtml}
152016
152024
 
152017
152025
  chooseContext(list, num) {
152018
152026
  // random, but will be different from two previous results.
152019
- console.log(list);
152020
-
152021
152027
  if (typeof num !== 'undefined') {
152022
152028
  return list[num];
152023
152029
  }