@wix/site-service-editor-context 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 +2 -3
- 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 +2 -3
- package/dist/definition/index.js.map +1 -1
- package/package.json +17 -7
- package/src/definition/index.ts +2 -3
|
@@ -44,9 +44,8 @@ export interface IEditorContextService {
|
|
|
44
44
|
* This is `false` while a Wix user edits the site in the editor, as well as on the live site, so
|
|
45
45
|
* `false` doesn't necessarily mean the code is running on the live site.
|
|
46
46
|
*
|
|
47
|
-
* This value can change while the page is open. It changes when the Wix user switches between editing
|
|
48
|
-
*
|
|
49
|
-
* to react to changes.
|
|
47
|
+
* This value can change while the page is open. It changes when the Wix user switches between editing the
|
|
48
|
+
* site and previewing it. Read it while a component renders, so the component updates when it changes.
|
|
50
49
|
*
|
|
51
50
|
* @exampleValue false
|
|
52
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAkEzD,gHAAgH;AACnG,QAAA,uBAAuB,GAAG,IAAA,oCAAa,EACnD,kCAAkC,CAClC,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"}
|
|
@@ -44,9 +44,8 @@ export interface IEditorContextService {
|
|
|
44
44
|
* This is `false` while a Wix user edits the site in the editor, as well as on the live site, so
|
|
45
45
|
* `false` doesn't necessarily mean the code is running on the live site.
|
|
46
46
|
*
|
|
47
|
-
* This value can change while the page is open. It changes when the Wix user switches between editing
|
|
48
|
-
*
|
|
49
|
-
* to react to changes.
|
|
47
|
+
* This value can change while the page is open. It changes when the Wix user switches between editing the
|
|
48
|
+
* site and previewing it. Read it while a component renders, so the component updates when it changes.
|
|
50
49
|
*
|
|
51
50
|
* @exampleValue false
|
|
52
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAkEzD,gHAAgH;AAChH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CACnD,kCAAkC,CAClC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-service-editor-context",
|
|
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": "949feb10763593160189c4479c0b51cdbe55a564123fdb025014592d"
|
|
81
91
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -47,9 +47,8 @@ export interface IEditorContextService {
|
|
|
47
47
|
* This is `false` while a Wix user edits the site in the editor, as well as on the live site, so
|
|
48
48
|
* `false` doesn't necessarily mean the code is running on the live site.
|
|
49
49
|
*
|
|
50
|
-
* This value can change while the page is open. It changes when the Wix user switches between editing
|
|
51
|
-
*
|
|
52
|
-
* to react to changes.
|
|
50
|
+
* This value can change while the page is open. It changes when the Wix user switches between editing the
|
|
51
|
+
* site and previewing it. Read it while a component renders, so the component updates when it changes.
|
|
53
52
|
*
|
|
54
53
|
* @exampleValue false
|
|
55
54
|
*/
|