1ad015aed6
Mirror the font-catalog change in ComparisonView: expose getComparisonStore() (plus __resetComparisonStore for tests) instead of an eager comparisonStore singleton, and consume getFontCatalog() internally. Update the model barrel and all UI consumers (Sidebar, FontList, Header, Line, SliderArea); Character no longer needs the store and reads everything from props. Update both specs to the accessor: comparisonStore.test mocks getFontCatalog with a writable stub (the real store's fonts is getter-only) and resets the catalog between cases; Sidebar.svelte.test resolves the store via the accessor. Also document Character's props.
4 lines
132 B
TypeScript
4 lines
132 B
TypeScript
export { getComparisonStore } from './stores/comparisonStore.svelte';
|
|
|
|
export type { Side } from './stores/comparisonStore.svelte';
|