@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +13 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/core",
3
- "version": "0.12.3",
3
+ "version": "0.13.0",
4
4
  "description": "Core types, schema, and validator for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",