@innovastudio/contentbox 1.0.40 → 1.0.44

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
- "version": "1.0.40",
3
+ "version": "1.0.44",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@ashthornton/asscroll": "^2.0.4",
42
- "@innovastudio/contentbuilder": "^1.0.66",
42
+ "@innovastudio/contentbuilder": "^1.0.67",
43
43
  "axios": "^0.21.4",
44
44
  "cors": "^2.8.5",
45
45
  "express": "^4.17.1",
@@ -69543,10 +69543,15 @@ class ContentBuilder {
69543
69543
  } // Css loaded. Now we can get UI styles.
69544
69544
 
69545
69545
 
69546
- const util = this.util;
69547
- util.getUIStyles();
69548
- this.setUIColorRefresh();
69549
- if (this.opts.onThemeChange) this.opts.onThemeChange();
69546
+ const util = this.util; // util.getUIStyles();
69547
+ // this.setUIColorRefresh();
69548
+ // if(this.opts.onThemeChange) this.opts.onThemeChange();
69549
+
69550
+ setTimeout(() => {
69551
+ util.getUIStyles();
69552
+ this.setUIColorRefresh();
69553
+ if (this.opts.onThemeChange) this.opts.onThemeChange();
69554
+ }, 300);
69550
69555
  });
69551
69556
  document.head.appendChild(link);
69552
69557
  } else {
@@ -69562,10 +69567,15 @@ class ContentBuilder {
69562
69567
  } // Css loaded. Now we can get UI styles.
69563
69568
 
69564
69569
 
69565
- const util = this.util;
69566
- util.getUIStyles();
69567
- this.setUIColorRefresh();
69568
- if (this.opts.onThemeChange) this.opts.onThemeChange();
69570
+ const util = this.util; // util.getUIStyles();
69571
+ // this.setUIColorRefresh();
69572
+ // if(this.opts.onThemeChange) this.opts.onThemeChange();
69573
+
69574
+ setTimeout(() => {
69575
+ util.getUIStyles();
69576
+ this.setUIColorRefresh();
69577
+ if (this.opts.onThemeChange) this.opts.onThemeChange();
69578
+ }, 1000);
69569
69579
  }
69570
69580
  }
69571
69581