@wix/site-service-site-theme 1.0.6 → 1.0.8
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.
- package/cjs/build/definition/index.d.ts +7 -7
- package/cjs/build/definition/index.js +1 -1
- package/cjs/build/definition/index.js.map +1 -1
- package/cjs/build/index.js +3 -16
- package/cjs/build/index.js.map +1 -1
- package/dist/definition/index.d.ts +7 -7
- package/dist/definition/index.js +1 -1
- package/dist/definition/index.js.map +1 -1
- package/package.json +17 -7
- package/src/definition/index.ts +7 -7
|
@@ -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.
|
|
23
|
-
*
|
|
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.
|
|
32
|
-
*
|
|
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.
|
|
44
|
-
*
|
|
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()
|
|
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()
|
|
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,
|
|
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"}
|
package/cjs/build/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./definition"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./implementations"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
package/cjs/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,4DAAiC"}
|
|
@@ -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.
|
|
23
|
-
*
|
|
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.
|
|
32
|
-
*
|
|
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.
|
|
44
|
-
*
|
|
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()
|
|
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;
|
package/dist/definition/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { defineService } from '@wix/services-definitions';
|
|
2
|
-
/** Definition of the Site Theme service. Specify it in `useService()
|
|
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,
|
|
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.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -48,18 +48,29 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc -b . && tsc --project tsconfig.cjs.json",
|
|
51
|
-
"lint": "pnpm --workspace-root run lint:package --package $npm_package_name",
|
|
52
51
|
"test": "vitest --run && pnpm run test-type-check",
|
|
53
52
|
"test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
|
|
54
53
|
},
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@wix/services-definitions": "^0.
|
|
57
|
-
"@wix/services-manager": "^0.
|
|
55
|
+
"@wix/services-definitions": "^1.0.5",
|
|
56
|
+
"@wix/services-manager": "^1.0.7",
|
|
57
|
+
"tslib": "^2.8.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"typescript": "~7.0.2",
|
|
61
61
|
"vitest": "4.1.11"
|
|
62
62
|
},
|
|
63
|
+
"nx": {
|
|
64
|
+
"targets": {
|
|
65
|
+
"build": {
|
|
66
|
+
"outputs": [
|
|
67
|
+
"{projectRoot}/dist/**/*",
|
|
68
|
+
"{projectRoot}/cjs/build/**/*",
|
|
69
|
+
"{projectRoot}/*.tsbuildinfo"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
63
74
|
"publishUnscoped": false,
|
|
64
75
|
"wix": {
|
|
65
76
|
"artifact": {
|
|
@@ -72,10 +83,9 @@
|
|
|
72
83
|
},
|
|
73
84
|
"validations": {
|
|
74
85
|
"postBuild": [
|
|
75
|
-
"test"
|
|
76
|
-
"lint"
|
|
86
|
+
"test"
|
|
77
87
|
]
|
|
78
88
|
}
|
|
79
89
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
90
|
+
"falconPackageHash": "78d2a129e4f2605fdf2b556826fa82b7b9efaf0cb49119354742aeaa"
|
|
81
91
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -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.
|
|
26
|
-
*
|
|
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.
|
|
35
|
-
*
|
|
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.
|
|
47
|
-
*
|
|
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()
|
|
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
|
)
|