@cmssy/next 0.1.1 → 0.1.3
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.cjs +3 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -96,6 +96,7 @@ function createCmssyPage(config, blocks, options) {
|
|
|
96
96
|
page,
|
|
97
97
|
locale,
|
|
98
98
|
defaultLocale,
|
|
99
|
+
enabledLocales: config.enabledLocales,
|
|
99
100
|
edit: { editorOrigin: bridgeOrigin }
|
|
100
101
|
}
|
|
101
102
|
);
|
|
@@ -106,7 +107,8 @@ function createCmssyPage(config, blocks, options) {
|
|
|
106
107
|
page,
|
|
107
108
|
blocks,
|
|
108
109
|
locale,
|
|
109
|
-
defaultLocale
|
|
110
|
+
defaultLocale,
|
|
111
|
+
enabledLocales: config.enabledLocales
|
|
110
112
|
}
|
|
111
113
|
);
|
|
112
114
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,8 @@ interface CmssyNextConfig {
|
|
|
9
9
|
draftSecret: string;
|
|
10
10
|
editorOrigin: string | string[];
|
|
11
11
|
defaultLocale?: string;
|
|
12
|
+
/** All languages enabled on the workspace; exposed to blocks via context.locale.enabled. */
|
|
13
|
+
enabledLocales?: string[];
|
|
12
14
|
resolveLocale?: () => string | Promise<string>;
|
|
13
15
|
}
|
|
14
16
|
|
|
@@ -16,6 +18,7 @@ interface CmssyEditorProps {
|
|
|
16
18
|
page: CmssyPageData;
|
|
17
19
|
locale: string;
|
|
18
20
|
defaultLocale: string;
|
|
21
|
+
enabledLocales?: string[];
|
|
19
22
|
edit: EditBridgeConfig;
|
|
20
23
|
}
|
|
21
24
|
interface CreateCmssyPageOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ interface CmssyNextConfig {
|
|
|
9
9
|
draftSecret: string;
|
|
10
10
|
editorOrigin: string | string[];
|
|
11
11
|
defaultLocale?: string;
|
|
12
|
+
/** All languages enabled on the workspace; exposed to blocks via context.locale.enabled. */
|
|
13
|
+
enabledLocales?: string[];
|
|
12
14
|
resolveLocale?: () => string | Promise<string>;
|
|
13
15
|
}
|
|
14
16
|
|
|
@@ -16,6 +18,7 @@ interface CmssyEditorProps {
|
|
|
16
18
|
page: CmssyPageData;
|
|
17
19
|
locale: string;
|
|
18
20
|
defaultLocale: string;
|
|
21
|
+
enabledLocales?: string[];
|
|
19
22
|
edit: EditBridgeConfig;
|
|
20
23
|
}
|
|
21
24
|
interface CreateCmssyPageOptions {
|
package/dist/index.js
CHANGED
|
@@ -94,6 +94,7 @@ function createCmssyPage(config, blocks, options) {
|
|
|
94
94
|
page,
|
|
95
95
|
locale,
|
|
96
96
|
defaultLocale,
|
|
97
|
+
enabledLocales: config.enabledLocales,
|
|
97
98
|
edit: { editorOrigin: bridgeOrigin }
|
|
98
99
|
}
|
|
99
100
|
);
|
|
@@ -104,7 +105,8 @@ function createCmssyPage(config, blocks, options) {
|
|
|
104
105
|
page,
|
|
105
106
|
blocks,
|
|
106
107
|
locale,
|
|
107
|
-
defaultLocale
|
|
108
|
+
defaultLocale,
|
|
109
|
+
enabledLocales: config.enabledLocales
|
|
108
110
|
}
|
|
109
111
|
);
|
|
110
112
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@cmssy/react": "^0.1.
|
|
39
|
+
"@cmssy/react": "^0.1.3",
|
|
40
40
|
"next": ">=15",
|
|
41
41
|
"react": "^18.2.0 || ^19.0.0",
|
|
42
42
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tsup": "^8.3.0",
|
|
50
50
|
"typescript": "^5.6.0",
|
|
51
51
|
"vitest": "^2.1.0",
|
|
52
|
-
"@cmssy/react": "0.1.
|
|
52
|
+
"@cmssy/react": "0.1.3"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup",
|