chayns-api 1.0.77 → 1.0.78

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