@constela/core 0.12.3 → 0.13.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.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -575,6 +575,15 @@ interface StaticPathsDefinition {
|
|
|
575
575
|
source: string;
|
|
576
576
|
params: Record<string, Expression>;
|
|
577
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* JSON-LD structured data definition for SEO
|
|
580
|
+
*/
|
|
581
|
+
interface JsonLdDefinition {
|
|
582
|
+
/** Schema.org type (e.g., "Article", "WebPage", "Organization") */
|
|
583
|
+
type: string;
|
|
584
|
+
/** Properties to include in the JSON-LD object */
|
|
585
|
+
properties: Record<string, Expression>;
|
|
586
|
+
}
|
|
578
587
|
/**
|
|
579
588
|
* Route definition for a page
|
|
580
589
|
*/
|
|
@@ -585,6 +594,10 @@ interface RouteDefinition {
|
|
|
585
594
|
layoutParams?: Record<string, Expression>;
|
|
586
595
|
meta?: Record<string, Expression>;
|
|
587
596
|
getStaticPaths?: StaticPathsDefinition;
|
|
597
|
+
/** Canonical URL for SEO (supports expressions for dynamic routes) */
|
|
598
|
+
canonical?: Expression;
|
|
599
|
+
/** JSON-LD structured data for SEO */
|
|
600
|
+
jsonLd?: JsonLdDefinition;
|
|
588
601
|
}
|
|
589
602
|
/**
|
|
590
603
|
* Lifecycle hooks for component/page lifecycle events
|