@cmssy/next 6.2.0 → 7.0.1

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
@@ -284,7 +284,7 @@ async function getCmssyLocale(config, options) {
284
284
  const { defaultLocale } = await core.resolveSiteLocales(config);
285
285
  return defaultLocale;
286
286
  }
287
- async function CmssyChrome({
287
+ async function CmssyLayoutSlot({
288
288
  config,
289
289
  blocks,
290
290
  position,
@@ -1044,7 +1044,7 @@ async function fetchProduct(config, options) {
1044
1044
  }
1045
1045
 
1046
1046
  exports.CMSSY_CART_COOKIE = CMSSY_CART_COOKIE;
1047
- exports.CmssyChrome = CmssyChrome;
1047
+ exports.CmssyLayoutSlot = CmssyLayoutSlot;
1048
1048
  exports.buildCmssyMetadata = buildCmssyMetadata;
1049
1049
  exports.createCmssyAuthRoute = createCmssyAuthRoute;
1050
1050
  exports.createCmssyCartRoute = createCmssyCartRoute;
package/dist/server.d.cts CHANGED
@@ -22,7 +22,7 @@ interface CreateCmssyNotFoundOptions {
22
22
  */
23
23
  declare function createCmssyNotFound(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyNotFoundOptions): () => Promise<string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined>;
24
24
 
25
- interface CmssyChromeProps {
25
+ interface CmssyLayoutSlotProps {
26
26
  config: CmssyConfig;
27
27
  blocks: BlockDefinition[];
28
28
  position: string;
@@ -58,7 +58,7 @@ interface CmssyChromeProps {
58
58
  * Getting this wrong is invisible - the site looks right and the editor shows a
59
59
  * header it cannot edit, or the published version of one. Both shipped before.
60
60
  */
61
- declare function CmssyChrome({ config, blocks, position, page, editable, }: CmssyChromeProps): Promise<react_jsx_runtime.JSX.Element>;
61
+ declare function CmssyLayoutSlot({ config, blocks, position, page, editable, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
62
62
 
63
63
  interface SeoBaseUrlOption {
64
64
  /**
@@ -203,4 +203,4 @@ declare function isCmssyEditMode(): Promise<boolean>;
203
203
  declare function fetchProducts(config: CmssyConfig, options: FetchProductsOptions): Promise<CmssyProductPage>;
204
204
  declare function fetchProduct(config: CmssyConfig, options: FetchProductOptions): Promise<CmssyProduct | null>;
205
205
 
206
- export { type BuildCmssyMetadataOptions, CMSSY_CART_COOKIE, type CmssyAuthRouteHandlers, type CmssyCartRouteHandlers, CmssyChrome, type CmssyChromeProps, type CmssyDraftRouteConfig, type CmssyOrdersRouteHandlers, type CmssySitemapContext, type CreateCmssyNotFoundOptions, type CreateCmssyRobotsOptions, type CreateCmssySitemapOptions, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyNotFound, createCmssyOrdersRoute, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
206
+ export { type BuildCmssyMetadataOptions, CMSSY_CART_COOKIE, type CmssyAuthRouteHandlers, type CmssyCartRouteHandlers, type CmssyDraftRouteConfig, CmssyLayoutSlot, type CmssyLayoutSlotProps, type CmssyOrdersRouteHandlers, type CmssySitemapContext, type CreateCmssyNotFoundOptions, type CreateCmssyRobotsOptions, type CreateCmssySitemapOptions, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyNotFound, createCmssyOrdersRoute, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
package/dist/server.d.ts CHANGED
@@ -22,7 +22,7 @@ interface CreateCmssyNotFoundOptions {
22
22
  */
23
23
  declare function createCmssyNotFound(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyNotFoundOptions): () => Promise<string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined>;
24
24
 
25
- interface CmssyChromeProps {
25
+ interface CmssyLayoutSlotProps {
26
26
  config: CmssyConfig;
27
27
  blocks: BlockDefinition[];
28
28
  position: string;
@@ -58,7 +58,7 @@ interface CmssyChromeProps {
58
58
  * Getting this wrong is invisible - the site looks right and the editor shows a
59
59
  * header it cannot edit, or the published version of one. Both shipped before.
60
60
  */
61
- declare function CmssyChrome({ config, blocks, position, page, editable, }: CmssyChromeProps): Promise<react_jsx_runtime.JSX.Element>;
61
+ declare function CmssyLayoutSlot({ config, blocks, position, page, editable, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
62
62
 
63
63
  interface SeoBaseUrlOption {
64
64
  /**
@@ -203,4 +203,4 @@ declare function isCmssyEditMode(): Promise<boolean>;
203
203
  declare function fetchProducts(config: CmssyConfig, options: FetchProductsOptions): Promise<CmssyProductPage>;
204
204
  declare function fetchProduct(config: CmssyConfig, options: FetchProductOptions): Promise<CmssyProduct | null>;
205
205
 
206
- export { type BuildCmssyMetadataOptions, CMSSY_CART_COOKIE, type CmssyAuthRouteHandlers, type CmssyCartRouteHandlers, CmssyChrome, type CmssyChromeProps, type CmssyDraftRouteConfig, type CmssyOrdersRouteHandlers, type CmssySitemapContext, type CreateCmssyNotFoundOptions, type CreateCmssyRobotsOptions, type CreateCmssySitemapOptions, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyNotFound, createCmssyOrdersRoute, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
206
+ export { type BuildCmssyMetadataOptions, CMSSY_CART_COOKIE, type CmssyAuthRouteHandlers, type CmssyCartRouteHandlers, type CmssyDraftRouteConfig, CmssyLayoutSlot, type CmssyLayoutSlotProps, type CmssyOrdersRouteHandlers, type CmssySitemapContext, type CreateCmssyNotFoundOptions, type CreateCmssyRobotsOptions, type CreateCmssySitemapOptions, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyNotFound, createCmssyOrdersRoute, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
package/dist/server.js CHANGED
@@ -282,7 +282,7 @@ async function getCmssyLocale(config, options) {
282
282
  const { defaultLocale } = await resolveSiteLocales$1(config);
283
283
  return defaultLocale;
284
284
  }
285
- async function CmssyChrome({
285
+ async function CmssyLayoutSlot({
286
286
  config,
287
287
  blocks,
288
288
  position,
@@ -1041,4 +1041,4 @@ async function fetchProduct(config, options) {
1041
1041
  return fetchProduct$1(config, { ...options, locale });
1042
1042
  }
1043
1043
 
1044
- export { CMSSY_CART_COOKIE, CmssyChrome, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyEditPage, createCmssyNotFound, createCmssyOrdersRoute, createCmssyPage, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
1044
+ export { CMSSY_CART_COOKIE, CmssyLayoutSlot, buildCmssyMetadata, createCmssyAuthRoute, createCmssyCartRoute, createCmssyEditPage, createCmssyNotFound, createCmssyOrdersRoute, createCmssyPage, createCmssyRobots, createCmssySitemap, createDraftRoute, fetchProduct, fetchProducts, getCmssyAccessToken, getCmssyLocale, getCmssyUser, isCmssyEditMode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/next",
3
- "version": "6.2.0",
3
+ "version": "7.0.1",
4
4
  "description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
5
5
  "keywords": [
6
6
  "cmssy",
@@ -56,7 +56,7 @@
56
56
  "dist"
57
57
  ],
58
58
  "peerDependencies": {
59
- "@cmssy/react": "^6.2.0",
59
+ "@cmssy/react": "^7.0.1",
60
60
  "next": ">=15",
61
61
  "react": "^18.2.0 || ^19.0.0",
62
62
  "react-dom": "^18.2.0 || ^19.0.0"
@@ -70,12 +70,12 @@
70
70
  "tsup": "^8.3.0",
71
71
  "typescript": "^5.6.0",
72
72
  "vitest": "^2.1.0",
73
- "@cmssy/react": "6.2.0"
73
+ "@cmssy/react": "7.0.1"
74
74
  },
75
75
  "dependencies": {
76
76
  "@cmssy/types": "0.27.0",
77
77
  "server-only": "^0.0.1",
78
- "@cmssy/core": "6.2.0"
78
+ "@cmssy/core": "7.0.1"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsup",