2026-03-02 22:18:21 +03:00
|
|
|
// Proxy API (primary)
|
2026-01-29 14:43:07 +03:00
|
|
|
export {
|
2026-02-01 16:13:13 +03:00
|
|
|
fetchFontsByIds,
|
2026-01-29 14:43:07 +03:00
|
|
|
fetchProxyFontById,
|
|
|
|
|
fetchProxyFonts,
|
|
|
|
|
} from './api/proxy/proxyFonts';
|
|
|
|
|
export type {
|
|
|
|
|
ProxyFontsParams,
|
|
|
|
|
ProxyFontsResponse,
|
|
|
|
|
} from './api/proxy/proxyFonts';
|
|
|
|
|
|
2026-01-06 14:38:55 +03:00
|
|
|
export {
|
|
|
|
|
normalizeFontshareFont,
|
|
|
|
|
normalizeFontshareFonts,
|
2026-01-13 20:00:36 +03:00
|
|
|
} from './lib/normalize/normalize';
|
2026-01-06 14:38:55 +03:00
|
|
|
export type {
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
// Domain types
|
|
|
|
|
FontCategory,
|
|
|
|
|
FontCollectionFilters,
|
|
|
|
|
FontCollectionSort,
|
|
|
|
|
// Store types
|
|
|
|
|
FontCollectionState,
|
2026-01-06 14:38:55 +03:00
|
|
|
FontFeatures,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
FontFiles,
|
|
|
|
|
FontItem,
|
2026-01-06 14:38:55 +03:00
|
|
|
FontMetadata,
|
2026-01-02 17:01:59 +03:00
|
|
|
FontProvider,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
// Fontshare API types
|
2026-01-02 16:11:58 +03:00
|
|
|
FontshareApiModel,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
FontshareAxis,
|
2026-01-02 16:11:58 +03:00
|
|
|
FontshareDesigner,
|
|
|
|
|
FontshareFeature,
|
|
|
|
|
FontshareFont,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
FontshareLink,
|
2026-01-02 16:11:58 +03:00
|
|
|
FontsharePublisher,
|
|
|
|
|
FontshareStyle,
|
|
|
|
|
FontshareStyleProperties,
|
|
|
|
|
FontshareTag,
|
|
|
|
|
FontshareWeight,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
FontStyleUrls,
|
|
|
|
|
FontSubset,
|
2026-01-02 17:01:59 +03:00
|
|
|
FontVariant,
|
refactor(font): consolidate all types into single types.ts file
- Created unified model/types.ts with all type definitions
- Consolidated domain types (FontCategory, FontProvider, FontSubset)
- Consolidated Google Fonts API types (FontItem, GoogleFontsApiModel, etc.)
- Consolidated Fontshare API types (FontshareFont, FontshareStyle, etc.)
- Consolidated normalization types (UnifiedFont, FontStyleUrls, etc.)
- Consolidated store types (FontCollectionStore, FontCollectionFilters, etc.)
- Removed duplicate type files (font.ts, google_fonts.ts, fontshare_fonts.ts)
- Updated all imports to use consolidated types
- Updated normalize module to import from /Font
- Updated API clients to re-export types for backward compatibility
- Updated store to use centralized types
- Updated Font index.ts to export all types
Benefits:
- Centralized type definitions in single location
- Cleaner imports (single import from /Font)
- Better code organization with clear sections
- Follows FSD principles (types in model layer)
- No duplicate type definitions
2026-01-06 15:06:38 +03:00
|
|
|
FontWeight,
|
|
|
|
|
FontWeightItalic,
|
|
|
|
|
// Normalization types
|
|
|
|
|
UnifiedFont,
|
|
|
|
|
UnifiedFontVariant,
|
2026-01-09 16:13:02 +03:00
|
|
|
} from './model';
|
|
|
|
|
|
2026-01-13 20:00:36 +03:00
|
|
|
export {
|
2026-01-18 14:53:14 +03:00
|
|
|
appliedFontsManager,
|
2026-01-29 14:43:07 +03:00
|
|
|
createUnifiedFontStore,
|
|
|
|
|
unifiedFontStore,
|
2026-01-13 20:00:36 +03:00
|
|
|
} from './model';
|
|
|
|
|
|
2026-02-19 13:58:12 +03:00
|
|
|
// Mock data helpers for Storybook and testing
|
|
|
|
|
export {
|
|
|
|
|
createCategoriesFilter,
|
|
|
|
|
createErrorState,
|
|
|
|
|
createGenericFilter,
|
|
|
|
|
createLoadingState,
|
|
|
|
|
createMockComparisonStore,
|
|
|
|
|
// Filter mocks
|
|
|
|
|
createMockFilter,
|
|
|
|
|
createMockFontApiResponse,
|
|
|
|
|
createMockFontStoreState,
|
|
|
|
|
// Store mocks
|
|
|
|
|
createMockQueryState,
|
|
|
|
|
createMockReactiveState,
|
|
|
|
|
createMockStore,
|
|
|
|
|
createProvidersFilter,
|
|
|
|
|
createSubsetsFilter,
|
|
|
|
|
createSuccessState,
|
|
|
|
|
FONTHARE_FONTS,
|
|
|
|
|
generateMixedCategoryFonts,
|
|
|
|
|
generateMockFonts,
|
|
|
|
|
generatePaginatedFonts,
|
|
|
|
|
generateSequentialFilter,
|
|
|
|
|
GENERIC_FILTERS,
|
|
|
|
|
getAllMockFonts,
|
|
|
|
|
getFontsByCategory,
|
|
|
|
|
getFontsByProvider,
|
|
|
|
|
GOOGLE_FONTS,
|
|
|
|
|
MOCK_FILTERS,
|
|
|
|
|
MOCK_FILTERS_ALL_SELECTED,
|
|
|
|
|
MOCK_FILTERS_EMPTY,
|
|
|
|
|
MOCK_FILTERS_SELECTED,
|
|
|
|
|
MOCK_FONT_STORE_STATES,
|
|
|
|
|
MOCK_STORES,
|
|
|
|
|
type MockFilterOptions,
|
|
|
|
|
type MockFilters,
|
|
|
|
|
mockFontshareFont,
|
|
|
|
|
type MockFontshareFontOptions,
|
|
|
|
|
type MockFontStoreState,
|
|
|
|
|
// Font mocks
|
|
|
|
|
mockGoogleFont,
|
|
|
|
|
// Types
|
|
|
|
|
type MockGoogleFontOptions,
|
|
|
|
|
type MockQueryObserverResult,
|
|
|
|
|
type MockQueryState,
|
|
|
|
|
mockUnifiedFont,
|
|
|
|
|
type MockUnifiedFontOptions,
|
|
|
|
|
UNIFIED_FONTS,
|
|
|
|
|
} from './lib/mocks';
|
|
|
|
|
|
2026-04-05 09:33:58 +03:00
|
|
|
export {
|
|
|
|
|
FontNetworkError,
|
|
|
|
|
FontResponseError,
|
|
|
|
|
} from './lib/errors/errors';
|
|
|
|
|
|
2026-01-13 20:00:36 +03:00
|
|
|
// UI elements
|
2026-01-18 14:53:14 +03:00
|
|
|
export {
|
|
|
|
|
FontApplicator,
|
|
|
|
|
FontVirtualList,
|
|
|
|
|
} from './ui';
|