@innovastudio/contentbuilder 1.3.19 → 1.3.20

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.3.19",
4
+ "version": "1.3.20",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -5176,6 +5176,5 @@ button:focus-visible {
5176
5176
 
5177
5177
  /* Make slider block resizable */
5178
5178
  .is-builder > div > div[data-module=slider-builder].cell-active {
5179
- padding: 0 2px 4px !important;
5180
5179
  z-index: 1 !important;
5181
5180
  }
@@ -15783,7 +15783,7 @@ class Snippets {
15783
15783
  z-index:10;width:30px;height:30px;position:absolute;
15784
15784
  top:2px;right:2px;box-sizing:border-box;padding:0;line-height:40px;font-size: 12px;text-align:center;cursor:pointer;
15785
15785
  }
15786
- .is-pop-close:focus {
15786
+ .is-pop-close:focus-visible {
15787
15787
  outline: ${this.builder.styleOutlineColor} 2px solid;
15788
15788
  }
15789
15789
 
@@ -15924,7 +15924,7 @@ class Snippets {
15924
15924
  border-radius: 2px;
15925
15925
  }
15926
15926
 
15927
- .is-design-list>li:focus {
15927
+ .is-design-list>li:focus-visible {
15928
15928
  outline: ${this.builder.styleOutlineColor} 2px solid;
15929
15929
  }
15930
15930
 
@@ -16023,7 +16023,7 @@ class Snippets {
16023
16023
  cursor: default;
16024
16024
  }
16025
16025
 
16026
- .is-category-list a:focus {
16026
+ .is-category-list a:focus-visible {
16027
16027
  outline: ${this.builder.styleOutlineColor} 2px solid;
16028
16028
  }
16029
16029
 
@@ -53080,9 +53080,13 @@ class Module {
53080
53080
  var moduleDesc = module.getAttribute('data-module-desc');
53081
53081
 
53082
53082
  if (moduleDesc) {
53083
- moduleModal.querySelector('.is-modal-bar').innerHTML = moduleDesc + `<button class="is-modal-close" tabindex="-1" title="${util.out('Close')}">&#10005;</button>`;
53083
+ moduleModal.querySelector('.is-modal-bar').innerHTML = moduleDesc + `<button class="is-modal-close" tabindex="-1" title="${util.out('Close')}">
53084
+ <svg class="is-icon-flex" style="width:30px;height:30px;"><use xlink:href="#ion-ios-close-empty"></use></svg>
53085
+ </button>`;
53084
53086
  } else {
53085
- moduleModal.querySelector('.is-modal-bar').innerHTML = this.util.out('Module Settings') + `<button class="is-modal-close" tabindex="-1" title="${util.out('Close')}">&#10005;</button>`;
53087
+ moduleModal.querySelector('.is-modal-bar').innerHTML = this.util.out('Module Settings') + `<button class="is-modal-close" tabindex="-1" title="${util.out('Close')}">
53088
+ <svg class="is-icon-flex" style="width:30px;height:30px;"><use xlink:href="#ion-ios-close-empty"></use></svg>
53089
+ </button>`;
53086
53090
  }
53087
53091
 
53088
53092
  var w = module.getAttribute('data-dialog-width');
@@ -53097,6 +53101,12 @@ class Module {
53097
53101
  h = '570px';
53098
53102
  }
53099
53103
 
53104
+ if (modulename === 'slider-builder') {
53105
+ moduleModal.querySelector('div:not(.is-modal-overlay)').style.width = '90vw';
53106
+ w = '1500px';
53107
+ h = '80vh';
53108
+ }
53109
+
53100
53110
  moduleModal.querySelector('div:not(.is-modal-overlay)').style.maxWidth = w;
53101
53111
  moduleModal.querySelector('div:not(.is-modal-overlay)').style.height = h;
53102
53112
  let btnClose = moduleModal.querySelector('.is-modal-close');
@@ -54373,6 +54383,12 @@ class Video {
54373
54383
  let elm = e.target;
54374
54384
 
54375
54385
  if (elm.tagName.toLowerCase() === 'video') {
54386
+ if (elm.closest('[data-html]')) {
54387
+ this.builder.activeVideo = null;
54388
+ this.videoTool.style.display = '';
54389
+ return;
54390
+ }
54391
+
54376
54392
  this.builder.activeVideo = elm;
54377
54393
  this.videoTool.style.display = 'flex';
54378
54394
  let _toolwidth = this.videoTool.offsetWidth; //to get value, element must not hidden (display:none). So set display:flex before this.
@@ -54380,7 +54396,8 @@ class Video {
54380
54396
  let w = elm.offsetWidth * this.builder.opts.zoom;
54381
54397
  let top = elm.getBoundingClientRect().top + this.builder.win.pageYOffset;
54382
54398
  let left = elm.getBoundingClientRect().left;
54383
- left = left + (w - _toolwidth); //Adjust left in case an element is outside the screen
54399
+ left = left + (w - _toolwidth); // left = left + (w/2 - _toolwidth/2);
54400
+ //Adjust left in case an element is outside the screen
54384
54401
 
54385
54402
  const _screenwidth = window.innerWidth;
54386
54403
  if (_toolwidth + left > _screenwidth) left = elm.getBoundingClientRect().left;