feat(fonts): implement Phase 4 - Update UI Components
- Replaced fontshareStore with unifiedFontStore in FontSearch.svelte - Replaced fontshareStore with unifiedFontStore in SuggestedFonts.svelte - Updated Font entity exports to include unifiedFontStore - Updated model exports to include unified store exports - Kept fontshareStore exports as deprecated for backward compatibility Phase 4/7: Proxy API Integration for GlyphDiff
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user