mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
299a9ca3c8
* fix(editor): hide transclusion borders and reset spacing in read-only mode * feat(share): add full width toggle for shared pages * feat(share): support resizing sidebar on shared pages * fix: auto redirect if there is only one SSO provider. - fix tighten sso redirect - fix share tree margin * sync * package overrides
11 lines
455 B
TypeScript
11 lines
455 B
TypeScript
import { atom } from "jotai";
|
|
import { atomWithStorage } from "jotai/utils";
|
|
import { ISharedPageTree } from "@/features/share/types/share.types";
|
|
import { SharedPageTreeNode } from "@/features/share/utils";
|
|
|
|
export const sharedPageTreeAtom = atom<ISharedPageTree | null>(null);
|
|
export const sharedTreeDataAtom = atom<SharedPageTreeNode[] | null>(null);
|
|
export const sharedPageFullWidthAtom = atomWithStorage<boolean>(
|
|
"sharedPageFullWidth",
|
|
false,
|
|
); |