@cmssy/next 12.9.0 → 12.10.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 +3 -1
- package/dist/server.d.cts +3 -2
- package/dist/server.d.ts +3 -2
- package/dist/server.js +3 -1
- package/package.json +4 -4
package/dist/server.cjs
CHANGED
|
@@ -256,7 +256,8 @@ async function CmssyLayoutSlot({
|
|
|
256
256
|
editMode,
|
|
257
257
|
page = "/",
|
|
258
258
|
editable: Editable,
|
|
259
|
-
appContext
|
|
259
|
+
appContext,
|
|
260
|
+
retry
|
|
260
261
|
}) {
|
|
261
262
|
const resolved = await react.resolveCmssyLayoutSlot(config, {
|
|
262
263
|
position,
|
|
@@ -264,6 +265,7 @@ async function CmssyLayoutSlot({
|
|
|
264
265
|
editMode,
|
|
265
266
|
page,
|
|
266
267
|
appContext,
|
|
268
|
+
retry: retry ?? {},
|
|
267
269
|
...explicitLocale !== void 0 ? { locale: explicitLocale } : { path: path ?? [] }
|
|
268
270
|
});
|
|
269
271
|
const { groups, locale, defaultLocale, enabledLocales } = resolved;
|
package/dist/server.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, c as createCmssyEditPage, d as createCmssyPage } from './index-Q_bLE9vs.cjs';
|
|
2
|
-
import { CmssyConfig, LayoutPosition } from '@cmssy/core';
|
|
2
|
+
import { CmssyConfig, LayoutPosition, RetryPolicy } from '@cmssy/core';
|
|
3
3
|
export { RetryPolicy } from '@cmssy/core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
@@ -33,6 +33,7 @@ interface CmssyLayoutSlotBaseProps {
|
|
|
33
33
|
appContext?: Record<string, unknown>;
|
|
34
34
|
}>;
|
|
35
35
|
appContext?: Record<string, unknown>;
|
|
36
|
+
retry?: RetryPolicy | false;
|
|
36
37
|
}
|
|
37
38
|
type CmssyLayoutSlotLocaleSource = {
|
|
38
39
|
path: string[];
|
|
@@ -42,6 +43,6 @@ type CmssyLayoutSlotLocaleSource = {
|
|
|
42
43
|
path?: never;
|
|
43
44
|
};
|
|
44
45
|
type CmssyLayoutSlotProps = CmssyLayoutSlotBaseProps & CmssyLayoutSlotLocaleSource;
|
|
45
|
-
declare function CmssyLayoutSlot({ config, blocks, position, path, locale: explicitLocale, editMode, page, editable: Editable, appContext, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
|
|
46
|
+
declare function CmssyLayoutSlot({ config, blocks, position, path, locale: explicitLocale, editMode, page, editable: Editable, appContext, retry, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
|
|
46
47
|
|
|
47
48
|
export { type CmssyDraftRouteConfig, CmssyLayoutSlot, type CmssyLayoutSlotProps, createDraftRoute, isCmssyEditMode };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, c as createCmssyEditPage, d as createCmssyPage } from './index-Q_bLE9vs.js';
|
|
2
|
-
import { CmssyConfig, LayoutPosition } from '@cmssy/core';
|
|
2
|
+
import { CmssyConfig, LayoutPosition, RetryPolicy } from '@cmssy/core';
|
|
3
3
|
export { RetryPolicy } from '@cmssy/core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
@@ -33,6 +33,7 @@ interface CmssyLayoutSlotBaseProps {
|
|
|
33
33
|
appContext?: Record<string, unknown>;
|
|
34
34
|
}>;
|
|
35
35
|
appContext?: Record<string, unknown>;
|
|
36
|
+
retry?: RetryPolicy | false;
|
|
36
37
|
}
|
|
37
38
|
type CmssyLayoutSlotLocaleSource = {
|
|
38
39
|
path: string[];
|
|
@@ -42,6 +43,6 @@ type CmssyLayoutSlotLocaleSource = {
|
|
|
42
43
|
path?: never;
|
|
43
44
|
};
|
|
44
45
|
type CmssyLayoutSlotProps = CmssyLayoutSlotBaseProps & CmssyLayoutSlotLocaleSource;
|
|
45
|
-
declare function CmssyLayoutSlot({ config, blocks, position, path, locale: explicitLocale, editMode, page, editable: Editable, appContext, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
|
|
46
|
+
declare function CmssyLayoutSlot({ config, blocks, position, path, locale: explicitLocale, editMode, page, editable: Editable, appContext, retry, }: CmssyLayoutSlotProps): Promise<react_jsx_runtime.JSX.Element>;
|
|
46
47
|
|
|
47
48
|
export { type CmssyDraftRouteConfig, CmssyLayoutSlot, type CmssyLayoutSlotProps, createDraftRoute, isCmssyEditMode };
|
package/dist/server.js
CHANGED
|
@@ -254,7 +254,8 @@ async function CmssyLayoutSlot({
|
|
|
254
254
|
editMode,
|
|
255
255
|
page = "/",
|
|
256
256
|
editable: Editable,
|
|
257
|
-
appContext
|
|
257
|
+
appContext,
|
|
258
|
+
retry
|
|
258
259
|
}) {
|
|
259
260
|
const resolved = await resolveCmssyLayoutSlot(config, {
|
|
260
261
|
position,
|
|
@@ -262,6 +263,7 @@ async function CmssyLayoutSlot({
|
|
|
262
263
|
editMode,
|
|
263
264
|
page,
|
|
264
265
|
appContext,
|
|
266
|
+
retry: retry ?? {},
|
|
265
267
|
...explicitLocale !== void 0 ? { locale: explicitLocale } : { path: path ?? [] }
|
|
266
268
|
});
|
|
267
269
|
const { groups, locale, defaultLocale, enabledLocales } = resolved;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.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": "^12.
|
|
74
|
+
"@cmssy/react": "^12.10.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": "12.
|
|
88
|
+
"@cmssy/react": "12.10.0"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@cmssy/types": "0.35.0",
|
|
92
92
|
"server-only": "^0.0.1",
|
|
93
|
-
"@cmssy/core": "12.
|
|
93
|
+
"@cmssy/core": "12.10.0"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"build": "tsup",
|