@sitecore-jss/sitecore-jss-nextjs 22.2.0-canary.38 → 22.2.0-canary.39

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.
@@ -221,6 +221,7 @@ class MetadataHandler {
221
221
  version: query.sc_version,
222
222
  editMode: layout_1.EditMode.Metadata,
223
223
  pageState: query.mode,
224
+ layoutKind: query.sc_layoutKind,
224
225
  },
225
226
  // Cache the preview data for 3 seconds to ensure the page is rendered with the correct preview data not the cached one
226
227
  {
@@ -216,6 +216,7 @@ export class MetadataHandler {
216
216
  version: query.sc_version,
217
217
  editMode: EditMode.Metadata,
218
218
  pageState: query.mode,
219
+ layoutKind: query.sc_layoutKind,
219
220
  },
220
221
  // Cache the preview data for 3 seconds to ensure the page is rendered with the correct preview data not the cached one
221
222
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-nextjs",
3
- "version": "22.2.0-canary.38",
3
+ "version": "22.2.0-canary.39",
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.38",
76
- "@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.38",
77
- "@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.38",
75
+ "@sitecore-jss/sitecore-jss": "^22.2.0-canary.39",
76
+ "@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.39",
77
+ "@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.39",
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": "e232f6f998a3a411b5d7d7d3f5c7f61b90a21278",
85
+ "gitHead": "b4f4b36dd7b9b0aadabfeca4c8886ca3db8cfec5",
86
86
  "files": [
87
87
  "dist",
88
88
  "types",
@@ -1,6 +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
5
  import { EditingDataService } from './editing-data-service';
5
6
  import { RenderMiddlewareBase } from './render-middleware';
6
7
  /**
@@ -108,6 +109,7 @@ export type MetadataQueryParams = {
108
109
  mode: Exclude<LayoutServicePageState, 'normal'>;
109
110
  sc_variant?: string;
110
111
  sc_version?: string;
112
+ sc_layoutKind?: LayoutKind;
111
113
  };
112
114
  /**
113
115
  * Next.js API request with Metadata query parameters.
@@ -126,6 +128,7 @@ export type EditingMetadataPreviewData = {
126
128
  pageState: Exclude<LayoutServicePageState, 'Normal'>;
127
129
  variantIds: string[];
128
130
  version?: string;
131
+ layoutKind?: LayoutKind;
129
132
  };
130
133
  /**
131
134
  * Type guard for EditingMetadataPreviewData