uhuu-components 0.4.7 → 0.4.8
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/README.md +3 -3
- package/cli.js +3729 -29
- package/index.d.ts +5 -8
- package/package.json +1 -1
- package/uhuu-components.es.js +7066 -4674
- package/uhuu-components.es.js.map +1 -1
- package/uhuu-components.umd.cjs +28 -25
- package/uhuu-components.umd.cjs.map +1 -1
package/index.d.ts
CHANGED
|
@@ -812,7 +812,7 @@ export interface BrandKitJson {
|
|
|
812
812
|
[token: string]: unknown;
|
|
813
813
|
};
|
|
814
814
|
colorMode?: "light" | "manual" | "shade";
|
|
815
|
-
/** Template variables Brand Kit precomputed at publish for current public
|
|
815
|
+
/** Template variables Brand Kit precomputed at publish for current public 1.x documents. */
|
|
816
816
|
runtime?: BrandKitRuntimeBlock;
|
|
817
817
|
/** What wrote the document; a published version names itself in `release`. */
|
|
818
818
|
generator?: { name?: string; release?: BrandKitRelease; [key: string]: unknown };
|
|
@@ -836,11 +836,11 @@ export interface BrandKitRelease {
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
/**
|
|
839
|
-
* `brandkit.json.runtime` (public
|
|
839
|
+
* `brandkit.json.runtime` (public 1.x): canonical semantic and font-role variables, ready to
|
|
840
840
|
* apply, and the fonts to load. It cannot carry template layout or decoration tokens.
|
|
841
841
|
*/
|
|
842
842
|
export interface BrandKitRuntimeBlock {
|
|
843
|
-
version:
|
|
843
|
+
version: 1;
|
|
844
844
|
light: Record<string, string>;
|
|
845
845
|
fontStylesheets?: string[];
|
|
846
846
|
fontFaces?: Array<{
|
|
@@ -888,7 +888,7 @@ export interface BrandKitCollection {
|
|
|
888
888
|
export interface BrandKitMapStyle {
|
|
889
889
|
url: string;
|
|
890
890
|
name?: string;
|
|
891
|
-
source: "extensions.maps"
|
|
891
|
+
source: "extensions.maps";
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
export type BrandKitLogoKind = "primary" | "logo" | "lockup" | "mark" | "icon" | "symbol" | "wordmark";
|
|
@@ -913,11 +913,9 @@ export interface BrandKitRuntime {
|
|
|
913
913
|
chartPalette(options?: { fallback?: string[]; count?: number }): BrandChartPalette;
|
|
914
914
|
/** The brand's default locale and currency (`extensions.locale`); `payload.locale` wins over it. */
|
|
915
915
|
locale: { locale?: string; currency?: string };
|
|
916
|
-
/** Public
|
|
916
|
+
/** Public 1.x: canonical kind/id and active-version selection. */
|
|
917
917
|
collection(kindOrId: BrandKitMediaKind | string, options?: { versionId?: string }): BrandKitCollection | null;
|
|
918
918
|
mapStyle(mode: "micro" | "macro"): BrandKitMapStyle | null;
|
|
919
|
-
/** An `extensions.env.strings` value; keys compare case- and punctuation-insensitively. */
|
|
920
|
-
env(keys: string | string[]): string | undefined;
|
|
921
919
|
/** A kit-relative asset path made absolute. */
|
|
922
920
|
resolveUrl(path: unknown): string | undefined;
|
|
923
921
|
}
|
|
@@ -1029,7 +1027,6 @@ export function brandKitCollection(
|
|
|
1029
1027
|
|
|
1030
1028
|
export function brandKitMapStyle(brandKit: BrandKitJson | null | undefined, mode: "micro" | "macro"): BrandKitMapStyle | null;
|
|
1031
1029
|
|
|
1032
|
-
export function brandKitEnv(brandKit: BrandKitJson | null | undefined, keys: string | string[]): string | undefined;
|
|
1033
1030
|
|
|
1034
1031
|
export interface InteractiveModeContextValue {
|
|
1035
1032
|
interactive: boolean;
|
package/package.json
CHANGED