@sitecore-jss/sitecore-jss-react 21.0.0-canary.78 → 21.0.0-canary.80
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.
|
@@ -18,7 +18,7 @@ function withSitecoreContext(options) {
|
|
|
18
18
|
}
|
|
19
19
|
exports.withSitecoreContext = withSitecoreContext;
|
|
20
20
|
/**
|
|
21
|
-
* This hook grants acсess to the current
|
|
21
|
+
* This hook grants acсess to the current Sitecore page context
|
|
22
22
|
* by default JSS includes the following properties in this context:
|
|
23
23
|
* - pageEditing - Provided by Layout Service, a boolean indicating whether the route is being accessed via the Experience Editor.
|
|
24
24
|
* - pageState - Like pageEditing, but a string: normal, preview or edit.
|
|
@@ -11,7 +11,7 @@ export function withSitecoreContext(options) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* This hook grants acсess to the current
|
|
14
|
+
* This hook grants acсess to the current Sitecore page context
|
|
15
15
|
* by default JSS includes the following properties in this context:
|
|
16
16
|
* - pageEditing - Provided by Layout Service, a boolean indicating whether the route is being accessed via the Experience Editor.
|
|
17
17
|
* - pageState - Like pageEditing, but a string: normal, preview or edit.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-react",
|
|
3
|
-
"version": "21.0.0-canary.
|
|
3
|
+
"version": "21.0.0-canary.80",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"react-dom": "^17.0.2"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@sitecore-jss/sitecore-jss": "^21.0.0-canary.
|
|
64
|
+
"@sitecore-jss/sitecore-jss": "^21.0.0-canary.80",
|
|
65
65
|
"deep-equal": "^2.0.5",
|
|
66
66
|
"prop-types": "^15.7.2",
|
|
67
67
|
"style-attr": "^1.3.0"
|
|
68
68
|
},
|
|
69
69
|
"description": "",
|
|
70
70
|
"types": "types/index.d.ts",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "585800cf2aa32936953d90fe633aa59e0234f2d4",
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|
|
74
74
|
"types"
|
|
@@ -16,7 +16,7 @@ export declare type WithSitecoreContextHocProps<ComponentProps> = Pick<Component
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function withSitecoreContext(options?: WithSitecoreContextOptions): <ComponentProps extends ComponentConsumerProps>(Component: React.ComponentType<ComponentProps>) => (props: WithSitecoreContextHocProps<ComponentProps>) => JSX.Element;
|
|
18
18
|
/**
|
|
19
|
-
* This hook grants acсess to the current
|
|
19
|
+
* This hook grants acсess to the current Sitecore page context
|
|
20
20
|
* by default JSS includes the following properties in this context:
|
|
21
21
|
* - pageEditing - Provided by Layout Service, a boolean indicating whether the route is being accessed via the Experience Editor.
|
|
22
22
|
* - pageState - Like pageEditing, but a string: normal, preview or edit.
|