File size: 501 Bytes
e8a6c67
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
// Shared state across all three custom elements. Svelte stores have
// .subscribe (Svelte runtime uses it) AND a manual subscribe is exposed
// here so legacy agent.js can wire vanilla DOM to the same signal that
// Svelte components react to.
import { writable } from "svelte/store";

export const highlightedDocId = writable(null);
// { doc_id: number } — Briefing populates as it encounters citations,
// SourcesFooter renders the numbered list from this.
export const citeIndex = writable({});