From b13c0d268be426e3cbf73e4d5f9885d38d5c9f0a Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 9 Jan 2026 16:12:51 +0300 Subject: [PATCH] fix: import/export --- src/features/FetchFonts/index.ts | 22 ++++--------------- .../FilterFonts/model/state/manager.svelte.ts | 3 +-- src/features/SetupFont/index.ts | 15 +++++++++++++ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/features/FetchFonts/index.ts b/src/features/FetchFonts/index.ts index 4ebc6a9..9e6df5a 100644 --- a/src/features/FetchFonts/index.ts +++ b/src/features/FetchFonts/index.ts @@ -4,22 +4,8 @@ * Exports service functions for fetching fonts from Google Fonts and Fontshare */ -export { - cancelGoogleFontsQueries, - fetchGoogleFontsQuery, - getGoogleFontsQueryKey, - invalidateGoogleFonts, - prefetchGoogleFonts, - useGoogleFontsQuery, -} from './model/services/fetchGoogleFonts'; -export type { GoogleFontsQueryParams } from './model/services/fetchGoogleFonts'; +export { createGoogleFontsStore } from './model/services/fetchGoogleFonts'; -export { - cancelFontshareFontsQueries, - fetchFontshareFontsQuery, - getFontshareQueryKey, - invalidateFontshareFonts, - prefetchFontshareFonts, - useFontshareFontsQuery, -} from './model/services/fetchFontshareFonts'; -export type { FontshareQueryParams } from './model/services/fetchFontshareFonts'; +export { createFontshareStore } from './model/services/fetchFontshareFonts'; + +export { FontSearch } from './ui'; diff --git a/src/features/FilterFonts/model/state/manager.svelte.ts b/src/features/FilterFonts/model/state/manager.svelte.ts index 6d3ed27..5b9e5a4 100644 --- a/src/features/FilterFonts/model/state/manager.svelte.ts +++ b/src/features/FilterFonts/model/state/manager.svelte.ts @@ -4,9 +4,8 @@ import { FONT_PROVIDERS, FONT_SUBSETS, } from '../const/const'; -import type { FilterGroupConfig } from '../const/types/common'; -const filtersData: FilterGroupConfig[] = [ +const filtersData = [ { id: 'providers', label: 'Font provider', diff --git a/src/features/SetupFont/index.ts b/src/features/SetupFont/index.ts index ebf9c47..bc8a71a 100644 --- a/src/features/SetupFont/index.ts +++ b/src/features/SetupFont/index.ts @@ -1,3 +1,18 @@ import SetupFontMenu from './ui/SetupFontMenu.svelte'; +export { + controlManager, + DEFAULT_FONT_SIZE, + DEFAULT_FONT_WEIGHT, + DEFAULT_LINE_HEIGHT, + FONT_SIZE_STEP, + FONT_WEIGHT_STEP, + LINE_HEIGHT_STEP, + MAX_FONT_SIZE, + MAX_FONT_WEIGHT, + MAX_LINE_HEIGHT, + MIN_FONT_SIZE, + MIN_FONT_WEIGHT, + MIN_LINE_HEIGHT, +} from './model'; export { SetupFontMenu };