chayns-api 2.2.11 → 2.2.12

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.
@@ -194,13 +194,25 @@ export declare enum IconStyle {
194
194
  DUOTONE = 3,
195
195
  SHARP = 4
196
196
  }
197
+ export interface ChaynsFontInfo {
198
+ id: number;
199
+ name: string;
200
+ backup: string;
201
+ hasBold: boolean;
202
+ factor?: number;
203
+ lineHeightFactor?: number;
204
+ wordSpacing?: number;
205
+ letterSpacing?: number;
206
+ }
197
207
  export interface ChaynsDesignSettings {
198
208
  color: string;
199
209
  secondaryColor?: string;
200
210
  colorMode: ColorMode;
201
211
  fontSizePx: number;
212
+ font?: ChaynsFontInfo;
202
213
  iconStyle: IconStyle;
203
214
  headlineFontId?: number;
215
+ headlineFont?: ChaynsFontInfo;
204
216
  backgroundType?: number;
205
217
  backgroundColor?: string;
206
218
  headerBarColor?: string;
@@ -218,6 +230,7 @@ export interface ChaynsParagraphFormat {
218
230
  marginAfterPx?: number;
219
231
  color?: string;
220
232
  fontId?: number;
233
+ font?: ChaynsFontInfo;
221
234
  buttonDesignType?: number;
222
235
  backgroundColor?: string;
223
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",