@innovastudio/contentbuilder 1.5.135 → 1.5.136

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.
@@ -3688,6 +3688,10 @@ button:focus-visible {
3688
3688
  fill: #111 !important;
3689
3689
  color: #111 !important;
3690
3690
  }
3691
+ #_cbhtml #divImageResizer,
3692
+ .is-ui #divImageResizer {
3693
+ z-index: -1;
3694
+ }
3691
3695
  #_cbhtml .dot,
3692
3696
  .is-ui .dot {
3693
3697
  height: 7px;
@@ -4935,7 +4935,11 @@ class Util {
4935
4935
  // this.builder.doc.activeElement.blur();
4936
4936
  // document.activeElement.blur();
4937
4937
  this.builder.doc.body.focus();
4938
- pop.setAttribute('aria-hidden', true);
4938
+
4939
+ // pop.setAttribute('aria-hidden', true);
4940
+ setTimeout(() => {
4941
+ pop.setAttribute('aria-hidden', true);
4942
+ }, 0);
4939
4943
 
4940
4944
  // pop.removeEventListener('keydown', this.handlePopKeyDown);
4941
4945
  // document.removeEventListener('click', this.handlePopClickOut);
@@ -96213,8 +96217,28 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
96213
96217
  itemEl.outerHTML = itemEl.innerHTML;
96214
96218
  }
96215
96219
 
96220
+ // Get newly added row
96221
+ let rows = builder.children;
96222
+ let newRows = [];
96223
+ for (let i = 0; i < rows.length; i++) {
96224
+ const row = rows[i];
96225
+ const tool = row.querySelector('.is-tool');
96226
+ if (!tool) {
96227
+ newRows.push(row);
96228
+ }
96229
+ }
96230
+
96216
96231
  // After snippet has been added, re-apply behavior on builder areas
96217
96232
  this.applyBehaviorOn(builder);
96233
+ if (newRows.length > 0) {
96234
+ let newRow = newRows[0]; // get first added row
96235
+ if (newRow.children.length > 0) {
96236
+ const newCol = newRow.children[0];
96237
+ if (newCol.children.length > 0) {
96238
+ newCol.children[0].click(); // Focus on first element
96239
+ }
96240
+ }
96241
+ }
96218
96242
 
96219
96243
  //Trigger Change event
96220
96244
  this.opts.onChange();
@@ -97899,16 +97923,12 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
97899
97923
  }
97900
97924
 
97901
97925
  if (this.opts.snippetJSON.target === 'ContentBuilder') {
97902
- console.log(`
97903
- ContentBuilder is a commercial library.
97904
- Please obtain a license at: https://innovastudio.com/contentbuilder
97905
- `);
97926
+ console.log(`ContentBuilder is a commercial library.
97927
+ Please obtain a license at: https://innovastudio.com/contentbuilder`);
97906
97928
  }
97907
97929
  if (this.opts.snippetJSON.target === 'ContentBox') {
97908
- console.log(`
97909
- ContentBox is a commercial library.
97910
- Please obtain a license at: https://innovastudio.com/contentbox
97911
- `);
97930
+ console.log(`ContentBox is a commercial library.
97931
+ Please obtain a license at: https://innovastudio.com/contentbox`);
97912
97932
  }
97913
97933
  };
97914
97934
  document.body.appendChild(script);