refactor(Font): consolidate API layer and update type structure

This commit is contained in:
Ilia Mashkov
2026-03-02 22:18:21 +03:00
parent ba186d00a1
commit af4137f47f
17 changed files with 325 additions and 558 deletions

View File

@@ -28,11 +28,11 @@ interface Props extends
>
{
/**
* Callback for when visible items change
* Visible items callback
*/
onVisibleItemsChange?: (items: UnifiedFont[]) => void;
/**
* Weight of the font
* Font weight
*/
weight: number;
/**
@@ -69,6 +69,7 @@ function handleInternalVisibleChange(visibleItems: UnifiedFont[]) {
});
}
});
// Auto-register fonts with the manager
appliedFontsManager.touch(configs);