@cmssy/next 12.11.0 → 12.12.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/{index-DMEBgr68.d.cts → index-ZUEbpOlo.d.cts} +5 -2
- package/dist/{index-DMEBgr68.d.ts → index-ZUEbpOlo.d.ts} +5 -2
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -0
- package/dist/server.cjs +2 -0
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/package.json +4 -4
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { RetryOption, CmssyConfig } from '@cmssy/core';
|
|
1
|
+
import { CmssyRetryMode, RetryOption, CmssyConfig } from '@cmssy/core';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import { CmssyPageData, CmssyFormDefinition, BlockDefinition } from '@cmssy/react';
|
|
5
5
|
import { EditBridgeConfig } from '@cmssy/react/client';
|
|
6
6
|
|
|
7
|
+
declare const NEXT_BUILD_PHASE = "phase-production-build";
|
|
8
|
+
declare function nextRetryMode(): CmssyRetryMode;
|
|
9
|
+
|
|
7
10
|
interface CmssyEditorProps {
|
|
8
11
|
page: CmssyPageData;
|
|
9
12
|
locale: string;
|
|
@@ -37,4 +40,4 @@ interface CatchAllProps {
|
|
|
37
40
|
declare function createCmssyPage(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyPageOptions): ({ params, searchParams, }: CatchAllProps) => Promise<react_jsx_runtime.JSX.Element>;
|
|
38
41
|
declare function createCmssyEditPage(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyPageOptions): ({ params, searchParams, }: CatchAllProps) => Promise<react_jsx_runtime.JSX.Element>;
|
|
39
42
|
|
|
40
|
-
export { type CmssyAppContext as C, type CmssyEditorProps as a, type CreateCmssyPageOptions as b, createCmssyEditPage as c, createCmssyPage as d };
|
|
43
|
+
export { type CmssyAppContext as C, NEXT_BUILD_PHASE as N, type CmssyEditorProps as a, type CreateCmssyPageOptions as b, createCmssyEditPage as c, createCmssyPage as d, nextRetryMode as n };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { RetryOption, CmssyConfig } from '@cmssy/core';
|
|
1
|
+
import { CmssyRetryMode, RetryOption, CmssyConfig } from '@cmssy/core';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import { CmssyPageData, CmssyFormDefinition, BlockDefinition } from '@cmssy/react';
|
|
5
5
|
import { EditBridgeConfig } from '@cmssy/react/client';
|
|
6
6
|
|
|
7
|
+
declare const NEXT_BUILD_PHASE = "phase-production-build";
|
|
8
|
+
declare function nextRetryMode(): CmssyRetryMode;
|
|
9
|
+
|
|
7
10
|
interface CmssyEditorProps {
|
|
8
11
|
page: CmssyPageData;
|
|
9
12
|
locale: string;
|
|
@@ -37,4 +40,4 @@ interface CatchAllProps {
|
|
|
37
40
|
declare function createCmssyPage(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyPageOptions): ({ params, searchParams, }: CatchAllProps) => Promise<react_jsx_runtime.JSX.Element>;
|
|
38
41
|
declare function createCmssyEditPage(config: CmssyConfig, blocks: BlockDefinition[], options?: CreateCmssyPageOptions): ({ params, searchParams, }: CatchAllProps) => Promise<react_jsx_runtime.JSX.Element>;
|
|
39
42
|
|
|
40
|
-
export { type CmssyAppContext as C, type CmssyEditorProps as a, type CreateCmssyPageOptions as b, createCmssyEditPage as c, createCmssyPage as d };
|
|
43
|
+
export { type CmssyAppContext as C, NEXT_BUILD_PHASE as N, type CmssyEditorProps as a, type CreateCmssyPageOptions as b, createCmssyEditPage as c, createCmssyPage as d, nextRetryMode as n };
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@cmssy/core');
|
|
4
4
|
|
|
5
|
+
// src/index.ts
|
|
5
6
|
|
|
7
|
+
// src/retry-mode.ts
|
|
8
|
+
var NEXT_BUILD_PHASE = "phase-production-build";
|
|
9
|
+
function nextRetryMode() {
|
|
10
|
+
const phase = typeof process !== "undefined" ? process.env?.NEXT_PHASE : void 0;
|
|
11
|
+
return phase === NEXT_BUILD_PHASE ? "build" : "interactive";
|
|
12
|
+
}
|
|
6
13
|
|
|
7
14
|
Object.defineProperty(exports, "CMSSY_EDIT_HEADER", {
|
|
8
15
|
enumerable: true,
|
|
@@ -44,3 +51,5 @@ Object.defineProperty(exports, "verifyCmssyWebhook", {
|
|
|
44
51
|
enumerable: true,
|
|
45
52
|
get: function () { return core.verifyCmssyWebhook; }
|
|
46
53
|
});
|
|
54
|
+
exports.NEXT_BUILD_PHASE = NEXT_BUILD_PHASE;
|
|
55
|
+
exports.nextRetryMode = nextRetryMode;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CMSSY_EDIT_HEADER, CMSSY_EDIT_QUERY_PARAM, CMSSY_LOCALE_HEADER, CMSSY_SECRET_QUERY_PARAM, CmssyConfig, CmssyEnvConfig, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, DEFAULT_CMSSY_EDITOR_ORIGINS, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
2
|
-
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions } from './index-
|
|
2
|
+
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, N as NEXT_BUILD_PHASE, n as nextRetryMode } from './index-ZUEbpOlo.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@cmssy/react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CMSSY_EDIT_HEADER, CMSSY_EDIT_QUERY_PARAM, CMSSY_LOCALE_HEADER, CMSSY_SECRET_QUERY_PARAM, CmssyConfig, CmssyEnvConfig, CmssyPageData, CmssyPageMeta, CmssyPageSummary, CmssyRetryMode, CmssyWebhookError, CmssyWebhookEvent, DEFAULT_CMSSY_EDITOR_ORIGINS, RetryOption, RetryPolicy, VerifyCmssyWebhookOptions, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
2
|
-
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions } from './index-
|
|
2
|
+
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, N as NEXT_BUILD_PHASE, n as nextRetryMode } from './index-ZUEbpOlo.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@cmssy/react';
|
package/dist/index.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
1
|
export { CMSSY_EDIT_HEADER, CMSSY_EDIT_QUERY_PARAM, CMSSY_LOCALE_HEADER, CMSSY_SECRET_QUERY_PARAM, CmssyWebhookError, DEFAULT_CMSSY_EDITOR_ORIGINS, defineCmssyConfig, localizeHref, resolveEditorOrigin, verifyCmssyWebhook } from '@cmssy/core';
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
|
|
5
|
+
// src/retry-mode.ts
|
|
6
|
+
var NEXT_BUILD_PHASE = "phase-production-build";
|
|
7
|
+
function nextRetryMode() {
|
|
8
|
+
const phase = typeof process !== "undefined" ? process.env?.NEXT_PHASE : void 0;
|
|
9
|
+
return phase === NEXT_BUILD_PHASE ? "build" : "interactive";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { NEXT_BUILD_PHASE, nextRetryMode };
|
package/dist/server.cjs
CHANGED
|
@@ -309,7 +309,9 @@ async function CmssyLayoutSlot({
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
exports.CmssyLayoutSlot = CmssyLayoutSlot;
|
|
312
|
+
exports.NEXT_BUILD_PHASE = NEXT_BUILD_PHASE;
|
|
312
313
|
exports.createCmssyEditPage = createCmssyEditPage;
|
|
313
314
|
exports.createCmssyPage = createCmssyPage;
|
|
314
315
|
exports.createDraftRoute = createDraftRoute;
|
|
315
316
|
exports.isCmssyEditMode = isCmssyEditMode;
|
|
317
|
+
exports.nextRetryMode = nextRetryMode;
|
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, c as createCmssyEditPage, d as createCmssyPage } from './index-
|
|
1
|
+
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, N as NEXT_BUILD_PHASE, c as createCmssyEditPage, d as createCmssyPage, n as nextRetryMode } from './index-ZUEbpOlo.cjs';
|
|
2
2
|
import { CmssyConfig, LayoutPosition, RetryOption } from '@cmssy/core';
|
|
3
3
|
export { CmssyRetryMode, RetryOption, RetryPolicy } from '@cmssy/core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, c as createCmssyEditPage, d as createCmssyPage } from './index-
|
|
1
|
+
export { C as CmssyAppContext, a as CmssyEditorProps, b as CreateCmssyPageOptions, N as NEXT_BUILD_PHASE, c as createCmssyEditPage, d as createCmssyPage, n as nextRetryMode } from './index-ZUEbpOlo.js';
|
|
2
2
|
import { CmssyConfig, LayoutPosition, RetryOption } from '@cmssy/core';
|
|
3
3
|
export { CmssyRetryMode, RetryOption, RetryPolicy } from '@cmssy/core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/server.js
CHANGED
|
@@ -306,4 +306,4 @@ async function CmssyLayoutSlot({
|
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
export { CmssyLayoutSlot, createCmssyEditPage, createCmssyPage, createDraftRoute, isCmssyEditMode };
|
|
309
|
+
export { CmssyLayoutSlot, NEXT_BUILD_PHASE, createCmssyEditPage, createCmssyPage, createDraftRoute, isCmssyEditMode, nextRetryMode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.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.12.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.12.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.12.0"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"build": "tsup",
|