chore: create index files for better import/export api

This commit is contained in:
Ilia Mashkov
2026-01-09 16:14:38 +03:00
parent 13509a4145
commit e1af950442
5 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
export {
createFontCollection,
type FontCollectionStore,
} from './helpers/createFontCollection.svelte';

View File

@@ -0,0 +1,38 @@
export { fontCollection } from './store/fontCollection.svelte';
export type {
// Domain types
FontCategory,
FontCollectionFilters,
FontCollectionSort,
// Store types
FontCollectionState,
FontCollectionStore,
FontFeatures,
FontFiles,
FontItem,
FontMetadata,
FontProvider,
// Fontshare API types
FontshareApiModel,
FontshareAxis,
FontshareDesigner,
FontshareFeature,
FontshareFont,
FontshareLink,
FontsharePublisher,
FontshareStyle,
FontshareStyleProperties,
FontshareTag,
FontshareWeight,
FontStyleUrls,
FontSubset,
FontVariant,
FontWeight,
FontWeightItalic,
// Google Fonts API types
GoogleFontsApiModel,
// Normalization types
UnifiedFont,
UnifiedFontVariant,
} from './types';

View File

@@ -0,0 +1,3 @@
import FontSearch from './FontSearch/FontSearch.svelte';
export { FontSearch };

View File

@@ -0,0 +1 @@
export { createTypographyControlManager } from './controlManager/controlManager.svelte';

View File

@@ -0,0 +1,16 @@
export {
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 './const/const';
export { controlManager } from './state/manager.svelte';