@tulip-systems/core 0.5.2 → 0.5.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 (366) hide show
  1. package/dist/components/common/icons.d.mts +2 -2
  2. package/dist/components/common/status.d.mts +3 -3
  3. package/dist/components/editor/components/content.client.d.mts +2 -2
  4. package/dist/components/editor/components/editor.client.d.mts +2 -2
  5. package/dist/components/editor/components/editor.client.mjs +2 -2
  6. package/dist/components/editor/components/editor.client.mjs.map +1 -1
  7. package/dist/components/editor/components/menu.client.d.mts +3 -3
  8. package/dist/components/editor/components/menu.client.mjs +3 -0
  9. package/dist/components/editor/components/menu.client.mjs.map +1 -1
  10. package/dist/components/editor/extensions/file-handler/extension.d.mts +21 -0
  11. package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -0
  12. package/dist/components/editor/extensions/file-handler/extension.mjs +40 -0
  13. package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -0
  14. package/dist/components/editor/extensions/file-handler/strategy.d.mts +29 -0
  15. package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -0
  16. package/dist/components/editor/extensions/file-handler/strategy.mjs +111 -0
  17. package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -0
  18. package/dist/components/editor/extensions/file-handler/utils.mjs +50 -0
  19. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -0
  20. package/dist/components/editor/extensions/image/extension.d.mts +8 -0
  21. package/dist/components/editor/extensions/image/extension.d.mts.map +1 -0
  22. package/dist/components/editor/extensions/image/extension.mjs +52 -0
  23. package/dist/components/editor/extensions/image/extension.mjs.map +1 -0
  24. package/dist/components/editor/extensions/skeleton/extension.mjs +41 -0
  25. package/dist/components/editor/extensions/skeleton/extension.mjs.map +1 -0
  26. package/dist/components/editor/extensions/skeleton/renderer.mjs +25 -0
  27. package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -0
  28. package/dist/components/editor/lib/constants.d.mts +29 -26
  29. package/dist/components/editor/lib/constants.d.mts.map +1 -1
  30. package/dist/components/editor/lib/constants.mjs +14 -2
  31. package/dist/components/editor/lib/constants.mjs.map +1 -1
  32. package/dist/components/editor/lib/extensions.d.mts +5 -1
  33. package/dist/components/editor/lib/extensions.d.mts.map +1 -1
  34. package/dist/components/editor/lib/extensions.mjs.map +1 -1
  35. package/dist/components/editor/lib/variants.mjs +10 -2
  36. package/dist/components/editor/lib/variants.mjs.map +1 -1
  37. package/dist/components/header/back-button.client.d.mts +2 -2
  38. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  39. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  40. package/dist/components/header/header.client.d.mts +2 -2
  41. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  42. package/dist/components/header/top-bar.client.d.mts +4 -4
  43. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  44. package/dist/components/layouts/admin-layout.d.mts +2 -2
  45. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  46. package/dist/components/layouts/admin-loading.d.mts +2 -2
  47. package/dist/components/layouts/empty-page.d.mts +4 -4
  48. package/dist/components/layouts/list-layout.d.mts +2 -2
  49. package/dist/components/layouts/not-found-page.d.mts +3 -3
  50. package/dist/components/layouts/providers.client.d.mts +2 -2
  51. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  52. package/dist/components/layouts/root-loading.d.mts +2 -2
  53. package/dist/components/layouts/tab-layout.d.mts +2 -2
  54. package/dist/components/lists/data-list.d.mts +5 -5
  55. package/dist/components/lists/data-stack.d.mts +8 -8
  56. package/dist/components/lists/data-stack.d.mts.map +1 -1
  57. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  58. package/dist/components/ui/accordion.d.mts +5 -5
  59. package/dist/components/ui/accordion.d.mts.map +1 -1
  60. package/dist/components/ui/alert-dialog.d.mts +12 -12
  61. package/dist/components/ui/alert-dialog.d.mts.map +1 -1
  62. package/dist/components/ui/alert.d.mts +4 -4
  63. package/dist/components/ui/alert.d.mts.map +1 -1
  64. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  65. package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
  66. package/dist/components/ui/avatar.client.d.mts +4 -4
  67. package/dist/components/ui/badge.d.mts +2 -2
  68. package/dist/components/ui/badge.d.mts.map +1 -1
  69. package/dist/components/ui/breadcrumb.d.mts +8 -8
  70. package/dist/components/ui/breadcrumb.d.mts.map +1 -1
  71. package/dist/components/ui/button.d.mts +2 -2
  72. package/dist/components/ui/button.d.mts.map +1 -1
  73. package/dist/components/ui/calendar.d.mts +3 -3
  74. package/dist/components/ui/calendar.d.mts.map +1 -1
  75. package/dist/components/ui/card.d.mts +7 -7
  76. package/dist/components/ui/card.d.mts.map +1 -1
  77. package/dist/components/ui/carousel.d.mts +6 -6
  78. package/dist/components/ui/carousel.d.mts.map +1 -1
  79. package/dist/components/ui/chart.client.d.mts +5 -5
  80. package/dist/components/ui/checkbox.d.mts +2 -2
  81. package/dist/components/ui/checkbox.d.mts.map +1 -1
  82. package/dist/components/ui/collapsible.client.d.mts +4 -4
  83. package/dist/components/ui/color-picker.client.d.mts +2 -2
  84. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  85. package/dist/components/ui/combobox.client.d.mts +2 -2
  86. package/dist/components/ui/command.d.mts +10 -10
  87. package/dist/components/ui/command.d.mts.map +1 -1
  88. package/dist/components/ui/context-menu.d.mts +16 -16
  89. package/dist/components/ui/context-menu.d.mts.map +1 -1
  90. package/dist/components/ui/date-picker.client.d.mts +2 -2
  91. package/dist/components/ui/dialog.client.d.mts +11 -11
  92. package/dist/components/ui/drawer.client.d.mts +11 -11
  93. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  94. package/dist/components/ui/form.client.d.mts +7 -7
  95. package/dist/components/ui/hover-card.client.d.mts +4 -4
  96. package/dist/components/ui/input-recipient.d.mts +2 -2
  97. package/dist/components/ui/input.d.mts +2 -2
  98. package/dist/components/ui/label.d.mts +2 -2
  99. package/dist/components/ui/navigation-menu.d.mts +9 -9
  100. package/dist/components/ui/pagination.d.mts +8 -8
  101. package/dist/components/ui/popover.d.mts +5 -5
  102. package/dist/components/ui/popover.d.mts.map +1 -1
  103. package/dist/components/ui/progress.client.d.mts +2 -2
  104. package/dist/components/ui/radio-group.d.mts +3 -3
  105. package/dist/components/ui/resizable.client.d.mts +4 -4
  106. package/dist/components/ui/scroll-area.d.mts +3 -3
  107. package/dist/components/ui/select.client.d.mts +11 -11
  108. package/dist/components/ui/separator.d.mts +2 -2
  109. package/dist/components/ui/sheet.client.d.mts +9 -9
  110. package/dist/components/ui/sidebar.client.d.mts +24 -24
  111. package/dist/components/ui/skeleton.d.mts +2 -2
  112. package/dist/components/ui/slider.d.mts +2 -2
  113. package/dist/components/ui/sonner.client.d.mts +2 -2
  114. package/dist/components/ui/switch.d.mts +2 -2
  115. package/dist/components/ui/tabs.d.mts +5 -5
  116. package/dist/components/ui/textarea.d.mts +2 -2
  117. package/dist/components/ui/time-input.client.d.mts +2 -2
  118. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  119. package/dist/components/ui/toggle.d.mts +2 -2
  120. package/dist/components/ui/tooltip.client.d.mts +5 -5
  121. package/dist/components.d.mts +2 -1
  122. package/dist/components.mjs +3 -2
  123. package/dist/data-tables.d.mts +2 -2
  124. package/dist/data-tables.mjs +2 -2
  125. package/dist/inline-edit/client.d.mts +2 -3
  126. package/dist/inline-edit/client.mjs +1 -2
  127. package/dist/lib/client.d.mts +2 -2
  128. package/dist/lib/client.mjs +2 -2
  129. package/dist/lib/hooks/use-action.d.mts +2 -2
  130. package/dist/lib/hooks/use-indicator.d.mts +11 -3
  131. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  132. package/dist/lib/hooks/use-indicator.mjs +19 -8
  133. package/dist/lib/hooks/use-indicator.mjs.map +1 -1
  134. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  135. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  136. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  137. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  138. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  139. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  140. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  141. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  142. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  143. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  144. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  145. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  146. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  147. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  148. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  149. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  150. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  151. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  152. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  153. package/dist/modules/auth/db/schema.d.mts +73 -73
  154. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  155. package/dist/modules/auth/handler/client.client.d.mts +6 -6
  156. package/dist/modules/auth/hooks/use-permission.d.mts +2 -2
  157. package/dist/modules/auth/hooks/use-session.d.mts +4 -4
  158. package/dist/modules/auth/lib/validators.d.mts +2 -2
  159. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  160. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  161. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  162. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  163. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  164. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  165. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  166. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  167. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  168. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  169. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  170. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  171. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  172. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  173. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  174. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  175. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  176. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  177. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  178. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  179. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  180. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  181. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  182. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  183. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  184. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  185. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  186. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  187. package/dist/modules/config/db/helpers.d.mts +5 -5
  188. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  189. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  190. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  191. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  192. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  193. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  194. package/dist/modules/data-tables/components/header.d.mts +4 -4
  195. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  196. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  197. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  198. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  199. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  200. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  201. package/dist/modules/data-tables/components/table.d.mts +7 -7
  202. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  203. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  204. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  205. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  206. package/dist/modules/data-tables/lib/filters/parsers.d.mts +6 -1
  207. package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
  208. package/dist/modules/data-tables/lib/filters/parsers.mjs +6 -1
  209. package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
  210. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  211. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  212. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  213. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  214. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  215. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  216. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  217. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  218. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  219. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  220. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +6 -4
  221. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  222. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +11 -6
  223. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
  224. package/dist/modules/inline-edit/components/combobox.client.d.mts +6 -4
  225. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  226. package/dist/modules/inline-edit/components/combobox.client.mjs +7 -5
  227. package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
  228. package/dist/modules/inline-edit/components/date-input.client.d.mts +5 -3
  229. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  230. package/dist/modules/inline-edit/components/date-input.client.mjs +26 -13
  231. package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
  232. package/dist/modules/inline-edit/components/date-picker.client.d.mts +6 -4
  233. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  234. package/dist/modules/inline-edit/components/date-picker.client.mjs +12 -7
  235. package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
  236. package/dist/modules/inline-edit/components/editor.client.d.mts +6 -4
  237. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  238. package/dist/modules/inline-edit/components/editor.client.mjs +11 -6
  239. package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
  240. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +6 -4
  241. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  242. package/dist/modules/inline-edit/components/input-recipient.client.mjs +11 -6
  243. package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
  244. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +6 -4
  245. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  246. package/dist/modules/inline-edit/components/input-toggle.client.mjs +9 -7
  247. package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
  248. package/dist/modules/inline-edit/components/input.client.d.mts +13 -10
  249. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  250. package/dist/modules/inline-edit/components/input.client.mjs +35 -19
  251. package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
  252. package/dist/modules/inline-edit/components/select.client.d.mts +10 -9
  253. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  254. package/dist/modules/inline-edit/components/select.client.mjs +14 -7
  255. package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
  256. package/dist/modules/inline-edit/components/switch.client.d.mts +5 -3
  257. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  258. package/dist/modules/inline-edit/components/switch.client.mjs +8 -6
  259. package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
  260. package/dist/modules/inline-edit/components/toggle.client.d.mts +6 -4
  261. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  262. package/dist/modules/inline-edit/components/toggle.client.mjs +9 -7
  263. package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
  264. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  265. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  266. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +35 -3
  267. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
  268. package/dist/modules/inline-edit/hooks/use-inline.client.mjs +71 -9
  269. package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
  270. package/dist/modules/inline-edit/lib/variants.d.mts +1 -0
  271. package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
  272. package/dist/modules/inline-edit/lib/variants.mjs +12 -4
  273. package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
  274. package/dist/modules/router/handler/init.server.d.mts +6 -6
  275. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  276. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  277. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  278. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  279. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  280. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  281. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  282. package/dist/modules/storage/components/image-grid.client.mjs +3 -3
  283. package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
  284. package/dist/modules/storage/components/upload-zone-context.client.d.mts +3 -11
  285. package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
  286. package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
  287. package/dist/modules/storage/components/upload-zone.client.d.mts +10 -33
  288. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  289. package/dist/modules/storage/components/upload-zone.client.mjs +19 -93
  290. package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
  291. package/dist/modules/storage/config/filters.d.mts +1 -0
  292. package/dist/modules/storage/config/filters.d.mts.map +1 -1
  293. package/dist/modules/storage/config/filters.mjs +1 -0
  294. package/dist/modules/storage/config/filters.mjs.map +1 -1
  295. package/dist/modules/storage/lib/create-upload.client.d.mts +56 -0
  296. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -0
  297. package/dist/modules/storage/lib/create-upload.client.mjs +98 -0
  298. package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -0
  299. package/dist/modules/storage/lib/helpers.d.mts +1 -1
  300. package/dist/modules/storage/lib/router.server.d.mts +3265 -2345
  301. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  302. package/dist/modules/storage/lib/router.server.mjs +5 -2
  303. package/dist/modules/storage/lib/router.server.mjs.map +1 -1
  304. package/dist/modules/storage/lib/schema.d.mts +124 -90
  305. package/dist/modules/storage/lib/schema.d.mts.map +1 -1
  306. package/dist/modules/storage/lib/schema.mjs +2 -1
  307. package/dist/modules/storage/lib/schema.mjs.map +1 -1
  308. package/dist/modules/storage/lib/service.server.d.mts +31 -42
  309. package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
  310. package/dist/modules/storage/lib/service.server.mjs +5 -5
  311. package/dist/modules/storage/lib/service.server.mjs.map +1 -1
  312. package/dist/modules/storage/lib/validators.d.mts +170 -90
  313. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  314. package/dist/modules/storage/lib/validators.mjs +2 -1
  315. package/dist/modules/storage/lib/validators.mjs.map +1 -1
  316. package/dist/storage/client.d.mts +2 -1
  317. package/dist/storage/client.mjs +2 -8
  318. package/dist/storage.d.mts +2 -2
  319. package/dist/storage.mjs +1 -1
  320. package/package.json +4 -3
  321. package/src/components/editor/components/editor.client.tsx +7 -2
  322. package/src/components/editor/components/menu.client.tsx +26 -0
  323. package/src/components/editor/extensions/file-handler/extension.ts +69 -0
  324. package/src/components/editor/extensions/file-handler/strategy.ts +167 -0
  325. package/src/components/editor/extensions/file-handler/utils.ts +51 -0
  326. package/src/components/editor/extensions/image/extension.ts +57 -0
  327. package/src/components/editor/extensions/skeleton/extension.ts +35 -0
  328. package/src/components/editor/extensions/skeleton/renderer.tsx +14 -0
  329. package/src/components/editor/lib/constants.ts +16 -2
  330. package/src/components/editor/lib/extensions.ts +4 -1
  331. package/src/components/editor/lib/utils.ts +32 -0
  332. package/src/components/editor/lib/variants.ts +72 -1
  333. package/src/components/entry.ts +2 -1
  334. package/src/lib/hooks/use-indicator.tsx +27 -18
  335. package/src/modules/data-tables/lib/filters/parsers.ts +14 -0
  336. package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +21 -12
  337. package/src/modules/inline-edit/components/combobox.client.tsx +13 -6
  338. package/src/modules/inline-edit/components/date-input.client.tsx +29 -13
  339. package/src/modules/inline-edit/components/date-picker.client.tsx +13 -9
  340. package/src/modules/inline-edit/components/editor.client.tsx +14 -14
  341. package/src/modules/inline-edit/components/input-recipient.client.tsx +15 -8
  342. package/src/modules/inline-edit/components/input-toggle.client.tsx +16 -9
  343. package/src/modules/inline-edit/components/input.client.tsx +38 -24
  344. package/src/modules/inline-edit/components/select.client.tsx +16 -9
  345. package/src/modules/inline-edit/components/switch.client.tsx +10 -6
  346. package/src/modules/inline-edit/components/toggle.client.tsx +13 -9
  347. package/src/modules/inline-edit/entry.client.ts +0 -1
  348. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +97 -0
  349. package/src/modules/inline-edit/hooks/use-inline.client.tsx +139 -20
  350. package/src/modules/inline-edit/lib/variants.ts +7 -0
  351. package/src/modules/storage/components/image-grid.client.tsx +2 -2
  352. package/src/modules/storage/components/upload-zone-context.client.tsx +3 -4
  353. package/src/modules/storage/components/upload-zone.client.tsx +17 -116
  354. package/src/modules/storage/config/filters.ts +1 -0
  355. package/src/modules/storage/entry.client.ts +2 -1
  356. package/src/modules/storage/lib/create-upload.client.ts +134 -0
  357. package/src/modules/storage/lib/router.server.ts +1 -0
  358. package/src/modules/storage/lib/schema.ts +1 -0
  359. package/src/modules/storage/lib/service.server.ts +10 -4
  360. package/src/modules/storage/lib/validators.ts +1 -0
  361. package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts +0 -21
  362. package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts.map +0 -1
  363. package/dist/modules/inline-edit/components/deprecated-editor.client.mjs +0 -37
  364. package/dist/modules/inline-edit/components/deprecated-editor.client.mjs.map +0 -1
  365. package/dist/storage/client.mjs.map +0 -1
  366. package/src/modules/inline-edit/components/deprecated-editor.client.tsx +0 -48
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.mjs","names":[],"sources":["../../../../../src/components/editor/extensions/skeleton/renderer.tsx"],"sourcesContent":["\"use client\";\n\nimport { Skeleton } from \"@/components/ui/skeleton\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\n\nexport function SkeletonNodeRenderer(props: { node: any }) {\n const { width, height } = props.node.attrs;\n\n return (\n <NodeViewWrapper as=\"span\" data-skeleton=\"true\">\n <Skeleton className=\"min-h-[500px] w-full\" style={{ width, height }} />\n </NodeViewWrapper>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,qBAAqB,OAAsB;CACzD,MAAM,EAAE,OAAO,WAAW,MAAM,KAAK;AAErC,QACE,oBAAC;EAAgB,IAAG;EAAO,iBAAc;YACvC,oBAAC;GAAS,WAAU;GAAuB,OAAO;IAAE;IAAO;IAAQ;IAAI;GACvD"}
@@ -1,10 +1,11 @@
1
+ import { FileHandlerOptions } from "../extensions/file-handler/extension.mjs";
2
+ import { ImageOptions } from "../extensions/image/extension.mjs";
1
3
  import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
2
4
  import * as _tiptap_extension_bold0 from "@tiptap/extension-bold";
3
5
  import * as _tiptap_extension_hard_break0 from "@tiptap/extension-hard-break";
4
6
  import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
5
7
  import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
6
8
  import * as _tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
7
- import * as _tiptap_extension_image0 from "@tiptap/extension-image";
8
9
  import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
9
10
  import * as _tiptap_extension_link0 from "@tiptap/extension-link";
10
11
  import * as _tiptap_extension_list0 from "@tiptap/extension-list";
@@ -13,7 +14,7 @@ import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
13
14
  import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
14
15
  import * as _tiptap_extension_underline0 from "@tiptap/extension-underline";
15
16
  import * as _tiptap_extensions0 from "@tiptap/extensions";
16
- import * as _tiptap_core11 from "@tiptap/core";
17
+ import * as _tiptap_core12 from "@tiptap/core";
17
18
 
18
19
  //#region src/components/editor/lib/constants.d.ts
19
20
  /**
@@ -23,36 +24,38 @@ declare const EDITOR_EXTENSIONS: {
23
24
  /**
24
25
  * Nodes
25
26
  */
26
- blockquote: _tiptap_core11.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
27
- document: _tiptap_core11.Node<any, any>;
28
- hardBreak: _tiptap_core11.Node<_tiptap_extension_hard_break0.HardBreakOptions, any>;
29
- heading: _tiptap_core11.Node<_tiptap_extension_heading0.HeadingOptions, any>;
30
- horizontalRule: _tiptap_core11.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
31
- listItem: _tiptap_core11.Node<_tiptap_extension_list0.ListItemOptions, any>;
32
- orderedList: _tiptap_core11.Node<_tiptap_extension_list0.OrderedListOptions, any>;
33
- bulletList: _tiptap_core11.Node<_tiptap_extension_list0.BulletListOptions, any>;
34
- paragraph: _tiptap_core11.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
35
- text: _tiptap_core11.Node<any, any>;
36
- image: _tiptap_core11.Node<_tiptap_extension_image0.ImageOptions, any>;
27
+ blockquote: _tiptap_core12.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
28
+ document: _tiptap_core12.Node<any, any>;
29
+ hardBreak: _tiptap_core12.Node<_tiptap_extension_hard_break0.HardBreakOptions, any>;
30
+ heading: _tiptap_core12.Node<_tiptap_extension_heading0.HeadingOptions, any>;
31
+ horizontalRule: _tiptap_core12.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
32
+ listItem: _tiptap_core12.Node<_tiptap_extension_list0.ListItemOptions, any>;
33
+ orderedList: _tiptap_core12.Node<_tiptap_extension_list0.OrderedListOptions, any>;
34
+ bulletList: _tiptap_core12.Node<_tiptap_extension_list0.BulletListOptions, any>;
35
+ paragraph: _tiptap_core12.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
36
+ text: _tiptap_core12.Node<any, any>;
37
+ image: _tiptap_core12.Node<ImageOptions, any>;
38
+ fileHandler: _tiptap_core12.Extension<FileHandlerOptions, any>;
39
+ skeleton: _tiptap_core12.Node<any, any>;
37
40
  /**
38
41
  * Marks
39
42
  */
40
- bold: _tiptap_core11.Mark<_tiptap_extension_bold0.BoldOptions, any>;
41
- italic: _tiptap_core11.Mark<_tiptap_extension_italic0.ItalicOptions, any>;
42
- link: _tiptap_core11.Mark<_tiptap_extension_link0.LinkOptions, any>;
43
- strike: _tiptap_core11.Mark<_tiptap_extension_strike0.StrikeOptions, any>;
44
- underline: _tiptap_core11.Mark<_tiptap_extension_underline0.UnderlineOptions, any>;
45
- highlight: _tiptap_core11.Mark<_tiptap_extension_highlight0.HighlightOptions, any>;
43
+ bold: _tiptap_core12.Mark<_tiptap_extension_bold0.BoldOptions, any>;
44
+ italic: _tiptap_core12.Mark<_tiptap_extension_italic0.ItalicOptions, any>;
45
+ link: _tiptap_core12.Mark<_tiptap_extension_link0.LinkOptions, any>;
46
+ strike: _tiptap_core12.Mark<_tiptap_extension_strike0.StrikeOptions, any>;
47
+ underline: _tiptap_core12.Mark<_tiptap_extension_underline0.UnderlineOptions, any>;
48
+ highlight: _tiptap_core12.Mark<_tiptap_extension_highlight0.HighlightOptions, any>;
46
49
  /**
47
50
  * Extensions
48
51
  */
49
- dropcursor: _tiptap_core11.Extension<_tiptap_extensions0.DropcursorOptions, any>;
50
- gapcursor: _tiptap_core11.Extension<any, any>;
51
- undoRedo: _tiptap_core11.Extension<_tiptap_extensions0.UndoRedoOptions, any>;
52
- listKeymap: _tiptap_core11.Extension<_tiptap_extension_list0.ListKeymapOptions, any>;
53
- trailingNode: _tiptap_core11.Extension<_tiptap_extensions0.TrailingNodeOptions, any>;
54
- textStyle: _tiptap_core11.Mark<_tiptap_extension_text_style0.TextStyleOptions, any>;
55
- color: _tiptap_core11.Extension<_tiptap_extension_text_style0.ColorOptions, any>;
52
+ dropcursor: _tiptap_core12.Extension<_tiptap_extensions0.DropcursorOptions, any>;
53
+ gapcursor: _tiptap_core12.Extension<any, any>;
54
+ undoRedo: _tiptap_core12.Extension<_tiptap_extensions0.UndoRedoOptions, any>;
55
+ listKeymap: _tiptap_core12.Extension<_tiptap_extension_list0.ListKeymapOptions, any>;
56
+ trailingNode: _tiptap_core12.Extension<_tiptap_extensions0.TrailingNodeOptions, any>;
57
+ textStyle: _tiptap_core12.Mark<_tiptap_extension_text_style0.TextStyleOptions, any>;
58
+ color: _tiptap_core12.Extension<_tiptap_extension_text_style0.ColorOptions, any>;
56
59
  };
57
60
  type EditorExtensions = typeof EDITOR_EXTENSIONS;
58
61
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","names":[],"sources":["../../../../src/components/editor/lib/constants.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;cAsBa;;;;kCAkCZ,6BAAA,CAAA,iBAAA;;;;;;;;;;;EAlCY;;;;;;;;;;;;;;;;;;;;KAoCD,gBAAA,UAA0B"}
1
+ {"version":3,"file":"constants.d.mts","names":[],"sources":["../../../../src/components/editor/lib/constants.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAwBa;;;;kCAoCZ,6BAAA,CAAA,iBAAA;;;;;;;;;;;;EApCY,QAAA,qBAoCZ,CAAA,GAAA,EAAA,GAAA,CAAA;EAAA;;;;;;;;;;;;;;;;;;;;KAEW,gBAAA,UAA0B"}
@@ -1,3 +1,6 @@
1
+ import { FileHandler } from "../extensions/file-handler/extension.mjs";
2
+ import { Image } from "../extensions/image/extension.mjs";
3
+ import { Skeleton } from "../extensions/skeleton/extension.mjs";
1
4
  import { createExtensionConfig } from "./extensions.mjs";
2
5
  import Blockquote from "@tiptap/extension-blockquote";
3
6
  import Bold from "@tiptap/extension-bold";
@@ -6,7 +9,6 @@ import HardBreak from "@tiptap/extension-hard-break";
6
9
  import Heading from "@tiptap/extension-heading";
7
10
  import Highlight from "@tiptap/extension-highlight";
8
11
  import HorizontalRule from "@tiptap/extension-horizontal-rule";
9
- import Image from "@tiptap/extension-image";
10
12
  import Italic from "@tiptap/extension-italic";
11
13
  import Link from "@tiptap/extension-link";
12
14
  import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension-list";
@@ -33,6 +35,8 @@ const EDITOR_EXTENSIONS = {
33
35
  paragraph: Paragraph,
34
36
  text: Text,
35
37
  image: Image,
38
+ fileHandler: FileHandler,
39
+ skeleton: Skeleton,
36
40
  bold: Bold,
37
41
  italic: Italic,
38
42
  link: Link,
@@ -69,7 +73,15 @@ const EDITOR_EXTENSIONS_CONFIG = [
69
73
  createExtensionConfig("bulletList"),
70
74
  createExtensionConfig("paragraph"),
71
75
  createExtensionConfig("text"),
72
- createExtensionConfig("image", { allowBase64: false }),
76
+ createExtensionConfig("image", { resize: {
77
+ enabled: true,
78
+ directions: ["left", "right"],
79
+ minHeight: 50,
80
+ minWidth: 50,
81
+ alwaysPreserveAspectRatio: true
82
+ } }),
83
+ createExtensionConfig("fileHandler"),
84
+ createExtensionConfig("skeleton"),
73
85
  createExtensionConfig("bold"),
74
86
  createExtensionConfig("italic"),
75
87
  createExtensionConfig("link"),
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","names":[],"sources":["../../../../src/components/editor/lib/constants.ts"],"sourcesContent":["import Blockquote from \"@tiptap/extension-blockquote\";\nimport Bold from \"@tiptap/extension-bold\";\nimport Document from \"@tiptap/extension-document\";\nimport HardBreak from \"@tiptap/extension-hard-break\";\nimport Heading from \"@tiptap/extension-heading\";\nimport Highlight from \"@tiptap/extension-highlight\";\nimport HorizontalRule from \"@tiptap/extension-horizontal-rule\";\nimport Image from \"@tiptap/extension-image\";\nimport Italic from \"@tiptap/extension-italic\";\nimport Link from \"@tiptap/extension-link\";\nimport { BulletList, ListItem, ListKeymap, OrderedList } from \"@tiptap/extension-list\";\nimport Paragraph from \"@tiptap/extension-paragraph\";\nimport Strike from \"@tiptap/extension-strike\";\nimport Text from \"@tiptap/extension-text\";\nimport { Color, TextStyle } from \"@tiptap/extension-text-style\";\nimport Underline from \"@tiptap/extension-underline\";\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from \"@tiptap/extensions\";\nimport { createExtensionConfig } from \"./extensions\";\n\n/**\n * Editor extensions map\n */\nexport const EDITOR_EXTENSIONS = {\n /**\n * Nodes\n */\n blockquote: Blockquote,\n document: Document,\n hardBreak: HardBreak,\n heading: Heading,\n horizontalRule: HorizontalRule,\n listItem: ListItem,\n orderedList: OrderedList,\n bulletList: BulletList,\n paragraph: Paragraph,\n text: Text,\n image: Image,\n /**\n * Marks\n */\n bold: Bold,\n italic: Italic,\n link: Link,\n strike: Strike,\n underline: Underline,\n highlight: Highlight,\n /**\n * Extensions\n */\n dropcursor: Dropcursor,\n gapcursor: Gapcursor,\n undoRedo: UndoRedo,\n listKeymap: ListKeymap,\n trailingNode: TrailingNode,\n textStyle: TextStyle,\n color: Color,\n};\n\nexport type EditorExtensions = typeof EDITOR_EXTENSIONS;\n\n/**\n * Editor extensions keys\n */\nexport const EDITOR_EXTENSIONS_KEYS = Object.keys(EDITOR_EXTENSIONS);\nexport type EditorExtensionsKeys = keyof typeof EDITOR_EXTENSIONS;\n\n/**\n * Editor extensions values\n */\nexport const EDITOR_EXTENSIONS_VALUES = Object.values(EDITOR_EXTENSIONS);\n\n/**\n * Editor extensions config\n */\nexport const EDITOR_EXTENSIONS_CONFIG = [\n /**\n * Nodes\n */\n createExtensionConfig(\"blockquote\"),\n createExtensionConfig(\"document\"),\n createExtensionConfig(\"hardBreak\"),\n createExtensionConfig(\"heading\"),\n createExtensionConfig(\"horizontalRule\"),\n createExtensionConfig(\"listItem\"),\n createExtensionConfig(\"orderedList\"),\n createExtensionConfig(\"bulletList\"),\n createExtensionConfig(\"paragraph\"),\n createExtensionConfig(\"text\"),\n createExtensionConfig(\"image\", { allowBase64: false }),\n /**\n * Marks\n */\n createExtensionConfig(\"bold\"),\n createExtensionConfig(\"italic\"),\n createExtensionConfig(\"link\"),\n createExtensionConfig(\"strike\"),\n createExtensionConfig(\"underline\"),\n createExtensionConfig(\"highlight\", { multicolor: true }),\n /**\n * Extensions\n */\n createExtensionConfig(\"dropcursor\"),\n createExtensionConfig(\"gapcursor\"),\n createExtensionConfig(\"undoRedo\"),\n createExtensionConfig(\"listKeymap\"),\n createExtensionConfig(\"trailingNode\"),\n createExtensionConfig(\"textStyle\"),\n createExtensionConfig(\"color\"),\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,oBAAoB;CAI/B,YAAY;CACZ,UAAU;CACV,WAAW;CACX,SAAS;CACT,gBAAgB;CAChB,UAAU;CACV,aAAa;CACb,YAAY;CACZ,WAAW;CACX,MAAM;CACN,OAAO;CAIP,MAAM;CACN,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,WAAW;CACX,WAAW;CAIX,YAAY;CACZ,WAAW;CACX,UAAU;CACV,YAAY;CACZ,cAAc;CACd,WAAW;CACX,OAAO;CACR;;;;AAOD,MAAa,yBAAyB,OAAO,KAAK,kBAAkB;;;;AAMpE,MAAa,2BAA2B,OAAO,OAAO,kBAAkB;;;;AAKxE,MAAa,2BAA2B;CAItC,sBAAsB,aAAa;CACnC,sBAAsB,WAAW;CACjC,sBAAsB,YAAY;CAClC,sBAAsB,UAAU;CAChC,sBAAsB,iBAAiB;CACvC,sBAAsB,WAAW;CACjC,sBAAsB,cAAc;CACpC,sBAAsB,aAAa;CACnC,sBAAsB,YAAY;CAClC,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS,EAAE,aAAa,OAAO,CAAC;CAItD,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS;CAC/B,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS;CAC/B,sBAAsB,YAAY;CAClC,sBAAsB,aAAa,EAAE,YAAY,MAAM,CAAC;CAIxD,sBAAsB,aAAa;CACnC,sBAAsB,YAAY;CAClC,sBAAsB,WAAW;CACjC,sBAAsB,aAAa;CACnC,sBAAsB,eAAe;CACrC,sBAAsB,YAAY;CAClC,sBAAsB,QAAQ;CAC/B"}
1
+ {"version":3,"file":"constants.mjs","names":[],"sources":["../../../../src/components/editor/lib/constants.ts"],"sourcesContent":["import Blockquote from \"@tiptap/extension-blockquote\";\nimport Bold from \"@tiptap/extension-bold\";\nimport Document from \"@tiptap/extension-document\";\nimport HardBreak from \"@tiptap/extension-hard-break\";\nimport Heading from \"@tiptap/extension-heading\";\nimport Highlight from \"@tiptap/extension-highlight\";\nimport HorizontalRule from \"@tiptap/extension-horizontal-rule\";\nimport Italic from \"@tiptap/extension-italic\";\nimport Link from \"@tiptap/extension-link\";\nimport { BulletList, ListItem, ListKeymap, OrderedList } from \"@tiptap/extension-list\";\nimport Paragraph from \"@tiptap/extension-paragraph\";\nimport Strike from \"@tiptap/extension-strike\";\nimport Text from \"@tiptap/extension-text\";\nimport { Color, TextStyle } from \"@tiptap/extension-text-style\";\nimport Underline from \"@tiptap/extension-underline\";\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from \"@tiptap/extensions\";\nimport { FileHandler } from \"../extensions/file-handler/extension\";\nimport { Image } from \"../extensions/image/extension\";\nimport { Skeleton } from \"../extensions/skeleton/extension\";\nimport { createExtensionConfig } from \"./extensions\";\n\n/**\n * Editor extensions map\n */\nexport const EDITOR_EXTENSIONS = {\n /**\n * Nodes\n */\n blockquote: Blockquote,\n document: Document,\n hardBreak: HardBreak,\n heading: Heading,\n horizontalRule: HorizontalRule,\n listItem: ListItem,\n orderedList: OrderedList,\n bulletList: BulletList,\n paragraph: Paragraph,\n text: Text,\n image: Image,\n fileHandler: FileHandler,\n skeleton: Skeleton,\n /**\n * Marks\n */\n bold: Bold,\n italic: Italic,\n link: Link,\n strike: Strike,\n underline: Underline,\n highlight: Highlight,\n /**\n * Extensions\n */\n dropcursor: Dropcursor,\n gapcursor: Gapcursor,\n undoRedo: UndoRedo,\n listKeymap: ListKeymap,\n trailingNode: TrailingNode,\n textStyle: TextStyle,\n color: Color,\n};\n\nexport type EditorExtensions = typeof EDITOR_EXTENSIONS;\n\n/**\n * Editor extensions keys\n */\nexport const EDITOR_EXTENSIONS_KEYS = Object.keys(EDITOR_EXTENSIONS);\nexport type EditorExtensionsKeys = keyof typeof EDITOR_EXTENSIONS;\n\n/**\n * Editor extensions values\n */\nexport const EDITOR_EXTENSIONS_VALUES = Object.values(EDITOR_EXTENSIONS);\n\n/**\n * Editor extensions config\n */\nexport const EDITOR_EXTENSIONS_CONFIG = [\n /**\n * Nodes\n */\n createExtensionConfig(\"blockquote\"),\n createExtensionConfig(\"document\"),\n createExtensionConfig(\"hardBreak\"),\n createExtensionConfig(\"heading\"),\n createExtensionConfig(\"horizontalRule\"),\n createExtensionConfig(\"listItem\"),\n createExtensionConfig(\"orderedList\"),\n createExtensionConfig(\"bulletList\"),\n createExtensionConfig(\"paragraph\"),\n createExtensionConfig(\"text\"),\n createExtensionConfig(\"image\", {\n resize: {\n enabled: true,\n directions: [\"left\", \"right\"],\n minHeight: 50,\n minWidth: 50,\n alwaysPreserveAspectRatio: true,\n },\n }),\n createExtensionConfig(\"fileHandler\"),\n createExtensionConfig(\"skeleton\"),\n /**\n * Marks\n */\n createExtensionConfig(\"bold\"),\n createExtensionConfig(\"italic\"),\n createExtensionConfig(\"link\"),\n createExtensionConfig(\"strike\"),\n createExtensionConfig(\"underline\"),\n createExtensionConfig(\"highlight\", { multicolor: true }),\n /**\n * Extensions\n */\n createExtensionConfig(\"dropcursor\"),\n createExtensionConfig(\"gapcursor\"),\n createExtensionConfig(\"undoRedo\"),\n createExtensionConfig(\"listKeymap\"),\n createExtensionConfig(\"trailingNode\"),\n createExtensionConfig(\"textStyle\"),\n createExtensionConfig(\"color\"),\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,oBAAoB;CAI/B,YAAY;CACZ,UAAU;CACV,WAAW;CACX,SAAS;CACT,gBAAgB;CAChB,UAAU;CACV,aAAa;CACb,YAAY;CACZ,WAAW;CACX,MAAM;CACN,OAAO;CACP,aAAa;CACb,UAAU;CAIV,MAAM;CACN,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,WAAW;CACX,WAAW;CAIX,YAAY;CACZ,WAAW;CACX,UAAU;CACV,YAAY;CACZ,cAAc;CACd,WAAW;CACX,OAAO;CACR;;;;AAOD,MAAa,yBAAyB,OAAO,KAAK,kBAAkB;;;;AAMpE,MAAa,2BAA2B,OAAO,OAAO,kBAAkB;;;;AAKxE,MAAa,2BAA2B;CAItC,sBAAsB,aAAa;CACnC,sBAAsB,WAAW;CACjC,sBAAsB,YAAY;CAClC,sBAAsB,UAAU;CAChC,sBAAsB,iBAAiB;CACvC,sBAAsB,WAAW;CACjC,sBAAsB,cAAc;CACpC,sBAAsB,aAAa;CACnC,sBAAsB,YAAY;CAClC,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS,EAC7B,QAAQ;EACN,SAAS;EACT,YAAY,CAAC,QAAQ,QAAQ;EAC7B,WAAW;EACX,UAAU;EACV,2BAA2B;EAC5B,EACF,CAAC;CACF,sBAAsB,cAAc;CACpC,sBAAsB,WAAW;CAIjC,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS;CAC/B,sBAAsB,OAAO;CAC7B,sBAAsB,SAAS;CAC/B,sBAAsB,YAAY;CAClC,sBAAsB,aAAa,EAAE,YAAY,MAAM,CAAC;CAIxD,sBAAsB,aAAa;CACnC,sBAAsB,YAAY;CAClC,sBAAsB,WAAW;CACjC,sBAAsB,aAAa;CACnC,sBAAsB,eAAe;CACrC,sBAAsB,YAAY;CAClC,sBAAsB,QAAQ;CAC/B"}
@@ -1,3 +1,5 @@
1
+ import { FileHandlerOptions } from "../extensions/file-handler/extension.mjs";
2
+ import { ImageOptions } from "../extensions/image/extension.mjs";
1
3
  import { EditorExtensions } from "./constants.mjs";
2
4
  import { BlockquoteOptions } from "@tiptap/extension-blockquote";
3
5
  import { BoldOptions } from "@tiptap/extension-bold";
@@ -5,7 +7,6 @@ import { HardBreakOptions } from "@tiptap/extension-hard-break";
5
7
  import { HeadingOptions } from "@tiptap/extension-heading";
6
8
  import { HighlightOptions } from "@tiptap/extension-highlight";
7
9
  import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
8
- import { ImageOptions } from "@tiptap/extension-image";
9
10
  import { ItalicOptions } from "@tiptap/extension-italic";
10
11
  import { LinkOptions } from "@tiptap/extension-link";
11
12
  import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from "@tiptap/extension-list";
@@ -14,6 +15,7 @@ import { StrikeOptions } from "@tiptap/extension-strike";
14
15
  import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
15
16
  import { UnderlineOptions } from "@tiptap/extension-underline";
16
17
  import { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from "@tiptap/extensions";
18
+ import "@tiptap/core";
17
19
  import "@tiptap/react";
18
20
 
19
21
  //#region src/components/editor/lib/extensions.d.ts
@@ -39,6 +41,8 @@ type EditorExtensionsConfig = {
39
41
  paragraph: Partial<ParagraphOptions> | boolean;
40
42
  text: Partial<TextStyleOptions> | boolean;
41
43
  image: Partial<ImageOptions> | boolean;
44
+ fileHandler: Partial<FileHandlerOptions> | boolean;
45
+ skeleton: boolean;
42
46
  /**
43
47
  * Marks
44
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.mts","names":[],"sources":["../../../../src/components/editor/lib/extensions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmCA;;;;AAKc,KALF,sBAAA,GAKE;EAEO;;;EACV,UAAA,EAJG,OAIH,CAJW,iBAIX,CAAA,GAAA,OAAA;EACe,UAAA,EAJZ,OAIY,CAJJ,iBAII,CAAA,GAAA,OAAA;EAAR,QAAA,EAAA,OAAA;EACE,SAAA,EAHP,OAGO,CAHC,gBAGD,CAAA,GAAA,OAAA;EAAR,OAAA,EAFD,OAEC,CAFO,cAEP,CAAA,GAAA,OAAA;EACW,cAAA,EAFL,OAEK,CAFG,qBAEH,CAAA,GAAA,OAAA;EAAR,QAAA,EADH,OACG,CADK,eACL,CAAA,GAAA,OAAA;EACM,WAAA,EADN,OACM,CADE,kBACF,CAAA,GAAA,OAAA;EAAR,SAAA,EAAA,OAAA,CAAQ,gBAAR,CAAA,GAAA,OAAA;EACG,IAAA,EAAR,OAAQ,CAAA,gBAAA,CAAA,GAAA,OAAA;EAAR,KAAA,EACC,OADD,CACS,YADT,CAAA,GAAA,OAAA;EACS;;;EAIT,IAAA,EAAA,OAAA,CAAQ,WAAR,CAAA,GAAA,OAAA;EACU,MAAA,EAAR,OAAQ,CAAA,aAAA,CAAA,GAAA,OAAA;EAAR,IAAA,EACF,OADE,CACM,WADN,CAAA,GAAA,OAAA;EACM,MAAA,EACN,OADM,CACE,aADF,CAAA,GAAA,OAAA;EAAR,SAAA,EAEK,OAFL,CAEa,gBAFb,CAAA,GAAA,OAAA;EACU,SAAA,EAEL,OAFK,CAEG,gBAFH,CAAA,GAAA,OAAA;EAAR;;;EAEW,UAAA,EAIP,OAJO,CAIC,iBAJD,CAAA,GAAA,OAAA;EAAR,SAAA,EAAA,OAAA;EAIS,QAAA,EAEV,OAFU,CAEF,eAFE,CAAA,GAAA,OAAA;EAAR,UAAA,EAGA,OAHA,CAGQ,iBAHR,CAAA,GAAA,OAAA;EAEM,YAAA,EAEJ,OAFI,CAEI,mBAFJ,CAAA,GAAA,OAAA;EAAR,SAAA,EAGC,OAHD,CAGS,gBAHT,CAAA,GAAA,OAAA;EACU,KAAA,EAGb,OAHa,CAGL,YAHK,CAAA,GAAA,OAAA;CAAR;KA2EF,4BAAA,GAA+B,aAAa"}
1
+ {"version":3,"file":"extensions.d.mts","names":[],"sources":["../../../../src/components/editor/lib/extensions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;AAKsB,KALV,sBAAA,GAKU;EAAR;;;EAGK,UAAA,EAJL,OAIK,CAJG,iBAIH,CAAA,GAAA,OAAA;EAAR,UAAA,EAHG,OAGH,CAHW,iBAGX,CAAA,GAAA,OAAA;EACe,QAAA,EAAA,OAAA;EAAR,SAAA,EAFL,OAEK,CAFG,gBAEH,CAAA,GAAA,OAAA;EACE,OAAA,EAFT,OAES,CAFD,cAEC,CAAA,GAAA,OAAA;EAAR,cAAA,EADM,OACN,CADc,qBACd,CAAA,GAAA,OAAA;EACW,QAAA,EADX,OACW,CADH,eACG,CAAA,GAAA,OAAA;EAAR,WAAA,EAAA,OAAA,CAAQ,kBAAR,CAAA,GAAA,OAAA;EACM,SAAA,EAAR,OAAQ,CAAA,gBAAA,CAAA,GAAA,OAAA;EAAR,IAAA,EACL,OADK,CACG,gBADH,CAAA,GAAA,OAAA;EACG,KAAA,EACP,OADO,CACC,YADD,CAAA,GAAA,OAAA;EAAR,WAAA,EAEO,OAFP,CAEe,kBAFf,CAAA,GAAA,OAAA;EACS,QAAA,EAAA,OAAA;EAAR;;;EAMO,IAAA,EAAR,OAAQ,CAAA,WAAA,CAAA,GAAA,OAAA;EAAR,MAAA,EACE,OADF,CACU,aADV,CAAA,GAAA,OAAA;EACU,IAAA,EACV,OADU,CACF,WADE,CAAA,GAAA,OAAA;EAAR,MAAA,EAEA,OAFA,CAEQ,aAFR,CAAA,GAAA,OAAA;EACM,SAAA,EAEH,OAFG,CAEK,gBAFL,CAAA,GAAA,OAAA;EAAR,SAAA,EAGK,OAHL,CAGa,gBAHb,CAAA,GAAA,OAAA;EACU;;;EACL,UAAA,EAKC,OALD,CAKS,iBALT,CAAA,GAAA,OAAA;EACQ,SAAA,EAAA,OAAA;EAAR,QAAA,EAMD,OANC,CAMO,eANP,CAAA,GAAA,OAAA;EAIS,UAAA,EAGR,OAHQ,CAGA,iBAHA,CAAA,GAAA,OAAA;EAAR,YAAA,EAIE,OAJF,CAIU,mBAJV,CAAA,GAAA,OAAA;EAEM,SAAA,EAGP,OAHO,CAGC,gBAHD,CAAA,GAAA,OAAA;EAAR,KAAA,EAIH,OAJG,CAIK,YAJL,CAAA,GAAA,OAAA;CACU;KA2EV,4BAAA,GAA+B,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.mjs","names":[],"sources":["../../../../src/components/editor/lib/extensions.ts"],"sourcesContent":["import { BlockquoteOptions } from \"@tiptap/extension-blockquote\";\nimport { BoldOptions } from \"@tiptap/extension-bold\";\nimport { HardBreakOptions } from \"@tiptap/extension-hard-break\";\nimport { HeadingOptions } from \"@tiptap/extension-heading\";\nimport { HighlightOptions } from \"@tiptap/extension-highlight\";\nimport { HorizontalRuleOptions } from \"@tiptap/extension-horizontal-rule\";\nimport { ImageOptions } from \"@tiptap/extension-image\";\nimport { ItalicOptions } from \"@tiptap/extension-italic\";\nimport { LinkOptions } from \"@tiptap/extension-link\";\nimport {\n BulletListOptions,\n ListItemOptions,\n ListKeymapOptions,\n OrderedListOptions,\n} from \"@tiptap/extension-list\";\nimport { ParagraphOptions } from \"@tiptap/extension-paragraph\";\nimport { StrikeOptions } from \"@tiptap/extension-strike\";\nimport { ColorOptions, TextStyleOptions } from \"@tiptap/extension-text-style\";\nimport { UnderlineOptions } from \"@tiptap/extension-underline\";\nimport { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from \"@tiptap/extensions\";\nimport { Extension } from \"@tiptap/react\";\nimport deepmerge from \"deepmerge\";\nimport {\n EDITOR_EXTENSIONS,\n EDITOR_EXTENSIONS_CONFIG,\n EDITOR_EXTENSIONS_KEYS,\n EditorExtensions,\n} from \"./constants\";\n\n/**\n * Editor extensions defaults\n */\n/**\n * Editor extensions map\n */\nexport type EditorExtensionsConfig = {\n /**\n * Nodes\n */\n blockquote: Partial<BlockquoteOptions> | boolean;\n bulletList: Partial<BulletListOptions> | boolean;\n document: boolean;\n hardBreak: Partial<HardBreakOptions> | boolean;\n heading: Partial<HeadingOptions> | boolean;\n horizontalRule: Partial<HorizontalRuleOptions> | boolean;\n listItem: Partial<ListItemOptions> | boolean;\n orderedList: Partial<OrderedListOptions> | boolean;\n paragraph: Partial<ParagraphOptions> | boolean;\n text: Partial<TextStyleOptions> | boolean;\n image: Partial<ImageOptions> | boolean;\n /**\n * Marks\n */\n bold: Partial<BoldOptions> | boolean;\n italic: Partial<ItalicOptions> | boolean;\n link: Partial<LinkOptions> | boolean;\n strike: Partial<StrikeOptions> | boolean;\n underline: Partial<UnderlineOptions> | boolean;\n highlight: Partial<HighlightOptions> | boolean;\n /**\n * Extensions\n */\n dropcursor: Partial<DropcursorOptions> | boolean;\n gapcursor: boolean;\n undoRedo: Partial<UndoRedoOptions> | boolean;\n listKeymap: Partial<ListKeymapOptions> | boolean;\n trailingNode: Partial<TrailingNodeOptions> | boolean;\n textStyle: Partial<TextStyleOptions> | boolean;\n color: Partial<ColorOptions> | boolean;\n};\n\n/**\n * Create extension config\n * @param name\n * @param defaultOptions\n * @returns\n */\nexport function createExtensionConfig<TName extends keyof EditorExtensionsConfig>(\n name: TName,\n defaultOptions: Partial<Exclude<EditorExtensionsConfig[TName], boolean>> = {},\n) {\n return {\n name,\n configure: (options: EditorExtensionsConfig[TName]) => {\n // Get extension\n const extension = EDITOR_EXTENSIONS[name];\n\n // If no options or no extension, return undefined\n if (!options || !extension) return undefined;\n\n // If no options are provided, return extension\n if (typeof options === \"boolean\") return extension.configure(defaultOptions);\n\n const extensionOptions = deepmerge(defaultOptions, options as object);\n\n // If no options are provided, return extension else configure\n return extension.configure(extensionOptions);\n },\n };\n}\n\n/**\n * Editor extensions config to extensions\n */\nexport function editorExtensionsConfigToExtensions(extensions?: Partial<EditorExtensionsConfig>) {\n return EDITOR_EXTENSIONS_CONFIG.flatMap(({ name, configure }) => {\n // Get the extension config\n const value = extensions?.[name];\n\n // if no value is provided, return extension\n if (value === undefined) return configure(true) as Extension;\n\n // If value is boolean, return extension\n return configure(value as any) as Extension;\n });\n}\n\n/**\n * Editor extensions config result\n */\nexport function flattenEditorExtensionsConfig(\n extensions?: Partial<EditorExtensionsConfig>,\n): EditorExtensionsConfigResult {\n return EDITOR_EXTENSIONS_KEYS.reduce((acc, key) => {\n const value = extensions?.[key as keyof EditorExtensionsConfig];\n\n if (value === undefined) {\n return {\n ...acc,\n [key]: true,\n };\n }\n\n return {\n ...acc,\n [key]: typeof value === \"boolean\" ? value : true,\n };\n }, {} as EditorExtensionsConfigResult);\n}\n\nexport type EditorExtensionsConfigResult = Record<keyof EditorExtensions, boolean>;\n\n// const { uploadImage } = useUploadEditor();\n// StarterKit,\n// Underline,\n// Link,\n// TextStyle,\n// Color,\n// Highlight.configure({ multicolor: true }),\n// Image.configure({\n// allowBase64: false,\n// }),\n// FileHandler.configure({\n// allowedMimeTypes: [\"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\"],\n// onDrop: (currentEditor, files, pos) => {\n// files.forEach((file) => {\n// const fileReader = new FileReader();\n\n// fileReader.readAsArrayBuffer(file);\n// fileReader.onload = async () => {\n// const response = await uploadImage(file);\n// if (!response) return;\n\n// currentEditor\n// .chain()\n// .insertContentAt(pos, {\n// type: \"image\",\n// attrs: { src: response.url },\n// })\n// .focus()\n// .run();\n// };\n// });\n// },\n// onPaste: (currentEditor, files) => {\n// files.forEach((file) => {\n// const fileReader = new FileReader();\n\n// fileReader.readAsArrayBuffer(file);\n// fileReader.onload = async () => {\n// const response = await uploadImage(file);\n// if (!response) return;\n\n// currentEditor\n// .chain()\n// .insertContentAt(currentEditor.state.selection.anchor, {\n// type: \"image\",\n// attrs: { src: response.url },\n// })\n// .focus()\n// .run();\n// };\n// });\n// },\n// }),\n"],"mappings":";;;;;;;;;;AA6EA,SAAgB,sBACd,MACA,iBAA2E,EAAE,EAC7E;AACA,QAAO;EACL;EACA,YAAY,YAA2C;GAErD,MAAM,YAAY,kBAAkB;AAGpC,OAAI,CAAC,WAAW,CAAC,UAAW,QAAO;AAGnC,OAAI,OAAO,YAAY,UAAW,QAAO,UAAU,UAAU,eAAe;GAE5E,MAAM,mBAAmB,UAAU,gBAAgB,QAAkB;AAGrE,UAAO,UAAU,UAAU,iBAAiB;;EAE/C;;;;;AAMH,SAAgB,mCAAmC,YAA8C;AAC/F,QAAO,yBAAyB,SAAS,EAAE,MAAM,gBAAgB;EAE/D,MAAM,QAAQ,aAAa;AAG3B,MAAI,UAAU,OAAW,QAAO,UAAU,KAAK;AAG/C,SAAO,UAAU,MAAa;GAC9B;;;;;AAMJ,SAAgB,8BACd,YAC8B;AAC9B,QAAO,uBAAuB,QAAQ,KAAK,QAAQ;EACjD,MAAM,QAAQ,aAAa;AAE3B,MAAI,UAAU,OACZ,QAAO;GACL,GAAG;IACF,MAAM;GACR;AAGH,SAAO;GACL,GAAG;IACF,MAAM,OAAO,UAAU,YAAY,QAAQ;GAC7C;IACA,EAAE,CAAiC"}
1
+ {"version":3,"file":"extensions.mjs","names":[],"sources":["../../../../src/components/editor/lib/extensions.ts"],"sourcesContent":["import { BlockquoteOptions } from \"@tiptap/extension-blockquote\";\nimport { BoldOptions } from \"@tiptap/extension-bold\";\nimport { HardBreakOptions } from \"@tiptap/extension-hard-break\";\nimport { HeadingOptions } from \"@tiptap/extension-heading\";\nimport { HighlightOptions } from \"@tiptap/extension-highlight\";\nimport { HorizontalRuleOptions } from \"@tiptap/extension-horizontal-rule\";\nimport { ItalicOptions } from \"@tiptap/extension-italic\";\nimport { LinkOptions } from \"@tiptap/extension-link\";\nimport {\n BulletListOptions,\n ListItemOptions,\n ListKeymapOptions,\n OrderedListOptions,\n} from \"@tiptap/extension-list\";\nimport { ParagraphOptions } from \"@tiptap/extension-paragraph\";\nimport { StrikeOptions } from \"@tiptap/extension-strike\";\nimport { ColorOptions, TextStyleOptions } from \"@tiptap/extension-text-style\";\nimport { UnderlineOptions } from \"@tiptap/extension-underline\";\nimport { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from \"@tiptap/extensions\";\nimport { Extension } from \"@tiptap/react\";\nimport deepmerge from \"deepmerge\";\nimport { FileHandlerOptions } from \"../extensions/file-handler/extension\";\nimport { ImageOptions } from \"../extensions/image/extension\";\nimport {\n EDITOR_EXTENSIONS,\n EDITOR_EXTENSIONS_CONFIG,\n EDITOR_EXTENSIONS_KEYS,\n EditorExtensions,\n} from \"./constants\";\n\n/**\n * Editor extensions defaults\n */\n/**\n * Editor extensions map\n */\nexport type EditorExtensionsConfig = {\n /**\n * Nodes\n */\n blockquote: Partial<BlockquoteOptions> | boolean;\n bulletList: Partial<BulletListOptions> | boolean;\n document: boolean;\n hardBreak: Partial<HardBreakOptions> | boolean;\n heading: Partial<HeadingOptions> | boolean;\n horizontalRule: Partial<HorizontalRuleOptions> | boolean;\n listItem: Partial<ListItemOptions> | boolean;\n orderedList: Partial<OrderedListOptions> | boolean;\n paragraph: Partial<ParagraphOptions> | boolean;\n text: Partial<TextStyleOptions> | boolean;\n image: Partial<ImageOptions> | boolean;\n fileHandler: Partial<FileHandlerOptions> | boolean;\n skeleton: boolean;\n /**\n * Marks\n */\n bold: Partial<BoldOptions> | boolean;\n italic: Partial<ItalicOptions> | boolean;\n link: Partial<LinkOptions> | boolean;\n strike: Partial<StrikeOptions> | boolean;\n underline: Partial<UnderlineOptions> | boolean;\n highlight: Partial<HighlightOptions> | boolean;\n /**\n * Extensions\n */\n dropcursor: Partial<DropcursorOptions> | boolean;\n gapcursor: boolean;\n undoRedo: Partial<UndoRedoOptions> | boolean;\n listKeymap: Partial<ListKeymapOptions> | boolean;\n trailingNode: Partial<TrailingNodeOptions> | boolean;\n textStyle: Partial<TextStyleOptions> | boolean;\n color: Partial<ColorOptions> | boolean;\n};\n\n/**\n * Create extension config\n * @param name\n * @param defaultOptions\n * @returns\n */\nexport function createExtensionConfig<TName extends keyof EditorExtensionsConfig>(\n name: TName,\n defaultOptions: Partial<Exclude<EditorExtensionsConfig[TName], boolean>> = {},\n) {\n return {\n name,\n configure: (options: EditorExtensionsConfig[TName]) => {\n // Get extension\n const extension = EDITOR_EXTENSIONS[name];\n\n // If no options or no extension, return undefined\n if (!options || !extension) return undefined;\n\n // If no options are provided, return extension\n if (typeof options === \"boolean\") return extension.configure(defaultOptions);\n\n const extensionOptions = deepmerge(defaultOptions, options as object);\n\n // If no options are provided, return extension else configure\n return extension.configure(extensionOptions);\n },\n };\n}\n\n/**\n * Editor extensions config to extensions\n */\nexport function editorExtensionsConfigToExtensions(extensions?: Partial<EditorExtensionsConfig>) {\n return EDITOR_EXTENSIONS_CONFIG.flatMap(({ name, configure }) => {\n // Get the extension config\n const value = extensions?.[name];\n\n // if no value is provided, return extension\n if (value === undefined) return configure(true) as Extension;\n\n // If value is boolean, return extension\n return configure(value as any) as Extension;\n });\n}\n\n/**\n * Editor extensions config result\n */\nexport function flattenEditorExtensionsConfig(\n extensions?: Partial<EditorExtensionsConfig>,\n): EditorExtensionsConfigResult {\n return EDITOR_EXTENSIONS_KEYS.reduce((acc, key) => {\n const value = extensions?.[key as keyof EditorExtensionsConfig];\n\n if (value === undefined) {\n return {\n ...acc,\n [key]: true,\n };\n }\n\n return {\n ...acc,\n [key]: typeof value === \"boolean\" ? value : true,\n };\n }, {} as EditorExtensionsConfigResult);\n}\n\nexport type EditorExtensionsConfigResult = Record<keyof EditorExtensions, boolean>;\n\n// const { uploadImage } = useUploadEditor();\n// StarterKit,\n// Underline,\n// Link,\n// TextStyle,\n// Color,\n// Highlight.configure({ multicolor: true }),\n// Image.configure({\n// allowBase64: false,\n// }),\n// FileHandler.configure({\n// allowedMimeTypes: [\"image/png\", \"image/jpeg\", \"image/gif\", \"image/webp\"],\n// onDrop: (currentEditor, files, pos) => {\n// files.forEach((file) => {\n// const fileReader = new FileReader();\n\n// fileReader.readAsArrayBuffer(file);\n// fileReader.onload = async () => {\n// const response = await uploadImage(file);\n// if (!response) return;\n\n// currentEditor\n// .chain()\n// .insertContentAt(pos, {\n// type: \"image\",\n// attrs: { src: response.url },\n// })\n// .focus()\n// .run();\n// };\n// });\n// },\n// onPaste: (currentEditor, files) => {\n// files.forEach((file) => {\n// const fileReader = new FileReader();\n\n// fileReader.readAsArrayBuffer(file);\n// fileReader.onload = async () => {\n// const response = await uploadImage(file);\n// if (!response) return;\n\n// currentEditor\n// .chain()\n// .insertContentAt(currentEditor.state.selection.anchor, {\n// type: \"image\",\n// attrs: { src: response.url },\n// })\n// .focus()\n// .run();\n// };\n// });\n// },\n// }),\n"],"mappings":";;;;;;;;;;AAgFA,SAAgB,sBACd,MACA,iBAA2E,EAAE,EAC7E;AACA,QAAO;EACL;EACA,YAAY,YAA2C;GAErD,MAAM,YAAY,kBAAkB;AAGpC,OAAI,CAAC,WAAW,CAAC,UAAW,QAAO;AAGnC,OAAI,OAAO,YAAY,UAAW,QAAO,UAAU,UAAU,eAAe;GAE5E,MAAM,mBAAmB,UAAU,gBAAgB,QAAkB;AAGrE,UAAO,UAAU,UAAU,iBAAiB;;EAE/C;;;;;AAMH,SAAgB,mCAAmC,YAA8C;AAC/F,QAAO,yBAAyB,SAAS,EAAE,MAAM,gBAAgB;EAE/D,MAAM,QAAQ,aAAa;AAG3B,MAAI,UAAU,OAAW,QAAO,UAAU,KAAK;AAG/C,SAAO,UAAU,MAAa;GAC9B;;;;;AAMJ,SAAgB,8BACd,YAC8B;AAC9B,QAAO,uBAAuB,QAAQ,KAAK,QAAQ;EACjD,MAAM,QAAQ,aAAa;AAE3B,MAAI,UAAU,OACZ,QAAO;GACL,GAAG;IACF,MAAM;GACR;AAGH,SAAO;GACL,GAAG;IACF,MAAM,OAAO,UAAU,YAAY,QAAQ;GAC7C;IACA,EAAE,CAAiC"}
@@ -1,8 +1,16 @@
1
+ import { cn } from "../../../lib/utils/cn.mjs";
1
2
  import { cva } from "class-variance-authority";
2
3
 
3
4
  //#region src/components/editor/lib/variants.ts
4
- const editorProseVariants = cva("prose dark:prose-invert prose-a:text-primary prose-li:marker:text-primary");
5
+ /**
6
+ * Prose variants
7
+ */
8
+ const editorProseVariants = cva(cn("prose dark:prose-invert", "prose-a:text-primary", "prose-headings:scroll-mt-20", "prose-h1:mt-6 prose-h1:mb-3", "prose-h2:mt-6 prose-h2:mb-3", "prose-h3:mt-5 prose-h3:mb-2", "prose-h4:mt-4 prose-h4:mb-2", "prose-ul:my-3 prose-ol:my-3", "prose-ul:pl-6 prose-ol:pl-6", "prose-li:my-1", "prose-li:marker:text-primary", "prose-li:p-0", "prose-img:my-0 prose-img:rounded-lg", "prose-blockquote:my-4 prose-blockquote:py-1", "prose-hr:my-6", "prose-pre:my-4"));
9
+ /**
10
+ * Image variants
11
+ */
12
+ const editorImageVariants = cva(cn("[&_[data-resize-wrapper]]:!inline-block", "[&_[data-resize-wrapper]]:!relative", "[&_[data-resize-wrapper]]:max-w-full", "[&_[data-resize-wrapper]]:overflow-hidden", "[&_[data-resize-handle]]:absolute", "[&_[data-resize-handle]]:z-10", "[&_[data-resize-handle]]:rounded-full", "[&_[data-resize-handle]]:bg-muted/40", "[&_[data-resize-handle]]:w-1.5", "[&_[data-resize-handle]]:cursor-ew-resize", "[&_[data-resize-handle]]:opacity-0", "[&_[data-resize-handle]]:transition-opacity", "[&:hover_[data-resize-handle]]:opacity-100", "[&_[data-resize-state='true']_[data-resize-handle]]:opacity-100", "[&_[data-resize-handle]]:!top-1/2", "[&_[data-resize-handle]]:!bottom-auto", "[&_[data-resize-handle]]:!-translate-y-1/2", "[&_[data-resize-handle]]:!h-1/2", "[&_[data-resize-handle='left']]:!left-2", "[&_[data-resize-handle='right']]:!right-2", "[&_[data-resize-container]:has(img[data-pending='true'])]:[visibility:visible!important]", "[&_[data-resize-container]:has(img[data-pending='true'])]:[pointer-events:auto!important]", "[&_img[data-pending='true']]:bg-primary/10", "[&_img[data-pending='true']]:animate-pulse", "[&_img[data-pending='true']]:rounded-md", "[&_img[data-pending='true']]:opacity-0", "[&_img[data-pending='true']]:min-h-[500px]"));
5
13
 
6
14
  //#endregion
7
- export { editorProseVariants };
15
+ export { editorImageVariants, editorProseVariants };
8
16
  //# sourceMappingURL=variants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"variants.mjs","names":[],"sources":["../../../../src/components/editor/lib/variants.ts"],"sourcesContent":["import { cva } from \"class-variance-authority\";\n\nexport const editorProseVariants = cva(\n \"prose dark:prose-invert prose-a:text-primary prose-li:marker:text-primary\",\n);\n"],"mappings":";;;AAEA,MAAa,sBAAsB,IACjC,4EACD"}
1
+ {"version":3,"file":"variants.mjs","names":[],"sources":["../../../../src/components/editor/lib/variants.ts"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { cva } from \"class-variance-authority\";\n\n/**\n * Prose variants\n */\nexport const editorProseVariants = cva(\n cn(\n \"prose dark:prose-invert\",\n \"prose-a:text-primary\",\n \"prose-headings:scroll-mt-20\",\n \"prose-h1:mt-6 prose-h1:mb-3\",\n \"prose-h2:mt-6 prose-h2:mb-3\",\n \"prose-h3:mt-5 prose-h3:mb-2\",\n \"prose-h4:mt-4 prose-h4:mb-2\",\n \"prose-ul:my-3 prose-ol:my-3\",\n \"prose-ul:pl-6 prose-ol:pl-6\",\n \"prose-li:my-1\",\n \"prose-li:marker:text-primary\",\n \"prose-li:p-0\",\n \"prose-img:my-0 prose-img:rounded-lg\",\n \"prose-blockquote:my-4 prose-blockquote:py-1\",\n \"prose-hr:my-6\",\n \"prose-pre:my-4\",\n ),\n);\n\n/**\n * Image variants\n */\nexport const editorImageVariants = cva(\n cn(\n // wrapper (TipTap sets display:block inline → override with !)\n \"[&_[data-resize-wrapper]]:!inline-block\",\n \"[&_[data-resize-wrapper]]:!relative\",\n \"[&_[data-resize-wrapper]]:max-w-full\",\n \"[&_[data-resize-wrapper]]:overflow-hidden\",\n\n // handle base\n \"[&_[data-resize-handle]]:absolute\",\n \"[&_[data-resize-handle]]:z-10\",\n \"[&_[data-resize-handle]]:rounded-full\",\n \"[&_[data-resize-handle]]:bg-muted/40\",\n \"[&_[data-resize-handle]]:w-1.5\",\n \"[&_[data-resize-handle]]:cursor-ew-resize\",\n \"[&_[data-resize-handle]]:opacity-0\",\n \"[&_[data-resize-handle]]:transition-opacity\",\n\n // show on hover / active\n \"[&:hover_[data-resize-handle]]:opacity-100\",\n \"[&_[data-resize-state='true']_[data-resize-handle]]:opacity-100\",\n\n // ✅ override TipTap inline: top:0; bottom:0;\n \"[&_[data-resize-handle]]:!top-1/2\",\n \"[&_[data-resize-handle]]:!bottom-auto\",\n \"[&_[data-resize-handle]]:!-translate-y-1/2\",\n\n // ✅ half height (also must beat inline)\n \"[&_[data-resize-handle]]:!h-1/2\",\n\n // ✅ spacing from edge (beat inline left:0 / right:0)\n \"[&_[data-resize-handle='left']]:!left-2\",\n \"[&_[data-resize-handle='right']]:!right-2\",\n\n // ✅ override inline visibility:hidden on the resize container while pending\n \"[&_[data-resize-container]:has(img[data-pending='true'])]:[visibility:visible!important]\",\n \"[&_[data-resize-container]:has(img[data-pending='true'])]:[pointer-events:auto!important]\",\n\n // Pending img should behave like a skeleton block (even before wrapper exists)\n \"[&_img[data-pending='true']]:bg-primary/10\",\n \"[&_img[data-pending='true']]:animate-pulse\",\n \"[&_img[data-pending='true']]:rounded-md\",\n \"[&_img[data-pending='true']]:opacity-0\",\n \"[&_img[data-pending='true']]:min-h-[500px]\",\n ),\n);\n"],"mappings":";;;;;;;AAMA,MAAa,sBAAsB,IACjC,GACE,2BACA,wBACA,+BACA,+BACA,+BACA,+BACA,+BACA,+BACA,+BACA,iBACA,gCACA,gBACA,uCACA,+CACA,iBACA,iBACD,CACF;;;;AAKD,MAAa,sBAAsB,IACjC,GAEE,2CACA,uCACA,wCACA,6CAGA,qCACA,iCACA,yCACA,wCACA,kCACA,6CACA,sCACA,+CAGA,8CACA,mEAGA,qCACA,yCACA,8CAGA,mCAGA,2CACA,6CAGA,4FACA,6FAGA,8CACA,8CACA,2CACA,0CACA,6CACD,CACF"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime264 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime263 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/header/back-button.client.d.ts
4
4
  declare function HeaderTopbarBackButton({
5
5
  className,
6
6
  ...props
7
- }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime264.JSX.Element;
7
+ }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime263.JSX.Element;
8
8
  //#endregion
9
9
  export { HeaderTopbarBackButton };
10
10
  //# sourceMappingURL=back-button.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { Path } from "../../modules/config/paths/types.mjs";
2
- import * as react_jsx_runtime265 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime264 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/header/bottom-bar.client.d.ts
@@ -11,7 +11,7 @@ type BottomBarProps = {
11
11
  };
12
12
  declare function BottomBar({
13
13
  children
14
- }: BottomBarProps): react_jsx_runtime265.JSX.Element;
14
+ }: BottomBarProps): react_jsx_runtime264.JSX.Element;
15
15
  /**
16
16
  * Bottombar link component
17
17
  */
@@ -23,7 +23,7 @@ declare function BottomBarLinks({
23
23
  paths,
24
24
  className,
25
25
  ...props
26
- }: BottomBarLinksProps): react_jsx_runtime265.JSX.Element;
26
+ }: BottomBarLinksProps): react_jsx_runtime264.JSX.Element;
27
27
  //#endregion
28
28
  export { BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps };
29
29
  //# sourceMappingURL=bottom-bar.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { BreadcrumbSeparator } from "../ui/breadcrumb.mjs";
2
- import * as react_jsx_runtime267 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime266 from "react/jsx-runtime";
3
3
  import { PropsWithChildren } from "react";
4
4
 
5
5
  //#region src/components/header/breadcrumbs.client.d.ts
@@ -10,26 +10,26 @@ type HeaderBreadcrumb = {
10
10
  type HeaderBreadcrumbProps = {
11
11
  breadcrumbs: HeaderBreadcrumb[];
12
12
  };
13
- declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime267.JSX.Element;
13
+ declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
14
14
  declare const HeaderBreadcrumbSeparator: typeof BreadcrumbSeparator;
15
15
  /**
16
16
  * Dropdown menu
17
17
  */
18
- declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime267.JSX.Element;
18
+ declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
19
19
  declare function HeaderBreadcrumbsDropdownMenuItem(props: {
20
20
  breadcrumb: HeaderBreadcrumb;
21
- }): react_jsx_runtime267.JSX.Element;
21
+ }): react_jsx_runtime266.JSX.Element;
22
22
  /**
23
23
  * Links
24
24
  */
25
25
  declare function HeaderBreadcrumbsLink(props: {
26
26
  breadcrumb: HeaderBreadcrumb;
27
- }): react_jsx_runtime267.JSX.Element;
27
+ }): react_jsx_runtime266.JSX.Element;
28
28
  /**
29
29
  * Lists
30
30
  */
31
- declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime267.JSX.Element;
32
- declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime267.JSX.Element;
31
+ declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
32
+ declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
33
33
  //#endregion
34
34
  export { HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList };
35
35
  //# sourceMappingURL=breadcrumbs.client.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime273 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime272 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
 
4
4
  //#region src/components/header/header.client.d.ts
@@ -6,7 +6,7 @@ declare function Header({
6
6
  children,
7
7
  className,
8
8
  ...props
9
- }: ComponentProps<"header">): react_jsx_runtime273.JSX.Element;
9
+ }: ComponentProps<"header">): react_jsx_runtime272.JSX.Element;
10
10
  //#endregion
11
11
  export { Header };
12
12
  //# sourceMappingURL=header.client.d.mts.map
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime274 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime273 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/header/mobile-nav-switcher.client.d.ts
4
4
  declare function HeaderTopbarMobileNavSwitcher({
5
5
  className,
6
6
  ...props
7
- }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime274.JSX.Element;
7
+ }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime273.JSX.Element;
8
8
  //#endregion
9
9
  export { HeaderTopbarMobileNavSwitcher };
10
10
  //# sourceMappingURL=mobile-nav-switcher.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { HeaderBreadcrumb } from "./breadcrumbs.client.mjs";
2
- import * as react_jsx_runtime275 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime274 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/header/top-bar.client.d.ts
@@ -11,7 +11,7 @@ type TopbarProps = {
11
11
  };
12
12
  declare function Topbar({
13
13
  children
14
- }: TopbarProps): react_jsx_runtime275.JSX.Element;
14
+ }: TopbarProps): react_jsx_runtime274.JSX.Element;
15
15
  /**
16
16
  * Topbar title component
17
17
  */
@@ -26,7 +26,7 @@ declare function TopbarTitle({
26
26
  isDeleted,
27
27
  className,
28
28
  ...props
29
- }: TopbarTitleProps): react_jsx_runtime275.JSX.Element;
29
+ }: TopbarTitleProps): react_jsx_runtime274.JSX.Element;
30
30
  /**
31
31
  * Topbar tools component
32
32
  */
@@ -37,7 +37,7 @@ declare function TopbarTools({
37
37
  children,
38
38
  className,
39
39
  ...props
40
- }: TopbarToolsProps): react_jsx_runtime275.JSX.Element;
40
+ }: TopbarToolsProps): react_jsx_runtime274.JSX.Element;
41
41
  //#endregion
42
42
  export { Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps };
43
43
  //# sourceMappingURL=top-bar.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { ScrollArea } from "../ui/scroll-area.mjs";
2
- import * as react_jsx_runtime278 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime277 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
 
5
5
  //#region src/components/layouts/admin-content.client.d.ts
@@ -7,7 +7,7 @@ declare function AdminContent({
7
7
  children,
8
8
  className,
9
9
  ...props
10
- }: ComponentProps<typeof ScrollArea>): react_jsx_runtime278.JSX.Element;
10
+ }: ComponentProps<typeof ScrollArea>): react_jsx_runtime277.JSX.Element;
11
11
  //#endregion
12
12
  export { AdminContent };
13
13
  //# sourceMappingURL=admin-content.client.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime68 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/admin-layout.d.ts
5
- declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime0.JSX.Element;
5
+ declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime68.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminLayout };
8
8
  //# sourceMappingURL=admin-layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime16 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime90 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/admin-loading.d.ts
5
- declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime16.JSX.Element;
5
+ declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime90.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminLoadingLayout };
8
8
  //# sourceMappingURL=admin-loading.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime91 from "react/jsx-runtime";
2
2
  import { ComponentProps, HTMLAttributes } from "react";
3
3
  import { Route } from "next";
4
4
 
@@ -15,17 +15,17 @@ declare function EmptyPage({
15
15
  className,
16
16
  children,
17
17
  ...props
18
- }: ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
18
+ }: ComponentProps<"div">): react_jsx_runtime91.JSX.Element;
19
19
  declare function EmptyPageTitle({
20
20
  className,
21
21
  children,
22
22
  ...props
23
- }: ComponentProps<"h2">): react_jsx_runtime17.JSX.Element;
23
+ }: ComponentProps<"h2">): react_jsx_runtime91.JSX.Element;
24
24
  declare function EmptyPageDescription({
25
25
  className,
26
26
  children,
27
27
  ...props
28
- }: ComponentProps<"p">): react_jsx_runtime17.JSX.Element;
28
+ }: ComponentProps<"p">): react_jsx_runtime91.JSX.Element;
29
29
  //#endregion
30
30
  export { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle };
31
31
  //# sourceMappingURL=empty-page.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime94 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
 
4
4
  //#region src/components/layouts/list-layout.d.ts
@@ -6,7 +6,7 @@ declare function ListLayout({
6
6
  className,
7
7
  children,
8
8
  ...props
9
- }: ComponentProps<"div">): react_jsx_runtime20.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime94.JSX.Element;
10
10
  //#endregion
11
11
  export { ListLayout };
12
12
  //# sourceMappingURL=list-layout.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime21 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime95 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/not-found-page.d.ts
4
- declare function AdminNotFoundPage(): react_jsx_runtime21.JSX.Element;
5
- declare function NotFoundPage(): react_jsx_runtime21.JSX.Element;
4
+ declare function AdminNotFoundPage(): react_jsx_runtime95.JSX.Element;
5
+ declare function NotFoundPage(): react_jsx_runtime95.JSX.Element;
6
6
  //#endregion
7
7
  export { AdminNotFoundPage, NotFoundPage };
8
8
  //# sourceMappingURL=not-found-page.d.mts.map
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime279 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime278 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/layouts/providers.client.d.ts
5
5
  declare function Providers({
6
6
  children
7
- }: PropsWithChildren): react_jsx_runtime279.JSX.Element;
7
+ }: PropsWithChildren): react_jsx_runtime278.JSX.Element;
8
8
  //#endregion
9
9
  export { Providers };
10
10
  //# sourceMappingURL=providers.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { TulipConfig } from "../../modules/config/lib/config.mjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
3
3
  import { PropsWithChildren } from "react";
4
4
  import "server-cli-only";
5
5
 
@@ -31,7 +31,7 @@ declare const generateRootLayoutMetadata: (config: TulipConfig) => {
31
31
  */
32
32
  declare function RootLayout({
33
33
  children
34
- }: PropsWithChildren): react_jsx_runtime0.JSX.Element;
34
+ }: PropsWithChildren): react_jsx_runtime7.JSX.Element;
35
35
  //#endregion
36
36
  export { RootLayout, generateRootLayoutMetadata };
37
37
  //# sourceMappingURL=root-layout.server.d.mts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime23 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime97 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/layouts/root-loading.d.ts
4
- declare function RootLoading(): react_jsx_runtime23.JSX.Element;
4
+ declare function RootLoading(): react_jsx_runtime97.JSX.Element;
5
5
  //#endregion
6
6
  export { RootLoading };
7
7
  //# sourceMappingURL=root-loading.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { Permission } from "../../modules/auth/lib/permissions.mjs";
2
- import * as react_jsx_runtime24 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime98 from "react/jsx-runtime";
3
3
  import { Route } from "next";
4
4
 
5
5
  //#region src/components/layouts/tab-layout.d.ts
@@ -17,7 +17,7 @@ type TabLayoutProps = {
17
17
  declare function TabLayout({
18
18
  tabs,
19
19
  children
20
- }: TabLayoutProps): react_jsx_runtime24.JSX.Element;
20
+ }: TabLayoutProps): react_jsx_runtime98.JSX.Element;
21
21
  //#endregion
22
22
  export { Tab, TabLayout, TabLayoutProps };
23
23
  //# sourceMappingURL=tab-layout.d.mts.map