@udus/notion-renderer
Version:

120 lines • 6.85 kB
TypeScript
import { type ComponentType } from "react";
import type { BlockBlockObject } from "../types/notion/block/block.js";
import type { LinkProps } from "../types/notion/common/link.js";
export declare const AnnotationContext: import("react").Context<Partial<{
bold: import("../types/index.js").BoldAnnotationItem;
underline: import("../types/index.js").UnderlineAnnotationItem;
strikethrough: import("../types/index.js").StrikethroughAnnotationItem;
italic: import("../types/index.js").ItalicAnnotationItem;
code: import("../types/index.js").CodeAnnotationItem;
color: import("../types/index.js").ColorAnnotationItem;
}>>;
export declare const BlockContext: import("react").Context<Partial<{
audio: import("../types/index.js").AudioBlock;
bookmark: import("../types/index.js").BookmarkBlock;
breadcrumb: import("../types/index.js").BreadcrumbBlock;
bulleted_list: import("../types/index.js").BulletedListBlock;
bulleted_list_item: import("../types/index.js").BulletedListItemBlock;
callout: import("../types/index.js").CalloutBlock;
child_database: import("../types/index.js").ChildDatabaseBlock;
child_page: import("../types/index.js").ChildPageBlock;
code: import("../types/index.js").CodeBlock;
column: import("../types/index.js").ColumnBlock;
column_list: import("../types/index.js").ColumnListBlock;
divider: import("../types/index.js").DividerBlock;
embed: import("../types/index.js").EmbedBlock;
equation: import("../types/index.js").EquationBlock;
file: import("../types/index.js").FileBlock;
heading_1: import("../types/index.js").Heading1Block;
heading_2: import("../types/index.js").Heading2Block;
heading_3: import("../types/index.js").Heading3Block;
image: import("../types/index.js").ImageBlock;
link_preview: import("../types/index.js").LinkPreviewBlock;
link_to_page: import("../types/index.js").LinkToPageBlock;
numbered_list: import("../types/index.js").NumberedListBlock;
numbered_list_item: import("../types/index.js").NumberedListItemBlock;
paragraph: import("../types/index.js").ParagraphBlock;
pdf: import("../types/index.js").PdfBlock;
quote: import("../types/index.js").QuoteBlock;
synced_block: import("../types/notion/block/syncedBlock.js").SyncedBlockBlock;
table: import("../types/index.js").TableBlock;
table_of_contents: import("../types/index.js").TableOfContentsBlock;
table_row: import("../types/index.js").TableRowBlock;
template: import("../types/index.js").TemplateBlock;
to_do: import("../types/index.js").ToDoBlock;
toggle: import("../types/index.js").ToggleBlock;
unsupported: import("../types/index.js").UnsupportedBlock;
video: import("../types/index.js").VideoBlock;
}>>;
export declare const LinkContext: import("react").Context<ComponentType<LinkProps>>;
export declare const PropertyItemContext: import("react").Context<Partial<{
checkbox: import("../types/index.js").CheckboxPropertyItemComponent;
rich_text: import("../types/index.js").RichTextPropertyItemComponent;
title: import("../types/index.js").TitlePropertyItemComponent;
}>>;
export declare const RichTextItemContext: import("react").Context<Partial<{
equation: import("../types/index.js").EquationRichTextItem;
mention: import("../types/index.js").MentionRichTextItem;
text: import("../types/index.js").TextRichTextItem;
}>>;
export declare const useMapper: () => {
annotationMapper: Partial<{
bold: import("../types/index.js").BoldAnnotationItem;
underline: import("../types/index.js").UnderlineAnnotationItem;
strikethrough: import("../types/index.js").StrikethroughAnnotationItem;
italic: import("../types/index.js").ItalicAnnotationItem;
code: import("../types/index.js").CodeAnnotationItem;
color: import("../types/index.js").ColorAnnotationItem;
}>;
blockMapper: Partial<{
audio: import("../types/index.js").AudioBlock;
bookmark: import("../types/index.js").BookmarkBlock;
breadcrumb: import("../types/index.js").BreadcrumbBlock;
bulleted_list: import("../types/index.js").BulletedListBlock;
bulleted_list_item: import("../types/index.js").BulletedListItemBlock;
callout: import("../types/index.js").CalloutBlock;
child_database: import("../types/index.js").ChildDatabaseBlock;
child_page: import("../types/index.js").ChildPageBlock;
code: import("../types/index.js").CodeBlock;
column: import("../types/index.js").ColumnBlock;
column_list: import("../types/index.js").ColumnListBlock;
divider: import("../types/index.js").DividerBlock;
embed: import("../types/index.js").EmbedBlock;
equation: import("../types/index.js").EquationBlock;
file: import("../types/index.js").FileBlock;
heading_1: import("../types/index.js").Heading1Block;
heading_2: import("../types/index.js").Heading2Block;
heading_3: import("../types/index.js").Heading3Block;
image: import("../types/index.js").ImageBlock;
link_preview: import("../types/index.js").LinkPreviewBlock;
link_to_page: import("../types/index.js").LinkToPageBlock;
numbered_list: import("../types/index.js").NumberedListBlock;
numbered_list_item: import("../types/index.js").NumberedListItemBlock;
paragraph: import("../types/index.js").ParagraphBlock;
pdf: import("../types/index.js").PdfBlock;
quote: import("../types/index.js").QuoteBlock;
synced_block: import("../types/notion/block/syncedBlock.js").SyncedBlockBlock;
table: import("../types/index.js").TableBlock;
table_of_contents: import("../types/index.js").TableOfContentsBlock;
table_row: import("../types/index.js").TableRowBlock;
template: import("../types/index.js").TemplateBlock;
to_do: import("../types/index.js").ToDoBlock;
toggle: import("../types/index.js").ToggleBlock;
unsupported: import("../types/index.js").UnsupportedBlock;
video: import("../types/index.js").VideoBlock;
}>;
Link: ComponentType<LinkProps>;
propertyItemMapper: Partial<{
checkbox: import("../types/index.js").CheckboxPropertyItemComponent;
rich_text: import("../types/index.js").RichTextPropertyItemComponent;
title: import("../types/index.js").TitlePropertyItemComponent;
}>;
richTextItemMapper: Partial<{
equation: import("../types/index.js").EquationRichTextItem;
mention: import("../types/index.js").MentionRichTextItem;
text: import("../types/index.js").TextRichTextItem;
}>;
};
export declare const BlocksContext: import("react").Context<BlockBlockObject[]>;
export declare const useBlocks: () => BlockBlockObject[];
//# sourceMappingURL=hooks.d.ts.map