@sitecore-jss/sitecore-jss-nextjs 22.2.0-canary.39 → 22.2.0-canary.40
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-nextjs",
|
|
3
|
-
"version": "22.2.0-canary.
|
|
3
|
+
"version": "22.2.0-canary.40",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"react-dom": "^18.2.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@sitecore-jss/sitecore-jss": "^22.2.0-canary.
|
|
76
|
-
"@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.
|
|
77
|
-
"@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.
|
|
75
|
+
"@sitecore-jss/sitecore-jss": "^22.2.0-canary.40",
|
|
76
|
+
"@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.40",
|
|
77
|
+
"@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.40",
|
|
78
78
|
"@vercel/kv": "^0.2.1",
|
|
79
79
|
"prop-types": "^15.8.1",
|
|
80
80
|
"regex-parser": "^2.2.11",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"description": "",
|
|
84
84
|
"types": "types/index.d.ts",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "5df1777482a509977ed6b3273e7eef6e3053869f",
|
|
86
86
|
"files": [
|
|
87
87
|
"dist",
|
|
88
88
|
"types",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextApiRequest, NextApiResponse } from 'next';
|
|
2
2
|
import { AxiosDataFetcher } from '@sitecore-jss/sitecore-jss';
|
|
3
3
|
import { EditMode, LayoutServicePageState } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
|
-
import { LayoutKind } from '@sitecore-jss/sitecore-jss/editing';
|
|
4
|
+
import { RenderMetadataQueryParams, LayoutKind } from '@sitecore-jss/sitecore-jss/editing';
|
|
5
5
|
import { EditingDataService } from './editing-data-service';
|
|
6
6
|
import { RenderMiddlewareBase } from './render-middleware';
|
|
7
7
|
/**
|
|
@@ -96,26 +96,11 @@ export declare class ChromesHandler extends RenderMiddlewareBase {
|
|
|
96
96
|
* Configuration for the Editing Metadata Handler.
|
|
97
97
|
*/
|
|
98
98
|
export type EditingRenderMiddlewareMetadataConfig = Pick<EditingRenderMiddlewareConfig, 'resolvePageUrl'>;
|
|
99
|
-
/**
|
|
100
|
-
* Query parameters appended to the page route URL
|
|
101
|
-
* Appended when XMCloud Pages preview (editing) Metadata Edit Mode is used
|
|
102
|
-
*/
|
|
103
|
-
export type MetadataQueryParams = {
|
|
104
|
-
secret: string;
|
|
105
|
-
sc_lang: string;
|
|
106
|
-
sc_itemid: string;
|
|
107
|
-
sc_site: string;
|
|
108
|
-
route: string;
|
|
109
|
-
mode: Exclude<LayoutServicePageState, 'normal'>;
|
|
110
|
-
sc_variant?: string;
|
|
111
|
-
sc_version?: string;
|
|
112
|
-
sc_layoutKind?: LayoutKind;
|
|
113
|
-
};
|
|
114
99
|
/**
|
|
115
100
|
* Next.js API request with Metadata query parameters.
|
|
116
101
|
*/
|
|
117
102
|
type MetadataNextApiRequest = NextApiRequest & {
|
|
118
|
-
query:
|
|
103
|
+
query: RenderMetadataQueryParams;
|
|
119
104
|
};
|
|
120
105
|
/**
|
|
121
106
|
* Data for Next.js Preview (Editing) Metadata Edit Mode.
|