@innovastudio/contentbuilder 1.4.20 → 1.4.22

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.20",
4
+ "version": "1.4.22",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -2036,11 +2036,12 @@ button:focus-visible {
2036
2036
  .is-ui .is-modal div.is-modal-footer button {
2037
2037
  margin-left: 2px;
2038
2038
  }
2039
- #_cbhtml .is-modal.fileselect, #_cbhtml .is-modal.mediaselect, #_cbhtml .is-modal.imageselect, #_cbhtml .is-modal.videoselect,
2039
+ #_cbhtml .is-modal.fileselect, #_cbhtml .is-modal.mediaselect, #_cbhtml .is-modal.imageselect, #_cbhtml .is-modal.videoselect, #_cbhtml .is-modal.otherselect,
2040
2040
  .is-ui .is-modal.fileselect,
2041
2041
  .is-ui .is-modal.mediaselect,
2042
2042
  .is-ui .is-modal.imageselect,
2043
- .is-ui .is-modal.videoselect {
2043
+ .is-ui .is-modal.videoselect,
2044
+ .is-ui .is-modal.otherselect {
2044
2045
  z-index: 10005;
2045
2046
  }
2046
2047
  #_cbhtml .is-modal.previewcontent,
@@ -50106,7 +50106,7 @@ class Image$1 {
50106
50106
  theTrigger: modalImageLink.querySelector('.input-select-other')
50107
50107
  });
50108
50108
  } else {
50109
- let modalFileSelect = builderStuff.querySelector('.is-modal.fileselect');
50109
+ let modalFileSelect = builderStuff.querySelector('.is-modal.otherselect');
50110
50110
 
50111
50111
  if (this.builder.opts.assetRefresh) {
50112
50112
  modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
@@ -52841,6 +52841,11 @@ class Hyperlink {
52841
52841
  <iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>
52842
52842
  </div>
52843
52843
  </div>
52844
+ <div class="is-modal otherselect" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
52845
+ <div class="is-modal-content" style="max-width:${this.builder.otherSelectWidth};height:${this.builder.otherSelectHeight};padding:0;">
52846
+ <iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>
52847
+ </div>
52848
+ </div>
52844
52849
  `;
52845
52850
  dom.appendHtml(builderStuff, html);
52846
52851
 
@@ -53313,7 +53318,7 @@ class Hyperlink {
53313
53318
  theTrigger: modal.querySelector('.input-select-other')
53314
53319
  });
53315
53320
  } else {
53316
- let modalFileSelect = this.builderStuff.querySelector('.is-modal.fileselect');
53321
+ let modalFileSelect = this.builderStuff.querySelector('.is-modal.otherselect');
53317
53322
 
53318
53323
  if (this.builder.opts.assetRefresh) {
53319
53324
  modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
@@ -60387,7 +60392,7 @@ class ColumnTool {
60387
60392
  theTrigger: this.cellSettings.querySelector('.input-select-other')
60388
60393
  });
60389
60394
  } else {
60390
- let modalFileSelect = builderStuff.querySelector('.is-modal.fileselect');
60395
+ let modalFileSelect = builderStuff.querySelector('.is-modal.otherselect');
60391
60396
 
60392
60397
  if (this.builder.opts.assetRefresh) {
60393
60398
  modalFileSelect.querySelector('iframe').src = this.builder.opts.otherSelect;
@@ -77468,6 +77473,8 @@ class ContentBuilder {
77468
77473
  audioSelectHeight: '80vh',
77469
77474
  mediaSelectWidth: '1024px',
77470
77475
  mediaSelectHeight: '80vh',
77476
+ otherSelectWidth: '1024px',
77477
+ otherSelectHeight: '80vh',
77471
77478
  assetRefresh: false,
77472
77479
  // asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
77473
77480
  customTags: [],
@@ -79233,6 +79240,8 @@ class ContentBuilder {
79233
79240
  if (modal) this.hideModal(modal);
79234
79241
  modal = document.querySelector('.is-modal.mediaselect.active');
79235
79242
  if (modal) this.hideModal(modal);
79243
+ modal = document.querySelector('.is-modal.otherselect.active');
79244
+ if (modal) this.hideModal(modal);
79236
79245
  }
79237
79246
  }
79238
79247
 
@@ -79308,7 +79317,7 @@ class ContentBuilder {
79308
79317
  });
79309
79318
  } else {
79310
79319
  let iframe;
79311
- let modal = this.builderStuff.querySelector('.is-modal.fileselect');
79320
+ let modal = this.builderStuff.querySelector('.is-modal.otherselect');
79312
79321
  iframe = modal.querySelector('iframe');
79313
79322
  if (iframe.src === 'about:blank') iframe.src = this.opts.otherSelect;
79314
79323
  this.util.showModal(modal);
@@ -80204,12 +80213,15 @@ class ContentBuilder {
80204
80213
  let modal1 = document.querySelector('.is-modal.videoselect');
80205
80214
  let modal2 = document.querySelector('.is-modal.imageselect');
80206
80215
  let modal3 = document.querySelector('.is-modal.fileselect');
80216
+ let modal4 = document.querySelector('.is-modal.otherselect');
80207
80217
  let modalIframe1 = modal1.querySelector('iframe');
80208
80218
  let modalIframe2 = modal2.querySelector('iframe');
80209
80219
  let modalIframe3 = modal3.querySelector('iframe');
80220
+ let modalIframe4 = modal4.querySelector('iframe');
80210
80221
  if (modalIframe1.contentWindow.applyParentStyles) modalIframe1.contentWindow.applyParentStyles();
80211
80222
  if (modalIframe2.contentWindow.applyParentStyles) modalIframe2.contentWindow.applyParentStyles();
80212
80223
  if (modalIframe3.contentWindow.applyParentStyles) modalIframe3.contentWindow.applyParentStyles();
80224
+ if (modalIframe4.contentWindow.applyParentStyles) modalIframe4.contentWindow.applyParentStyles();
80213
80225
  }
80214
80226
 
80215
80227
  openMedia(elm) {