chayns-api 2.1.12 → 2.1.13

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.
@@ -609,9 +609,12 @@ class AppWrapper {
609
609
  callback: ({
610
610
  colorMode
611
611
  }) => {
612
- this.values.site = {
613
- ...this.values.site,
614
- colorMode
612
+ this.values = {
613
+ ...this.values,
614
+ site: {
615
+ ...this.values.site,
616
+ colorMode
617
+ }
615
618
  };
616
619
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
617
620
  detail: {
@@ -620,9 +620,12 @@ export class AppWrapper {
620
620
  let {
621
621
  colorMode
622
622
  } = _ref3;
623
- this.values.site = {
624
- ...this.values.site,
625
- colorMode
623
+ this.values = {
624
+ ...this.values,
625
+ site: {
626
+ ...this.values.site,
627
+ colorMode
628
+ }
626
629
  };
627
630
  document.dispatchEvent(new CustomEvent('chayns_api_data', {
628
631
  detail: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",