@vit-foundation/ui 0.20.0 → 0.20.1

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.
@@ -9,7 +9,14 @@ import type { EditMessages } from './edit-messages.js';
9
9
  */
10
10
  export declare const LOCALES: readonly ["ca", "en", "es"];
11
11
  export type Locale = (typeof LOCALES)[number];
12
- export declare const BASE_LOCALE: Locale;
12
+ /**
13
+ * Declared as the LITERAL, not widened to `Locale`. `Exclude<Locale, typeof
14
+ * BASE_LOCALE>` is how a host names "the locales that are not canonical" —
15
+ * the set a translations editor fills from the canonical one — and the
16
+ * annotation threw that away, resolving it to `never`. A consumer that wants
17
+ * the wide type can still write `const l: Locale = BASE_LOCALE`.
18
+ */
19
+ export declare const BASE_LOCALE = "ca";
13
20
  /** One primary-navigation entry, rendered by Nav and repeated by Footer. */
14
21
  export interface SiteLink {
15
22
  /** Present only where the nav is editable — structural ops need identity. */
@@ -6,4 +6,11 @@
6
6
  * consumer option.
7
7
  */
8
8
  export const LOCALES = ['ca', 'en', 'es'];
9
+ /**
10
+ * Declared as the LITERAL, not widened to `Locale`. `Exclude<Locale, typeof
11
+ * BASE_LOCALE>` is how a host names "the locales that are not canonical" —
12
+ * the set a translations editor fills from the canonical one — and the
13
+ * annotation threw that away, resolving it to `never`. A consumer that wants
14
+ * the wide type can still write `const l: Locale = BASE_LOCALE`.
15
+ */
9
16
  export const BASE_LOCALE = 'ca';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vit-foundation/ui",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",