@tulip-systems/core 0.5.15 → 0.6.0

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 (938) hide show
  1. package/dist/auth/server.d.mts +1 -1
  2. package/dist/auth/server.mjs +1 -1
  3. package/dist/components/client.d.mts +2 -4
  4. package/dist/components/client.mjs +2 -4
  5. package/dist/components/common/icons.d.mts +52 -52
  6. package/dist/components/common/icons.d.mts.map +1 -1
  7. package/dist/components/common/icons.mjs.map +1 -1
  8. package/dist/components/common/status.d.mts +3 -3
  9. package/dist/components/common/status.d.mts.map +1 -1
  10. package/dist/components/common/status.mjs.map +1 -1
  11. package/dist/components/editor/components/content.client.d.mts +2 -2
  12. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  13. package/dist/components/editor/components/content.client.mjs.map +1 -1
  14. package/dist/components/editor/components/editor.client.d.mts +4 -4
  15. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  16. package/dist/components/editor/components/editor.client.mjs +2 -2
  17. package/dist/components/editor/components/editor.client.mjs.map +1 -1
  18. package/dist/components/editor/components/menu-nodes.client.mjs +2 -2
  19. package/dist/components/editor/components/menu-nodes.client.mjs.map +1 -1
  20. package/dist/components/editor/components/menu.client.d.mts +3 -3
  21. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  22. package/dist/components/editor/components/menu.client.mjs.map +1 -1
  23. package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -1
  24. package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -1
  25. package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -1
  26. package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -1
  27. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
  28. package/dist/components/editor/extensions/image/extension.d.mts.map +1 -1
  29. package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
  30. package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -1
  31. package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -1
  32. package/dist/components/editor/lib/constants.d.mts +27 -27
  33. package/dist/components/editor/lib/constants.d.mts.map +1 -1
  34. package/dist/components/editor/lib/extensions.d.mts +0 -1
  35. package/dist/components/editor/lib/extensions.d.mts.map +1 -1
  36. package/dist/components/editor/lib/extensions.mjs +6 -8
  37. package/dist/components/editor/lib/extensions.mjs.map +1 -1
  38. package/dist/components/editor/lib/helpers.d.mts +0 -1
  39. package/dist/components/editor/lib/helpers.d.mts.map +1 -1
  40. package/dist/components/editor/lib/helpers.mjs.map +1 -1
  41. package/dist/components/editor/lib/types.d.mts +0 -1
  42. package/dist/components/editor/lib/types.d.mts.map +1 -1
  43. package/dist/components/editor/lib/variants.mjs.map +1 -1
  44. package/dist/components/emails/forget-password-email.mjs +1 -2
  45. package/dist/components/emails/forget-password-email.mjs.map +1 -1
  46. package/dist/components/header/back-button.client.d.mts +2 -2
  47. package/dist/components/header/back-button.client.d.mts.map +1 -1
  48. package/dist/components/header/back-button.client.mjs.map +1 -1
  49. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  50. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  51. package/dist/components/header/bottom-bar.client.mjs.map +1 -1
  52. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  53. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  54. package/dist/components/header/breadcrumbs.client.mjs.map +1 -1
  55. package/dist/components/header/header.client.d.mts +2 -2
  56. package/dist/components/header/header.client.d.mts.map +1 -1
  57. package/dist/components/header/header.client.mjs.map +1 -1
  58. package/dist/components/header/indicator.client.mjs.map +1 -1
  59. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  60. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  61. package/dist/components/header/top-bar.client.d.mts +4 -4
  62. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  63. package/dist/components/header/top-bar.client.mjs.map +1 -1
  64. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  65. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  66. package/dist/components/layouts/admin-content.client.mjs.map +1 -1
  67. package/dist/components/layouts/admin-error-pages.d.mts +4 -4
  68. package/dist/components/layouts/admin-error-pages.d.mts.map +1 -1
  69. package/dist/components/layouts/admin-error-pages.mjs.map +1 -1
  70. package/dist/components/layouts/admin-layout.d.mts +2 -2
  71. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  72. package/dist/components/layouts/admin-layout.mjs.map +1 -1
  73. package/dist/components/layouts/admin-loading.d.mts +2 -2
  74. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  75. package/dist/components/layouts/admin-loading.mjs.map +1 -1
  76. package/dist/components/layouts/empty-page.d.mts +4 -4
  77. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  78. package/dist/components/layouts/empty-page.mjs.map +1 -1
  79. package/dist/components/layouts/error-page.d.mts +9 -9
  80. package/dist/components/layouts/error-page.d.mts.map +1 -1
  81. package/dist/components/layouts/error-page.mjs.map +1 -1
  82. package/dist/components/layouts/error-sections.d.mts +5 -5
  83. package/dist/components/layouts/error-sections.d.mts.map +1 -1
  84. package/dist/components/layouts/error-sections.mjs.map +1 -1
  85. package/dist/components/layouts/list-layout.d.mts +2 -2
  86. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  87. package/dist/components/layouts/list-layout.mjs.map +1 -1
  88. package/dist/components/layouts/providers.client.d.mts +2 -2
  89. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  90. package/dist/components/layouts/providers.client.mjs +1 -1
  91. package/dist/components/layouts/providers.client.mjs.map +1 -1
  92. package/dist/components/layouts/root-error-pages.d.mts +2 -2
  93. package/dist/components/layouts/root-error-pages.d.mts.map +1 -1
  94. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  95. package/dist/components/layouts/root-layout.server.mjs.map +1 -1
  96. package/dist/components/layouts/root-loading.d.mts +2 -2
  97. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  98. package/dist/components/layouts/tab-layout.d.mts +2 -2
  99. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  100. package/dist/components/layouts/tab-layout.mjs +3 -3
  101. package/dist/components/layouts/tab-layout.mjs.map +1 -1
  102. package/dist/components/lists/data-list.d.mts +5 -5
  103. package/dist/components/lists/data-list.d.mts.map +1 -1
  104. package/dist/components/lists/data-list.mjs.map +1 -1
  105. package/dist/components/lists/data-stack.d.mts +8 -8
  106. package/dist/components/lists/data-stack.d.mts.map +1 -1
  107. package/dist/components/lists/data-stack.mjs.map +1 -1
  108. package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
  109. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  110. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  111. package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
  112. package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +1 -1
  113. package/dist/components/ui/accordion.d.mts +5 -5
  114. package/dist/components/ui/accordion.d.mts.map +1 -1
  115. package/dist/components/ui/accordion.mjs +0 -1
  116. package/dist/components/ui/accordion.mjs.map +1 -1
  117. package/dist/components/ui/alert-dialog.d.mts +12 -12
  118. package/dist/components/ui/alert-dialog.d.mts.map +1 -1
  119. package/dist/components/ui/alert-dialog.mjs +0 -1
  120. package/dist/components/ui/alert-dialog.mjs.map +1 -1
  121. package/dist/components/ui/alert.d.mts +6 -6
  122. package/dist/components/ui/alert.d.mts.map +1 -1
  123. package/dist/components/ui/alert.mjs +0 -1
  124. package/dist/components/ui/alert.mjs.map +1 -1
  125. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  126. package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
  127. package/dist/components/ui/avatar.client.d.mts +4 -4
  128. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  129. package/dist/components/ui/avatar.client.mjs +0 -1
  130. package/dist/components/ui/avatar.client.mjs.map +1 -1
  131. package/dist/components/ui/badge.d.mts +4 -4
  132. package/dist/components/ui/badge.d.mts.map +1 -1
  133. package/dist/components/ui/badge.mjs +0 -1
  134. package/dist/components/ui/badge.mjs.map +1 -1
  135. package/dist/components/ui/breadcrumb.d.mts +8 -8
  136. package/dist/components/ui/breadcrumb.d.mts.map +1 -1
  137. package/dist/components/ui/breadcrumb.mjs +1 -2
  138. package/dist/components/ui/breadcrumb.mjs.map +1 -1
  139. package/dist/components/ui/button.d.mts +5 -5
  140. package/dist/components/ui/button.d.mts.map +1 -1
  141. package/dist/components/ui/button.mjs +0 -1
  142. package/dist/components/ui/button.mjs.map +1 -1
  143. package/dist/components/ui/calendar.d.mts +3 -3
  144. package/dist/components/ui/calendar.d.mts.map +1 -1
  145. package/dist/components/ui/calendar.mjs +12 -12
  146. package/dist/components/ui/calendar.mjs.map +1 -1
  147. package/dist/components/ui/card.d.mts +7 -7
  148. package/dist/components/ui/card.d.mts.map +1 -1
  149. package/dist/components/ui/card.mjs +0 -1
  150. package/dist/components/ui/card.mjs.map +1 -1
  151. package/dist/components/ui/carousel.d.mts +6 -6
  152. package/dist/components/ui/carousel.d.mts.map +1 -1
  153. package/dist/components/ui/carousel.mjs +4 -4
  154. package/dist/components/ui/carousel.mjs.map +1 -1
  155. package/dist/components/ui/chart.client.d.mts +5 -5
  156. package/dist/components/ui/chart.client.d.mts.map +1 -1
  157. package/dist/components/ui/chart.client.mjs +6 -6
  158. package/dist/components/ui/chart.client.mjs.map +1 -1
  159. package/dist/components/ui/checkbox.d.mts +2 -2
  160. package/dist/components/ui/checkbox.d.mts.map +1 -1
  161. package/dist/components/ui/checkbox.mjs +0 -1
  162. package/dist/components/ui/checkbox.mjs.map +1 -1
  163. package/dist/components/ui/collapsible.client.d.mts +4 -4
  164. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  165. package/dist/components/ui/color-picker.client.d.mts +2 -2
  166. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  167. package/dist/components/ui/color-picker.client.mjs +6 -5
  168. package/dist/components/ui/color-picker.client.mjs.map +1 -1
  169. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -3
  170. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  171. package/dist/components/ui/combobox-dropdown.client.mjs +3 -3
  172. package/dist/components/ui/combobox-dropdown.client.mjs.map +1 -1
  173. package/dist/components/ui/combobox.client.d.mts +2 -2
  174. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  175. package/dist/components/ui/combobox.client.mjs +2 -2
  176. package/dist/components/ui/combobox.client.mjs.map +1 -1
  177. package/dist/components/ui/command.d.mts +10 -10
  178. package/dist/components/ui/command.d.mts.map +1 -1
  179. package/dist/components/ui/command.mjs +0 -1
  180. package/dist/components/ui/command.mjs.map +1 -1
  181. package/dist/components/ui/context-menu.d.mts +16 -16
  182. package/dist/components/ui/context-menu.d.mts.map +1 -1
  183. package/dist/components/ui/context-menu.mjs +0 -1
  184. package/dist/components/ui/context-menu.mjs.map +1 -1
  185. package/dist/components/ui/date-picker.client.d.mts +2 -2
  186. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  187. package/dist/components/ui/date-picker.client.mjs +3 -3
  188. package/dist/components/ui/date-picker.client.mjs.map +1 -1
  189. package/dist/components/ui/dialog.client.d.mts +11 -11
  190. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  191. package/dist/components/ui/dialog.client.mjs +0 -1
  192. package/dist/components/ui/dialog.client.mjs.map +1 -1
  193. package/dist/components/ui/drawer.client.d.mts +11 -11
  194. package/dist/components/ui/drawer.client.d.mts.map +1 -1
  195. package/dist/components/ui/drawer.client.mjs +0 -1
  196. package/dist/components/ui/drawer.client.mjs.map +1 -1
  197. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  198. package/dist/components/ui/dropdown-menu.d.mts.map +1 -1
  199. package/dist/components/ui/dropdown-menu.mjs +0 -1
  200. package/dist/components/ui/dropdown-menu.mjs.map +1 -1
  201. package/dist/components/ui/form.client.d.mts +7 -7
  202. package/dist/components/ui/form.client.d.mts.map +1 -1
  203. package/dist/components/ui/form.client.mjs.map +1 -1
  204. package/dist/components/ui/hover-card.client.d.mts +4 -4
  205. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  206. package/dist/components/ui/hover-card.client.mjs +0 -1
  207. package/dist/components/ui/hover-card.client.mjs.map +1 -1
  208. package/dist/components/ui/input-date-time.d.mts +23 -0
  209. package/dist/components/ui/input-date-time.d.mts.map +1 -0
  210. package/dist/components/ui/input-date-time.mjs +34 -0
  211. package/dist/components/ui/input-date-time.mjs.map +1 -0
  212. package/dist/components/ui/input-date.d.mts +14 -0
  213. package/dist/components/ui/input-date.d.mts.map +1 -0
  214. package/dist/components/ui/input-date.mjs +16 -0
  215. package/dist/components/ui/input-date.mjs.map +1 -0
  216. package/dist/components/ui/input-recipient.d.mts +2 -2
  217. package/dist/components/ui/input-recipient.d.mts.map +1 -1
  218. package/dist/components/ui/input-recipient.mjs +2 -2
  219. package/dist/components/ui/input-recipient.mjs.map +1 -1
  220. package/dist/components/ui/input-time.d.mts +14 -0
  221. package/dist/components/ui/input-time.d.mts.map +1 -0
  222. package/dist/components/ui/input-time.mjs +16 -0
  223. package/dist/components/ui/input-time.mjs.map +1 -0
  224. package/dist/components/ui/input.d.mts +2 -2
  225. package/dist/components/ui/input.d.mts.map +1 -1
  226. package/dist/components/ui/input.mjs +0 -1
  227. package/dist/components/ui/input.mjs.map +1 -1
  228. package/dist/components/ui/label.d.mts +2 -2
  229. package/dist/components/ui/label.d.mts.map +1 -1
  230. package/dist/components/ui/label.mjs +0 -1
  231. package/dist/components/ui/label.mjs.map +1 -1
  232. package/dist/components/ui/navigation-menu.d.mts +11 -11
  233. package/dist/components/ui/navigation-menu.d.mts.map +1 -1
  234. package/dist/components/ui/navigation-menu.mjs +0 -1
  235. package/dist/components/ui/navigation-menu.mjs.map +1 -1
  236. package/dist/components/ui/pagination.d.mts +8 -8
  237. package/dist/components/ui/pagination.d.mts.map +1 -1
  238. package/dist/components/ui/pagination.mjs +0 -1
  239. package/dist/components/ui/pagination.mjs.map +1 -1
  240. package/dist/components/ui/popover.d.mts +5 -5
  241. package/dist/components/ui/popover.d.mts.map +1 -1
  242. package/dist/components/ui/popover.mjs +0 -1
  243. package/dist/components/ui/popover.mjs.map +1 -1
  244. package/dist/components/ui/progress.client.d.mts +2 -2
  245. package/dist/components/ui/progress.client.d.mts.map +1 -1
  246. package/dist/components/ui/progress.client.mjs +0 -1
  247. package/dist/components/ui/progress.client.mjs.map +1 -1
  248. package/dist/components/ui/radio-group.d.mts +3 -3
  249. package/dist/components/ui/radio-group.d.mts.map +1 -1
  250. package/dist/components/ui/radio-group.mjs +0 -1
  251. package/dist/components/ui/radio-group.mjs.map +1 -1
  252. package/dist/components/ui/resizable.client.d.mts +4 -4
  253. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  254. package/dist/components/ui/resizable.client.mjs +0 -1
  255. package/dist/components/ui/resizable.client.mjs.map +1 -1
  256. package/dist/components/ui/scroll-area.d.mts +3 -3
  257. package/dist/components/ui/scroll-area.d.mts.map +1 -1
  258. package/dist/components/ui/scroll-area.mjs +0 -1
  259. package/dist/components/ui/scroll-area.mjs.map +1 -1
  260. package/dist/components/ui/select.client.d.mts +11 -11
  261. package/dist/components/ui/select.client.d.mts.map +1 -1
  262. package/dist/components/ui/select.client.mjs +0 -1
  263. package/dist/components/ui/select.client.mjs.map +1 -1
  264. package/dist/components/ui/separator.d.mts +2 -2
  265. package/dist/components/ui/separator.d.mts.map +1 -1
  266. package/dist/components/ui/separator.mjs +0 -1
  267. package/dist/components/ui/separator.mjs.map +1 -1
  268. package/dist/components/ui/sheet.client.d.mts +9 -9
  269. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  270. package/dist/components/ui/sheet.client.mjs +0 -1
  271. package/dist/components/ui/sheet.client.mjs.map +1 -1
  272. package/dist/components/ui/sidebar.client.d.mts +24 -24
  273. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  274. package/dist/components/ui/sidebar.client.mjs +2 -2
  275. package/dist/components/ui/sidebar.client.mjs.map +1 -1
  276. package/dist/components/ui/skeleton.d.mts +2 -2
  277. package/dist/components/ui/skeleton.d.mts.map +1 -1
  278. package/dist/components/ui/slider.d.mts +2 -2
  279. package/dist/components/ui/slider.d.mts.map +1 -1
  280. package/dist/components/ui/sonner.client.d.mts +2 -2
  281. package/dist/components/ui/sonner.client.d.mts.map +1 -1
  282. package/dist/components/ui/sonner.client.mjs.map +1 -1
  283. package/dist/components/ui/switch.d.mts +2 -2
  284. package/dist/components/ui/switch.d.mts.map +1 -1
  285. package/dist/components/ui/switch.mjs +0 -1
  286. package/dist/components/ui/switch.mjs.map +1 -1
  287. package/dist/components/ui/tabs.d.mts +5 -5
  288. package/dist/components/ui/tabs.d.mts.map +1 -1
  289. package/dist/components/ui/tabs.mjs +0 -1
  290. package/dist/components/ui/tabs.mjs.map +1 -1
  291. package/dist/components/ui/textarea.d.mts +2 -2
  292. package/dist/components/ui/textarea.d.mts.map +1 -1
  293. package/dist/components/ui/textarea.mjs +0 -1
  294. package/dist/components/ui/textarea.mjs.map +1 -1
  295. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  296. package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
  297. package/dist/components/ui/toggle-group.client.mjs.map +1 -1
  298. package/dist/components/ui/toggle.d.mts +4 -4
  299. package/dist/components/ui/toggle.d.mts.map +1 -1
  300. package/dist/components/ui/toggle.mjs +0 -1
  301. package/dist/components/ui/toggle.mjs.map +1 -1
  302. package/dist/components/ui/tooltip.client.d.mts +5 -5
  303. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  304. package/dist/components/ui/tooltip.client.mjs +0 -1
  305. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  306. package/dist/components.d.mts +4 -1
  307. package/dist/components.mjs +4 -1
  308. package/dist/data-tables/client.d.mts +4 -4
  309. package/dist/data-tables/client.mjs +4 -4
  310. package/dist/inline-edit/client.d.mts +5 -3
  311. package/dist/inline-edit/client.mjs +5 -3
  312. package/dist/lib/config/constants.d.mts.map +1 -1
  313. package/dist/lib/config/constants.mjs.map +1 -1
  314. package/dist/lib/hooks/use-action.d.mts +2 -3
  315. package/dist/lib/hooks/use-action.d.mts.map +1 -1
  316. package/dist/lib/hooks/use-action.mjs.map +1 -1
  317. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  318. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  319. package/dist/lib/hooks/use-indicator.mjs +4 -4
  320. package/dist/lib/hooks/use-indicator.mjs.map +1 -1
  321. package/dist/lib/hooks/use-mobile.client.d.mts.map +1 -1
  322. package/dist/lib/types/config.d.mts.map +1 -1
  323. package/dist/lib/utils/array-move.d.mts.map +1 -1
  324. package/dist/lib/utils/cn.d.mts.map +1 -1
  325. package/dist/lib/utils/cn.mjs.map +1 -1
  326. package/dist/lib/utils/fonts.d.mts.map +1 -1
  327. package/dist/lib/utils/format.d.mts.map +1 -1
  328. package/dist/lib/utils/manifest.d.mts.map +1 -1
  329. package/dist/lib/utils/manifest.mjs.map +1 -1
  330. package/dist/lib/utils/url.d.mts.map +1 -1
  331. package/dist/lib/utils/url.mjs +1 -1
  332. package/dist/lib/utils/url.mjs.map +1 -1
  333. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  334. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  335. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  336. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  337. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  338. package/dist/modules/auth/components/auth-layout.server.mjs.map +1 -1
  339. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  340. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  341. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  342. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  343. package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
  344. package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
  345. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  346. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  347. package/dist/modules/auth/components/forget-password-page.client.mjs +2 -2
  348. package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
  349. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  350. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  351. package/dist/modules/auth/components/guard-first-user.server.mjs.map +1 -1
  352. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  353. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  354. package/dist/modules/auth/components/guard.server.mjs.map +1 -1
  355. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  356. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  357. package/dist/modules/auth/components/login-page.client.mjs +1 -1
  358. package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
  359. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  360. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  361. package/dist/modules/auth/components/reset-password-page.client.mjs +2 -2
  362. package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
  363. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  364. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  365. package/dist/modules/auth/components/update-password-command.mjs +0 -1
  366. package/dist/modules/auth/components/update-password-command.mjs.map +1 -1
  367. package/dist/modules/auth/db/schema.d.mts +73 -73
  368. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  369. package/dist/modules/auth/db/schema.mjs +1 -1
  370. package/dist/modules/auth/db/schema.mjs.map +1 -1
  371. package/dist/modules/auth/handler/create-client.client.d.mts +304 -284
  372. package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -1
  373. package/dist/modules/auth/handler/create-client.client.mjs.map +1 -1
  374. package/dist/modules/auth/handler/init.d.mts +206 -220
  375. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  376. package/dist/modules/auth/handler/init.mjs +2 -2
  377. package/dist/modules/auth/handler/init.mjs.map +1 -1
  378. package/dist/modules/auth/handler/proxy.server.d.mts +0 -1
  379. package/dist/modules/auth/handler/proxy.server.d.mts.map +1 -1
  380. package/dist/modules/auth/handler/proxy.server.mjs +0 -1
  381. package/dist/modules/auth/handler/proxy.server.mjs.map +1 -1
  382. package/dist/modules/auth/handler/route.server.d.mts +0 -1
  383. package/dist/modules/auth/handler/route.server.d.mts.map +1 -1
  384. package/dist/modules/auth/handler/route.server.mjs.map +1 -1
  385. package/dist/modules/auth/hooks/use-auth-client.d.mts +4 -4
  386. package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -1
  387. package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -1
  388. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  389. package/dist/modules/auth/hooks/use-permission.mjs +2 -2
  390. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  391. package/dist/modules/auth/hooks/use-session.d.mts +2 -2
  392. package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
  393. package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
  394. package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
  395. package/dist/modules/auth/lib/helpers.server.mjs +2 -2
  396. package/dist/modules/auth/lib/helpers.server.mjs.map +1 -1
  397. package/dist/modules/auth/lib/permissions.d.mts.map +1 -1
  398. package/dist/modules/auth/lib/validators.d.mts +2 -3
  399. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  400. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  401. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  402. package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
  403. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  404. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  405. package/dist/modules/commands/components/click-command.client.mjs +0 -1
  406. package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
  407. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  408. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  409. package/dist/modules/commands/components/command-trigger.client.mjs.map +1 -1
  410. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  411. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  412. package/dist/modules/commands/components/dialog-command.client.mjs.map +1 -1
  413. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  414. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  415. package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
  416. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  417. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  418. package/dist/modules/commands/components/empty-command.client.mjs +0 -1
  419. package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
  420. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  421. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  422. package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
  423. package/dist/modules/commands/components/render-command.mjs.map +1 -1
  424. package/dist/modules/commands/hooks/context.client.mjs.map +1 -1
  425. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  426. package/dist/modules/commands/hooks/use-command-menu.client.mjs +1 -1
  427. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  428. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts.map +1 -1
  429. package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +1 -1
  430. package/dist/modules/commands/lib/definitions.d.mts +0 -1
  431. package/dist/modules/commands/lib/definitions.d.mts.map +1 -1
  432. package/dist/modules/commands/lib/factory.d.mts.map +1 -1
  433. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  434. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  435. package/dist/modules/commands/menus/context-menu.client.mjs +5 -5
  436. package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
  437. package/dist/modules/commands/menus/data-table-menu.client.mjs.map +1 -1
  438. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  439. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  440. package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
  441. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  442. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  443. package/dist/modules/commands/menus/inline-menu.client.mjs +0 -1
  444. package/dist/modules/commands/menus/inline-menu.client.mjs.map +1 -1
  445. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  446. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  447. package/dist/modules/commands/menus/responsive-menu.client.mjs.map +1 -1
  448. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  449. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  450. package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
  451. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  452. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  453. package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
  454. package/dist/modules/config/db/helpers.d.mts +5 -5
  455. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  456. package/dist/modules/config/db/helpers.mjs.map +1 -1
  457. package/dist/modules/config/db/init.d.mts.map +1 -1
  458. package/dist/modules/config/db/init.mjs.map +1 -1
  459. package/dist/modules/config/db/types.d.mts.map +1 -1
  460. package/dist/modules/config/lib/config.d.mts.map +1 -1
  461. package/dist/modules/config/lib/context.d.mts.map +1 -1
  462. package/dist/modules/config/lib/context.mjs.map +1 -1
  463. package/dist/modules/config/paths/helpers.d.mts +0 -1
  464. package/dist/modules/config/paths/helpers.d.mts.map +1 -1
  465. package/dist/modules/config/paths/helpers.mjs.map +1 -1
  466. package/dist/modules/config/paths/types.d.mts +0 -1
  467. package/dist/modules/config/paths/types.d.mts.map +1 -1
  468. package/dist/modules/config/providers/email.d.mts.map +1 -1
  469. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  470. package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
  471. package/dist/modules/data-tables/components/cell/common.client.mjs.map +1 -1
  472. package/dist/modules/data-tables/components/cell/index.client.d.mts.map +1 -1
  473. package/dist/modules/data-tables/components/cell/select.client.d.mts.map +1 -1
  474. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  475. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  476. package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
  477. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  478. package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
  479. package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
  480. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  481. package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
  482. package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
  483. package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
  484. package/dist/modules/data-tables/components/footer.mjs.map +1 -1
  485. package/dist/modules/data-tables/components/header.d.mts +4 -4
  486. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  487. package/dist/modules/data-tables/components/header.mjs.map +1 -1
  488. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  489. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  490. package/dist/modules/data-tables/components/layout.mjs.map +1 -1
  491. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  492. package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
  493. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  494. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  495. package/dist/modules/data-tables/components/skeleton.mjs +4 -4
  496. package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
  497. package/dist/modules/data-tables/components/table.d.mts +7 -7
  498. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  499. package/dist/modules/data-tables/components/table.mjs +0 -1
  500. package/dist/modules/data-tables/components/table.mjs.map +1 -1
  501. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  502. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  503. package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
  504. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  505. package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
  506. package/dist/modules/data-tables/hooks/use-context.client.mjs.map +1 -1
  507. package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +1 -1
  508. package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +1 -1
  509. package/dist/modules/data-tables/hooks/use-table.client.mjs.map +1 -1
  510. package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -1
  511. package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +1 -1
  512. package/dist/modules/data-tables/lib/converters/cursor.mjs.map +1 -1
  513. package/dist/modules/data-tables/lib/converters/dto.d.mts +0 -1
  514. package/dist/modules/data-tables/lib/converters/dto.d.mts.map +1 -1
  515. package/dist/modules/data-tables/lib/converters/dto.mjs.map +1 -1
  516. package/dist/modules/data-tables/lib/converters/filter.d.mts.map +1 -1
  517. package/dist/modules/data-tables/lib/converters/search.d.mts +1 -1
  518. package/dist/modules/data-tables/lib/converters/search.d.mts.map +1 -1
  519. package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
  520. package/dist/modules/data-tables/lib/converters/sorting.d.mts +1 -1
  521. package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +1 -1
  522. package/dist/modules/data-tables/lib/converters/sorting.mjs.map +1 -1
  523. package/dist/modules/data-tables/lib/filters/config.d.mts.map +1 -1
  524. package/dist/modules/data-tables/lib/filters/config.mjs.map +1 -1
  525. package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +1 -1
  526. package/dist/modules/data-tables/lib/filters/helpers.mjs +4 -4
  527. package/dist/modules/data-tables/lib/filters/helpers.mjs.map +1 -1
  528. package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
  529. package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
  530. package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +1 -1
  531. package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -1
  532. package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +1 -1
  533. package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +1 -1
  534. package/dist/modules/data-tables/lib/search-params.d.mts +6 -6
  535. package/dist/modules/data-tables/lib/search-params.d.mts.map +1 -1
  536. package/dist/modules/data-tables/lib/types.d.mts +0 -1
  537. package/dist/modules/data-tables/lib/types.d.mts.map +1 -1
  538. package/dist/modules/data-tables/lib/validators.d.mts +0 -1
  539. package/dist/modules/data-tables/lib/validators.d.mts.map +1 -1
  540. package/dist/modules/data-tables/server/get-data.server.d.mts +1 -1
  541. package/dist/modules/data-tables/server/get-data.server.d.mts.map +1 -1
  542. package/dist/modules/data-tables/server/get-data.server.mjs.map +1 -1
  543. package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +1 -1
  544. package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -1
  545. package/dist/modules/data-tables/strategies/infinite/components.mjs.map +1 -1
  546. package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +1 -1
  547. package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +1 -1
  548. package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
  549. package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +1 -1
  550. package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +1 -1
  551. package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +1 -1
  552. package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +1 -1
  553. package/dist/modules/data-tables/tables/data-table/components/row.mjs +0 -1
  554. package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +1 -1
  555. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  556. package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
  557. package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
  558. package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +1 -1
  559. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  560. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
  561. package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +0 -1
  562. package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +1 -1
  563. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  564. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +1 -1
  565. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +1 -1
  566. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
  567. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
  568. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +0 -1
  569. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +1 -1
  570. package/dist/modules/data-tables/tables/inline-table/components/header.mjs.map +1 -1
  571. package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +0 -1
  572. package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +1 -1
  573. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  574. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
  575. package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
  576. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  577. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
  578. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +1 -1
  579. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  580. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  581. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
  582. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  583. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  584. package/dist/modules/inline-edit/components/combobox.client.mjs +3 -3
  585. package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
  586. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  587. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  588. package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
  589. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  590. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  591. package/dist/modules/inline-edit/components/date-picker.client.mjs +3 -3
  592. package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
  593. package/dist/modules/inline-edit/components/date-time.client.d.mts +21 -0
  594. package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -0
  595. package/dist/modules/inline-edit/components/date-time.client.mjs +33 -0
  596. package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -0
  597. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  598. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  599. package/dist/modules/inline-edit/components/editor.client.mjs +2 -2
  600. package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
  601. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  602. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  603. package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
  604. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  605. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  606. package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
  607. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  608. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  609. package/dist/modules/inline-edit/components/input.client.mjs +1 -1
  610. package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
  611. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  612. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  613. package/dist/modules/inline-edit/components/select.client.mjs +3 -3
  614. package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
  615. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  616. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  617. package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
  618. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  619. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  620. package/dist/modules/inline-edit/components/toggle.client.mjs +3 -3
  621. package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
  622. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  623. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  624. package/dist/modules/inline-edit/hooks/context.client.mjs +1 -1
  625. package/dist/modules/inline-edit/hooks/context.client.mjs.map +1 -1
  626. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +15 -2
  627. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
  628. package/dist/modules/inline-edit/hooks/use-inline.client.mjs +3 -3
  629. package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
  630. package/dist/modules/inline-edit/lib/validators.d.mts +0 -1
  631. package/dist/modules/inline-edit/lib/validators.d.mts.map +1 -1
  632. package/dist/modules/inline-edit/lib/validators.mjs.map +1 -1
  633. package/dist/modules/inline-edit/lib/variants.d.mts +3 -3
  634. package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
  635. package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
  636. package/dist/modules/router/handler/caller.client.d.mts +0 -1
  637. package/dist/modules/router/handler/caller.client.d.mts.map +1 -1
  638. package/dist/modules/router/handler/caller.client.mjs.map +1 -1
  639. package/dist/modules/router/handler/caller.server.d.mts.map +1 -1
  640. package/dist/modules/router/handler/context.server.d.mts.map +1 -1
  641. package/dist/modules/router/handler/context.server.mjs.map +1 -1
  642. package/dist/modules/router/handler/init.server.d.mts +6 -6
  643. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  644. package/dist/modules/router/handler/init.server.mjs.map +1 -1
  645. package/dist/modules/router/handler/register.server.d.mts.map +1 -1
  646. package/dist/modules/router/handler/register.server.mjs.map +1 -1
  647. package/dist/modules/router/handler/route.server.d.mts +0 -1
  648. package/dist/modules/router/handler/route.server.d.mts.map +1 -1
  649. package/dist/modules/router/handler/route.server.mjs.map +1 -1
  650. package/dist/modules/router/lib/query-client.d.mts +0 -1
  651. package/dist/modules/router/lib/query-client.d.mts.map +1 -1
  652. package/dist/modules/router/lib/query-client.mjs.map +1 -1
  653. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  654. package/dist/modules/router/lib/validators.d.mts +0 -1
  655. package/dist/modules/router/lib/validators.d.mts.map +1 -1
  656. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  657. package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
  658. package/dist/modules/storage/components/dropzone-context.client.mjs.map +1 -1
  659. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  660. package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
  661. package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
  662. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  663. package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
  664. package/dist/modules/storage/components/image-grid.client.mjs +2 -0
  665. package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
  666. package/dist/modules/storage/components/upload-zone-context.client.d.mts +0 -1
  667. package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
  668. package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
  669. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  670. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  671. package/dist/modules/storage/components/upload-zone.client.mjs +4 -4
  672. package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
  673. package/dist/modules/storage/config/filters.d.mts.map +1 -1
  674. package/dist/modules/storage/config/filters.mjs.map +1 -1
  675. package/dist/modules/storage/lib/constants.d.mts.map +1 -1
  676. package/dist/modules/storage/lib/create-client.server.d.mts.map +1 -1
  677. package/dist/modules/storage/lib/create-client.server.mjs.map +1 -1
  678. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
  679. package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -1
  680. package/dist/modules/storage/lib/helpers.d.mts +0 -1
  681. package/dist/modules/storage/lib/helpers.d.mts.map +1 -1
  682. package/dist/modules/storage/lib/helpers.mjs.map +1 -1
  683. package/dist/modules/storage/lib/proxy.server.d.mts.map +1 -1
  684. package/dist/modules/storage/lib/proxy.server.mjs.map +1 -1
  685. package/dist/modules/storage/lib/router.server.d.mts +1874 -1874
  686. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  687. package/dist/modules/storage/lib/router.server.mjs.map +1 -1
  688. package/dist/modules/storage/lib/schema.d.mts +92 -92
  689. package/dist/modules/storage/lib/schema.d.mts.map +1 -1
  690. package/dist/modules/storage/lib/schema.mjs +1 -1
  691. package/dist/modules/storage/lib/schema.mjs.map +1 -1
  692. package/dist/modules/storage/lib/service.server.d.mts +12 -12
  693. package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
  694. package/dist/modules/storage/lib/service.server.mjs +1 -1
  695. package/dist/modules/storage/lib/service.server.mjs.map +1 -1
  696. package/dist/modules/storage/lib/validators.d.mts +9 -9
  697. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  698. package/dist/modules/storage/lib/validators.mjs.map +1 -1
  699. package/dist/storage/client.d.mts +1 -1
  700. package/package.json +89 -99
  701. package/src/components/common/icons.tsx +2 -2
  702. package/src/components/common/status.tsx +1 -1
  703. package/src/components/editor/components/content.client.tsx +1 -1
  704. package/src/components/editor/components/editor.client.tsx +6 -6
  705. package/src/components/editor/components/menu-nodes.client.tsx +9 -9
  706. package/src/components/editor/components/menu.client.tsx +5 -5
  707. package/src/components/editor/components/spinner.tsx +2 -8
  708. package/src/components/editor/extensions/file-handler/extension.ts +1 -1
  709. package/src/components/editor/extensions/file-handler/strategy.ts +4 -4
  710. package/src/components/editor/extensions/file-handler/utils.ts +4 -2
  711. package/src/components/editor/extensions/image/extension.ts +4 -1
  712. package/src/components/editor/extensions/skeleton/renderer.tsx +4 -3
  713. package/src/components/editor/lib/extensions.ts +23 -26
  714. package/src/components/editor/lib/helpers.ts +1 -1
  715. package/src/components/editor/lib/utils.ts +1 -33
  716. package/src/components/editor/lib/variants.ts +1 -1
  717. package/src/components/emails/forget-password-email.tsx +1 -1
  718. package/src/components/entry.client.ts +1 -3
  719. package/src/components/entry.ts +3 -0
  720. package/src/components/header/back-button.client.tsx +1 -1
  721. package/src/components/header/bottom-bar.client.tsx +3 -3
  722. package/src/components/header/breadcrumbs.client.tsx +2 -2
  723. package/src/components/header/header.client.tsx +1 -1
  724. package/src/components/header/indicator.client.tsx +2 -2
  725. package/src/components/header/top-bar.client.tsx +3 -3
  726. package/src/components/layouts/admin-content.client.tsx +1 -1
  727. package/src/components/layouts/admin-error-pages.tsx +1 -1
  728. package/src/components/layouts/admin-layout.tsx +1 -1
  729. package/src/components/layouts/admin-loading.tsx +1 -1
  730. package/src/components/layouts/empty-page.tsx +1 -1
  731. package/src/components/layouts/error-page.tsx +2 -2
  732. package/src/components/layouts/error-sections.tsx +1 -1
  733. package/src/components/layouts/list-layout.tsx +1 -1
  734. package/src/components/layouts/providers.client.tsx +4 -4
  735. package/src/components/layouts/root-layout.server.tsx +3 -3
  736. package/src/components/layouts/tab-layout.tsx +3 -3
  737. package/src/components/lists/data-list.tsx +1 -1
  738. package/src/components/lists/data-stack.tsx +1 -1
  739. package/src/components/navigation/admin-sidebar-header.client.tsx +13 -13
  740. package/src/components/navigation/admin-sidebar-paths.client.tsx +6 -6
  741. package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
  742. package/src/components/navigation/admin-sidebar.client.tsx +5 -5
  743. package/src/components/ui/accordion.tsx +1 -2
  744. package/src/components/ui/alert-dialog.tsx +1 -1
  745. package/src/components/ui/alert.tsx +1 -1
  746. package/src/components/ui/avatar.client.tsx +1 -1
  747. package/src/components/ui/badge.tsx +1 -1
  748. package/src/components/ui/breadcrumb.tsx +4 -2
  749. package/src/components/ui/button.tsx +1 -1
  750. package/src/components/ui/calendar.tsx +2 -3
  751. package/src/components/ui/card.tsx +1 -1
  752. package/src/components/ui/carousel.tsx +2 -0
  753. package/src/components/ui/chart.client.tsx +12 -10
  754. package/src/components/ui/checkbox.tsx +1 -1
  755. package/src/components/ui/color-picker.client.tsx +4 -3
  756. package/src/components/ui/combobox-dropdown.client.tsx +2 -4
  757. package/src/components/ui/combobox.client.tsx +2 -2
  758. package/src/components/ui/command.tsx +1 -1
  759. package/src/components/ui/context-menu.tsx +1 -1
  760. package/src/components/ui/date-picker.client.tsx +2 -2
  761. package/src/components/ui/dialog.client.tsx +1 -1
  762. package/src/components/ui/drawer.client.tsx +1 -1
  763. package/src/components/ui/dropdown-menu.tsx +1 -1
  764. package/src/components/ui/form.client.tsx +4 -4
  765. package/src/components/ui/hover-card.client.tsx +1 -1
  766. package/src/components/ui/input-date-time.tsx +58 -0
  767. package/src/components/ui/input-date.tsx +20 -0
  768. package/src/components/ui/input-recipient.tsx +6 -3
  769. package/src/components/ui/input-time.tsx +20 -0
  770. package/src/components/ui/input.tsx +1 -1
  771. package/src/components/ui/label.tsx +1 -1
  772. package/src/components/ui/navigation-menu.tsx +1 -1
  773. package/src/components/ui/pagination.tsx +4 -2
  774. package/src/components/ui/popover.tsx +1 -1
  775. package/src/components/ui/progress.client.tsx +1 -1
  776. package/src/components/ui/radio-group.tsx +1 -1
  777. package/src/components/ui/resizable.client.tsx +1 -1
  778. package/src/components/ui/scroll-area.tsx +1 -1
  779. package/src/components/ui/select.client.tsx +1 -1
  780. package/src/components/ui/separator.tsx +1 -1
  781. package/src/components/ui/sheet.client.tsx +1 -1
  782. package/src/components/ui/sidebar.client.tsx +5 -2
  783. package/src/components/ui/sonner.client.tsx +1 -1
  784. package/src/components/ui/switch.tsx +1 -1
  785. package/src/components/ui/tabs.tsx +1 -1
  786. package/src/components/ui/textarea.tsx +1 -1
  787. package/src/components/ui/toggle-group.client.tsx +1 -1
  788. package/src/components/ui/toggle.tsx +1 -1
  789. package/src/components/ui/tooltip.client.tsx +1 -1
  790. package/src/lib/config/constants.ts +1 -1
  791. package/src/lib/hooks/use-action.ts +3 -3
  792. package/src/lib/types/config.ts +1 -1
  793. package/src/lib/utils/cn.ts +1 -1
  794. package/src/lib/utils/manifest.ts +3 -2
  795. package/src/lib/utils/time-picker.ts +2 -2
  796. package/src/lib/utils/url.ts +1 -1
  797. package/src/modules/auth/components/allowed.client.tsx +2 -2
  798. package/src/modules/auth/components/auth-layout.server.tsx +1 -1
  799. package/src/modules/auth/components/create-first-user-page.client.tsx +10 -11
  800. package/src/modules/auth/components/forget-password-page.client.tsx +5 -5
  801. package/src/modules/auth/components/guard-first-user.server.tsx +2 -5
  802. package/src/modules/auth/components/guard.server.tsx +3 -3
  803. package/src/modules/auth/components/login-page.client.tsx +5 -5
  804. package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
  805. package/src/modules/auth/components/update-password-command.tsx +5 -5
  806. package/src/modules/auth/db/schema.ts +2 -2
  807. package/src/modules/auth/entry.server.ts +1 -1
  808. package/src/modules/auth/handler/create-client.client.ts +3 -3
  809. package/src/modules/auth/handler/init.ts +6 -6
  810. package/src/modules/auth/handler/proxy.server.ts +1 -2
  811. package/src/modules/auth/handler/route.server.ts +2 -2
  812. package/src/modules/auth/hooks/use-auth-client.tsx +3 -3
  813. package/src/modules/auth/hooks/use-permission.ts +1 -1
  814. package/src/modules/auth/hooks/use-session.ts +1 -2
  815. package/src/modules/auth/lib/helpers.server.ts +4 -4
  816. package/src/modules/commands/components/alert-dialog-command.client.tsx +8 -8
  817. package/src/modules/commands/components/click-command.client.tsx +3 -3
  818. package/src/modules/commands/components/command-trigger.client.tsx +1 -1
  819. package/src/modules/commands/components/dialog-command.client.tsx +3 -3
  820. package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
  821. package/src/modules/commands/components/empty-command.client.tsx +1 -1
  822. package/src/modules/commands/components/form-dialog-command.client.tsx +5 -5
  823. package/src/modules/commands/components/render-command.tsx +2 -2
  824. package/src/modules/commands/hooks/context.client.tsx +1 -1
  825. package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -4
  826. package/src/modules/commands/hooks/use-command-mutation.client.tsx +1 -1
  827. package/src/modules/commands/menus/context-menu.client.tsx +20 -19
  828. package/src/modules/commands/menus/data-table-menu.client.tsx +2 -2
  829. package/src/modules/commands/menus/dropdown-menu.client.tsx +6 -3
  830. package/src/modules/commands/menus/inline-menu.client.tsx +6 -2
  831. package/src/modules/commands/menus/responsive-menu.client.tsx +1 -1
  832. package/src/modules/commands/utils/archive-command.client.tsx +1 -1
  833. package/src/modules/commands/utils/delete-command.client.tsx +1 -1
  834. package/src/modules/config/db/helpers.ts +1 -1
  835. package/src/modules/config/db/init.ts +2 -2
  836. package/src/modules/config/lib/context.ts +5 -5
  837. package/src/modules/config/paths/helpers.ts +1 -1
  838. package/src/modules/config/paths/types.ts +4 -5
  839. package/src/modules/data-tables/components/cell/common.client.tsx +1 -1
  840. package/src/modules/data-tables/components/column-header.tsx +2 -2
  841. package/src/modules/data-tables/components/filters/combobox.client.tsx +3 -3
  842. package/src/modules/data-tables/components/filters/slider.client.tsx +5 -5
  843. package/src/modules/data-tables/components/footer.tsx +2 -2
  844. package/src/modules/data-tables/components/header.tsx +2 -2
  845. package/src/modules/data-tables/components/layout.tsx +1 -1
  846. package/src/modules/data-tables/components/skeleton.tsx +22 -29
  847. package/src/modules/data-tables/components/table.tsx +1 -1
  848. package/src/modules/data-tables/components/toolbar.tsx +1 -1
  849. package/src/modules/data-tables/entry.client.ts +9 -13
  850. package/src/modules/data-tables/hooks/use-context.client.tsx +6 -6
  851. package/src/modules/data-tables/hooks/use-selection.client.ts +1 -1
  852. package/src/modules/data-tables/hooks/use-table.client.ts +1 -1
  853. package/src/modules/data-tables/lib/converters/cursor.ts +1 -1
  854. package/src/modules/data-tables/lib/converters/dto.ts +1 -1
  855. package/src/modules/data-tables/lib/converters/search.ts +2 -2
  856. package/src/modules/data-tables/lib/converters/sorting.ts +2 -2
  857. package/src/modules/data-tables/lib/filters/config.ts +2 -2
  858. package/src/modules/data-tables/lib/filters/helpers.ts +4 -4
  859. package/src/modules/data-tables/lib/filters/parsers.ts +2 -2
  860. package/src/modules/data-tables/lib/filters/resolvers.ts +2 -2
  861. package/src/modules/data-tables/lib/helpers/create-column.ts +1 -1
  862. package/src/modules/data-tables/lib/types.ts +6 -5
  863. package/src/modules/data-tables/server/get-data.server.ts +8 -8
  864. package/src/modules/data-tables/strategies/helpers/sorting.ts +7 -3
  865. package/src/modules/data-tables/strategies/infinite/components.tsx +4 -4
  866. package/src/modules/data-tables/strategies/infinite/strategy.ts +2 -2
  867. package/src/modules/data-tables/strategies/pagination/components.tsx +2 -2
  868. package/src/modules/data-tables/strategies/pagination/strategy.ts +2 -2
  869. package/src/modules/data-tables/tables/data-table/components/body.tsx +3 -3
  870. package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
  871. package/src/modules/data-tables/tables/data-table/components/row.tsx +3 -3
  872. package/src/modules/data-tables/tables/data-table/components/table.tsx +2 -2
  873. package/src/modules/data-tables/tables/inline-table/components/body.tsx +5 -5
  874. package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +1 -1
  875. package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +9 -5
  876. package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
  877. package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -1
  878. package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +5 -5
  879. package/src/modules/data-tables/tables/inline-table/components/table.tsx +3 -3
  880. package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +2 -2
  881. package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +2 -2
  882. package/src/modules/inline-edit/components/combobox.client.tsx +2 -2
  883. package/src/modules/inline-edit/components/date-input.client.tsx +4 -4
  884. package/src/modules/inline-edit/components/date-picker.client.tsx +3 -3
  885. package/src/modules/inline-edit/components/date-time.client.tsx +40 -0
  886. package/src/modules/inline-edit/components/editor.client.tsx +3 -3
  887. package/src/modules/inline-edit/components/input-recipient.client.tsx +3 -3
  888. package/src/modules/inline-edit/components/input-toggle.client.tsx +3 -3
  889. package/src/modules/inline-edit/components/input.client.tsx +3 -3
  890. package/src/modules/inline-edit/components/select.client.tsx +8 -8
  891. package/src/modules/inline-edit/components/switch.client.tsx +1 -1
  892. package/src/modules/inline-edit/components/toggle.client.tsx +1 -1
  893. package/src/modules/inline-edit/entry.client.ts +12 -2
  894. package/src/modules/inline-edit/entry.server.ts +3 -0
  895. package/src/modules/inline-edit/entry.ts +3 -0
  896. package/src/modules/inline-edit/hooks/context.client.tsx +3 -2
  897. package/src/modules/inline-edit/hooks/use-inline.client.tsx +5 -5
  898. package/src/modules/inline-edit/lib/validators.ts +1 -1
  899. package/src/modules/inline-edit/lib/variants.ts +1 -1
  900. package/src/modules/router/handler/caller.client.tsx +2 -2
  901. package/src/modules/router/handler/context.server.ts +4 -4
  902. package/src/modules/router/handler/init.server.ts +3 -3
  903. package/src/modules/router/handler/register.server.ts +3 -3
  904. package/src/modules/router/handler/route.server.ts +3 -3
  905. package/src/modules/router/lib/query-client.ts +0 -1
  906. package/src/modules/storage/components/dropzone-context.client.tsx +1 -1
  907. package/src/modules/storage/components/dropzone.client.tsx +3 -3
  908. package/src/modules/storage/components/image-grid.client.tsx +23 -19
  909. package/src/modules/storage/components/upload-button.client.tsx +2 -2
  910. package/src/modules/storage/components/upload-zone-context.client.tsx +2 -2
  911. package/src/modules/storage/components/upload-zone.client.tsx +5 -5
  912. package/src/modules/storage/config/filters.ts +1 -1
  913. package/src/modules/storage/entry.client.ts +3 -2
  914. package/src/modules/storage/lib/create-client.server.ts +2 -2
  915. package/src/modules/storage/lib/create-upload.client.ts +2 -2
  916. package/src/modules/storage/lib/helpers.ts +3 -3
  917. package/src/modules/storage/lib/proxy.server.ts +4 -4
  918. package/src/modules/storage/lib/router.server.ts +5 -5
  919. package/src/modules/storage/lib/schema.ts +2 -2
  920. package/src/modules/storage/lib/service.server.ts +21 -21
  921. package/src/modules/storage/lib/validators.ts +3 -3
  922. package/src/styles.css +1 -1
  923. package/dist/components/ui/time-input.client.d.mts +0 -16
  924. package/dist/components/ui/time-input.client.d.mts.map +0 -1
  925. package/dist/components/ui/time-input.client.mjs +0 -53
  926. package/dist/components/ui/time-input.client.mjs.map +0 -1
  927. package/dist/components/ui/time-picker-input.client.d.mts +0 -15
  928. package/dist/components/ui/time-picker-input.client.d.mts.map +0 -1
  929. package/dist/components/ui/time-picker-input.client.mjs +0 -64
  930. package/dist/components/ui/time-picker-input.client.mjs.map +0 -1
  931. package/dist/lib/utils/time-picker.d.mts +0 -6
  932. package/dist/lib/utils/time-picker.d.mts.map +0 -1
  933. package/dist/lib/utils/time-picker.mjs +0 -104
  934. package/dist/lib/utils/time-picker.mjs.map +0 -1
  935. package/src/components/ui/time-input.client.tsx +0 -56
  936. package/src/components/ui/time-picker-input.client.tsx +0 -107
  937. package/src/modules/auth/lib/utils.ts +0 -17
  938. package/src/modules/config/db/create-client.ts +0 -40
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/init.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;cAca,gBAAA;KAER,8BAA8B;MAC7B,eAAe;SACZ;UACC;MACJ,kBAAkB;6BAEF;;AART,iBAYG,QAZa,CAAA,gBAYY,eAZZ,CAAA,CAAA,KAAA,EAYoC,aAZpC,CAYkD,OAZlD,CAAA,CAAA,eAY0D,IAZ1D,CAAA;EAExB,QAAA,EAAA;IAA8B,YAAA,EAAA,MAAA;IACd,QAAA,EAAA;MAAf,UAAA,EAAA,GAAA,GAAA,KAAA;IACG,CAAA;EACC,CAAA;EACc,QAAA,EAAA,CAAA,OAAA,EAMsD,YAAA,CAAA,iBANtD,EAAA,yBAAA,gCAAA;EAAlB,gBAAA,EAAA;IAEgB,OAAA,EAAA,IAAA;EAAI,CAAA;EAIV,IAAA,EAAA;IAAyB,WAAA,EAAA;MAAsC,OAAA,EAAA,IAAA;IAAd,CAAA;IAAa,gBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAS,EAAA,EAAA,MAAA;cAAA,SAAA,MAAA;cAoFjE,SAAqB,MAAlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAb,UAAA,GAAa,kBAAkB"}
1
+ {"version":3,"file":"init.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/init.ts"],"mappings":";;;;;;;;;;;;;;cAca,gBAAA;AAAA,KAER,aAAA,iBAA8B,eAAA;EACjC,EAAA,EAAI,cAAA,CAAe,OAAA;EACnB,KAAA,EAAO,WAAA;EACP,MAAA,EAAQ,WAAA;EACR,EAAA,EAAI,UAAA,QAAkB,mBAAA;EACtB,KAAA,sBACoB,MAAA;AAAA;AAAA,iBAIN,QAAA,iBAAyB,eAAA,CAAA,CAAiB,KAAA,EAAO,aAAA,CAAc,OAAA,iBAAQ,IAAA;;;;;;;sBAAT,YAAA,CAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoFlE,UAAA,GAAa,UAAA,QAAkB,QAAA"}
@@ -1,6 +1,6 @@
1
1
  import { url } from "../../../lib/utils/url.mjs";
2
2
  import { users } from "../db/schema.mjs";
3
- import forget_password_email_default from "../../../components/emails/forget-password-email.mjs";
3
+ import ForgetPasswordEmail from "../../../components/emails/forget-password-email.mjs";
4
4
  import { eq } from "drizzle-orm";
5
5
  import { passkey } from "@better-auth/passkey";
6
6
  import { drizzleAdapter } from "better-auth/adapters/drizzle";
@@ -63,7 +63,7 @@ function initAuth(props) {
63
63
  from: props.config.email.defaultFrom,
64
64
  to: email,
65
65
  subject: "Wachtwoord herstellen",
66
- react: forget_password_email_default({ resetPasswordHref })
66
+ react: ForgetPasswordEmail({ resetPasswordHref })
67
67
  });
68
68
  if (result.error) throw new Error(result.error.message);
69
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"init.mjs","names":["ForgetPasswordEmail"],"sources":["../../../../src/modules/auth/handler/init.ts"],"sourcesContent":["import ForgetPasswordEmail from \"@/components/emails/forget-password-email\";\nimport { url } from \"@/lib/utils/url\";\nimport { TDatabaseSchema } from \"@/modules/config/entry\";\nimport { DatabaseClient, EmailClient } from \"@/modules/config/entry.server\";\nimport { TulipConfig } from \"@/modules/config/lib/config\";\nimport { passkey } from \"@better-auth/passkey\";\nimport { drizzleAdapter } from \"better-auth/adapters/drizzle\";\nimport { betterAuth } from \"better-auth/minimal\";\nimport { nextCookies } from \"better-auth/next-js\";\nimport { admin, createAuthMiddleware, emailOTP } from \"better-auth/plugins\";\nimport { eq } from \"drizzle-orm\";\nimport { users } from \"../entry\";\nimport { createAccessControl, Role } from \"../lib/permissions\";\n\nexport const authCookiePrefix = \"tulip\";\n\ntype InitAuthProps<TSchema extends TDatabaseSchema> = {\n db: DatabaseClient<TSchema>;\n email: EmailClient;\n config: TulipConfig;\n ac: ReturnType<typeof createAccessControl>;\n roles: {\n [key in string]?: Role;\n };\n};\n\nexport function initAuth<TSchema extends TDatabaseSchema>(props: InitAuthProps<TSchema>) {\n return betterAuth({\n advanced: {\n cookiePrefix: authCookiePrefix,\n database: {\n generateId: () => false,\n },\n },\n database: drizzleAdapter(props.db, {\n provider: \"pg\",\n usePlural: true,\n // schema: props.schema,\n }),\n emailAndPassword: {\n enabled: true,\n },\n user: {\n changeEmail: {\n enabled: true,\n },\n additionalFields: {\n firstName: {\n type: \"string\",\n required: true,\n input: true,\n },\n lastName: {\n type: \"string\",\n required: true,\n input: true,\n },\n },\n },\n hooks: {\n after: createAuthMiddleware(async (ctx) => {\n if (!ctx.path.startsWith(\"/sign-up\")) return;\n\n const session = ctx.context.newSession;\n if (!session) return;\n\n const existingUsers = await props.db.select().from(users);\n\n if (existingUsers.length === 1) {\n await props.db\n .update(users)\n .set({ role: \"developer\" })\n .where(eq(users.id, session.user.id));\n }\n }),\n },\n plugins: [\n nextCookies(),\n passkey(),\n admin({\n roles: props.roles,\n ac: props.ac,\n adminRoles: [\"admin\", \"developer\"],\n }),\n emailOTP({\n sendVerificationOTP: async ({ email, otp, type }) => {\n /**\n * Send a forget password mail\n */\n if (type === \"forget-password\") {\n const searchParams = new URLSearchParams();\n searchParams.set(\"email\", email);\n searchParams.set(\"otp\", otp);\n\n const resetPasswordHref = url(`/auth/reset-password?${searchParams.toString()}`);\n\n const result = await props.email.emails.send({\n from: props.config.email.defaultFrom,\n to: email,\n subject: \"Wachtwoord herstellen\",\n react: ForgetPasswordEmail({ resetPasswordHref }),\n });\n if (result.error) throw new Error(result.error.message);\n }\n },\n }),\n ],\n });\n}\n\nexport type AuthClient = ReturnType<typeof initAuth>;\n"],"mappings":";;;;;;;;;;;AAcA,MAAa,mBAAmB;AAYhC,SAAgB,SAA0C,OAA+B;AACvF,QAAO,WAAW;EAChB,UAAU;GACR,cAAc;GACd,UAAU,EACR,kBAAkB,OACnB;GACF;EACD,UAAU,eAAe,MAAM,IAAI;GACjC,UAAU;GACV,WAAW;GAEZ,CAAC;EACF,kBAAkB,EAChB,SAAS,MACV;EACD,MAAM;GACJ,aAAa,EACX,SAAS,MACV;GACD,kBAAkB;IAChB,WAAW;KACT,MAAM;KACN,UAAU;KACV,OAAO;KACR;IACD,UAAU;KACR,MAAM;KACN,UAAU;KACV,OAAO;KACR;IACF;GACF;EACD,OAAO,EACL,OAAO,qBAAqB,OAAO,QAAQ;AACzC,OAAI,CAAC,IAAI,KAAK,WAAW,WAAW,CAAE;GAEtC,MAAM,UAAU,IAAI,QAAQ;AAC5B,OAAI,CAAC,QAAS;AAId,QAFsB,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,MAAM,EAEvC,WAAW,EAC3B,OAAM,MAAM,GACT,OAAO,MAAM,CACb,IAAI,EAAE,MAAM,aAAa,CAAC,CAC1B,MAAM,GAAG,MAAM,IAAI,QAAQ,KAAK,GAAG,CAAC;IAEzC,EACH;EACD,SAAS;GACP,aAAa;GACb,SAAS;GACT,MAAM;IACJ,OAAO,MAAM;IACb,IAAI,MAAM;IACV,YAAY,CAAC,SAAS,YAAY;IACnC,CAAC;GACF,SAAS,EACP,qBAAqB,OAAO,EAAE,OAAO,KAAK,WAAW;;;;AAInD,QAAI,SAAS,mBAAmB;KAC9B,MAAM,eAAe,IAAI,iBAAiB;AAC1C,kBAAa,IAAI,SAAS,MAAM;AAChC,kBAAa,IAAI,OAAO,IAAI;KAE5B,MAAM,oBAAoB,IAAI,wBAAwB,aAAa,UAAU,GAAG;KAEhF,MAAM,SAAS,MAAM,MAAM,MAAM,OAAO,KAAK;MAC3C,MAAM,MAAM,OAAO,MAAM;MACzB,IAAI;MACJ,SAAS;MACT,OAAOA,8BAAoB,EAAE,mBAAmB,CAAC;MAClD,CAAC;AACF,SAAI,OAAO,MAAO,OAAM,IAAI,MAAM,OAAO,MAAM,QAAQ;;MAG5D,CAAC;GACH;EACF,CAAC"}
1
+ {"version":3,"file":"init.mjs","names":[],"sources":["../../../../src/modules/auth/handler/init.ts"],"sourcesContent":["import { passkey } from \"@better-auth/passkey\";\nimport { drizzleAdapter } from \"better-auth/adapters/drizzle\";\nimport { betterAuth } from \"better-auth/minimal\";\nimport { nextCookies } from \"better-auth/next-js\";\nimport { admin, createAuthMiddleware, emailOTP } from \"better-auth/plugins\";\nimport { eq } from \"drizzle-orm\";\nimport ForgetPasswordEmail from \"@/components/emails/forget-password-email\";\nimport { url } from \"@/lib/utils/url\";\nimport type { TDatabaseSchema } from \"@/modules/config/entry\";\nimport type { DatabaseClient, EmailClient } from \"@/modules/config/entry.server\";\nimport type { TulipConfig } from \"@/modules/config/lib/config\";\nimport { users } from \"../entry\";\nimport type { createAccessControl, Role } from \"../lib/permissions\";\n\nexport const authCookiePrefix = \"tulip\";\n\ntype InitAuthProps<TSchema extends TDatabaseSchema> = {\n db: DatabaseClient<TSchema>;\n email: EmailClient;\n config: TulipConfig;\n ac: ReturnType<typeof createAccessControl>;\n roles: {\n [key in string]?: Role;\n };\n};\n\nexport function initAuth<TSchema extends TDatabaseSchema>(props: InitAuthProps<TSchema>) {\n return betterAuth({\n advanced: {\n cookiePrefix: authCookiePrefix,\n database: {\n generateId: () => false,\n },\n },\n database: drizzleAdapter(props.db, {\n provider: \"pg\",\n usePlural: true,\n // schema: props.schema,\n }),\n emailAndPassword: {\n enabled: true,\n },\n user: {\n changeEmail: {\n enabled: true,\n },\n additionalFields: {\n firstName: {\n type: \"string\",\n required: true,\n input: true,\n },\n lastName: {\n type: \"string\",\n required: true,\n input: true,\n },\n },\n },\n hooks: {\n after: createAuthMiddleware(async (ctx) => {\n if (!ctx.path.startsWith(\"/sign-up\")) return;\n\n const session = ctx.context.newSession;\n if (!session) return;\n\n const existingUsers = await props.db.select().from(users);\n\n if (existingUsers.length === 1) {\n await props.db\n .update(users)\n .set({ role: \"developer\" })\n .where(eq(users.id, session.user.id));\n }\n }),\n },\n plugins: [\n nextCookies(),\n passkey(),\n admin({\n roles: props.roles,\n ac: props.ac,\n adminRoles: [\"admin\", \"developer\"],\n }),\n emailOTP({\n sendVerificationOTP: async ({ email, otp, type }) => {\n /**\n * Send a forget password mail\n */\n if (type === \"forget-password\") {\n const searchParams = new URLSearchParams();\n searchParams.set(\"email\", email);\n searchParams.set(\"otp\", otp);\n\n const resetPasswordHref = url(`/auth/reset-password?${searchParams.toString()}`);\n\n const result = await props.email.emails.send({\n from: props.config.email.defaultFrom,\n to: email,\n subject: \"Wachtwoord herstellen\",\n react: ForgetPasswordEmail({ resetPasswordHref }),\n });\n if (result.error) throw new Error(result.error.message);\n }\n },\n }),\n ],\n });\n}\n\nexport type AuthClient = ReturnType<typeof initAuth>;\n"],"mappings":";;;;;;;;;;;AAcA,MAAa,mBAAmB;AAYhC,SAAgB,SAA0C,OAA+B;AACvF,QAAO,WAAW;EAChB,UAAU;GACR,cAAc;GACd,UAAU,EACR,kBAAkB,OACnB;GACF;EACD,UAAU,eAAe,MAAM,IAAI;GACjC,UAAU;GACV,WAAW;GAEZ,CAAC;EACF,kBAAkB,EAChB,SAAS,MACV;EACD,MAAM;GACJ,aAAa,EACX,SAAS,MACV;GACD,kBAAkB;IAChB,WAAW;KACT,MAAM;KACN,UAAU;KACV,OAAO;KACR;IACD,UAAU;KACR,MAAM;KACN,UAAU;KACV,OAAO;KACR;IACF;GACF;EACD,OAAO,EACL,OAAO,qBAAqB,OAAO,QAAQ;AACzC,OAAI,CAAC,IAAI,KAAK,WAAW,WAAW,CAAE;GAEtC,MAAM,UAAU,IAAI,QAAQ;AAC5B,OAAI,CAAC,QAAS;AAId,QAFsB,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,MAAM,EAEvC,WAAW,EAC3B,OAAM,MAAM,GACT,OAAO,MAAM,CACb,IAAI,EAAE,MAAM,aAAa,CAAC,CAC1B,MAAM,GAAG,MAAM,IAAI,QAAQ,KAAK,GAAG,CAAC;IAEzC,EACH;EACD,SAAS;GACP,aAAa;GACb,SAAS;GACT,MAAM;IACJ,OAAO,MAAM;IACb,IAAI,MAAM;IACV,YAAY,CAAC,SAAS,YAAY;IACnC,CAAC;GACF,SAAS,EACP,qBAAqB,OAAO,EAAE,OAAO,KAAK,WAAW;;;;AAInD,QAAI,SAAS,mBAAmB;KAC9B,MAAM,eAAe,IAAI,iBAAiB;AAC1C,kBAAa,IAAI,SAAS,MAAM;AAChC,kBAAa,IAAI,OAAO,IAAI;KAE5B,MAAM,oBAAoB,IAAI,wBAAwB,aAAa,UAAU,GAAG;KAEhF,MAAM,SAAS,MAAM,MAAM,MAAM,OAAO,KAAK;MAC3C,MAAM,MAAM,OAAO,MAAM;MACzB,IAAI;MACJ,SAAS;MACT,OAAO,oBAAoB,EAAE,mBAAmB,CAAC;MAClD,CAAC;AACF,SAAI,OAAO,MAAO,OAAM,IAAI,MAAM,OAAO,MAAM,QAAQ;;MAG5D,CAAC;GACH;EACF,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { NextRequest, NextResponse } from "next/server";
2
2
 
3
3
  //#region src/modules/auth/handler/proxy.server.d.ts
4
-
5
4
  /**
6
5
  * Create auth proxy
7
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.server.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/proxy.server.ts"],"sourcesContent":[],"mappings":";;;;;;AAQA;iBAAgB,eAAA;;UACD,gBAAW"}
1
+ {"version":3,"file":"proxy.server.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/proxy.server.ts"],"mappings":";;;;;AAOA;iBAAgB,eAAA,CAAgB,KAAA;EAAS,YAAA;AAAA,KAC/B,GAAA,EAAK,WAAA,KAAW,YAAA"}
@@ -1,7 +1,6 @@
1
1
  import { authCookiePrefix } from "./init.mjs";
2
2
  import { getSessionCookie } from "better-auth/cookies";
3
3
  import { NextResponse } from "next/server";
4
- import { URLPattern } from "urlpattern-polyfill";
5
4
 
6
5
  //#region src/modules/auth/handler/proxy.server.ts
7
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.server.mjs","names":[],"sources":["../../../../src/modules/auth/handler/proxy.server.ts"],"sourcesContent":["import { getSessionCookie } from \"better-auth/cookies\";\nimport { NextRequest, NextResponse } from \"next/server\";\nimport { URLPattern } from \"urlpattern-polyfill\";\nimport { authCookiePrefix } from \"./init\";\n\n/**\n * Create auth proxy\n */\nexport function createAuthProxy(props: { publicRoutes: string[] }) {\n return (req: NextRequest) => {\n // 1. Check if the current route is protected or public\n const pathname = req.nextUrl.pathname;\n\n const isPublicRoute = props.publicRoutes.some((route) =>\n new URLPattern({ pathname: route }).test({ pathname }),\n );\n\n // 2. Check if a session cookie is present\n const sessionCookie = getSessionCookie(req, { cookiePrefix: authCookiePrefix });\n\n // 3. Redirect to /auth/login if the user is not authenticated\n if (!isPublicRoute && !sessionCookie) {\n return NextResponse.redirect(new URL(\"/auth/login\", req.nextUrl));\n }\n\n return NextResponse.next();\n };\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,gBAAgB,OAAmC;AACjE,SAAQ,QAAqB;EAE3B,MAAM,WAAW,IAAI,QAAQ;EAE7B,MAAM,gBAAgB,MAAM,aAAa,MAAM,UAC7C,IAAI,WAAW,EAAE,UAAU,OAAO,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CACvD;EAGD,MAAM,gBAAgB,iBAAiB,KAAK,EAAE,cAAc,kBAAkB,CAAC;AAG/E,MAAI,CAAC,iBAAiB,CAAC,cACrB,QAAO,aAAa,SAAS,IAAI,IAAI,eAAe,IAAI,QAAQ,CAAC;AAGnE,SAAO,aAAa,MAAM"}
1
+ {"version":3,"file":"proxy.server.mjs","names":[],"sources":["../../../../src/modules/auth/handler/proxy.server.ts"],"sourcesContent":["import { getSessionCookie } from \"better-auth/cookies\";\nimport { type NextRequest, NextResponse } from \"next/server\";\nimport { authCookiePrefix } from \"./init\";\n\n/**\n * Create auth proxy\n */\nexport function createAuthProxy(props: { publicRoutes: string[] }) {\n return (req: NextRequest) => {\n // 1. Check if the current route is protected or public\n const pathname = req.nextUrl.pathname;\n\n const isPublicRoute = props.publicRoutes.some((route) =>\n new URLPattern({ pathname: route }).test({ pathname }),\n );\n\n // 2. Check if a session cookie is present\n const sessionCookie = getSessionCookie(req, { cookiePrefix: authCookiePrefix });\n\n // 3. Redirect to /auth/login if the user is not authenticated\n if (!isPublicRoute && !sessionCookie) {\n return NextResponse.redirect(new URL(\"/auth/login\", req.nextUrl));\n }\n\n return NextResponse.next();\n };\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,gBAAgB,OAAmC;AACjE,SAAQ,QAAqB;EAE3B,MAAM,WAAW,IAAI,QAAQ;EAE7B,MAAM,gBAAgB,MAAM,aAAa,MAAM,UAC7C,IAAI,WAAW,EAAE,UAAU,OAAO,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CACvD;EAGD,MAAM,gBAAgB,iBAAiB,KAAK,EAAE,cAAc,kBAAkB,CAAC;AAG/E,MAAI,CAAC,iBAAiB,CAAC,cACrB,QAAO,aAAa,SAAS,IAAI,IAAI,eAAe,IAAI,QAAQ,CAAC;AAGnE,SAAO,aAAa,MAAM"}
@@ -3,7 +3,6 @@ import "server-cli-only";
3
3
  import { NextRequest } from "next/server";
4
4
 
5
5
  //#region src/modules/auth/handler/route.server.d.ts
6
-
7
6
  /**
8
7
  * Handle the auth routes
9
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"route.server.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/route.server.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAQA;AAA+C,iBAA/B,eAAA,CAA+B,KAAA,EAAA;EAIjB,IAAA,EAJiB,UAIjB;CAAW,CAAA,EAAA;EAAA,GAAA,EAAA,CAAA,OAAA,EAAX,WAAW,EAAA,GAAA,OAAA,CAAA,QAAA,CAAA;EAQV,IAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,GAAW,OAAX,CAAW,QAAX,CAAA;CAAW"}
1
+ {"version":3,"file":"route.server.d.mts","names":[],"sources":["../../../../src/modules/auth/handler/route.server.ts"],"mappings":";;;;;;;AAQA;iBAAgB,eAAA,CAAgB,KAAA;EAAS,IAAA,EAAM,UAAA;AAAA;iBAIjB,WAAA,KAAW,OAAA,CAAA,QAAA;kBAQV,WAAA,KAAW,OAAA,CAAA,QAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"route.server.mjs","names":[],"sources":["../../../../src/modules/auth/handler/route.server.ts"],"sourcesContent":["import { toNextJsHandler } from \"better-auth/next-js\";\nimport { NextRequest } from \"next/server\";\nimport \"server-cli-only\";\nimport { AuthClient } from \"./init\";\n\n/**\n * Handle the auth routes\n */\nexport function handleAuthRoute(props: { auth: AuthClient }) {\n /**\n * GET route handler\n */\n async function GET(request: NextRequest) {\n const routes = toNextJsHandler(props.auth.handler);\n return routes.GET(request);\n }\n\n /**\n * POST route handler\n */\n async function POST(request: NextRequest) {\n const routes = toNextJsHandler(props.auth.handler);\n return routes.POST(request);\n }\n\n return { GET, POST };\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,gBAAgB,OAA6B;;;;CAI3D,eAAe,IAAI,SAAsB;AAEvC,SADe,gBAAgB,MAAM,KAAK,QAAQ,CACpC,IAAI,QAAQ;;;;;CAM5B,eAAe,KAAK,SAAsB;AAExC,SADe,gBAAgB,MAAM,KAAK,QAAQ,CACpC,KAAK,QAAQ;;AAG7B,QAAO;EAAE;EAAK;EAAM"}
1
+ {"version":3,"file":"route.server.mjs","names":[],"sources":["../../../../src/modules/auth/handler/route.server.ts"],"sourcesContent":["import { toNextJsHandler } from \"better-auth/next-js\";\nimport type { NextRequest } from \"next/server\";\nimport \"server-cli-only\";\nimport type { AuthClient } from \"./init\";\n\n/**\n * Handle the auth routes\n */\nexport function handleAuthRoute(props: { auth: AuthClient }) {\n /**\n * GET route handler\n */\n async function GET(request: NextRequest) {\n const routes = toNextJsHandler(props.auth.handler);\n return routes.GET(request);\n }\n\n /**\n * POST route handler\n */\n async function POST(request: NextRequest) {\n const routes = toNextJsHandler(props.auth.handler);\n return routes.POST(request);\n }\n\n return { GET, POST };\n}\n"],"mappings":";;;;;;;AAQA,SAAgB,gBAAgB,OAA6B;;;;CAI3D,eAAe,IAAI,SAAsB;AAEvC,SADe,gBAAgB,MAAM,KAAK,QAAQ,CACpC,IAAI,QAAQ;;;;;CAM5B,eAAe,KAAK,SAAsB;AAExC,SADe,gBAAgB,MAAM,KAAK,QAAQ,CACpC,KAAK,QAAQ;;AAG7B,QAAO;EAAE;EAAK;EAAM"}
@@ -1,6 +1,6 @@
1
1
  import { ClientAuth } from "../handler/create-client.client.mjs";
2
- import * as react_jsx_runtime66 from "react/jsx-runtime";
3
- import * as react7 from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as react from "react";
4
4
  import { PropsWithChildren } from "react";
5
5
  import { AccessControl, Role } from "better-auth/plugins";
6
6
 
@@ -8,7 +8,7 @@ import { AccessControl, Role } from "better-auth/plugins";
8
8
  /**
9
9
  * Auth client context
10
10
  */
11
- declare const AuthClientContext: react7.Context<ClientAuth<never, never>>;
11
+ declare const AuthClientContext: react.Context<ClientAuth<never, never>>;
12
12
  /**
13
13
  * Use auth client
14
14
  */
@@ -18,7 +18,7 @@ declare function useAuthClient<TAccessControl extends AccessControl = never, TRo
18
18
  */
19
19
  declare function AuthProvider<TAccessControl extends AccessControl, TRoles extends { [key in string]: Role }>(props: PropsWithChildren<{
20
20
  authClient: ClientAuth<TAccessControl, TRoles>;
21
- }>): react_jsx_runtime66.JSX.Element;
21
+ }>): react_jsx_runtime0.JSX.Element;
22
22
  //#endregion
23
23
  export { AuthClientContext, AuthProvider, useAuthClient };
24
24
  //# sourceMappingURL=use-auth-client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-auth-client.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-auth-client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;cAUa,mBAAiB,MAAA,CAAA,QAAA;AAA9B;AAKA;;AAEoC,iBAFpB,aAEoB,CAAA,uBADX,aACW,GAAA,KAAA,EAAA,eAAA,UAKL,MAAA,GALK,IAKL,EAAgB,GAAA,KAAA,CAAA,CAAA,CAAA,EAA3B,UAA2B,CAAhB,cAAgB,EAAA,MAAA,CAAA;;;AAM/C;AACyB,iBADT,YACS,CAAA,uBAAA,aAAA,EAAA,eAAA,UACW,MAAA,GAAA,IAAA,EACgB,CAAA,CAAA,KAAA,EAA3C,iBAA2C,CAAA;EAAgB,UAAA,EAA3B,UAA2B,CAAhB,cAAgB,EAAA,MAAA,CAAA;CAA3B,CAAA,CAAA,EAAqC,mBAAA,CAAA,GAAA,CAAA,OAArC"}
1
+ {"version":3,"file":"use-auth-client.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-auth-client.tsx"],"mappings":";;;;;;;;;;cAUa,iBAAA,EAAiB,KAAA,CAAA,OAAA,CAAA,UAAA;AAA9B;;;AAAA,iBAKgB,aAAA,wBACS,aAAA,4CACW,IAAA,WAAA,CAAA,GAKhB,UAAA,CAAW,cAAA,EAAgB,MAAA;;;;iBAM/B,YAAA,wBACS,aAAA,oCACW,IAAA,GAAA,CAClC,KAAA,EAAO,iBAAA;EAAoB,UAAA,EAAY,UAAA,CAAW,cAAA,EAAgB,MAAA;AAAA,KAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-auth-client.mjs","names":[],"sources":["../../../../src/modules/auth/hooks/use-auth-client.tsx"],"sourcesContent":["\"use client\";\n\nimport { AccessControl, Role } from \"better-auth/plugins\";\nimport { createContext, PropsWithChildren, use } from \"react\";\nimport { ClientAuth } from \"../handler/create-client.client\";\n\n/**\n * Auth client context\n */\n\nexport const AuthClientContext = createContext(null as unknown as ClientAuth<never, never>);\n\n/**\n * Use auth client\n */\nexport function useAuthClient<\n TAccessControl extends AccessControl = never,\n TRoles extends { [key in string]: Role } = never,\n>() {\n const context = use(AuthClientContext);\n if (!context) throw new Error(\"Auth client is not provided\");\n\n return context as ClientAuth<TAccessControl, TRoles>;\n}\n\n/**\n * Auth client provider\n */\nexport function AuthProvider<\n TAccessControl extends AccessControl,\n TRoles extends { [key in string]: Role },\n>(props: PropsWithChildren<{ authClient: ClientAuth<TAccessControl, TRoles> }>) {\n return (\n <AuthClientContext value={props.authClient as ClientAuth<never, never>}>\n {props.children}\n </AuthClientContext>\n );\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,oBAAoB,cAAc,KAA4C;;;;AAK3F,SAAgB,gBAGZ;CACF,MAAM,UAAU,IAAI,kBAAkB;AACtC,KAAI,CAAC,QAAS,OAAM,IAAI,MAAM,8BAA8B;AAE5D,QAAO;;;;;AAMT,SAAgB,aAGd,OAA8E;AAC9E,QACE,oBAAC;EAAkB,OAAO,MAAM;YAC7B,MAAM;GACW"}
1
+ {"version":3,"file":"use-auth-client.mjs","names":[],"sources":["../../../../src/modules/auth/hooks/use-auth-client.tsx"],"sourcesContent":["\"use client\";\n\nimport type { AccessControl, Role } from \"better-auth/plugins\";\nimport { createContext, type PropsWithChildren, use } from \"react\";\nimport type { ClientAuth } from \"../handler/create-client.client\";\n\n/**\n * Auth client context\n */\n\nexport const AuthClientContext = createContext(null as unknown as ClientAuth<never, never>);\n\n/**\n * Use auth client\n */\nexport function useAuthClient<\n TAccessControl extends AccessControl = never,\n TRoles extends { [key in string]: Role } = never,\n>() {\n const context = use(AuthClientContext);\n if (!context) throw new Error(\"Auth client is not provided\");\n\n return context as ClientAuth<TAccessControl, TRoles>;\n}\n\n/**\n * Auth client provider\n */\nexport function AuthProvider<\n TAccessControl extends AccessControl,\n TRoles extends { [key in string]: Role },\n>(props: PropsWithChildren<{ authClient: ClientAuth<TAccessControl, TRoles> }>) {\n return (\n <AuthClientContext value={props.authClient as ClientAuth<never, never>}>\n {props.children}\n </AuthClientContext>\n );\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,oBAAoB,cAAc,KAA4C;;;;AAK3F,SAAgB,gBAGZ;CACF,MAAM,UAAU,IAAI,kBAAkB;AACtC,KAAI,CAAC,QAAS,OAAM,IAAI,MAAM,8BAA8B;AAE5D,QAAO;;;;;AAMT,SAAgB,aAGd,OAA8E;AAC9E,QACE,oBAAC;EAAkB,OAAO,MAAM;YAC7B,MAAM;GACW"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-permission.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"sourcesContent":[],"mappings":";;;KAMY,kBAAA;;AAAZ;AAmCA;;;;;;;;;eArBmB;;;;;;;;;;;;;eAeA;;;;;iBAMH,aAAA;;;GAAgD"}
1
+ {"version":3,"file":"use-permission.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"mappings":";;;KAMY,kBAAA;;AAAZ;;;;;EAQM,QAAA;EAMa;;;;EAAb,UAAA,GAAa,UAAA;AAAA;EAqBH;;;;;;EAZV,QAAA;;;;;EAMA,UAAA,GAAa,UAAA;AAAA;;;;iBAMH,aAAA,CAAA;EAAgB,QAAA;EAAkB;AAAA,GAAc,kBAAA"}
@@ -29,9 +29,9 @@ function usePermission({ strategy = "all", permission }) {
29
29
  */
30
30
  if (strategy === "any" && Array.isArray(permission)) return {
31
31
  permission,
32
- success: (Array.isArray(permission) ? permission : [permission]).some((permission$1) => authClient.admin.checkRolePermission({
32
+ success: (Array.isArray(permission) ? permission : [permission]).some((permission) => authClient.admin.checkRolePermission({
33
33
  role,
34
- permissions: permission$1
34
+ permissions: permission
35
35
  }))
36
36
  };
37
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"use-permission.mjs","names":["permission"],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"sourcesContent":["\"use client\";\n\nimport { type Permission } from \"../lib/permissions\";\nimport { useAuthClient } from \"./use-auth-client\";\nimport { useSession } from \"./use-session\";\n\nexport type UsePermissionProps =\n | {\n /**\n * Strategy to use when checking multiple permissions\n * - \"all\": all permissions must be allowed\n * - \"any\": at least one permission must be allowed\n * @default \"all\"\n */\n strategy?: \"all\";\n\n /**\n * Permission to check\n * @example { project: [\"view\", \"create\"] }\n */\n permission?: Permission;\n }\n | {\n /**\n * Strategy to use when checking multiple permissions\n * - \"all\": all permissions must be allowed\n * - \"any\": at least one permission must be allowed\n * @default \"all\"\n */\n strategy?: \"any\";\n\n /**\n * Permission to check\n * @example [{ project: [\"view\", \"create\"] }, { client: [\"view\"] }, { drive: [\"view\"] }]\n */\n permission?: Permission[];\n };\n\n/**\n * UsePermission\n */\nexport function usePermission({ strategy = \"all\", permission }: UsePermissionProps) {\n const authClient = useAuthClient();\n const sessionQuery = useSession(authClient);\n\n /**\n * If no role is found in the session, deny by default\n */\n const role = sessionQuery.data?.user.role;\n if (!role) return { permission, success: false };\n\n /**\n * If no permission is provided, allow by default\n */\n if (!permission) return { permission, success: true };\n\n /**\n * If the strategy is \"any\", check if the user has any of the permissions\n */\n if (strategy === \"any\" && Array.isArray(permission)) {\n const permissions = Array.isArray(permission) ? permission : [permission];\n\n const success = permissions.some((permission) =>\n authClient.admin.checkRolePermission({\n role,\n permissions: permission,\n }),\n );\n\n return { permission, success };\n }\n\n /**\n * If the strategy is \"all\", check if the user has all of the permissions\n */\n if (strategy === \"all\" && !Array.isArray(permission)) {\n const success = authClient.admin.checkRolePermission({\n role,\n permissions: permission,\n });\n\n return { permission, success };\n }\n\n /**\n * If the strategy is not recognized, deny by default\n */\n return { permission, success: false };\n}\n"],"mappings":";;;;;;;;;AAyCA,SAAgB,cAAc,EAAE,WAAW,OAAO,cAAkC;CAClF,MAAM,aAAa,eAAe;;;;CAMlC,MAAM,OALe,WAAW,WAAW,CAKjB,MAAM,KAAK;AACrC,KAAI,CAAC,KAAM,QAAO;EAAE;EAAY,SAAS;EAAO;;;;AAKhD,KAAI,CAAC,WAAY,QAAO;EAAE;EAAY,SAAS;EAAM;;;;AAKrD,KAAI,aAAa,SAAS,MAAM,QAAQ,WAAW,CAUjD,QAAO;EAAE;EAAY,UATD,MAAM,QAAQ,WAAW,GAAG,aAAa,CAAC,WAAW,EAE7C,MAAM,iBAChC,WAAW,MAAM,oBAAoB;GACnC;GACA,aAAaA;GACd,CAAC,CACH;EAE6B;;;;AAMhC,KAAI,aAAa,SAAS,CAAC,MAAM,QAAQ,WAAW,CAMlD,QAAO;EAAE;EAAY,SALL,WAAW,MAAM,oBAAoB;GACnD;GACA,aAAa;GACd,CAAC;EAE4B;;;;AAMhC,QAAO;EAAE;EAAY,SAAS;EAAO"}
1
+ {"version":3,"file":"use-permission.mjs","names":[],"sources":["../../../../src/modules/auth/hooks/use-permission.ts"],"sourcesContent":["\"use client\";\n\nimport type { Permission } from \"../lib/permissions\";\nimport { useAuthClient } from \"./use-auth-client\";\nimport { useSession } from \"./use-session\";\n\nexport type UsePermissionProps =\n | {\n /**\n * Strategy to use when checking multiple permissions\n * - \"all\": all permissions must be allowed\n * - \"any\": at least one permission must be allowed\n * @default \"all\"\n */\n strategy?: \"all\";\n\n /**\n * Permission to check\n * @example { project: [\"view\", \"create\"] }\n */\n permission?: Permission;\n }\n | {\n /**\n * Strategy to use when checking multiple permissions\n * - \"all\": all permissions must be allowed\n * - \"any\": at least one permission must be allowed\n * @default \"all\"\n */\n strategy?: \"any\";\n\n /**\n * Permission to check\n * @example [{ project: [\"view\", \"create\"] }, { client: [\"view\"] }, { drive: [\"view\"] }]\n */\n permission?: Permission[];\n };\n\n/**\n * UsePermission\n */\nexport function usePermission({ strategy = \"all\", permission }: UsePermissionProps) {\n const authClient = useAuthClient();\n const sessionQuery = useSession(authClient);\n\n /**\n * If no role is found in the session, deny by default\n */\n const role = sessionQuery.data?.user.role;\n if (!role) return { permission, success: false };\n\n /**\n * If no permission is provided, allow by default\n */\n if (!permission) return { permission, success: true };\n\n /**\n * If the strategy is \"any\", check if the user has any of the permissions\n */\n if (strategy === \"any\" && Array.isArray(permission)) {\n const permissions = Array.isArray(permission) ? permission : [permission];\n\n const success = permissions.some((permission) =>\n authClient.admin.checkRolePermission({\n role,\n permissions: permission,\n }),\n );\n\n return { permission, success };\n }\n\n /**\n * If the strategy is \"all\", check if the user has all of the permissions\n */\n if (strategy === \"all\" && !Array.isArray(permission)) {\n const success = authClient.admin.checkRolePermission({\n role,\n permissions: permission,\n });\n\n return { permission, success };\n }\n\n /**\n * If the strategy is not recognized, deny by default\n */\n return { permission, success: false };\n}\n"],"mappings":";;;;;;;;;AAyCA,SAAgB,cAAc,EAAE,WAAW,OAAO,cAAkC;CAClF,MAAM,aAAa,eAAe;;;;CAMlC,MAAM,OALe,WAAW,WAAW,CAKjB,MAAM,KAAK;AACrC,KAAI,CAAC,KAAM,QAAO;EAAE;EAAY,SAAS;EAAO;;;;AAKhD,KAAI,CAAC,WAAY,QAAO;EAAE;EAAY,SAAS;EAAM;;;;AAKrD,KAAI,aAAa,SAAS,MAAM,QAAQ,WAAW,CAUjD,QAAO;EAAE;EAAY,UATD,MAAM,QAAQ,WAAW,GAAG,aAAa,CAAC,WAAW,EAE7C,MAAM,eAChC,WAAW,MAAM,oBAAoB;GACnC;GACA,aAAa;GACd,CAAC,CACH;EAE6B;;;;AAMhC,KAAI,aAAa,SAAS,CAAC,MAAM,QAAQ,WAAW,CAMlD,QAAO;EAAE;EAAY,SALL,WAAW,MAAM,oBAAoB;GACnD;GACA,aAAa;GACd,CAAC;EAE4B;;;;AAMhC,QAAO;EAAE;EAAY,SAAS;EAAO"}
@@ -12,12 +12,12 @@ declare function useSession(authClient: ClientAuth<never, never>): _tanstack_rea
12
12
  emailVerified: boolean;
13
13
  name: string;
14
14
  image?: string | null | undefined;
15
+ firstName: string;
16
+ lastName: string;
15
17
  banned: boolean | null | undefined;
16
18
  role?: string | null | undefined;
17
19
  banReason?: string | null | undefined;
18
20
  banExpires?: Date | null | undefined;
19
- firstName: string;
20
- lastName: string;
21
21
  };
22
22
  session: {
23
23
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-session.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"sourcesContent":[],"mappings":";;;;;iBAKgB,UAAA,aAAuB,kDAAwB;;;;IAA/C,SAAU,MAAA;IAAa,KAAA,EAAA,MAAA;;;;;;;;qBAAwB;IAAA,QAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"use-session.d.mts","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"mappings":";;;;;iBAKgB,UAAA,CAAW,UAAA,EAAY,UAAA,wCAAwB,sBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-session.mjs","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"sourcesContent":["\"use client\";\n\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { ClientAuth } from \"../entry.client\";\n\nexport function useSession(authClient: ClientAuth<never, never>) {\n const session = useSuspenseQuery({\n queryKey: [\"session\"],\n queryFn: async () => {\n const session = await authClient.getSession();\n \n\n if (session.error) {\n console.error(session.error);\n return null;\n }\n\n return session.data;\n },\n staleTime: 1000 * 60 * 60,\n });\n\n return session;\n}\n"],"mappings":";;;;;AAKA,SAAgB,WAAW,YAAsC;AAiB/D,QAhBgB,iBAAiB;EAC/B,UAAU,CAAC,UAAU;EACrB,SAAS,YAAY;GACnB,MAAM,UAAU,MAAM,WAAW,YAAY;AAG7C,OAAI,QAAQ,OAAO;AACjB,YAAQ,MAAM,QAAQ,MAAM;AAC5B,WAAO;;AAGT,UAAO,QAAQ;;EAEjB,WAAW,MAAO,KAAK;EACxB,CAAC"}
1
+ {"version":3,"file":"use-session.mjs","names":[],"sources":["../../../../src/modules/auth/hooks/use-session.ts"],"sourcesContent":["\"use client\";\n\nimport { useSuspenseQuery } from \"@tanstack/react-query\";\nimport type { ClientAuth } from \"../entry.client\";\n\nexport function useSession(authClient: ClientAuth<never, never>) {\n const session = useSuspenseQuery({\n queryKey: [\"session\"],\n queryFn: async () => {\n const session = await authClient.getSession();\n\n if (session.error) {\n console.error(session.error);\n return null;\n }\n\n return session.data;\n },\n staleTime: 1000 * 60 * 60,\n });\n\n return session;\n}\n"],"mappings":";;;;;AAKA,SAAgB,WAAW,YAAsC;AAgB/D,QAfgB,iBAAiB;EAC/B,UAAU,CAAC,UAAU;EACrB,SAAS,YAAY;GACnB,MAAM,UAAU,MAAM,WAAW,YAAY;AAE7C,OAAI,QAAQ,OAAO;AACjB,YAAQ,MAAM,QAAQ,MAAM;AAC5B,WAAO;;AAGT,UAAO,QAAQ;;EAEjB,WAAW,MAAO,KAAK;EACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.server.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/helpers.server.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;iBAasB,2BAA2B;;GAE9C,KAAK,aAAa,oBAAiB;EAFhB,OAAA,EAAA;IAA2B,EAAA,EAAA,MAAA;IAC/C,SAAA,MAAA;IACmB,SAAA,MAAA;IAAb,MAAA,EAAA,MAAA;IAAL,SAAA,MAAA;;;;;;;IAAmC,EAAA,EAAA,MAAA;IAAA,SAAA,MAAA;IAOtB,SAAU,MAAA;IAAiB,KAAA,EAAA,MAAA;IACvC,aAAA,EAAA,OAAA;IAAM,IAAA,EAAA,MAAA;IAAwB,KAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA,GAAA,SAAA;IAAb,SAAA,EAAA,MAAA;IAAmC,QAAA,EAAA,MAAA;IACpD,MAAA,EAAA,OAAA,GAAA,IAAA,GAAA,SAAA;IAAgB,IAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAAgB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAAE,UAAA,CAAA,MAAA,GAAA,IAAA,GAAA,SAAA;EAAA,CAAA;AAkBtC,CAAA,GAAsB,IAAA,CAAA;;;;AACZ,iBArBM,UAqBN,CAAA,gBArBiC,eAqBjC,CAAA,CAAA;EAAA,IAAA;EAAA;CAAA,EApBW,YAoBX,CApBwB,OAoBxB,CAAA,GAAA;EACN,OAAA,EArBoD,OAqBpD;CAAQ,EAAA;EAAA;CAAA,EAAA;EAAwC,IAAA,EApBhC,gBAoBgC;CAAR,CAAA,EApBN,OAoBM,CAAA;QApBR,oBAAA,CAAA;;;;;iBAkBd,2BAA2B;;GACvC,aAAa;;;;;QACqB,QAAQ;IAAmB"}
1
+ {"version":3,"file":"helpers.server.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/helpers.server.ts"],"mappings":";;;;;;;;;;;iBAasB,UAAA,iBAA2B,eAAA,CAAA,CAAA;EAC/C;AAAA,GACC,IAAA,CAAK,YAAA,CAAa,OAAA,aAAiB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOtB,UAAA,iBAA2B,eAAA,CAAA,CAAA;EACvC,IAAA;EAAM;AAAA,GAAW,YAAA,CAAa,OAAA;EAAa,OAAA,EAAS,OAAA;AAAA;EACpD;AAAA;EAAU,IAAA,EAAM,gBAAA;AAAA,IAAkB,OAAA;QAAF,oBAAA,CAAA,YAAA;AAAA;;;;iBAkBd,UAAA,iBAA2B,eAAA,CAAA,CAAA;EAC7C;AAAA,GAAM,YAAA,CAAa,OAAA;EACnB,MAAA;EAAQ;AAAA;EAAU,MAAA;EAAgB,IAAA,EAAM,OAAA,CAAQ,gBAAA;AAAA,IAAmB,OAAA"}
@@ -14,10 +14,10 @@ async function getSession({ auth }) {
14
14
  /**
15
15
  * Create a user
16
16
  */
17
- function createUser({ auth, headers: headers$1 }, { body }) {
17
+ function createUser({ auth, headers }, { body }) {
18
18
  const { firstName, lastName } = body;
19
19
  return auth.api.createUser({
20
- headers: headers$1,
20
+ headers,
21
21
  body: {
22
22
  ...body,
23
23
  name: `${firstName} ${lastName}`,
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.server.mjs","names":[],"sources":["../../../../src/modules/auth/lib/helpers.server.ts"],"sourcesContent":["import \"server-cli-only\";\n\nimport { type TDatabaseSchema } from \"@/modules/config/db/types\";\nimport { TulipContext } from \"@/modules/config/entry\";\nimport { ServerError } from \"@/modules/router/lib/error.server\";\nimport { eq } from \"drizzle-orm\";\nimport { headers } from \"next/headers\";\nimport { users } from \"../entry\";\nimport { CreateUserSchema, UpdateUserSchema } from \"./validators\";\n\n/**\n * Get the session\n */\nexport async function getSession<TSchema extends TDatabaseSchema>({\n auth,\n}: Pick<TulipContext<TSchema>, \"auth\">) {\n return auth.api.getSession({ headers: await headers() });\n}\n\n/**\n * Create a user\n */\nexport function createUser<TSchema extends TDatabaseSchema>(\n { auth, headers }: TulipContext<TSchema> & { headers: Headers },\n { body }: { body: CreateUserSchema },\n) {\n const { firstName, lastName } = body;\n\n return auth.api.createUser({\n headers,\n body: {\n ...body,\n name: `${firstName} ${lastName}`,\n data: { firstName, lastName },\n },\n });\n}\n\n/**\n * Update a user\n */\n\nexport async function updateUser<TSchema extends TDatabaseSchema>(\n { db }: TulipContext<TSchema>,\n { userId, body }: { userId: string; body: Partial<UpdateUserSchema> },\n) {\n const [result] = await db.update(users).set(body).where(eq(users.id, userId)).returning();\n if (!result) {\n throw new ServerError(\"INTERNAL_SERVER_ERROR\", {\n message: \"Gebruiker kon niet worden aangemaakt\",\n });\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;AAaA,eAAsB,WAA4C,EAChE,QACsC;AACtC,QAAO,KAAK,IAAI,WAAW,EAAE,SAAS,MAAM,SAAS,EAAE,CAAC;;;;;AAM1D,SAAgB,WACd,EAAE,MAAM,sBACR,EAAE,QACF;CACA,MAAM,EAAE,WAAW,aAAa;AAEhC,QAAO,KAAK,IAAI,WAAW;EACzB;EACA,MAAM;GACJ,GAAG;GACH,MAAM,GAAG,UAAU,GAAG;GACtB,MAAM;IAAE;IAAW;IAAU;GAC9B;EACF,CAAC;;;;;AAOJ,eAAsB,WACpB,EAAE,MACF,EAAE,QAAQ,QACV;CACA,MAAM,CAAC,UAAU,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,CAAC,WAAW;AACzF,KAAI,CAAC,OACH,OAAM,IAAI,YAAY,yBAAyB,EAC7C,SAAS,wCACV,CAAC;AAGJ,QAAO"}
1
+ {"version":3,"file":"helpers.server.mjs","names":[],"sources":["../../../../src/modules/auth/lib/helpers.server.ts"],"sourcesContent":["import \"server-cli-only\";\n\nimport { eq } from \"drizzle-orm\";\nimport { headers } from \"next/headers\";\nimport type { TDatabaseSchema } from \"@/modules/config/db/types\";\nimport type { TulipContext } from \"@/modules/config/entry\";\nimport { ServerError } from \"@/modules/router/lib/error.server\";\nimport { users } from \"../entry\";\nimport type { CreateUserSchema, UpdateUserSchema } from \"./validators\";\n\n/**\n * Get the session\n */\nexport async function getSession<TSchema extends TDatabaseSchema>({\n auth,\n}: Pick<TulipContext<TSchema>, \"auth\">) {\n return auth.api.getSession({ headers: await headers() });\n}\n\n/**\n * Create a user\n */\nexport function createUser<TSchema extends TDatabaseSchema>(\n { auth, headers }: TulipContext<TSchema> & { headers: Headers },\n { body }: { body: CreateUserSchema },\n) {\n const { firstName, lastName } = body;\n\n return auth.api.createUser({\n headers,\n body: {\n ...body,\n name: `${firstName} ${lastName}`,\n data: { firstName, lastName },\n },\n });\n}\n\n/**\n * Update a user\n */\n\nexport async function updateUser<TSchema extends TDatabaseSchema>(\n { db }: TulipContext<TSchema>,\n { userId, body }: { userId: string; body: Partial<UpdateUserSchema> },\n) {\n const [result] = await db.update(users).set(body).where(eq(users.id, userId)).returning();\n if (!result) {\n throw new ServerError(\"INTERNAL_SERVER_ERROR\", {\n message: \"Gebruiker kon niet worden aangemaakt\",\n });\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;AAaA,eAAsB,WAA4C,EAChE,QACsC;AACtC,QAAO,KAAK,IAAI,WAAW,EAAE,SAAS,MAAM,SAAS,EAAE,CAAC;;;;;AAM1D,SAAgB,WACd,EAAE,MAAM,WACR,EAAE,QACF;CACA,MAAM,EAAE,WAAW,aAAa;AAEhC,QAAO,KAAK,IAAI,WAAW;EACzB;EACA,MAAM;GACJ,GAAG;GACH,MAAM,GAAG,UAAU,GAAG;GACtB,MAAM;IAAE;IAAW;IAAU;GAC9B;EACF,CAAC;;;;;AAOJ,eAAsB,WACpB,EAAE,MACF,EAAE,QAAQ,QACV;CACA,MAAM,CAAC,UAAU,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,CAAC,WAAW;AACzF,KAAI,CAAC,OACH,OAAM,IAAI,YAAY,yBAAyB,EAC7C,SAAS,wCACV,CAAC;AAGJ,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/permissions.ts"],"sourcesContent":[],"mappings":";;;;KAGY,UAAA,GAAa;;AAAzB;AAAkD;cAK5C,gBAA0D,EAAA,CAAA,oBAAlB,UAAkB,CAAA,OAAA,mBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,UAAA,EAClD,WADkD,EAAA,GACvC,WADuC,GAAA;EAAlB,SAAA,IAAA,EAAA,SAAA,CAAA,QAAA,EAAA,MAAA,EAAA,UAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,cAAA,EAAA,KAAA,EAAA,QAAA,CAAA;EAChC,SAAA,OAAA,EAAA,SAAA,CAAA,MAAA,EAAA,QAAA,EAAA,QAAA,CAAA;CAAW"}
1
+ {"version":3,"file":"permissions.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/permissions.ts"],"mappings":";;;;KAGY,UAAA,GAAa,MAAA;;AAAzB;;cAKM,gBAAA,uBAAwC,UAAA,QAAkB,mBAAA,MAC9D,UAAA,EAAY,WAAA,KAAW,WAAA;EAAA"}
@@ -2,7 +2,6 @@ import { users } from "../db/schema.mjs";
2
2
  import { z as z$1 } from "zod";
3
3
 
4
4
  //#region src/modules/auth/lib/validators.d.ts
5
-
6
5
  /**
7
6
  * User type
8
7
  */
@@ -43,10 +42,10 @@ type CreateUserSchema = z$1.infer<typeof createUserSchema>;
43
42
  * Update user schema
44
43
  */
45
44
  declare const updateUserSchema: z$1.ZodObject<{
46
- firstName: z$1.ZodString;
47
- lastName: z$1.ZodString;
48
45
  email: z$1.ZodString;
49
46
  image: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
47
+ firstName: z$1.ZodString;
48
+ lastName: z$1.ZodString;
50
49
  }, {
51
50
  out: {};
52
51
  in: {};
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;AAKa,KALD,IAAA,GAcV,OAdwB,KAAA,CAAM,YAc9B;;;;AATsB,cAAX,WAAW,EAAA,GAAA,CAAA,SAAA,CAAA;EAAA,KAAA,cAAA;EAcX,QAAA,eAAA;;;;;AAAmB,cAAnB,mBAAmB,EAAA,GAAA,CAAA,SAAA,CAAA;EAmBnB,QAAA,eAAA;;;;;AAUb;cAVa,sBAAoB,GAAA,CAAA;;;;;;cAUpB,kBAAgB,GAAA,CAAA;;;;;;EAAA,IAAA,iBAAA,cAAA,CAAA;CAAA,iBAAA,CAAA;AAajB,KAAA,gBAAA,GAAmB,GAAA,CAAE,KAAa,CAAA,OAAA,gBAAb,CAAK;AAKtC;;;cAAa,kBAAgB,GAAA,CAAA;;;;EAAA,KAAA,iBAAA,gBAAA,cAAA,CAAA,CAAA;CAAA,EAAA;EAOjB,GAAA,EAAA,CAAA,CAAA;EAKC,EAAA,EAAA,CAAA,CAAA;;KALD,gBAAA,GAAmB,GAAA,CAAE,aAAa;;;AAS9C;cAJa,sBAAoB,GAAA,CAAA;;;KAIrB,oBAAA,GAAuB,GAAA,CAAE,aAAa"}
1
+ {"version":3,"file":"validators.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/validators.ts"],"mappings":";;;;;;AAQA;KAAY,IAAA,UAAc,KAAA,CAAM,YAAA;;;;cAKnB,WAAA,EAAW,GAAA,CAAA,SAAA;;;;;;;cAcX,mBAAA,EAAmB,GAAA,CAAA,SAAA;;;;;;;cAmBnB,oBAAA,EAAoB,GAAA,CAAA,SAAA;;;;;;cAUpB,gBAAA,EAAgB,GAAA,CAAA,SAAA;;;;;;;;KAajB,gBAAA,GAAmB,GAAA,CAAE,KAAA,QAAa,gBAAA;;;;cAKjC,gBAAA,EAAgB,GAAA,CAAA,SAAA;;;;;;;;;KAOjB,gBAAA,GAAmB,GAAA,CAAE,KAAA,QAAa,gBAAA;;;AAnC9C;cAwCa,oBAAA,EAAoB,GAAA,CAAA,SAAA;;;KAIrB,oBAAA,GAAuB,GAAA,CAAE,KAAA,QAAa,oBAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
4
4
  import { AlertDialogCancelProps, AlertDialogContentProps, AlertDialogProps } from "@radix-ui/react-alert-dialog";
@@ -11,7 +11,7 @@ import { Keys } from "react-hotkeys-hook";
11
11
  declare function CommandAlertDialog({
12
12
  children,
13
13
  ...props
14
- }: AlertDialogProps): react_jsx_runtime11.JSX.Element;
14
+ }: AlertDialogProps): react_jsx_runtime0.JSX.Element;
15
15
  /**
16
16
  * CommandAlertDialogTrigger
17
17
  */
@@ -28,49 +28,49 @@ declare function CommandAlertDialogTrigger({
28
28
  children,
29
29
  disabled,
30
30
  ...props
31
- }: CommandAlertDialogTriggerProps): react_jsx_runtime11.JSX.Element | undefined;
31
+ }: CommandAlertDialogTriggerProps): react_jsx_runtime0.JSX.Element | undefined;
32
32
  /**
33
33
  * CommandAlertDialogContent
34
34
  */
35
35
  declare function CommandAlertDialogContent({
36
36
  children,
37
37
  ...props
38
- }: AlertDialogContentProps): react_jsx_runtime11.JSX.Element;
38
+ }: AlertDialogContentProps): react_jsx_runtime0.JSX.Element;
39
39
  /**
40
40
  * CommandAlertDialogHeader
41
41
  */
42
42
  declare function CommandAlertDialogHeader({
43
43
  children,
44
44
  ...props
45
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime11.JSX.Element;
45
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime0.JSX.Element;
46
46
  /**
47
47
  * CommandAlertDialogTitle
48
48
  */
49
49
  declare function CommandAlertDialogTitle({
50
50
  children,
51
51
  ...props
52
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime11.JSX.Element;
52
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime0.JSX.Element;
53
53
  /**
54
54
  * CommandAlertDialogDescription
55
55
  */
56
56
  declare function CommandAlertDialogDescription({
57
57
  children,
58
58
  ...props
59
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime11.JSX.Element;
59
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime0.JSX.Element;
60
60
  /**
61
61
  * CommandAlertDialogFooter
62
62
  */
63
63
  declare function CommandAlertDialogFooter({
64
64
  children,
65
65
  ...props
66
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime11.JSX.Element;
66
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime0.JSX.Element;
67
67
  /**
68
68
  * CommandAlertDialogCancel
69
69
  */
70
70
  declare function CommandAlertDialogCancel({
71
71
  children,
72
72
  ...props
73
- }: AlertDialogCancelProps): react_jsx_runtime11.JSX.Element;
73
+ }: AlertDialogCancelProps): react_jsx_runtime0.JSX.Element;
74
74
  /**
75
75
  * CommandAlertDialogAction
76
76
  */
@@ -87,7 +87,7 @@ declare function CommandAlertDialogAction<TData = unknown, TError = DefaultError
87
87
  children,
88
88
  disabled,
89
89
  ...props
90
- }: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime11.JSX.Element;
90
+ }: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime0.JSX.Element;
91
91
  //#endregion
92
92
  export { CommandAlertDialog, CommandAlertDialogAction, CommandAlertDialogCancel, CommandAlertDialogContent, CommandAlertDialogDescription, CommandAlertDialogFooter, CommandAlertDialogHeader, CommandAlertDialogTitle, CommandAlertDialogTrigger };
93
93
  //# sourceMappingURL=alert-dialog-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/alert-dialog-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AA2CgB,iBAAA,kBAAA,CAAkB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAyB,gBAAzB,CAAA,EAAyC,mBAAA,CAAA,GAAA,CAAA,OAAzC;;;;KAe7B,8BAAA,GAfsE;EAetE,QAAA,EACO,KAAA,CAAM,SADb;EAQW,SAAA,CAAA,EAAA,MAAA;EACd,KAAA,CAAA,EAAA,MAAA;EACA,MAAA,CAAA,EANS,IAMT;EACA,QAAA,CAAA,EAAA,OAAA;CACA;AAEC,iBANa,yBAAA,CAMb;EAAA,KAAA;EAAA,MAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAA,8BAAA,CAAA,EAA8B,mBAAA,CAAA,GAAA,CAAA,OAAA,GAA9B,SAAA;;;AAgEH;AAA4C,iBAA5B,yBAAA,CAA4B;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAsB,uBAAtB,CAAA,EAA6C,mBAAA,CAAA,GAAA,CAAA,OAA7C;;;;AAO5B,iBAAA,wBAAA,CAAwB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAGrC,KAAA,CAAM,cAH+B,CAGhB,WAHgB,CAAA,CAAA,EAGJ,mBAAA,CAAA,GAAA,CAAA,OAHI;;;;AAGJ,iBAOpB,uBAAA,CAPoB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAO4B,KAAA,CAAM,cAPlC,CAOiD,WAPjD,CAAA,CAAA,EAO6D,mBAAA,CAAA,GAAA,CAAA,OAP7D;;AAOpC;;AAAqF,iBAOrE,6BAAA,CAPqE;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAUlF,KAAA,CAAM,cAV4E,CAU7D,WAV6D,CAAA,CAAA,EAUjD,mBAAA,CAAA,GAAA,CAAA,OAViD;;;;AAOrE,iBAUA,wBAAA,CAV6B;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAa1C,KAAA,CAAM,cAboC,CAarB,WAbqB,CAAA,CAAA,EAaT,mBAAA,CAAA,GAAA,CAAA,OAbS;;;;AAGT,iBAiBpB,wBAAA,CAjBoB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAiB6B,sBAjB7B,CAAA,EAiBmD,mBAAA,CAAA,GAAA,CAAA,OAjBnD;;AAOpC;;KAiBK,6BAdmB,CAAA,QAAA,OAAA,EAAA,SAgBb,YAhBa,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,GAAA;EAArB,SAAM,EAoBI,UApBJ;EAA2B,QAAA,EAqBxB,eArBwB,CAqBR,KArBQ,EAqBD,MArBC,EAqBO,UArBP,EAqBmB,eArBnB,CAAA;EAAA,QAAA,EAsBxB,KAAA,CAAM,SAtBkB;EAOpB,SAAA,CAAA,EAAA,MAAA;EAA2B,QAAA,CAAA,EAAA,OAAA;CAAsB;AAAsB,iBAoBvE,wBApBuE,CAAA,QAAA,OAAA,EAAA,SAsB5E,YAtB4E,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA+BpF,6BA/BoF,CA+BtD,KA/BsD,EA+B/C,MA/B+C,EA+BvC,UA/BuC,EA+B3B,eA/B2B,CAAA,CAAA,EA+BX,mBAAA,CAAA,GAAA,CAAA,OA/BW"}
1
+ {"version":3,"file":"alert-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/alert-dialog-command.client.tsx"],"mappings":";;;;;;;;;;iBA2CgB,kBAAA,CAAA;EAAqB,QAAA;EAAA,GAAa;AAAA,GAAS,gBAAA,GAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAetE,8BAAA;EACH,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;EACA,KAAA;EACA,MAAA,GAAS,IAAA;EACT,QAAA;AAAA;AAAA,iBAGc,yBAAA,CAAA;EACd,KAAA;EACA,MAAA;EACA,QAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,8BAAA,GAA8B,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAgEjB,yBAAA,CAAA;EAA4B,QAAA;EAAA,GAAa;AAAA,GAAS,uBAAA,GAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAnFxF;;;AAAA,iBA0Fe,wBAAA,CAAA;EACd,QAAA;EAAA,GACG;AAAA,GACF,KAAA,CAAM,cAAA,CAAe,WAAA,IAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAOpB,uBAAA,CAAA;EAA0B,QAAA;EAAA,GAAa;AAAA,GAAS,KAAA,CAAM,cAAA,CAAe,WAAA,IAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAOjF,6BAAA,CAAA;EACd,QAAA;EAAA,GACG;AAAA,GACF,KAAA,CAAM,cAAA,CAAe,WAAA,IAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;;;AAjGpC;iBAwGgB,wBAAA,CAAA;EACd,QAAA;EAAA,GACG;AAAA,GACF,KAAA,CAAM,cAAA,CAAe,WAAA,IAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAOpB,wBAAA,CAAA;EAA2B,QAAA;EAAA,GAAa;AAAA,GAAS,sBAAA,GAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAOlF,6BAAA,2BAEM,YAAA;EAIT,SAAA,EAAW,UAAA;EACX,QAAA,EAAU,eAAA,CAAgB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,eAAA;EACrD,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;EACA,QAAA;AAAA;AAAA,iBAGc,wBAAA,2BAEL,YAAA,oDAAA,CAAA;EAIT,SAAA;EACA,QAAA;EACA,QAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,6BAAA,CAA8B,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,eAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog-command.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/alert-dialog-command.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Icons } from \"@/components/common/icons\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\";\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { ContextMenuItem } from \"@/components/ui/context-menu\";\nimport { DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\nimport { cn } from \"@/lib/utils/cn\";\nimport {\n AlertDialogCancelProps,\n AlertDialogContentProps,\n AlertDialogProps,\n} from \"@radix-ui/react-alert-dialog\";\nimport { DefaultError, MutationOptions } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport { Keys, useHotkeys } from \"react-hotkeys-hook\";\nimport { useCommand } from \"../hooks/context.client\";\nimport { useCommandMutation } from \"../hooks/use-command-mutation.client\";\nimport { CommandTrigger } from \"./command-trigger.client\";\n\n/**\n * CommandAlertDialogContext\n */\ntype CommandAlertDialogContextValue = {\n open: boolean;\n setOpen: React.Dispatch<React.SetStateAction<boolean>>;\n};\n\nconst CommandAlertDialogContext = React.createContext({} as CommandAlertDialogContextValue);\n\n/**\n * CommandAlertDialog\n */\nexport function CommandAlertDialog({ children, ...props }: AlertDialogProps) {\n const [open, setOpen] = React.useState(false);\n\n return (\n <AlertDialog {...props} open={open} onOpenChange={setOpen}>\n <CommandAlertDialogContext.Provider value={{ open, setOpen }}>\n {children}\n </CommandAlertDialogContext.Provider>\n </AlertDialog>\n );\n}\n\n/**\n * CommandAlertDialogTrigger\n */\ntype CommandAlertDialogTriggerProps = {\n children: React.ReactNode;\n className?: string;\n label?: string;\n hotkey?: Keys;\n disabled?: boolean;\n};\n\nexport function CommandAlertDialogTrigger({\n label,\n hotkey,\n children,\n disabled,\n ...props\n}: CommandAlertDialogTriggerProps) {\n const { menu, status } = useCommand();\n const { setOpen } = React.useContext(CommandAlertDialogContext);\n\n const isDisabled = disabled || status === \"pending\";\n\n useHotkeys(hotkey ?? \"\", () => setOpen(true), { enabled: !isDisabled && hotkey !== undefined });\n\n if (menu === \"inline\" || menu === \"table\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger\n {...props}\n disabled={isDisabled}\n className={cn(buttonVariants({ variant: \"outline\", size: \"sm\" }), props.className)}\n >\n {children}\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n\n if (menu === \"dropdown\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger asChild>\n <DropdownMenuItem\n {...props}\n disabled={isDisabled}\n onClick={(e) => {\n e.preventDefault();\n setOpen(true);\n }}\n >\n {children}\n </DropdownMenuItem>\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n\n if (menu === \"context\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger asChild>\n <ContextMenuItem\n {...props}\n disabled={isDisabled}\n onClick={(e) => {\n e.preventDefault();\n setOpen(true);\n }}\n >\n {children}\n </ContextMenuItem>\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n}\n\n/**\n * CommandAlertDialogContent\n */\nexport function CommandAlertDialogContent({ children, ...props }: AlertDialogContentProps) {\n return <AlertDialogContent {...props}>{children}</AlertDialogContent>;\n}\n\n/**\n * CommandAlertDialogHeader\n */\nexport function CommandAlertDialogHeader({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogHeader {...props}>{children}</AlertDialogHeader>;\n}\n\n/**\n * CommandAlertDialogTitle\n */\nexport function CommandAlertDialogTitle({ children, ...props }: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogTitle {...props}>{children}</AlertDialogTitle>;\n}\n\n/**\n * CommandAlertDialogDescription\n */\nexport function CommandAlertDialogDescription({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogDescription {...props}>{children}</AlertDialogDescription>;\n}\n\n/**\n * CommandAlertDialogFooter\n */\nexport function CommandAlertDialogFooter({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogFooter {...props}>{children}</AlertDialogFooter>;\n}\n\n/**\n * CommandAlertDialogCancel\n */\nexport function CommandAlertDialogCancel({ children, ...props }: AlertDialogCancelProps) {\n return <AlertDialogCancel {...props}>{children}</AlertDialogCancel>;\n}\n\n/**\n * CommandAlertDialogAction\n */\ntype CommandAlertDialogActionProps<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n> = {\n variables: TVariables;\n mutation: MutationOptions<TData, TError, TVariables, TOnMutateResult>;\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n};\n\nexport function CommandAlertDialogAction<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n>({\n variables,\n mutation,\n children,\n disabled,\n ...props\n}: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>) {\n const { setOpen } = React.useContext(CommandAlertDialogContext);\n const { status } = useCommand();\n\n const { mutateAsync } = useCommandMutation({\n ...mutation,\n onSuccess: async (...params) => {\n setOpen(false);\n\n return await mutation?.onSuccess?.(...params);\n },\n });\n\n const isDisabled = disabled || status === \"pending\";\n\n return (\n <AlertDialogAction {...props} disabled={isDisabled} onClick={() => mutateAsync(variables)}>\n {status === \"pending\" && <Icons.spinner className=\"mr-2 h-4 w-4 animate-spin\" />}\n {children}\n </AlertDialogAction>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsCA,MAAM,4BAA4B,MAAM,cAAc,EAAE,CAAmC;;;;AAK3F,SAAgB,mBAAmB,EAAE,UAAU,GAAG,SAA2B;CAC3E,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,MAAM;AAE7C,QACE,oBAAC;EAAY,GAAI;EAAa;EAAM,cAAc;YAChD,oBAAC,0BAA0B;GAAS,OAAO;IAAE;IAAM;IAAS;GACzD;IACkC;GACzB;;AAelB,SAAgB,0BAA0B,EACxC,OACA,QACA,UACA,UACA,GAAG,SAC8B;CACjC,MAAM,EAAE,MAAM,WAAW,YAAY;CACrC,MAAM,EAAE,YAAY,MAAM,WAAW,0BAA0B;CAE/D,MAAM,aAAa,YAAY,WAAW;AAE1C,YAAW,UAAU,UAAU,QAAQ,KAAK,EAAE,EAAE,SAAS,CAAC,cAAc,WAAW,QAAW,CAAC;AAE/F,KAAI,SAAS,YAAY,SAAS,QAChC,QACE,oBAAC;EAAsB;YACrB,oBAAC;GACC,GAAI;GACJ,UAAU;GACV,WAAW,GAAG,eAAe;IAAE,SAAS;IAAW,MAAM;IAAM,CAAC,EAAE,MAAM,UAAU;GAEjF;IACkB;GACN;AAIrB,KAAI,SAAS,WACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAmB;aAClB,oBAAC;IACC,GAAI;IACJ,UAAU;IACV,UAAU,MAAM;AACd,OAAE,gBAAgB;AAClB,aAAQ,KAAK;;IAGd;KACgB;IACA;GACN;AAIrB,KAAI,SAAS,UACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAmB;aAClB,oBAAC;IACC,GAAI;IACJ,UAAU;IACV,UAAU,MAAM;AACd,OAAE,gBAAgB;AAClB,aAAQ,KAAK;;IAGd;KACe;IACC;GACN;;;;;AAQvB,SAAgB,0BAA0B,EAAE,UAAU,GAAG,SAAkC;AACzF,QAAO,oBAAC;EAAmB,GAAI;EAAQ;GAA8B;;;;;AAMvE,SAAgB,yBAAyB,EACvC,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;;;;AAMrE,SAAgB,wBAAwB,EAAE,UAAU,GAAG,SAA4C;AACjG,QAAO,oBAAC;EAAiB,GAAI;EAAQ;GAA4B;;;;;AAMnE,SAAgB,8BAA8B,EAC5C,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAuB,GAAI;EAAQ;GAAkC;;;;;AAM/E,SAAgB,yBAAyB,EACvC,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;;;;AAMrE,SAAgB,yBAAyB,EAAE,UAAU,GAAG,SAAiC;AACvF,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;AAmBrE,SAAgB,yBAKd,EACA,WACA,UACA,UACA,UACA,GAAG,SACyE;CAC5E,MAAM,EAAE,YAAY,MAAM,WAAW,0BAA0B;CAC/D,MAAM,EAAE,WAAW,YAAY;CAE/B,MAAM,EAAE,gBAAgB,mBAAmB;EACzC,GAAG;EACH,WAAW,OAAO,GAAG,WAAW;AAC9B,WAAQ,MAAM;AAEd,UAAO,MAAM,UAAU,YAAY,GAAG,OAAO;;EAEhD,CAAC;CAEF,MAAM,aAAa,YAAY,WAAW;AAE1C,QACE,qBAAC;EAAkB,GAAI;EAAO,UAAU;EAAY,eAAe,YAAY,UAAU;aACtF,WAAW,aAAa,oBAAC,MAAM,WAAQ,WAAU,8BAA8B,EAC/E;GACiB"}
1
+ {"version":3,"file":"alert-dialog-command.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/alert-dialog-command.client.tsx"],"sourcesContent":["\"use client\";\n\nimport type {\n AlertDialogCancelProps,\n AlertDialogContentProps,\n AlertDialogProps,\n} from \"@radix-ui/react-alert-dialog\";\nimport type { DefaultError, MutationOptions } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport { type Keys, useHotkeys } from \"react-hotkeys-hook\";\nimport { Icons } from \"@/components/common/icons\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"@/components/ui/alert-dialog\";\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { ContextMenuItem } from \"@/components/ui/context-menu\";\nimport { DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { useCommand } from \"../hooks/context.client\";\nimport { useCommandMutation } from \"../hooks/use-command-mutation.client\";\nimport { CommandTrigger } from \"./command-trigger.client\";\n\n/**\n * CommandAlertDialogContext\n */\ntype CommandAlertDialogContextValue = {\n open: boolean;\n setOpen: React.Dispatch<React.SetStateAction<boolean>>;\n};\n\nconst CommandAlertDialogContext = React.createContext({} as CommandAlertDialogContextValue);\n\n/**\n * CommandAlertDialog\n */\nexport function CommandAlertDialog({ children, ...props }: AlertDialogProps) {\n const [open, setOpen] = React.useState(false);\n\n return (\n <AlertDialog {...props} open={open} onOpenChange={setOpen}>\n <CommandAlertDialogContext.Provider value={{ open, setOpen }}>\n {children}\n </CommandAlertDialogContext.Provider>\n </AlertDialog>\n );\n}\n\n/**\n * CommandAlertDialogTrigger\n */\ntype CommandAlertDialogTriggerProps = {\n children: React.ReactNode;\n className?: string;\n label?: string;\n hotkey?: Keys;\n disabled?: boolean;\n};\n\nexport function CommandAlertDialogTrigger({\n label,\n hotkey,\n children,\n disabled,\n ...props\n}: CommandAlertDialogTriggerProps) {\n const { menu, status } = useCommand();\n const { setOpen } = React.useContext(CommandAlertDialogContext);\n\n const isDisabled = disabled || status === \"pending\";\n\n useHotkeys(hotkey ?? \"\", () => setOpen(true), { enabled: !isDisabled && hotkey !== undefined });\n\n if (menu === \"inline\" || menu === \"table\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger\n {...props}\n disabled={isDisabled}\n className={cn(buttonVariants({ variant: \"outline\", size: \"sm\" }), props.className)}\n >\n {children}\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n\n if (menu === \"dropdown\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger asChild>\n <DropdownMenuItem\n {...props}\n disabled={isDisabled}\n onClick={(e) => {\n e.preventDefault();\n setOpen(true);\n }}\n >\n {children}\n </DropdownMenuItem>\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n\n if (menu === \"context\") {\n return (\n <CommandTrigger label={label}>\n <AlertDialogTrigger asChild>\n <ContextMenuItem\n {...props}\n disabled={isDisabled}\n onClick={(e) => {\n e.preventDefault();\n setOpen(true);\n }}\n >\n {children}\n </ContextMenuItem>\n </AlertDialogTrigger>\n </CommandTrigger>\n );\n }\n}\n\n/**\n * CommandAlertDialogContent\n */\nexport function CommandAlertDialogContent({ children, ...props }: AlertDialogContentProps) {\n return <AlertDialogContent {...props}>{children}</AlertDialogContent>;\n}\n\n/**\n * CommandAlertDialogHeader\n */\nexport function CommandAlertDialogHeader({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogHeader {...props}>{children}</AlertDialogHeader>;\n}\n\n/**\n * CommandAlertDialogTitle\n */\nexport function CommandAlertDialogTitle({ children, ...props }: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogTitle {...props}>{children}</AlertDialogTitle>;\n}\n\n/**\n * CommandAlertDialogDescription\n */\nexport function CommandAlertDialogDescription({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogDescription {...props}>{children}</AlertDialogDescription>;\n}\n\n/**\n * CommandAlertDialogFooter\n */\nexport function CommandAlertDialogFooter({\n children,\n ...props\n}: React.HTMLAttributes<HTMLElement>) {\n return <AlertDialogFooter {...props}>{children}</AlertDialogFooter>;\n}\n\n/**\n * CommandAlertDialogCancel\n */\nexport function CommandAlertDialogCancel({ children, ...props }: AlertDialogCancelProps) {\n return <AlertDialogCancel {...props}>{children}</AlertDialogCancel>;\n}\n\n/**\n * CommandAlertDialogAction\n */\ntype CommandAlertDialogActionProps<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n> = {\n variables: TVariables;\n mutation: MutationOptions<TData, TError, TVariables, TOnMutateResult>;\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n};\n\nexport function CommandAlertDialogAction<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n>({\n variables,\n mutation,\n children,\n disabled,\n ...props\n}: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>) {\n const { setOpen } = React.useContext(CommandAlertDialogContext);\n const { status } = useCommand();\n\n const { mutateAsync } = useCommandMutation({\n ...mutation,\n onSuccess: async (...params) => {\n setOpen(false);\n\n return await mutation?.onSuccess?.(...params);\n },\n });\n\n const isDisabled = disabled || status === \"pending\";\n\n return (\n <AlertDialogAction {...props} disabled={isDisabled} onClick={() => mutateAsync(variables)}>\n {status === \"pending\" && <Icons.spinner className=\"mr-2 h-4 w-4 animate-spin\" />}\n {children}\n </AlertDialogAction>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsCA,MAAM,4BAA4B,MAAM,cAAc,EAAE,CAAmC;;;;AAK3F,SAAgB,mBAAmB,EAAE,UAAU,GAAG,SAA2B;CAC3E,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,MAAM;AAE7C,QACE,oBAAC;EAAY,GAAI;EAAa;EAAM,cAAc;YAChD,oBAAC,0BAA0B;GAAS,OAAO;IAAE;IAAM;IAAS;GACzD;IACkC;GACzB;;AAelB,SAAgB,0BAA0B,EACxC,OACA,QACA,UACA,UACA,GAAG,SAC8B;CACjC,MAAM,EAAE,MAAM,WAAW,YAAY;CACrC,MAAM,EAAE,YAAY,MAAM,WAAW,0BAA0B;CAE/D,MAAM,aAAa,YAAY,WAAW;AAE1C,YAAW,UAAU,UAAU,QAAQ,KAAK,EAAE,EAAE,SAAS,CAAC,cAAc,WAAW,QAAW,CAAC;AAE/F,KAAI,SAAS,YAAY,SAAS,QAChC,QACE,oBAAC;EAAsB;YACrB,oBAAC;GACC,GAAI;GACJ,UAAU;GACV,WAAW,GAAG,eAAe;IAAE,SAAS;IAAW,MAAM;IAAM,CAAC,EAAE,MAAM,UAAU;GAEjF;IACkB;GACN;AAIrB,KAAI,SAAS,WACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAmB;aAClB,oBAAC;IACC,GAAI;IACJ,UAAU;IACV,UAAU,MAAM;AACd,OAAE,gBAAgB;AAClB,aAAQ,KAAK;;IAGd;KACgB;IACA;GACN;AAIrB,KAAI,SAAS,UACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAmB;aAClB,oBAAC;IACC,GAAI;IACJ,UAAU;IACV,UAAU,MAAM;AACd,OAAE,gBAAgB;AAClB,aAAQ,KAAK;;IAGd;KACe;IACC;GACN;;;;;AAQvB,SAAgB,0BAA0B,EAAE,UAAU,GAAG,SAAkC;AACzF,QAAO,oBAAC;EAAmB,GAAI;EAAQ;GAA8B;;;;;AAMvE,SAAgB,yBAAyB,EACvC,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;;;;AAMrE,SAAgB,wBAAwB,EAAE,UAAU,GAAG,SAA4C;AACjG,QAAO,oBAAC;EAAiB,GAAI;EAAQ;GAA4B;;;;;AAMnE,SAAgB,8BAA8B,EAC5C,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAuB,GAAI;EAAQ;GAAkC;;;;;AAM/E,SAAgB,yBAAyB,EACvC,UACA,GAAG,SACiC;AACpC,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;;;;AAMrE,SAAgB,yBAAyB,EAAE,UAAU,GAAG,SAAiC;AACvF,QAAO,oBAAC;EAAkB,GAAI;EAAQ;GAA6B;;AAmBrE,SAAgB,yBAKd,EACA,WACA,UACA,UACA,UACA,GAAG,SACyE;CAC5E,MAAM,EAAE,YAAY,MAAM,WAAW,0BAA0B;CAC/D,MAAM,EAAE,WAAW,YAAY;CAE/B,MAAM,EAAE,gBAAgB,mBAAmB;EACzC,GAAG;EACH,WAAW,OAAO,GAAG,WAAW;AAC9B,WAAQ,MAAM;AAEd,UAAO,MAAM,UAAU,YAAY,GAAG,OAAO;;EAEhD,CAAC;CAEF,MAAM,aAAa,YAAY,WAAW;AAE1C,QACE,qBAAC;EAAkB,GAAI;EAAO,UAAU;EAAY,eAAe,YAAY,UAAU;aACtF,WAAW,aAAa,oBAAC,MAAM,WAAQ,WAAU,8BAA8B,EAC/E;GACiB"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
4
4
  import { Keys } from "react-hotkeys-hook";
@@ -21,7 +21,7 @@ declare function CommandClick<TData = unknown, TError = DefaultError, TVariables
21
21
  hotkey,
22
22
  disabled,
23
23
  ...props
24
- }: CommandClickProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime20.JSX.Element | null;
24
+ }: CommandClickProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime0.JSX.Element | null;
25
25
  //#endregion
26
26
  export { CommandClick, CommandClickProps };
27
27
  //# sourceMappingURL=click-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"click-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/click-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;KAYY,4CAED;YAIC,KAAA,CAAM;;EANN,QAAA,CAAA,EAAA,OAAA;EAED,SAAA,EAOE,UAPF;EAIC,QAAM,EAIN,eAJM,CAIU,KAJV,EAIiB,MAJjB,EAIyB,UAJzB,EAIqC,eAJrC,CAAA;EAGL,KAAA,CAAA,EAAA,MAAA;EACe,MAAA,CAAA,EAEjB,IAFiB;CAAO;AAAQ,iBAK3B,YAL2B,CAAA,QAAA,OAAA,EAAA,SAOhC,YAPgC,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,QAAA;EAAA,SAAA;EAAA,QAAA;EAAA,KAAA;EAAA,MAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAkBxC,iBAlBwC,CAkBtB,KAlBsB,EAkBf,MAlBe,EAkBP,UAlBO,EAkBK,eAlBL,CAAA,CAAA,EAkBqB,mBAAA,CAAA,GAAA,CAAA,OAAA,GAlBrB,IAAA"}
1
+ {"version":3,"file":"click-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/click-command.client.tsx"],"mappings":";;;;;;KAYY,iBAAA,2BAED,YAAA;EAIT,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;EACA,QAAA;EACA,SAAA,EAAW,UAAA;EACX,QAAA,EAAU,eAAA,CAAgB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,eAAA;EACrD,KAAA;EACA,MAAA,GAAS,IAAA;AAAA;AAAA,iBAGK,YAAA,2BAEL,YAAA,oDAAA,CAAA;EAIT,QAAA;EACA,SAAA;EACA,QAAA;EACA,KAAA;EACA,MAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,iBAAA,CAAkB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,eAAA,IAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -7,7 +7,6 @@ import { useCommand } from "../hooks/context.client.mjs";
7
7
  import { useCommandMutation } from "../hooks/use-command-mutation.client.mjs";
8
8
  import { CommandTrigger } from "./command-trigger.client.mjs";
9
9
  import { jsx } from "react/jsx-runtime";
10
- import React from "react";
11
10
  import { useHotkeys } from "react-hotkeys-hook";
12
11
 
13
12
  //#region src/modules/commands/components/click-command.client.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"click-command.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/click-command.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { ContextMenuItem } from \"@/components/ui/context-menu\";\nimport { DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\nimport { DefaultError, MutationOptions } from \"@tanstack/react-query\";\nimport React from \"react\";\nimport { Keys, useHotkeys } from \"react-hotkeys-hook\";\nimport { useCommand } from \"../hooks/context.client\";\nimport { useCommandMutation } from \"../hooks/use-command-mutation.client\";\nimport { CommandTrigger } from \"./command-trigger.client\";\n\nexport type CommandClickProps<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n> = {\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n variables: TVariables;\n mutation: MutationOptions<TData, TError, TVariables, TOnMutateResult>;\n label?: string;\n hotkey?: Keys;\n};\n\nexport function CommandClick<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n>({\n children,\n variables,\n mutation,\n label,\n hotkey,\n disabled,\n ...props\n}: CommandClickProps<TData, TError, TVariables, TOnMutateResult>) {\n const { menu, status } = useCommand();\n const { mutate } = useCommandMutation(mutation);\n\n const isDisabled = disabled || status === \"pending\";\n\n const handleClick = () => mutate(variables);\n\n useHotkeys(hotkey ?? \"\", () => handleClick(), { enabled: !isDisabled && hotkey !== undefined });\n\n if (menu === \"inline\") {\n return (\n <CommandTrigger label={label}>\n <Button {...props} variant=\"outline\" size=\"sm\" disabled={isDisabled} onClick={handleClick}>\n {children}\n </Button>\n </CommandTrigger>\n );\n }\n\n if (menu === \"dropdown\") {\n return (\n <CommandTrigger label={label}>\n <DropdownMenuItem {...props} disabled={isDisabled} onClick={handleClick}>\n {children}\n </DropdownMenuItem>\n </CommandTrigger>\n );\n }\n\n if (menu === \"context\") {\n return (\n <CommandTrigger label={label}>\n <ContextMenuItem {...props} disabled={isDisabled} onClick={handleClick}>\n {children}\n </ContextMenuItem>\n </CommandTrigger>\n );\n }\n\n if (menu === \"table\") {\n return (\n <CommandTrigger label={label}>\n <Button {...props} variant=\"outline\" size=\"sm\" disabled={isDisabled} onClick={handleClick}>\n {children}\n </Button>\n </CommandTrigger>\n );\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;AA2BA,SAAgB,aAKd,EACA,UACA,WACA,UACA,OACA,QACA,UACA,GAAG,SAC6D;CAChE,MAAM,EAAE,MAAM,WAAW,YAAY;CACrC,MAAM,EAAE,WAAW,mBAAmB,SAAS;CAE/C,MAAM,aAAa,YAAY,WAAW;CAE1C,MAAM,oBAAoB,OAAO,UAAU;AAE3C,YAAW,UAAU,UAAU,aAAa,EAAE,EAAE,SAAS,CAAC,cAAc,WAAW,QAAW,CAAC;AAE/F,KAAI,SAAS,SACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAO,GAAI;GAAO,SAAQ;GAAU,MAAK;GAAK,UAAU;GAAY,SAAS;GAC3E;IACM;GACM;AAIrB,KAAI,SAAS,WACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAiB,GAAI;GAAO,UAAU;GAAY,SAAS;GACzD;IACgB;GACJ;AAIrB,KAAI,SAAS,UACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAgB,GAAI;GAAO,UAAU;GAAY,SAAS;GACxD;IACe;GACH;AAIrB,KAAI,SAAS,QACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAO,GAAI;GAAO,SAAQ;GAAU,MAAK;GAAK,UAAU;GAAY,SAAS;GAC3E;IACM;GACM;AAIrB,QAAO"}
1
+ {"version":3,"file":"click-command.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/click-command.client.tsx"],"sourcesContent":["\"use client\";\n\nimport type { DefaultError, MutationOptions } from \"@tanstack/react-query\";\nimport type React from \"react\";\nimport { type Keys, useHotkeys } from \"react-hotkeys-hook\";\nimport { Button } from \"@/components/ui/button\";\nimport { ContextMenuItem } from \"@/components/ui/context-menu\";\nimport { DropdownMenuItem } from \"@/components/ui/dropdown-menu\";\nimport { useCommand } from \"../hooks/context.client\";\nimport { useCommandMutation } from \"../hooks/use-command-mutation.client\";\nimport { CommandTrigger } from \"./command-trigger.client\";\n\nexport type CommandClickProps<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n> = {\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n variables: TVariables;\n mutation: MutationOptions<TData, TError, TVariables, TOnMutateResult>;\n label?: string;\n hotkey?: Keys;\n};\n\nexport function CommandClick<\n TData = unknown,\n TError = DefaultError,\n TVariables = undefined,\n TOnMutateResult = unknown,\n>({\n children,\n variables,\n mutation,\n label,\n hotkey,\n disabled,\n ...props\n}: CommandClickProps<TData, TError, TVariables, TOnMutateResult>) {\n const { menu, status } = useCommand();\n const { mutate } = useCommandMutation(mutation);\n\n const isDisabled = disabled || status === \"pending\";\n\n const handleClick = () => mutate(variables);\n\n useHotkeys(hotkey ?? \"\", () => handleClick(), { enabled: !isDisabled && hotkey !== undefined });\n\n if (menu === \"inline\") {\n return (\n <CommandTrigger label={label}>\n <Button {...props} variant=\"outline\" size=\"sm\" disabled={isDisabled} onClick={handleClick}>\n {children}\n </Button>\n </CommandTrigger>\n );\n }\n\n if (menu === \"dropdown\") {\n return (\n <CommandTrigger label={label}>\n <DropdownMenuItem {...props} disabled={isDisabled} onClick={handleClick}>\n {children}\n </DropdownMenuItem>\n </CommandTrigger>\n );\n }\n\n if (menu === \"context\") {\n return (\n <CommandTrigger label={label}>\n <ContextMenuItem {...props} disabled={isDisabled} onClick={handleClick}>\n {children}\n </ContextMenuItem>\n </CommandTrigger>\n );\n }\n\n if (menu === \"table\") {\n return (\n <CommandTrigger label={label}>\n <Button {...props} variant=\"outline\" size=\"sm\" disabled={isDisabled} onClick={handleClick}>\n {children}\n </Button>\n </CommandTrigger>\n );\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;;;;AA2BA,SAAgB,aAKd,EACA,UACA,WACA,UACA,OACA,QACA,UACA,GAAG,SAC6D;CAChE,MAAM,EAAE,MAAM,WAAW,YAAY;CACrC,MAAM,EAAE,WAAW,mBAAmB,SAAS;CAE/C,MAAM,aAAa,YAAY,WAAW;CAE1C,MAAM,oBAAoB,OAAO,UAAU;AAE3C,YAAW,UAAU,UAAU,aAAa,EAAE,EAAE,SAAS,CAAC,cAAc,WAAW,QAAW,CAAC;AAE/F,KAAI,SAAS,SACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAO,GAAI;GAAO,SAAQ;GAAU,MAAK;GAAK,UAAU;GAAY,SAAS;GAC3E;IACM;GACM;AAIrB,KAAI,SAAS,WACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAiB,GAAI;GAAO,UAAU;GAAY,SAAS;GACzD;IACgB;GACJ;AAIrB,KAAI,SAAS,UACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAgB,GAAI;GAAO,UAAU;GAAY,SAAS;GACxD;IACe;GACH;AAIrB,KAAI,SAAS,QACX,QACE,oBAAC;EAAsB;YACrB,oBAAC;GAAO,GAAI;GAAO,SAAQ;GAAU,MAAK;GAAK,UAAU;GAAY,SAAS;GAC3E;IACM;GACM;AAIrB,QAAO"}
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime21 from "react/jsx-runtime";
2
- import * as react6 from "react";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react from "react";
3
3
  import { PropsWithChildren } from "react";
4
4
 
5
5
  //#region src/modules/commands/components/command-trigger.client.d.ts
@@ -9,7 +9,7 @@ import { PropsWithChildren } from "react";
9
9
  type CommandTriggerContextValue = {
10
10
  label?: string;
11
11
  };
12
- declare const CommandTriggerContext: react6.Context<CommandTriggerContextValue>;
12
+ declare const CommandTriggerContext: react.Context<CommandTriggerContextValue>;
13
13
  /**
14
14
  * Command trigger
15
15
  */
@@ -18,17 +18,17 @@ declare function CommandTrigger({
18
18
  children
19
19
  }: PropsWithChildren<{
20
20
  label?: string;
21
- }>): react_jsx_runtime21.JSX.Element;
21
+ }>): react_jsx_runtime0.JSX.Element;
22
22
  /**
23
23
  * Command label
24
24
  */
25
- declare function CommandLabel(): react_jsx_runtime21.JSX.Element | null;
25
+ declare function CommandLabel(): react_jsx_runtime0.JSX.Element | null;
26
26
  /**
27
27
  * Command icon
28
28
  */
29
29
  declare function CommandIcon({
30
30
  children
31
- }: PropsWithChildren): react_jsx_runtime21.JSX.Element;
31
+ }: PropsWithChildren): react_jsx_runtime0.JSX.Element;
32
32
  //#endregion
33
33
  export { CommandIcon, CommandLabel, CommandTrigger, CommandTriggerContext };
34
34
  //# sourceMappingURL=command-trigger.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-trigger.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;KAcK,0BAAA;EAAA,KAAA,CAAA,EAAA,MAAA;AAIL,CAAA;AAKgB,cALH,qBAKiB,EALI,MAAA,CAAA,OAKJ,CALI,0BAKJ,CAAA;;;;AAA2D,iBAAzE,cAAA,CAAyE;EAAA,KAAA;EAAA;AAmBzF,CAnByF,EAArC,iBAAqC,CAAA;EAAA,KAAA,CAAA,EAAA,MAAA;AAmBzF,CAAA,CAAA,CAAA,EAnByF,mBAAA,CAAA,GAAA,CAAA,OAmB7D;AAc5B;;;AAA2D,iBAd3C,YAAA,CAAA,CAc2C,EAd/B,mBAAA,CAAA,GAAA,CAAA,OAAA,GAc+B,IAAA;;;;iBAA3C,WAAA;;GAA0B,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"command-trigger.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"mappings":";;;;;;;;KAcK,0BAAA;EACH,KAAA;AAAA;AAAA,cAGW,qBAAA,EAAqB,KAAA,CAAA,OAAA,CAAA,0BAAA;;;AAAlC;iBAKgB,cAAA,CAAA;EAAiB,KAAA;EAAO;AAAA,GAAY,iBAAA;EAAoB,KAAA;AAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;AAAzF;;iBAmBgB,YAAA,CAAA,GAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBAcZ,WAAA,CAAA;EAAc;AAAA,GAAY,iBAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"command-trigger.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"@/components/ui/tooltip.client\";\nimport { createContext, PropsWithChildren, useContext } from \"react\";\nimport { useCommand } from \"../hooks/context.client\";\n\n/**\n * Command trigger context\n */\ntype CommandTriggerContextValue = {\n label?: string;\n};\n\nexport const CommandTriggerContext = createContext({} as CommandTriggerContextValue);\n\n/**\n * Command trigger\n */\nexport function CommandTrigger({ label, children }: PropsWithChildren<{ label?: string }>) {\n const { menu } = useCommand();\n const showLabel = label && menu !== \"dropdown\" && menu !== \"context\";\n\n return (\n <CommandTriggerContext.Provider value={{ label }}>\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>{children}</TooltipTrigger>\n {showLabel && <TooltipContent>{label}</TooltipContent>}\n </Tooltip>\n </TooltipProvider>\n </CommandTriggerContext.Provider>\n );\n}\n\n/**\n * Command label\n */\nexport function CommandLabel() {\n const { label } = useContext(CommandTriggerContext);\n\n const { menu } = useCommand();\n const showLabel = label && (menu === \"dropdown\" || menu === \"context\");\n\n if (!showLabel) return null;\n\n return <span className=\"ml-3\">{label}</span>;\n}\n\n/**\n * Command icon\n */\nexport function CommandIcon({ children }: PropsWithChildren) {\n const { label } = useContext(CommandTriggerContext);\n\n const { menu } = useCommand();\n const showLabel = label && (menu === \"dropdown\" || menu === \"context\");\n\n return (\n <>\n {children}\n {showLabel && <span className=\"ml-3\">{label}</span>}\n </>\n );\n}\n"],"mappings":";;;;;;;;AAkBA,MAAa,wBAAwB,cAAc,EAAE,CAA+B;;;;AAKpF,SAAgB,eAAe,EAAE,OAAO,YAAmD;CACzF,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,YAAY,SAAS,SAAS,cAAc,SAAS;AAE3D,QACE,oBAAC,sBAAsB;EAAS,OAAO,EAAE,OAAO;YAC9C,oBAAC,6BACC,qBAAC,sBACC,oBAAC;GAAe;GAAS;IAA0B,EAClD,aAAa,oBAAC,4BAAgB,QAAuB,IAC9C,GACM;GACa;;;;;AAOrC,SAAgB,eAAe;CAC7B,MAAM,EAAE,UAAU,WAAW,sBAAsB;CAEnD,MAAM,EAAE,SAAS,YAAY;AAG7B,KAAI,EAFc,UAAU,SAAS,cAAc,SAAS,YAE5C,QAAO;AAEvB,QAAO,oBAAC;EAAK,WAAU;YAAQ;GAAa;;;;;AAM9C,SAAgB,YAAY,EAAE,YAA+B;CAC3D,MAAM,EAAE,UAAU,WAAW,sBAAsB;CAEnD,MAAM,EAAE,SAAS,YAAY;AAG7B,QACE,4CACG,UAJa,UAAU,SAAS,cAAc,SAAS,cAK1C,oBAAC;EAAK,WAAU;YAAQ;GAAa,IAClD"}
1
+ {"version":3,"file":"command-trigger.client.mjs","names":[],"sources":["../../../../src/modules/commands/components/command-trigger.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, type PropsWithChildren, useContext } from \"react\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"@/components/ui/tooltip.client\";\nimport { useCommand } from \"../hooks/context.client\";\n\n/**\n * Command trigger context\n */\ntype CommandTriggerContextValue = {\n label?: string;\n};\n\nexport const CommandTriggerContext = createContext({} as CommandTriggerContextValue);\n\n/**\n * Command trigger\n */\nexport function CommandTrigger({ label, children }: PropsWithChildren<{ label?: string }>) {\n const { menu } = useCommand();\n const showLabel = label && menu !== \"dropdown\" && menu !== \"context\";\n\n return (\n <CommandTriggerContext.Provider value={{ label }}>\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>{children}</TooltipTrigger>\n {showLabel && <TooltipContent>{label}</TooltipContent>}\n </Tooltip>\n </TooltipProvider>\n </CommandTriggerContext.Provider>\n );\n}\n\n/**\n * Command label\n */\nexport function CommandLabel() {\n const { label } = useContext(CommandTriggerContext);\n\n const { menu } = useCommand();\n const showLabel = label && (menu === \"dropdown\" || menu === \"context\");\n\n if (!showLabel) return null;\n\n return <span className=\"ml-3\">{label}</span>;\n}\n\n/**\n * Command icon\n */\nexport function CommandIcon({ children }: PropsWithChildren) {\n const { label } = useContext(CommandTriggerContext);\n\n const { menu } = useCommand();\n const showLabel = label && (menu === \"dropdown\" || menu === \"context\");\n\n return (\n <>\n {children}\n {showLabel && <span className=\"ml-3\">{label}</span>}\n </>\n );\n}\n"],"mappings":";;;;;;;;AAkBA,MAAa,wBAAwB,cAAc,EAAE,CAA+B;;;;AAKpF,SAAgB,eAAe,EAAE,OAAO,YAAmD;CACzF,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,YAAY,SAAS,SAAS,cAAc,SAAS;AAE3D,QACE,oBAAC,sBAAsB;EAAS,OAAO,EAAE,OAAO;YAC9C,oBAAC,6BACC,qBAAC,sBACC,oBAAC;GAAe;GAAS;IAA0B,EAClD,aAAa,oBAAC,4BAAgB,QAAuB,IAC9C,GACM;GACa;;;;;AAOrC,SAAgB,eAAe;CAC7B,MAAM,EAAE,UAAU,WAAW,sBAAsB;CAEnD,MAAM,EAAE,SAAS,YAAY;AAG7B,KAAI,EAFc,UAAU,SAAS,cAAc,SAAS,YAE5C,QAAO;AAEvB,QAAO,oBAAC;EAAK,WAAU;YAAQ;GAAa;;;;;AAM9C,SAAgB,YAAY,EAAE,YAA+B;CAC3D,MAAM,EAAE,UAAU,WAAW,sBAAsB;CAEnD,MAAM,EAAE,SAAS,YAAY;AAG7B,QACE,4CACG,UAJa,UAAU,SAAS,cAAc,SAAS,cAK1C,oBAAC;EAAK,WAAU;YAAQ;GAAa,IAClD"}