rotion 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +210 -0
- package/dist/exporter/blocks.js.map +1 -0
- package/dist/exporter/breadcrumbs.d.ts +12 -0
- package/dist/exporter/breadcrumbs.js +110 -0
- package/dist/exporter/breadcrumbs.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/types.d.ts +27 -17
- 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/index.js +53 -34
- package/dist/ui/cjs/index.js.map +1 -1
- 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/types.d.ts +27 -17
- package/dist/ui/cjs/types/exporter/variables.d.ts +16 -0
- package/dist/ui/cjs/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
- package/dist/ui/{esm/types/ui/components/Page/TextBlock → cjs/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
- package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
- package/dist/ui/{esm/types/ui/components/Page/TextBlock → cjs/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
- package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
- package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
- package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/index.d.ts +1 -1
- package/dist/ui/esm/index.js +53 -34
- package/dist/ui/esm/index.js.map +1 -1
- 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/types.d.ts +27 -17
- package/dist/ui/esm/types/exporter/variables.d.ts +16 -0
- package/dist/ui/esm/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
- package/dist/ui/{umd/types/ui/components/Page/TextBlock → esm/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
- package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
- package/dist/ui/{umd/types/ui/components/Page/TextBlock → esm/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
- package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
- package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
- package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/index.d.ts +1 -1
- package/dist/ui/types.d.ts +8 -11
- package/dist/ui/umd/index.js +53 -34
- package/dist/ui/umd/index.js.map +1 -1
- 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/types.d.ts +27 -17
- package/dist/ui/umd/types/exporter/variables.d.ts +16 -0
- package/dist/ui/umd/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
- package/dist/ui/{cjs/types/ui/components/Page/TextBlock → umd/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
- package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
- package/dist/ui/{cjs/types/ui/components/Page/TextBlock → umd/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
- package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
- package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
- package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/index.d.ts +1 -1
- 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/cjs/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
- package/dist/ui/esm/types/exporter/notion.d.ts +0 -18
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
- package/dist/ui/umd/types/exporter/notion.d.ts +0 -18
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
- 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/Equation/Equation.types.d.ts +0 -6
- 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/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/Equation/Equation.types.d.ts +0 -6
- 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/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/Equation/Equation.types.d.ts +0 -6
- 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/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
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
- /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
- /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
- /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/index.d.ts +0 -0
|
@@ -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,56 @@
|
|
|
1
|
+
import { Client } from '@notionhq/client';
|
|
2
|
+
import { isNotionClientError, APIErrorCode, ClientErrorCode, } from '@notionhq/client';
|
|
3
|
+
import { atoh, readCache, writeCache, isAvailableCache, } from './files.js';
|
|
4
|
+
import { cacheDir, waitingTimeSec, waitTimeSecAfterLimit, auth, } from './variables.js';
|
|
5
|
+
export const notion = new Client({ auth });
|
|
6
|
+
export async function reqAPIWithBackoff({ func, args, count }) {
|
|
7
|
+
if (count < 1) {
|
|
8
|
+
throw new Error('backoff count exceeded');
|
|
9
|
+
}
|
|
10
|
+
let res = null;
|
|
11
|
+
try {
|
|
12
|
+
res = await func(args);
|
|
13
|
+
if (waitingTimeSec > 0) {
|
|
14
|
+
await new Promise(resolve => setTimeout(resolve, waitingTimeSec));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
if (isNotionClientError(error)) {
|
|
19
|
+
switch (error.code) {
|
|
20
|
+
case APIErrorCode.RateLimited:
|
|
21
|
+
case APIErrorCode.InternalServerError:
|
|
22
|
+
case ClientErrorCode.ResponseError:
|
|
23
|
+
case ClientErrorCode.RequestTimeout:
|
|
24
|
+
console.log(`backoff(${count}) -- error code: ${error.code}`);
|
|
25
|
+
if (waitTimeSecAfterLimit > 0) {
|
|
26
|
+
await new Promise(resolve => setTimeout(resolve, waitTimeSecAfterLimit));
|
|
27
|
+
}
|
|
28
|
+
res = await reqAPIWithBackoff({ func, args, count: count-- });
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
console.error('error:', error);
|
|
33
|
+
console.error('args:', args);
|
|
34
|
+
}
|
|
35
|
+
if (res === null) {
|
|
36
|
+
throw new Error(`request to notion api failed: ${func.name}`);
|
|
37
|
+
}
|
|
38
|
+
return res;
|
|
39
|
+
}
|
|
40
|
+
export async function reqAPIWithBackoffAndCache({ name, func, args, count }) {
|
|
41
|
+
const key = atoh(JSON.stringify({ func: func.name, args }));
|
|
42
|
+
const cacheFile = `${cacheDir}/${name}-${key}`;
|
|
43
|
+
try {
|
|
44
|
+
const cache = await readCache(cacheFile);
|
|
45
|
+
if (await isAvailableCache(cacheFile, 600)) {
|
|
46
|
+
return cache;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (_) {
|
|
50
|
+
/* not fatal */
|
|
51
|
+
}
|
|
52
|
+
const res = await reqAPIWithBackoff({ func, args, count });
|
|
53
|
+
await writeCache(cacheFile, res);
|
|
54
|
+
return res;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/exporter/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,eAAe,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,IAAI,EACJ,SAAS,EACT,UAAU,EACV,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,IAAI,GACL,MAAM,gBAAgB,CAAA;AAEvB,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;AAQ1C,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAyB;IACtF,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAA;IAC3C,CAAC;IAED,IAAI,GAAG,GAAW,IAAI,CAAA;IAEtB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAM,CAAA;QAC3B,IAAI,cAAc,GAAG,CAAC,EAAE,CAAC;YACvB,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,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC3D,MAAM,SAAS,GAAG,GAAG,QAAQ,IAAI,IAAI,IAAI,GAAG,EAAE,CAAA;IAE9C,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,SAAS,CAAS,SAAS,CAAC,CAAA;QAChD,IAAI,MAAM,gBAAgB,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YAC3C,OAAO,KAAU,CAAA;QACnB,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,eAAe;IACjB,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;IAC7D,MAAM,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;IAChC,OAAO,GAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -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,210 @@
|
|
|
1
|
+
import { reqAPIWithBackoff, reqAPIWithBackoffAndCache, notion, } from './api.js';
|
|
2
|
+
import { cacheDir, incrementalCache, } from './variables.js';
|
|
3
|
+
import { FetchPage } from './page.js';
|
|
4
|
+
import { createDirWhenNotfound, saveImage, readCache, writeCache, getHtmlMeta, getVideoHtml, getEmbedHtml, isEmpty, } from './files.js';
|
|
5
|
+
/**
|
|
6
|
+
* FetchBlocks retrieves page blocks and download images in from blocks.
|
|
7
|
+
* And create cache that includes filepath of downloaded images.
|
|
8
|
+
* The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
|
|
9
|
+
*/
|
|
10
|
+
export const FetchBlocks = async ({ block_id, last_edited_time }) => {
|
|
11
|
+
await createDirWhenNotfound(cacheDir);
|
|
12
|
+
const cacheFile = `${cacheDir}/notion.blocks.children.list-${block_id}`;
|
|
13
|
+
try {
|
|
14
|
+
const list = await readCache(cacheFile);
|
|
15
|
+
if (!isEmpty(list)) {
|
|
16
|
+
if (incrementalCache && last_edited_time === undefined) {
|
|
17
|
+
console.log('last_edited_time is required as a FetchBlocks() args when incremental cache');
|
|
18
|
+
return list;
|
|
19
|
+
}
|
|
20
|
+
if (!incrementalCache || list.last_edited_time === last_edited_time) {
|
|
21
|
+
return list;
|
|
22
|
+
}
|
|
23
|
+
console.log(`incremental block cache: ${cacheFile}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch (_) {
|
|
27
|
+
/* not fatal */
|
|
28
|
+
}
|
|
29
|
+
const list = await reqAPIWithBackoff({
|
|
30
|
+
func: notion.blocks.children.list,
|
|
31
|
+
args: { block_id },
|
|
32
|
+
count: 3
|
|
33
|
+
});
|
|
34
|
+
// With the blocks api, you can get the last modified date of a block,
|
|
35
|
+
// but not the last modified date of all blocks. So extend the type and add it.
|
|
36
|
+
if (last_edited_time) {
|
|
37
|
+
list.last_edited_time = last_edited_time;
|
|
38
|
+
}
|
|
39
|
+
for (const block of list.results) {
|
|
40
|
+
try {
|
|
41
|
+
const { type } = block;
|
|
42
|
+
switch (type) {
|
|
43
|
+
case 'bookmark':
|
|
44
|
+
block.bookmark.site = await getHtmlMeta(block.bookmark.url);
|
|
45
|
+
break;
|
|
46
|
+
case 'bulleted_list_item':
|
|
47
|
+
if (block.has_children) {
|
|
48
|
+
block.children = await FetchBlocks({ block_id: block.id, last_edited_time: block.last_edited_time });
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 'callout':
|
|
52
|
+
if (block.callout.icon?.type === 'external') {
|
|
53
|
+
const iconUrl = block.callout.icon.external.url;
|
|
54
|
+
block.callout.icon.src = await saveImage(iconUrl, `block-${block.id}`);
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case 'child_database':
|
|
58
|
+
// if (block.has_children) {
|
|
59
|
+
const database_id = block.id;
|
|
60
|
+
block.database = await reqAPIWithBackoffAndCache({
|
|
61
|
+
name: 'notion.databases.retrieve',
|
|
62
|
+
func: notion.databases.retrieve,
|
|
63
|
+
args: { database_id },
|
|
64
|
+
count: 3,
|
|
65
|
+
});
|
|
66
|
+
console.log(block);
|
|
67
|
+
// }
|
|
68
|
+
break;
|
|
69
|
+
case 'child_page':
|
|
70
|
+
block.page = await FetchPage({ page_id: block.id, last_edited_time: block.last_edited_time });
|
|
71
|
+
// Unnecessary?
|
|
72
|
+
// block.children = await FetchBlocks(block.id, block.last_edited_time)
|
|
73
|
+
break;
|
|
74
|
+
case 'column_list':
|
|
75
|
+
block.children = await FetchBlocks({ block_id: block.id, last_edited_time: block.last_edited_time });
|
|
76
|
+
block.columns = [];
|
|
77
|
+
for (const b of block.children.results) {
|
|
78
|
+
block.columns.push(await FetchBlocks({ block_id: b.id, last_edited_time: block.last_edited_time }));
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case 'embed':
|
|
82
|
+
block.embed.html = await getEmbedHtml(block);
|
|
83
|
+
break;
|
|
84
|
+
case 'image':
|
|
85
|
+
const { id, image } = block;
|
|
86
|
+
if (image !== undefined) {
|
|
87
|
+
const imageUrl = image.type === 'file' ? image.file.url : image.external.url;
|
|
88
|
+
block.image.src = await saveImage(imageUrl, `block-${id}`);
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case 'numbered_list_item':
|
|
92
|
+
if (block.has_children) {
|
|
93
|
+
block.children = await FetchBlocks({ block_id: block.id, last_edited_time: block.last_edited_time });
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case 'paragraph':
|
|
97
|
+
for (const richText of block.paragraph.rich_text) {
|
|
98
|
+
if (richText.type !== 'mention') {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
switch (richText.mention.type) {
|
|
102
|
+
case 'database':
|
|
103
|
+
try {
|
|
104
|
+
const database_id = richText.mention.database.id;
|
|
105
|
+
const db = await reqAPIWithBackoffAndCache({
|
|
106
|
+
name: 'notion.databases.retrieve',
|
|
107
|
+
func: notion.databases.retrieve,
|
|
108
|
+
args: { database_id },
|
|
109
|
+
count: 3,
|
|
110
|
+
});
|
|
111
|
+
richText.mention.database.name = db.title.map(v => v.plain_text).join('');
|
|
112
|
+
if (db.icon?.type === 'emoji') {
|
|
113
|
+
richText.mention.database.icon = { type: 'emoji', emoji: db.icon.emoji };
|
|
114
|
+
}
|
|
115
|
+
else if (db.icon?.type === 'external' || db.icon?.type === 'file') {
|
|
116
|
+
const iconUrl = (db.icon.type === 'external') ? db.icon.external.url : db.icon.file.url;
|
|
117
|
+
const src = await saveImage(iconUrl, `block-${block.id}`);
|
|
118
|
+
richText.mention.database.icon = { type: db.icon.type, src, url: src };
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
console.log(`database view mention is unsupported ${block.type}`, block, e);
|
|
123
|
+
richText.mention.database.name = '--';
|
|
124
|
+
richText.mention.database.icon = { type: 'emoji', emoji: '@' };
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
case 'page':
|
|
128
|
+
try {
|
|
129
|
+
const page_id = richText.mention.page.id;
|
|
130
|
+
const page = await reqAPIWithBackoff({
|
|
131
|
+
func: notion.pages.retrieve,
|
|
132
|
+
args: { page_id },
|
|
133
|
+
count: 3,
|
|
134
|
+
});
|
|
135
|
+
for (const prop of Object.values(page.properties)) {
|
|
136
|
+
if (prop.type === 'title') {
|
|
137
|
+
richText.mention.page.name = prop.title.map(v => v.plain_text).join('');
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (page.icon?.type === 'emoji') {
|
|
142
|
+
richText.mention.page.icon = {
|
|
143
|
+
type: page.icon.type,
|
|
144
|
+
emoji: page.icon.emoji,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
else if (page.icon?.type === 'external' || page.icon?.type === 'file') {
|
|
148
|
+
const iconUrl = (page.icon.type === 'external') ? page.icon.external.url : page.icon.file.url;
|
|
149
|
+
const src = await saveImage(iconUrl, `block-${block.id}`);
|
|
150
|
+
richText.mention.page.icon = {
|
|
151
|
+
type: page.icon.type,
|
|
152
|
+
src,
|
|
153
|
+
url: src,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
console.log(`page mention is unsupported ${block.type}`, block, e);
|
|
159
|
+
richText.mention.page.name = '--';
|
|
160
|
+
richText.mention.page.icon = { type: 'emoji', emoji: '@' };
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
break;
|
|
166
|
+
case 'table':
|
|
167
|
+
block.children = await FetchBlocks({ block_id: block.id, last_edited_time: block.last_edited_time });
|
|
168
|
+
break;
|
|
169
|
+
case 'toggle':
|
|
170
|
+
block.children = await FetchBlocks({ block_id: block.id, last_edited_time: block.last_edited_time });
|
|
171
|
+
break;
|
|
172
|
+
case 'video':
|
|
173
|
+
if (block.video.type === 'external') {
|
|
174
|
+
block.video.html = await getVideoHtml(block);
|
|
175
|
+
}
|
|
176
|
+
break;
|
|
177
|
+
case 'audio':
|
|
178
|
+
case 'breadcrumb':
|
|
179
|
+
case 'code':
|
|
180
|
+
case 'column':
|
|
181
|
+
case 'divider':
|
|
182
|
+
case 'equation':
|
|
183
|
+
case 'file':
|
|
184
|
+
case 'heading_1':
|
|
185
|
+
case 'heading_2':
|
|
186
|
+
case 'heading_3':
|
|
187
|
+
case 'link_to_page':
|
|
188
|
+
case 'link_preview':
|
|
189
|
+
case 'pdf':
|
|
190
|
+
case 'quote':
|
|
191
|
+
case 'synced_block':
|
|
192
|
+
case 'table_of_contents':
|
|
193
|
+
case 'table_row':
|
|
194
|
+
case 'template':
|
|
195
|
+
case 'to_do':
|
|
196
|
+
case 'unsupported':
|
|
197
|
+
break;
|
|
198
|
+
default:
|
|
199
|
+
console.log(`unknown block error`, block);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
catch (e) {
|
|
204
|
+
console.log(`error for ${block.type} contents get`, block, e);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
await writeCache(cacheFile, list);
|
|
208
|
+
return list;
|
|
209
|
+
};
|
|
210
|
+
//# sourceMappingURL=blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../src/exporter/blocks.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,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,OAAO,GACR,MAAM,YAAY,CAAA;AAenB;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAmB,EAA2B,EAAE;IAC5G,MAAM,qBAAqB,CAAC,QAAQ,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,GAAG,QAAQ,gCAAgC,QAAQ,EAAE,CAAA;IA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,EAAE,IAAI,CAAC,CAAA;IAEjC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MentionIcon } from './types.js';
|
|
2
|
+
export interface FetchBreadcrumbsProps {
|
|
3
|
+
type: 'page_id' | 'database_id' | 'block_id' | 'workspace';
|
|
4
|
+
id: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
}
|
|
7
|
+
export type BreadcrumbsIcon = MentionIcon;
|
|
8
|
+
export interface Breadcrumbs {
|
|
9
|
+
name: string;
|
|
10
|
+
icon: BreadcrumbsIcon;
|
|
11
|
+
}
|
|
12
|
+
export declare const FetchBreadcrumbs: ({ type, id, limit }: FetchBreadcrumbsProps) => Promise<Breadcrumbs[]>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { reqAPIWithBackoff, notion } from './api.js';
|
|
2
|
+
export const FetchBreadcrumbs = async ({ type, id, limit }) => {
|
|
3
|
+
let breadcrumbs = [];
|
|
4
|
+
const max = limit === undefined ? 5 : limit;
|
|
5
|
+
let count = 0;
|
|
6
|
+
let nextType = type;
|
|
7
|
+
let nextID = id;
|
|
8
|
+
let isNext = true;
|
|
9
|
+
const getID = (parent) => {
|
|
10
|
+
switch (parent.type) {
|
|
11
|
+
case 'block_id':
|
|
12
|
+
return parent.block_id;
|
|
13
|
+
case 'page_id':
|
|
14
|
+
return parent.page_id;
|
|
15
|
+
case 'database_id':
|
|
16
|
+
return parent.database_id;
|
|
17
|
+
case 'workspace':
|
|
18
|
+
isNext = false;
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
while (count < max && isNext) {
|
|
23
|
+
switch (nextType) {
|
|
24
|
+
case 'block_id': {
|
|
25
|
+
const res = await reqAPIWithBackoff({
|
|
26
|
+
func: notion.blocks.retrieve,
|
|
27
|
+
args: { block_id: nextID },
|
|
28
|
+
count: 3,
|
|
29
|
+
});
|
|
30
|
+
if ('parent' in res) {
|
|
31
|
+
nextType = res.parent.type;
|
|
32
|
+
nextID = getID(res.parent);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
isNext = false;
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
case 'page_id': {
|
|
40
|
+
const page = await reqAPIWithBackoff({
|
|
41
|
+
func: notion.pages.retrieve,
|
|
42
|
+
args: { page_id: nextID },
|
|
43
|
+
count: 3,
|
|
44
|
+
});
|
|
45
|
+
nextType = page.parent.type;
|
|
46
|
+
nextID = getID(page.parent);
|
|
47
|
+
const name = page.properties.title.type === 'title' ? page.properties.title.title.map(v => v.plain_text).join('') : '';
|
|
48
|
+
if (page.icon?.type === 'emoji') {
|
|
49
|
+
breadcrumbs.unshift({
|
|
50
|
+
name,
|
|
51
|
+
icon: {
|
|
52
|
+
type: page.icon.type,
|
|
53
|
+
emoji: page.icon.emoji,
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
else if (page.icon?.type === 'external' || page.icon?.type === 'file') {
|
|
58
|
+
const src = page.icon.type === 'external' ? page.icon.external.url : page.icon.file.url;
|
|
59
|
+
breadcrumbs.unshift({
|
|
60
|
+
name,
|
|
61
|
+
icon: {
|
|
62
|
+
type: page.icon.type,
|
|
63
|
+
src,
|
|
64
|
+
url: src,
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
count++;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case 'database_id': {
|
|
72
|
+
const db = await reqAPIWithBackoff({
|
|
73
|
+
func: notion.databases.retrieve,
|
|
74
|
+
args: { database_id: nextID },
|
|
75
|
+
count: 3,
|
|
76
|
+
});
|
|
77
|
+
nextType = db.parent.type;
|
|
78
|
+
nextID = getID(db.parent);
|
|
79
|
+
const name = db.title.map(v => v.plain_text).join('');
|
|
80
|
+
if (db.icon?.type === 'emoji') {
|
|
81
|
+
breadcrumbs.unshift({
|
|
82
|
+
name,
|
|
83
|
+
icon: {
|
|
84
|
+
type: db.icon.type,
|
|
85
|
+
emoji: db.icon.emoji,
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else if (db.icon?.type === 'external' || db.icon?.type === 'file') {
|
|
90
|
+
const src = db.icon.type === 'external' ? db.icon.external.url : db.icon.file.url;
|
|
91
|
+
breadcrumbs.unshift({
|
|
92
|
+
name,
|
|
93
|
+
icon: {
|
|
94
|
+
type: db.icon.type,
|
|
95
|
+
src,
|
|
96
|
+
url: src,
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
count++;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
case 'workspace':
|
|
104
|
+
isNext = false;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return breadcrumbs;
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=breadcrumbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../src/exporter/breadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAgBpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAyB,EAA0B,EAAE;IAC3G,IAAI,WAAW,GAAkB,EAAE,CAAA;IACnC,MAAM,GAAG,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IAC3C,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,QAAQ,GAAG,IAAI,CAAA;IACnB,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,MAAM,GAAG,IAAI,CAAA;IAEjB,MAAM,KAAK,GAAG,CAAC,MAAc,EAAE,EAAE;QAC/B,QAAQ,MAAM,CAAC,IAAI,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AAA"}
|
|
@@ -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>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { reqAPIWithBackoff, reqAPIWithBackoffAndCache, notion, } from './api.js';
|
|
2
|
+
import { cacheDir, incrementalCache, } from './variables.js';
|
|
3
|
+
import { atoh, createDirWhenNotfound, saveImage, readCache, writeCache, isAvailableCache, isEmpty, } from './files.js';
|
|
4
|
+
/**
|
|
5
|
+
* FetchDatabase retrieves database and download images in from blocks.
|
|
6
|
+
* And create cache that includes filepath of downloaded images.
|
|
7
|
+
*/
|
|
8
|
+
export const FetchDatabase = async (params) => {
|
|
9
|
+
const { database_id } = params;
|
|
10
|
+
const limit = ('page_size' in params) ? params.page_size : undefined;
|
|
11
|
+
const paramsHash = atoh(JSON.stringify(params));
|
|
12
|
+
await createDirWhenNotfound(cacheDir);
|
|
13
|
+
const cacheFile = `${cacheDir}/notion.databases.query-${paramsHash}${limit !== undefined ? `.limit-${limit}` : ''}`;
|
|
14
|
+
let allres;
|
|
15
|
+
let res;
|
|
16
|
+
try {
|
|
17
|
+
const list = await readCache(cacheFile);
|
|
18
|
+
if (!isEmpty(list)) {
|
|
19
|
+
if (!incrementalCache) {
|
|
20
|
+
return list;
|
|
21
|
+
}
|
|
22
|
+
if (await isAvailableCache(cacheFile, 120)) {
|
|
23
|
+
return list;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (_) {
|
|
28
|
+
/* not fatal */
|
|
29
|
+
}
|
|
30
|
+
while (true) {
|
|
31
|
+
if (res && res.next_cursor) {
|
|
32
|
+
params.start_cursor = res.next_cursor;
|
|
33
|
+
}
|
|
34
|
+
res = await reqAPIWithBackoff({
|
|
35
|
+
func: notion.databases.query,
|
|
36
|
+
args: params,
|
|
37
|
+
count: 3,
|
|
38
|
+
});
|
|
39
|
+
if (allres === undefined) {
|
|
40
|
+
allres = res;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
allres.results.push(...res.results);
|
|
44
|
+
}
|
|
45
|
+
if (res.next_cursor === null || limit !== undefined) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
for (const result of allres.results) {
|
|
50
|
+
const page = result;
|
|
51
|
+
// Save page cover files
|
|
52
|
+
if ('cover' in page && page.cover != null) {
|
|
53
|
+
const imageUrl = (page.cover.type === 'external') ? page.cover.external.url : page.cover.file.url;
|
|
54
|
+
page.cover.src = await saveImage(imageUrl, `page-cover-${page.id}`);
|
|
55
|
+
}
|
|
56
|
+
// Set page property items
|
|
57
|
+
page.property_items = [];
|
|
58
|
+
for (const [, v] of Object.entries(page.properties)) {
|
|
59
|
+
const page_id = page.id;
|
|
60
|
+
const property_id = v.id;
|
|
61
|
+
const props = await reqAPIWithBackoffAndCache({
|
|
62
|
+
name: 'notion.pages.properties.retrieve',
|
|
63
|
+
func: notion.pages.properties.retrieve,
|
|
64
|
+
args: { page_id, property_id },
|
|
65
|
+
count: 3,
|
|
66
|
+
});
|
|
67
|
+
page.property_items.push(props);
|
|
68
|
+
// Save avatar in people property type
|
|
69
|
+
if (v.type === 'people') {
|
|
70
|
+
const peoples = v.people;
|
|
71
|
+
for (const people of peoples) {
|
|
72
|
+
if (people.avatar_url) {
|
|
73
|
+
people.avatar = await saveImage(people.avatar_url, `database-avatar-${people.id}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const meta = await reqAPIWithBackoff({
|
|
80
|
+
func: notion.databases.retrieve,
|
|
81
|
+
args: { database_id },
|
|
82
|
+
count: 3,
|
|
83
|
+
});
|
|
84
|
+
if ('cover' in meta && meta.cover !== null) {
|
|
85
|
+
const imageUrl = (meta.cover.type === 'external') ? meta.cover.external.url : meta.cover.file.url;
|
|
86
|
+
meta.cover.src = await saveImage(imageUrl, `database-cover-${database_id}`);
|
|
87
|
+
}
|
|
88
|
+
allres.meta = meta;
|
|
89
|
+
await writeCache(cacheFile, allres);
|
|
90
|
+
return allres;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=database.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../src/exporter/database.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,IAAI,EACJ,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,OAAO,GACR,MAAM,YAAY,CAAA;AAgBnB;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,MAAyB,EAA6B,EAAE;IAC1F,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAA;IAC9B,MAAM,KAAK,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAA;IACpE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;IAE/C,MAAM,qBAAqB,CAAC,QAAQ,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,GAAG,QAAQ,2BAA2B,UAAU,GAAG,KAAK,KAAK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,UAAU,EAAE,mBAAmB,MAAM,CAAC,EAAE,EAAE,CAAC,CAAA;oBACpF,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAwB;QAC1D,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;QAC/B,IAAI,EAAE,EAAE,WAAW,EAAE;QACrB,KAAK,EAAE,CAAC;KACT,CAAC,CAAA;IACF,IAAI,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAA;QACjG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,kBAAkB,WAAW,EAAE,CAAC,CAAA;IAC7E,CAAC;IACD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAA;IAElB,MAAM,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAEnC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
package/dist/exporter/files.d.ts
CHANGED
|
@@ -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;
|
package/dist/exporter/files.js
CHANGED
|
@@ -9,18 +9,7 @@ import imagemin from 'imagemin';
|
|
|
9
9
|
import imageminWebp from 'imagemin-webp';
|
|
10
10
|
import { fileTypeFromFile } from 'file-type';
|
|
11
11
|
import replaceExt from 'replace-ext';
|
|
12
|
-
import
|
|
13
|
-
const docRoot = process.env.ROTION_DOCROOT || 'public';
|
|
14
|
-
const imageDir = process.env.ROTION_IMAGEDIR || 'images';
|
|
15
|
-
const timeout = process.env.ROTION_TIMEOUT ? parseInt(process.env.ROTION_TIMEOUT) : 1500;
|
|
16
|
-
const httpOptions = {
|
|
17
|
-
timeout,
|
|
18
|
-
headers: {
|
|
19
|
-
'User-Agent': `${pkg.name}/${pkg.version}`,
|
|
20
|
-
Accept: '*/*',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
const webpQuality = process.env.ROTION_WEBP_QUALITY ? parseInt(process.env.ROTION_WEBP_QUALITY) : 95;
|
|
12
|
+
import { docRoot, imageDir, timeout, webpQuality, httpOptions, } from './variables.js';
|
|
24
13
|
// @ts-ignore
|
|
25
14
|
https.get[promisify.custom] = function getAsync(url) {
|
|
26
15
|
return new Promise((resolve, reject) => {
|
|
@@ -326,4 +315,7 @@ export const getEmbedHtml = async (block) => {
|
|
|
326
315
|
}
|
|
327
316
|
return '';
|
|
328
317
|
};
|
|
318
|
+
export const isEmpty = (obj) => {
|
|
319
|
+
return !Object.keys(obj).length;
|
|
320
|
+
};
|
|
329
321
|
//# sourceMappingURL=files.js.map
|