@innovastudio/contentbuilder 1.3.26 → 1.3.28
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 +1 -1
- package/public/contentbuilder/contentbuilder.css +29 -0
- package/public/contentbuilder/contentbuilder.esm.js +119 -2
- package/public/contentbuilder/contentbuilder.min.js +8 -8
- package/public/contentbuilder/themes/colored-blue.css +29 -0
- package/public/contentbuilder/themes/colored-blue2.css +29 -0
- package/public/contentbuilder/themes/colored-blue3.css +29 -0
- package/public/contentbuilder/themes/colored-blue4.css +29 -0
- package/public/contentbuilder/themes/colored-blue5.css +29 -0
- package/public/contentbuilder/themes/colored-blue6.css +29 -0
- package/public/contentbuilder/themes/colored-blue7.css +29 -0
- package/public/contentbuilder/themes/colored-blue8.css +29 -0
- package/public/contentbuilder/themes/colored-dark.css +29 -0
- package/public/contentbuilder/themes/colored-darkblue.css +29 -0
- package/public/contentbuilder/themes/colored-gray.css +29 -0
- package/public/contentbuilder/themes/colored-green.css +29 -0
- package/public/contentbuilder/themes/colored-green2.css +29 -0
- package/public/contentbuilder/themes/colored-green3.css +29 -0
- package/public/contentbuilder/themes/colored-green4.css +29 -0
- package/public/contentbuilder/themes/colored-green5.css +29 -0
- package/public/contentbuilder/themes/colored-magenta.css +29 -0
- package/public/contentbuilder/themes/colored-orange.css +29 -0
- package/public/contentbuilder/themes/colored-orange2.css +29 -0
- package/public/contentbuilder/themes/colored-orange3.css +29 -0
- package/public/contentbuilder/themes/colored-pink.css +29 -0
- package/public/contentbuilder/themes/colored-pink2.css +29 -0
- package/public/contentbuilder/themes/colored-pink3.css +29 -0
- package/public/contentbuilder/themes/colored-pink4.css +29 -0
- package/public/contentbuilder/themes/colored-purple.css +29 -0
- package/public/contentbuilder/themes/colored-purple2.css +29 -0
- package/public/contentbuilder/themes/colored-red.css +29 -0
- package/public/contentbuilder/themes/colored-red2.css +29 -0
- package/public/contentbuilder/themes/colored-red3.css +29 -0
- package/public/contentbuilder/themes/colored-red4.css +29 -0
- package/public/contentbuilder/themes/colored-red5.css +29 -0
- package/public/contentbuilder/themes/colored-yellow.css +29 -0
- package/public/contentbuilder/themes/colored-yellow2.css +29 -0
- package/public/contentbuilder/themes/dark-blue.css +28 -1
- package/public/contentbuilder/themes/dark-blue2.css +28 -1
- package/public/contentbuilder/themes/dark-blue3.css +28 -1
- package/public/contentbuilder/themes/dark-gray.css +28 -1
- package/public/contentbuilder/themes/dark-pink.css +28 -1
- package/public/contentbuilder/themes/dark-purple.css +28 -1
- package/public/contentbuilder/themes/dark-red.css +28 -1
- package/public/contentbuilder/themes/dark.css +29 -0
- package/public/contentbuilder/themes/light-blue.css +29 -0
- package/public/contentbuilder/themes/light-blue2.css +29 -0
- package/public/contentbuilder/themes/light-blue3.css +29 -0
- package/public/contentbuilder/themes/light-cyan.css +29 -0
- package/public/contentbuilder/themes/light-gray.css +29 -0
- package/public/contentbuilder/themes/light-gray2.css +29 -0
- package/public/contentbuilder/themes/light-gray3.css +29 -0
- package/public/contentbuilder/themes/light-green.css +29 -0
- package/public/contentbuilder/themes/light-pink.css +29 -0
- package/public/contentbuilder/themes/light-pink2.css +29 -0
- package/public/contentbuilder/themes/light-purple.css +29 -0
- package/public/contentbuilder/themes/light-purple2.css +29 -0
- package/public/contentbuilder/themes/light-red.css +29 -0
- package/public/contentbuilder/themes/light-yellow.css +29 -0
- package/public/contentbuilder/themes/light-yellow2.css +29 -0
- package/readme.txt +1 -1
package/package.json
CHANGED
|
@@ -355,6 +355,35 @@ button:focus-visible {
|
|
|
355
355
|
.is-ui .style-helper-button-classic svg {
|
|
356
356
|
fill: #000;
|
|
357
357
|
}
|
|
358
|
+
#_cbhtml .is-area color,
|
|
359
|
+
.is-ui .is-area color {
|
|
360
|
+
background: #000 !important;
|
|
361
|
+
}
|
|
362
|
+
#_cbhtml .is-area background,
|
|
363
|
+
.is-ui .is-area background {
|
|
364
|
+
background: #fff !important;
|
|
365
|
+
}
|
|
366
|
+
#_cbhtml .is-area button,
|
|
367
|
+
.is-ui .is-area button {
|
|
368
|
+
color: #000 !important;
|
|
369
|
+
}
|
|
370
|
+
#_cbhtml .is-area button svg,
|
|
371
|
+
.is-ui .is-area button svg {
|
|
372
|
+
fill: #000 !important;
|
|
373
|
+
}
|
|
374
|
+
#_cbhtml .is-area-2nd,
|
|
375
|
+
.is-ui .is-area-2nd {
|
|
376
|
+
color: #000 !important;
|
|
377
|
+
background: #fff !important;
|
|
378
|
+
}
|
|
379
|
+
#_cbhtml .is-area-2nd button,
|
|
380
|
+
.is-ui .is-area-2nd button {
|
|
381
|
+
color: #000 !important;
|
|
382
|
+
}
|
|
383
|
+
#_cbhtml .is-area-2nd button svg,
|
|
384
|
+
.is-ui .is-area-2nd button svg {
|
|
385
|
+
fill: #000 !important;
|
|
386
|
+
}
|
|
358
387
|
#_cbhtml .is-pop,
|
|
359
388
|
.is-ui .is-pop {
|
|
360
389
|
display: none;
|
|
@@ -5827,6 +5827,124 @@ class Util {
|
|
|
5827
5827
|
}
|
|
5828
5828
|
|
|
5829
5829
|
getUIStyles() {
|
|
5830
|
+
const dom = this.dom;
|
|
5831
|
+
const html = `
|
|
5832
|
+
<input type="text" class="style-helper-input" style="display:none;">
|
|
5833
|
+
<label class="style-helper-label" style="display:none;"></label>
|
|
5834
|
+
<button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5835
|
+
<select class="style-helper-select" style="display:none;"><option value=""></option></select>
|
|
5836
|
+
|
|
5837
|
+
<div class="style-helper modal-color"></div>
|
|
5838
|
+
<div class="style-helper modal-background"></div>
|
|
5839
|
+
<div class="style-helper button-pickcolor-border"></div>
|
|
5840
|
+
<div class="style-helper button-pickcolor-background"></div>
|
|
5841
|
+
|
|
5842
|
+
<button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5843
|
+
<div class="style-helper base on"></div>
|
|
5844
|
+
<div class="style-helper base hover"></div>
|
|
5845
|
+
|
|
5846
|
+
<div class="style-helper snippet-color"></div>
|
|
5847
|
+
<div class="style-helper snippet-background"></div>
|
|
5848
|
+
<div class="style-helper snippet-tabs-background"></div>
|
|
5849
|
+
<div class="style-helper snippet-tab-item-background"></div>
|
|
5850
|
+
<div class="style-helper snippet-tab-item-background-active"></div>
|
|
5851
|
+
<div class="style-helper snippet-tab-item-background-hover"></div>
|
|
5852
|
+
<div class="style-helper snippet-tab-item-color"></div>
|
|
5853
|
+
|
|
5854
|
+
<div class="style-helper snippet-more-item-background"></div>
|
|
5855
|
+
<div class="style-helper snippet-more-item-background-active"></div>
|
|
5856
|
+
<div class="style-helper snippet-more-item-background-hover"></div>
|
|
5857
|
+
<div class="style-helper snippet-more-item-color"></div>
|
|
5858
|
+
|
|
5859
|
+
<div class="style-helper tabs-background"></div>
|
|
5860
|
+
<div class="style-helper tab-item-active-border-bottom"></div>
|
|
5861
|
+
<div class="style-helper tab-item-color"></div>
|
|
5862
|
+
<div class="style-helper tabs-more-background"></div>
|
|
5863
|
+
<div class="style-helper tabs-more-border"></div>
|
|
5864
|
+
<div class="style-helper tabs-more-item-color"></div>
|
|
5865
|
+
<div class="style-helper tabs-more-item-background-hover"></div>
|
|
5866
|
+
<div class="style-helper separator-color"></div>
|
|
5867
|
+
<div class="style-helper outline-color"></div>
|
|
5868
|
+
`;
|
|
5869
|
+
dom.appendHtml(this.builder.builderStuff, html); // new method
|
|
5870
|
+
|
|
5871
|
+
const getVal = (selector, rule) => {
|
|
5872
|
+
const stuff = this.builder.builderStuff.querySelector('.style-helper' + selector);
|
|
5873
|
+
return window.getComputedStyle(stuff, null).getPropertyValue(rule);
|
|
5874
|
+
};
|
|
5875
|
+
|
|
5876
|
+
const getSvgFill = () => {
|
|
5877
|
+
const btn = this.builder.builderStuff.querySelector('.style-helper.base');
|
|
5878
|
+
return window.getComputedStyle(btn.querySelector('svg'), null).getPropertyValue('fill');
|
|
5879
|
+
};
|
|
5880
|
+
|
|
5881
|
+
const inp = this.builder.builderStuff.querySelector('.style-helper-input');
|
|
5882
|
+
const lbl = this.builder.builderStuff.querySelector('.style-helper-label');
|
|
5883
|
+
const sel = this.builder.builderStuff.querySelector('.style-helper-select');
|
|
5884
|
+
const btnClassic = this.builder.builderStuff.querySelector('.style-helper-button-classic');
|
|
5885
|
+
this.builder.styleModalColor = getVal('.modal-color', 'background-color');
|
|
5886
|
+
this.builder.styleModalBackground = getVal('.modal-background', 'background-color');
|
|
5887
|
+
this.builder.styleButtonPickColorBorder = getVal('.button-pickcolor-border', 'border');
|
|
5888
|
+
this.builder.styleButtonPickColorBackground = getVal('.button-pickcolor-background', 'background-color');
|
|
5889
|
+
this.builder.styleToolBackground = getVal('.base', 'background-color');
|
|
5890
|
+
this.builder.styleButtonColor = getVal('.base', 'color');
|
|
5891
|
+
this.builder.styleButtonSvgFill = getSvgFill(); // this.builder.styleButtonBackgroundOn = getVal('.base.on', 'background-color');
|
|
5892
|
+
|
|
5893
|
+
this.builder.styleButtonBackgroundHover = getVal('.base.hover', 'background-color');
|
|
5894
|
+
this.builder.styleSnippetColor = getVal('.snippet-color', 'background-color');
|
|
5895
|
+
this.builder.styleSnippetBackground = getVal('.snippet-background', 'background-color');
|
|
5896
|
+
this.builder.styleSnippetTabsBackground = getVal('.snippet-tabs-background', 'background-color');
|
|
5897
|
+
this.builder.styleSnippetTabItemBackground = getVal('.snippet-tab-item-background', 'background-color');
|
|
5898
|
+
this.builder.styleSnippetTabItemBackgroundActive = getVal('.snippet-tab-item-background-active', 'background-color');
|
|
5899
|
+
this.builder.styleSnippetTabItemBackgroundHover = getVal('.snippet-tab-item-background-hover', 'background-color');
|
|
5900
|
+
this.builder.styleSnippetTabItemColor = getVal('.snippet-tab-item-color', 'background-color');
|
|
5901
|
+
this.builder.styleSnippetMoreItemBackground = getVal('.snippet-more-item-background', 'background-color');
|
|
5902
|
+
this.builder.styleSnippetMoreItemBackgroundActive = getVal('.snippet-more-item-background-active', 'background-color');
|
|
5903
|
+
this.builder.styleSnippetMoreItemBackgroundHover = getVal('.snippet-more-item-background-hover', 'background-color');
|
|
5904
|
+
this.builder.styleSnippetMoreItemColor = getVal('.snippet-more-item-color', 'background-color'); // Normal Tabs (ex. used in 'Symbol' plugin)
|
|
5905
|
+
|
|
5906
|
+
this.builder.styleTabsBackground = getVal('.tabs-background', 'background-color');
|
|
5907
|
+
this.builder.styleTabItemBorderBottomActive = getVal('.tab-item-active-border-bottom', 'border');
|
|
5908
|
+
this.builder.styleTabItemColor = getVal('.tab-item-color', 'background-color');
|
|
5909
|
+
this.builder.styleTabsMoreBackground = getVal('.tabs-more-background', 'background-color');
|
|
5910
|
+
this.builder.styleTabsMoreBorder = getVal('.tabs-more-border', 'border');
|
|
5911
|
+
this.builder.styleTabsMoreItemColor = getVal('.tabs-more-item-color', 'background-color');
|
|
5912
|
+
this.builder.styleTabsMoreBackgroundHover = getVal('.tabs-more-item-background-hover', 'background-color');
|
|
5913
|
+
this.builder.styleSeparatorColor = getVal('.separator-color', 'background-color');
|
|
5914
|
+
this.builder.styleOutlineColor = getVal('.outline-color', 'background-color'); // Select (ex. used in 'Button Editor' plugin, 'Slider' plugin, 'Slider Content' plugin)
|
|
5915
|
+
|
|
5916
|
+
this.builder.styleSelectBackground = window.getComputedStyle(sel, null).getPropertyValue('background-color');
|
|
5917
|
+
this.builder.styleSelectColor = window.getComputedStyle(sel, null).getPropertyValue('color');
|
|
5918
|
+
this.builder.styleSelectOptionBackground = window.getComputedStyle(sel.querySelector('option'), null).getPropertyValue('background-color'); // Input (ex. used in 'Search & Replace' plugin)
|
|
5919
|
+
|
|
5920
|
+
this.builder.styleInputBackground = window.getComputedStyle(inp, null).getPropertyValue('background-color');
|
|
5921
|
+
this.builder.styleInputBorderBottom = window.getComputedStyle(inp, null).getPropertyValue('border-bottom');
|
|
5922
|
+
this.builder.styleInputColor = window.getComputedStyle(inp, null).getPropertyValue('color'); // Label (ex. used in 'Search & Replace' plugin)
|
|
5923
|
+
|
|
5924
|
+
this.builder.styleLabelColor = window.getComputedStyle(lbl, null).getPropertyValue('color'); // Button Classic (ex. used in 'Search & Replace' plugin)
|
|
5925
|
+
|
|
5926
|
+
this.builder.styleButtonClassicBackground = window.getComputedStyle(btnClassic, null).getPropertyValue('background-color');
|
|
5927
|
+
this.builder.styleButtonClassicColor = window.getComputedStyle(btnClassic, null).getPropertyValue('color');
|
|
5928
|
+
this.builder.styleButtonClassicBackgroundHover = this.getUIStyleValue(btnClassic, 'hover', 'background-color');
|
|
5929
|
+
this.builder.styleDark = false;
|
|
5930
|
+
this.builder.styleColored = false;
|
|
5931
|
+
this.builder.styleColoredDark = false;
|
|
5932
|
+
this.builder.styleLight = false;
|
|
5933
|
+
|
|
5934
|
+
if (document.body.getAttribute('class')) {
|
|
5935
|
+
if (document.body.getAttribute('class').indexOf('colored-dark') !== -1) {
|
|
5936
|
+
this.builder.styleColoredDark = true;
|
|
5937
|
+
} else if (document.body.getAttribute('class').indexOf('dark') !== -1) {
|
|
5938
|
+
this.builder.styleDark = true;
|
|
5939
|
+
} else if (document.body.getAttribute('class').indexOf('colored') !== -1) {
|
|
5940
|
+
this.builder.styleColored = true;
|
|
5941
|
+
} else if (document.body.getAttribute('class').indexOf('light') !== -1) {
|
|
5942
|
+
this.builder.styleLight = true;
|
|
5943
|
+
}
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5947
|
+
getUIStyles_OLD() {
|
|
5830
5948
|
const dom = this.dom;
|
|
5831
5949
|
const html = `<button class="style-helper"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5832
5950
|
<input type="text" class="style-helper-input" style="display:none;">
|
|
@@ -6260,7 +6378,6 @@ class Util {
|
|
|
6260
6378
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Nunito, sans-serif" data-font-style="200,200i,600,600i,700,700i,800,800i,900,900i"><div></div><img src="${font_nunito}"></div>
|
|
6261
6379
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Old Standard TT, serif" data-font-style="400,400i,700"><div></div><img src="${font_old_standard_tt}"></div>
|
|
6262
6380
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans, sans-serif" data-font-style="300,400,600,800"><div></div><img src="${font_open_sans}"></div>
|
|
6263
|
-
<li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans Condensed, sans-serif" data-font-style="300,300i,700"><div></div><img src="${font_open_sans_condensed}"></div>
|
|
6264
6381
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oranienbaum, serif"><div></div><img src="${font_oranienbaum}"></div>
|
|
6265
6382
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oswald, sans-serif" data-font-style="300,400,700"><div></div><img src="${font_oswald}"></div>
|
|
6266
6383
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oxygen, sans-serif" data-font-style="300,700"><div></div><img src="${font_oxygen}"></div>
|
|
@@ -6482,7 +6599,6 @@ class Util {
|
|
|
6482
6599
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Nunito, sans-serif" data-font-style="200,200i,600,600i,700,700i,800,800i,900,900i"><div></div><img src="${path}nunito.png"></li>
|
|
6483
6600
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Old Standard TT, serif" data-font-style="400,400i,700"><div></div><img src="${path}old_standard_tt.png"></li>
|
|
6484
6601
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans, sans-serif" data-font-style="300,400,600,800"><div></div><img src="${path}open_sans.png"></li>
|
|
6485
|
-
<li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans Condensed, sans-serif" data-font-style="300,300i,700"><div></div><img src="${path}open_sans_condensed.png"></li>
|
|
6486
6602
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oranienbaum, serif"><div></div><img src="${path}oranienbaum.png"></li>
|
|
6487
6603
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oswald, sans-serif" data-font-style="300,400,700"><div></div><img src="${path}oswald.png"></li>
|
|
6488
6604
|
<li role="option" tabindex="0" data-provider="google" data-font-family="Oxygen, sans-serif" data-font-style="300,700"><div></div><img src="${path}oxygen.png"></li>
|
|
@@ -76500,6 +76616,7 @@ class ContentBuilder {
|
|
|
76500
76616
|
}
|
|
76501
76617
|
|
|
76502
76618
|
setUIColorRefresh() {
|
|
76619
|
+
// All related with iframe style
|
|
76503
76620
|
const util = this.util;
|
|
76504
76621
|
|
|
76505
76622
|
if (!this.rte || !this.element) {
|