@innovastudio/contentbox 1.6.51 → 1.6.52
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.
|
|
4
|
+
"version": "1.6.52",
|
|
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.5.
|
|
55
|
+
"@innovastudio/contentbuilder": "^1.5.38",
|
|
56
56
|
"js-beautify": "^1.14.0"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -38945,6 +38945,7 @@ class Grid {
|
|
|
38945
38945
|
if (!cell) return;
|
|
38946
38946
|
if (cell.previousElementSibling) {
|
|
38947
38947
|
this.builder.uo.saveForUndo();
|
|
38948
|
+
this.builder.hideTools();
|
|
38948
38949
|
cell.parentElement.insertBefore(cell, cell.previousElementSibling);
|
|
38949
38950
|
this.builder.opts.onChange();
|
|
38950
38951
|
}
|
|
@@ -38956,6 +38957,7 @@ class Grid {
|
|
|
38956
38957
|
const cellnext = util.cellNext(cell);
|
|
38957
38958
|
if (cellnext) {
|
|
38958
38959
|
this.builder.uo.saveForUndo();
|
|
38960
|
+
this.builder.hideTools();
|
|
38959
38961
|
cell.parentElement.insertBefore(cellnext, cell);
|
|
38960
38962
|
this.builder.opts.onChange();
|
|
38961
38963
|
}
|
|
@@ -38982,6 +38984,7 @@ class Grid {
|
|
|
38982
38984
|
//+2 => includes is-row-tool & is-rowaddtool
|
|
38983
38985
|
|
|
38984
38986
|
this.builder.uo.saveForUndo();
|
|
38987
|
+
this.builder.hideTools();
|
|
38985
38988
|
|
|
38986
38989
|
//Move row up
|
|
38987
38990
|
row.parentNode.insertBefore(row, row.previousElementSibling);
|
|
@@ -38989,6 +38992,7 @@ class Grid {
|
|
|
38989
38992
|
return;
|
|
38990
38993
|
} else {
|
|
38991
38994
|
this.builder.uo.saveForUndo();
|
|
38995
|
+
this.builder.hideTools();
|
|
38992
38996
|
|
|
38993
38997
|
//Add inside prev row
|
|
38994
38998
|
let tool = row.previousElementSibling.querySelector('.is-row-tool');
|
|
@@ -39016,6 +39020,7 @@ class Grid {
|
|
|
39016
39020
|
}
|
|
39017
39021
|
} else {
|
|
39018
39022
|
this.builder.uo.saveForUndo();
|
|
39023
|
+
this.builder.hideTools();
|
|
39019
39024
|
var rowElement = row.cloneNode(true);
|
|
39020
39025
|
rowElement.innerHTML = '';
|
|
39021
39026
|
rowElement.appendChild(cell);
|
|
@@ -39059,6 +39064,7 @@ class Grid {
|
|
|
39059
39064
|
//+2 => includes is-row-tool & is-rowadd-tool
|
|
39060
39065
|
|
|
39061
39066
|
this.builder.uo.saveForUndo();
|
|
39067
|
+
this.builder.hideTools();
|
|
39062
39068
|
|
|
39063
39069
|
//Move row down
|
|
39064
39070
|
row.parentNode.insertBefore(row.nextElementSibling, row);
|
|
@@ -39066,6 +39072,7 @@ class Grid {
|
|
|
39066
39072
|
return;
|
|
39067
39073
|
} else {
|
|
39068
39074
|
this.builder.uo.saveForUndo();
|
|
39075
|
+
this.builder.hideTools();
|
|
39069
39076
|
|
|
39070
39077
|
//Add inside next row
|
|
39071
39078
|
let tool = row.nextElementSibling.querySelector('.is-row-tool');
|
|
@@ -39093,6 +39100,7 @@ class Grid {
|
|
|
39093
39100
|
}
|
|
39094
39101
|
} else {
|
|
39095
39102
|
this.builder.uo.saveForUndo();
|
|
39103
|
+
this.builder.hideTools();
|
|
39096
39104
|
var rowElement = row.cloneNode(true);
|
|
39097
39105
|
rowElement.innerHTML = '';
|
|
39098
39106
|
rowElement.appendChild(cell);
|
|
@@ -113742,10 +113750,17 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
113742
113750
|
this.util.repositionColumnTool();
|
|
113743
113751
|
}
|
|
113744
113752
|
this.elmTool.repositionElementTool(true);
|
|
113745
|
-
|
|
113746
|
-
if
|
|
113747
|
-
if
|
|
113748
|
-
this.
|
|
113753
|
+
|
|
113754
|
+
// if(this.element.image.imageTool) this.element.image.imageTool.style.display='';
|
|
113755
|
+
// if(this.element.module.moduleTool) this.element.module.moduleTool.style.display='';
|
|
113756
|
+
// if(this.element.hyperlink.linkTool) this.element.hyperlink.linkTool.style.display='';
|
|
113757
|
+
// this.colTool.lockIndicator.style.display='';
|
|
113758
|
+
|
|
113759
|
+
// this.hideTools();
|
|
113760
|
+
setTimeout(() => {
|
|
113761
|
+
this.hideTools();
|
|
113762
|
+
}, 40); // give delay, in case of programmatically click after col move
|
|
113763
|
+
|
|
113749
113764
|
return ret;
|
|
113750
113765
|
};
|
|
113751
113766
|
|
|
@@ -119058,6 +119073,16 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
119058
119073
|
hideElementTools() {
|
|
119059
119074
|
let elmTool = this.doc.querySelector('.is-element-tool');
|
|
119060
119075
|
if (elmTool) elmTool.style.display = '';
|
|
119076
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
119077
|
+
if (videoTool) videoTool.style.display = '';
|
|
119078
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
119079
|
+
if (audioTool) audioTool.style.display = '';
|
|
119080
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
119081
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
119082
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
119083
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
119084
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
119085
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
119061
119086
|
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
119062
119087
|
if (linkTool) linkTool.style.display = '';
|
|
119063
119088
|
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
@@ -119071,6 +119096,32 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
119071
119096
|
this.inspectedElement = null;
|
|
119072
119097
|
this.activeElement = null;
|
|
119073
119098
|
}
|
|
119099
|
+
hideTools() {
|
|
119100
|
+
// used by contentbuilder.js & grid.js
|
|
119101
|
+
|
|
119102
|
+
// let elmTool = this.doc.querySelector('.is-element-tool');
|
|
119103
|
+
// if(elmTool) elmTool.style.display = '';
|
|
119104
|
+
|
|
119105
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
119106
|
+
if (videoTool) videoTool.style.display = '';
|
|
119107
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
119108
|
+
if (audioTool) audioTool.style.display = '';
|
|
119109
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
119110
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
119111
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
119112
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
119113
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
119114
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
119115
|
+
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
119116
|
+
if (linkTool) linkTool.style.display = '';
|
|
119117
|
+
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
119118
|
+
if (spacerTool) spacerTool.style.display = '';
|
|
119119
|
+
this.element.image.hideImageTool();
|
|
119120
|
+
|
|
119121
|
+
// this.doc.querySelectorAll('.icon-active').forEach(elm => elm.classList.remove('icon-active'));
|
|
119122
|
+
// this.doc.querySelectorAll('.elm-inspected').forEach(elm => elm.classList.remove('elm-inspected'));
|
|
119123
|
+
// this.doc.querySelectorAll('.elm-active').forEach(elm => elm.classList.remove('elm-active'));
|
|
119124
|
+
}
|
|
119074
119125
|
}
|
|
119075
119126
|
|
|
119076
119127
|
class ContentStuff {
|
|
@@ -145966,6 +146017,12 @@ class IframePanel {
|
|
|
145966
146017
|
hideTools() {
|
|
145967
146018
|
let elmTool = this.builder.doc.querySelector('.is-element-tool');
|
|
145968
146019
|
if (elmTool) elmTool.style.display = '';
|
|
146020
|
+
let videoTool = this.builder.doc.querySelector('.is-video-tool');
|
|
146021
|
+
if (videoTool) videoTool.style.display = '';
|
|
146022
|
+
let audioTool = this.builder.doc.querySelector('.is-audio-tool');
|
|
146023
|
+
if (audioTool) audioTool.style.display = '';
|
|
146024
|
+
let iframeTool = this.builder.doc.querySelector('.is-iframe-tool');
|
|
146025
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
145969
146026
|
let moduleTool = this.builder.doc.querySelector('.is-module-tool');
|
|
145970
146027
|
if (moduleTool) moduleTool.style.display = '';
|
|
145971
146028
|
let lockIndicator = this.builder.doc.querySelector('.is-locked-indicator');
|
|
@@ -145974,10 +146031,9 @@ class IframePanel {
|
|
|
145974
146031
|
if (linkTool) linkTool.style.display = '';
|
|
145975
146032
|
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
145976
146033
|
if (spacerTool) spacerTool.style.display = '';
|
|
145977
|
-
this.builder.editor.element.image.hideImageTool();
|
|
145978
|
-
this.builder.doc.querySelectorAll('.
|
|
145979
|
-
this.builder.doc.querySelectorAll('.elm-
|
|
145980
|
-
this.builder.doc.querySelectorAll('.elm-active').forEach(elm => elm.classList.remove('elm-active'));
|
|
146034
|
+
this.builder.editor.element.image.hideImageTool(); // this.builder.doc.querySelectorAll('.icon-active').forEach(elm => elm.classList.remove('icon-active'));
|
|
146035
|
+
// this.builder.doc.querySelectorAll('.elm-inspected').forEach(elm => elm.classList.remove('elm-inspected'));
|
|
146036
|
+
// this.builder.doc.querySelectorAll('.elm-active').forEach(elm => elm.classList.remove('elm-active'));
|
|
145981
146037
|
}
|
|
145982
146038
|
|
|
145983
146039
|
repositionTool() {
|