From e1af950442d00bcf252cca4a0c3e58ff1afbe011 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 9 Jan 2026 16:14:38 +0300 Subject: [PATCH] chore: create index files for better import/export api --- src/entities/Font/lib/index.ts | 4 +++ src/entities/Font/model/index.ts | 38 +++++++++++++++++++++++++++ src/features/FetchFonts/ui/index.ts | 3 +++ src/features/SetupFont/lib/index.ts | 1 + src/features/SetupFont/model/index.ts | 16 +++++++++++ 5 files changed, 62 insertions(+) create mode 100644 src/entities/Font/lib/index.ts create mode 100644 src/entities/Font/model/index.ts create mode 100644 src/features/FetchFonts/ui/index.ts create mode 100644 src/features/SetupFont/lib/index.ts create mode 100644 src/features/SetupFont/model/index.ts diff --git a/src/entities/Font/lib/index.ts b/src/entities/Font/lib/index.ts new file mode 100644 index 0000000..add6359 --- /dev/null +++ b/src/entities/Font/lib/index.ts @@ -0,0 +1,4 @@ +export { + createFontCollection, + type FontCollectionStore, +} from './helpers/createFontCollection.svelte'; diff --git a/src/entities/Font/model/index.ts b/src/entities/Font/model/index.ts new file mode 100644 index 0000000..7a58cd1 --- /dev/null +++ b/src/entities/Font/model/index.ts @@ -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'; diff --git a/src/features/FetchFonts/ui/index.ts b/src/features/FetchFonts/ui/index.ts new file mode 100644 index 0000000..e71451a --- /dev/null +++ b/src/features/FetchFonts/ui/index.ts @@ -0,0 +1,3 @@ +import FontSearch from './FontSearch/FontSearch.svelte'; + +export { FontSearch }; diff --git a/src/features/SetupFont/lib/index.ts b/src/features/SetupFont/lib/index.ts new file mode 100644 index 0000000..f1001f9 --- /dev/null +++ b/src/features/SetupFont/lib/index.ts @@ -0,0 +1 @@ +export { createTypographyControlManager } from './controlManager/controlManager.svelte'; diff --git a/src/features/SetupFont/model/index.ts b/src/features/SetupFont/model/index.ts new file mode 100644 index 0000000..8f7451c --- /dev/null +++ b/src/features/SetupFont/model/index.ts @@ -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';