mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
5506eb194b
* Show actual history changes * V2 - WIP * feat: page history diff * fix: exclude content from history listing --------- Co-authored-by: Jason Norwood-Young <jason@10layer.com>
10 lines
386 B
TypeScript
10 lines
386 B
TypeScript
import { atom } from "jotai";
|
|
|
|
export const historyAtoms = atom<boolean>(false);
|
|
export const activeHistoryIdAtom = atom<string>("");
|
|
export const activeHistoryPrevIdAtom = atom<string>("");
|
|
export const highlightChangesAtom = atom<boolean>(true);
|
|
|
|
export type DiffCounts = { added: number; deleted: number; total: number };
|
|
export const diffCountsAtom = atom<DiffCounts | null>(null);
|