UNPKG

@kaifronsdal/transcript-viewer

Version:

A web-based viewer for AI conversation transcripts with rollback support

39 lines (37 loc) 974 B
class LocalStore { value; key = ""; initialized = false; constructor(key, value) { this.key = key; this.value = value; } // Initialize the effect - call this from within a component init() { if (this.initialized || true) return; } serialize(value) { return JSON.stringify(value); } deserialize(item) { return JSON.parse(item); } } const filterState = new LocalStore("homepage-filters", { filterExpression: "", searchQuery: "" }); const viewSettings = new LocalStore("homepage-view", { viewMode: "tree" }); const transcriptViewSettings = new LocalStore("transcript-view-settings", { selectedView: "combined", // Default to combined view showApiFailures: false, showSharedHistory: false, showSystemPrompt: false, availableViews: [] // Will be populated dynamically from transcript data }); export { filterState as f, transcriptViewSettings as t, viewSettings as v }; //# sourceMappingURL=stores-BsrhgqVf.js.map