rotion 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +20 -32
  2. package/dist/exporter/api.js +2 -2
  3. package/dist/exporter/api.js.map +1 -1
  4. package/dist/exporter/blocks.js +18 -3
  5. package/dist/exporter/blocks.js.map +1 -1
  6. package/dist/exporter/files.d.ts +4 -0
  7. package/dist/exporter/files.js +44 -1
  8. package/dist/exporter/files.js.map +1 -1
  9. package/dist/exporter/types.d.ts +24 -1
  10. package/dist/exporter/variables.d.ts +1 -0
  11. package/dist/exporter/variables.js +1 -0
  12. package/dist/exporter/variables.js.map +1 -1
  13. package/dist/ui/cjs/index.js +1 -20041
  14. package/dist/ui/cjs/index.js.map +1 -1
  15. package/dist/ui/cjs/style.css +331 -0
  16. package/dist/ui/cjs/types/exporter/files.d.ts +4 -0
  17. package/dist/ui/cjs/types/exporter/types.d.ts +24 -1
  18. package/dist/ui/cjs/types/exporter/variables.d.ts +1 -0
  19. package/dist/ui/cjs/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
  20. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
  21. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
  22. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
  23. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
  24. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
  25. package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
  26. package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
  27. package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
  28. package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
  29. package/dist/ui/cjs/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
  30. package/dist/ui/cjs/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
  31. package/dist/ui/cjs/types/ui/components/List/Column.d.ts +4 -0
  32. package/dist/ui/cjs/types/ui/components/List/Column.types.d.ts +11 -0
  33. package/dist/ui/cjs/types/ui/components/List/List.d.ts +4 -1
  34. package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  35. package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  36. package/dist/ui/cjs/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
  37. package/dist/ui/cjs/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
  38. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
  39. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
  40. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
  41. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
  42. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
  43. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
  44. package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
  45. package/dist/ui/{umd/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
  46. package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
  47. package/dist/ui/cjs/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
  48. package/dist/ui/cjs/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
  49. package/dist/ui/cjs/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
  50. package/dist/ui/cjs/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
  51. package/dist/ui/cjs/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
  52. package/dist/ui/cjs/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
  53. package/dist/ui/cjs/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
  54. package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
  55. package/dist/ui/{esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
  56. package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
  57. package/dist/ui/cjs/types/ui/components/Page/Page.d.ts +1 -1
  58. package/dist/ui/cjs/types/ui/components/Page/Page.types.d.ts +2 -2
  59. package/dist/ui/cjs/types/ui/components/Page/PageHandler.d.ts +1 -1
  60. package/dist/ui/cjs/types/ui/components/Page/PageHandler.types.d.ts +1 -2
  61. package/dist/ui/cjs/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
  62. package/dist/ui/cjs/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
  63. package/dist/ui/cjs/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
  64. package/dist/ui/cjs/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
  65. package/dist/ui/cjs/types/ui/components/Table/Column.d.ts +4 -0
  66. package/dist/ui/cjs/types/ui/components/Table/Column.types.d.ts +11 -0
  67. package/dist/ui/cjs/types/ui/components/Table/TableHandler.d.ts +1 -1
  68. package/dist/ui/cjs/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  69. package/dist/ui/cjs/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
  70. package/dist/ui/cjs/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
  71. package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  72. package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  73. package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
  74. package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
  75. package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
  76. package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  77. package/dist/ui/cjs/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
  78. package/dist/ui/cjs/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
  79. package/dist/ui/cjs/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
  80. package/dist/ui/cjs/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
  81. package/dist/ui/cjs/types/ui/components/index.d.ts +1 -3
  82. package/dist/ui/cjs/types/ui/components/tokens.stylex.d.ts +9 -0
  83. package/dist/ui/cjs/types/ui/components/types.d.ts +0 -8
  84. package/dist/ui/esm/index.js +1 -19981
  85. package/dist/ui/esm/index.js.map +1 -1
  86. package/dist/ui/esm/style.css +331 -0
  87. package/dist/ui/esm/types/exporter/files.d.ts +4 -0
  88. package/dist/ui/esm/types/exporter/types.d.ts +24 -1
  89. package/dist/ui/esm/types/exporter/variables.d.ts +1 -0
  90. package/dist/ui/esm/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
  91. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
  92. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
  93. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
  94. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
  95. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
  96. package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
  97. package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
  98. package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
  99. package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
  100. package/dist/ui/esm/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
  101. package/dist/ui/esm/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
  102. package/dist/ui/esm/types/ui/components/List/Column.d.ts +4 -0
  103. package/dist/ui/esm/types/ui/components/List/Column.types.d.ts +11 -0
  104. package/dist/ui/esm/types/ui/components/List/List.d.ts +4 -1
  105. package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  106. package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  107. package/dist/ui/esm/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
  108. package/dist/ui/esm/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
  109. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
  110. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
  111. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
  112. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
  113. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
  114. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
  115. package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
  116. package/dist/ui/{cjs/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
  117. package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
  118. package/dist/ui/esm/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
  119. package/dist/ui/esm/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
  120. package/dist/ui/esm/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
  121. package/dist/ui/esm/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
  122. package/dist/ui/esm/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
  123. package/dist/ui/esm/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
  124. package/dist/ui/esm/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
  125. package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
  126. package/dist/ui/{umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
  127. package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
  128. package/dist/ui/esm/types/ui/components/Page/Page.d.ts +1 -1
  129. package/dist/ui/esm/types/ui/components/Page/Page.types.d.ts +2 -2
  130. package/dist/ui/esm/types/ui/components/Page/PageHandler.d.ts +1 -1
  131. package/dist/ui/esm/types/ui/components/Page/PageHandler.types.d.ts +1 -2
  132. package/dist/ui/esm/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
  133. package/dist/ui/esm/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
  134. package/dist/ui/esm/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
  135. package/dist/ui/esm/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
  136. package/dist/ui/esm/types/ui/components/Table/Column.d.ts +4 -0
  137. package/dist/ui/esm/types/ui/components/Table/Column.types.d.ts +11 -0
  138. package/dist/ui/esm/types/ui/components/Table/TableHandler.d.ts +1 -1
  139. package/dist/ui/esm/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  140. package/dist/ui/esm/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
  141. package/dist/ui/esm/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
  142. package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  143. package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  144. package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
  145. package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
  146. package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
  147. package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  148. package/dist/ui/esm/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
  149. package/dist/ui/esm/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
  150. package/dist/ui/esm/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
  151. package/dist/ui/esm/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
  152. package/dist/ui/esm/types/ui/components/index.d.ts +1 -3
  153. package/dist/ui/esm/types/ui/components/tokens.stylex.d.ts +9 -0
  154. package/dist/ui/esm/types/ui/components/types.d.ts +0 -8
  155. package/dist/ui/types.d.ts +66 -48
  156. package/dist/ui/umd/index.js +1 -20045
  157. package/dist/ui/umd/index.js.map +1 -1
  158. package/dist/ui/umd/style.css +331 -0
  159. package/dist/ui/umd/types/exporter/files.d.ts +4 -0
  160. package/dist/ui/umd/types/exporter/types.d.ts +24 -1
  161. package/dist/ui/umd/types/exporter/variables.d.ts +1 -0
  162. package/dist/ui/umd/types/ui/components/Gallery/Gallery.types.d.ts +2 -2
  163. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryCard.d.ts +1 -1
  164. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryCard.types.d.ts +2 -0
  165. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.d.ts +1 -1
  166. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +6 -0
  167. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryPreview.d.ts +3 -1
  168. package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.d.ts +1 -1
  169. package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/GalleryMultiSelectField.types.d.ts +3 -0
  170. package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.d.ts +4 -0
  171. package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +10 -0
  172. package/dist/ui/umd/types/ui/components/Gallery/GalleryRichTextField/RichTextField.d.ts +1 -1
  173. package/dist/ui/umd/types/ui/components/Gallery/GalleryRichTextField/RichTextField.types.d.ts +1 -0
  174. package/dist/ui/umd/types/ui/components/List/Column.d.ts +4 -0
  175. package/dist/ui/umd/types/ui/components/List/Column.types.d.ts +11 -0
  176. package/dist/ui/umd/types/ui/components/List/List.d.ts +4 -1
  177. package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  178. package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  179. package/dist/ui/umd/types/ui/components/List/ListTitleField/LinkedTitle.d.ts +4 -0
  180. package/dist/ui/umd/types/ui/components/List/ListTitleField/LinkedTitle.types.d.ts +9 -0
  181. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +1 -9
  182. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.d.ts +4 -0
  183. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +10 -0
  184. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.d.ts +4 -0
  185. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +12 -0
  186. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -1
  187. package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.d.ts +4 -0
  188. package/dist/ui/{esm/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.types.d.ts → umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts} +1 -1
  189. package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/index.d.ts +2 -0
  190. package/dist/ui/umd/types/ui/components/Page/CodeBlock/Code/Code.d.ts +1 -1
  191. package/dist/ui/umd/types/ui/components/Page/CodeBlock/Code/Code.types.d.ts +0 -2
  192. package/dist/ui/umd/types/ui/components/Page/CodeBlock/CodeBlock.d.ts +1 -1
  193. package/dist/ui/umd/types/ui/components/Page/CodeBlock/CodeBlock.types.d.ts +0 -2
  194. package/dist/ui/umd/types/ui/components/Page/ListBlocks/ListBlocks.d.ts +4 -0
  195. package/dist/ui/umd/types/ui/components/Page/{ListBlock/ListBlock.types.d.ts → ListBlocks/ListBlocks.types.d.ts} +1 -1
  196. package/dist/ui/umd/types/ui/components/Page/ListBlocks/index.d.ts +2 -0
  197. package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.d.ts +4 -0
  198. package/dist/ui/{cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.types.d.ts → umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlock.types.d.ts} +1 -1
  199. package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/index.d.ts +2 -2
  200. package/dist/ui/umd/types/ui/components/Page/Page.d.ts +1 -1
  201. package/dist/ui/umd/types/ui/components/Page/Page.types.d.ts +2 -2
  202. package/dist/ui/umd/types/ui/components/Page/PageHandler.d.ts +1 -1
  203. package/dist/ui/umd/types/ui/components/Page/PageHandler.types.d.ts +1 -2
  204. package/dist/ui/umd/types/ui/components/Page/PageIcon/PageIcon.d.ts +4 -2
  205. package/dist/ui/umd/types/ui/components/Page/PdfBlock/PdfBlock.types.d.ts +2 -2
  206. package/dist/ui/umd/types/ui/components/Page/SyncedBlock/SyncedBlock.types.d.ts +2 -2
  207. package/dist/ui/umd/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +2 -2
  208. package/dist/ui/umd/types/ui/components/Table/Column.d.ts +4 -0
  209. package/dist/ui/umd/types/ui/components/Table/Column.types.d.ts +11 -0
  210. package/dist/ui/umd/types/ui/components/Table/TableHandler.d.ts +1 -1
  211. package/dist/ui/umd/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  212. package/dist/ui/umd/types/ui/components/Table/TableIcon/TableIcon.d.ts +1 -1
  213. package/dist/ui/umd/types/ui/components/Table/TableIcon/TableIcon.types.d.ts +1 -0
  214. package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.d.ts +4 -0
  215. package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  216. package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.d.ts +1 -1
  217. package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/TableMultiSelectField.types.d.ts +3 -0
  218. package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.d.ts +4 -0
  219. package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +11 -0
  220. package/dist/ui/umd/types/ui/components/Table/TableSelectField/TableSelectField.d.ts +1 -1
  221. package/dist/ui/umd/types/ui/components/Table/TableSelectField/TableSelectField.types.d.ts +3 -0
  222. package/dist/ui/umd/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.d.ts +4 -0
  223. package/dist/ui/umd/types/ui/components/Table/TableTitleField/LinkedTitleIfLinked.types.d.ts +11 -0
  224. package/dist/ui/umd/types/ui/components/index.d.ts +1 -3
  225. package/dist/ui/umd/types/ui/components/tokens.stylex.d.ts +9 -0
  226. package/dist/ui/umd/types/ui/components/types.d.ts +0 -8
  227. package/package.json +30 -33
  228. package/dist/ui/cjs/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  229. package/dist/ui/cjs/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
  230. package/dist/ui/cjs/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
  231. package/dist/ui/cjs/types/ui/components/Page/ListBlock/index.d.ts +0 -2
  232. package/dist/ui/cjs/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  233. package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  234. package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  235. package/dist/ui/cjs/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
  236. package/dist/ui/cjs/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  237. package/dist/ui/cjs/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  238. package/dist/ui/esm/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  239. package/dist/ui/esm/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
  240. package/dist/ui/esm/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
  241. package/dist/ui/esm/types/ui/components/Page/ListBlock/index.d.ts +0 -2
  242. package/dist/ui/esm/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  243. package/dist/ui/esm/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  244. package/dist/ui/esm/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  245. package/dist/ui/esm/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
  246. package/dist/ui/esm/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  247. package/dist/ui/esm/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  248. package/dist/ui/umd/types/ui/components/Page/BulletedListBlocks/BulletedListBlocks.d.ts +0 -4
  249. package/dist/ui/umd/types/ui/components/Page/BulletedListBlocks/index.d.ts +0 -2
  250. package/dist/ui/umd/types/ui/components/Page/ListBlock/ListBlock.d.ts +0 -4
  251. package/dist/ui/umd/types/ui/components/Page/ListBlock/index.d.ts +0 -2
  252. package/dist/ui/umd/types/ui/components/Page/NumberedListBlocks/NumberedListBlocks.d.ts +0 -4
  253. package/dist/ui/umd/types/ui/components/Page/TemplateBlock/TemplateBlock.d.ts +0 -4
  254. package/dist/ui/umd/types/ui/components/Page/TemplateBlock/TemplateBlock.types.d.ts +0 -4
  255. package/dist/ui/umd/types/ui/components/Page/TemplateBlock/index.d.ts +0 -2
  256. package/dist/ui/umd/types/ui/components/Table/TablePropertyNameAndIcon.d.ts +0 -4
  257. package/dist/ui/umd/types/ui/components/Table/TablePropertyNameAndIcon.types.d.ts +0 -5
  258. /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
  259. /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
  260. /package/dist/ui/cjs/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
  261. /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
  262. /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
  263. /package/dist/ui/esm/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
  264. /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.d.ts +0 -0
  265. /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/LinkPreviewMention.types.d.ts +0 -0
  266. /package/dist/ui/umd/types/ui/components/Page/RichText/Mention/{LinkPreviewMemtion → LinkPreviewMention}/index.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import BulletedListBlock from './BulletedListBlock';
2
+ export { BulletedListBlock };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { CodeProps } from './Code.types';
3
- declare const Code: ({ children, language, modules }: CodeProps) => React.JSX.Element;
3
+ declare const Code: ({ children, language }: CodeProps) => React.JSX.Element;
4
4
  export default Code;
@@ -1,7 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { ExternalModules } from '../../../types';
3
2
  export interface CodeProps {
4
3
  language: string;
5
- modules?: ExternalModules;
6
4
  children?: ReactNode;
7
5
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { CodeBlockProps } from './CodeBlock.types';
3
- declare const CodeBlock: ({ block, modules }: CodeBlockProps) => React.JSX.Element;
3
+ declare const CodeBlock: ({ block }: CodeBlockProps) => React.JSX.Element;
4
4
  export default CodeBlock;
@@ -1,6 +1,4 @@
1
1
  import type { CodeBlockObjectResponse } from '../../../../exporter';
2
- import type { ExternalModules } from '../../types';
3
2
  export interface CodeBlockProps {
4
3
  block: CodeBlockObjectResponse;
5
- modules?: ExternalModules;
6
4
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ListBlocksProps } from './ListBlocks.types';
3
+ export declare const ListBlocks: ({ tag, blocks, href, link, query }: ListBlocksProps) => React.JSX.Element;
4
+ export default ListBlocks;
@@ -3,7 +3,7 @@
3
3
  import type { Link } from '../../types';
4
4
  import type { BlockObjectResponse } from '../../../../exporter';
5
5
  import type { ParsedUrlQueryInput } from 'node:querystring';
6
- export interface ListBlockProps {
6
+ export interface ListBlocksProps {
7
7
  tag: keyof JSX.IntrinsicElements;
8
8
  blocks: BlockObjectResponse[];
9
9
  href?: string;
@@ -0,0 +1,2 @@
1
+ import ListBlocks from './ListBlocks';
2
+ export { ListBlocks };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { NumberedListBlockProps } from './NumberedListBlock.types';
3
+ declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) => React.JSX.Element;
4
+ export default NumberedListBlock;
@@ -2,7 +2,7 @@
2
2
  import type { NumberedListItemBlockObjectResponseEx } from '../../../../exporter';
3
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
4
  import type { Link } from '../../types';
5
- export interface NumberedListBlocksProps {
5
+ export interface NumberedListBlockProps {
6
6
  block: NumberedListItemBlockObjectResponseEx;
7
7
  href?: string;
8
8
  link?: Link;
@@ -1,2 +1,2 @@
1
- import NumberedListBlocks from './NumberedListBlocks';
2
- export { NumberedListBlocks };
1
+ import NumberedListBlock from './NumberedListBlock';
2
+ export { NumberedListBlock };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { PageProps } from './Page.types';
3
- export declare const Page: ({ blocks, href, link, query, modules, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
3
+ export declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
4
4
  export default Page;
@@ -1,15 +1,15 @@
1
1
  /// <reference types="node" />
2
2
  import type { ListBlockChildrenResponseEx } from '../../../exporter';
3
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
- import type { Link, ExternalModules } from '../types';
4
+ import type { Link } from '../types';
5
5
  export interface PageProps {
6
6
  blocks: ListBlockChildrenResponseEx;
7
7
  href?: string;
8
8
  link?: Link;
9
9
  query?: ParsedUrlQueryInput;
10
- modules?: ExternalModules;
11
10
  breadcrumb_hrefs?: string[];
12
11
  }
13
12
  export interface ListType {
14
13
  [key: string]: string;
15
14
  }
15
+ export type ULOL = 'ul' | 'ol';
@@ -11,5 +11,5 @@ export declare const blockType: {
11
11
  code: string;
12
12
  quote: string;
13
13
  };
14
- export declare const PageHandler: ({ block, href, link, query, modules, breadcrumb_hrefs }: HandlerProps) => React.JSX.Element;
14
+ export declare const PageHandler: ({ block, href, link, query, breadcrumb_hrefs }: HandlerProps) => React.JSX.Element;
15
15
  export default PageHandler;
@@ -1,12 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import type { BlockObjectResponse } from '../../../exporter';
3
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
- import type { Link, ExternalModules } from '../types';
4
+ import type { Link } from '../types';
5
5
  export interface HandlerProps {
6
6
  block: BlockObjectResponse;
7
7
  href?: string;
8
8
  link?: Link;
9
9
  query?: ParsedUrlQueryInput;
10
- modules?: ExternalModules;
11
10
  breadcrumb_hrefs?: string[];
12
11
  }
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  export interface PageIconProps {
3
- name: 'figma' | 'slack' | 'github' | 'link';
3
+ name: 'figma' | 'slack' | 'github' | 'file' | 'link';
4
+ width?: string;
5
+ height?: string;
4
6
  }
5
- declare const PageIcon: ({ name }: PageIconProps) => React.JSX.Element;
7
+ declare const PageIcon: ({ name, width, height }: PageIconProps) => React.JSX.Element;
6
8
  export default PageIcon;
@@ -1,4 +1,4 @@
1
- import type { PdfBlockObjectResponse } from '../../../../exporter';
1
+ import type { PdfBlockObjectResponseEx } from '../../../../exporter';
2
2
  export interface PdfBlockProps {
3
- block: PdfBlockObjectResponse;
3
+ block: PdfBlockObjectResponseEx;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { SyncedBlockBlockObjectResponse } from '../../../../exporter';
1
+ import { SyncedBlockBlockObjectResponseEx } from '../../../../exporter';
2
2
  export interface SyncedBlockProps {
3
- block: SyncedBlockBlockObjectResponse;
3
+ block: SyncedBlockBlockObjectResponseEx;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { RichTextItemResponse } from '../../../../exporter';
2
+ import type { ParagraphBlockObjectResponseEx, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, DividerBlockObjectResponse } from '../../../../exporter';
3
3
  export interface TextBlockProps {
4
4
  tag: keyof JSX.IntrinsicElements;
5
- block: RichTextItemResponse[] | undefined;
5
+ block: ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | QuoteBlockObjectResponse | DividerBlockObjectResponse;
6
6
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ColumnProps } from './Column.types';
3
+ declare const Column: ({ name, page, href, link, query }: ColumnProps) => React.JSX.Element;
4
+ export default Column;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import type { ParsedUrlQueryInput } from 'node:querystring';
3
+ import type { PageObjectResponseEx } from '../../../exporter';
4
+ import type { Link } from '../types';
5
+ export interface ColumnProps {
6
+ name: string;
7
+ page: PageObjectResponseEx;
8
+ href?: string;
9
+ link?: Link;
10
+ query?: ParsedUrlQueryInput;
11
+ }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TableHandlerProps } from './TableHandler.types';
3
- declare const TableHandler: ({ name, items, path, slug, link, query }: TableHandlerProps) => React.JSX.Element | undefined;
3
+ declare const TableHandler: ({ items, path, slug, link, query }: TableHandlerProps) => React.JSX.Element | undefined;
4
4
  export default TableHandler;
@@ -3,7 +3,6 @@ import type { GetPagePropertyResponse } from '../../../exporter';
3
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
4
  import type { Link } from '../types';
5
5
  export interface TableHandlerProps {
6
- name: string;
7
6
  items: GetPagePropertyResponse | undefined;
8
7
  path?: string;
9
8
  slug?: string;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TableIconProps } from './TableIcon.types';
3
- declare const TableIcon: ({ type }: TableIconProps) => React.JSX.Element;
3
+ declare const TableIcon: ({ type, className }: TableIconProps) => React.JSX.Element;
4
4
  export default TableIcon;
@@ -1,3 +1,4 @@
1
1
  export interface TableIconProps {
2
2
  type: string;
3
+ className?: string;
3
4
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LinkedTagIfLinkedProps } from './LinkedTagIfLinked.types';
3
+ declare const LinkedTagIfLinked: ({ color, pathname, link, query, children }: LinkedTagIfLinkedProps) => React.JSX.Element;
4
+ export default LinkedTagIfLinked;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import type { ReactNode } from 'react';
3
+ import type { ParsedUrlQueryInput } from 'node:querystring';
4
+ import type { Link } from '../../types';
5
+ export interface LinkedTagIfLinkedProps {
6
+ pathname: string;
7
+ color: string;
8
+ link?: Link;
9
+ query?: ParsedUrlQueryInput;
10
+ children?: ReactNode;
11
+ }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TableMultiSelectFieldProps } from './TableMultiSelectField.types';
3
- declare const TableMultiSelectField: ({ payload, path, link }: TableMultiSelectFieldProps) => React.JSX.Element;
3
+ declare const TableMultiSelectField: ({ payload, path, link, query }: TableMultiSelectFieldProps) => React.JSX.Element;
4
4
  export default TableMultiSelectField;
@@ -1,7 +1,10 @@
1
+ /// <reference types="node" />
1
2
  import type { MultiSelectPropertyItemObjectResponse } from '../../../../exporter';
2
3
  import type { Link } from '../../types';
4
+ import type { ParsedUrlQueryInput } from 'node:querystring';
3
5
  export interface TableMultiSelectFieldProps {
4
6
  payload: MultiSelectPropertyItemObjectResponse;
5
7
  path?: string;
6
8
  link?: Link;
9
+ query?: ParsedUrlQueryInput;
7
10
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { LinkedTagIfLinkedProps } from './LinkedTagIfLinked.types';
3
+ declare const LinkedTagIfLinked: ({ pathname, color, link, query, children }: LinkedTagIfLinkedProps) => React.JSX.Element;
4
+ export default LinkedTagIfLinked;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import type { ReactNode } from 'react';
3
+ import type { Link } from '../../types';
4
+ import type { ParsedUrlQueryInput } from 'node:querystring';
5
+ export interface LinkedTagIfLinkedProps {
6
+ pathname: string;
7
+ color: string;
8
+ link?: Link;
9
+ query?: ParsedUrlQueryInput;
10
+ children?: ReactNode;
11
+ }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TableSelectFieldProps } from './TableSelectField.types';
3
- declare const TableSelectField: ({ payload, path, link }: TableSelectFieldProps) => React.JSX.Element;
3
+ declare const TableSelectField: ({ payload, path, link, query }: TableSelectFieldProps) => React.JSX.Element;
4
4
  export default TableSelectField;
@@ -1,7 +1,10 @@
1
+ /// <reference types="node" />
1
2
  import type { SelectPropertyItemObjectResponse } from '../../../../exporter';
2
3
  import type { Link } from '../../types';
4
+ import type { ParsedUrlQueryInput } from 'node:querystring';
3
5
  export interface TableSelectFieldProps {
4
6
  payload: SelectPropertyItemObjectResponse;
5
7
  path?: string;
6
8
  link?: Link;
9
+ query?: ParsedUrlQueryInput;
7
10
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { LinkedTitleIfLinkedProps } from './LinkedTitleIfLinked.types';
3
+ declare const LinkedTitleIfLinked: ({ path, slug, link, query, children }: LinkedTitleIfLinkedProps) => React.JSX.Element;
4
+ export default LinkedTitleIfLinked;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import type { ReactNode } from 'react';
3
+ import type { ParsedUrlQueryInput } from 'node:querystring';
4
+ import type { Link } from '../../types';
5
+ export interface LinkedTitleIfLinkedProps {
6
+ path?: string;
7
+ slug?: string;
8
+ link?: Link;
9
+ query?: ParsedUrlQueryInput;
10
+ children?: ReactNode;
11
+ }
@@ -28,7 +28,7 @@ export * from './Table/TableUrlField';
28
28
  export * from './Page';
29
29
  export * from './Page/BookmarkBlock';
30
30
  export * from './Page/BreadcrumbBlock';
31
- export * from './Page/BulletedListBlocks';
31
+ export * from './Page/BulletedListBlock';
32
32
  export * from './Page/CalloutBlock';
33
33
  export * from './Page/ChildDatabaseBlock';
34
34
  export * from './Page/ChildPageBlock';
@@ -39,14 +39,12 @@ export * from './Page/EquationBlock';
39
39
  export * from './Page/FileBlock';
40
40
  export * from './Page/ImageBlock';
41
41
  export * from './Page/LinkPreviewBlock';
42
- export * from './Page/ListBlock';
43
42
  export * from './Page/NumberedListBlocks';
44
43
  export * from './Page/PageIcon';
45
44
  export * from './Page/PdfBlock';
46
45
  export * from './Page/SyncedBlock';
47
46
  export * from './Page/TableBlock';
48
47
  export * from './Page/TableOfContentsBlock';
49
- export * from './Page/TemplateBlock';
50
48
  export * from './Page/TextBlock';
51
49
  export * from './Page/RichText';
52
50
  export * from './Page/ToDoBlock';
@@ -0,0 +1,9 @@
1
+ export declare const fontFamily: import("@stylexjs/stylex").VarGroup<Readonly<{
2
+ sansserif: string;
3
+ }>, symbol>;
4
+ export declare const color: import("@stylexjs/stylex").VarGroup<Readonly<{
5
+ [x: string]: string;
6
+ }>, symbol>;
7
+ export declare const withDarkColor: import("@stylexjs/stylex").VarGroup<Readonly<{
8
+ [x: string]: string;
9
+ }>, symbol>;
@@ -7,11 +7,3 @@ export interface Link extends React.FC<{
7
7
  href: string | UrlObject;
8
8
  }> {
9
9
  }
10
- export interface ExternalModules {
11
- mermaid?: {
12
- init: (config?: {}, nodes?: string | HTMLElement, callback?: ((id: string) => unknown) | undefined) => Promise<void>;
13
- };
14
- prism?: {
15
- highlightElement: (element: Element, async?: boolean | undefined, callback?: (element: Element) => void | undefined) => void;
16
- };
17
- }
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { ListBlockChildrenResponse, BulletedListItemBlockObjectResponse, NumberedListItemBlockObjectResponse, TableBlockObjectResponse, ToggleBlockObjectResponse, ColumnListBlockObjectResponse, ChildPageBlockObjectResponse, ChildDatabaseBlockObjectResponse, BookmarkBlockObjectResponse, RichTextItemResponse, CalloutBlockObjectResponse, ImageBlockObjectResponse, VideoBlockObjectResponse, EmbedBlockObjectResponse, TextRichTextItemResponse, EquationRichTextItemResponse, BreadcrumbBlockObjectResponse, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, ToDoBlockObjectResponse, TemplateBlockObjectResponse, SyncedBlockBlockObjectResponse, EquationBlockObjectResponse, CodeBlockObjectResponse, DividerBlockObjectResponse, TableOfContentsBlockObjectResponse, ColumnBlockObjectResponse, LinkToPageBlockObjectResponse, TableRowBlockObjectResponse, PdfBlockObjectResponse, FileBlockObjectResponse, AudioBlockObjectResponse, LinkPreviewBlockObjectResponse, UnsupportedBlockObjectResponse, PageObjectResponse, GetPagePropertyResponse, DatabaseObjectResponse, QueryDatabaseResponse, MentionRichTextItemResponse, ParagraphBlockObjectResponse, GetSelfResponse, MultiSelectPropertyItemObjectResponse, NumberPropertyItemObjectResponse, RichTextPropertyItemObjectResponse, TitlePropertyItemObjectResponse, SelectPropertyItemObjectResponse } from '@notionhq/client/build/src/api-endpoints.js';
2
+ import { ListBlockChildrenResponse, BulletedListItemBlockObjectResponse, NumberedListItemBlockObjectResponse, TableBlockObjectResponse, ToggleBlockObjectResponse, ColumnListBlockObjectResponse, ChildPageBlockObjectResponse, ChildDatabaseBlockObjectResponse, BookmarkBlockObjectResponse, RichTextItemResponse, CalloutBlockObjectResponse, ImageBlockObjectResponse, VideoBlockObjectResponse, EmbedBlockObjectResponse, TextRichTextItemResponse, EquationRichTextItemResponse, ParagraphBlockObjectResponse, BreadcrumbBlockObjectResponse, PdfBlockObjectResponse, SyncedBlockBlockObjectResponse, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, ToDoBlockObjectResponse, TemplateBlockObjectResponse, EquationBlockObjectResponse, CodeBlockObjectResponse, DividerBlockObjectResponse, TableOfContentsBlockObjectResponse, ColumnBlockObjectResponse, LinkToPageBlockObjectResponse, TableRowBlockObjectResponse, FileBlockObjectResponse, AudioBlockObjectResponse, LinkPreviewBlockObjectResponse, UnsupportedBlockObjectResponse, PageObjectResponse, GetPagePropertyResponse, DatabaseObjectResponse, QueryDatabaseResponse, MentionRichTextItemResponse, GetSelfResponse, MultiSelectPropertyItemObjectResponse, NumberPropertyItemObjectResponse, RichTextPropertyItemObjectResponse, TitlePropertyItemObjectResponse, SelectPropertyItemObjectResponse } from '@notionhq/client/build/src/api-endpoints.js';
3
3
  import { ParsedUrlQueryInput } from 'node:querystring';
4
4
  import { UrlObject } from 'node:url';
5
5
 
@@ -182,7 +182,30 @@ type Breadcrumb = {
182
182
  type BreadcrumbBlockObjectResponseEx = BreadcrumbBlockObjectResponse & {
183
183
  list: Breadcrumb[];
184
184
  };
185
- type BlockObjectResponse = ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | BulletedListItemBlockObjectResponseEx | NumberedListItemBlockObjectResponseEx | QuoteBlockObjectResponse | ToDoBlockObjectResponse | ToggleBlockObjectResponseEx | TemplateBlockObjectResponse | SyncedBlockBlockObjectResponse | ChildPageBlockObjectResponseEx | ChildDatabaseBlockObjectResponseEx | EquationBlockObjectResponse | CodeBlockObjectResponse | CalloutBlockObjectResponseEx | DividerBlockObjectResponse | BreadcrumbBlockObjectResponseEx | TableOfContentsBlockObjectResponse | ColumnListBlockObjectResponseEx | ColumnBlockObjectResponse | LinkToPageBlockObjectResponse | TableBlockObjectResponseEx | TableRowBlockObjectResponse | EmbedBlockObjectResponseEx | BookmarkBlockObjectResponseEx | ImageBlockObjectResponseEx | VideoBlockObjectResponseEx | PdfBlockObjectResponse | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
185
+ type PdfBlockObjectResponseEx = PdfBlockObjectResponse & {
186
+ pdf: {
187
+ type: "external";
188
+ external: {
189
+ url: TextRequest;
190
+ };
191
+ caption: Array<RichTextItemResponse>;
192
+ src: string;
193
+ size: number;
194
+ } | {
195
+ type: 'file';
196
+ file: {
197
+ url: string;
198
+ expiry_time: string;
199
+ };
200
+ caption: Array<RichTextItemResponse>;
201
+ src: string;
202
+ size: number;
203
+ };
204
+ };
205
+ type SyncedBlockBlockObjectResponseEx = SyncedBlockBlockObjectResponse & {
206
+ children?: ListBlockChildrenResponseEx;
207
+ };
208
+ type BlockObjectResponse = ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | BulletedListItemBlockObjectResponseEx | NumberedListItemBlockObjectResponseEx | QuoteBlockObjectResponse | ToDoBlockObjectResponse | ToggleBlockObjectResponseEx | TemplateBlockObjectResponse | SyncedBlockBlockObjectResponseEx | ChildPageBlockObjectResponseEx | ChildDatabaseBlockObjectResponseEx | EquationBlockObjectResponse | CodeBlockObjectResponse | CalloutBlockObjectResponseEx | DividerBlockObjectResponse | BreadcrumbBlockObjectResponseEx | TableOfContentsBlockObjectResponse | ColumnListBlockObjectResponseEx | ColumnBlockObjectResponse | LinkToPageBlockObjectResponse | TableBlockObjectResponseEx | TableRowBlockObjectResponse | EmbedBlockObjectResponseEx | BookmarkBlockObjectResponseEx | ImageBlockObjectResponseEx | VideoBlockObjectResponseEx | PdfBlockObjectResponseEx | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
186
209
  type ListBlockChildrenResponseEx = ListBlockChildrenResponse & {
187
210
  results: Array<BlockObjectResponse>;
188
211
  children?: ListBlockChildrenResponse;
@@ -297,24 +320,19 @@ type QueryDatabaseResponseEx = QueryDatabaseResponse & {
297
320
  meta: GetDatabaseResponseEx;
298
321
  };
299
322
 
323
+ interface FetchDatabaseRes extends QueryDatabaseResponseEx {
324
+ }
325
+
300
326
  interface Link extends React.FC<{
301
327
  children: string | React.ReactNode;
302
328
  className?: string;
303
329
  href: string | UrlObject;
304
330
  }> {
305
331
  }
306
- interface ExternalModules {
307
- mermaid?: {
308
- init: (config?: {}, nodes?: string | HTMLElement, callback?: ((id: string) => unknown) | undefined) => Promise<void>;
309
- };
310
- prism?: {
311
- highlightElement: (element: Element, async?: boolean | undefined, callback?: (element: Element) => void | undefined) => void;
312
- };
313
- }
314
332
 
315
333
  interface GalleryProps {
316
334
  keys: string[];
317
- db: QueryDatabaseResponseEx;
335
+ db: FetchDatabaseRes;
318
336
  href?: string;
319
337
  link?: Link;
320
338
  query?: ParsedUrlQueryInput;
@@ -332,9 +350,11 @@ interface GalleryCardProps {
332
350
  link?: Link;
333
351
  query?: ParsedUrlQueryInput;
334
352
  preview?: 'cover' | 'content';
353
+ size: 'small' | 'medium' | 'large';
354
+ fit: boolean;
335
355
  }
336
356
 
337
- declare const GalleryCard: ({ keys, page, href, link, query, preview }: GalleryCardProps) => React.JSX.Element;
357
+ declare const GalleryCard: ({ keys, page, href, link, query, preview, size, fit }: GalleryCardProps) => React.JSX.Element;
338
358
 
339
359
  interface GalleryCheckboxFieldProps {
340
360
  payload: boolean;
@@ -352,9 +372,10 @@ interface GalleryMultiSelectFieldProps {
352
372
  payload: MultiSelectPropertyItemObjectResponse;
353
373
  path: string;
354
374
  link?: Link;
375
+ query?: ParsedUrlQueryInput;
355
376
  }
356
377
 
357
- declare const GalleryMultiSelectField: ({ payload, path, link }: GalleryMultiSelectFieldProps) => React.JSX.Element;
378
+ declare const GalleryMultiSelectField: ({ payload, path, link, query }: GalleryMultiSelectFieldProps) => React.JSX.Element;
358
379
 
359
380
  interface GalleryNumberFieldProps {
360
381
  payload: NumberPropertyItemObjectResponse;
@@ -364,9 +385,10 @@ declare const GalleryNumberField: ({ payload }: GalleryNumberFieldProps) => Reac
364
385
 
365
386
  interface GalleryRichTextFieldProps {
366
387
  payload: RichTextPropertyItemObjectResponse;
388
+ size?: 'small' | 'medium' | 'large';
367
389
  }
368
390
 
369
- declare const GalleryRichTextField: ({ payload }: GalleryRichTextFieldProps) => React.JSX.Element;
391
+ declare const GalleryRichTextField: ({ payload, size }: GalleryRichTextFieldProps) => React.JSX.Element;
370
392
 
371
393
  interface GalleryTitleFieldProps {
372
394
  payload: Array<TitlePropertyItemObjectResponse>;
@@ -389,7 +411,7 @@ interface ListProps {
389
411
  children?: ReactNode;
390
412
  }
391
413
 
392
- declare const List: React.FC<ListProps>;
414
+ declare const List: ({ keys, db, href, link, query }: ListProps) => React.JSX.Element;
393
415
 
394
416
  interface ListCheckboxFieldProps {
395
417
  payload: boolean;
@@ -465,17 +487,19 @@ declare const TableDateField: ({ payload }: TableDateFieldProps) => React.JSX.El
465
487
 
466
488
  interface TableIconProps {
467
489
  type: string;
490
+ className?: string;
468
491
  }
469
492
 
470
- declare const TableIcon: ({ type }: TableIconProps) => React.JSX.Element;
493
+ declare const TableIcon: ({ type, className }: TableIconProps) => React.JSX.Element;
471
494
 
472
495
  interface TableMultiSelectFieldProps {
473
496
  payload: MultiSelectPropertyItemObjectResponse;
474
497
  path?: string;
475
498
  link?: Link;
499
+ query?: ParsedUrlQueryInput;
476
500
  }
477
501
 
478
- declare const TableMultiSelectField: ({ payload, path, link }: TableMultiSelectFieldProps) => React.JSX.Element;
502
+ declare const TableMultiSelectField: ({ payload, path, link, query }: TableMultiSelectFieldProps) => React.JSX.Element;
479
503
 
480
504
  interface TableNumberFieldProps {
481
505
  payload: NumberPropertyItemObjectResponse;
@@ -493,9 +517,10 @@ interface TableSelectFieldProps {
493
517
  payload: SelectPropertyItemObjectResponse;
494
518
  path?: string;
495
519
  link?: Link;
520
+ query?: ParsedUrlQueryInput;
496
521
  }
497
522
 
498
- declare const TableSelectField: ({ payload, path, link }: TableSelectFieldProps) => React.JSX.Element;
523
+ declare const TableSelectField: ({ payload, path, link, query }: TableSelectFieldProps) => React.JSX.Element;
499
524
 
500
525
  interface TableTitleFieldProps {
501
526
  payload: Array<TitlePropertyItemObjectResponse>;
@@ -518,11 +543,10 @@ interface PageProps {
518
543
  href?: string;
519
544
  link?: Link;
520
545
  query?: ParsedUrlQueryInput;
521
- modules?: ExternalModules;
522
546
  breadcrumb_hrefs?: string[];
523
547
  }
524
548
 
525
- declare const Page: ({ blocks, href, link, query, modules, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
549
+ declare const Page: ({ blocks, href, link, query, breadcrumb_hrefs }: PageProps) => React.JSX.Element;
526
550
 
527
551
  interface BookmarkBlockProps {
528
552
  block: BookmarkBlockObjectResponseEx;
@@ -539,14 +563,23 @@ interface BreadcrumbBlockProps {
539
563
 
540
564
  declare const BreadcrumbBlock: ({ block, link, hrefs, query }: BreadcrumbBlockProps) => React.JSX.Element;
541
565
 
542
- interface BulletedListBlocksProps {
566
+ interface BreadcrumbsProps {
567
+ list: Breadcrumb[];
568
+ link?: Link;
569
+ hrefs?: string[];
570
+ query?: ParsedUrlQueryInput;
571
+ }
572
+
573
+ declare const Breadcrumbs: ({ list, link, hrefs, query }: BreadcrumbsProps) => React.JSX.Element;
574
+
575
+ interface BulletedListBlockProps {
543
576
  block: BulletedListItemBlockObjectResponseEx;
544
577
  href?: string;
545
578
  link?: Link;
546
579
  query?: ParsedUrlQueryInput;
547
580
  }
548
581
 
549
- declare const BulletedListBlocks: ({ block, href, link, query }: BulletedListBlocksProps) => React.JSX.Element;
582
+ declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBlockProps) => React.JSX.Element;
550
583
 
551
584
  interface CalloutBlockProps {
552
585
  block: CalloutBlockObjectResponseEx;
@@ -574,10 +607,9 @@ declare const ChildPageBlock: ({ block, href, link, query }: ChildPageBlockProps
574
607
 
575
608
  interface CodeBlockProps {
576
609
  block: CodeBlockObjectResponse;
577
- modules?: ExternalModules;
578
610
  }
579
611
 
580
- declare const CodeBlock: ({ block, modules }: CodeBlockProps) => React.JSX.Element;
612
+ declare const CodeBlock: ({ block }: CodeBlockProps) => React.JSX.Element;
581
613
 
582
614
  interface ColumnListBlockProps {
583
615
  block: ColumnListBlockObjectResponseEx;
@@ -618,38 +650,30 @@ type LinkPreviewBlockProps = {
618
650
 
619
651
  declare const LinkPreviewBlock: ({ block }: LinkPreviewBlockProps) => React.JSX.Element;
620
652
 
621
- interface ListBlockProps {
622
- tag: keyof JSX.IntrinsicElements;
623
- blocks: BlockObjectResponse[];
624
- href?: string;
625
- link?: Link;
626
- query?: ParsedUrlQueryInput;
627
- }
628
-
629
- declare const ListBlock: ({ tag, blocks, href, link, query }: ListBlockProps) => React.JSX.Element;
630
-
631
- interface NumberedListBlocksProps {
653
+ interface NumberedListBlockProps {
632
654
  block: NumberedListItemBlockObjectResponseEx;
633
655
  href?: string;
634
656
  link?: Link;
635
657
  query?: ParsedUrlQueryInput;
636
658
  }
637
659
 
638
- declare const NumberedListBlocks: ({ block, href, link, query }: NumberedListBlocksProps) => React.JSX.Element;
660
+ declare const NumberedListBlock: ({ block, href, link, query }: NumberedListBlockProps) => React.JSX.Element;
639
661
 
640
662
  interface PageIconProps {
641
- name: 'figma' | 'slack' | 'github' | 'link';
663
+ name: 'figma' | 'slack' | 'github' | 'file' | 'link';
664
+ width?: string;
665
+ height?: string;
642
666
  }
643
- declare const PageIcon: ({ name }: PageIconProps) => React.JSX.Element;
667
+ declare const PageIcon: ({ name, width, height }: PageIconProps) => React.JSX.Element;
644
668
 
645
669
  interface PdfBlockProps {
646
- block: PdfBlockObjectResponse;
670
+ block: PdfBlockObjectResponseEx;
647
671
  }
648
672
 
649
673
  declare const PdfBlock: ({ block }: PdfBlockProps) => React.JSX.Element;
650
674
 
651
675
  interface SyncedBlockProps {
652
- block: SyncedBlockBlockObjectResponse;
676
+ block: SyncedBlockBlockObjectResponseEx;
653
677
  }
654
678
 
655
679
  declare const SyncedBlock: ({ block }: SyncedBlockProps) => React.JSX.Element;
@@ -666,15 +690,9 @@ interface TableOfContentsBlockProps {
666
690
 
667
691
  declare const TableOfContentsBlock: ({ block }: TableOfContentsBlockProps) => React.JSX.Element;
668
692
 
669
- interface TemplateBlockProps {
670
- block: TemplateBlockObjectResponse;
671
- }
672
-
673
- declare const TemplateBlock: ({ block }: TemplateBlockProps) => React.JSX.Element;
674
-
675
693
  interface TextBlockProps {
676
694
  tag: keyof JSX.IntrinsicElements;
677
- block: RichTextItemResponse[] | undefined;
695
+ block: ParagraphBlockObjectResponseEx | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | QuoteBlockObjectResponse | DividerBlockObjectResponse;
678
696
  }
679
697
 
680
698
  declare const TextBlock: ({ tag, block }: TextBlockProps) => React.JSX.Element;
@@ -716,4 +734,4 @@ declare function UsePagination<T>(pages: T[], perPage: number): {
716
734
  declare function BuildPlainTextByPage(blocks: ListBlockChildrenResponseEx): string;
717
735
  declare function pathBasename(str: string): string;
718
736
 
719
- export { BookmarkBlock, BreadcrumbBlock, BuildPlainTextByPage, BulletedListBlocks, CalloutBlock, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, type ExternalModules, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryTitleField, GalleryUrlField, ImageBlock, type Link, LinkPreviewBlock, List, ListBlock, ListCheckboxField, ListDateField, ListMultiSelectField, ListNumberField, ListRichTextField, ListTitleField, ListUrlField, NumberedListBlocks, Page, PageIcon, PdfBlock, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TemplateBlock, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getLinkPathAndLinkKey, pathBasename, queryToString };
737
+ export { BookmarkBlock, BreadcrumbBlock, Breadcrumbs, BuildPlainTextByPage, BulletedListBlock, CalloutBlock, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryTitleField, GalleryUrlField, ImageBlock, type Link, LinkPreviewBlock, List, ListCheckboxField, ListDateField, ListMultiSelectField, ListNumberField, ListRichTextField, ListTitleField, ListUrlField, NumberedListBlock, Page, PageIcon, PdfBlock, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getLinkPathAndLinkKey, pathBasename, queryToString };