rotion 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode, JSX, ComponentType, ComponentProps } from 'react';
|
|
1
|
+
import React, { ReactNode, JSX, ComponentType, FC, ComponentProps } from 'react';
|
|
2
2
|
import { QueryDatabaseResponse, PageObjectResponse, GetPagePropertyResponse, DatabaseObjectResponse, TextRichTextItemResponse, MentionRichTextItemResponse, GetSelfResponse, EquationRichTextItemResponse, ListBlockChildrenResponse, ParagraphBlockObjectResponse, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, BulletedListItemBlockObjectResponse, NumberedListItemBlockObjectResponse, QuoteBlockObjectResponse, ToDoBlockObjectResponse, ToggleBlockObjectResponse, TemplateBlockObjectResponse, SyncedBlockBlockObjectResponse, ChildPageBlockObjectResponse, ChildDatabaseBlockObjectResponse, EquationBlockObjectResponse, CodeBlockObjectResponse, CalloutBlockObjectResponse, RichTextItemResponse, DividerBlockObjectResponse, BreadcrumbBlockObjectResponse, TableOfContentsBlockObjectResponse, ColumnListBlockObjectResponse, ColumnBlockObjectResponse, LinkToPageBlockObjectResponse, TableBlockObjectResponse, TableRowBlockObjectResponse, EmbedBlockObjectResponse, BookmarkBlockObjectResponse, ImageBlockObjectResponse, VideoBlockObjectResponse, PdfBlockObjectResponse, FileBlockObjectResponse, AudioBlockObjectResponse, LinkPreviewBlockObjectResponse, UnsupportedBlockObjectResponse, GetPageResponse } from '@notionhq/client/build/src/api-endpoints.js';
|
|
3
3
|
import { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
4
|
import { UrlObject } from 'node:url';
|
|
@@ -961,7 +961,7 @@ declare const TableOfContents: ({ blocks }: TableOfContentsProps) => React.JSX.E
|
|
|
961
961
|
* @param LinkComponent - The Link component from your framework (e.g., next/link)
|
|
962
962
|
* @returns A Client Component wrapper that can be used with rotion
|
|
963
963
|
*/
|
|
964
|
-
declare function createClientLink<T extends ComponentType<any>>(LinkComponent: T):
|
|
964
|
+
declare function createClientLink<T extends ComponentType<any>>(LinkComponent: T): FC<ComponentProps<T>>;
|
|
965
965
|
|
|
966
966
|
export { BookmarkBlock, BreadcrumbBlock, Breadcrumbs, BuildPlainTextByPage, BulletedListBlock, CalloutBlock, Checkbox, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryFormulaField, GalleryMultiSelectField$1 as GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryMultiSelectField as GallerySelectField, GalleryTitleField, GalleryUrlField, GenHtmlId, Icon, ImageBlock, LinkPreviewBlock, List, ListCheckboxField, ListDateField, ListFormulaField, ListMultiSelectField, ListNumberField, ListRichTextField, ListSelectField, ListTitleField, ListUrlField, NumberedListBlock, Page, PdfBlock, PrefixSuffix, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableFormulaField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContents, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, createClientLink, getDatetimeFormat, getLinkPathAndLinkKey, getSlug, pathBasename, queryToString, splitUrl };
|
|
967
967
|
export type { Link };
|