@tulip-systems/core 0.5.3 → 0.5.4

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 (290) hide show
  1. package/dist/auth/client.d.mts +3 -3
  2. package/dist/auth/client.mjs +2 -2
  3. package/dist/components/client.d.mts +2 -2
  4. package/dist/components/common/icons.d.mts +2 -2
  5. package/dist/components/common/icons.d.mts.map +1 -1
  6. package/dist/components/common/status.d.mts +3 -3
  7. package/dist/components/common/status.d.mts.map +1 -1
  8. package/dist/components/editor/components/content.client.d.mts +2 -2
  9. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  10. package/dist/components/editor/components/editor.client.d.mts +6 -6
  11. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  12. package/dist/components/editor/components/menu.client.d.mts +3 -3
  13. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  14. package/dist/components/editor/extensions/file-handler/utils.mjs +1 -1
  15. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
  16. package/dist/components/editor/extensions/image/extension.mjs +0 -1
  17. package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
  18. package/dist/components/editor/extensions/skeleton/extension.mjs +1 -1
  19. package/dist/components/editor/lib/constants.d.mts +29 -29
  20. package/dist/components/editor/lib/constants.mjs +3 -3
  21. package/dist/components/editor/lib/extensions.d.mts +3 -3
  22. package/dist/components/editor/lib/helpers.d.mts.map +1 -1
  23. package/dist/components/editor/lib/helpers.mjs +38 -3
  24. package/dist/components/editor/lib/helpers.mjs.map +1 -1
  25. package/dist/components/header/back-button.client.d.mts +2 -2
  26. package/dist/components/header/back-button.client.d.mts.map +1 -1
  27. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  28. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  29. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  30. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  31. package/dist/components/header/header.client.d.mts +2 -2
  32. package/dist/components/header/header.client.d.mts.map +1 -1
  33. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  34. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  35. package/dist/components/header/top-bar.client.d.mts +4 -4
  36. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  37. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  38. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  39. package/dist/components/layouts/admin-layout.d.mts +2 -2
  40. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  41. package/dist/components/layouts/admin-loading.d.mts +2 -2
  42. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  43. package/dist/components/layouts/empty-page.d.mts +4 -4
  44. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  45. package/dist/components/layouts/error-page.d.mts +23 -0
  46. package/dist/components/layouts/error-page.d.mts.map +1 -0
  47. package/dist/components/layouts/error-page.mjs +58 -0
  48. package/dist/components/layouts/error-page.mjs.map +1 -0
  49. package/dist/components/layouts/list-layout.d.mts +2 -2
  50. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  51. package/dist/components/layouts/not-allowed-page.d.mts +22 -0
  52. package/dist/components/layouts/not-allowed-page.d.mts.map +1 -0
  53. package/dist/components/layouts/not-allowed-page.mjs +25 -0
  54. package/dist/components/layouts/not-allowed-page.mjs.map +1 -0
  55. package/dist/components/layouts/not-found-page.d.mts +3 -3
  56. package/dist/components/layouts/not-found-page.d.mts.map +1 -1
  57. package/dist/components/layouts/providers.client.d.mts +2 -2
  58. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  59. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  60. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  61. package/dist/components/layouts/root-loading.d.mts +2 -2
  62. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  63. package/dist/components/layouts/tab-layout.d.mts +2 -2
  64. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  65. package/dist/components/lists/data-list.d.mts +5 -5
  66. package/dist/components/lists/data-list.d.mts.map +1 -1
  67. package/dist/components/lists/data-stack.d.mts +8 -8
  68. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +21 -11
  69. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  70. package/dist/components/navigation/admin-sidebar-paths.client.mjs +7 -5
  71. package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
  72. package/dist/components/ui/accordion.d.mts +5 -5
  73. package/dist/components/ui/alert-dialog.d.mts +12 -12
  74. package/dist/components/ui/alert.d.mts +6 -6
  75. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  76. package/dist/components/ui/avatar.client.d.mts +4 -4
  77. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  78. package/dist/components/ui/badge.d.mts +4 -4
  79. package/dist/components/ui/breadcrumb.d.mts +8 -8
  80. package/dist/components/ui/button.d.mts +5 -5
  81. package/dist/components/ui/calendar.d.mts +3 -3
  82. package/dist/components/ui/card.d.mts +7 -7
  83. package/dist/components/ui/carousel.d.mts +6 -6
  84. package/dist/components/ui/chart.client.d.mts +5 -5
  85. package/dist/components/ui/chart.client.d.mts.map +1 -1
  86. package/dist/components/ui/checkbox.d.mts +2 -2
  87. package/dist/components/ui/collapsible.client.d.mts +4 -4
  88. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  89. package/dist/components/ui/color-picker.client.d.mts +2 -2
  90. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  91. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  92. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  93. package/dist/components/ui/combobox.client.d.mts +2 -2
  94. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  95. package/dist/components/ui/command.d.mts +10 -10
  96. package/dist/components/ui/context-menu.d.mts +16 -16
  97. package/dist/components/ui/date-picker.client.d.mts +2 -2
  98. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  99. package/dist/components/ui/dialog.client.d.mts +11 -11
  100. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  101. package/dist/components/ui/drawer.client.d.mts +11 -11
  102. package/dist/components/ui/drawer.client.d.mts.map +1 -1
  103. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  104. package/dist/components/ui/form.client.d.mts +7 -7
  105. package/dist/components/ui/form.client.d.mts.map +1 -1
  106. package/dist/components/ui/hover-card.client.d.mts +4 -4
  107. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  108. package/dist/components/ui/input-recipient.d.mts +2 -2
  109. package/dist/components/ui/input.d.mts +2 -2
  110. package/dist/components/ui/label.d.mts +2 -2
  111. package/dist/components/ui/navigation-menu.d.mts +11 -11
  112. package/dist/components/ui/pagination.d.mts +8 -8
  113. package/dist/components/ui/popover.d.mts +5 -5
  114. package/dist/components/ui/popover.d.mts.map +1 -1
  115. package/dist/components/ui/progress.client.d.mts +2 -2
  116. package/dist/components/ui/progress.client.d.mts.map +1 -1
  117. package/dist/components/ui/radio-group.d.mts +3 -3
  118. package/dist/components/ui/resizable.client.d.mts +4 -4
  119. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  120. package/dist/components/ui/scroll-area.d.mts +3 -3
  121. package/dist/components/ui/select.client.d.mts +11 -11
  122. package/dist/components/ui/select.client.d.mts.map +1 -1
  123. package/dist/components/ui/separator.d.mts +2 -2
  124. package/dist/components/ui/sheet.client.d.mts +9 -9
  125. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  126. package/dist/components/ui/sidebar.client.d.mts +26 -26
  127. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  128. package/dist/components/ui/skeleton.d.mts +2 -2
  129. package/dist/components/ui/slider.d.mts +2 -2
  130. package/dist/components/ui/sonner.client.d.mts +2 -2
  131. package/dist/components/ui/switch.d.mts +2 -2
  132. package/dist/components/ui/tabs.d.mts +5 -5
  133. package/dist/components/ui/textarea.d.mts +2 -2
  134. package/dist/components/ui/time-input.client.d.mts +2 -2
  135. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  136. package/dist/components/ui/toggle.d.mts +2 -2
  137. package/dist/components/ui/toggle.d.mts.map +1 -1
  138. package/dist/components/ui/tooltip.client.d.mts +5 -5
  139. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  140. package/dist/components/ui/tooltip.client.mjs +1 -1
  141. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  142. package/dist/components.d.mts +3 -1
  143. package/dist/components.mjs +5 -3
  144. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  145. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  146. package/dist/modules/auth/components/allowed.client.d.mts +21 -7
  147. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  148. package/dist/modules/auth/components/allowed.client.mjs +8 -2
  149. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  150. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  151. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  152. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  153. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  154. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  155. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  156. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  157. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  158. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  159. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  160. package/dist/modules/auth/db/schema.d.mts +73 -73
  161. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  162. package/dist/modules/auth/handler/client.client.d.mts +143 -143
  163. package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
  164. package/dist/modules/auth/handler/init.d.mts +131 -131
  165. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  166. package/dist/modules/auth/hooks/use-permission.d.mts +48 -4
  167. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  168. package/dist/modules/auth/hooks/use-permission.mjs +51 -4
  169. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  170. package/dist/modules/auth/hooks/use-session.d.mts +4 -4
  171. package/dist/modules/auth/lib/helpers.server.mjs +1 -1
  172. package/dist/modules/auth/lib/validators.d.mts +2 -2
  173. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  174. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  175. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  176. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  177. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  178. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  179. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  180. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  181. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  182. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  183. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  184. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  185. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  186. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  187. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  188. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  189. package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
  190. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  191. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  192. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  193. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  194. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  195. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  196. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  197. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  198. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  199. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  200. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  201. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  202. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  203. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  204. package/dist/modules/config/db/helpers.d.mts +5 -5
  205. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  206. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  207. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  208. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  209. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  210. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  211. package/dist/modules/data-tables/components/header.d.mts +4 -4
  212. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  213. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  214. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  215. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  216. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  217. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  218. package/dist/modules/data-tables/components/table.d.mts +7 -7
  219. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  220. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  221. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  222. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  223. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  224. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  225. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  226. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  227. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  228. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  229. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  230. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  231. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  232. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  233. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  234. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  235. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  236. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  237. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  238. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  239. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  240. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  241. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  242. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  243. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  244. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  245. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  246. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  247. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  248. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  249. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  250. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  251. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  252. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  253. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  254. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  255. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  256. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  257. package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
  258. package/dist/modules/router/handler/init.server.d.mts +6 -6
  259. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  260. package/dist/modules/router/handler/init.server.mjs +1 -1
  261. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  262. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  263. package/dist/modules/storage/components/dropzone.client.d.mts +4 -4
  264. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  265. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  266. package/dist/modules/storage/components/image-grid.client.mjs +1 -1
  267. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  268. package/dist/modules/storage/lib/router.server.d.mts +2337 -2337
  269. package/dist/modules/storage/lib/router.server.mjs +1 -1
  270. package/dist/modules/storage/lib/schema.mjs +1 -1
  271. package/dist/modules/storage/lib/service.server.d.mts +15 -15
  272. package/dist/modules/storage/lib/service.server.mjs +2 -2
  273. package/dist/modules/storage/lib/validators.d.mts +14 -14
  274. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  275. package/dist/router/server.mjs +1 -1
  276. package/package.json +1 -1
  277. package/src/components/editor/extensions/file-handler/utils.ts +1 -1
  278. package/src/components/editor/extensions/image/extension.ts +0 -2
  279. package/src/components/editor/lib/helpers.ts +39 -3
  280. package/src/components/entry.ts +2 -0
  281. package/src/components/layouts/error-page.tsx +61 -0
  282. package/src/components/layouts/not-allowed-page.tsx +1 -1
  283. package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
  284. package/src/components/ui/tooltip.client.tsx +1 -1
  285. package/src/modules/auth/components/allowed.client.tsx +35 -7
  286. package/src/modules/auth/hooks/use-permission.ts +88 -2
  287. package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
  288. package/dist/modules/auth/lib/utils.mjs +0 -21
  289. package/dist/modules/auth/lib/utils.mjs.map +0 -1
  290. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +0 -97
@@ -1,10 +1,10 @@
1
- import { Allowed } from "../modules/auth/components/allowed.client.mjs";
1
+ import { UsePermissionProps, usePermission, usePermissions } from "../modules/auth/hooks/use-permission.mjs";
2
+ import { Allowed, AllowedProps, AllowedStrategy } from "../modules/auth/components/allowed.client.mjs";
2
3
  import { CreateFirstUserPage } from "../modules/auth/components/create-first-user-page.client.mjs";
3
4
  import { ForgetPasswordPage } from "../modules/auth/components/forget-password-page.client.mjs";
4
5
  import { LoginPage } from "../modules/auth/components/login-page.client.mjs";
5
6
  import { ResetPasswordPage } from "../modules/auth/components/reset-password-page.client.mjs";
6
7
  import { UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger } from "../modules/auth/components/update-password-command.mjs";
7
8
  import { ClientAuth, ClientSession, authClient } from "../modules/auth/handler/client.client.mjs";
8
- import { usePermission } from "../modules/auth/hooks/use-permission.mjs";
9
9
  import { sessionQueryOptions, useSession } from "../modules/auth/hooks/use-session.mjs";
10
- export { Allowed, ClientAuth, ClientSession, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, useSession };
10
+ export { Allowed, AllowedProps, AllowedStrategy, ClientAuth, ClientSession, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger, UsePermissionProps, authClient, sessionQueryOptions, usePermission, usePermissions, useSession };
@@ -5,7 +5,7 @@ import { LoginPage } from "../modules/auth/components/login-page.client.mjs";
5
5
  import { ResetPasswordPage } from "../modules/auth/components/reset-password-page.client.mjs";
6
6
  import { UpdatePasswordCommand, UpdatePasswordCommandTrigger } from "../modules/auth/components/update-password-command.mjs";
7
7
  import { sessionQueryOptions, useSession } from "../modules/auth/hooks/use-session.mjs";
8
- import { usePermission } from "../modules/auth/hooks/use-permission.mjs";
8
+ import { usePermission, usePermissions } from "../modules/auth/hooks/use-permission.mjs";
9
9
  import { Allowed } from "../modules/auth/components/allowed.client.mjs";
10
10
 
11
- export { Allowed, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, useSession };
11
+ export { Allowed, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, usePermissions, useSession };
@@ -11,7 +11,7 @@ import { AdminContent } from "./layouts/admin-content.client.mjs";
11
11
  import { Providers } from "./layouts/providers.client.mjs";
12
12
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.client.mjs";
13
13
  import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./ui/sidebar.client.mjs";
14
- import { Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "./navigation/admin-sidebar-paths.client.mjs";
14
+ import { Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "./navigation/admin-sidebar-paths.client.mjs";
15
15
  import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.client.mjs";
16
16
  import { ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./ui/chart.client.mjs";
17
17
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.client.mjs";
@@ -31,4 +31,4 @@ import { Toaster, toast } from "./ui/sonner.client.mjs";
31
31
  import { TimeInput } from "./ui/time-input.client.mjs";
32
32
  import { TimePickerInput, TimePickerInputProps } from "./ui/time-picker-input.client.mjs";
33
33
  import { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group.client.mjs";
34
- export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, TimeInput, TimePickerInput, TimePickerInputProps, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, toast, useFormField, useSidebar };
34
+ export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, TimeInput, TimePickerInput, TimePickerInputProps, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, toast, useFormField, useSidebar };
@@ -1,5 +1,5 @@
1
1
  import { LucideIcon, LucideProps } from "lucide-react";
2
- import * as react_jsx_runtime83 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime126 from "react/jsx-runtime";
3
3
  import * as react0 from "react";
4
4
 
5
5
  //#region src/components/common/icons.d.ts
@@ -54,7 +54,7 @@ declare const Icons: {
54
54
  home: react0.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react0.RefAttributes<SVGSVGElement>>;
55
55
  mail: react0.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react0.RefAttributes<SVGSVGElement>>;
56
56
  building: react0.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react0.RefAttributes<SVGSVGElement>>;
57
- logo: (props: LucideProps) => react_jsx_runtime83.JSX.Element;
57
+ logo: (props: LucideProps) => react_jsx_runtime126.JSX.Element;
58
58
  };
59
59
  //#endregion
60
60
  export { Icon, Icons };
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":[],"mappings":";;;;;KAsDY,IAAA,GAAO;cAEN;;;EAFD,OAAI,kCAAa,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;EAEhB,WA8GZ,kCAAA,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA5De,gBAAW,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":[],"mappings":";;;;;KAsDY,IAAA,GAAO;cAEN;;;EAFD,OAAI,kCAAa,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;EAEhB,WA8GZ,kCAAA,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA5De,gBAAW,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ConfigWithIcon } from "../../lib/types/config.mjs";
2
- import * as react_jsx_runtime84 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime127 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/common/status.d.ts
5
5
  /**
@@ -43,11 +43,11 @@ type StatusComponentProps<TStatus extends string> = {
43
43
  /**
44
44
  * Status column
45
45
  */
46
- declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime84.JSX.Element;
46
+ declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime127.JSX.Element;
47
47
  /**
48
48
  * Status badge
49
49
  */
50
- declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime84.JSX.Element;
50
+ declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime127.JSX.Element;
51
51
  //#endregion
52
52
  export { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus };
53
53
  //# sourceMappingURL=status.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOa,cAAA,kBACL,EAAA,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAD2D,cAC3D,CAD0E,OAC1E,CAAA,EAAA,EAAA,GADoF,cACpF,CADoF,OACpF,CAAA,EAAA;;;;;;AAQR;AAYgB,iBAZA,UAYoB,CAAA,gBAAA;EACjB,KAAA,EAAA,MAAA;CACT,CAAA,CAAA,MAAA,EAbA,OAaA,EAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAXP,OAWO,GAAA,SAAA;;;AAaV;AAEE;;AAMQ,iBAvBM,oBAuBN,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAAA;EACoB,KAAA,EAvBX,OAuBW;EACpB,SAAA,EAAA,MAAA;CAAO,EAAA,CAAA,EAvBd,MAuBc,CAvBP,OAuBO,EAAA,MAAA,CAAA;AAMjB;;;AAAwF,KAhB5E,0BAgB4E,CAAA,gBAAA,MAAA,CAAA,GAAA;EAAA,MAAA,EAf9E,OAe8E,GAAA,IAAA;AAexF,CAAA;;;;KAxBK,oBAwBmF,CAAA,gBAAA,MAAA,CAAA,GAAA;UAvB9E,eAAe;;YACK;;UACpB;;;;;iBAMM,2CAA2C,qBAAqB,WAAQ,mBAAA,CAAA,GAAA,CAAA;;;;iBAexE,2CAA2C,qBAAqB,WAAQ,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOa,cAAA,kBACL,EAAA,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAD2D,cAC3D,CAD0E,OAC1E,CAAA,EAAA,EAAA,GADoF,cACpF,CADoF,OACpF,CAAA,EAAA;;;;;;AAQR;AAYgB,iBAZA,UAYoB,CAAA,gBAAA;EACjB,KAAA,EAAA,MAAA;CACT,CAAA,CAAA,MAAA,EAbA,OAaA,EAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAXP,OAWO,GAAA,SAAA;;;AAaV;AAEE;;AAMQ,iBAvBM,oBAuBN,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAAA;EACoB,KAAA,EAvBX,OAuBW;EACpB,SAAA,EAAA,MAAA;CAAO,EAAA,CAAA,EAvBd,MAuBc,CAvBP,OAuBO,EAAA,MAAA,CAAA;AAMjB;;;AAAwF,KAhB5E,0BAgB4E,CAAA,gBAAA,MAAA,CAAA,GAAA;EAAA,MAAA,EAf9E,OAe8E,GAAA,IAAA;AAexF,CAAA;;;;KAxBK,oBAwBmF,CAAA,gBAAA,MAAA,CAAA,GAAA;UAvB9E,eAAe;;YACK;;UACpB;;;;;iBAMM,2CAA2C,qBAAqB,WAAQ,oBAAA,CAAA,GAAA,CAAA;;;;iBAexE,2CAA2C,qBAAqB,WAAQ,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime255 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/editor/components/content.client.d.ts
4
- declare function EditorContent(): react_jsx_runtime255.JSX.Element;
4
+ declare function EditorContent(): react_jsx_runtime5.JSX.Element;
5
5
  //#endregion
6
6
  export { EditorContent };
7
7
  //# sourceMappingURL=content.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":[],"mappings":";;;iBAOgB,aAAA,CAAA,GAAa,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":[],"mappings":";;;iBAOgB,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { EditorExtensionsConfig, EditorExtensionsConfigResult } from "../lib/extensions.mjs";
2
2
  import { EditorJSONContent } from "../lib/types.mjs";
3
- import * as react_jsx_runtime260 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
4
4
  import { VariantProps } from "class-variance-authority";
5
- import * as react105 from "react";
5
+ import * as react0 from "react";
6
6
  import { PropsWithChildren } from "react";
7
7
  import { Content, Editor } from "@tiptap/react";
8
- import * as class_variance_authority_types4 from "class-variance-authority/types";
8
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
9
9
 
10
10
  //#region src/components/editor/components/editor.client.d.ts
11
11
  /**
@@ -15,13 +15,13 @@ type EditorContextValue = {
15
15
  editor: Editor;
16
16
  extensions: EditorExtensionsConfigResult;
17
17
  };
18
- declare const EditorContext: react105.Context<EditorContextValue>;
18
+ declare const EditorContext: react0.Context<EditorContextValue>;
19
19
  /**
20
20
  * Editor variants
21
21
  */
22
22
  declare const editorVariants: (props?: ({
23
23
  variant?: "default" | "table" | "preview" | null | undefined;
24
- } & class_variance_authority_types4.ClassProp) | undefined) => string;
24
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
25
25
  /**
26
26
  * Editor context provider
27
27
  */
@@ -42,7 +42,7 @@ declare function Editor$1({
42
42
  variant,
43
43
  className,
44
44
  children
45
- }: EditorProps): react_jsx_runtime260.JSX.Element | null;
45
+ }: EditorProps): react_jsx_runtime6.JSX.Element | null;
46
46
  //#endregion
47
47
  export { Editor$1 as Editor, EditorContext, EditorProps, editorVariants };
48
48
  //# sourceMappingURL=editor.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,QAAA,CAAA,OAkBxB,CAlBwB,kBAkBxB,CAAA;AAKF;;;AAEY,cApBC,cAoBD,EAAA,CAAA,KACK,CADL,EAAA,CAAA;EACa,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;CAAR,GARf,+BAAA,CAAA,SAQe,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;;;AAFE,KADP,WAAA,GAAc,YACP,CAAA,OAD2B,cAC3B,CAAA,GAAjB,iBAAiB,CAAA;EASH,KAAA,CAAA,EARJ,OAQU;EACpB,UAAA,CAAA,EARe,OAQf,CARuB,sBAQvB,CAAA;EACA,QAAA,CAAA,EAAA,CAAA,KAAA,EARqB,iBAQrB,EAAA,GAAA,IAAA;EACA,MAAA,CAAA,EAAA,CAAA,KAAA,EARmB,iBAQnB,EAAA,GAAA,IAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;CACA,CAAA;AACA,iBAPc,QAAA,CAOd;EAAA,KAAA;EAAA,UAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,OAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAEC,WAFD,CAAA,EAEY,oBAAA,CAAA,GAAA,CAAA,OAAA,GAFZ,IAAA"}
1
+ {"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,MAAA,CAAA,OAkBxB,CAlBwB,kBAkBxB,CAAA;AAKF;;;AAEY,cApBC,cAoBD,EAAA,CAAA,KACK,CADL,EAAA,CAAA;EACa,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;CAAR,GARf,+BAAA,CAAA,SAQe,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;;;AAFE,KADP,WAAA,GAAc,YACP,CAAA,OAD2B,cAC3B,CAAA,GAAjB,iBAAiB,CAAA;EASH,KAAA,CAAA,EARJ,OAQU;EACpB,UAAA,CAAA,EARe,OAQf,CARuB,sBAQvB,CAAA;EACA,QAAA,CAAA,EAAA,CAAA,KAAA,EARqB,iBAQrB,EAAA,GAAA,IAAA;EACA,MAAA,CAAA,EAAA,CAAA,KAAA,EARmB,iBAQnB,EAAA,GAAA,IAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;CACA,CAAA;AACA,iBAPc,QAAA,CAOd;EAAA,KAAA;EAAA,UAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,OAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAEC,WAFD,CAAA,EAEY,kBAAA,CAAA,GAAA,CAAA,OAAA,GAFZ,IAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime261 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
  import { BubbleMenu } from "@tiptap/react/menus";
4
4
 
5
5
  //#region src/components/editor/components/menu.client.d.ts
6
- declare function EditorMenuFixed(props: React.ComponentProps<"div">): react_jsx_runtime261.JSX.Element;
7
- declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>): react_jsx_runtime261.JSX.Element;
6
+ declare function EditorMenuFixed(props: React.ComponentProps<"div">): react_jsx_runtime7.JSX.Element;
7
+ declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>): react_jsx_runtime7.JSX.Element;
8
8
  //#endregion
9
9
  export { EditorMenuBubble, EditorMenuFixed };
10
10
  //# sourceMappingURL=menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAoBgB,eAAA,QAAuB,KAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAgBlD,gBAAA,QAAwB,sBAAsB,cAAW,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAoBgB,eAAA,QAAuB,KAAA,CAAM,wBAAqB,kBAAA,CAAA,GAAA,CAAA;iBAgBlD,gBAAA,QAAwB,sBAAsB,cAAW,kBAAA,CAAA,GAAA,CAAA"}
@@ -8,7 +8,7 @@
8
8
  * @example
9
9
  * const imageCounts = collectImageIds(editorDoc);
10
10
  * imageCounts.forEach((count, imageId) => {
11
- * console.log(`Image ${imageId} appears ${count} times`);
11
+ * console.info(`Image ${imageId} appears ${count} times`);
12
12
  * });
13
13
  */
14
14
  function collectImageIds(doc) {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":["removed: string[]","added: string[]"],"sources":["../../../../../src/components/editor/extensions/file-handler/utils.ts"],"sourcesContent":["/**\n * Collects and counts all image node IDs from a document.\n *\n * @param doc - The document node to traverse and analyze\n * @returns A Map where keys are image node IDs and values are their occurrence counts\n *\n * @example\n * const imageCounts = collectImageIds(editorDoc);\n * imageCounts.forEach((count, imageId) => {\n * console.log(`Image ${imageId} appears ${count} times`);\n * });\n */\nexport function collectImageIds(doc: any): Map<string, number> {\n const counts = new Map<string, number>();\n\n doc.descendants((node: any) => {\n if (node.type.name !== \"image\") return;\n\n const id = node.attrs?.nodeId;\n if (!id) return;\n\n counts.set(id, (counts.get(id) ?? 0) + 1);\n });\n\n return counts;\n}\n\n/**\n * Compares two maps of string keys to numeric values and identifies which keys have been removed or restored.\n * @param before - A Map containing the previous state of string keys with their associated numeric values\n * @param after - A Map containing the current state of string keys with their associated numeric values\n * @returns An object containing two arrays:\n * - `removed`: Array of keys where the numeric value decreased (or was deleted)\n * - `restored`: Array of keys where the numeric value increased\n */\nexport function diffIds(before: Map<string, number>, after: Map<string, number>) {\n const removed: string[] = [];\n const added: string[] = [];\n\n const keys = new Set([...before.keys(), ...after.keys()]);\n\n for (const key of keys) {\n const b = before.get(key) ?? 0;\n const a = after.get(key) ?? 0;\n\n if (a < b) removed.push(key);\n if (a > b) added.push(key);\n }\n\n return { removed, added };\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,gBAAgB,KAA+B;CAC7D,MAAM,yBAAS,IAAI,KAAqB;AAExC,KAAI,aAAa,SAAc;AAC7B,MAAI,KAAK,KAAK,SAAS,QAAS;EAEhC,MAAM,KAAK,KAAK,OAAO;AACvB,MAAI,CAAC,GAAI;AAET,SAAO,IAAI,KAAK,OAAO,IAAI,GAAG,IAAI,KAAK,EAAE;GACzC;AAEF,QAAO;;;;;;;;;;AAWT,SAAgB,QAAQ,QAA6B,OAA4B;CAC/E,MAAMA,UAAoB,EAAE;CAC5B,MAAMC,QAAkB,EAAE;CAE1B,MAAM,OAAO,IAAI,IAAI,CAAC,GAAG,OAAO,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,CAAC;AAEzD,MAAK,MAAM,OAAO,MAAM;EACtB,MAAM,IAAI,OAAO,IAAI,IAAI,IAAI;EAC7B,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI;AAE5B,MAAI,IAAI,EAAG,SAAQ,KAAK,IAAI;AAC5B,MAAI,IAAI,EAAG,OAAM,KAAK,IAAI;;AAG5B,QAAO;EAAE;EAAS;EAAO"}
1
+ {"version":3,"file":"utils.mjs","names":["removed: string[]","added: string[]"],"sources":["../../../../../src/components/editor/extensions/file-handler/utils.ts"],"sourcesContent":["/**\n * Collects and counts all image node IDs from a document.\n *\n * @param doc - The document node to traverse and analyze\n * @returns A Map where keys are image node IDs and values are their occurrence counts\n *\n * @example\n * const imageCounts = collectImageIds(editorDoc);\n * imageCounts.forEach((count, imageId) => {\n * console.info(`Image ${imageId} appears ${count} times`);\n * });\n */\nexport function collectImageIds(doc: any): Map<string, number> {\n const counts = new Map<string, number>();\n\n doc.descendants((node: any) => {\n if (node.type.name !== \"image\") return;\n\n const id = node.attrs?.nodeId;\n if (!id) return;\n\n counts.set(id, (counts.get(id) ?? 0) + 1);\n });\n\n return counts;\n}\n\n/**\n * Compares two maps of string keys to numeric values and identifies which keys have been removed or restored.\n * @param before - A Map containing the previous state of string keys with their associated numeric values\n * @param after - A Map containing the current state of string keys with their associated numeric values\n * @returns An object containing two arrays:\n * - `removed`: Array of keys where the numeric value decreased (or was deleted)\n * - `restored`: Array of keys where the numeric value increased\n */\nexport function diffIds(before: Map<string, number>, after: Map<string, number>) {\n const removed: string[] = [];\n const added: string[] = [];\n\n const keys = new Set([...before.keys(), ...after.keys()]);\n\n for (const key of keys) {\n const b = before.get(key) ?? 0;\n const a = after.get(key) ?? 0;\n\n if (a < b) removed.push(key);\n if (a > b) added.push(key);\n }\n\n return { removed, added };\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,gBAAgB,KAA+B;CAC7D,MAAM,yBAAS,IAAI,KAAqB;AAExC,KAAI,aAAa,SAAc;AAC7B,MAAI,KAAK,KAAK,SAAS,QAAS;EAEhC,MAAM,KAAK,KAAK,OAAO;AACvB,MAAI,CAAC,GAAI;AAET,SAAO,IAAI,KAAK,OAAO,IAAI,GAAG,IAAI,KAAK,EAAE;GACzC;AAEF,QAAO;;;;;;;;;;AAWT,SAAgB,QAAQ,QAA6B,OAA4B;CAC/E,MAAMA,UAAoB,EAAE;CAC5B,MAAMC,QAAkB,EAAE;CAE1B,MAAM,OAAO,IAAI,IAAI,CAAC,GAAG,OAAO,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,CAAC;AAEzD,MAAK,MAAM,OAAO,MAAM;EACtB,MAAM,IAAI,OAAO,IAAI,IAAI,IAAI;EAC7B,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI;AAE5B,MAAI,IAAI,EAAG,SAAQ,KAAK,IAAI;AAC5B,MAAI,IAAI,EAAG,OAAM,KAAK,IAAI;;AAG5B,QAAO;EAAE;EAAS;EAAO"}
@@ -36,7 +36,6 @@ const Image$1 = Image.extend({
36
36
  },
37
37
  renderHTML({ HTMLAttributes }) {
38
38
  const { src: _, ...attrs } = HTMLAttributes;
39
- console.log("attrs", attrs);
40
39
  const nodeId = attrs.nodeId;
41
40
  const isPending = Boolean(attrs.isPending);
42
41
  const src = nodeId && !isPending ? getFileUrl(nodeId) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"extension.mjs","names":["Image","TiptapImage"],"sources":["../../../../../src/components/editor/extensions/image/extension.ts"],"sourcesContent":["\"use client\";\n\nimport { getFileUrl } from \"@/modules/storage/lib/helpers\";\nimport { Image as TiptapImage, ImageOptions as TiptapImageOptions } from \"@tiptap/extension-image\";\n\nexport interface ImageOptions extends TiptapImageOptions {}\n\nexport const Image = TiptapImage.extend<ImageOptions>({\n atom: true,\n addAttributes() {\n return {\n ...this.parent?.(),\n // node id\n nodeId: {\n default: null,\n parseHTML: (el) => el.getAttribute(\"data-node-id\"),\n renderHTML: (attrs) => {\n if (!attrs.nodeId) return {};\n return {\n \"data-node-id\": attrs.nodeId,\n ...(attrs.nodeId && !attrs.isPending ? { src: getFileUrl(attrs.nodeId) } : {}),\n };\n },\n },\n\n // semantics\n alt: { default: null },\n title: { default: null },\n\n // layout stability\n width: { default: null },\n height: { default: null },\n\n // upload UX\n isPending: {\n default: false,\n renderHTML: (attrs) => (attrs.isPending ? { \"data-pending\": \"true\" } : {}),\n },\n fileName: { default: null },\n };\n },\n parseHTML() {\n return [{ tag: \"img[data-node-id]\" }];\n },\n renderHTML({ HTMLAttributes }) {\n const { src: _, ...attrs } = HTMLAttributes;\n\n console.log(\"attrs\", attrs);\n\n const nodeId = attrs.nodeId as string | null;\n const isPending = Boolean(attrs.isPending);\n\n const src = nodeId && !isPending ? getFileUrl(nodeId) : null;\n\n return [\"img\", { ...attrs, ...(src ? { src } : {}) }];\n },\n});\n"],"mappings":";;;;;;AAOA,MAAaA,UAAQC,MAAY,OAAqB;CACpD,MAAM;CACN,gBAAgB;AACd,SAAO;GACL,GAAG,KAAK,UAAU;GAElB,QAAQ;IACN,SAAS;IACT,YAAY,OAAO,GAAG,aAAa,eAAe;IAClD,aAAa,UAAU;AACrB,SAAI,CAAC,MAAM,OAAQ,QAAO,EAAE;AAC5B,YAAO;MACL,gBAAgB,MAAM;MACtB,GAAI,MAAM,UAAU,CAAC,MAAM,YAAY,EAAE,KAAK,WAAW,MAAM,OAAO,EAAE,GAAG,EAAE;MAC9E;;IAEJ;GAGD,KAAK,EAAE,SAAS,MAAM;GACtB,OAAO,EAAE,SAAS,MAAM;GAGxB,OAAO,EAAE,SAAS,MAAM;GACxB,QAAQ,EAAE,SAAS,MAAM;GAGzB,WAAW;IACT,SAAS;IACT,aAAa,UAAW,MAAM,YAAY,EAAE,gBAAgB,QAAQ,GAAG,EAAE;IAC1E;GACD,UAAU,EAAE,SAAS,MAAM;GAC5B;;CAEH,YAAY;AACV,SAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;;CAEvC,WAAW,EAAE,kBAAkB;EAC7B,MAAM,EAAE,KAAK,GAAG,GAAG,UAAU;AAE7B,UAAQ,IAAI,SAAS,MAAM;EAE3B,MAAM,SAAS,MAAM;EACrB,MAAM,YAAY,QAAQ,MAAM,UAAU;EAE1C,MAAM,MAAM,UAAU,CAAC,YAAY,WAAW,OAAO,GAAG;AAExD,SAAO,CAAC,OAAO;GAAE,GAAG;GAAO,GAAI,MAAM,EAAE,KAAK,GAAG,EAAE;GAAG,CAAC;;CAExD,CAAC"}
1
+ {"version":3,"file":"extension.mjs","names":["Image","TiptapImage"],"sources":["../../../../../src/components/editor/extensions/image/extension.ts"],"sourcesContent":["\"use client\";\n\nimport { getFileUrl } from \"@/modules/storage/lib/helpers\";\nimport { Image as TiptapImage, ImageOptions as TiptapImageOptions } from \"@tiptap/extension-image\";\n\nexport interface ImageOptions extends TiptapImageOptions {}\n\nexport const Image = TiptapImage.extend<ImageOptions>({\n atom: true,\n addAttributes() {\n return {\n ...this.parent?.(),\n // node id\n nodeId: {\n default: null,\n parseHTML: (el) => el.getAttribute(\"data-node-id\"),\n renderHTML: (attrs) => {\n if (!attrs.nodeId) return {};\n return {\n \"data-node-id\": attrs.nodeId,\n ...(attrs.nodeId && !attrs.isPending ? { src: getFileUrl(attrs.nodeId) } : {}),\n };\n },\n },\n\n // semantics\n alt: { default: null },\n title: { default: null },\n\n // layout stability\n width: { default: null },\n height: { default: null },\n\n // upload UX\n isPending: {\n default: false,\n renderHTML: (attrs) => (attrs.isPending ? { \"data-pending\": \"true\" } : {}),\n },\n fileName: { default: null },\n };\n },\n parseHTML() {\n return [{ tag: \"img[data-node-id]\" }];\n },\n renderHTML({ HTMLAttributes }) {\n const { src: _, ...attrs } = HTMLAttributes;\n\n const nodeId = attrs.nodeId as string | null;\n const isPending = Boolean(attrs.isPending);\n\n const src = nodeId && !isPending ? getFileUrl(nodeId) : null;\n\n return [\"img\", { ...attrs, ...(src ? { src } : {}) }];\n },\n});\n"],"mappings":";;;;;;AAOA,MAAaA,UAAQC,MAAY,OAAqB;CACpD,MAAM;CACN,gBAAgB;AACd,SAAO;GACL,GAAG,KAAK,UAAU;GAElB,QAAQ;IACN,SAAS;IACT,YAAY,OAAO,GAAG,aAAa,eAAe;IAClD,aAAa,UAAU;AACrB,SAAI,CAAC,MAAM,OAAQ,QAAO,EAAE;AAC5B,YAAO;MACL,gBAAgB,MAAM;MACtB,GAAI,MAAM,UAAU,CAAC,MAAM,YAAY,EAAE,KAAK,WAAW,MAAM,OAAO,EAAE,GAAG,EAAE;MAC9E;;IAEJ;GAGD,KAAK,EAAE,SAAS,MAAM;GACtB,OAAO,EAAE,SAAS,MAAM;GAGxB,OAAO,EAAE,SAAS,MAAM;GACxB,QAAQ,EAAE,SAAS,MAAM;GAGzB,WAAW;IACT,SAAS;IACT,aAAa,UAAW,MAAM,YAAY,EAAE,gBAAgB,QAAQ,GAAG,EAAE;IAC1E;GACD,UAAU,EAAE,SAAS,MAAM;GAC5B;;CAEH,YAAY;AACV,SAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;;CAEvC,WAAW,EAAE,kBAAkB;EAC7B,MAAM,EAAE,KAAK,GAAG,GAAG,UAAU;EAE7B,MAAM,SAAS,MAAM;EACrB,MAAM,YAAY,QAAQ,MAAM,UAAU;EAE1C,MAAM,MAAM,UAAU,CAAC,YAAY,WAAW,OAAO,GAAG;AAExD,SAAO,CAAC,OAAO;GAAE,GAAG;GAAO,GAAI,MAAM,EAAE,KAAK,GAAG,EAAE;GAAG,CAAC;;CAExD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import { SkeletonNodeRenderer } from "./renderer.mjs";
4
- import { Node } from "@tiptap/core";
5
4
  import { ReactNodeViewRenderer } from "@tiptap/react";
5
+ import { Node } from "@tiptap/core";
6
6
 
7
7
  //#region src/components/editor/extensions/skeleton/extension.ts
8
8
  const Skeleton = Node.create({
@@ -4,17 +4,17 @@ import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
4
4
  import * as _tiptap_extension_bold0 from "@tiptap/extension-bold";
5
5
  import * as _tiptap_extension_hard_break0 from "@tiptap/extension-hard-break";
6
6
  import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
7
- import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
8
7
  import * as _tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
9
8
  import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
10
9
  import * as _tiptap_extension_link0 from "@tiptap/extension-link";
11
10
  import * as _tiptap_extension_list0 from "@tiptap/extension-list";
12
11
  import * as _tiptap_extension_paragraph0 from "@tiptap/extension-paragraph";
13
12
  import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
14
- import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
15
13
  import * as _tiptap_extension_underline0 from "@tiptap/extension-underline";
16
14
  import * as _tiptap_extensions0 from "@tiptap/extensions";
17
- import * as _tiptap_core12 from "@tiptap/core";
15
+ import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
16
+ import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
17
+ import * as _tiptap_core13 from "@tiptap/core";
18
18
 
19
19
  //#region src/components/editor/lib/constants.d.ts
20
20
  /**
@@ -24,38 +24,38 @@ declare const EDITOR_EXTENSIONS: {
24
24
  /**
25
25
  * Nodes
26
26
  */
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>;
27
+ blockquote: _tiptap_core13.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
28
+ document: _tiptap_core13.Node<any, any>;
29
+ hardBreak: _tiptap_core13.Node<_tiptap_extension_hard_break0.HardBreakOptions, any>;
30
+ heading: _tiptap_core13.Node<_tiptap_extension_heading0.HeadingOptions, any>;
31
+ horizontalRule: _tiptap_core13.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
32
+ listItem: _tiptap_core13.Node<_tiptap_extension_list0.ListItemOptions, any>;
33
+ orderedList: _tiptap_core13.Node<_tiptap_extension_list0.OrderedListOptions, any>;
34
+ bulletList: _tiptap_core13.Node<_tiptap_extension_list0.BulletListOptions, any>;
35
+ paragraph: _tiptap_core13.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
36
+ text: _tiptap_core13.Node<any, any>;
37
+ image: _tiptap_core13.Node<ImageOptions, any>;
38
+ fileHandler: _tiptap_core13.Extension<FileHandlerOptions, any>;
39
+ skeleton: _tiptap_core13.Node<any, any>;
40
40
  /**
41
41
  * Marks
42
42
  */
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>;
43
+ bold: _tiptap_core13.Mark<_tiptap_extension_bold0.BoldOptions, any>;
44
+ italic: _tiptap_core13.Mark<_tiptap_extension_italic0.ItalicOptions, any>;
45
+ link: _tiptap_core13.Mark<_tiptap_extension_link0.LinkOptions, any>;
46
+ strike: _tiptap_core13.Mark<_tiptap_extension_strike0.StrikeOptions, any>;
47
+ underline: _tiptap_core13.Mark<_tiptap_extension_underline0.UnderlineOptions, any>;
48
+ highlight: _tiptap_core13.Mark<_tiptap_extension_highlight0.HighlightOptions, any>;
49
49
  /**
50
50
  * Extensions
51
51
  */
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>;
52
+ dropcursor: _tiptap_core13.Extension<_tiptap_extensions0.DropcursorOptions, any>;
53
+ gapcursor: _tiptap_core13.Extension<any, any>;
54
+ undoRedo: _tiptap_core13.Extension<_tiptap_extensions0.UndoRedoOptions, any>;
55
+ listKeymap: _tiptap_core13.Extension<_tiptap_extension_list0.ListKeymapOptions, any>;
56
+ trailingNode: _tiptap_core13.Extension<_tiptap_extensions0.TrailingNodeOptions, any>;
57
+ textStyle: _tiptap_core13.Mark<_tiptap_extension_text_style0.TextStyleOptions, any>;
58
+ color: _tiptap_core13.Extension<_tiptap_extension_text_style0.ColorOptions, any>;
59
59
  };
60
60
  type EditorExtensions = typeof EDITOR_EXTENSIONS;
61
61
  //#endregion
@@ -7,7 +7,6 @@ import Bold from "@tiptap/extension-bold";
7
7
  import Document from "@tiptap/extension-document";
8
8
  import HardBreak from "@tiptap/extension-hard-break";
9
9
  import Heading from "@tiptap/extension-heading";
10
- import Highlight from "@tiptap/extension-highlight";
11
10
  import HorizontalRule from "@tiptap/extension-horizontal-rule";
12
11
  import Italic from "@tiptap/extension-italic";
13
12
  import Link from "@tiptap/extension-link";
@@ -15,9 +14,10 @@ import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension
15
14
  import Paragraph from "@tiptap/extension-paragraph";
16
15
  import Strike from "@tiptap/extension-strike";
17
16
  import Text from "@tiptap/extension-text";
18
- import { Color, TextStyle } from "@tiptap/extension-text-style";
19
17
  import Underline from "@tiptap/extension-underline";
20
18
  import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
19
+ import Highlight from "@tiptap/extension-highlight";
20
+ import { Color, TextStyle } from "@tiptap/extension-text-style";
21
21
 
22
22
  //#region src/components/editor/lib/constants.ts
23
23
  /**
@@ -98,5 +98,5 @@ const EDITOR_EXTENSIONS_CONFIG = [
98
98
  ];
99
99
 
100
100
  //#endregion
101
- export { EDITOR_EXTENSIONS, EDITOR_EXTENSIONS_CONFIG, EDITOR_EXTENSIONS_KEYS, EDITOR_EXTENSIONS_VALUES };
101
+ export { EDITOR_EXTENSIONS, EDITOR_EXTENSIONS_CONFIG, EDITOR_EXTENSIONS_KEYS };
102
102
  //# sourceMappingURL=constants.mjs.map
@@ -5,18 +5,18 @@ import { BlockquoteOptions } from "@tiptap/extension-blockquote";
5
5
  import { BoldOptions } from "@tiptap/extension-bold";
6
6
  import { HardBreakOptions } from "@tiptap/extension-hard-break";
7
7
  import { HeadingOptions } from "@tiptap/extension-heading";
8
- import { HighlightOptions } from "@tiptap/extension-highlight";
9
8
  import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
10
9
  import { ItalicOptions } from "@tiptap/extension-italic";
11
10
  import { LinkOptions } from "@tiptap/extension-link";
12
11
  import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from "@tiptap/extension-list";
13
12
  import { ParagraphOptions } from "@tiptap/extension-paragraph";
14
13
  import { StrikeOptions } from "@tiptap/extension-strike";
15
- import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
16
14
  import { UnderlineOptions } from "@tiptap/extension-underline";
17
15
  import { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from "@tiptap/extensions";
18
- import "@tiptap/core";
19
16
  import "@tiptap/react";
17
+ import { HighlightOptions } from "@tiptap/extension-highlight";
18
+ import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
19
+ import "@tiptap/core";
20
20
 
21
21
  //#region src/components/editor/lib/extensions.d.ts
22
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AAOgB,iBAPA,0BAAA,CAOoC,IAAA,EAAA,MAAA,CAAiB,EAPX,iBAOW;;;;iBAArD,0BAAA,UAAoC"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA2CA;AAOgB,iBAPA,0BAAA,CAOoC,IAAA,EAAA,MAAA,CAAiB,EAPX,iBAOW;;;;iBAArD,0BAAA,UAAoC"}
@@ -1,18 +1,53 @@
1
- import { EDITOR_EXTENSIONS_VALUES } from "./constants.mjs";
1
+ import Blockquote from "@tiptap/extension-blockquote";
2
+ import Bold from "@tiptap/extension-bold";
3
+ import Document from "@tiptap/extension-document";
4
+ import HardBreak from "@tiptap/extension-hard-break";
5
+ import Heading from "@tiptap/extension-heading";
6
+ import HorizontalRule from "@tiptap/extension-horizontal-rule";
7
+ import Italic from "@tiptap/extension-italic";
8
+ import Link from "@tiptap/extension-link";
9
+ import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension-list";
10
+ import Paragraph from "@tiptap/extension-paragraph";
11
+ import Strike from "@tiptap/extension-strike";
12
+ import Text from "@tiptap/extension-text";
13
+ import Underline from "@tiptap/extension-underline";
14
+ import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
2
15
  import { generateHTML, generateJSON } from "@tiptap/html";
3
16
 
4
17
  //#region src/components/editor/lib/helpers.ts
18
+ const EXTENSIONS_FOR_GENERATION = [
19
+ Blockquote,
20
+ BulletList,
21
+ Document,
22
+ HardBreak,
23
+ Heading,
24
+ HorizontalRule,
25
+ ListItem,
26
+ OrderedList,
27
+ Paragraph,
28
+ Text,
29
+ Bold,
30
+ Italic,
31
+ Link,
32
+ Strike,
33
+ Underline,
34
+ Dropcursor,
35
+ Gapcursor,
36
+ UndoRedo,
37
+ ListKeymap,
38
+ TrailingNode
39
+ ];
5
40
  /**
6
41
  * Convert text to editor content
7
42
  */
8
43
  function convertHTMLToEditorContent(html) {
9
- return generateJSON(html, EDITOR_EXTENSIONS_VALUES);
44
+ return generateJSON(html, EXTENSIONS_FOR_GENERATION);
10
45
  }
11
46
  /**
12
47
  * Convert editor content to text
13
48
  */
14
49
  function convertEditorContentToHTML(content) {
15
- return generateHTML(content, EDITOR_EXTENSIONS_VALUES);
50
+ return generateHTML(content, EXTENSIONS_FOR_GENERATION);
16
51
  }
17
52
 
18
53
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":["import { generateHTML, generateJSON } from \"@tiptap/html\";\nimport { EDITOR_EXTENSIONS_VALUES } from \"./constants\";\nimport { EditorJSONContent } from \"./types\";\n\n/**\n * Convert text to editor content\n */\nexport function convertHTMLToEditorContent(html: string): EditorJSONContent {\n return generateJSON(html, EDITOR_EXTENSIONS_VALUES);\n}\n\n/**\n * Convert editor content to text\n */\nexport function convertEditorContentToHTML(content: EditorJSONContent): string {\n return generateHTML(content, EDITOR_EXTENSIONS_VALUES);\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,2BAA2B,MAAiC;AAC1E,QAAO,aAAa,MAAM,yBAAyB;;;;;AAMrD,SAAgB,2BAA2B,SAAoC;AAC7E,QAAO,aAAa,SAAS,yBAAyB"}
1
+ {"version":3,"file":"helpers.mjs","names":[],"sources":["../../../../src/components/editor/lib/helpers.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 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 Underline from \"@tiptap/extension-underline\";\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from \"@tiptap/extensions\";\nimport { generateHTML, generateJSON } from \"@tiptap/html\";\nimport { EditorJSONContent } from \"./types\";\n\nconst EXTENSIONS_FOR_GENERATION = [\n Blockquote,\n BulletList,\n Document,\n HardBreak,\n Heading,\n HorizontalRule,\n ListItem,\n OrderedList,\n Paragraph,\n Text,\n Bold,\n Italic,\n Link,\n Strike,\n Underline,\n Dropcursor,\n Gapcursor,\n UndoRedo,\n ListKeymap,\n TrailingNode,\n];\n\n/**\n * Convert text to editor content\n */\nexport function convertHTMLToEditorContent(html: string): EditorJSONContent {\n return generateJSON(html, EXTENSIONS_FOR_GENERATION);\n}\n\n/**\n * Convert editor content to text\n */\nexport function convertEditorContentToHTML(content: EditorJSONContent): string {\n return generateHTML(content, EXTENSIONS_FOR_GENERATION);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,4BAA4B;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;AAKD,SAAgB,2BAA2B,MAAiC;AAC1E,QAAO,aAAa,MAAM,0BAA0B;;;;;AAMtD,SAAgB,2BAA2B,SAAoC;AAC7E,QAAO,aAAa,SAAS,0BAA0B"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime263 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 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_runtime263.JSX.Element;
7
+ }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime9.JSX.Element;
8
8
  //#endregion
9
9
  export { HeaderTopbarBackButton };
10
10
  //# sourceMappingURL=back-button.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"back-button.client.d.mts","names":[],"sources":["../../../src/components/header/back-button.client.tsx"],"sourcesContent":[],"mappings":";;;iBAagB,sBAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"back-button.client.d.mts","names":[],"sources":["../../../src/components/header/back-button.client.tsx"],"sourcesContent":[],"mappings":";;;iBAagB,sBAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Path } from "../../modules/config/paths/types.mjs";
2
- import * as react_jsx_runtime264 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 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_runtime264.JSX.Element;
14
+ }: BottomBarProps): react_jsx_runtime10.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_runtime264.JSX.Element;
26
+ }: BottomBarLinksProps): react_jsx_runtime10.JSX.Element;
27
27
  //#endregion
28
28
  export { BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps };
29
29
  //# sourceMappingURL=bottom-bar.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bottom-bar.client.d.mts","names":[],"sources":["../../../src/components/header/bottom-bar.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYY,KAAA,cAAA,GAAc;EAIV,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAY,iBAAxB,SAAA,CAAwB;EAAA;AAAA,CAAA,EAAA,cAAA,CAAA,EAAc,oBAAA,CAAA,GAAA,CAAA,OAAd;;;AAWxC;AAEY,KAFA,aAAA,GAAgB,IAEG,CAFE,IAEF,EAAA,MAAA,GAAA,OAAA,CAAA;AAAwB,KAA3C,mBAAA,GAAsB,KAAA,CAAM,cAAe,CAAA,WAAA,CAAA,GAAA;EAArB,KAAM,EAC/B,aAD+B,EAAA;CAC/B;AAAa,iBAGN,cAAA,CAHM;EAAA,KAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAGyC,mBAHzC,CAAA,EAG4D,oBAAA,CAAA,GAAA,CAAA,OAH5D"}
1
+ {"version":3,"file":"bottom-bar.client.d.mts","names":[],"sources":["../../../src/components/header/bottom-bar.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYY,KAAA,cAAA,GAAc;EAIV,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAY,iBAAxB,SAAA,CAAwB;EAAA;AAAA,CAAA,EAAA,cAAA,CAAA,EAAc,mBAAA,CAAA,GAAA,CAAA,OAAd;;;AAWxC;AAEY,KAFA,aAAA,GAAgB,IAEG,CAFE,IAEF,EAAA,MAAA,GAAA,OAAA,CAAA;AAAwB,KAA3C,mBAAA,GAAsB,KAAA,CAAM,cAAe,CAAA,WAAA,CAAA,GAAA;EAArB,KAAM,EAC/B,aAD+B,EAAA;CAC/B;AAAa,iBAGN,cAAA,CAHM;EAAA,KAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAGyC,mBAHzC,CAAA,EAG4D,mBAAA,CAAA,GAAA,CAAA,OAH5D"}
@@ -1,5 +1,5 @@
1
1
  import { BreadcrumbSeparator } from "../ui/breadcrumb.mjs";
2
- import * as react_jsx_runtime266 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 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_runtime266.JSX.Element;
13
+ declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime12.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_runtime266.JSX.Element;
18
+ declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime12.JSX.Element;
19
19
  declare function HeaderBreadcrumbsDropdownMenuItem(props: {
20
20
  breadcrumb: HeaderBreadcrumb;
21
- }): react_jsx_runtime266.JSX.Element;
21
+ }): react_jsx_runtime12.JSX.Element;
22
22
  /**
23
23
  * Links
24
24
  */
25
25
  declare function HeaderBreadcrumbsLink(props: {
26
26
  breadcrumb: HeaderBreadcrumb;
27
- }): react_jsx_runtime266.JSX.Element;
27
+ }): react_jsx_runtime12.JSX.Element;
28
28
  /**
29
29
  * Lists
30
30
  */
31
- declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
32
- declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime266.JSX.Element;
31
+ declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime12.JSX.Element;
32
+ declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime12.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 +1 @@
1
- {"version":3,"file":"breadcrumbs.client.d.mts","names":[],"sources":["../../../src/components/header/breadcrumbs.client.tsx"],"sourcesContent":[],"mappings":";;;;;KAmBY,gBAAA;;;AAAZ,CAAA;AAKY,KAAA,qBAAA,GAAqB;EAIjB,WAAA,EAHD,gBAGkB,EAAA;AAIjC,CAAA;AAKgB,iBATA,iBAAA,CAS6B,KAAA,EATJ,iBASY,CAAA,EATK,oBAAA,CAAA,GAAA,CAAA,OASY;AAatD,cAlBH,yBAkBoC,EAAA,OAlBX,mBAkBmD;AAezF;AAmBA;AAQA;iBAvDgB,6BAAA,QAAqC,oBAAiB,oBAAA,CAAA,GAAA,CAAA;iBAatD,iCAAA;cAAuD;IAAkB,oBAAA,CAAA,GAAA,CAAA;;;;iBAezE,qBAAA;cAA2C;IAAkB,oBAAA,CAAA,GAAA,CAAA;;;;iBAmB7D,2BAAA,QAAmC,oBAAiB,oBAAA,CAAA,GAAA,CAAA;iBAQpD,4BAAA,QAAoC,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"breadcrumbs.client.d.mts","names":[],"sources":["../../../src/components/header/breadcrumbs.client.tsx"],"sourcesContent":[],"mappings":";;;;;KAmBY,gBAAA;;;AAAZ,CAAA;AAKY,KAAA,qBAAA,GAAqB;EAIjB,WAAA,EAHD,gBAGkB,EAAA;AAIjC,CAAA;AAKgB,iBATA,iBAAA,CAS6B,KAAA,EATJ,iBASY,CAAiB,EATZ,mBAAA,CAAA,GAAA,CAAA,OASY;AAatD,cAlBH,yBAkBoC,EAAA,OAlBX,mBAkBmD;AAezF;AAmBA;AAQA;iBAvDgB,6BAAA,QAAqC,oBAAiB,mBAAA,CAAA,GAAA,CAAA;iBAatD,iCAAA;cAAuD;IAAkB,mBAAA,CAAA,GAAA,CAAA;;;;iBAezE,qBAAA;cAA2C;IAAkB,mBAAA,CAAA,GAAA,CAAA;;;;iBAmB7D,2BAAA,QAAmC,oBAAiB,mBAAA,CAAA,GAAA,CAAA;iBAQpD,4BAAA,QAAoC,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime272 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 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_runtime272.JSX.Element;
9
+ }: ComponentProps<"header">): react_jsx_runtime18.JSX.Element;
10
10
  //#endregion
11
11
  export { Header };
12
12
  //# sourceMappingURL=header.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.client.d.mts","names":[],"sources":["../../../src/components/header/header.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,MAAA;;;;GAA0C,2BAAwB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"header.client.d.mts","names":[],"sources":["../../../src/components/header/header.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,MAAA;;;;GAA0C,2BAAwB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime273 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 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_runtime273.JSX.Element;
7
+ }: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime19.JSX.Element;
8
8
  //#endregion
9
9
  export { HeaderTopbarMobileNavSwitcher };
10
10
  //# sourceMappingURL=mobile-nav-switcher.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-nav-switcher.client.d.mts","names":[],"sources":["../../../src/components/header/mobile-nav-switcher.client.tsx"],"sourcesContent":[],"mappings":";;;iBAKgB,6BAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"mobile-nav-switcher.client.d.mts","names":[],"sources":["../../../src/components/header/mobile-nav-switcher.client.tsx"],"sourcesContent":[],"mappings":";;;iBAKgB,6BAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}