chayns-api 1.0.77 → 1.0.79

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.
@@ -590,17 +590,21 @@ class AppWrapper {
590
590
  },
591
591
  awaitResult: true
592
592
  });
593
+ window.disablev4DesignSettingsChangeListener = true;
593
594
  this.appCall(254, {
594
595
  enabled: true
595
596
  }, {
596
597
  callback: ({
597
598
  colorMode
598
599
  }) => {
599
- this.values.site.colorMode = colorMode;
600
+ const site = {
601
+ ...this.values.site,
602
+ colorMode
603
+ };
600
604
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
601
605
  detail: {
602
606
  type: 'site',
603
- value: this.values.site
607
+ value: site
604
608
  }
605
609
  }));
606
610
  },
@@ -588,6 +588,7 @@ export class AppWrapper {
588
588
  },
589
589
  awaitResult: true
590
590
  });
591
+ window.disablev4DesignSettingsChangeListener = true;
591
592
  this.appCall(254, {
592
593
  enabled: true
593
594
  }, {
@@ -595,11 +596,14 @@ export class AppWrapper {
595
596
  let {
596
597
  colorMode
597
598
  } = _ref2;
598
- this.values.site.colorMode = colorMode;
599
+ const site = {
600
+ ...this.values.site,
601
+ colorMode
602
+ };
599
603
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
600
604
  detail: {
601
605
  type: 'site',
602
- value: this.values.site
606
+ value: site
603
607
  }
604
608
  }));
605
609
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",