chayns-api 1.0.76 → 1.0.77

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