{
  "version": 3,
  "sources": ["../../src/font-library/types.ts"],
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { FontFamilyPreset } from '@wordpress/global-styles-engine';\nimport type { FontFamily, FontFace } from '@wordpress/core-data';\n\nexport type FontFaceToUpload = FontFace & {\n\tfile?: File | File[];\n};\n\nexport type FontFamilyToUpload = Omit< FontFamily, 'fontFace' > & {\n\tfontFace?: FontFaceToUpload[];\n};\n\nexport interface FontLibraryState {\n\tisInstalling: boolean;\n\tfontFamilies: Record< string, FontFamilyPreset[] >;\n\tnotice?: {\n\t\ttype: 'success' | 'error' | 'info';\n\t\tmessage: string;\n\t};\n\tloadFontFaceAsset: ( fontFace: FontFace ) => Promise< void >;\n\tinstallFonts: ( fonts: FontFamily[] ) => Promise< void >;\n\tuninstallFontFamily: ( fontFamily: FontFamily ) => Promise< {\n\t\tdeleted: boolean;\n\t} >;\n\t// Additional properties found in the codebase\n\tbaseCustomFonts: FontFamily[];\n\tmodalTabOpen: string;\n\tsetModalTabOpen: ( tab: string ) => void;\n\thandleSetLibraryFontSelected: ( font?: FontFamily ) => void;\n\tlibraryFontSelected?: FontFamily;\n\tisFontActivated: (\n\t\tslug: string,\n\t\tstyle?: string,\n\t\tweight?: string | number,\n\t\tsource?: string\n\t) => boolean;\n\tgetFontFacesActivated: ( slug: string, source?: string ) => string[];\n\ttoggleActivateFont: ( font: FontFamily, face?: FontFace ) => void;\n\tgetAvailableFontsOutline: (\n\t\tavailableFontFamilies: FontFamily[]\n\t) => Record< string, string[] >;\n\tsaveFontFamilies: (\n\t\tfonts:\n\t\t\t| FontFamilyPreset[]\n\t\t\t| Record< string, FontFamilyPreset[] >\n\t\t\t| undefined\n\t) => Promise< void >;\n\tisResolvingLibrary: boolean;\n}\n\nexport interface FontDemoProps {\n\tfont: FontFamily | FontFace;\n\ttext?: string;\n\tonClick?: () => void;\n}\n\nexport interface FontCardProps {\n\tfont: FontFamily;\n\tonClick?: () => void;\n\tvariantsText?: string;\n}\n\nexport interface FontVariantProps {\n\tfontFace: FontFace;\n\tfontFamily: FontFamily;\n\tisSelected?: boolean;\n\tonClick?: () => void;\n}\n\nexport interface CollectionFontVariantProps {\n\tface: FontFace;\n\tfont: FontFamily;\n\thandleToggleVariant: ( font: FontFamily, face?: FontFace ) => void;\n\tselected: boolean;\n}\n\nexport interface FontUploadResult {\n\tsuccesses: FontFace[];\n\terrors: Array< {\n\t\tdata: FormData;\n\t\tmessage: string;\n\t} >;\n}\n\nexport interface GoogleFontsAPIResponse {\n\titems: Array< {\n\t\tfamily: string;\n\t\tvariants: string[];\n\t\tsubsets: string[];\n\t\tversion: string;\n\t\tlastModified: string;\n\t\tfiles: Record< string, string >;\n\t\tcategory: string;\n\t\tkind: string;\n\t\tmenu: string;\n\t} >;\n}\n\nexport type FontWeight =\n\t| '100'\n\t| '200'\n\t| '300'\n\t| '400'\n\t| '500'\n\t| '600'\n\t| '700'\n\t| '800'\n\t| '900';\nexport type FontStyle = 'normal' | 'italic';\nexport type FontDisplay = 'auto' | 'block' | 'swap' | 'fallback' | 'optional';\nexport type FontStretch =\n\t| 'normal'\n\t| 'ultra-condensed'\n\t| 'extra-condensed'\n\t| 'condensed'\n\t| 'semi-condensed'\n\t| 'semi-expanded'\n\t| 'expanded'\n\t| 'extra-expanded'\n\t| 'ultra-expanded';\n"],
  "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
  "names": []
}
