rotion 0.0.7 → 0.0.9
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.md +20 -32
- package/dist/exporter/api.js +2 -2
- package/dist/exporter/api.js.map +1 -1
- package/dist/exporter/blocks.js +18 -3
- package/dist/exporter/blocks.js.map +1 -1
- package/dist/exporter/files.d.ts +4 -0
- package/dist/exporter/files.js +44 -1
- package/dist/exporter/files.js.map +1 -1
- package/dist/exporter/types.d.ts +24 -1
- package/dist/exporter/variables.d.ts +1 -0
- package/dist/exporter/variables.js +1 -0
- package/dist/exporter/variables.js.map +1 -1
- package/dist/ui/cjs/index.js +1 -20041
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/style.css +331 -0
- package/dist/ui/cjs/types/exporter/files.d.ts +4 -0
- package/dist/ui/cjs/types/exporter/types.d.ts +24 -1
- package/dist/ui/cjs/types/exporter/variables.d.ts +1 -0
- package/dist/ui/cjs/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
- package/dist/ui/cjs/types/ui/components/List/Column.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/List/Column.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/List/List.d.ts +4 -1
- package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
- package/dist/ui/{umd/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
- package/dist/ui/cjs/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
- package/dist/ui/{esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
- package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/Page.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/Page.types.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/PageHandler.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/PageHandler.types.d.ts +1 -2
- package/dist/ui/cjs/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
- package/dist/ui/cjs/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
- package/dist/ui/cjs/types/ui/components/Table/Column.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Table/Column.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/Table/TableHandler.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
- package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
- package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
- package/dist/ui/cjs/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
- package/dist/ui/cjs/types/ui/components/index.d.ts +1 -3
- package/dist/ui/cjs/types/ui/components/tokens.stylex.d.ts +9 -0
- package/dist/ui/cjs/types/ui/components/types.d.ts +0 -8
- package/dist/ui/esm/index.js +1 -19981
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/style.css +331 -0
- package/dist/ui/esm/types/exporter/files.d.ts +4 -0
- package/dist/ui/esm/types/exporter/types.d.ts +24 -1
- package/dist/ui/esm/types/exporter/variables.d.ts +1 -0
- package/dist/ui/esm/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
- package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
- package/dist/ui/esm/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
- package/dist/ui/esm/types/ui/components/List/Column.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/List/Column.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/List/List.d.ts +4 -1
- package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
- package/dist/ui/{cjs/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
- package/dist/ui/esm/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
- package/dist/ui/{umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
- package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/Page.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/Page.types.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/PageHandler.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/PageHandler.types.d.ts +1 -2
- package/dist/ui/esm/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
- package/dist/ui/esm/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
- package/dist/ui/esm/types/ui/components/Table/Column.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Table/Column.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/Table/TableHandler.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
- package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
- package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
- package/dist/ui/esm/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
- package/dist/ui/esm/types/ui/components/index.d.ts +1 -3
- package/dist/ui/esm/types/ui/components/tokens.stylex.d.ts +9 -0
- package/dist/ui/esm/types/ui/components/types.d.ts +0 -8
- package/dist/ui/types.d.ts +66 -48
- package/dist/ui/umd/index.js +1 -20045
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/style.css +331 -0
- package/dist/ui/umd/types/exporter/files.d.ts +4 -0
- package/dist/ui/umd/types/exporter/types.d.ts +24 -1
- package/dist/ui/umd/types/exporter/variables.d.ts +1 -0
- package/dist/ui/umd/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
- package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
- package/dist/ui/umd/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
- package/dist/ui/umd/types/ui/components/List/Column.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/List/Column.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/List/List.d.ts +4 -1
- package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
- package/dist/ui/{esm/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
- package/dist/ui/umd/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
- package/dist/ui/{cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
- package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/Page.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/Page.types.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/PageHandler.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/PageHandler.types.d.ts +1 -2
- package/dist/ui/umd/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
- package/dist/ui/umd/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
- package/dist/ui/umd/types/ui/components/Table/Column.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Table/Column.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/Table/TableHandler.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
- package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
- package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
- package/dist/ui/umd/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
- package/dist/ui/umd/types/ui/components/index.d.ts +1 -3
- package/dist/ui/umd/types/ui/components/tokens.stylex.d.ts +9 -0
- package/dist/ui/umd/types/ui/components/types.d.ts +0 -8
- package/package.json +30 -33
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
- /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
- /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
- /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
- /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
- /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
- /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
- /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
- /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CodeBlockProps } from './CodeBlock.types';
|
|
3
|
-
declare const CodeBlock: ({ block
|
|
3
|
+
declare const CodeBlock: ({ block }: CodeBlockProps) => React.JSX.Element;
|
|
4
4
|
export default CodeBlock;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { Link } from '../../types';
|
|
4
4
|
import type { BlockObjectResponse } from '../../../../exporter';
|
|
5
5
|
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
6
|
-
export interface
|
|
6
|
+
export interface ListBlocksProps {
|
|
7
7
|
tag: keyof JSX.IntrinsicElements;
|
|
8
8
|
blocks: BlockObjectResponse[];
|
|
9
9
|
href?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { NumberedListItemBlockObjectResponseEx } from '../../../../exporter';
|
|
3
3
|
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
4
|
import type { Link } from '../../types';
|
|
5
|
-
export interface
|
|
5
|
+
export interface NumberedListBlockProps {
|
|
6
6
|
block: NumberedListItemBlockObjectResponseEx;
|
|
7
7
|
href?: string;
|
|
8
8
|
link?: Link;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
1
|
+
import NumberedListBlock from './NumberedListBlock';
|
|
2
|
+
export { NumberedListBlock };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PageProps } from './Page.types';
|
|
3
|
-
export declare const Page: ({ blocks, href, link, query,
|
|
3
|
+
export declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
|
|
4
4
|
export default Page;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { ListBlockChildrenResponseEx } from '../../../exporter';
|
|
3
3
|
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
|
-
import type { Link
|
|
4
|
+
import type { Link } from '../types';
|
|
5
5
|
export interface PageProps {
|
|
6
6
|
blocks: ListBlockChildrenResponseEx;
|
|
7
7
|
href?: string;
|
|
8
8
|
link?: Link;
|
|
9
9
|
query?: ParsedUrlQueryInput;
|
|
10
|
-
modules?: ExternalModules;
|
|
11
10
|
breadcrumb_hrefs?: string[];
|
|
12
11
|
}
|
|
13
12
|
export interface ListType {
|
|
14
13
|
[key: string]: string;
|
|
15
14
|
}
|
|
15
|
+
export type ULOL = 'ul' | 'ol';
|
|
@@ -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,
|
|
14
|
+
export declare const PageHandler: ({ block, href, link, query, breadcrumb_hrefs }: HandlerProps) => React.JSX.Element;
|
|
15
15
|
export default PageHandler;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { BlockObjectResponse } from '../../../exporter';
|
|
3
3
|
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
|
-
import type { Link
|
|
4
|
+
import type { Link } from '../types';
|
|
5
5
|
export interface HandlerProps {
|
|
6
6
|
block: BlockObjectResponse;
|
|
7
7
|
href?: string;
|
|
8
8
|
link?: Link;
|
|
9
9
|
query?: ParsedUrlQueryInput;
|
|
10
|
-
modules?: ExternalModules;
|
|
11
10
|
breadcrumb_hrefs?: string[];
|
|
12
11
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface PageIconProps {
|
|
3
|
-
name: 'figma' | 'slack' | 'github' | 'link';
|
|
3
|
+
name: 'figma' | 'slack' | 'github' | 'file' | 'link';
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
4
6
|
}
|
|
5
|
-
declare const PageIcon: ({ name }: PageIconProps) => React.JSX.Element;
|
|
7
|
+
declare const PageIcon: ({ name, width, height }: PageIconProps) => React.JSX.Element;
|
|
6
8
|
export default PageIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SyncedBlockBlockObjectResponseEx } from '../../../../exporter';
|
|
2
2
|
export interface SyncedBlockProps {
|
|
3
|
-
block:
|
|
3
|
+
block: SyncedBlockBlockObjectResponseEx;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParagraphBlockObjectResponseEx, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, DividerBlockObjectResponse } from '../../../../exporter';
|
|
3
3
|
export interface TextBlockProps {
|
|
4
4
|
tag: keyof JSX.IntrinsicElements;
|
|
5
|
-
block:
|
|
5
|
+
block: ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | QuoteBlockObjectResponse | DividerBlockObjectResponse;
|
|
6
6
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
3
|
+
import type { PageObjectResponseEx } from '../../../exporter';
|
|
4
|
+
import type { Link } from '../types';
|
|
5
|
+
export interface ColumnProps {
|
|
6
|
+
name: string;
|
|
7
|
+
page: PageObjectResponseEx;
|
|
8
|
+
href?: string;
|
|
9
|
+
link?: Link;
|
|
10
|
+
query?: ParsedUrlQueryInput;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TableHandlerProps } from './TableHandler.types';
|
|
3
|
-
declare const TableHandler: ({
|
|
3
|
+
declare const TableHandler: ({ items, path, slug, link, query }: TableHandlerProps) => React.JSX.Element | undefined;
|
|
4
4
|
export default TableHandler;
|
|
@@ -3,7 +3,6 @@ import type { GetPagePropertyResponse } from '../../../exporter';
|
|
|
3
3
|
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
4
|
import type { Link } from '../types';
|
|
5
5
|
export interface TableHandlerProps {
|
|
6
|
-
name: string;
|
|
7
6
|
items: GetPagePropertyResponse | undefined;
|
|
8
7
|
path?: string;
|
|
9
8
|
slug?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TableIconProps } from './TableIcon.types';
|
|
3
|
-
declare const TableIcon: ({ type }: TableIconProps) => React.JSX.Element;
|
|
3
|
+
declare const TableIcon: ({ type, className }: TableIconProps) => React.JSX.Element;
|
|
4
4
|
export default TableIcon;
|
package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
|
+
import type { Link } from '../../types';
|
|
5
|
+
export interface LinkedTagIfLinkedProps {
|
|
6
|
+
pathname: string;
|
|
7
|
+
color: string;
|
|
8
|
+
link?: Link;
|
|
9
|
+
query?: ParsedUrlQueryInput;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TableMultiSelectFieldProps } from './TableMultiSelectField.types';
|
|
3
|
-
declare const TableMultiSelectField: ({ payload, path, link }: TableMultiSelectFieldProps) => React.JSX.Element;
|
|
3
|
+
declare const TableMultiSelectField: ({ payload, path, link, query }: TableMultiSelectFieldProps) => React.JSX.Element;
|
|
4
4
|
export default TableMultiSelectField;
|
package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { MultiSelectPropertyItemObjectResponse } from '../../../../exporter';
|
|
2
3
|
import type { Link } from '../../types';
|
|
4
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
3
5
|
export interface TableMultiSelectFieldProps {
|
|
4
6
|
payload: MultiSelectPropertyItemObjectResponse;
|
|
5
7
|
path?: string;
|
|
6
8
|
link?: Link;
|
|
9
|
+
query?: ParsedUrlQueryInput;
|
|
7
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { Link } from '../../types';
|
|
4
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
5
|
+
export interface LinkedTagIfLinkedProps {
|
|
6
|
+
pathname: string;
|
|
7
|
+
color: string;
|
|
8
|
+
link?: Link;
|
|
9
|
+
query?: ParsedUrlQueryInput;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TableSelectFieldProps } from './TableSelectField.types';
|
|
3
|
-
declare const TableSelectField: ({ payload, path, link }: TableSelectFieldProps) => React.JSX.Element;
|
|
3
|
+
declare const TableSelectField: ({ payload, path, link, query }: TableSelectFieldProps) => React.JSX.Element;
|
|
4
4
|
export default TableSelectField;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { SelectPropertyItemObjectResponse } from '../../../../exporter';
|
|
2
3
|
import type { Link } from '../../types';
|
|
4
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
3
5
|
export interface TableSelectFieldProps {
|
|
4
6
|
payload: SelectPropertyItemObjectResponse;
|
|
5
7
|
path?: string;
|
|
6
8
|
link?: Link;
|
|
9
|
+
query?: ParsedUrlQueryInput;
|
|
7
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
|
+
import type { Link } from '../../types';
|
|
5
|
+
export interface LinkedTitleIfLinkedProps {
|
|
6
|
+
path?: string;
|
|
7
|
+
slug?: string;
|
|
8
|
+
link?: Link;
|
|
9
|
+
query?: ParsedUrlQueryInput;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
@@ -28,7 +28,7 @@ export * from './Table/TableUrlField';
|
|
|
28
28
|
export * from './Page';
|
|
29
29
|
export * from './Page/BookmarkBlock';
|
|
30
30
|
export * from './Page/BreadcrumbBlock';
|
|
31
|
-
export * from './Page/
|
|
31
|
+
export * from './Page/BulletedListBlock';
|
|
32
32
|
export * from './Page/CalloutBlock';
|
|
33
33
|
export * from './Page/ChildDatabaseBlock';
|
|
34
34
|
export * from './Page/ChildPageBlock';
|
|
@@ -39,14 +39,12 @@ export * from './Page/EquationBlock';
|
|
|
39
39
|
export * from './Page/FileBlock';
|
|
40
40
|
export * from './Page/ImageBlock';
|
|
41
41
|
export * from './Page/LinkPreviewBlock';
|
|
42
|
-
export * from './Page/ListBlock';
|
|
43
42
|
export * from './Page/NumberedListBlocks';
|
|
44
43
|
export * from './Page/PageIcon';
|
|
45
44
|
export * from './Page/PdfBlock';
|
|
46
45
|
export * from './Page/SyncedBlock';
|
|
47
46
|
export * from './Page/TableBlock';
|
|
48
47
|
export * from './Page/TableOfContentsBlock';
|
|
49
|
-
export * from './Page/TemplateBlock';
|
|
50
48
|
export * from './Page/TextBlock';
|
|
51
49
|
export * from './Page/RichText';
|
|
52
50
|
export * from './Page/ToDoBlock';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const fontFamily: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
2
|
+
sansserif: string;
|
|
3
|
+
}>, symbol>;
|
|
4
|
+
export declare const color: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
5
|
+
[x: string]: string;
|
|
6
|
+
}>, symbol>;
|
|
7
|
+
export declare const withDarkColor: import("@stylexjs/stylex").VarGroup<Readonly<{
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
}>, symbol>;
|
|
@@ -7,11 +7,3 @@ export interface Link extends React.FC<{
|
|
|
7
7
|
href: string | UrlObject;
|
|
8
8
|
}> {
|
|
9
9
|
}
|
|
10
|
-
export interface ExternalModules {
|
|
11
|
-
mermaid?: {
|
|
12
|
-
init: (config?: {}, nodes?: string | HTMLElement, callback?: ((id: string) => unknown) | undefined) => Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
prism?: {
|
|
15
|
-
highlightElement: (element: Element, async?: boolean | undefined, callback?: (element: Element) => void | undefined) => void;
|
|
16
|
-
};
|
|
17
|
-
}
|
package/dist/ui/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { ListBlockChildrenResponse, BulletedListItemBlockObjectResponse, NumberedListItemBlockObjectResponse, TableBlockObjectResponse, ToggleBlockObjectResponse, ColumnListBlockObjectResponse, ChildPageBlockObjectResponse, ChildDatabaseBlockObjectResponse, BookmarkBlockObjectResponse, RichTextItemResponse, CalloutBlockObjectResponse, ImageBlockObjectResponse, VideoBlockObjectResponse, EmbedBlockObjectResponse, TextRichTextItemResponse, EquationRichTextItemResponse, BreadcrumbBlockObjectResponse, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, ToDoBlockObjectResponse, TemplateBlockObjectResponse,
|
|
2
|
+
import { ListBlockChildrenResponse, BulletedListItemBlockObjectResponse, NumberedListItemBlockObjectResponse, TableBlockObjectResponse, ToggleBlockObjectResponse, ColumnListBlockObjectResponse, ChildPageBlockObjectResponse, ChildDatabaseBlockObjectResponse, BookmarkBlockObjectResponse, RichTextItemResponse, CalloutBlockObjectResponse, ImageBlockObjectResponse, VideoBlockObjectResponse, EmbedBlockObjectResponse, TextRichTextItemResponse, EquationRichTextItemResponse, ParagraphBlockObjectResponse, BreadcrumbBlockObjectResponse, PdfBlockObjectResponse, SyncedBlockBlockObjectResponse, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, ToDoBlockObjectResponse, TemplateBlockObjectResponse, EquationBlockObjectResponse, CodeBlockObjectResponse, DividerBlockObjectResponse, TableOfContentsBlockObjectResponse, ColumnBlockObjectResponse, LinkToPageBlockObjectResponse, TableRowBlockObjectResponse, FileBlockObjectResponse, AudioBlockObjectResponse, LinkPreviewBlockObjectResponse, UnsupportedBlockObjectResponse, PageObjectResponse, GetPagePropertyResponse, DatabaseObjectResponse, QueryDatabaseResponse, MentionRichTextItemResponse, GetSelfResponse, MultiSelectPropertyItemObjectResponse, NumberPropertyItemObjectResponse, RichTextPropertyItemObjectResponse, TitlePropertyItemObjectResponse, SelectPropertyItemObjectResponse } from '@notionhq/client/build/src/api-endpoints.js';
|
|
3
3
|
import { ParsedUrlQueryInput } from 'node:querystring';
|
|
4
4
|
import { UrlObject } from 'node:url';
|
|
5
5
|
|
|
@@ -182,7 +182,30 @@ type Breadcrumb = {
|
|
|
182
182
|
type BreadcrumbBlockObjectResponseEx = BreadcrumbBlockObjectResponse & {
|
|
183
183
|
list: Breadcrumb[];
|
|
184
184
|
};
|
|
185
|
-
type
|
|
185
|
+
type PdfBlockObjectResponseEx = PdfBlockObjectResponse & {
|
|
186
|
+
pdf: {
|
|
187
|
+
type: "external";
|
|
188
|
+
external: {
|
|
189
|
+
url: TextRequest;
|
|
190
|
+
};
|
|
191
|
+
caption: Array<RichTextItemResponse>;
|
|
192
|
+
src: string;
|
|
193
|
+
size: number;
|
|
194
|
+
} | {
|
|
195
|
+
type: 'file';
|
|
196
|
+
file: {
|
|
197
|
+
url: string;
|
|
198
|
+
expiry_time: string;
|
|
199
|
+
};
|
|
200
|
+
caption: Array<RichTextItemResponse>;
|
|
201
|
+
src: string;
|
|
202
|
+
size: number;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
type SyncedBlockBlockObjectResponseEx = SyncedBlockBlockObjectResponse & {
|
|
206
|
+
children?: ListBlockChildrenResponseEx;
|
|
207
|
+
};
|
|
208
|
+
type BlockObjectResponse = ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | BulletedListItemBlockObjectResponseEx | NumberedListItemBlockObjectResponseEx | QuoteBlockObjectResponse | ToDoBlockObjectResponse | ToggleBlockObjectResponseEx | TemplateBlockObjectResponse | SyncedBlockBlockObjectResponseEx | ChildPageBlockObjectResponseEx | ChildDatabaseBlockObjectResponseEx | EquationBlockObjectResponse | CodeBlockObjectResponse | CalloutBlockObjectResponseEx | DividerBlockObjectResponse | BreadcrumbBlockObjectResponseEx | TableOfContentsBlockObjectResponse | ColumnListBlockObjectResponseEx | ColumnBlockObjectResponse | LinkToPageBlockObjectResponse | TableBlockObjectResponseEx | TableRowBlockObjectResponse | EmbedBlockObjectResponseEx | BookmarkBlockObjectResponseEx | ImageBlockObjectResponseEx | VideoBlockObjectResponseEx | PdfBlockObjectResponseEx | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
|
|
186
209
|
type ListBlockChildrenResponseEx = ListBlockChildrenResponse & {
|
|
187
210
|
results: Array<BlockObjectResponse>;
|
|
188
211
|
children?: ListBlockChildrenResponse;
|
|
@@ -297,24 +320,19 @@ type QueryDatabaseResponseEx = QueryDatabaseResponse & {
|
|
|
297
320
|
meta: GetDatabaseResponseEx;
|
|
298
321
|
};
|
|
299
322
|
|
|
323
|
+
interface FetchDatabaseRes extends QueryDatabaseResponseEx {
|
|
324
|
+
}
|
|
325
|
+
|
|
300
326
|
interface Link extends React.FC<{
|
|
301
327
|
children: string | React.ReactNode;
|
|
302
328
|
className?: string;
|
|
303
329
|
href: string | UrlObject;
|
|
304
330
|
}> {
|
|
305
331
|
}
|
|
306
|
-
interface ExternalModules {
|
|
307
|
-
mermaid?: {
|
|
308
|
-
init: (config?: {}, nodes?: string | HTMLElement, callback?: ((id: string) => unknown) | undefined) => Promise<void>;
|
|
309
|
-
};
|
|
310
|
-
prism?: {
|
|
311
|
-
highlightElement: (element: Element, async?: boolean | undefined, callback?: (element: Element) => void | undefined) => void;
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
332
|
|
|
315
333
|
interface GalleryProps {
|
|
316
334
|
keys: string[];
|
|
317
|
-
db:
|
|
335
|
+
db: FetchDatabaseRes;
|
|
318
336
|
href?: string;
|
|
319
337
|
link?: Link;
|
|
320
338
|
query?: ParsedUrlQueryInput;
|
|
@@ -332,9 +350,11 @@ interface GalleryCardProps {
|
|
|
332
350
|
link?: Link;
|
|
333
351
|
query?: ParsedUrlQueryInput;
|
|
334
352
|
preview?: 'cover' | 'content';
|
|
353
|
+
size: 'small' | 'medium' | 'large';
|
|
354
|
+
fit: boolean;
|
|
335
355
|
}
|
|
336
356
|
|
|
337
|
-
declare const GalleryCard: ({ keys, page, href, link, query, preview }: GalleryCardProps) => React.JSX.Element;
|
|
357
|
+
declare const GalleryCard: ({ keys, page, href, link, query, preview, size, fit }: GalleryCardProps) => React.JSX.Element;
|
|
338
358
|
|
|
339
359
|
interface GalleryCheckboxFieldProps {
|
|
340
360
|
payload: boolean;
|
|
@@ -352,9 +372,10 @@ interface GalleryMultiSelectFieldProps {
|
|
|
352
372
|
payload: MultiSelectPropertyItemObjectResponse;
|
|
353
373
|
path: string;
|
|
354
374
|
link?: Link;
|
|
375
|
+
query?: ParsedUrlQueryInput;
|
|
355
376
|
}
|
|
356
377
|
|
|
357
|
-
declare const GalleryMultiSelectField: ({ payload, path, link }: GalleryMultiSelectFieldProps) => React.JSX.Element;
|
|
378
|
+
declare const GalleryMultiSelectField: ({ payload, path, link, query }: GalleryMultiSelectFieldProps) => React.JSX.Element;
|
|
358
379
|
|
|
359
380
|
interface GalleryNumberFieldProps {
|
|
360
381
|
payload: NumberPropertyItemObjectResponse;
|
|
@@ -364,9 +385,10 @@ declare const GalleryNumberField: ({ payload }: GalleryNumberFieldProps) => Reac
|
|
|
364
385
|
|
|
365
386
|
interface GalleryRichTextFieldProps {
|
|
366
387
|
payload: RichTextPropertyItemObjectResponse;
|
|
388
|
+
size?: 'small' | 'medium' | 'large';
|
|
367
389
|
}
|
|
368
390
|
|
|
369
|
-
declare const GalleryRichTextField: ({ payload }: GalleryRichTextFieldProps) => React.JSX.Element;
|
|
391
|
+
declare const GalleryRichTextField: ({ payload, size }: GalleryRichTextFieldProps) => React.JSX.Element;
|
|
370
392
|
|
|
371
393
|
interface GalleryTitleFieldProps {
|
|
372
394
|
payload: Array<TitlePropertyItemObjectResponse>;
|
|
@@ -389,7 +411,7 @@ interface ListProps {
|
|
|
389
411
|
children?: ReactNode;
|
|
390
412
|
}
|
|
391
413
|
|
|
392
|
-
declare const List: React.
|
|
414
|
+
declare const List: ({ keys, db, href, link, query }: ListProps) => React.JSX.Element;
|
|
393
415
|
|
|
394
416
|
interface ListCheckboxFieldProps {
|
|
395
417
|
payload: boolean;
|
|
@@ -465,17 +487,19 @@ declare const TableDateField: ({ payload }: TableDateFieldProps) => React.JSX.El
|
|
|
465
487
|
|
|
466
488
|
interface TableIconProps {
|
|
467
489
|
type: string;
|
|
490
|
+
className?: string;
|
|
468
491
|
}
|
|
469
492
|
|
|
470
|
-
declare const TableIcon: ({ type }: TableIconProps) => React.JSX.Element;
|
|
493
|
+
declare const TableIcon: ({ type, className }: TableIconProps) => React.JSX.Element;
|
|
471
494
|
|
|
472
495
|
interface TableMultiSelectFieldProps {
|
|
473
496
|
payload: MultiSelectPropertyItemObjectResponse;
|
|
474
497
|
path?: string;
|
|
475
498
|
link?: Link;
|
|
499
|
+
query?: ParsedUrlQueryInput;
|
|
476
500
|
}
|
|
477
501
|
|
|
478
|
-
declare const TableMultiSelectField: ({ payload, path, link }: TableMultiSelectFieldProps) => React.JSX.Element;
|
|
502
|
+
declare const TableMultiSelectField: ({ payload, path, link, query }: TableMultiSelectFieldProps) => React.JSX.Element;
|
|
479
503
|
|
|
480
504
|
interface TableNumberFieldProps {
|
|
481
505
|
payload: NumberPropertyItemObjectResponse;
|
|
@@ -493,9 +517,10 @@ interface TableSelectFieldProps {
|
|
|
493
517
|
payload: SelectPropertyItemObjectResponse;
|
|
494
518
|
path?: string;
|
|
495
519
|
link?: Link;
|
|
520
|
+
query?: ParsedUrlQueryInput;
|
|
496
521
|
}
|
|
497
522
|
|
|
498
|
-
declare const TableSelectField: ({ payload, path, link }: TableSelectFieldProps) => React.JSX.Element;
|
|
523
|
+
declare const TableSelectField: ({ payload, path, link, query }: TableSelectFieldProps) => React.JSX.Element;
|
|
499
524
|
|
|
500
525
|
interface TableTitleFieldProps {
|
|
501
526
|
payload: Array<TitlePropertyItemObjectResponse>;
|
|
@@ -518,11 +543,10 @@ interface PageProps {
|
|
|
518
543
|
href?: string;
|
|
519
544
|
link?: Link;
|
|
520
545
|
query?: ParsedUrlQueryInput;
|
|
521
|
-
modules?: ExternalModules;
|
|
522
546
|
breadcrumb_hrefs?: string[];
|
|
523
547
|
}
|
|
524
548
|
|
|
525
|
-
declare const Page: ({ blocks, href, link, query,
|
|
549
|
+
declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
|
|
526
550
|
|
|
527
551
|
interface BookmarkBlockProps {
|
|
528
552
|
block: BookmarkBlockObjectResponseEx;
|
|
@@ -539,14 +563,23 @@ interface BreadcrumbBlockProps {
|
|
|
539
563
|
|
|
540
564
|
declare const BreadcrumbBlock: ({ block, link, hrefs, query }: BreadcrumbBlockProps) => React.JSX.Element;
|
|
541
565
|
|
|
542
|
-
interface
|
|
566
|
+
interface BreadcrumbsProps {
|
|
567
|
+
list: Breadcrumb[];
|
|
568
|
+
link?: Link;
|
|
569
|
+
hrefs?: string[];
|
|
570
|
+
query?: ParsedUrlQueryInput;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
declare const Breadcrumbs: ({ list, link, hrefs, query }: BreadcrumbsProps) => React.JSX.Element;
|
|
574
|
+
|
|
575
|
+
interface BulletedListBlockProps {
|
|
543
576
|
block: BulletedListItemBlockObjectResponseEx;
|
|
544
577
|
href?: string;
|
|
545
578
|
link?: Link;
|
|
546
579
|
query?: ParsedUrlQueryInput;
|
|
547
580
|
}
|
|
548
581
|
|
|
549
|
-
declare const
|
|
582
|
+
declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) => React.JSX.Element;
|
|
550
583
|
|
|
551
584
|
interface CalloutBlockProps {
|
|
552
585
|
block: CalloutBlockObjectResponseEx;
|
|
@@ -574,10 +607,9 @@ declare const ChildPageBlock: ({ block, href, link, query }: ChildPageBlockProps
|
|
|
574
607
|
|
|
575
608
|
interface CodeBlockProps {
|
|
576
609
|
block: CodeBlockObjectResponse;
|
|
577
|
-
modules?: ExternalModules;
|
|
578
610
|
}
|
|
579
611
|
|
|
580
|
-
declare const CodeBlock: ({ block
|
|
612
|
+
declare const CodeBlock: ({ block }: CodeBlockProps) => React.JSX.Element;
|
|
581
613
|
|
|
582
614
|
interface ColumnListBlockProps {
|
|
583
615
|
block: ColumnListBlockObjectResponseEx;
|
|
@@ -618,38 +650,30 @@ type LinkPreviewBlockProps = {
|
|
|
618
650
|
|
|
619
651
|
declare const LinkPreviewBlock: ({ block }: LinkPreviewBlockProps) => React.JSX.Element;
|
|
620
652
|
|
|
621
|
-
interface
|
|
622
|
-
tag: keyof JSX.IntrinsicElements;
|
|
623
|
-
blocks: BlockObjectResponse[];
|
|
624
|
-
href?: string;
|
|
625
|
-
link?: Link;
|
|
626
|
-
query?: ParsedUrlQueryInput;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
declare const ListBlock: ({ tag, blocks, href, link, query }: ListBlockProps) => React.JSX.Element;
|
|
630
|
-
|
|
631
|
-
interface NumberedListBlocksProps {
|
|
653
|
+
interface NumberedListBlockProps {
|
|
632
654
|
block: NumberedListItemBlockObjectResponseEx;
|
|
633
655
|
href?: string;
|
|
634
656
|
link?: Link;
|
|
635
657
|
query?: ParsedUrlQueryInput;
|
|
636
658
|
}
|
|
637
659
|
|
|
638
|
-
declare const
|
|
660
|
+
declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) => React.JSX.Element;
|
|
639
661
|
|
|
640
662
|
interface PageIconProps {
|
|
641
|
-
name: 'figma' | 'slack' | 'github' | 'link';
|
|
663
|
+
name: 'figma' | 'slack' | 'github' | 'file' | 'link';
|
|
664
|
+
width?: string;
|
|
665
|
+
height?: string;
|
|
642
666
|
}
|
|
643
|
-
declare const PageIcon: ({ name }: PageIconProps) => React.JSX.Element;
|
|
667
|
+
declare const PageIcon: ({ name, width, height }: PageIconProps) => React.JSX.Element;
|
|
644
668
|
|
|
645
669
|
interface PdfBlockProps {
|
|
646
|
-
block:
|
|
670
|
+
block: PdfBlockObjectResponseEx;
|
|
647
671
|
}
|
|
648
672
|
|
|
649
673
|
declare const PdfBlock: ({ block }: PdfBlockProps) => React.JSX.Element;
|
|
650
674
|
|
|
651
675
|
interface SyncedBlockProps {
|
|
652
|
-
block:
|
|
676
|
+
block: SyncedBlockBlockObjectResponseEx;
|
|
653
677
|
}
|
|
654
678
|
|
|
655
679
|
declare const SyncedBlock: ({ block }: SyncedBlockProps) => React.JSX.Element;
|
|
@@ -666,15 +690,9 @@ interface TableOfContentsBlockProps {
|
|
|
666
690
|
|
|
667
691
|
declare const TableOfContentsBlock: ({ block }: TableOfContentsBlockProps) => React.JSX.Element;
|
|
668
692
|
|
|
669
|
-
interface TemplateBlockProps {
|
|
670
|
-
block: TemplateBlockObjectResponse;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
declare const TemplateBlock: ({ block }: TemplateBlockProps) => React.JSX.Element;
|
|
674
|
-
|
|
675
693
|
interface TextBlockProps {
|
|
676
694
|
tag: keyof JSX.IntrinsicElements;
|
|
677
|
-
block:
|
|
695
|
+
block: ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | QuoteBlockObjectResponse | DividerBlockObjectResponse;
|
|
678
696
|
}
|
|
679
697
|
|
|
680
698
|
declare const TextBlock: ({ tag, block }: TextBlockProps) => React.JSX.Element;
|
|
@@ -716,4 +734,4 @@ declare function UsePagination<T>(pages: T[], perPage: number): {
|
|
|
716
734
|
declare function BuildPlainTextByPage(blocks: ListBlockChildrenResponseEx): string;
|
|
717
735
|
declare function pathBasename(str: string): string;
|
|
718
736
|
|
|
719
|
-
export { BookmarkBlock, BreadcrumbBlock, BuildPlainTextByPage,
|
|
737
|
+
export { BookmarkBlock, BreadcrumbBlock, Breadcrumbs, BuildPlainTextByPage, BulletedListBlock, CalloutBlock, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryTitleField, GalleryUrlField, ImageBlock, type Link, LinkPreviewBlock, List, ListCheckboxField, ListDateField, ListMultiSelectField, ListNumberField, ListRichTextField, ListTitleField, ListUrlField, NumberedListBlock, Page, PageIcon, PdfBlock, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getLinkPathAndLinkKey, pathBasename, queryToString };
|