@wix/site-service-site-info 1.0.4 → 1.0.5
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 +5 -7
- package/cjs/build/definition/index.js +1 -1
- package/cjs/build/definition/index.js.map +1 -1
- package/dist/definition/index.d.ts +5 -7
- package/dist/definition/index.js +1 -1
- package/dist/definition/index.js.map +1 -1
- package/package.json +2 -2
- package/src/definition/index.ts +5 -7
|
@@ -21,9 +21,8 @@ export interface ISiteInfoService {
|
|
|
21
21
|
*
|
|
22
22
|
* A Wix user sets it in the Website Settings section of the site's dashboard.
|
|
23
23
|
*
|
|
24
|
-
* This value can change while the page is open. It changes when a Wix user renames the site while
|
|
25
|
-
*
|
|
26
|
-
* changes.
|
|
24
|
+
* This value can change while the page is open. It changes when a Wix user renames the site while editing
|
|
25
|
+
* it. Read it while a component renders, so the component updates when it changes.
|
|
27
26
|
*
|
|
28
27
|
* `''` when the site has no display name.
|
|
29
28
|
*
|
|
@@ -35,9 +34,8 @@ export interface ISiteInfoService {
|
|
|
35
34
|
*
|
|
36
35
|
* The site gets a new revision each time a Wix user saves or publishes it after a change.
|
|
37
36
|
*
|
|
38
|
-
* This value can change while the page is open. It changes when the site gets a new revision while a
|
|
39
|
-
*
|
|
40
|
-
* react to changes.
|
|
37
|
+
* This value can change while the page is open. It changes when the site gets a new revision while a Wix
|
|
38
|
+
* user is editing it. Read it while a component renders, so the component updates when it changes.
|
|
41
39
|
*
|
|
42
40
|
* `0` when no revision is available.
|
|
43
41
|
*
|
|
@@ -49,7 +47,7 @@ export interface ISiteInfoService {
|
|
|
49
47
|
}
|
|
50
48
|
/** Definition of the Site Info service, used to resolve it from the services manager. */
|
|
51
49
|
export type ISiteInfoDefinition = ServiceDefinition<ISiteInfoService, ISiteInfoServiceConfig>;
|
|
52
|
-
/** Definition of the Site Info service. Specify it in `useService()
|
|
50
|
+
/** Definition of the Site Info service. Specify it in `useService()`. */
|
|
53
51
|
export declare const SiteInfoDefinition: string & {
|
|
54
52
|
__api: ISiteInfoService;
|
|
55
53
|
__config: ISiteInfoServiceConfig;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SiteInfoDefinition = void 0;
|
|
4
4
|
const services_definitions_1 = require("@wix/services-definitions");
|
|
5
|
-
/** Definition of the Site Info service. Specify it in `useService()
|
|
5
|
+
/** Definition of the Site Info service. Specify it in `useService()`. */
|
|
6
6
|
exports.SiteInfoDefinition = (0, services_definitions_1.defineService)('@wix/site-service-site-info');
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AAsDzD,yEAAyE;AAC5D,QAAA,kBAAkB,GAAG,IAAA,oCAAa,EAA2C,6BAA6B,CAAC,CAAA"}
|
|
@@ -21,9 +21,8 @@ export interface ISiteInfoService {
|
|
|
21
21
|
*
|
|
22
22
|
* A Wix user sets it in the Website Settings section of the site's dashboard.
|
|
23
23
|
*
|
|
24
|
-
* This value can change while the page is open. It changes when a Wix user renames the site while
|
|
25
|
-
*
|
|
26
|
-
* changes.
|
|
24
|
+
* This value can change while the page is open. It changes when a Wix user renames the site while editing
|
|
25
|
+
* it. Read it while a component renders, so the component updates when it changes.
|
|
27
26
|
*
|
|
28
27
|
* `''` when the site has no display name.
|
|
29
28
|
*
|
|
@@ -35,9 +34,8 @@ export interface ISiteInfoService {
|
|
|
35
34
|
*
|
|
36
35
|
* The site gets a new revision each time a Wix user saves or publishes it after a change.
|
|
37
36
|
*
|
|
38
|
-
* This value can change while the page is open. It changes when the site gets a new revision while a
|
|
39
|
-
*
|
|
40
|
-
* react to changes.
|
|
37
|
+
* This value can change while the page is open. It changes when the site gets a new revision while a Wix
|
|
38
|
+
* user is editing it. Read it while a component renders, so the component updates when it changes.
|
|
41
39
|
*
|
|
42
40
|
* `0` when no revision is available.
|
|
43
41
|
*
|
|
@@ -49,7 +47,7 @@ export interface ISiteInfoService {
|
|
|
49
47
|
}
|
|
50
48
|
/** Definition of the Site Info service, used to resolve it from the services manager. */
|
|
51
49
|
export type ISiteInfoDefinition = ServiceDefinition<ISiteInfoService, ISiteInfoServiceConfig>;
|
|
52
|
-
/** Definition of the Site Info service. Specify it in `useService()
|
|
50
|
+
/** Definition of the Site Info service. Specify it in `useService()`. */
|
|
53
51
|
export declare const SiteInfoDefinition: string & {
|
|
54
52
|
__api: ISiteInfoService;
|
|
55
53
|
__config: ISiteInfoServiceConfig;
|
package/dist/definition/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { defineService } from '@wix/services-definitions';
|
|
2
|
-
/** Definition of the Site Info service. Specify it in `useService()
|
|
2
|
+
/** Definition of the Site Info service. Specify it in `useService()`. */
|
|
3
3
|
export const SiteInfoDefinition = defineService('@wix/site-service-site-info');
|
|
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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAsDzD,yEAAyE;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAA2C,6BAA6B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-service-site-info",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
80
|
+
"falconPackageHash": "4eb1917f3c9bef8261190d04856fe9c7dc0c21f5f3ace9b9d8d8cb92"
|
|
81
81
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -24,9 +24,8 @@ export interface ISiteInfoService {
|
|
|
24
24
|
*
|
|
25
25
|
* A Wix user sets it in the Website Settings section of the site's dashboard.
|
|
26
26
|
*
|
|
27
|
-
* This value can change while the page is open. It changes when a Wix user renames the site while
|
|
28
|
-
*
|
|
29
|
-
* changes.
|
|
27
|
+
* This value can change while the page is open. It changes when a Wix user renames the site while editing
|
|
28
|
+
* it. Read it while a component renders, so the component updates when it changes.
|
|
30
29
|
*
|
|
31
30
|
* `''` when the site has no display name.
|
|
32
31
|
*
|
|
@@ -38,9 +37,8 @@ export interface ISiteInfoService {
|
|
|
38
37
|
*
|
|
39
38
|
* The site gets a new revision each time a Wix user saves or publishes it after a change.
|
|
40
39
|
*
|
|
41
|
-
* This value can change while the page is open. It changes when the site gets a new revision while a
|
|
42
|
-
*
|
|
43
|
-
* react to changes.
|
|
40
|
+
* This value can change while the page is open. It changes when the site gets a new revision while a Wix
|
|
41
|
+
* user is editing it. Read it while a component renders, so the component updates when it changes.
|
|
44
42
|
*
|
|
45
43
|
* `0` when no revision is available.
|
|
46
44
|
*
|
|
@@ -54,5 +52,5 @@ export interface ISiteInfoService {
|
|
|
54
52
|
/** Definition of the Site Info service, used to resolve it from the services manager. */
|
|
55
53
|
export type ISiteInfoDefinition = ServiceDefinition<ISiteInfoService, ISiteInfoServiceConfig>
|
|
56
54
|
|
|
57
|
-
/** Definition of the Site Info service. Specify it in `useService()
|
|
55
|
+
/** Definition of the Site Info service. Specify it in `useService()`. */
|
|
58
56
|
export const SiteInfoDefinition = defineService<ISiteInfoService, ISiteInfoServiceConfig>('@wix/site-service-site-info')
|