@innovastudio/contentbox 1.6.189 → 1.6.190

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/index.d.ts CHANGED
@@ -404,7 +404,7 @@ interface ContentBoxOptions {
404
404
  activeStyleOffset?: number;
405
405
  contentStylesVersion?: number;
406
406
 
407
- getInlineTypographyStyle?: (scope: string) => void;
407
+ getInlineTypographyStyle?: (classname: string) => void;
408
408
  }
409
409
 
410
410
  interface OpenModalOptions {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.189",
4
+ "version": "1.6.190",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -158970,7 +158970,8 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
158970
158970
  };
158971
158971
  this.settings = Object.assign(this, defaults, settings);
158972
158972
  this.screenMode = this.settings.screenMode; // Expose as direct property
158973
- // this.activeBox = null;
158973
+
158974
+ this.onLoadHtml = null; // this.activeBox = null;
158974
158975
  // this.activeSection = null;
158975
158976
 
158976
158977
  if (this.contentStylesVersion === 2) {
@@ -163566,6 +163567,26 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
163566
163567
  }
163567
163568
  }
163568
163569
 
163570
+ loadStyles_BAK(mainCss, sectionCss) {
163571
+ // Wait for IFRAME loaded
163572
+ const wrapper = this.wrapperEl;
163573
+
163574
+ if (!wrapper) {
163575
+ setTimeout(() => {
163576
+ this.loadStyles(mainCss, sectionCss);
163577
+ }, 100);
163578
+ return;
163579
+ }
163580
+
163581
+ if (mainCss && mainCss !== '') {
163582
+ this.doc.head.insertAdjacentHTML('beforeend', mainCss); // add the style on the head
163583
+ }
163584
+
163585
+ if (sectionCss && sectionCss !== '') {
163586
+ this.doc.head.insertAdjacentHTML('beforeend', sectionCss); // add the style on the head
163587
+ }
163588
+ }
163589
+
163569
163590
  getWrapper() {
163570
163591
  return this.wrapperEl;
163571
163592
  }