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.
Files changed (789) hide show
  1. package/dist/exporter/api.d.ts +15 -0
  2. package/dist/exporter/api.js +56 -0
  3. package/dist/exporter/api.js.map +1 -0
  4. package/dist/exporter/blocks.d.ts +13 -0
  5. package/dist/exporter/blocks.js +210 -0
  6. package/dist/exporter/blocks.js.map +1 -0
  7. package/dist/exporter/breadcrumbs.d.ts +12 -0
  8. package/dist/exporter/breadcrumbs.js +110 -0
  9. package/dist/exporter/breadcrumbs.js.map +1 -0
  10. package/dist/exporter/database.d.ts +10 -0
  11. package/dist/exporter/database.js +92 -0
  12. package/dist/exporter/database.js.map +1 -0
  13. package/dist/exporter/files.d.ts +1 -0
  14. package/dist/exporter/files.js +4 -12
  15. package/dist/exporter/files.js.map +1 -1
  16. package/dist/exporter/index.d.ts +3 -1
  17. package/dist/exporter/index.js +3 -1
  18. package/dist/exporter/index.js.map +1 -1
  19. package/dist/exporter/page.d.ts +13 -0
  20. package/dist/exporter/page.js +74 -0
  21. package/dist/exporter/page.js.map +1 -0
  22. package/dist/exporter/types.d.ts +27 -17
  23. package/dist/exporter/variables.d.ts +16 -0
  24. package/dist/exporter/variables.js +18 -0
  25. package/dist/exporter/variables.js.map +1 -0
  26. package/dist/ui/cjs/index.js +53 -34
  27. package/dist/ui/cjs/index.js.map +1 -1
  28. package/dist/ui/cjs/types/exporter/api.d.ts +15 -0
  29. package/dist/ui/cjs/types/exporter/blocks.d.ts +13 -0
  30. package/dist/ui/cjs/types/exporter/database.d.ts +10 -0
  31. package/dist/ui/cjs/types/exporter/files.d.ts +1 -0
  32. package/dist/ui/cjs/types/exporter/index.d.ts +3 -1
  33. package/dist/ui/cjs/types/exporter/page.d.ts +13 -0
  34. package/dist/ui/cjs/types/exporter/types.d.ts +27 -17
  35. package/dist/ui/cjs/types/exporter/variables.d.ts +16 -0
  36. package/dist/ui/cjs/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
  37. package/dist/ui/{esm/types/ui/components/Page/TextBlock → cjs/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
  38. package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
  39. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
  40. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
  41. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
  42. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
  43. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
  44. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
  45. package/dist/ui/{esm/types/ui/components/Page/TextBlock → cjs/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
  46. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
  47. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
  48. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
  49. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
  50. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
  51. package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
  52. package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
  53. package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
  54. package/dist/ui/cjs/types/ui/components/index.d.ts +1 -1
  55. package/dist/ui/esm/index.js +53 -34
  56. package/dist/ui/esm/index.js.map +1 -1
  57. package/dist/ui/esm/types/exporter/api.d.ts +15 -0
  58. package/dist/ui/esm/types/exporter/blocks.d.ts +13 -0
  59. package/dist/ui/esm/types/exporter/database.d.ts +10 -0
  60. package/dist/ui/esm/types/exporter/files.d.ts +1 -0
  61. package/dist/ui/esm/types/exporter/index.d.ts +3 -1
  62. package/dist/ui/esm/types/exporter/page.d.ts +13 -0
  63. package/dist/ui/esm/types/exporter/types.d.ts +27 -17
  64. package/dist/ui/esm/types/exporter/variables.d.ts +16 -0
  65. package/dist/ui/esm/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
  66. package/dist/ui/{umd/types/ui/components/Page/TextBlock → esm/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
  67. package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
  68. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
  69. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
  70. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
  71. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
  72. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
  73. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
  74. package/dist/ui/{umd/types/ui/components/Page/TextBlock → esm/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
  75. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
  76. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
  77. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
  78. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
  79. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
  80. package/dist/ui/esm/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
  81. package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
  82. package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
  83. package/dist/ui/esm/types/ui/components/index.d.ts +1 -1
  84. package/dist/ui/types.d.ts +8 -11
  85. package/dist/ui/umd/index.js +53 -34
  86. package/dist/ui/umd/index.js.map +1 -1
  87. package/dist/ui/umd/types/exporter/api.d.ts +15 -0
  88. package/dist/ui/umd/types/exporter/blocks.d.ts +13 -0
  89. package/dist/ui/umd/types/exporter/database.d.ts +10 -0
  90. package/dist/ui/umd/types/exporter/files.d.ts +1 -0
  91. package/dist/ui/umd/types/exporter/index.d.ts +3 -1
  92. package/dist/ui/umd/types/exporter/page.d.ts +13 -0
  93. package/dist/ui/umd/types/exporter/types.d.ts +27 -17
  94. package/dist/ui/umd/types/exporter/variables.d.ts +16 -0
  95. package/dist/ui/umd/types/ui/components/Page/PageIcon/PageIcon.d.ts +1 -1
  96. package/dist/ui/{cjs/types/ui/components/Page/TextBlock → umd/types/ui/components/Page}/RichText/Equation/Equation.types.d.ts +1 -1
  97. package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +1 -1
  98. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/DateMention.d.ts +4 -0
  99. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/DateMention.types.d.ts +6 -0
  100. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/DateMention/index.d.ts +2 -0
  101. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.d.ts +4 -0
  102. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/LinkPreviewMention.types.d.ts +6 -0
  103. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/LinkPreviewMemtion/index.d.ts +2 -0
  104. package/dist/ui/{cjs/types/ui/components/Page/TextBlock → umd/types/ui/components/Page}/RichText/Mention/Mention.types.d.ts +1 -1
  105. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/PageMention.d.ts +4 -0
  106. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/PageMention.types.d.ts +6 -0
  107. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/PageMention/index.d.ts +2 -0
  108. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.d.ts +4 -0
  109. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/TemplateMention.types.d.ts +5 -0
  110. package/dist/ui/umd/types/ui/components/Page/RichText/Mention/TemplateMention/index.d.ts +2 -0
  111. package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/RichText.types.d.ts +1 -1
  112. package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/Text.types.d.ts +1 -1
  113. package/dist/ui/umd/types/ui/components/index.d.ts +1 -1
  114. package/package.json +2 -4
  115. package/dist/exporter/notion.d.ts +0 -18
  116. package/dist/exporter/notion.js +0 -400
  117. package/dist/exporter/notion.js.map +0 -1
  118. package/dist/exporter.backup/files.d.ts +0 -23
  119. package/dist/exporter.backup/files.js +0 -329
  120. package/dist/exporter.backup/files.js.map +0 -1
  121. package/dist/exporter.backup/index.d.ts +0 -2
  122. package/dist/exporter.backup/index.js +0 -3
  123. package/dist/exporter.backup/index.js.map +0 -1
  124. package/dist/exporter.backup/notion.d.ts +0 -18
  125. package/dist/exporter.backup/notion.js +0 -400
  126. package/dist/exporter.backup/notion.js.map +0 -1
  127. package/dist/exporter.backup/types.d.ts +0 -496
  128. package/dist/exporter.backup/types.js +0 -2
  129. package/dist/exporter.backup/types.js.map +0 -1
  130. package/dist/files.d.ts +0 -23
  131. package/dist/index.d.ts +0 -2
  132. package/dist/notion.d.ts +0 -18
  133. package/dist/types.d.ts +0 -496
  134. package/dist/ui/cjs/types/exporter/notion.d.ts +0 -18
  135. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
  136. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
  137. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
  138. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
  139. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
  140. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
  141. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
  142. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
  143. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
  144. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
  145. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
  146. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
  147. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
  148. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
  149. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
  150. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
  151. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
  152. package/dist/ui/cjs/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
  153. package/dist/ui/esm/types/exporter/notion.d.ts +0 -18
  154. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
  155. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
  156. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
  157. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
  158. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
  159. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
  160. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
  161. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
  162. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
  163. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
  164. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
  165. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
  166. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
  167. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
  168. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
  169. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
  170. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
  171. package/dist/ui/esm/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
  172. package/dist/ui/umd/types/exporter/notion.d.ts +0 -18
  173. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Annotation/Annotation.d.ts +0 -4
  174. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Annotation/index.d.ts +0 -2
  175. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Equation/Equation.d.ts +0 -4
  176. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Equation/index.d.ts +0 -2
  177. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -5
  178. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/LinkIfLinked.types.d.ts +0 -12
  179. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/LinkIfLinked/index.d.ts +0 -2
  180. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/Mention.d.ts +0 -4
  181. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.d.ts +0 -4
  182. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/UserMention.types.d.ts +0 -4
  183. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/UserMention/index.d.ts +0 -2
  184. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Mention/index.d.ts +0 -2
  185. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/RichText.d.ts +0 -4
  186. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/RichText.types.d.ts +0 -7
  187. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/Text.d.ts +0 -4
  188. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/Text.types.d.ts +0 -6
  189. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/Text/index.d.ts +0 -2
  190. package/dist/ui/umd/types/ui/components/Page/TextBlock/RichText/index.d.ts +0 -2
  191. package/dist/ui.backup/cjs/index.js +0 -2
  192. package/dist/ui.backup/cjs/index.js.map +0 -1
  193. package/dist/ui.backup/cjs/types/components/Gallery/Gallery.d.ts +0 -4
  194. package/dist/ui.backup/cjs/types/components/Gallery/Gallery.types.d.ts +0 -14
  195. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
  196. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
  197. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
  198. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
  199. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
  200. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
  201. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
  202. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCard/index.d.ts +0 -2
  203. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
  204. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
  205. package/dist/ui.backup/cjs/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
  206. package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
  207. package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
  208. package/dist/ui.backup/cjs/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
  209. package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
  210. package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
  211. package/dist/ui.backup/cjs/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
  212. package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
  213. package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
  214. package/dist/ui.backup/cjs/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
  215. package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
  216. package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
  217. package/dist/ui.backup/cjs/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
  218. package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
  219. package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
  220. package/dist/ui.backup/cjs/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
  221. package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
  222. package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
  223. package/dist/ui.backup/cjs/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
  224. package/dist/ui.backup/cjs/types/components/Gallery/index.d.ts +0 -2
  225. package/dist/ui.backup/cjs/types/components/List/List.d.ts +0 -4
  226. package/dist/ui.backup/cjs/types/components/List/List.types.d.ts +0 -13
  227. package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
  228. package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
  229. package/dist/ui.backup/cjs/types/components/List/ListCheckboxField/index.d.ts +0 -2
  230. package/dist/ui.backup/cjs/types/components/List/ListDateField/ListDateField.d.ts +0 -4
  231. package/dist/ui.backup/cjs/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
  232. package/dist/ui.backup/cjs/types/components/List/ListDateField/index.d.ts +0 -2
  233. package/dist/ui.backup/cjs/types/components/List/ListHandler.d.ts +0 -4
  234. package/dist/ui.backup/cjs/types/components/List/ListHandler.types.d.ts +0 -12
  235. package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
  236. package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
  237. package/dist/ui.backup/cjs/types/components/List/ListMultiSelectField/index.d.ts +0 -2
  238. package/dist/ui.backup/cjs/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
  239. package/dist/ui.backup/cjs/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
  240. package/dist/ui.backup/cjs/types/components/List/ListNumberField/index.d.ts +0 -2
  241. package/dist/ui.backup/cjs/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
  242. package/dist/ui.backup/cjs/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
  243. package/dist/ui.backup/cjs/types/components/List/ListRichTextField/index.d.ts +0 -2
  244. package/dist/ui.backup/cjs/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
  245. package/dist/ui.backup/cjs/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
  246. package/dist/ui.backup/cjs/types/components/List/ListTitleField/index.d.ts +0 -2
  247. package/dist/ui.backup/cjs/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
  248. package/dist/ui.backup/cjs/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
  249. package/dist/ui.backup/cjs/types/components/List/ListUrlField/index.d.ts +0 -2
  250. package/dist/ui.backup/cjs/types/components/List/index.d.ts +0 -2
  251. package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
  252. package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
  253. package/dist/ui.backup/cjs/types/components/Page/BookmarkBlock/index.d.ts +0 -2
  254. package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
  255. package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
  256. package/dist/ui.backup/cjs/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
  257. package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  258. package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
  259. package/dist/ui.backup/cjs/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
  260. package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
  261. package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
  262. package/dist/ui.backup/cjs/types/components/Page/CalloutBlock/index.d.ts +0 -2
  263. package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
  264. package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
  265. package/dist/ui.backup/cjs/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
  266. package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
  267. package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
  268. package/dist/ui.backup/cjs/types/components/Page/ChildPageBlock/index.d.ts +0 -2
  269. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
  270. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
  271. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
  272. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
  273. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
  274. package/dist/ui.backup/cjs/types/components/Page/CodeBlock/index.d.ts +0 -2
  275. package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
  276. package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
  277. package/dist/ui.backup/cjs/types/components/Page/ColumnListBlock/index.d.ts +0 -2
  278. package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
  279. package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
  280. package/dist/ui.backup/cjs/types/components/Page/EmbedBlock/index.d.ts +0 -2
  281. package/dist/ui.backup/cjs/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
  282. package/dist/ui.backup/cjs/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
  283. package/dist/ui.backup/cjs/types/components/Page/EquationBlock/index.d.ts +0 -2
  284. package/dist/ui.backup/cjs/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
  285. package/dist/ui.backup/cjs/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
  286. package/dist/ui.backup/cjs/types/components/Page/FileBlock/index.d.ts +0 -2
  287. package/dist/ui.backup/cjs/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
  288. package/dist/ui.backup/cjs/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
  289. package/dist/ui.backup/cjs/types/components/Page/ImageBlock/index.d.ts +0 -2
  290. package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
  291. package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
  292. package/dist/ui.backup/cjs/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
  293. package/dist/ui.backup/cjs/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
  294. package/dist/ui.backup/cjs/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
  295. package/dist/ui.backup/cjs/types/components/Page/ListBlock/index.d.ts +0 -2
  296. package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  297. package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
  298. package/dist/ui.backup/cjs/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
  299. package/dist/ui.backup/cjs/types/components/Page/Page.d.ts +0 -4
  300. package/dist/ui.backup/cjs/types/components/Page/Page.types.d.ts +0 -14
  301. package/dist/ui.backup/cjs/types/components/Page/PageHandler.d.ts +0 -15
  302. package/dist/ui.backup/cjs/types/components/Page/PageHandler.types.d.ts +0 -11
  303. package/dist/ui.backup/cjs/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
  304. package/dist/ui.backup/cjs/types/components/Page/PageIcon/index.d.ts +0 -2
  305. package/dist/ui.backup/cjs/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
  306. package/dist/ui.backup/cjs/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
  307. package/dist/ui.backup/cjs/types/components/Page/PdfBlock/index.d.ts +0 -2
  308. package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
  309. package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
  310. package/dist/ui.backup/cjs/types/components/Page/SyncedBlock/index.d.ts +0 -2
  311. package/dist/ui.backup/cjs/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
  312. package/dist/ui.backup/cjs/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
  313. package/dist/ui.backup/cjs/types/components/Page/TableBlock/index.d.ts +0 -2
  314. package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
  315. package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
  316. package/dist/ui.backup/cjs/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
  317. package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  318. package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  319. package/dist/ui.backup/cjs/types/components/Page/TemplateBlock/index.d.ts +0 -2
  320. package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
  321. package/dist/ui.backup/cjs/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
  322. package/dist/ui.backup/cjs/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
  323. package/dist/ui.backup/cjs/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
  324. package/dist/ui.backup/cjs/types/components/Page/TextBlock/index.d.ts +0 -2
  325. package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
  326. package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
  327. package/dist/ui.backup/cjs/types/components/Page/ToDoBlock/index.d.ts +0 -2
  328. package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
  329. package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
  330. package/dist/ui.backup/cjs/types/components/Page/ToggleBlock/index.d.ts +0 -2
  331. package/dist/ui.backup/cjs/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
  332. package/dist/ui.backup/cjs/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
  333. package/dist/ui.backup/cjs/types/components/Page/VideoBlock/index.d.ts +0 -2
  334. package/dist/ui.backup/cjs/types/components/Page/index.d.ts +0 -2
  335. package/dist/ui.backup/cjs/types/components/Table/Table.d.ts +0 -4
  336. package/dist/ui.backup/cjs/types/components/Table/Table.types.d.ts +0 -13
  337. package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
  338. package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
  339. package/dist/ui.backup/cjs/types/components/Table/TableCheckboxField/index.d.ts +0 -2
  340. package/dist/ui.backup/cjs/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
  341. package/dist/ui.backup/cjs/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
  342. package/dist/ui.backup/cjs/types/components/Table/TableDateField/index.d.ts +0 -2
  343. package/dist/ui.backup/cjs/types/components/Table/TableHandler.d.ts +0 -4
  344. package/dist/ui.backup/cjs/types/components/Table/TableHandler.types.d.ts +0 -12
  345. package/dist/ui.backup/cjs/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
  346. package/dist/ui.backup/cjs/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
  347. package/dist/ui.backup/cjs/types/components/Table/TableIcon/index.d.ts +0 -2
  348. package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
  349. package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
  350. package/dist/ui.backup/cjs/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
  351. package/dist/ui.backup/cjs/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
  352. package/dist/ui.backup/cjs/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
  353. package/dist/ui.backup/cjs/types/components/Table/TableNumberField/index.d.ts +0 -2
  354. package/dist/ui.backup/cjs/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  355. package/dist/ui.backup/cjs/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  356. package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
  357. package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
  358. package/dist/ui.backup/cjs/types/components/Table/TableRichTextField/index.d.ts +0 -2
  359. package/dist/ui.backup/cjs/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
  360. package/dist/ui.backup/cjs/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
  361. package/dist/ui.backup/cjs/types/components/Table/TableSelectField/index.d.ts +0 -2
  362. package/dist/ui.backup/cjs/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
  363. package/dist/ui.backup/cjs/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
  364. package/dist/ui.backup/cjs/types/components/Table/TableTitleField/index.d.ts +0 -2
  365. package/dist/ui.backup/cjs/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
  366. package/dist/ui.backup/cjs/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
  367. package/dist/ui.backup/cjs/types/components/Table/TableUrlField/index.d.ts +0 -2
  368. package/dist/ui.backup/cjs/types/components/Table/index.d.ts +0 -2
  369. package/dist/ui.backup/cjs/types/components/index.d.ts +0 -56
  370. package/dist/ui.backup/cjs/types/components/lib.d.ts +0 -13
  371. package/dist/ui.backup/cjs/types/components/types.d.ts +0 -17
  372. package/dist/ui.backup/cjs/types/index.d.ts +0 -1
  373. package/dist/ui.backup/esm/index.js +0 -2
  374. package/dist/ui.backup/esm/index.js.map +0 -1
  375. package/dist/ui.backup/esm/types/components/Gallery/Gallery.d.ts +0 -4
  376. package/dist/ui.backup/esm/types/components/Gallery/Gallery.types.d.ts +0 -14
  377. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
  378. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
  379. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
  380. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
  381. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
  382. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
  383. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
  384. package/dist/ui.backup/esm/types/components/Gallery/GalleryCard/index.d.ts +0 -2
  385. package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
  386. package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
  387. package/dist/ui.backup/esm/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
  388. package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
  389. package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
  390. package/dist/ui.backup/esm/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
  391. package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
  392. package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
  393. package/dist/ui.backup/esm/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
  394. package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
  395. package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
  396. package/dist/ui.backup/esm/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
  397. package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
  398. package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
  399. package/dist/ui.backup/esm/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
  400. package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
  401. package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
  402. package/dist/ui.backup/esm/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
  403. package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
  404. package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
  405. package/dist/ui.backup/esm/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
  406. package/dist/ui.backup/esm/types/components/Gallery/index.d.ts +0 -2
  407. package/dist/ui.backup/esm/types/components/List/List.d.ts +0 -4
  408. package/dist/ui.backup/esm/types/components/List/List.types.d.ts +0 -13
  409. package/dist/ui.backup/esm/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
  410. package/dist/ui.backup/esm/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
  411. package/dist/ui.backup/esm/types/components/List/ListCheckboxField/index.d.ts +0 -2
  412. package/dist/ui.backup/esm/types/components/List/ListDateField/ListDateField.d.ts +0 -4
  413. package/dist/ui.backup/esm/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
  414. package/dist/ui.backup/esm/types/components/List/ListDateField/index.d.ts +0 -2
  415. package/dist/ui.backup/esm/types/components/List/ListHandler.d.ts +0 -4
  416. package/dist/ui.backup/esm/types/components/List/ListHandler.types.d.ts +0 -12
  417. package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
  418. package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
  419. package/dist/ui.backup/esm/types/components/List/ListMultiSelectField/index.d.ts +0 -2
  420. package/dist/ui.backup/esm/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
  421. package/dist/ui.backup/esm/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
  422. package/dist/ui.backup/esm/types/components/List/ListNumberField/index.d.ts +0 -2
  423. package/dist/ui.backup/esm/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
  424. package/dist/ui.backup/esm/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
  425. package/dist/ui.backup/esm/types/components/List/ListRichTextField/index.d.ts +0 -2
  426. package/dist/ui.backup/esm/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
  427. package/dist/ui.backup/esm/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
  428. package/dist/ui.backup/esm/types/components/List/ListTitleField/index.d.ts +0 -2
  429. package/dist/ui.backup/esm/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
  430. package/dist/ui.backup/esm/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
  431. package/dist/ui.backup/esm/types/components/List/ListUrlField/index.d.ts +0 -2
  432. package/dist/ui.backup/esm/types/components/List/index.d.ts +0 -2
  433. package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
  434. package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
  435. package/dist/ui.backup/esm/types/components/Page/BookmarkBlock/index.d.ts +0 -2
  436. package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
  437. package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
  438. package/dist/ui.backup/esm/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
  439. package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  440. package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
  441. package/dist/ui.backup/esm/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
  442. package/dist/ui.backup/esm/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
  443. package/dist/ui.backup/esm/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
  444. package/dist/ui.backup/esm/types/components/Page/CalloutBlock/index.d.ts +0 -2
  445. package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
  446. package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
  447. package/dist/ui.backup/esm/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
  448. package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
  449. package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
  450. package/dist/ui.backup/esm/types/components/Page/ChildPageBlock/index.d.ts +0 -2
  451. package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
  452. package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
  453. package/dist/ui.backup/esm/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
  454. package/dist/ui.backup/esm/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
  455. package/dist/ui.backup/esm/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
  456. package/dist/ui.backup/esm/types/components/Page/CodeBlock/index.d.ts +0 -2
  457. package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
  458. package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
  459. package/dist/ui.backup/esm/types/components/Page/ColumnListBlock/index.d.ts +0 -2
  460. package/dist/ui.backup/esm/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
  461. package/dist/ui.backup/esm/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
  462. package/dist/ui.backup/esm/types/components/Page/EmbedBlock/index.d.ts +0 -2
  463. package/dist/ui.backup/esm/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
  464. package/dist/ui.backup/esm/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
  465. package/dist/ui.backup/esm/types/components/Page/EquationBlock/index.d.ts +0 -2
  466. package/dist/ui.backup/esm/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
  467. package/dist/ui.backup/esm/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
  468. package/dist/ui.backup/esm/types/components/Page/FileBlock/index.d.ts +0 -2
  469. package/dist/ui.backup/esm/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
  470. package/dist/ui.backup/esm/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
  471. package/dist/ui.backup/esm/types/components/Page/ImageBlock/index.d.ts +0 -2
  472. package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
  473. package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
  474. package/dist/ui.backup/esm/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
  475. package/dist/ui.backup/esm/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
  476. package/dist/ui.backup/esm/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
  477. package/dist/ui.backup/esm/types/components/Page/ListBlock/index.d.ts +0 -2
  478. package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  479. package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
  480. package/dist/ui.backup/esm/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
  481. package/dist/ui.backup/esm/types/components/Page/Page.d.ts +0 -4
  482. package/dist/ui.backup/esm/types/components/Page/Page.types.d.ts +0 -14
  483. package/dist/ui.backup/esm/types/components/Page/PageHandler.d.ts +0 -15
  484. package/dist/ui.backup/esm/types/components/Page/PageHandler.types.d.ts +0 -11
  485. package/dist/ui.backup/esm/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
  486. package/dist/ui.backup/esm/types/components/Page/PageIcon/index.d.ts +0 -2
  487. package/dist/ui.backup/esm/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
  488. package/dist/ui.backup/esm/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
  489. package/dist/ui.backup/esm/types/components/Page/PdfBlock/index.d.ts +0 -2
  490. package/dist/ui.backup/esm/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
  491. package/dist/ui.backup/esm/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
  492. package/dist/ui.backup/esm/types/components/Page/SyncedBlock/index.d.ts +0 -2
  493. package/dist/ui.backup/esm/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
  494. package/dist/ui.backup/esm/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
  495. package/dist/ui.backup/esm/types/components/Page/TableBlock/index.d.ts +0 -2
  496. package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
  497. package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
  498. package/dist/ui.backup/esm/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
  499. package/dist/ui.backup/esm/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  500. package/dist/ui.backup/esm/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  501. package/dist/ui.backup/esm/types/components/Page/TemplateBlock/index.d.ts +0 -2
  502. package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
  503. package/dist/ui.backup/esm/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
  504. package/dist/ui.backup/esm/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
  505. package/dist/ui.backup/esm/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
  506. package/dist/ui.backup/esm/types/components/Page/TextBlock/index.d.ts +0 -2
  507. package/dist/ui.backup/esm/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
  508. package/dist/ui.backup/esm/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
  509. package/dist/ui.backup/esm/types/components/Page/ToDoBlock/index.d.ts +0 -2
  510. package/dist/ui.backup/esm/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
  511. package/dist/ui.backup/esm/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
  512. package/dist/ui.backup/esm/types/components/Page/ToggleBlock/index.d.ts +0 -2
  513. package/dist/ui.backup/esm/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
  514. package/dist/ui.backup/esm/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
  515. package/dist/ui.backup/esm/types/components/Page/VideoBlock/index.d.ts +0 -2
  516. package/dist/ui.backup/esm/types/components/Page/index.d.ts +0 -2
  517. package/dist/ui.backup/esm/types/components/Table/Table.d.ts +0 -4
  518. package/dist/ui.backup/esm/types/components/Table/Table.types.d.ts +0 -13
  519. package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
  520. package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
  521. package/dist/ui.backup/esm/types/components/Table/TableCheckboxField/index.d.ts +0 -2
  522. package/dist/ui.backup/esm/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
  523. package/dist/ui.backup/esm/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
  524. package/dist/ui.backup/esm/types/components/Table/TableDateField/index.d.ts +0 -2
  525. package/dist/ui.backup/esm/types/components/Table/TableHandler.d.ts +0 -4
  526. package/dist/ui.backup/esm/types/components/Table/TableHandler.types.d.ts +0 -12
  527. package/dist/ui.backup/esm/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
  528. package/dist/ui.backup/esm/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
  529. package/dist/ui.backup/esm/types/components/Table/TableIcon/index.d.ts +0 -2
  530. package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
  531. package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
  532. package/dist/ui.backup/esm/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
  533. package/dist/ui.backup/esm/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
  534. package/dist/ui.backup/esm/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
  535. package/dist/ui.backup/esm/types/components/Table/TableNumberField/index.d.ts +0 -2
  536. package/dist/ui.backup/esm/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  537. package/dist/ui.backup/esm/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  538. package/dist/ui.backup/esm/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
  539. package/dist/ui.backup/esm/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
  540. package/dist/ui.backup/esm/types/components/Table/TableRichTextField/index.d.ts +0 -2
  541. package/dist/ui.backup/esm/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
  542. package/dist/ui.backup/esm/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
  543. package/dist/ui.backup/esm/types/components/Table/TableSelectField/index.d.ts +0 -2
  544. package/dist/ui.backup/esm/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
  545. package/dist/ui.backup/esm/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
  546. package/dist/ui.backup/esm/types/components/Table/TableTitleField/index.d.ts +0 -2
  547. package/dist/ui.backup/esm/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
  548. package/dist/ui.backup/esm/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
  549. package/dist/ui.backup/esm/types/components/Table/TableUrlField/index.d.ts +0 -2
  550. package/dist/ui.backup/esm/types/components/Table/index.d.ts +0 -2
  551. package/dist/ui.backup/esm/types/components/index.d.ts +0 -56
  552. package/dist/ui.backup/esm/types/components/lib.d.ts +0 -13
  553. package/dist/ui.backup/esm/types/components/types.d.ts +0 -17
  554. package/dist/ui.backup/esm/types/index.d.ts +0 -1
  555. package/dist/ui.backup/styles/base.css +0 -44
  556. package/dist/ui.backup/styles/gallery.css +0 -172
  557. package/dist/ui.backup/styles/list.css +0 -153
  558. package/dist/ui.backup/styles/notionate-dark.css +0 -297
  559. package/dist/ui.backup/styles/notionate.css +0 -5
  560. package/dist/ui.backup/styles/page.css +0 -762
  561. package/dist/ui.backup/styles/table.css +0 -166
  562. package/dist/ui.backup/types.d.ts +0 -421
  563. package/dist/ui.backup/umd/index.js +0 -2
  564. package/dist/ui.backup/umd/index.js.map +0 -1
  565. package/dist/ui.backup/umd/types/components/Gallery/Gallery.d.ts +0 -4
  566. package/dist/ui.backup/umd/types/components/Gallery/Gallery.types.d.ts +0 -14
  567. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryCard.d.ts +0 -4
  568. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryCard.types.d.ts +0 -12
  569. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryHandler.d.ts +0 -4
  570. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -5
  571. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryLinkedCard.d.ts +0 -4
  572. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -10
  573. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/GalleryPreview.d.ts +0 -6
  574. package/dist/ui.backup/umd/types/components/Gallery/GalleryCard/index.d.ts +0 -2
  575. package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.d.ts +0 -4
  576. package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/GalleryCheckboxField.types.d.ts +0 -3
  577. package/dist/ui.backup/umd/types/components/Gallery/GalleryCheckboxField/index.d.ts +0 -2
  578. package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/DateField.types.d.ts +0 -4
  579. package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/GalleryDateField.d.ts +0 -4
  580. package/dist/ui.backup/umd/types/components/Gallery/GalleryDateField/index.d.ts +0 -2
  581. package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +0 -4
  582. package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +0 -7
  583. package/dist/ui.backup/umd/types/components/Gallery/GalleryMultiSelectField/index.d.ts +0 -2
  584. package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/GalleryNumberField.d.ts +0 -4
  585. package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/GalleryNumberField.types.d.ts +0 -4
  586. package/dist/ui.backup/umd/types/components/Gallery/GalleryNumberField/index.d.ts +0 -2
  587. package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/RichTextField.d.ts +0 -4
  588. package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +0 -4
  589. package/dist/ui.backup/umd/types/components/Gallery/GalleryRichTextField/index.d.ts +0 -2
  590. package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/GalleryTitleField.d.ts +0 -4
  591. package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/GalleryTitleField.types.d.ts +0 -4
  592. package/dist/ui.backup/umd/types/components/Gallery/GalleryTitleField/index.d.ts +0 -2
  593. package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/GalleryUrlField.d.ts +0 -4
  594. package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/GalleryUrlField.types.d.ts +0 -3
  595. package/dist/ui.backup/umd/types/components/Gallery/GalleryUrlField/index.d.ts +0 -2
  596. package/dist/ui.backup/umd/types/components/Gallery/index.d.ts +0 -2
  597. package/dist/ui.backup/umd/types/components/List/List.d.ts +0 -4
  598. package/dist/ui.backup/umd/types/components/List/List.types.d.ts +0 -13
  599. package/dist/ui.backup/umd/types/components/List/ListCheckboxField/ListCheckboxField.d.ts +0 -4
  600. package/dist/ui.backup/umd/types/components/List/ListCheckboxField/ListCheckboxField.types.d.ts +0 -3
  601. package/dist/ui.backup/umd/types/components/List/ListCheckboxField/index.d.ts +0 -2
  602. package/dist/ui.backup/umd/types/components/List/ListDateField/ListDateField.d.ts +0 -4
  603. package/dist/ui.backup/umd/types/components/List/ListDateField/ListDateField.types.d.ts +0 -4
  604. package/dist/ui.backup/umd/types/components/List/ListDateField/index.d.ts +0 -2
  605. package/dist/ui.backup/umd/types/components/List/ListHandler.d.ts +0 -4
  606. package/dist/ui.backup/umd/types/components/List/ListHandler.types.d.ts +0 -12
  607. package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/ListMultiSelectField.d.ts +0 -4
  608. package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/ListMultiSelectField.types.d.ts +0 -10
  609. package/dist/ui.backup/umd/types/components/List/ListMultiSelectField/index.d.ts +0 -2
  610. package/dist/ui.backup/umd/types/components/List/ListNumberField/ListNumberField.d.ts +0 -4
  611. package/dist/ui.backup/umd/types/components/List/ListNumberField/ListNumberField.types.d.ts +0 -4
  612. package/dist/ui.backup/umd/types/components/List/ListNumberField/index.d.ts +0 -2
  613. package/dist/ui.backup/umd/types/components/List/ListRichTextField/ListRichTextField.d.ts +0 -4
  614. package/dist/ui.backup/umd/types/components/List/ListRichTextField/ListRichTextField.types.d.ts +0 -4
  615. package/dist/ui.backup/umd/types/components/List/ListRichTextField/index.d.ts +0 -2
  616. package/dist/ui.backup/umd/types/components/List/ListTitleField/ListTitleField.d.ts +0 -4
  617. package/dist/ui.backup/umd/types/components/List/ListTitleField/ListTitleField.types.d.ts +0 -11
  618. package/dist/ui.backup/umd/types/components/List/ListTitleField/index.d.ts +0 -2
  619. package/dist/ui.backup/umd/types/components/List/ListUrlField/ListUrlField.d.ts +0 -4
  620. package/dist/ui.backup/umd/types/components/List/ListUrlField/ListUrlField.types.d.ts +0 -3
  621. package/dist/ui.backup/umd/types/components/List/ListUrlField/index.d.ts +0 -2
  622. package/dist/ui.backup/umd/types/components/List/index.d.ts +0 -2
  623. package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/BookmarkBlock.d.ts +0 -4
  624. package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/BookmarkBlock.types.d.ts +0 -4
  625. package/dist/ui.backup/umd/types/components/Page/BookmarkBlock/index.d.ts +0 -2
  626. package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +0 -4
  627. package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -4
  628. package/dist/ui.backup/umd/types/components/Page/BreadcrumbBlock/index.d.ts +0 -2
  629. package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  630. package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts +0 -10
  631. package/dist/ui.backup/umd/types/components/Page/BulletedListBlocks/index.d.ts +0 -2
  632. package/dist/ui.backup/umd/types/components/Page/CalloutBlock/CalloutBlock.d.ts +0 -4
  633. package/dist/ui.backup/umd/types/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -4
  634. package/dist/ui.backup/umd/types/components/Page/CalloutBlock/index.d.ts +0 -2
  635. package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.d.ts +0 -4
  636. package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -14
  637. package/dist/ui.backup/umd/types/components/Page/ChildDatabaseBlock/index.d.ts +0 -2
  638. package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/ChildPageBlock.d.ts +0 -4
  639. package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -14
  640. package/dist/ui.backup/umd/types/components/Page/ChildPageBlock/index.d.ts +0 -2
  641. package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/Code.d.ts +0 -4
  642. package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/Code.types.d.ts +0 -7
  643. package/dist/ui.backup/umd/types/components/Page/CodeBlock/Code/index.d.ts +0 -2
  644. package/dist/ui.backup/umd/types/components/Page/CodeBlock/CodeBlock.d.ts +0 -4
  645. package/dist/ui.backup/umd/types/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -6
  646. package/dist/ui.backup/umd/types/components/Page/CodeBlock/index.d.ts +0 -2
  647. package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/ColumnListBlock.d.ts +0 -4
  648. package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -10
  649. package/dist/ui.backup/umd/types/components/Page/ColumnListBlock/index.d.ts +0 -2
  650. package/dist/ui.backup/umd/types/components/Page/EmbedBlock/EmbedBlock.d.ts +0 -4
  651. package/dist/ui.backup/umd/types/components/Page/EmbedBlock/EmbedBlock.types.d.ts +0 -4
  652. package/dist/ui.backup/umd/types/components/Page/EmbedBlock/index.d.ts +0 -2
  653. package/dist/ui.backup/umd/types/components/Page/EquationBlock/EquationBlock.d.ts +0 -4
  654. package/dist/ui.backup/umd/types/components/Page/EquationBlock/EquationBlock.types.d.ts +0 -4
  655. package/dist/ui.backup/umd/types/components/Page/EquationBlock/index.d.ts +0 -2
  656. package/dist/ui.backup/umd/types/components/Page/FileBlock/FileBlock.d.ts +0 -4
  657. package/dist/ui.backup/umd/types/components/Page/FileBlock/FileBlock.types.d.ts +0 -4
  658. package/dist/ui.backup/umd/types/components/Page/FileBlock/index.d.ts +0 -2
  659. package/dist/ui.backup/umd/types/components/Page/ImageBlock/ImageBlock.d.ts +0 -4
  660. package/dist/ui.backup/umd/types/components/Page/ImageBlock/ImageBlock.types.d.ts +0 -4
  661. package/dist/ui.backup/umd/types/components/Page/ImageBlock/index.d.ts +0 -2
  662. package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.d.ts +0 -4
  663. package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/LinkPreviewBlock.types.d.ts +0 -4
  664. package/dist/ui.backup/umd/types/components/Page/LinkPreviewBlock/index.d.ts +0 -2
  665. package/dist/ui.backup/umd/types/components/Page/ListBlock/ListBlock.d.ts +0 -4
  666. package/dist/ui.backup/umd/types/components/Page/ListBlock/ListBlock.types.d.ts +0 -12
  667. package/dist/ui.backup/umd/types/components/Page/ListBlock/index.d.ts +0 -2
  668. package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  669. package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts +0 -10
  670. package/dist/ui.backup/umd/types/components/Page/NumberedListBlocks/index.d.ts +0 -2
  671. package/dist/ui.backup/umd/types/components/Page/Page.d.ts +0 -4
  672. package/dist/ui.backup/umd/types/components/Page/Page.types.d.ts +0 -14
  673. package/dist/ui.backup/umd/types/components/Page/PageHandler.d.ts +0 -15
  674. package/dist/ui.backup/umd/types/components/Page/PageHandler.types.d.ts +0 -11
  675. package/dist/ui.backup/umd/types/components/Page/PageIcon/PageIcon.d.ts +0 -6
  676. package/dist/ui.backup/umd/types/components/Page/PageIcon/index.d.ts +0 -2
  677. package/dist/ui.backup/umd/types/components/Page/PdfBlock/PdfBlock.d.ts +0 -4
  678. package/dist/ui.backup/umd/types/components/Page/PdfBlock/PdfBlock.types.d.ts +0 -4
  679. package/dist/ui.backup/umd/types/components/Page/PdfBlock/index.d.ts +0 -2
  680. package/dist/ui.backup/umd/types/components/Page/SyncedBlock/SyncedBlock.d.ts +0 -4
  681. package/dist/ui.backup/umd/types/components/Page/SyncedBlock/SyncedBlock.types.d.ts +0 -4
  682. package/dist/ui.backup/umd/types/components/Page/SyncedBlock/index.d.ts +0 -2
  683. package/dist/ui.backup/umd/types/components/Page/TableBlock/TableBlock.d.ts +0 -4
  684. package/dist/ui.backup/umd/types/components/Page/TableBlock/TableBlock.types.d.ts +0 -13
  685. package/dist/ui.backup/umd/types/components/Page/TableBlock/index.d.ts +0 -2
  686. package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.d.ts +0 -4
  687. package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/TableOfContentsBlock.types.d.ts +0 -4
  688. package/dist/ui.backup/umd/types/components/Page/TableOfContentsBlock/index.d.ts +0 -2
  689. package/dist/ui.backup/umd/types/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  690. package/dist/ui.backup/umd/types/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  691. package/dist/ui.backup/umd/types/components/Page/TemplateBlock/index.d.ts +0 -2
  692. package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Equation/Equation.types.d.ts +0 -6
  693. package/dist/ui.backup/umd/types/components/Page/TextBlock/RichText/Mention/Mention.types.d.ts +0 -6
  694. package/dist/ui.backup/umd/types/components/Page/TextBlock/TextBlock.d.ts +0 -4
  695. package/dist/ui.backup/umd/types/components/Page/TextBlock/TextBlock.types.d.ts +0 -6
  696. package/dist/ui.backup/umd/types/components/Page/TextBlock/index.d.ts +0 -2
  697. package/dist/ui.backup/umd/types/components/Page/ToDoBlock/ToDoBlock.d.ts +0 -4
  698. package/dist/ui.backup/umd/types/components/Page/ToDoBlock/ToDoBlock.types.d.ts +0 -4
  699. package/dist/ui.backup/umd/types/components/Page/ToDoBlock/index.d.ts +0 -2
  700. package/dist/ui.backup/umd/types/components/Page/ToggleBlock/ToggleBlock.d.ts +0 -4
  701. package/dist/ui.backup/umd/types/components/Page/ToggleBlock/ToggleBlock.types.d.ts +0 -4
  702. package/dist/ui.backup/umd/types/components/Page/ToggleBlock/index.d.ts +0 -2
  703. package/dist/ui.backup/umd/types/components/Page/VideoBlock/VideoBlock.d.ts +0 -4
  704. package/dist/ui.backup/umd/types/components/Page/VideoBlock/VideoBlock.types.d.ts +0 -4
  705. package/dist/ui.backup/umd/types/components/Page/VideoBlock/index.d.ts +0 -2
  706. package/dist/ui.backup/umd/types/components/Page/index.d.ts +0 -2
  707. package/dist/ui.backup/umd/types/components/Table/Table.d.ts +0 -4
  708. package/dist/ui.backup/umd/types/components/Table/Table.types.d.ts +0 -13
  709. package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/TableCheckboxField.d.ts +0 -4
  710. package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/TableCheckboxField.types.d.ts +0 -3
  711. package/dist/ui.backup/umd/types/components/Table/TableCheckboxField/index.d.ts +0 -2
  712. package/dist/ui.backup/umd/types/components/Table/TableDateField/TableDateField.d.ts +0 -4
  713. package/dist/ui.backup/umd/types/components/Table/TableDateField/TableDateField.types.d.ts +0 -4
  714. package/dist/ui.backup/umd/types/components/Table/TableDateField/index.d.ts +0 -2
  715. package/dist/ui.backup/umd/types/components/Table/TableHandler.d.ts +0 -4
  716. package/dist/ui.backup/umd/types/components/Table/TableHandler.types.d.ts +0 -12
  717. package/dist/ui.backup/umd/types/components/Table/TableIcon/TableIcon.d.ts +0 -4
  718. package/dist/ui.backup/umd/types/components/Table/TableIcon/TableIcon.types.d.ts +0 -3
  719. package/dist/ui.backup/umd/types/components/Table/TableIcon/index.d.ts +0 -2
  720. package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +0 -4
  721. package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +0 -7
  722. package/dist/ui.backup/umd/types/components/Table/TableMultiSelectField/index.d.ts +0 -2
  723. package/dist/ui.backup/umd/types/components/Table/TableNumberField/TableNumberField.d.ts +0 -4
  724. package/dist/ui.backup/umd/types/components/Table/TableNumberField/TableNumberField.types.d.ts +0 -4
  725. package/dist/ui.backup/umd/types/components/Table/TableNumberField/index.d.ts +0 -2
  726. package/dist/ui.backup/umd/types/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  727. package/dist/ui.backup/umd/types/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  728. package/dist/ui.backup/umd/types/components/Table/TableRichTextField/TableRichTextField.d.ts +0 -4
  729. package/dist/ui.backup/umd/types/components/Table/TableRichTextField/TableRichTextField.types.d.ts +0 -4
  730. package/dist/ui.backup/umd/types/components/Table/TableRichTextField/index.d.ts +0 -2
  731. package/dist/ui.backup/umd/types/components/Table/TableSelectField/TableSelectField.d.ts +0 -4
  732. package/dist/ui.backup/umd/types/components/Table/TableSelectField/TableSelectField.types.d.ts +0 -7
  733. package/dist/ui.backup/umd/types/components/Table/TableSelectField/index.d.ts +0 -2
  734. package/dist/ui.backup/umd/types/components/Table/TableTitleField/TableTitleField.d.ts +0 -4
  735. package/dist/ui.backup/umd/types/components/Table/TableTitleField/TableTitleField.types.d.ts +0 -11
  736. package/dist/ui.backup/umd/types/components/Table/TableTitleField/index.d.ts +0 -2
  737. package/dist/ui.backup/umd/types/components/Table/TableUrlField/TableUrlField.d.ts +0 -4
  738. package/dist/ui.backup/umd/types/components/Table/TableUrlField/TableUrlField.types.d.ts +0 -3
  739. package/dist/ui.backup/umd/types/components/Table/TableUrlField/index.d.ts +0 -2
  740. package/dist/ui.backup/umd/types/components/Table/index.d.ts +0 -2
  741. package/dist/ui.backup/umd/types/components/index.d.ts +0 -56
  742. package/dist/ui.backup/umd/types/components/lib.d.ts +0 -13
  743. package/dist/ui.backup/umd/types/components/types.d.ts +0 -17
  744. package/dist/ui.backup/umd/types/index.d.ts +0 -1
  745. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
  746. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
  747. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
  748. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
  749. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
  750. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
  751. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
  752. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
  753. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
  754. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
  755. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
  756. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
  757. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
  758. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
  759. /package/dist/{ui.backup/cjs/types/components/Page/TextBlock → ui/cjs/types/ui/components/Page}/RichText/index.d.ts +0 -0
  760. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
  761. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
  762. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
  763. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
  764. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
  765. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
  766. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
  767. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
  768. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
  769. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
  770. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
  771. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
  772. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
  773. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
  774. /package/dist/{ui.backup/esm/types/components/Page/TextBlock → ui/esm/types/ui/components/Page}/RichText/index.d.ts +0 -0
  775. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Annotation/Annotation.d.ts +0 -0
  776. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Annotation/index.d.ts +0 -0
  777. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Equation/Equation.d.ts +0 -0
  778. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Equation/index.d.ts +0 -0
  779. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/LinkIfLinked.d.ts +0 -0
  780. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/LinkIfLinked/index.d.ts +0 -0
  781. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/Mention.d.ts +0 -0
  782. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.d.ts +0 -0
  783. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/UserMention.types.d.ts +0 -0
  784. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/UserMention/index.d.ts +0 -0
  785. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Mention/index.d.ts +0 -0
  786. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/RichText.d.ts +0 -0
  787. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/Text.d.ts +0 -0
  788. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/Text/index.d.ts +0 -0
  789. /package/dist/{ui.backup/umd/types/components/Page/TextBlock → ui/umd/types/ui/components/Page}/RichText/index.d.ts +0 -0
@@ -1,400 +0,0 @@
1
- import { Client, isNotionClientError, APIErrorCode, ClientErrorCode, } from '@notionhq/client';
2
- import { atoh, createDirWhenNotfound, saveImage, readCache, writeCache, getHtmlMeta, getVideoHtml, getEmbedHtml, isAvailableCache, } from './files.js';
3
- const cacheDir = process.env.ROTION_CACHEDIR || '.cache';
4
- const incrementalCache = process.env.ROTION_INCREMENTAL_CACHE === 'true';
5
- const waitingTimeSec = (process.env.ROTION_WAITTIME || 0);
6
- const waitTimeSecAfterLimit = (process.env.ROTION_LIMITED_WAITTIME || 60 * 1000);
7
- const auth = process.env.NOTION_TOKEN;
8
- const notion = new Client({ auth });
9
- const isEmpty = (obj) => {
10
- return !Object.keys(obj).length;
11
- };
12
- async function reqAPIWithBackoff(func, args, count) {
13
- if (count < 1) {
14
- throw new Error('backoff count exceeded');
15
- }
16
- let res = null;
17
- try {
18
- res = await func(args);
19
- if (waitingTimeSec > 0) {
20
- await new Promise(resolve => setTimeout(resolve, waitingTimeSec));
21
- }
22
- }
23
- catch (error) {
24
- if (isNotionClientError(error)) {
25
- switch (error.code) {
26
- case APIErrorCode.RateLimited:
27
- case APIErrorCode.InternalServerError:
28
- case ClientErrorCode.ResponseError:
29
- case ClientErrorCode.RequestTimeout:
30
- console.log(`backoff(${count}) -- error code: ${error.code}`);
31
- if (waitTimeSecAfterLimit > 0) {
32
- await new Promise(resolve => setTimeout(resolve, waitTimeSecAfterLimit));
33
- }
34
- res = await reqAPIWithBackoff(func, args, count--);
35
- break;
36
- }
37
- }
38
- console.error('error:', error);
39
- console.error('args:', args);
40
- }
41
- if (res === null) {
42
- throw new Error(`request to notion api failed: ${func.name}`);
43
- }
44
- return res;
45
- }
46
- async function reqAPIWithBackoffAndCache(name, func, args, count) {
47
- const key = atoh(JSON.stringify({ func: func.name, args }));
48
- const cacheFile = `${cacheDir}/${name}-${key}`;
49
- try {
50
- const cache = await readCache(cacheFile);
51
- if (await isAvailableCache(cacheFile, 600)) {
52
- return cache;
53
- }
54
- }
55
- catch (_) {
56
- /* not fatal */
57
- }
58
- const res = await reqAPIWithBackoff(func, args, count);
59
- await writeCache(cacheFile, res);
60
- return res;
61
- }
62
- /**
63
- * FetchDatabase retrieves database and download images in from blocks.
64
- * And create cache that includes filepath of downloaded images.
65
- */
66
- export const FetchDatabase = async (params) => {
67
- const { database_id } = params;
68
- const limit = ('page_size' in params) ? params.page_size : undefined;
69
- const paramsHash = atoh(JSON.stringify(params));
70
- await createDirWhenNotfound(cacheDir);
71
- const cacheFile = `${cacheDir}/notion.databases.query-${paramsHash}${limit !== undefined ? `.limit-${limit}` : ''}`;
72
- let allres;
73
- let res;
74
- try {
75
- const list = await readCache(cacheFile);
76
- if (!isEmpty(list)) {
77
- if (!incrementalCache) {
78
- return list;
79
- }
80
- if (await isAvailableCache(cacheFile, 120)) {
81
- return list;
82
- }
83
- }
84
- }
85
- catch (_) {
86
- /* not fatal */
87
- }
88
- while (true) {
89
- if (res && res.next_cursor) {
90
- params.start_cursor = res.next_cursor;
91
- }
92
- res = await reqAPIWithBackoff(notion.databases.query, params, 3);
93
- if (allres === undefined) {
94
- allres = res;
95
- }
96
- else {
97
- allres.results.push(...res.results);
98
- }
99
- if (res.next_cursor === null || limit !== undefined) {
100
- break;
101
- }
102
- }
103
- for (const result of allres.results) {
104
- const page = result;
105
- // Save page cover files
106
- if ('cover' in page && page.cover != null) {
107
- const imageUrl = (page.cover.type === 'external') ? page.cover.external.url : page.cover.file.url;
108
- page.cover.src = await saveImage(imageUrl, `page-cover-${page.id}`);
109
- }
110
- // Set page property items
111
- page.property_items = [];
112
- for (const [, v] of Object.entries(page.properties)) {
113
- const page_id = page.id;
114
- const property_id = v.id;
115
- const props = await reqAPIWithBackoffAndCache('notion.pages.properties.retrieve', notion.pages.properties.retrieve, { page_id, property_id }, 3);
116
- page.property_items.push(props);
117
- // Save avatar in people property type
118
- if (v.type === 'people') {
119
- const peoples = v.people;
120
- for (const people of peoples) {
121
- if (people.avatar_url) {
122
- people.avatar = await saveImage(people.avatar_url, `database-avatar-${people.id}`);
123
- }
124
- }
125
- }
126
- }
127
- }
128
- const meta = await reqAPIWithBackoff(notion.databases.retrieve, { database_id }, 3);
129
- if ('cover' in meta && meta.cover !== null) {
130
- const imageUrl = (meta.cover.type === 'external') ? meta.cover.external.url : meta.cover.file.url;
131
- meta.cover.src = await saveImage(imageUrl, `database-cover-${database_id}`);
132
- }
133
- allres.meta = meta;
134
- await writeCache(cacheFile, allres);
135
- return allres;
136
- };
137
- /**
138
- * FetchPage retrieves page properties and download images in from properties.
139
- * And create cache that includes filepath of downloaded images.
140
- * The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
141
- */
142
- export const FetchPage = async (page_id, last_edited_time) => {
143
- await createDirWhenNotfound(cacheDir);
144
- const cacheFile = `${cacheDir}/notion.pages.retrieve-${page_id}`;
145
- try {
146
- const page = await readCache(cacheFile);
147
- if (!isEmpty(page)) {
148
- if (incrementalCache && last_edited_time === undefined) {
149
- console.log('last_edited_time is required as a FetchPage() args when incremental cache');
150
- return page;
151
- }
152
- if (!incrementalCache || ('last_edited_time' in page && page.last_edited_time === last_edited_time)) {
153
- return page;
154
- }
155
- console.log(`incremental page cache: ${cacheFile}`);
156
- }
157
- }
158
- catch (_) {
159
- /* not fatal */
160
- }
161
- const page = await reqAPIWithBackoff(notion.pages.retrieve, { page_id }, 3);
162
- if ('properties' in page) {
163
- let list;
164
- for (const [, v] of Object.entries(page.properties)) {
165
- const property_id = v.id;
166
- const res = await reqAPIWithBackoffAndCache('notion.pages.properties.retrieve', notion.pages.properties.retrieve, { page_id, property_id }, 3);
167
- if (res.object !== 'list') {
168
- continue;
169
- }
170
- if (list === undefined) {
171
- list = res;
172
- }
173
- else {
174
- list.results.push(...res.results);
175
- }
176
- }
177
- page.meta = list;
178
- }
179
- if ('cover' in page && page.cover !== null) {
180
- if (page.cover.type === 'external') {
181
- page.cover.src = await saveImage(page.cover.external.url, `page-cover-${page.id}`);
182
- }
183
- else if (page.cover.type === 'file') {
184
- page.cover.src = await saveImage(page.cover.file.url, `page-cover-${page.id}`);
185
- }
186
- }
187
- if ('icon' in page && page.icon !== null) {
188
- if (page.icon.type === 'external') {
189
- page.icon.src = await saveImage(page.icon.external.url, `page-icon-${page.id}`);
190
- }
191
- else if (page.icon.type === 'file') {
192
- page.icon.src = await saveImage(page.icon.file.url, `page-icon-${page.id}`);
193
- }
194
- }
195
- await writeCache(cacheFile, page);
196
- return page;
197
- };
198
- /**
199
- * FetchBlocks retrieves page blocks and download images in from blocks.
200
- * And create cache that includes filepath of downloaded images.
201
- * The last_edited_time of 2nd args is for ROTION_INCREMENTAL_CACHE.
202
- */
203
- export const FetchBlocks = async (block_id, last_edited_time) => {
204
- await createDirWhenNotfound(cacheDir);
205
- const cacheFile = `${cacheDir}/notion.blocks.children.list-${block_id}`;
206
- try {
207
- const list = await readCache(cacheFile);
208
- if (!isEmpty(list)) {
209
- if (incrementalCache && last_edited_time === undefined) {
210
- console.log('last_edited_time is required as a FetchBlocks() args when incremental cache');
211
- return list;
212
- }
213
- if (!incrementalCache || list.last_edited_time === last_edited_time) {
214
- return list;
215
- }
216
- console.log(`incremental block cache: ${cacheFile}`);
217
- }
218
- }
219
- catch (_) {
220
- /* not fatal */
221
- }
222
- const list = await reqAPIWithBackoff(notion.blocks.children.list, { block_id }, 3);
223
- // With the blocks api, you can get the last modified date of a block,
224
- // but not the last modified date of all blocks. So extend the type and add it.
225
- if (last_edited_time) {
226
- list.last_edited_time = last_edited_time;
227
- }
228
- for (const block of list.results) {
229
- try {
230
- const { type } = block;
231
- switch (type) {
232
- case 'bookmark':
233
- block.bookmark.site = await getHtmlMeta(block.bookmark.url);
234
- break;
235
- case 'bulleted_list_item':
236
- if (block.has_children) {
237
- block.children = await FetchBlocks(block.id, block.last_edited_time);
238
- }
239
- break;
240
- case 'callout':
241
- if (block.callout.icon?.type === 'external') {
242
- const iconUrl = block.callout.icon.external.url;
243
- block.callout.icon.src = await saveImage(iconUrl, `block-${block.id}`);
244
- }
245
- break;
246
- case 'child_database':
247
- // if (block.has_children) {
248
- const database_id = block.id;
249
- block.database = await reqAPIWithBackoffAndCache('notion.databases.retrieve', notion.databases.retrieve, { database_id }, 3);
250
- console.log(block);
251
- // }
252
- break;
253
- case 'child_page':
254
- block.page = await FetchPage(block.id, block.last_edited_time);
255
- // Unnecessary?
256
- // block.children = await FetchBlocks(block.id, block.last_edited_time)
257
- break;
258
- case 'column_list':
259
- block.children = await FetchBlocks(block.id, block.last_edited_time);
260
- block.columns = [];
261
- for (const b of block.children.results) {
262
- block.columns.push(await FetchBlocks(b.id, block.last_edited_time));
263
- }
264
- break;
265
- case 'embed':
266
- block.embed.html = await getEmbedHtml(block);
267
- break;
268
- case 'image':
269
- const { id, image } = block;
270
- if (image !== undefined) {
271
- const imageUrl = image.type === 'file' ? image.file.url : image.external.url;
272
- block.image.src = await saveImage(imageUrl, `block-${id}`);
273
- }
274
- break;
275
- case 'numbered_list_item':
276
- if (block.has_children) {
277
- block.children = await FetchBlocks(block.id, block.last_edited_time);
278
- }
279
- break;
280
- case 'paragraph':
281
- for (const richText of block.paragraph.rich_text) {
282
- if (richText.type !== 'mention') {
283
- continue;
284
- }
285
- switch (richText.mention.type) {
286
- case 'database':
287
- try {
288
- const database_id = richText.mention.database.id;
289
- const db = await reqAPIWithBackoffAndCache('notion.databases.retrieve', notion.databases.retrieve, { database_id }, 3);
290
- richText.mention.database.name = db.title.map(v => v.plain_text).join('');
291
- if (db.icon?.type === 'emoji') {
292
- richText.mention.database.icon = { type: 'emoji', emoji: db.icon.emoji };
293
- }
294
- else if (db.icon?.type === 'external' || db.icon?.type === 'file') {
295
- const iconUrl = (db.icon.type === 'external') ? db.icon.external.url : db.icon.file.url;
296
- const src = await saveImage(iconUrl, `block-${block.id}`);
297
- richText.mention.database.icon = { type: db.icon.type, src, url: src };
298
- }
299
- }
300
- catch (e) {
301
- console.log(`database view mention is unsupported ${block.type}`, block, e);
302
- richText.mention.database.name = '--';
303
- richText.mention.database.icon = { type: 'emoji', emoji: '@' };
304
- }
305
- break;
306
- case 'page':
307
- const page_id = richText.mention.page.id;
308
- const page = await reqAPIWithBackoff(notion.pages.retrieve, { page_id }, 3);
309
- for (const prop of Object.values(page.properties)) {
310
- if (prop.type !== 'title') {
311
- continue;
312
- }
313
- richText.mention.page.name = prop.title.map(v => v.plain_text).join('');
314
- break;
315
- }
316
- break;
317
- }
318
- }
319
- break;
320
- case 'table':
321
- block.children = await FetchBlocks(block.id, block.last_edited_time);
322
- break;
323
- case 'toggle':
324
- block.children = await FetchBlocks(block.id, block.last_edited_time);
325
- break;
326
- case 'video':
327
- if (block.video.type === 'external') {
328
- block.video.html = await getVideoHtml(block);
329
- }
330
- break;
331
- case 'audio':
332
- case 'breadcrumb':
333
- case 'code':
334
- case 'column':
335
- case 'divider':
336
- case 'equation':
337
- case 'file':
338
- case 'heading_1':
339
- case 'heading_2':
340
- case 'heading_3':
341
- case 'link_to_page':
342
- case 'link_preview':
343
- case 'pdf':
344
- case 'quote':
345
- case 'synced_block':
346
- case 'table_of_contents':
347
- case 'table_row':
348
- case 'template':
349
- case 'to_do':
350
- case 'unsupported':
351
- break;
352
- default:
353
- console.log(`unknown block error`, block);
354
- break;
355
- }
356
- }
357
- catch (e) {
358
- console.log(`error for ${block.type} contents get`, block, e);
359
- }
360
- }
361
- await writeCache(cacheFile, list);
362
- return list;
363
- };
364
- /*
365
- interface FetchBreadcrumbsProps {
366
- type: 'page_id' | 'database_id' | 'block_id'
367
- id: string
368
- }
369
- interface Breadcrumbs {
370
- name: string
371
- icon: {}
372
- }
373
-
374
- export const FetchBreadcrumbs = async ({ type, id }: FetchBreadcrumbsProps): Promise<Breadcrumbs[]> => {
375
- let breadcrumbs: Breadcrumbs[] = []
376
- const max = 10
377
- let count = 0
378
- let nextType = type
379
-
380
- while (count < max) {
381
- switch (nextType) {
382
- case 'block_id':
383
- break
384
- case 'page_id':
385
- const page = await FetchPage(id)
386
- id = page.parent.page_id
387
- break
388
- case 'database_id':
389
- id = page.parent.database_id
390
- break
391
- case 'workspace':
392
- count = max
393
- break
394
- }
395
- }
396
-
397
- return breadcrumbs
398
- }
399
- */
400
- //# sourceMappingURL=notion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notion.js","sourceRoot":"","sources":["../../src/exporter/notion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,eAAe,GAChB,MAAM,kBAAkB,CAAA;AAYzB,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,MAAM,YAAY,CAAA;AAEnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,QAAQ,CAAA;AACxD,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,KAAK,MAAM,CAAA;AACxE,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,CAAW,CAAA;AACnE,MAAM,qBAAqB,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE,GAAG,IAAI,CAAW,CAAA;AAC1F,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA;AACrC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;AAEnC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE;IAC9B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAA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E,CAAC;wBACpC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,CAAA;oBAC9C,CAAC;oBACD,MAAK;gBACP,KAAK,OAAO,CAAC;gBACb,KAAK,YAAY,CAAC;gBAClB,KAAK,MAAM,CAAC;gBACZ,KAAK,QAAQ,CAAC;gBACd,KAAK,SAAS,CAAC;gBACf,KAAK,UAAU,CAAC;gBAChB,KAAK,MAAM,CAAC;gBACZ,KAAK,WAAW,CAAC;gBACjB,KAAK,WAAW,CAAC;gBACjB,KAAK,WAAW,CAAC;gBACjB,KAAK,cAAc,CAAC;gBACpB,KAAK,cAAc,CAAC;gBACpB,KAAK,KAAK,CAAC;gBACX,KAAK,OAAO,CAAC;gBACb,KAAK,cAAc,CAAC;gBACpB,KAAK,mBAAmB,CAAC;gBACzB,KAAK,WAAW,CAAC;gBACjB,KAAK,UAAU,CAAC;gBAChB,KAAK,OAAO,CAAC;gBACb,KAAK,aAAa;oBAChB,MAAK;gBACP;oBACE,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;oBACzC,MAAK;YACT,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,CAAC,IAAI,eAAe,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;QAC/D,CAAC;IACH,CAAC;IAED,MAAM,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;IAEjC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCE"}
@@ -1,23 +0,0 @@
1
- import type { VideoBlockObjectResponseEx, EmbedBlockObjectResponseEx } from './types.js';
2
- export declare const findLocationUrl: (rawHeaders: string[]) => string;
3
- export declare function getJson<T>(reqUrl: string): Promise<T>;
4
- export declare const atoh: (a: string) => string;
5
- export declare const createDirWhenNotfound: (dir: string) => Promise<void>;
6
- export declare function readCache<T>(f: string): Promise<T>;
7
- export declare function writeCache(f: string, data: unknown): Promise<void>;
8
- export declare function isAvailableCache(f: string, seconds: number): Promise<boolean>;
9
- export declare const saveImage: (imageUrl: string, prefix: string) => Promise<string>;
10
- export declare const findHtmlByRegexp: (regexps: RegExp[], html: string) => string | null;
11
- export declare const titleRegexps: RegExp[];
12
- export declare const descRegexps: RegExp[];
13
- export declare const imageRegexps: RegExp[];
14
- export declare const iconRegexps: RegExp[];
15
- export declare const findImage: (html: string) => string | null;
16
- export declare const getHtmlMeta: (reqUrl: string) => Promise<{
17
- title: string;
18
- desc: string;
19
- image: string;
20
- icon: string;
21
- }>;
22
- export declare const getVideoHtml: (block: VideoBlockObjectResponseEx) => Promise<string>;
23
- export declare const getEmbedHtml: (block: EmbedBlockObjectResponseEx) => Promise<string>;