Files
frontend-svelte/src/entities/Font/index.ts

82 lines
1.7 KiB
TypeScript
Raw Normal View History

export {
fetchAllFontshareFonts,
fetchFontshareFontBySlug,
fetchFontshareFonts,
} from './api/fontshare/fontshare';
export type {
FontshareParams,
FontshareResponse,
} from './api/fontshare/fontshare';
export {
fetchGoogleFontFamily,
fetchGoogleFonts,
} from './api/google/googleFonts';
export type {
GoogleFontItem,
GoogleFontsParams,
GoogleFontsResponse,
} from './api/google/googleFonts';
export {
normalizeFontshareFont,
normalizeFontshareFonts,
normalizeGoogleFont,
normalizeGoogleFonts,
} from './lib/normalize/normalize';
export type {
// Domain types
FontCategory,
FontCollectionFilters,
FontCollectionSort,
// Store types
FontCollectionState,
FontFeatures,
FontFiles,
FontItem,
FontMetadata,
2026-01-02 17:01:59 +03:00
FontProvider,
// Fontshare API types
FontshareApiModel,
FontshareAxis,
FontshareDesigner,
FontshareFeature,
FontshareFont,
FontshareLink,
FontsharePublisher,
FontshareStore,
FontshareStyle,
FontshareStyleProperties,
FontshareTag,
FontshareWeight,
FontStyleUrls,
FontSubset,
2026-01-02 17:01:59 +03:00
FontVariant,
FontWeight,
FontWeightItalic,
// Google Fonts API types
2026-01-02 17:01:59 +03:00
GoogleFontsApiModel,
// Normalization types
UnifiedFont,
UnifiedFontVariant,
2026-01-09 16:13:02 +03:00
} from './model';
export {
2026-01-18 14:53:14 +03:00
appliedFontsManager,
createFontshareStore,
fetchFontshareFontsQuery,
fontshareStore,
2026-01-18 14:53:14 +03:00
selectedFontsStore,
} from './model';
// Stores
export {
createGoogleFontsStore,
GoogleFontsStore,
} from './model/services/fetchGoogleFonts.svelte';
// UI elements
2026-01-18 14:53:14 +03:00
export {
FontApplicator,
FontListItem,
FontVirtualList,
} from './ui';