@cmssy/next 4.4.0 → 4.5.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.cjs CHANGED
@@ -295,7 +295,7 @@ function buildCmssyPageRenderer(config, blocks, options, editRoute) {
295
295
  let defaultLocale;
296
296
  let enabledLocales = config.enabledLocales;
297
297
  if (config.resolveLocale) {
298
- defaultLocale = config.defaultLocale ?? "en";
298
+ defaultLocale = config.defaultLocale ?? (await react.resolveSiteLocales(clientConfig)).defaultLocale;
299
299
  locale = await config.resolveLocale();
300
300
  } else {
301
301
  const siteLocales = await react.resolveSiteLocales(clientConfig);
package/dist/index.js CHANGED
@@ -294,7 +294,7 @@ function buildCmssyPageRenderer(config, blocks, options, editRoute) {
294
294
  let defaultLocale;
295
295
  let enabledLocales = config.enabledLocales;
296
296
  if (config.resolveLocale) {
297
- defaultLocale = config.defaultLocale ?? "en";
297
+ defaultLocale = config.defaultLocale ?? (await resolveSiteLocales(clientConfig)).defaultLocale;
298
298
  locale = await config.resolveLocale();
299
299
  } else {
300
300
  const siteLocales = await resolveSiteLocales(clientConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/next",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
5
5
  "keywords": [
6
6
  "cmssy",
@@ -46,7 +46,7 @@
46
46
  "dist"
47
47
  ],
48
48
  "peerDependencies": {
49
- "@cmssy/react": "^4.4.0",
49
+ "@cmssy/react": "^4.5.0",
50
50
  "next": ">=15",
51
51
  "react": "^18.2.0 || ^19.0.0",
52
52
  "react-dom": "^18.2.0 || ^19.0.0"
@@ -60,7 +60,7 @@
60
60
  "tsup": "^8.3.0",
61
61
  "typescript": "^5.6.0",
62
62
  "vitest": "^2.1.0",
63
- "@cmssy/react": "4.4.0"
63
+ "@cmssy/react": "4.5.0"
64
64
  },
65
65
  "dependencies": {
66
66
  "jose": "^6.2.3",