@wix/site-service-site-theme 1.0.6 → 1.0.7

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.
@@ -19,8 +19,8 @@ export interface ISiteThemeService {
19
19
  * The host fills `colors` and `colorsMap` from the same list of theme colors, so `colors['color_<n>']`
20
20
  * is the same value as `colorsMap[n]`, counting from `color_0`.
21
21
  *
22
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
23
- * changing it affects other code on the page.
22
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
23
+ * in all of them, and the site doesn't save it.
24
24
  *
25
25
  * @exampleValue `{ "color_0": "#FFFFFF", "color_1": "#E8E6E6", "color_2": "#9C9C9C", "color_3": "#1F1F1F", "color_4": "#0088CB", "color_5": "#ED1C24" }`
26
26
  */
@@ -28,8 +28,8 @@ export interface ISiteThemeService {
28
28
  /**
29
29
  * Site's theme fonts, keyed by theme font ID.
30
30
  *
31
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
32
- * changing it affects other code on the page.
31
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
32
+ * in all of them, and the site doesn't save it.
33
33
  *
34
34
  * @exampleValue `{ "font_0": "normal normal normal 40px/1.4em helvetica-w01-bold,sans-serif", "font_1": "normal normal normal 16px/1.4em proxima-n-w01-reg,sans-serif" }`
35
35
  */
@@ -40,8 +40,8 @@ export interface ISiteThemeService {
40
40
  * The host fills `colorsMap` and `colors` from the same list of theme colors, so entry `n` is the theme
41
41
  * color with ID `color_<n>`.
42
42
  *
43
- * Don't change the array, for example by sorting it in place. The property is read-only, but the array
44
- * it returns isn't, and changing it affects other code on the page.
43
+ * Don't change the array, for example by sorting it in place. Every component on the page reads the same
44
+ * array, so a change shows in all of them, and the site doesn't save it.
45
45
  *
46
46
  * @exampleValue `["#FFFFFF", "#E8E6E6", "#9C9C9C", "#1F1F1F", "#0088CB", "#ED1C24"]`
47
47
  */
@@ -51,7 +51,7 @@ export interface ISiteThemeService {
51
51
  }
52
52
  /** Definition of the Site Theme service, used to resolve it from the services manager. */
53
53
  export type ISiteThemeDefinition = ServiceDefinition<ISiteThemeService, ISiteThemeServiceConfig>;
54
- /** Definition of the Site Theme service. Specify it in `useService()` or `servicesManager.getService()`. */
54
+ /** Definition of the Site Theme service. Specify it in `useService()`. */
55
55
  export declare const SiteThemeDefinition: string & {
56
56
  __api: ISiteThemeService;
57
57
  __config: ISiteThemeServiceConfig;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SiteThemeDefinition = void 0;
4
4
  const services_definitions_1 = require("@wix/services-definitions");
5
- /** Definition of the Site Theme service. Specify it in `useService()` or `servicesManager.getService()`. */
5
+ /** Definition of the Site Theme service. Specify it in `useService()`. */
6
6
  exports.SiteThemeDefinition = (0, services_definitions_1.defineService)('@wix/site-service-site-theme');
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AA0DzD,4GAA4G;AAC/F,QAAA,mBAAmB,GAAG,IAAA,oCAAa,EAC/C,8BAA8B,CAC9B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AA0DzD,0EAA0E;AAC7D,QAAA,mBAAmB,GAAG,IAAA,oCAAa,EAC/C,8BAA8B,CAC9B,CAAA"}
@@ -19,8 +19,8 @@ export interface ISiteThemeService {
19
19
  * The host fills `colors` and `colorsMap` from the same list of theme colors, so `colors['color_<n>']`
20
20
  * is the same value as `colorsMap[n]`, counting from `color_0`.
21
21
  *
22
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
23
- * changing it affects other code on the page.
22
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
23
+ * in all of them, and the site doesn't save it.
24
24
  *
25
25
  * @exampleValue `{ "color_0": "#FFFFFF", "color_1": "#E8E6E6", "color_2": "#9C9C9C", "color_3": "#1F1F1F", "color_4": "#0088CB", "color_5": "#ED1C24" }`
26
26
  */
@@ -28,8 +28,8 @@ export interface ISiteThemeService {
28
28
  /**
29
29
  * Site's theme fonts, keyed by theme font ID.
30
30
  *
31
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
32
- * changing it affects other code on the page.
31
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
32
+ * in all of them, and the site doesn't save it.
33
33
  *
34
34
  * @exampleValue `{ "font_0": "normal normal normal 40px/1.4em helvetica-w01-bold,sans-serif", "font_1": "normal normal normal 16px/1.4em proxima-n-w01-reg,sans-serif" }`
35
35
  */
@@ -40,8 +40,8 @@ export interface ISiteThemeService {
40
40
  * The host fills `colorsMap` and `colors` from the same list of theme colors, so entry `n` is the theme
41
41
  * color with ID `color_<n>`.
42
42
  *
43
- * Don't change the array, for example by sorting it in place. The property is read-only, but the array
44
- * it returns isn't, and changing it affects other code on the page.
43
+ * Don't change the array, for example by sorting it in place. Every component on the page reads the same
44
+ * array, so a change shows in all of them, and the site doesn't save it.
45
45
  *
46
46
  * @exampleValue `["#FFFFFF", "#E8E6E6", "#9C9C9C", "#1F1F1F", "#0088CB", "#ED1C24"]`
47
47
  */
@@ -51,7 +51,7 @@ export interface ISiteThemeService {
51
51
  }
52
52
  /** Definition of the Site Theme service, used to resolve it from the services manager. */
53
53
  export type ISiteThemeDefinition = ServiceDefinition<ISiteThemeService, ISiteThemeServiceConfig>;
54
- /** Definition of the Site Theme service. Specify it in `useService()` or `servicesManager.getService()`. */
54
+ /** Definition of the Site Theme service. Specify it in `useService()`. */
55
55
  export declare const SiteThemeDefinition: string & {
56
56
  __api: ISiteThemeService;
57
57
  __config: ISiteThemeServiceConfig;
@@ -1,4 +1,4 @@
1
1
  import { defineService } from '@wix/services-definitions';
2
- /** Definition of the Site Theme service. Specify it in `useService()` or `servicesManager.getService()`. */
2
+ /** Definition of the Site Theme service. Specify it in `useService()`. */
3
3
  export const SiteThemeDefinition = defineService('@wix/site-service-site-theme');
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AA0DzD,4GAA4G;AAC5G,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAC/C,8BAA8B,CAC9B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AA0DzD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAC/C,8BAA8B,CAC9B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-service-site-theme",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist",
@@ -77,5 +77,5 @@
77
77
  ]
78
78
  }
79
79
  },
80
- "falconPackageHash": "fd9bc41bb4cf871ebd000b453100cdc1d2953d1260617f8901d4833e"
80
+ "falconPackageHash": "5f4da3cf5aef09b6afc88b9fd5eaaa34b10aae3996bed8712de2a2f0"
81
81
  }
@@ -22,8 +22,8 @@ export interface ISiteThemeService {
22
22
  * The host fills `colors` and `colorsMap` from the same list of theme colors, so `colors['color_<n>']`
23
23
  * is the same value as `colorsMap[n]`, counting from `color_0`.
24
24
  *
25
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
26
- * changing it affects other code on the page.
25
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
26
+ * in all of them, and the site doesn't save it.
27
27
  *
28
28
  * @exampleValue `{ "color_0": "#FFFFFF", "color_1": "#E8E6E6", "color_2": "#9C9C9C", "color_3": "#1F1F1F", "color_4": "#0088CB", "color_5": "#ED1C24" }`
29
29
  */
@@ -31,8 +31,8 @@ export interface ISiteThemeService {
31
31
  /**
32
32
  * Site's theme fonts, keyed by theme font ID.
33
33
  *
34
- * Don't change the object's entries. The property is read-only, but the object it returns isn't, and
35
- * changing it affects other code on the page.
34
+ * Don't change the object's entries. Every component on the page reads the same object, so a change shows
35
+ * in all of them, and the site doesn't save it.
36
36
  *
37
37
  * @exampleValue `{ "font_0": "normal normal normal 40px/1.4em helvetica-w01-bold,sans-serif", "font_1": "normal normal normal 16px/1.4em proxima-n-w01-reg,sans-serif" }`
38
38
  */
@@ -43,8 +43,8 @@ export interface ISiteThemeService {
43
43
  * The host fills `colorsMap` and `colors` from the same list of theme colors, so entry `n` is the theme
44
44
  * color with ID `color_<n>`.
45
45
  *
46
- * Don't change the array, for example by sorting it in place. The property is read-only, but the array
47
- * it returns isn't, and changing it affects other code on the page.
46
+ * Don't change the array, for example by sorting it in place. Every component on the page reads the same
47
+ * array, so a change shows in all of them, and the site doesn't save it.
48
48
  *
49
49
  * @exampleValue `["#FFFFFF", "#E8E6E6", "#9C9C9C", "#1F1F1F", "#0088CB", "#ED1C24"]`
50
50
  */
@@ -56,7 +56,7 @@ export interface ISiteThemeService {
56
56
  /** Definition of the Site Theme service, used to resolve it from the services manager. */
57
57
  export type ISiteThemeDefinition = ServiceDefinition<ISiteThemeService, ISiteThemeServiceConfig>
58
58
 
59
- /** Definition of the Site Theme service. Specify it in `useService()` or `servicesManager.getService()`. */
59
+ /** Definition of the Site Theme service. Specify it in `useService()`. */
60
60
  export const SiteThemeDefinition = defineService<ISiteThemeService, ISiteThemeServiceConfig>(
61
61
  '@wix/site-service-site-theme'
62
62
  )