@decocms/start 0.25.3 → 0.25.5

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": "@decocms/start",
3
- "version": "0.25.3",
3
+ "version": "0.25.5",
4
4
  "type": "module",
5
5
  "description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
6
6
  "main": "./src/index.ts",
@@ -6,7 +6,7 @@ export function handleDecofileRead(): Response {
6
6
  const blocks = loadBlocks();
7
7
  const revision = getRevision();
8
8
 
9
- return new Response(JSON.stringify({ blocks, revision }), {
9
+ return new Response(JSON.stringify(blocks), {
10
10
  status: 200,
11
11
  headers: {
12
12
  "Content-Type": "application/json",
@@ -555,6 +555,11 @@ function buildFrameworkSections(sectionAnyOf: any[]) {
555
555
  type: { type: "string", title: "Page Type" },
556
556
  image: { type: "string", title: "OG Image", format: "image-uri" },
557
557
  themeColor: { type: "string", title: "Theme Color", format: "color" },
558
+ jsonLDs: {
559
+ type: "array",
560
+ title: "JSON-LD Structured Data",
561
+ items: { type: "object", additionalProperties: true },
562
+ },
558
563
  },
559
564
  };
560
565
  manifestBlocks[SEO_TYPE] = {
@@ -563,6 +568,42 @@ function buildFrameworkSections(sectionAnyOf: any[]) {
563
568
  };
564
569
  extraAnyOf.push({ $ref: `#/definitions/${seoKey}` });
565
570
 
571
+ // --- website/sections/Seo/SeoV2.tsx ---
572
+ const SEOV2_TYPE = "website/sections/Seo/SeoV2.tsx";
573
+ const seoV2Key = toBase64(SEOV2_TYPE);
574
+ definitions[seoV2Key] = {
575
+ title: SEOV2_TYPE,
576
+ type: "object",
577
+ required: ["__resolveType"],
578
+ properties: {
579
+ __resolveType: {
580
+ type: "string",
581
+ enum: [SEOV2_TYPE],
582
+ default: SEOV2_TYPE,
583
+ },
584
+ title: { type: "string", title: "Title" },
585
+ description: { type: "string", title: "Description" },
586
+ canonical: { type: "string", title: "Canonical URL" },
587
+ favicon: { type: "string", title: "Favicon", format: "image-uri" },
588
+ noIndexing: { type: "boolean", title: "No Indexing" },
589
+ titleTemplate: { type: "string", title: "Title Template" },
590
+ descriptionTemplate: { type: "string", title: "Description Template" },
591
+ type: { type: "string", title: "Page Type" },
592
+ image: { type: "string", title: "OG Image", format: "image-uri" },
593
+ themeColor: { type: "string", title: "Theme Color", format: "color" },
594
+ jsonLDs: {
595
+ type: "array",
596
+ title: "JSON-LD Structured Data",
597
+ items: { type: "object", additionalProperties: true },
598
+ },
599
+ },
600
+ };
601
+ manifestBlocks[SEOV2_TYPE] = {
602
+ $ref: `#/definitions/${seoV2Key}`,
603
+ namespace: "website",
604
+ };
605
+ extraAnyOf.push({ $ref: `#/definitions/${seoV2Key}` });
606
+
566
607
  // --- website/flags/multivariate/section.ts ---
567
608
  const MV_SECTION_TYPE = "website/flags/multivariate/section.ts";
568
609
  const mvSectionKey = toBase64(MV_SECTION_TYPE);