@cardinali-studio/adminkit 2.1.0-rc.2 → 2.1.0-rc.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.
|
@@ -319,7 +319,10 @@ async function commitPages(args, attempt = 0) {
|
|
|
319
319
|
if (typeof update.body === "string") translated.body = update.body;
|
|
320
320
|
else if (!oldTranslation && typeof p.body === "string") translated.body = p.body;
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
/* `translated` è il modello di CONTENUTO della sibling: non contiene `slug`,
|
|
323
|
+
che appartiene al contratto HTTP del payload padre. Validarlo con `payload`
|
|
324
|
+
faceva rifiutare ogni prima traduzione come se fosse una pagina senza tipo. */
|
|
325
|
+
const valid = definition.object.safeParse(translated);
|
|
323
326
|
if (!valid.success) { invalidTypes.push(`${p.slug}.${code}`); continue; }
|
|
324
327
|
const content = withTranslationHeader(serializeItem(translated, {
|
|
325
328
|
shape: definition.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardinali-studio/adminkit",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Motore riusabile di un pannello di amministrazione per siti Hugo su Cloudflare Pages: codec del front matter guidato dallo schema, form React, libreria media su R2. NIENTE di specifico di un sito qui dentro.",
|
|
6
6
|
"license": "UNLICENSED",
|