refactor(features): rename SetupFont to AdjustTypography + reorganize

Structural:
- Merge factory + singleton from lib/settingsManager and model/state into
  one model/store/typographySettingsStore/ slice
- Drop now-empty lib/ and model/state/ directories

Semantic:
- Rename feature SetupFont -> AdjustTypography (the feature owns
  continuous typography adjustment, not one-time font setup)
- Drop "Manager" from TypographySettingsManager -> TypographySettingsStore
  (class + factory); singleton typographySettingsStore unchanged

All consumers (Character, Line, SampleList, SliderArea, FontSampler,
comparisonStore) updated. Public barrel signature changed: now exports
createTypographySettingsStore and type TypographySettingsStore.
This commit is contained in:
Ilia Mashkov
2026-05-24 18:27:10 +03:00
parent ca382fd43d
commit df59dfda02
18 changed files with 78 additions and 76 deletions
@@ -71,7 +71,7 @@ vi.mock('$entities/Font', async importOriginal => {
};
});
vi.mock('$features/SetupFont', () => ({
vi.mock('$features/AdjustTypography', () => ({
DEFAULT_TYPOGRAPHY_CONTROLS_DATA: [],
createTypographyControlManager: vi.fn(() => ({
weight: 400,
@@ -80,7 +80,7 @@ vi.mock('$features/SetupFont', () => ({
})),
}));
vi.mock('$features/SetupFont/model', () => ({
vi.mock('$features/AdjustTypography/model', () => ({
typographySettingsStore: {
weight: 400,
renderedSize: 48,