feature/comparison-slider #19

Merged
ilia merged 129 commits from feature/comparison-slider into main 2026-02-02 09:23:46 +00:00
4 changed files with 33 additions and 9 deletions
Showing only changes of commit d6607e5705 - Show all commits

View File

@@ -1,3 +1,14 @@
// Proxy API (PRIMARY)
export {
fetchProxyFontById,
fetchProxyFonts,
} from './api/proxy/proxyFonts';
export type {
ProxyFontsParams,
ProxyFontsResponse,
} from './api/proxy/proxyFonts';
// Fontshare API (DEPRECATED)
export {
fetchAllFontshareFonts,
fetchFontshareFontBySlug,
@@ -7,6 +18,8 @@ export type {
FontshareParams,
FontshareResponse,
} from './api/fontshare/fontshare';
// Google Fonts API (DEPRECATED)
export {
fetchGoogleFontFamily,
fetchGoogleFonts,
@@ -61,13 +74,17 @@ export type {
export {
appliedFontsManager,
createFontshareStore,
createUnifiedFontStore,
fetchFontshareFontsQuery,
fontshareStore,
selectedFontsStore,
unifiedFontStore,
} from './model';
// Stores
// Stores (DEPRECATED)
export {
createFontshareStore,
fontshareStore,
} from './model';
export {
createGoogleFontsStore,
GoogleFontsStore,

View File

@@ -38,8 +38,15 @@ export { fetchFontshareFontsQuery } from './services';
export {
appliedFontsManager,
createUnifiedFontStore,
selectedFontsStore,
type UnifiedFontStore,
unifiedFontStore,
} from './store';
// DEPRECATED: Fontshare store (kept for backward compatibility)
export {
createFontshareStore,
type FontshareStore,
fontshareStore,
selectedFontsStore,
} from './store';
} from './store/fontshareStore.svelte';

View File

@@ -6,11 +6,11 @@
import {
FontListItem,
FontVirtualList,
fontshareStore,
unifiedFontStore,
} from '$entities/Font';
</script>
<FontVirtualList items={fontshareStore.fonts}>
<FontVirtualList items={unifiedFontStore.fonts}>
{#snippet children({ item: font, isVisible, proximity })}
<FontListItem {font} {isVisible} {proximity} />
{/snippet}

View File

@@ -4,7 +4,7 @@
Combines search input with font list display
-->
<script lang="ts">
import { fontshareStore } from '$entities/Font';
import { unifiedFontStore } from '$entities/Font';
import {
FilterControls,
Filters,
@@ -38,7 +38,7 @@ onMount(() => {
* We "plug" this manager into the global store.
* addBinding returns a function that removes this binding when the component unmounts.
*/
const unbind = fontshareStore.addBinding(() => mapManagerToParams(filterManager));
const unbind = unifiedFontStore.addBinding(() => mapManagerToParams(filterManager));
return unbind;
});