MCPcopy
hub / github.com/NotionX/react-notion-x / NotionContext

Interface NotionContext

packages/react-notion-x/src/context.tsx:16–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14} from './types'
15
16export interface NotionContext {
17 recordMap: ExtendedRecordMap
18 components: NotionComponents
19
20 mapPageUrl: MapPageUrlFn
21 mapImageUrl: MapImageUrlFn
22 searchNotion?: SearchNotionFn
23 isShowingSearch?: boolean
24 onHideSearch?: () => void
25
26 rootPageId?: string
27 rootDomain?: string
28
29 fullPage: boolean
30 darkMode: boolean
31 previewImages: boolean
32 forceCustomImages: boolean
33 showCollectionViewDropdown: boolean
34 showTableOfContents: boolean
35 minTableOfContentsItems: number
36 linkTableTitleProperties: boolean
37 isLinkCollectionToUrlProperty: boolean
38
39 defaultPageIcon?: string | null
40 defaultPageCover?: string | null
41 defaultPageCoverPosition?: number
42
43 zoom: any
44}
45
46export interface PartialNotionContext {
47 recordMap?: ExtendedRecordMap

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected