@devslab/site-kit 0.5.0 → 0.5.2

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": "@devslab/site-kit",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Strict i18n, SEO/GEO, and Solid public-site shells for DevsLab products",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -53,7 +53,7 @@
53
53
  "./styles.css": "./styles.css"
54
54
  },
55
55
  "dependencies": {
56
- "@devslab/dds-solid": "0.5.0"
56
+ "@devslab/dds-solid": "0.5.2"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@tanstack/solid-router": "1.170.30",
@@ -1,3 +1,10 @@
1
1
  import type { SiteMetadata } from "./core/seo.mjs";
2
- export declare function toTanStackHead(metadata: SiteMetadata): { meta: Array<Record<string, string>>; links: Array<Record<string, string>> };
3
- export declare const toHtmlAttributes: (metadata: SiteMetadata) => { lang: string; dir: string };
2
+ import type { SiteLocale } from "./core/locales.mjs";
3
+
4
+ /**
5
+ * Generic over the locale code, like the builders that feed it. A product
6
+ * registry (D-018) yields `SiteMetadata<string>`; the adapter reads the
7
+ * same fields whatever the code type is, so it must not refuse that.
8
+ */
9
+ export declare function toTanStackHead<Code extends string = SiteLocale>(metadata: SiteMetadata<Code>): { meta: Array<Record<string, string>>; links: Array<Record<string, string>> };
10
+ export declare const toHtmlAttributes: <Code extends string = SiteLocale>(metadata: SiteMetadata<Code>) => { lang: Code; dir: string };