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
@@ -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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AASD,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAiC;IAC7G,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,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;IAEvE,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,SAAS,CAA8B,SAAS,CAAC,CAAA;QACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACnB,IAAI,gBAAgB,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACvD,OAAO,CAAC,GAAG,CAAC,6EAA6E,CAAC,CAAA;gBAC1F,OAAO,IAAI,CAAA;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AO;oBACV,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,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"}
@@ -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,CA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,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
@@ -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,S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I,GAAG,IAAI,CAAA;IAElB,MAAM,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAEnC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
@@ -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;
@@ -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 pkg from '../../package.json' assert { type: 'json' };
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