@sudajs/cli 0.18.5 → 0.18.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudajs/cli",
3
- "version": "0.18.5",
3
+ "version": "0.18.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "suda": "./bin/suda.js"
@@ -34,7 +34,7 @@
34
34
  "react": "^19.2.7",
35
35
  "react-dom": "^19.2.7",
36
36
  "zod": "^3.24.1",
37
- "@sudajs/theme-engine": "6.3.2"
37
+ "@sudajs/theme-engine": "6.4.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@tailwindcss/postcss": "^4.3.0",
@@ -448,6 +448,25 @@ or AI examples.
448
448
  - React, React DOM, Puck, and `@sudajs/theme-engine` are host-provided peers. Do not bundle private copies into the theme runtime.
449
449
  - Keep persisted props JSON-serializable. Do not store functions, React nodes, class instances, database ids for media, or environment-specific absolute filesystem paths.
450
450
 
451
+ ### Public site language list
452
+
453
+ Read public-site language switch targets with `getSiteLocale(puck?.metadata)`
454
+ from `@sudajs/theme-engine/runtime`. Render the host-provided `label` and link
455
+ to the host-provided `href`; do not derive a language name or construct a locale
456
+ URL in theme code.
457
+
458
+ ```tsx
459
+ const siteLocale = getSiteLocale(puck?.metadata);
460
+
461
+ {
462
+ siteLocale?.locales.map((item) => (
463
+ <a key={item.locale} href={item.href} lang={item.locale}>
464
+ {item.label}
465
+ </a>
466
+ ));
467
+ }
468
+ ```
469
+
451
470
  ## Puck editor CSS isolation
452
471
 
453
472
  Puck renders the editable preview in a same-origin iframe. The outer