25 lines
718 B
TypeScript
25 lines
718 B
TypeScript
/**
|
|
* Per-recollection graph persistence. Re-exports from recollectionStore for backward compatibility.
|
|
* New code should use recollectionStore (getGraph, setGraph, removeRecollectionData) directly.
|
|
*/
|
|
|
|
import {
|
|
getGraph,
|
|
setGraph,
|
|
removeRecollectionData,
|
|
RECOLLECTION_FILE_EXT,
|
|
RECOLLECTION_VERSION,
|
|
type StoredGraphState,
|
|
} from './recollectionStore'
|
|
|
|
export type { StoredGraphState }
|
|
export { RECOLLECTION_FILE_EXT, RECOLLECTION_VERSION }
|
|
|
|
export function getGraphStorageKey(recollectionId: string): string {
|
|
return `zui_graph_${recollectionId}`
|
|
}
|
|
|
|
export const loadGraphFromStorage = getGraph
|
|
export const saveGraphToStorage = setGraph
|
|
export const removeGraphFromStorage = removeRecollectionData
|