@innovastudio/contentbuilder 1.5.68 → 1.5.70
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -841,6 +841,11 @@ class Snippets {
|
|
841
841
|
|
842
842
|
var snippets = data_basic.snippets; //DATA
|
843
843
|
|
844
|
+
${!this.builder.canvas && !this.builder.isContentBox ? `
|
845
|
+
const canvasFilter = (item) => (item.mode!=='canvas');
|
846
|
+
snippets = snippets.filter(canvasFilter);
|
847
|
+
` : ''}
|
848
|
+
|
844
849
|
if (slider !== null){
|
845
850
|
if(slider==='slick') {
|
846
851
|
//remove glide
|
@@ -1070,6 +1075,12 @@ class Snippets {
|
|
1070
1075
|
if(snippets[i].id + ''=== snippetid) {
|
1071
1076
|
|
1072
1077
|
var html = snippets[i].html;
|
1078
|
+
|
1079
|
+
// check if is block
|
1080
|
+
if(html.includes('"is-block')) {
|
1081
|
+
html = snippets[i].html2;
|
1082
|
+
}
|
1083
|
+
|
1073
1084
|
var noedit = snippets[i].noedit;
|
1074
1085
|
break;
|
1075
1086
|
}
|
@@ -48972,9 +48983,10 @@ class Hyperlink {
|
|
48972
48983
|
linkTool.style.top = top - h - 3 + 'px';
|
48973
48984
|
linkTool.style.left = left + link.offsetWidth * this.builder.opts.zoom - w + 'px';
|
48974
48985
|
const handleLinkButtonClick = e => {
|
48986
|
+
const clrPicker = document.querySelector('.pop-picker.active') || document.querySelector('.pickgradientcolor.active');
|
48975
48987
|
let elm = e.target;
|
48976
48988
|
if (!elm) return;
|
48977
|
-
if (!elm.closest('#divLinkTool') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('a')) {
|
48989
|
+
if (!elm.closest('#divLinkTool') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('a') && !clrPicker) {
|
48978
48990
|
// click outside
|
48979
48991
|
|
48980
48992
|
this.hideTool();
|
@@ -49100,6 +49112,7 @@ class Button {
|
|
49100
49112
|
const contentStuff = this.builder.contentStuff;
|
49101
49113
|
const dom = this.builder.dom;
|
49102
49114
|
this.dom = dom;
|
49115
|
+
this.builderStuff = builderStuff;
|
49103
49116
|
let buttonTool = builderStuff.querySelector('#divButtonTool');
|
49104
49117
|
if (!buttonTool) {
|
49105
49118
|
let html = `<div id="divButtonTool" class="is-tool">
|
@@ -49171,9 +49184,10 @@ class Button {
|
|
49171
49184
|
this.renderTool();
|
49172
49185
|
this.showTool(btn);
|
49173
49186
|
const handleButtonClick = e => {
|
49187
|
+
const clrPicker = document.querySelector('.pop-picker.active') || document.querySelector('.pickgradientcolor.active');
|
49174
49188
|
let elm = e.target;
|
49175
49189
|
if (!elm) return;
|
49176
|
-
if (!elm.closest('#divButtonTool') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('button')) {
|
49190
|
+
if (!elm.closest('#divButtonTool') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('button') && !clrPicker) {
|
49177
49191
|
// click outside
|
49178
49192
|
|
49179
49193
|
// hide
|
@@ -50375,9 +50389,11 @@ class Table {
|
|
50375
50389
|
this.realtime();
|
50376
50390
|
const handleTableClick = e => {
|
50377
50391
|
// console.log('handleTableClick');
|
50392
|
+
|
50393
|
+
const clrPicker = document.querySelector('.pop-picker.active') || document.querySelector('.pickgradientcolor.active');
|
50378
50394
|
let elm = e.target;
|
50379
50395
|
if (!elm) return;
|
50380
|
-
if (!elm.closest('.is-table-tool') && !elm.closest('.is-sidebar') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('table')) {
|
50396
|
+
if (!elm.closest('.is-table-tool') && !elm.closest('.is-sidebar') && !elm.closest('.is-modal') && !elm.closest('.keep-selection') && !elm.closest('table') && !clrPicker) {
|
50381
50397
|
// click outside
|
50382
50398
|
|
50383
50399
|
// hide
|
@@ -82058,6 +82074,7 @@ class Dictation {
|
|
82058
82074
|
renderPanel() {
|
82059
82075
|
const builderStuff = this.builder.builderStuff;
|
82060
82076
|
this.builderStuff = builderStuff;
|
82077
|
+
if (builderStuff.querySelector('.page-command')) return;
|
82061
82078
|
const util = this.builder.util;
|
82062
82079
|
this.util = util;
|
82063
82080
|
let disclaimerText = util.out('AI-Disclaimer');
|