rotion 0.0.1 → 0.0.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/dist/exporter/api.d.ts +15 -0
- package/dist/exporter/api.js +56 -0
- package/dist/exporter/api.js.map +1 -0
- package/dist/exporter/blocks.d.ts +13 -0
- package/dist/exporter/blocks.js +239 -0
- package/dist/exporter/blocks.js.map +1 -0
- package/dist/exporter/database.d.ts +10 -0
- package/dist/exporter/database.js +92 -0
- package/dist/exporter/database.js.map +1 -0
- package/dist/exporter/files.d.ts +1 -0
- package/dist/exporter/files.js +4 -12
- package/dist/exporter/files.js.map +1 -1
- package/dist/exporter/index.d.ts +3 -1
- package/dist/exporter/index.js +3 -1
- package/dist/exporter/index.js.map +1 -1
- package/dist/exporter/page.d.ts +13 -0
- package/dist/exporter/page.js +74 -0
- package/dist/exporter/page.js.map +1 -0
- package/dist/exporter/variables.d.ts +16 -0
- package/dist/exporter/variables.js +18 -0
- package/dist/exporter/variables.js.map +1 -0
- package/dist/ui/cjs/types/exporter/api.d.ts +15 -0
- package/dist/ui/cjs/types/exporter/blocks.d.ts +13 -0
- package/dist/ui/cjs/types/exporter/database.d.ts +10 -0
- package/dist/ui/cjs/types/exporter/files.d.ts +1 -0
- package/dist/ui/cjs/types/exporter/index.d.ts +3 -1
- package/dist/ui/cjs/types/exporter/page.d.ts +13 -0
- package/dist/ui/cjs/types/exporter/variables.d.ts +16 -0
- package/dist/ui/esm/types/exporter/api.d.ts +15 -0
- package/dist/ui/esm/types/exporter/blocks.d.ts +13 -0
- package/dist/ui/esm/types/exporter/database.d.ts +10 -0
- package/dist/ui/esm/types/exporter/files.d.ts +1 -0
- package/dist/ui/esm/types/exporter/index.d.ts +3 -1
- package/dist/ui/esm/types/exporter/page.d.ts +13 -0
- package/dist/ui/esm/types/exporter/variables.d.ts +16 -0
- package/dist/ui/umd/types/exporter/api.d.ts +15 -0
- package/dist/ui/umd/types/exporter/blocks.d.ts +13 -0
- package/dist/ui/umd/types/exporter/database.d.ts +10 -0
- package/dist/ui/umd/types/exporter/files.d.ts +1 -0
- package/dist/ui/umd/types/exporter/index.d.ts +3 -1
- package/dist/ui/umd/types/exporter/page.d.ts +13 -0
- package/dist/ui/umd/types/exporter/variables.d.ts +16 -0
- package/package.json +2 -4
- package/dist/exporter/notion.d.ts +0 -18
- package/dist/exporter/notion.js +0 -400
- package/dist/exporter/notion.js.map +0 -1
- package/dist/exporter.backup/files.d.ts +0 -23
- package/dist/exporter.backup/files.js +0 -329
- package/dist/exporter.backup/files.js.map +0 -1
- package/dist/exporter.backup/index.d.ts +0 -2
- package/dist/exporter.backup/index.js +0 -3
- package/dist/exporter.backup/index.js.map +0 -1
- package/dist/exporter.backup/notion.d.ts +0 -18
- package/dist/exporter.backup/notion.js +0 -400
- package/dist/exporter.backup/notion.js.map +0 -1
- package/dist/exporter.backup/types.d.ts +0 -496
- package/dist/exporter.backup/types.js +0 -2
- package/dist/exporter.backup/types.js.map +0 -1
- package/dist/files.d.ts +0 -23
- package/dist/index.d.ts +0 -2
- package/dist/notion.d.ts +0 -18
- package/dist/types.d.ts +0 -496
- package/dist/ui/cjs/types/exporter/notion.d.ts +0 -18
- package/dist/ui/esm/types/exporter/notion.d.ts +0 -18
- package/dist/ui/umd/types/exporter/notion.d.ts +0 -18
- package/dist/ui.backup/cjs/index.js +0 -2
- package/dist/ui.backup/cjs/index.js.map +0 -1
- package/dist/ui.backup/cjs/types/components/Gallery/Gallery.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/Gallery.types.d.ts +0 -14
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Gallery/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/List.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/List.types.d.ts +0 -13
- package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListDateField/ListDateField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListDateField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListHandler.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListHandler.types.d.ts +0 -12
- package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
- package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListNumberField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
- package/dist/ui.backup/cjs/types/components/List/ListTitleField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/List/ListUrlField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/List/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
- package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
- package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/CodeBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
- package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/EquationBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/FileBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ImageBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
- package/dist/ui.backup/cjs/types/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/Page.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/Page.types.d.ts +0 -14
- package/dist/ui.backup/cjs/types/components/Page/PageHandler.d.ts +0 -15
- package/dist/ui.backup/cjs/types/components/Page/PageHandler.types.d.ts +0 -11
- package/dist/ui.backup/cjs/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/PageIcon/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/PdfBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
- package/dist/ui.backup/cjs/types/components/Page/TableBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
- package/dist/ui.backup/cjs/types/components/Page/TextBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Page/VideoBlock/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Page/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/Table.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/Table.types.d.ts +0 -13
- package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableDateField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableHandler.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableHandler.types.d.ts +0 -12
- package/dist/ui.backup/cjs/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/Table/TableIcon/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableNumberField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
- package/dist/ui.backup/cjs/types/components/Table/TableSelectField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
- package/dist/ui.backup/cjs/types/components/Table/TableTitleField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
- package/dist/ui.backup/cjs/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
- package/dist/ui.backup/cjs/types/components/Table/TableUrlField/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/Table/index.d.ts +0 -2
- package/dist/ui.backup/cjs/types/components/index.d.ts +0 -56
- package/dist/ui.backup/cjs/types/components/lib.d.ts +0 -13
- package/dist/ui.backup/cjs/types/components/types.d.ts +0 -17
- package/dist/ui.backup/cjs/types/index.d.ts +0 -1
- package/dist/ui.backup/esm/index.js +0 -2
- package/dist/ui.backup/esm/index.js.map +0 -1
- package/dist/ui.backup/esm/types/components/Gallery/Gallery.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/Gallery.types.d.ts +0 -14
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Gallery/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/List.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/List.types.d.ts +0 -13
- package/dist/ui.backup/esm/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/List/ListCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListDateField/ListDateField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListDateField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListHandler.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListHandler.types.d.ts +0 -12
- package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
- package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListNumberField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
- package/dist/ui.backup/esm/types/components/List/ListTitleField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/List/ListUrlField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/List/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/CalloutBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
- package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
- package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/CodeBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
- package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/EmbedBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/EquationBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/FileBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ImageBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
- package/dist/ui.backup/esm/types/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/Page.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/Page.types.d.ts +0 -14
- package/dist/ui.backup/esm/types/components/Page/PageHandler.d.ts +0 -15
- package/dist/ui.backup/esm/types/components/Page/PageHandler.types.d.ts +0 -11
- package/dist/ui.backup/esm/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/PageIcon/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/PdfBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/SyncedBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
- package/dist/ui.backup/esm/types/components/Page/TableBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
- package/dist/ui.backup/esm/types/components/Page/TextBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ToDoBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/ToggleBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Page/VideoBlock/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Page/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/Table.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/Table.types.d.ts +0 -13
- package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableDateField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableHandler.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableHandler.types.d.ts +0 -12
- package/dist/ui.backup/esm/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/Table/TableIcon/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableNumberField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- package/dist/ui.backup/esm/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
- package/dist/ui.backup/esm/types/components/Table/TableSelectField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
- package/dist/ui.backup/esm/types/components/Table/TableTitleField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
- package/dist/ui.backup/esm/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
- package/dist/ui.backup/esm/types/components/Table/TableUrlField/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/Table/index.d.ts +0 -2
- package/dist/ui.backup/esm/types/components/index.d.ts +0 -56
- package/dist/ui.backup/esm/types/components/lib.d.ts +0 -13
- package/dist/ui.backup/esm/types/components/types.d.ts +0 -17
- package/dist/ui.backup/esm/types/index.d.ts +0 -1
- package/dist/ui.backup/styles/base.css +0 -44
- package/dist/ui.backup/styles/gallery.css +0 -172
- package/dist/ui.backup/styles/list.css +0 -153
- package/dist/ui.backup/styles/notionate-dark.css +0 -297
- package/dist/ui.backup/styles/notionate.css +0 -5
- package/dist/ui.backup/styles/page.css +0 -762
- package/dist/ui.backup/styles/table.css +0 -166
- package/dist/ui.backup/types.d.ts +0 -421
- package/dist/ui.backup/umd/index.js +0 -2
- package/dist/ui.backup/umd/index.js.map +0 -1
- package/dist/ui.backup/umd/types/components/Gallery/Gallery.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/Gallery.types.d.ts +0 -14
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Gallery/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/List.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/List.types.d.ts +0 -13
- package/dist/ui.backup/umd/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/List/ListCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListDateField/ListDateField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListDateField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListHandler.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListHandler.types.d.ts +0 -12
- package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
- package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListNumberField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
- package/dist/ui.backup/umd/types/components/List/ListTitleField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/List/ListUrlField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/List/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/CalloutBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
- package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
- package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/CodeBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
- package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/EmbedBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/EquationBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/FileBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ImageBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
- package/dist/ui.backup/umd/types/components/Page/ListBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
- package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/Page.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/Page.types.d.ts +0 -14
- package/dist/ui.backup/umd/types/components/Page/PageHandler.d.ts +0 -15
- package/dist/ui.backup/umd/types/components/Page/PageHandler.types.d.ts +0 -11
- package/dist/ui.backup/umd/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/PageIcon/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/PdfBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/SyncedBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
- package/dist/ui.backup/umd/types/components/Page/TableBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TemplateBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
- package/dist/ui.backup/umd/types/components/Page/TextBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ToDoBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/ToggleBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Page/VideoBlock/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Page/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/Table.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/Table.types.d.ts +0 -13
- package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableDateField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableHandler.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableHandler.types.d.ts +0 -12
- package/dist/ui.backup/umd/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/Table/TableIcon/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
- package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableNumberField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
- package/dist/ui.backup/umd/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableRichTextField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
- package/dist/ui.backup/umd/types/components/Table/TableSelectField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
- package/dist/ui.backup/umd/types/components/Table/TableTitleField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
- package/dist/ui.backup/umd/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
- package/dist/ui.backup/umd/types/components/Table/TableUrlField/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/Table/index.d.ts +0 -2
- package/dist/ui.backup/umd/types/components/index.d.ts +0 -56
- package/dist/ui.backup/umd/types/components/lib.d.ts +0 -13
- package/dist/ui.backup/umd/types/components/types.d.ts +0 -17
- package/dist/ui.backup/umd/types/index.d.ts +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { reqAPIWithBackoff, reqAPIWithBackoffAndCache, notion, } from './api.js';
|
|
2
|
+
import { cacheDir, incrementalCache, } from './variables.js';
|
|
3
|
+
import { createDirWhenNotfound, saveImage, readCache, writeCache, isEmpty, } from './files.js';
|
|
4
|
+
/**
|
|
5
|
+
* FetchPage retrieves page properties and download images in from properties.
|
|
6
|
+
* And create cache that includes filepath of downloaded images.
|
|
7
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
8
|
+
*/
|
|
9
|
+
export const FetchPage = async ({ page_id, last_edited_time }) => {
|
|
10
|
+
await createDirWhenNotfound(cacheDir);
|
|
11
|
+
const cacheFile = `${cacheDir}/notion.pages.retrieve-${page_id}`;
|
|
12
|
+
try {
|
|
13
|
+
const page = await readCache(cacheFile);
|
|
14
|
+
if (!isEmpty(page)) {
|
|
15
|
+
if (incrementalCache && last_edited_time === undefined) {
|
|
16
|
+
console.log('last_edited_time is required as a FetchPage() args when incremental cache');
|
|
17
|
+
return page;
|
|
18
|
+
}
|
|
19
|
+
if (!incrementalCache || ('last_edited_time' in page && page.last_edited_time === last_edited_time)) {
|
|
20
|
+
return page;
|
|
21
|
+
}
|
|
22
|
+
console.log(`incremental page cache: ${cacheFile}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (_) {
|
|
26
|
+
/* not fatal */
|
|
27
|
+
}
|
|
28
|
+
const page = await reqAPIWithBackoff({
|
|
29
|
+
func: notion.pages.retrieve,
|
|
30
|
+
args: { page_id },
|
|
31
|
+
count: 3
|
|
32
|
+
});
|
|
33
|
+
if ('properties' in page) {
|
|
34
|
+
let list;
|
|
35
|
+
for (const [, v] of Object.entries(page.properties)) {
|
|
36
|
+
const property_id = v.id;
|
|
37
|
+
const res = await reqAPIWithBackoffAndCache({
|
|
38
|
+
name: 'notion.pages.properties.retrieve',
|
|
39
|
+
func: notion.pages.properties.retrieve,
|
|
40
|
+
args: { page_id, property_id },
|
|
41
|
+
count: 3,
|
|
42
|
+
});
|
|
43
|
+
if (res.object !== 'list') {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (list === undefined) {
|
|
47
|
+
list = res;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
list.results.push(...res.results);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
page.meta = list;
|
|
54
|
+
}
|
|
55
|
+
if ('cover' in page && page.cover !== null) {
|
|
56
|
+
if (page.cover.type === 'external') {
|
|
57
|
+
page.cover.src = await saveImage(page.cover.external.url, `page-cover-${page.id}`);
|
|
58
|
+
}
|
|
59
|
+
else if (page.cover.type === 'file') {
|
|
60
|
+
page.cover.src = await saveImage(page.cover.file.url, `page-cover-${page.id}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if ('icon' in page && page.icon !== null) {
|
|
64
|
+
if (page.icon.type === 'external') {
|
|
65
|
+
page.icon.src = await saveImage(page.icon.external.url, `page-icon-${page.id}`);
|
|
66
|
+
}
|
|
67
|
+
else if (page.icon.type === 'file') {
|
|
68
|
+
page.icon.src = await saveImage(page.icon.file.url, `page-icon-${page.id}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
await writeCache(cacheFile, page);
|
|
72
|
+
return page;
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/exporter/page.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,MAAM,GACP,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,QAAQ,EACR,gBAAgB,GACjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,GACR,MAAM,YAAY,CAAA;AAenB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAiB,EAAyB,EAAE;IACrG,MAAM,qBAAqB,CAAC,QAAQ,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,GAAG,QAAQ,0BAA0B,OAAO,EAAE,CAAA;IAEhE,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,SAAS,CAAoB,SAAS,CAAC,CAAA;QAC1D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACnB,IAAI,gBAAgB,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACvD,OAAO,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAA;gBACxF,OAAO,IAAI,CAAA;YACb,CAAC;YACD,IAAI,CAAC,gBAAgB,IAAI,CAAC,kBAAkB,IAAI,IAAI,IAAI,IAAI,CAAC,gBAAgB,KAAK,gBAAgB,CAAC,EAAE,CAAC;gBACpG,OAAO,IAAI,CAAA;YACb,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,2BAA2B,SAAS,EAAE,CAAC,CAAA;QACrD,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,eAAe;IACjB,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAoB;QACtD,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,IAAI,EAAE,EAAE,OAAO,EAAE;QACjB,KAAK,EAAE,CAAC;KACT,CAAC,CAAA;IAEF,IAAI,YAAY,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,IAAoD,CAAA;QACxD,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YACpD,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAA;YACxB,MAAM,GAAG,GAAG,MAAM,yBAAyB,CAA0B;gBACnE,IAAI,EAAE,kCAAkC;gBACxC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ;gBACtC,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;gBAC9B,KAAK,EAAE,CAAC;aACT,CAAC,CAAA;YACF,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAC1B,SAAQ;YACV,CAAC;YACD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IAAI,GAAG,GAAG,CAAA;YACZ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,CAAA;YACnC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IAED,IAAI,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAc,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACpF,CAAC;aAAM,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACtC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QAChF,CAAC;IACH,CAAC;IACD,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QACzC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACjF,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACrC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,aAAa,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;IAED,MAAM,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;IAEjC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const cacheDir: string;
|
|
2
|
+
export declare const waitingTimeSec: number;
|
|
3
|
+
export declare const waitTimeSecAfterLimit: number;
|
|
4
|
+
export declare const incrementalCache: boolean;
|
|
5
|
+
export declare const auth: string | undefined;
|
|
6
|
+
export declare const docRoot: string;
|
|
7
|
+
export declare const imageDir: string;
|
|
8
|
+
export declare const timeout: number;
|
|
9
|
+
export declare const webpQuality: number;
|
|
10
|
+
export declare const httpOptions: {
|
|
11
|
+
timeout: number;
|
|
12
|
+
headers: {
|
|
13
|
+
'User-Agent': string;
|
|
14
|
+
Accept: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import pkg from '../../package.json' assert { type: 'json' };
|
|
2
|
+
export const cacheDir = process.env.ROTION_CACHEDIR || '.cache';
|
|
3
|
+
export const waitingTimeSec = (process.env.ROTION_WAITTIME || 0);
|
|
4
|
+
export const waitTimeSecAfterLimit = (process.env.ROTION_LIMITED_WAITTIME || 60 * 1000);
|
|
5
|
+
export const incrementalCache = process.env.ROTION_INCREMENTAL_CACHE === 'true';
|
|
6
|
+
export const auth = process.env.NOTION_TOKEN;
|
|
7
|
+
export const docRoot = process.env.ROTION_DOCROOT || 'public';
|
|
8
|
+
export const imageDir = process.env.ROTION_IMAGEDIR || 'images';
|
|
9
|
+
export const timeout = process.env.ROTION_TIMEOUT ? parseInt(process.env.ROTION_TIMEOUT) : 1500;
|
|
10
|
+
export const webpQuality = process.env.ROTION_WEBP_QUALITY ? parseInt(process.env.ROTION_WEBP_QUALITY) : 95;
|
|
11
|
+
export const httpOptions = {
|
|
12
|
+
timeout,
|
|
13
|
+
headers: {
|
|
14
|
+
'User-Agent': `${pkg.name}/${pkg.version}`,
|
|
15
|
+
Accept: '*/*',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../src/exporter/variables.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAA;AAE5D,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,QAAQ,CAAA;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,CAAW,CAAA;AAC1E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE,GAAG,IAAI,CAAW,CAAA;AACjG,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,KAAK,MAAM,CAAA;AAC/E,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,QAAQ,CAAA;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,QAAQ,CAAA;AAC/D,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAC/F,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;AAC3G,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO;IACP,OAAO,EAAE;QACP,YAAY,EAAE,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE;QAC1C,MAAM,EAAE,KAAK;KACd;CACF,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Client } from '@notionhq/client';
|
|
2
|
+
export declare const notion: Client;
|
|
3
|
+
export interface reqAPIWithBackoffArgs {
|
|
4
|
+
func: Function;
|
|
5
|
+
args: unknown;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function reqAPIWithBackoff<T>({ func, args, count }: reqAPIWithBackoffArgs): Promise<T>;
|
|
9
|
+
export interface reqAPIWithBackoffAndCacheArgs {
|
|
10
|
+
name: string;
|
|
11
|
+
func: Function;
|
|
12
|
+
args: unknown;
|
|
13
|
+
count: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function reqAPIWithBackoffAndCache<T>({ name, func, args, count }: reqAPIWithBackoffAndCacheArgs): Promise<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ListBlockChildrenResponseEx } from './types.js';
|
|
2
|
+
export interface FetchBlocksArgs {
|
|
3
|
+
block_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchBlocksRes extends ListBlockChildrenResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchBlocks retrieves page blocks and download images in from blocks.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchBlocks: ({ block_id, last_edited_time }: FetchBlocksArgs) => Promise<FetchBlocksRes>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { QueryDatabaseParameters, QueryDatabaseResponseEx } from './types.js';
|
|
2
|
+
export interface FetchDatabaseArgs extends QueryDatabaseParameters {
|
|
3
|
+
}
|
|
4
|
+
export interface FetchDatabaseRes extends QueryDatabaseResponseEx {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* FetchDatabase retrieves database and download images in from blocks.
|
|
8
|
+
* And create cache that includes filepath of downloaded images.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FetchDatabase: (params: FetchDatabaseArgs) => Promise<FetchDatabaseRes>;
|
|
@@ -21,3 +21,4 @@ export declare const getHtmlMeta: (reqUrl: string) => Promise<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const getVideoHtml: (block: VideoBlockObjectResponseEx) => Promise<string>;
|
|
23
23
|
export declare const getEmbedHtml: (block: EmbedBlockObjectResponseEx) => Promise<string>;
|
|
24
|
+
export declare const isEmpty: (obj: Object) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GetPageResponseEx } from './types.js';
|
|
2
|
+
export interface FetchPageArgs {
|
|
3
|
+
page_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchPageRes extends GetPageResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchPage retrieves page properties and download images in from properties.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchPage: ({ page_id, last_edited_time }: FetchPageArgs) => Promise<FetchPageRes>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const cacheDir: string;
|
|
2
|
+
export declare const waitingTimeSec: number;
|
|
3
|
+
export declare const waitTimeSecAfterLimit: number;
|
|
4
|
+
export declare const incrementalCache: boolean;
|
|
5
|
+
export declare const auth: string | undefined;
|
|
6
|
+
export declare const docRoot: string;
|
|
7
|
+
export declare const imageDir: string;
|
|
8
|
+
export declare const timeout: number;
|
|
9
|
+
export declare const webpQuality: number;
|
|
10
|
+
export declare const httpOptions: {
|
|
11
|
+
timeout: number;
|
|
12
|
+
headers: {
|
|
13
|
+
'User-Agent': string;
|
|
14
|
+
Accept: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Client } from '@notionhq/client';
|
|
2
|
+
export declare const notion: Client;
|
|
3
|
+
export interface reqAPIWithBackoffArgs {
|
|
4
|
+
func: Function;
|
|
5
|
+
args: unknown;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function reqAPIWithBackoff<T>({ func, args, count }: reqAPIWithBackoffArgs): Promise<T>;
|
|
9
|
+
export interface reqAPIWithBackoffAndCacheArgs {
|
|
10
|
+
name: string;
|
|
11
|
+
func: Function;
|
|
12
|
+
args: unknown;
|
|
13
|
+
count: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function reqAPIWithBackoffAndCache<T>({ name, func, args, count }: reqAPIWithBackoffAndCacheArgs): Promise<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ListBlockChildrenResponseEx } from './types.js';
|
|
2
|
+
export interface FetchBlocksArgs {
|
|
3
|
+
block_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchBlocksRes extends ListBlockChildrenResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchBlocks retrieves page blocks and download images in from blocks.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchBlocks: ({ block_id, last_edited_time }: FetchBlocksArgs) => Promise<FetchBlocksRes>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { QueryDatabaseParameters, QueryDatabaseResponseEx } from './types.js';
|
|
2
|
+
export interface FetchDatabaseArgs extends QueryDatabaseParameters {
|
|
3
|
+
}
|
|
4
|
+
export interface FetchDatabaseRes extends QueryDatabaseResponseEx {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* FetchDatabase retrieves database and download images in from blocks.
|
|
8
|
+
* And create cache that includes filepath of downloaded images.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FetchDatabase: (params: FetchDatabaseArgs) => Promise<FetchDatabaseRes>;
|
|
@@ -21,3 +21,4 @@ export declare const getHtmlMeta: (reqUrl: string) => Promise<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const getVideoHtml: (block: VideoBlockObjectResponseEx) => Promise<string>;
|
|
23
23
|
export declare const getEmbedHtml: (block: EmbedBlockObjectResponseEx) => Promise<string>;
|
|
24
|
+
export declare const isEmpty: (obj: Object) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GetPageResponseEx } from './types.js';
|
|
2
|
+
export interface FetchPageArgs {
|
|
3
|
+
page_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchPageRes extends GetPageResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchPage retrieves page properties and download images in from properties.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchPage: ({ page_id, last_edited_time }: FetchPageArgs) => Promise<FetchPageRes>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const cacheDir: string;
|
|
2
|
+
export declare const waitingTimeSec: number;
|
|
3
|
+
export declare const waitTimeSecAfterLimit: number;
|
|
4
|
+
export declare const incrementalCache: boolean;
|
|
5
|
+
export declare const auth: string | undefined;
|
|
6
|
+
export declare const docRoot: string;
|
|
7
|
+
export declare const imageDir: string;
|
|
8
|
+
export declare const timeout: number;
|
|
9
|
+
export declare const webpQuality: number;
|
|
10
|
+
export declare const httpOptions: {
|
|
11
|
+
timeout: number;
|
|
12
|
+
headers: {
|
|
13
|
+
'User-Agent': string;
|
|
14
|
+
Accept: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Client } from '@notionhq/client';
|
|
2
|
+
export declare const notion: Client;
|
|
3
|
+
export interface reqAPIWithBackoffArgs {
|
|
4
|
+
func: Function;
|
|
5
|
+
args: unknown;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function reqAPIWithBackoff<T>({ func, args, count }: reqAPIWithBackoffArgs): Promise<T>;
|
|
9
|
+
export interface reqAPIWithBackoffAndCacheArgs {
|
|
10
|
+
name: string;
|
|
11
|
+
func: Function;
|
|
12
|
+
args: unknown;
|
|
13
|
+
count: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function reqAPIWithBackoffAndCache<T>({ name, func, args, count }: reqAPIWithBackoffAndCacheArgs): Promise<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ListBlockChildrenResponseEx } from './types.js';
|
|
2
|
+
export interface FetchBlocksArgs {
|
|
3
|
+
block_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchBlocksRes extends ListBlockChildrenResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchBlocks retrieves page blocks and download images in from blocks.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchBlocks: ({ block_id, last_edited_time }: FetchBlocksArgs) => Promise<FetchBlocksRes>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { QueryDatabaseParameters, QueryDatabaseResponseEx } from './types.js';
|
|
2
|
+
export interface FetchDatabaseArgs extends QueryDatabaseParameters {
|
|
3
|
+
}
|
|
4
|
+
export interface FetchDatabaseRes extends QueryDatabaseResponseEx {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* FetchDatabase retrieves database and download images in from blocks.
|
|
8
|
+
* And create cache that includes filepath of downloaded images.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FetchDatabase: (params: FetchDatabaseArgs) => Promise<FetchDatabaseRes>;
|
|
@@ -21,3 +21,4 @@ export declare const getHtmlMeta: (reqUrl: string) => Promise<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const getVideoHtml: (block: VideoBlockObjectResponseEx) => Promise<string>;
|
|
23
23
|
export declare const getEmbedHtml: (block: EmbedBlockObjectResponseEx) => Promise<string>;
|
|
24
|
+
export declare const isEmpty: (obj: Object) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GetPageResponseEx } from './types.js';
|
|
2
|
+
export interface FetchPageArgs {
|
|
3
|
+
page_id: string;
|
|
4
|
+
last_edited_time?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FetchPageRes extends GetPageResponseEx {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* FetchPage retrieves page properties and download images in from properties.
|
|
10
|
+
* And create cache that includes filepath of downloaded images.
|
|
11
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
12
|
+
*/
|
|
13
|
+
export declare const FetchPage: ({ page_id, last_edited_time }: FetchPageArgs) => Promise<FetchPageRes>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const cacheDir: string;
|
|
2
|
+
export declare const waitingTimeSec: number;
|
|
3
|
+
export declare const waitTimeSecAfterLimit: number;
|
|
4
|
+
export declare const incrementalCache: boolean;
|
|
5
|
+
export declare const auth: string | undefined;
|
|
6
|
+
export declare const docRoot: string;
|
|
7
|
+
export declare const imageDir: string;
|
|
8
|
+
export declare const timeout: number;
|
|
9
|
+
export declare const webpQuality: number;
|
|
10
|
+
export declare const httpOptions: {
|
|
11
|
+
timeout: number;
|
|
12
|
+
headers: {
|
|
13
|
+
'User-Agent': string;
|
|
14
|
+
Accept: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rotion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "linyows/rotion",
|
|
6
6
|
"description": "This is react components that uses the notion API to display the notion's database and page.",
|
|
@@ -73,12 +73,11 @@
|
|
|
73
73
|
"prismjs": "^1.25.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
+
"@types/node": "^20.10.5",
|
|
76
77
|
"@types/imagemin": "^8.0.5",
|
|
77
78
|
"@types/imagemin-webp": "^7.0.3",
|
|
78
79
|
"@types/replace-ext": "^2.0.2",
|
|
79
|
-
"@types/prismjs": "^1.26.3",
|
|
80
80
|
"@tsconfig/node-lts-strictest-esm": "^18.12.1",
|
|
81
|
-
"@types/node": "^20.10.5",
|
|
82
81
|
"testdouble": "^3.20.1",
|
|
83
82
|
"ts-node": "^10.9.2",
|
|
84
83
|
"tslib": "^2.6.2",
|
|
@@ -100,7 +99,6 @@
|
|
|
100
99
|
"@storybook/react-vite": "^7.6.7",
|
|
101
100
|
"@storybook/test": "^7.6.7",
|
|
102
101
|
"@types/katex": "^0.16.7",
|
|
103
|
-
"@types/node": "^20.10.5",
|
|
104
102
|
"@types/prismjs": "^1.26.3",
|
|
105
103
|
"@types/react": "^18.2.45",
|
|
106
104
|
"@types/react-dom": "^18.2.18",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { QueryDatabaseParameters, QueryDatabaseResponseEx, ListBlockChildrenResponseEx, GetPageResponseEx } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* FetchDatabase retrieves database and download images in from blocks.
|
|
4
|
-
* And create cache that includes filepath of downloaded images.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FetchDatabase: (params: QueryDatabaseParameters) => Promise<QueryDatabaseResponseEx>;
|
|
7
|
-
/**
|
|
8
|
-
* FetchPage retrieves page properties and download images in from properties.
|
|
9
|
-
* And create cache that includes filepath of downloaded images.
|
|
10
|
-
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
11
|
-
*/
|
|
12
|
-
export declare const FetchPage: (page_id: string, last_edited_time?: string) => Promise<GetPageResponseEx>;
|
|
13
|
-
/**
|
|
14
|
-
* FetchBlocks retrieves page blocks and download images in from blocks.
|
|
15
|
-
* And create cache that includes filepath of downloaded images.
|
|
16
|
-
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
17
|
-
*/
|
|
18
|
-
export declare const FetchBlocks: (block_id: string, last_edited_time?: string) => Promise<ListBlockChildrenResponseEx>;
|