@ohhwells/bridge 0.1.115 → 0.1.117
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.cjs +316 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +316 -69
- package/dist/index.js.map +1 -1
- package/dist/styles.css +67 -65
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -63,6 +63,27 @@ interface AiLayoutTree {
|
|
|
63
63
|
align?: 'top' | 'center' | 'bottom' | 'stretch';
|
|
64
64
|
}>;
|
|
65
65
|
}
|
|
66
|
+
/** One uploaded weight file for a custom font family. */
|
|
67
|
+
interface AiCustomFontWeight {
|
|
68
|
+
weight: number;
|
|
69
|
+
/** Present when the file is a variable font with a `wght` axis — `weight` is the axis min,
|
|
70
|
+
* `weightEnd` the axis max, together spanning every weight the one file actually covers. */
|
|
71
|
+
weightEnd?: number;
|
|
72
|
+
url: string;
|
|
73
|
+
format: 'woff2' | 'woff' | 'truetype' | 'opentype';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A custom (non-Google) font family, grouped by its uploaded weight files so a bold heading
|
|
77
|
+
* actually resolves to a real bold file instead of the browser synthesizing fake bold from
|
|
78
|
+
* whichever single weight happens to be present.
|
|
79
|
+
*/
|
|
80
|
+
interface AiCustomFont {
|
|
81
|
+
/** Collision-proof internal family name — what `fonts.heading`/`fonts.body` actually reference. */
|
|
82
|
+
family: string;
|
|
83
|
+
/** Human-readable name shown in the picker; hidden everywhere the internal `family` is used. */
|
|
84
|
+
label: string;
|
|
85
|
+
weights: AiCustomFontWeight[];
|
|
86
|
+
}
|
|
66
87
|
/** The site brand kit the renderer styles from (editor Brand settings). */
|
|
67
88
|
interface AiBrandKit {
|
|
68
89
|
palette: {
|
|
@@ -75,6 +96,7 @@ interface AiBrandKit {
|
|
|
75
96
|
heading: string;
|
|
76
97
|
body: string;
|
|
77
98
|
};
|
|
99
|
+
customFonts?: AiCustomFont[];
|
|
78
100
|
}
|
|
79
101
|
/**
|
|
80
102
|
* Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
|
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,27 @@ interface AiLayoutTree {
|
|
|
63
63
|
align?: 'top' | 'center' | 'bottom' | 'stretch';
|
|
64
64
|
}>;
|
|
65
65
|
}
|
|
66
|
+
/** One uploaded weight file for a custom font family. */
|
|
67
|
+
interface AiCustomFontWeight {
|
|
68
|
+
weight: number;
|
|
69
|
+
/** Present when the file is a variable font with a `wght` axis — `weight` is the axis min,
|
|
70
|
+
* `weightEnd` the axis max, together spanning every weight the one file actually covers. */
|
|
71
|
+
weightEnd?: number;
|
|
72
|
+
url: string;
|
|
73
|
+
format: 'woff2' | 'woff' | 'truetype' | 'opentype';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A custom (non-Google) font family, grouped by its uploaded weight files so a bold heading
|
|
77
|
+
* actually resolves to a real bold file instead of the browser synthesizing fake bold from
|
|
78
|
+
* whichever single weight happens to be present.
|
|
79
|
+
*/
|
|
80
|
+
interface AiCustomFont {
|
|
81
|
+
/** Collision-proof internal family name — what `fonts.heading`/`fonts.body` actually reference. */
|
|
82
|
+
family: string;
|
|
83
|
+
/** Human-readable name shown in the picker; hidden everywhere the internal `family` is used. */
|
|
84
|
+
label: string;
|
|
85
|
+
weights: AiCustomFontWeight[];
|
|
86
|
+
}
|
|
66
87
|
/** The site brand kit the renderer styles from (editor Brand settings). */
|
|
67
88
|
interface AiBrandKit {
|
|
68
89
|
palette: {
|
|
@@ -75,6 +96,7 @@ interface AiBrandKit {
|
|
|
75
96
|
heading: string;
|
|
76
97
|
body: string;
|
|
77
98
|
};
|
|
99
|
+
customFonts?: AiCustomFont[];
|
|
78
100
|
}
|
|
79
101
|
/**
|
|
80
102
|
* Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
|