@cmssy/next 14.1.0 → 15.0.0

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/dist/server.cjs CHANGED
@@ -260,7 +260,7 @@ async function isCmssyEditMode() {
260
260
  async function CmssyLayoutSlot({
261
261
  config,
262
262
  blocks,
263
- position,
263
+ region,
264
264
  path,
265
265
  locale: explicitLocale,
266
266
  editMode,
@@ -272,7 +272,7 @@ async function CmssyLayoutSlot({
272
272
  children
273
273
  }) {
274
274
  const layout = await react.resolveCmssyLayout(config, {
275
- position,
275
+ region,
276
276
  blocks,
277
277
  editMode,
278
278
  preview,
package/dist/server.d.cts CHANGED
@@ -18,7 +18,7 @@ type CmssyLayoutSlotRenderProps<C extends CmssyConfig = CmssyConfig, P extends C
18
18
  interface CmssyLayoutSlotBaseProps<C extends CmssyConfig, P extends CmssyRegionOf<C>> {
19
19
  config: C;
20
20
  blocks: BlockDefinition[];
21
- position: P;
21
+ region: P;
22
22
  editMode: boolean;
23
23
  preview?: boolean;
24
24
  page?: string;
@@ -35,7 +35,7 @@ type CmssyLayoutSlotLocaleSource = {
35
35
  path?: never;
36
36
  };
37
37
  type CmssyLayoutSlotProps<C extends CmssyConfig = CmssyConfig, P extends CmssyRegionOf<C> = CmssyRegionOf<C>> = CmssyLayoutSlotBaseProps<C, P> & CmssyLayoutSlotLocaleSource;
38
- declare function CmssyLayoutSlot<C extends CmssyConfig, P extends CmssyRegionOf<C>>({ config, blocks, position, path, locale: explicitLocale, editMode, preview, page, editable, appContext, retry, children, }: CmssyLayoutSlotProps<C, P>): Promise<react_jsx_runtime.JSX.Element>;
38
+ declare function CmssyLayoutSlot<C extends CmssyConfig, P extends CmssyRegionOf<C>>({ config, blocks, region, path, locale: explicitLocale, editMode, preview, page, editable, appContext, retry, children, }: CmssyLayoutSlotProps<C, P>): Promise<react_jsx_runtime.JSX.Element>;
39
39
 
40
40
  declare function resolveCmssyLayout<C extends CmssyConfig, P extends CmssyRegionOf<C>>(config: C, options: ResolveCmssyLayoutOptions<C, P>): Promise<CmssyLayoutResolution<C, P>>;
41
41
 
package/dist/server.d.ts CHANGED
@@ -18,7 +18,7 @@ type CmssyLayoutSlotRenderProps<C extends CmssyConfig = CmssyConfig, P extends C
18
18
  interface CmssyLayoutSlotBaseProps<C extends CmssyConfig, P extends CmssyRegionOf<C>> {
19
19
  config: C;
20
20
  blocks: BlockDefinition[];
21
- position: P;
21
+ region: P;
22
22
  editMode: boolean;
23
23
  preview?: boolean;
24
24
  page?: string;
@@ -35,7 +35,7 @@ type CmssyLayoutSlotLocaleSource = {
35
35
  path?: never;
36
36
  };
37
37
  type CmssyLayoutSlotProps<C extends CmssyConfig = CmssyConfig, P extends CmssyRegionOf<C> = CmssyRegionOf<C>> = CmssyLayoutSlotBaseProps<C, P> & CmssyLayoutSlotLocaleSource;
38
- declare function CmssyLayoutSlot<C extends CmssyConfig, P extends CmssyRegionOf<C>>({ config, blocks, position, path, locale: explicitLocale, editMode, preview, page, editable, appContext, retry, children, }: CmssyLayoutSlotProps<C, P>): Promise<react_jsx_runtime.JSX.Element>;
38
+ declare function CmssyLayoutSlot<C extends CmssyConfig, P extends CmssyRegionOf<C>>({ config, blocks, region, path, locale: explicitLocale, editMode, preview, page, editable, appContext, retry, children, }: CmssyLayoutSlotProps<C, P>): Promise<react_jsx_runtime.JSX.Element>;
39
39
 
40
40
  declare function resolveCmssyLayout<C extends CmssyConfig, P extends CmssyRegionOf<C>>(config: C, options: ResolveCmssyLayoutOptions<C, P>): Promise<CmssyLayoutResolution<C, P>>;
41
41
 
package/dist/server.js CHANGED
@@ -258,7 +258,7 @@ async function isCmssyEditMode() {
258
258
  async function CmssyLayoutSlot({
259
259
  config,
260
260
  blocks,
261
- position,
261
+ region,
262
262
  path,
263
263
  locale: explicitLocale,
264
264
  editMode,
@@ -270,7 +270,7 @@ async function CmssyLayoutSlot({
270
270
  children
271
271
  }) {
272
272
  const layout = await resolveCmssyLayout(config, {
273
- position,
273
+ region,
274
274
  blocks,
275
275
  editMode,
276
276
  preview,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/next",
3
- "version": "14.1.0",
3
+ "version": "15.0.0",
4
4
  "description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
5
5
  "keywords": [
6
6
  "cmssy",
@@ -71,7 +71,7 @@
71
71
  "dist"
72
72
  ],
73
73
  "peerDependencies": {
74
- "@cmssy/react": "^14.1.0",
74
+ "@cmssy/react": "^15.0.0",
75
75
  "next": ">=15",
76
76
  "react": "^18.2.0 || ^19.0.0",
77
77
  "react-dom": "^18.2.0 || ^19.0.0"
@@ -85,12 +85,12 @@
85
85
  "tsup": "^8.3.0",
86
86
  "typescript": "^5.6.0",
87
87
  "vitest": "^2.1.0",
88
- "@cmssy/react": "14.1.0"
88
+ "@cmssy/react": "15.0.0"
89
89
  },
90
90
  "dependencies": {
91
- "@cmssy/types": "0.39.0",
91
+ "@cmssy/types": "0.40.0",
92
92
  "server-only": "^0.0.1",
93
- "@cmssy/core": "14.1.0"
93
+ "@cmssy/core": "15.0.0"
94
94
  },
95
95
  "scripts": {
96
96
  "build": "tsup",