@innovastudio/contentbox 1.5.20 → 1.5.22
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.5.
|
4
|
+
"version": "1.5.22",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"webpack-dev-server": "^4.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@innovastudio/contentbuilder": "^1.4.
|
49
|
+
"@innovastudio/contentbuilder": "^1.4.22",
|
50
50
|
"js-beautify": "^1.14.0"
|
51
51
|
}
|
52
52
|
}
|
@@ -64479,7 +64479,7 @@ class Image$1 {
|
|
64479
64479
|
theTrigger: modalImageLink.querySelector('.input-select-other')
|
64480
64480
|
});
|
64481
64481
|
} else {
|
64482
|
-
let modalFileSelect = builderStuff.querySelector('.is-modal.
|
64482
|
+
let modalFileSelect = builderStuff.querySelector('.is-modal.otherselect');
|
64483
64483
|
|
64484
64484
|
if (this.builder.opts.assetRefresh) {
|
64485
64485
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
|
@@ -67214,6 +67214,11 @@ class Hyperlink {
|
|
67214
67214
|
<iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>
|
67215
67215
|
</div>
|
67216
67216
|
</div>
|
67217
|
+
<div class="is-modal otherselect" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
|
67218
|
+
<div class="is-modal-content" style="max-width:${this.builder.otherSelectWidth};height:${this.builder.otherSelectHeight};padding:0;">
|
67219
|
+
<iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>
|
67220
|
+
</div>
|
67221
|
+
</div>
|
67217
67222
|
`;
|
67218
67223
|
dom.appendHtml(builderStuff, html);
|
67219
67224
|
|
@@ -67686,7 +67691,7 @@ class Hyperlink {
|
|
67686
67691
|
theTrigger: modal.querySelector('.input-select-other')
|
67687
67692
|
});
|
67688
67693
|
} else {
|
67689
|
-
let modalFileSelect = this.builderStuff.querySelector('.is-modal.
|
67694
|
+
let modalFileSelect = this.builderStuff.querySelector('.is-modal.otherselect');
|
67690
67695
|
|
67691
67696
|
if (this.builder.opts.assetRefresh) {
|
67692
67697
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
|
@@ -74760,7 +74765,7 @@ class ColumnTool {
|
|
74760
74765
|
theTrigger: this.cellSettings.querySelector('.input-select-other')
|
74761
74766
|
});
|
74762
74767
|
} else {
|
74763
|
-
let modalFileSelect = builderStuff.querySelector('.is-modal.
|
74768
|
+
let modalFileSelect = builderStuff.querySelector('.is-modal.otherselect');
|
74764
74769
|
|
74765
74770
|
if (this.builder.opts.assetRefresh) {
|
74766
74771
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
|
@@ -91841,6 +91846,8 @@ class ContentBuilder {
|
|
91841
91846
|
audioSelectHeight: '80vh',
|
91842
91847
|
mediaSelectWidth: '1024px',
|
91843
91848
|
mediaSelectHeight: '80vh',
|
91849
|
+
otherSelectWidth: '1024px',
|
91850
|
+
otherSelectHeight: '80vh',
|
91844
91851
|
assetRefresh: false,
|
91845
91852
|
// asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
|
91846
91853
|
customTags: [],
|
@@ -93606,6 +93613,8 @@ class ContentBuilder {
|
|
93606
93613
|
if (modal) this.hideModal(modal);
|
93607
93614
|
modal = document.querySelector('.is-modal.mediaselect.active');
|
93608
93615
|
if (modal) this.hideModal(modal);
|
93616
|
+
modal = document.querySelector('.is-modal.otherselect.active');
|
93617
|
+
if (modal) this.hideModal(modal);
|
93609
93618
|
}
|
93610
93619
|
}
|
93611
93620
|
|
@@ -93681,7 +93690,7 @@ class ContentBuilder {
|
|
93681
93690
|
});
|
93682
93691
|
} else {
|
93683
93692
|
let iframe;
|
93684
|
-
let modal = this.builderStuff.querySelector('.is-modal.
|
93693
|
+
let modal = this.builderStuff.querySelector('.is-modal.otherselect');
|
93685
93694
|
iframe = modal.querySelector('iframe');
|
93686
93695
|
if (iframe.src === 'about:blank') iframe.src = this.opts.otherSelect;
|
93687
93696
|
this.util.showModal(modal);
|
@@ -94577,12 +94586,15 @@ class ContentBuilder {
|
|
94577
94586
|
let modal1 = document.querySelector('.is-modal.videoselect');
|
94578
94587
|
let modal2 = document.querySelector('.is-modal.imageselect');
|
94579
94588
|
let modal3 = document.querySelector('.is-modal.fileselect');
|
94589
|
+
let modal4 = document.querySelector('.is-modal.otherselect');
|
94580
94590
|
let modalIframe1 = modal1.querySelector('iframe');
|
94581
94591
|
let modalIframe2 = modal2.querySelector('iframe');
|
94582
94592
|
let modalIframe3 = modal3.querySelector('iframe');
|
94593
|
+
let modalIframe4 = modal4.querySelector('iframe');
|
94583
94594
|
if (modalIframe1.contentWindow.applyParentStyles) modalIframe1.contentWindow.applyParentStyles();
|
94584
94595
|
if (modalIframe2.contentWindow.applyParentStyles) modalIframe2.contentWindow.applyParentStyles();
|
94585
94596
|
if (modalIframe3.contentWindow.applyParentStyles) modalIframe3.contentWindow.applyParentStyles();
|
94597
|
+
if (modalIframe4.contentWindow.applyParentStyles) modalIframe4.contentWindow.applyParentStyles();
|
94586
94598
|
}
|
94587
94599
|
|
94588
94600
|
openMedia(elm) {
|