@cmssy/next 0.7.6 → 0.7.7
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.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -20,6 +20,15 @@ interface CmssyNextConfig {
|
|
|
20
20
|
apiUrl?: string;
|
|
21
21
|
workspaceSlug: string;
|
|
22
22
|
draftSecret: string;
|
|
23
|
+
/**
|
|
24
|
+
* A cmssy API token (`cs_…`) that opts this app into the editor-controlled dev
|
|
25
|
+
* preview. In development only, the SDK sends it on every page fetch so the
|
|
26
|
+
* backend can resolve the token's user and honour that user's dev-preview flag
|
|
27
|
+
* (toggled from the editor's dev-mode switch): flag on + a saved dev draft ⇒
|
|
28
|
+
* the draft overlay renders, otherwise published content. Server-only (never
|
|
29
|
+
* reaches the client); ignored outside development. See the Quickstart
|
|
30
|
+
* "Dev preview" section.
|
|
31
|
+
*/
|
|
23
32
|
devToken?: string;
|
|
24
33
|
/**
|
|
25
34
|
* Origin allowed to frame your app in the editor. Defaults to
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,15 @@ interface CmssyNextConfig {
|
|
|
20
20
|
apiUrl?: string;
|
|
21
21
|
workspaceSlug: string;
|
|
22
22
|
draftSecret: string;
|
|
23
|
+
/**
|
|
24
|
+
* A cmssy API token (`cs_…`) that opts this app into the editor-controlled dev
|
|
25
|
+
* preview. In development only, the SDK sends it on every page fetch so the
|
|
26
|
+
* backend can resolve the token's user and honour that user's dev-preview flag
|
|
27
|
+
* (toggled from the editor's dev-mode switch): flag on + a saved dev draft ⇒
|
|
28
|
+
* the draft overlay renders, otherwise published content. Server-only (never
|
|
29
|
+
* reaches the client); ignored outside development. See the Quickstart
|
|
30
|
+
* "Dev preview" section.
|
|
31
|
+
*/
|
|
23
32
|
devToken?: string;
|
|
24
33
|
/**
|
|
25
34
|
* Origin allowed to frame your app in the editor. Defaults to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tsup": "^8.3.0",
|
|
55
55
|
"typescript": "^5.6.0",
|
|
56
56
|
"vitest": "^2.1.0",
|
|
57
|
-
"@cmssy/react": "0.7.
|
|
57
|
+
"@cmssy/react": "0.7.7"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"jose": "^6.2.3"
|