@innovastudio/contentbox 1.6.11 → 1.6.13
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.13",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"ws": "^8.13.0"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@innovastudio/contentbuilder": "^1.4.
|
55
|
+
"@innovastudio/contentbuilder": "^1.4.136",
|
56
56
|
"js-beautify": "^1.14.0"
|
57
57
|
}
|
58
58
|
}
|
@@ -22799,7 +22799,6 @@ class Util$1 {
|
|
22799
22799
|
const dom = this.dom;
|
22800
22800
|
const html = `
|
22801
22801
|
<input type="text" class="style-helper-input" style="display:none;">
|
22802
|
-
<label class="style-helper-label" style="display:none;"></label>
|
22803
22802
|
<button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
22804
22803
|
<select class="style-helper-select" style="display:none;"><option value=""></option></select>
|
22805
22804
|
|
@@ -22847,7 +22846,6 @@ class Util$1 {
|
|
22847
22846
|
return window.getComputedStyle(btn.querySelector('svg'), null).getPropertyValue('fill');
|
22848
22847
|
};
|
22849
22848
|
const inp = this.builder.builderStuff.querySelector('.style-helper-input');
|
22850
|
-
const lbl = this.builder.builderStuff.querySelector('.style-helper-label');
|
22851
22849
|
const sel = this.builder.builderStuff.querySelector('.style-helper-select');
|
22852
22850
|
const btnClassic = this.builder.builderStuff.querySelector('.style-helper-button-classic');
|
22853
22851
|
this.builder.styleModalColor = getVal('.modal-color', 'background-color');
|
@@ -22892,9 +22890,6 @@ class Util$1 {
|
|
22892
22890
|
this.builder.styleInputBorderBottom = window.getComputedStyle(inp, null).getPropertyValue('border-bottom');
|
22893
22891
|
this.builder.styleInputColor = window.getComputedStyle(inp, null).getPropertyValue('color');
|
22894
22892
|
|
22895
|
-
// Label (ex. used in 'Search & Replace' plugin)
|
22896
|
-
this.builder.styleLabelColor = window.getComputedStyle(lbl, null).getPropertyValue('color');
|
22897
|
-
|
22898
22893
|
// Button Classic (ex. used in 'Search & Replace' plugin)
|
22899
22894
|
this.builder.styleButtonClassicBackground = window.getComputedStyle(btnClassic, null).getPropertyValue('background-color');
|
22900
22895
|
this.builder.styleButtonClassicColor = window.getComputedStyle(btnClassic, null).getPropertyValue('color');
|
@@ -97918,8 +97913,9 @@ class ContentBuilder {
|
|
97918
97913
|
// col.addEventListener('paste', this.handleCellPaste.bind(this));
|
97919
97914
|
col.addEventListener('paste', e => {
|
97920
97915
|
e.preventDefault();
|
97921
|
-
|
97922
|
-
|
97916
|
+
let clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
|
97917
|
+
let clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
|
97918
|
+
if (clipboardDataHtml.trim() === '') clipboardDataHtml = clipboardDataText;
|
97923
97919
|
this.handleCellPaste(clipboardDataText, clipboardDataHtml);
|
97924
97920
|
});
|
97925
97921
|
col.setAttribute('data-click', true);
|
@@ -128861,7 +128857,8 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
128861
128857
|
wrapper.style.transition = 'none';
|
128862
128858
|
},
|
128863
128859
|
onZoom: scale => {
|
128864
|
-
// Zoom Adjustment
|
128860
|
+
console.log('onZoom'); // Zoom Adjustment
|
128861
|
+
|
128865
128862
|
const x = 300 * (1 - scale) / 0.5;
|
128866
128863
|
this.wrapperEl.style.marginTop = `${x}px`;
|
128867
128864
|
const wrapper = this.wrapperEl;
|
@@ -128877,8 +128874,10 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
|
|
128877
128874
|
tools.forEach(elm => {
|
128878
128875
|
elm.setAttribute('data-boxinfo-active', '');
|
128879
128876
|
});
|
128877
|
+
this.ss();
|
128880
128878
|
},
|
128881
128879
|
onZoomEnd: () => {
|
128880
|
+
console.log('onZoomEnd');
|
128882
128881
|
const wrapper = this.wrapperEl;
|
128883
128882
|
const section = wrapper.querySelector('.is-section');
|
128884
128883
|
if (!section) return; // empty content
|