UNPKG

2.75 kBTypeScriptView Raw
1/* tslint:disable */
2/**
3 * This file was automatically generated by json-schema-to-typescript.
4 * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5 * and run json-schema-to-typescript to regenerate this file.
6 */
7
8/**
9 * Enable all font customizations
10 */
11export type EnableCustomFonts = boolean;
12/**
13 * Reserved for future use to provide backwards compatibility
14 */
15export type ConfigurationVersion = string;
16export type IFontFace = IFontFacePrimitive[] | IFontFacePrimitive;
17export type IFontFacePrimitive = IFontFaceCamel | IFontFaceCanonical;
18export type IFontFaceCamel = {
19 fontFamily: string;
20 [k: string]: any | undefined;
21} & IFontFaceCommon;
22/**
23 * This interface was referenced by `IJSSRoot`'s JSON-Schema definition
24 * via the `patternProperty` ".*".
25 */
26export type ICSSOM =
27 | ICSSOMPrimitive
28 | ICSSOMPrimitive[]
29 | {
30 [k: string]: ICSSOM;
31 };
32export type ICSSOMPrimitive = string | number;
33export type IFontFaceCanonical = {
34 'font-family': string;
35 [k: string]: any | undefined;
36} & IFontFaceCommon;
37
38/**
39 * Settings for JupyterLab Fonts
40 */
41export interface Fonts {
42 enabled?: EnableCustomFonts;
43 version?: ConfigurationVersion;
44 styles?: GlobalStyles;
45 fonts?: EmbeddedFonts;
46 fontLicenses?: EmbeddedFontLicenses;
47 [k: string]: any | undefined;
48}
49/**
50 * JSS-compatible JSON applied to the Global scope
51 */
52export interface GlobalStyles {
53 '@font-face'?: IFontFace;
54 ':root'?: IJSSRoot;
55 [k: string]: (ICSSOM | IJSS | IFontFace | IJSSRoot) | undefined;
56}
57export interface IFontFaceCommon {
58 src: ICSSOM;
59 'unicode-range'?: ICSSOM;
60 'font-variant'?: ICSSOM;
61 'font-feature-settings'?: ICSSOM;
62 'font-variation-settings'?: ICSSOM;
63 'font-stretch'?: ICSSOM;
64 'font-weight'?: ICSSOM;
65 'font-style'?: ICSSOM;
66 unicodeRange?: ICSSOM;
67 fontVariant?: ICSSOM;
68 fontFeatureSettings?: ICSSOM;
69 fontVariationSettings?: ICSSOM;
70 fontStretch?: ICSSOM;
71 fontWeight?: ICSSOM;
72 fontStyle?: ICSSOM;
73 [k: string]: any | undefined;
74}
75export interface IJSSRoot {
76 [k: string]: ICSSOM;
77}
78export interface IJSS {
79 [k: string]:
80 | (
81 | IJSS
82 | {
83 [k: string]: any | undefined;
84 }
85 )
86 | undefined;
87}
88/**
89 * Embedded JSS `@font-face` declarations grouped by `font-family`
90 */
91export interface EmbeddedFonts {
92 [k: string]: IFontFacePrimitive[] | undefined;
93}
94/**
95 * Rights for embedded fonts
96 */
97export interface EmbeddedFontLicenses {
98 [k: string]: IFontLicensePrimitive;
99}
100/**
101 * This interface was referenced by `EmbeddedFontLicenses`'s JSON-Schema definition
102 * via the `patternProperty` ".*".
103 */
104export interface IFontLicensePrimitive {
105 name: string;
106 spdx: string;
107 text: string;
108 holders: string[];
109 [k: string]: any | undefined;
110}