rotion 1.13.0 → 1.13.2
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/README.ja.md +117 -0
- package/README.md +101 -11
- package/dist/ui/cjs/index.js +1 -1
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +1 -0
- package/dist/ui/cjs/types/ui/components/Page/NumberedListBlock/NumberedListBlock.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/Page.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/PageHandler.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +1 -0
- package/dist/ui/esm/index.js +1 -1
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +1 -0
- package/dist/ui/esm/types/ui/components/Page/NumberedListBlock/NumberedListBlock.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/Page.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/PageHandler.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +1 -0
- package/dist/ui/types.d.ts +6 -5
- package/dist/ui/umd/index.js +1 -1
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +1 -0
- package/dist/ui/umd/types/ui/components/Page/NumberedListBlock/NumberedListBlock.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/Page.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/PageHandler.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +1 -0
- package/package.json +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
2
|
import type { BulletedListBlockProps } from './BulletedListBlock.types';
|
|
3
3
|
import '../../tokens.css';
|
|
4
4
|
import './BulletedListBlock.css';
|
|
5
|
-
declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) =>
|
|
5
|
+
declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) => JSX.Element;
|
|
6
6
|
export default BulletedListBlock;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
2
|
import type { NumberedListBlockProps } from './NumberedListBlock.types';
|
|
3
3
|
import '../../tokens.css';
|
|
4
4
|
import './NumberedListBlock.css';
|
|
5
|
-
declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) =>
|
|
5
|
+
declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) => JSX.Element;
|
|
6
6
|
export default NumberedListBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
2
|
import type { PageProps } from './Page.types';
|
|
3
|
-
export declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) =>
|
|
3
|
+
export declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => JSX.Element;
|
|
4
4
|
export default Page;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
2
|
import type { HandlerProps } from './PageHandler.types';
|
|
3
3
|
export declare const blockType: {
|
|
4
4
|
heading_1: string;
|
|
@@ -11,5 +11,5 @@ export declare const blockType: {
|
|
|
11
11
|
code: string;
|
|
12
12
|
quote: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const PageHandler: ({ block, href, link, query, breadcrumb_hrefs }: HandlerProps) =>
|
|
14
|
+
export declare const PageHandler: ({ block, href, link, query, breadcrumb_hrefs }: HandlerProps) => JSX.Element;
|
|
15
15
|
export default PageHandler;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import type { ParagraphBlockObjectResponseEx, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, DividerBlockObjectResponse } from '../../../../exporter';
|
|
2
3
|
export interface TextBlockProps {
|
|
3
4
|
tag: keyof JSX.IntrinsicElements;
|
package/dist/ui/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, JSX } 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';
|
|
@@ -705,7 +705,7 @@ interface PageProps {
|
|
|
705
705
|
breadcrumb_hrefs?: string[];
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) =>
|
|
708
|
+
declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => JSX.Element;
|
|
709
709
|
|
|
710
710
|
interface BookmarkBlockProps {
|
|
711
711
|
block: BookmarkBlockObjectResponseEx;
|
|
@@ -738,7 +738,7 @@ interface BulletedListBlockProps {
|
|
|
738
738
|
query?: ParsedUrlQueryInput;
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
-
declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) =>
|
|
741
|
+
declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) => JSX.Element;
|
|
742
742
|
|
|
743
743
|
interface CalloutBlockProps {
|
|
744
744
|
block: CalloutBlockObjectResponseEx;
|
|
@@ -819,7 +819,7 @@ interface NumberedListBlockProps {
|
|
|
819
819
|
query?: ParsedUrlQueryInput;
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) =>
|
|
822
|
+
declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) => JSX.Element;
|
|
823
823
|
|
|
824
824
|
interface PdfBlockProps {
|
|
825
825
|
block: PdfBlockObjectResponseEx;
|
|
@@ -918,4 +918,5 @@ declare function splitUrl(url: string): {
|
|
|
918
918
|
omittedPath: string;
|
|
919
919
|
};
|
|
920
920
|
|
|
921
|
-
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, Icon, ImageBlock,
|
|
921
|
+
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, 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, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getDatetimeFormat, getLinkPathAndLinkKey, getSlug, pathBasename, queryToString, splitUrl };
|
|
922
|
+
export type { Link };
|