@fileverse-dev/ddoc 3.5.2-font-1 → 3.5.2-font-3
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.
|
@@ -21,8 +21,6 @@ type PickerEntry = {
|
|
|
21
21
|
preview?: React.ReactNode;
|
|
22
22
|
};
|
|
23
23
|
export declare const baselineFonts: PickerEntry[];
|
|
24
|
-
/** @deprecated kept for backward import paths; prefer baselineFonts + consumer catalog */
|
|
25
|
-
export declare const fonts: PickerEntry[];
|
|
26
24
|
export declare function buildPickerEntries(consumerFonts: FontDescriptor[]): PickerEntry[];
|
|
27
25
|
export declare const FONT_SIZES: readonly [8, 9, 10, 11, 12, 14, 16, 18, 24, 30, 32, 36, 48, 60, 72, 96];
|
|
28
26
|
export declare const getFontSizeOptions: (editor?: Editor) => {
|
|
@@ -3,5 +3,6 @@ import { FontDescriptor } from '../types';
|
|
|
3
3
|
/** "Poppins, sans-serif" -> "Poppins"; "'Times New Roman', serif" -> "Times New Roman" */
|
|
4
4
|
export declare function primaryToken(family: string): string;
|
|
5
5
|
export declare function registerFonts(fonts: FontDescriptor[]): void;
|
|
6
|
+
export declare function getRegisteredFonts(): FontDescriptor[];
|
|
6
7
|
export declare function isLoaded(family: string): boolean;
|
|
7
8
|
export declare function ensureLoaded(family: string): Promise<void>;
|