@innovastudio/contentbox 1.5.37 → 1.5.38

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/contentbox",
3
3
  "type": "module",
4
- "version": "1.5.37",
4
+ "version": "1.5.38",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.4.27",
49
+ "@innovastudio/contentbuilder": "^1.4.28",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -91610,7 +91610,7 @@ class LivePreview {
91610
91610
  });
91611
91611
  const btnModalRefresh = modal.querySelector('.is-modal-refresh');
91612
91612
  btnModalRefresh.addEventListener('click', () => {
91613
- this.previewRefresh();
91613
+ this.previewRefresh(false, true);
91614
91614
  }); //Extend onChange
91615
91615
 
91616
91616
  let old2 = this.builder.settings.onChange;
@@ -91668,7 +91668,7 @@ class LivePreview {
91668
91668
  this.previewRefresh(true);
91669
91669
  }
91670
91670
 
91671
- previewRefresh(disableOnContentLoad) {
91671
+ previewRefresh(disableOnContentLoad, hardReload) {
91672
91672
  if (this.modal.classList.contains('active')) {
91673
91673
  // let html = this.builder.html();
91674
91674
  // localStorage.setItem('preview-html', html);
@@ -91717,7 +91717,7 @@ class LivePreview {
91717
91717
  this.builder.count = 0;
91718
91718
  }
91719
91719
 
91720
- if (this.builder.livePreviewAlwaysReload) {
91720
+ if (this.builder.livePreviewAlwaysReload || hardReload) {
91721
91721
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
91722
91722
  } else {
91723
91723
  let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;