@tulip-systems/core 0.5.14 → 0.5.16

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 (355) hide show
  1. package/dist/auth/client.d.mts +5 -4
  2. package/dist/auth/client.mjs +6 -5
  3. package/dist/auth.mjs +2 -2
  4. package/dist/components/client.d.mts +1 -3
  5. package/dist/components/client.mjs +3 -5
  6. package/dist/components/common/icons.d.mts +52 -52
  7. package/dist/components/common/icons.d.mts.map +1 -1
  8. package/dist/components/common/status.d.mts +3 -3
  9. package/dist/components/editor/components/content.client.d.mts +2 -2
  10. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  11. package/dist/components/editor/components/editor.client.d.mts +6 -6
  12. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  13. package/dist/components/editor/components/menu.client.d.mts +3 -3
  14. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  15. package/dist/components/editor/lib/constants.d.mts +27 -27
  16. package/dist/components/header/back-button.client.d.mts +2 -2
  17. package/dist/components/header/back-button.client.d.mts.map +1 -1
  18. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  19. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  20. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  21. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  22. package/dist/components/header/header.client.d.mts +2 -2
  23. package/dist/components/header/header.client.d.mts.map +1 -1
  24. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  25. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  26. package/dist/components/header/top-bar.client.d.mts +4 -4
  27. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  28. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  29. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  30. package/dist/components/layouts/admin-error-pages.d.mts +4 -4
  31. package/dist/components/layouts/admin-layout.d.mts +2 -2
  32. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  33. package/dist/components/layouts/admin-layout.mjs +1 -1
  34. package/dist/components/layouts/admin-layout.mjs.map +1 -1
  35. package/dist/components/layouts/admin-loading.d.mts +2 -2
  36. package/dist/components/layouts/empty-page.d.mts +4 -4
  37. package/dist/components/layouts/error-page.d.mts +9 -9
  38. package/dist/components/layouts/error-page.d.mts.map +1 -1
  39. package/dist/components/layouts/error-sections.d.mts +5 -5
  40. package/dist/components/layouts/list-layout.d.mts +2 -2
  41. package/dist/components/layouts/providers.client.d.mts +2 -2
  42. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  43. package/dist/components/layouts/root-error-pages.d.mts +2 -2
  44. package/dist/components/layouts/root-layout.server.d.mts +4 -4
  45. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  46. package/dist/components/layouts/root-loading.d.mts +2 -2
  47. package/dist/components/layouts/tab-layout.d.mts +2 -2
  48. package/dist/components/lists/data-list.d.mts +5 -5
  49. package/dist/components/lists/data-stack.d.mts +8 -8
  50. package/dist/components/navigation/admin-sidebar-header.client.mjs +3 -2
  51. package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
  52. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  53. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  54. package/dist/components/ui/accordion.d.mts +5 -5
  55. package/dist/components/ui/alert-dialog.d.mts +12 -12
  56. package/dist/components/ui/alert.d.mts +6 -6
  57. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  58. package/dist/components/ui/avatar.client.d.mts +4 -4
  59. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  60. package/dist/components/ui/badge.d.mts +5 -5
  61. package/dist/components/ui/breadcrumb.d.mts +8 -8
  62. package/dist/components/ui/button.d.mts +5 -5
  63. package/dist/components/ui/calendar.d.mts +3 -3
  64. package/dist/components/ui/card.d.mts +7 -7
  65. package/dist/components/ui/carousel.d.mts +6 -6
  66. package/dist/components/ui/chart.client.d.mts +5 -5
  67. package/dist/components/ui/chart.client.d.mts.map +1 -1
  68. package/dist/components/ui/checkbox.d.mts +2 -2
  69. package/dist/components/ui/collapsible.client.d.mts +4 -4
  70. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  71. package/dist/components/ui/color-picker.client.d.mts +2 -2
  72. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  73. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  74. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  75. package/dist/components/ui/combobox.client.d.mts +2 -2
  76. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  77. package/dist/components/ui/command.d.mts +10 -10
  78. package/dist/components/ui/context-menu.d.mts +16 -16
  79. package/dist/components/ui/date-picker.client.d.mts +2 -2
  80. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  81. package/dist/components/ui/dialog.client.d.mts +11 -11
  82. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  83. package/dist/components/ui/drawer.client.d.mts +11 -11
  84. package/dist/components/ui/drawer.client.d.mts.map +1 -1
  85. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  86. package/dist/components/ui/form.client.d.mts +7 -7
  87. package/dist/components/ui/form.client.d.mts.map +1 -1
  88. package/dist/components/ui/hover-card.client.d.mts +4 -4
  89. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  90. package/dist/components/ui/input-date-time.d.mts +23 -0
  91. package/dist/components/ui/input-date-time.d.mts.map +1 -0
  92. package/dist/components/ui/input-date-time.mjs +34 -0
  93. package/dist/components/ui/input-date-time.mjs.map +1 -0
  94. package/dist/components/ui/input-date.d.mts +14 -0
  95. package/dist/components/ui/input-date.d.mts.map +1 -0
  96. package/dist/components/ui/input-date.mjs +16 -0
  97. package/dist/components/ui/input-date.mjs.map +1 -0
  98. package/dist/components/ui/input-recipient.d.mts +2 -2
  99. package/dist/components/ui/input-time.d.mts +14 -0
  100. package/dist/components/ui/input-time.d.mts.map +1 -0
  101. package/dist/components/ui/input-time.mjs +16 -0
  102. package/dist/components/ui/input-time.mjs.map +1 -0
  103. package/dist/components/ui/input.d.mts +2 -2
  104. package/dist/components/ui/label.d.mts +2 -2
  105. package/dist/components/ui/navigation-menu.d.mts +11 -11
  106. package/dist/components/ui/pagination.d.mts +8 -8
  107. package/dist/components/ui/popover.d.mts +5 -5
  108. package/dist/components/ui/progress.client.d.mts +2 -2
  109. package/dist/components/ui/progress.client.d.mts.map +1 -1
  110. package/dist/components/ui/radio-group.d.mts +3 -3
  111. package/dist/components/ui/resizable.client.d.mts +4 -4
  112. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  113. package/dist/components/ui/scroll-area.d.mts +3 -3
  114. package/dist/components/ui/select.client.d.mts +11 -11
  115. package/dist/components/ui/select.client.d.mts.map +1 -1
  116. package/dist/components/ui/separator.d.mts +2 -2
  117. package/dist/components/ui/sheet.client.d.mts +9 -9
  118. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  119. package/dist/components/ui/sidebar.client.d.mts +26 -26
  120. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  121. package/dist/components/ui/skeleton.d.mts +2 -2
  122. package/dist/components/ui/slider.d.mts +2 -2
  123. package/dist/components/ui/sonner.client.d.mts +2 -2
  124. package/dist/components/ui/sonner.client.mjs +1 -1
  125. package/dist/components/ui/switch.d.mts +2 -2
  126. package/dist/components/ui/tabs.d.mts +5 -5
  127. package/dist/components/ui/textarea.d.mts +2 -2
  128. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  129. package/dist/components/ui/toggle.d.mts +4 -4
  130. package/dist/components/ui/tooltip.client.d.mts +5 -5
  131. package/dist/components.d.mts +4 -1
  132. package/dist/components.mjs +6 -3
  133. package/dist/inline-edit/client.d.mts +3 -1
  134. package/dist/inline-edit/client.mjs +3 -1
  135. package/dist/lib/client.mjs +1 -1
  136. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  137. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  138. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  139. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  140. package/dist/modules/auth/components/allowed.client.mjs +2 -3
  141. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  142. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  143. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  144. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  145. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  146. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  147. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  148. package/dist/modules/auth/components/create-first-user-page.client.mjs +4 -3
  149. package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
  150. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  151. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  152. package/dist/modules/auth/components/forget-password-page.client.mjs +4 -3
  153. package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
  154. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  155. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  156. package/dist/modules/auth/components/guard.server.d.mts +3 -2
  157. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  158. package/dist/modules/auth/components/guard.server.mjs +1 -0
  159. package/dist/modules/auth/components/guard.server.mjs.map +1 -1
  160. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  161. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  162. package/dist/modules/auth/components/login-page.client.mjs +4 -3
  163. package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
  164. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  165. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  166. package/dist/modules/auth/components/reset-password-page.client.mjs +4 -3
  167. package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
  168. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  169. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  170. package/dist/modules/auth/components/update-password-command.mjs +1 -1
  171. package/dist/modules/auth/db/schema.d.mts +73 -73
  172. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  173. package/dist/modules/auth/handler/{client.client.d.mts → create-client.client.d.mts} +328 -188
  174. package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -0
  175. package/dist/modules/auth/handler/create-client.client.mjs +26 -0
  176. package/dist/modules/auth/handler/create-client.client.mjs.map +1 -0
  177. package/dist/modules/auth/handler/init.d.mts +116 -130
  178. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  179. package/dist/modules/auth/hooks/use-auth-client.d.mts +24 -0
  180. package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -0
  181. package/dist/modules/auth/hooks/use-auth-client.mjs +31 -0
  182. package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -0
  183. package/dist/modules/auth/hooks/use-permission.d.mts +8 -35
  184. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  185. package/dist/modules/auth/hooks/use-permission.mjs +47 -93
  186. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  187. package/dist/modules/auth/hooks/use-session.d.mts +5 -119
  188. package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
  189. package/dist/modules/auth/hooks/use-session.mjs +15 -17
  190. package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
  191. package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
  192. package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
  193. package/dist/modules/auth/lib/helpers.server.mjs +1 -1
  194. package/dist/modules/auth/lib/validators.d.mts +2 -2
  195. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  196. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +11 -11
  197. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  198. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  199. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  200. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  201. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  202. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  203. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  204. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  205. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  206. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  207. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  208. package/dist/modules/commands/components/form-dialog-command.client.d.mts +12 -12
  209. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  210. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  211. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  212. package/dist/modules/commands/hooks/use-command-mutation.client.mjs +1 -1
  213. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  214. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  215. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  216. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  217. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  218. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  219. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  220. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  221. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  222. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  223. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  224. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  225. package/dist/modules/config/db/helpers.d.mts +5 -5
  226. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  227. package/dist/modules/config/lib/config.d.mts +1 -1
  228. package/dist/modules/config/lib/config.mjs.map +1 -1
  229. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  230. package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
  231. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  232. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  233. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  234. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  235. package/dist/modules/data-tables/components/header.d.mts +4 -4
  236. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  237. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  238. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  239. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  240. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  241. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  242. package/dist/modules/data-tables/components/table.d.mts +7 -7
  243. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  244. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  245. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  246. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  247. package/dist/modules/data-tables/strategies/helpers/sorting.mjs +1 -1
  248. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  249. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  250. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  251. package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
  252. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  253. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  254. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  255. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  256. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  257. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  258. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  259. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  260. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  261. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  262. package/dist/modules/inline-edit/components/date-time.client.d.mts +21 -0
  263. package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -0
  264. package/dist/modules/inline-edit/components/date-time.client.mjs +33 -0
  265. package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -0
  266. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  267. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  268. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  269. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  270. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  271. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  272. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  273. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  274. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  275. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  276. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  277. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  278. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  279. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  280. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  281. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  282. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +15 -2
  283. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
  284. package/dist/modules/inline-edit/hooks/use-inline.client.mjs +2 -6
  285. package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
  286. package/dist/modules/router/handler/init.server.d.mts +6 -6
  287. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  288. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  289. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  290. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  291. package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
  292. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  293. package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
  294. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  295. package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
  296. package/dist/modules/storage/components/image-grid.client.mjs +1 -1
  297. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  298. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  299. package/dist/modules/storage/components/upload-zone.client.mjs +1 -1
  300. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
  301. package/dist/modules/storage/lib/proxy.server.mjs +1 -1
  302. package/dist/modules/storage/lib/router.server.d.mts +2359 -2359
  303. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  304. package/dist/modules/storage/lib/router.server.mjs +1 -1
  305. package/dist/modules/storage/lib/schema.d.mts +92 -92
  306. package/dist/modules/storage/lib/service.server.d.mts +24 -24
  307. package/dist/modules/storage/lib/service.server.mjs +1 -1
  308. package/dist/modules/storage/lib/validators.d.mts +90 -90
  309. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  310. package/package.json +3 -10
  311. package/src/components/entry.client.ts +0 -2
  312. package/src/components/entry.ts +3 -0
  313. package/src/components/layouts/admin-layout.tsx +1 -3
  314. package/src/components/navigation/admin-sidebar-header.client.tsx +3 -20
  315. package/src/components/ui/input-date-time.tsx +58 -0
  316. package/src/components/ui/input-date.tsx +20 -0
  317. package/src/components/ui/input-time.tsx +20 -0
  318. package/src/modules/auth/components/allowed.client.tsx +2 -2
  319. package/src/modules/auth/components/create-first-user-page.client.tsx +3 -2
  320. package/src/modules/auth/components/forget-password-page.client.tsx +2 -1
  321. package/src/modules/auth/components/guard.server.tsx +2 -0
  322. package/src/modules/auth/components/login-page.client.tsx +2 -1
  323. package/src/modules/auth/components/reset-password-page.client.tsx +3 -1
  324. package/src/modules/auth/entry.client.ts +13 -1
  325. package/src/modules/auth/entry.ts +11 -0
  326. package/src/modules/auth/handler/create-client.client.ts +53 -0
  327. package/src/modules/auth/hooks/use-auth-client.tsx +38 -0
  328. package/src/modules/auth/hooks/use-permission.ts +49 -94
  329. package/src/modules/auth/hooks/use-session.ts +16 -16
  330. package/src/modules/commands/hooks/use-command-menu.client.tsx +0 -6
  331. package/src/modules/config/lib/config.ts +3 -2
  332. package/src/modules/inline-edit/components/date-time.client.tsx +38 -0
  333. package/src/modules/inline-edit/entry.client.ts +9 -0
  334. package/src/modules/inline-edit/entry.server.ts +3 -0
  335. package/src/modules/inline-edit/entry.ts +3 -0
  336. package/src/modules/inline-edit/hooks/use-inline.client.tsx +1 -1
  337. package/dist/components/ui/time-input.client.d.mts +0 -16
  338. package/dist/components/ui/time-input.client.d.mts.map +0 -1
  339. package/dist/components/ui/time-input.client.mjs +0 -53
  340. package/dist/components/ui/time-input.client.mjs.map +0 -1
  341. package/dist/components/ui/time-picker-input.client.d.mts +0 -15
  342. package/dist/components/ui/time-picker-input.client.d.mts.map +0 -1
  343. package/dist/components/ui/time-picker-input.client.mjs +0 -64
  344. package/dist/components/ui/time-picker-input.client.mjs.map +0 -1
  345. package/dist/lib/utils/time-picker.d.mts +0 -6
  346. package/dist/lib/utils/time-picker.d.mts.map +0 -1
  347. package/dist/lib/utils/time-picker.mjs +0 -104
  348. package/dist/lib/utils/time-picker.mjs.map +0 -1
  349. package/dist/modules/auth/handler/client.client.d.mts.map +0 -1
  350. package/dist/modules/auth/handler/client.client.mjs +0 -21
  351. package/dist/modules/auth/handler/client.client.mjs.map +0 -1
  352. package/src/components/ui/time-input.client.tsx +0 -56
  353. package/src/components/ui/time-picker-input.client.tsx +0 -107
  354. package/src/modules/auth/components/guard.client.tsx +0 -12
  355. package/src/modules/auth/handler/client.client.ts +0 -16
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime333 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime60 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_runtime333.JSX.Element | null;
24
+ }: CommandClickProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime60.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,oBAAA,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"],"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,5 +1,5 @@
1
- import * as react_jsx_runtime334 from "react/jsx-runtime";
2
- import * as react104 from "react";
1
+ import * as react_jsx_runtime61 from "react/jsx-runtime";
2
+ import * as react9 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: react104.Context<CommandTriggerContextValue>;
12
+ declare const CommandTriggerContext: react9.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_runtime334.JSX.Element;
21
+ }>): react_jsx_runtime61.JSX.Element;
22
22
  /**
23
23
  * Command label
24
24
  */
25
- declare function CommandLabel(): react_jsx_runtime334.JSX.Element | null;
25
+ declare function CommandLabel(): react_jsx_runtime61.JSX.Element | null;
26
26
  /**
27
27
  * Command icon
28
28
  */
29
29
  declare function CommandIcon({
30
30
  children
31
- }: PropsWithChildren): react_jsx_runtime334.JSX.Element;
31
+ }: PropsWithChildren): react_jsx_runtime61.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,QAAA,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,oBAAA,CAAA,GAAA,CAAA,OAmB7D;AAc5B;;;AAA2D,iBAd3C,YAAA,CAAA,CAc2C,EAd/B,oBAAA,CAAA,GAAA,CAAA,OAAA,GAc+B,IAAA;;;;iBAA3C,WAAA;;GAA0B,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
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,4 +1,4 @@
1
- import * as react_jsx_runtime337 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
4
4
  import { Keys } from "react-hotkeys-hook";
@@ -20,7 +20,7 @@ declare function CommandDialog({
20
20
  ...props
21
21
  }: Omit<DialogProps, "open" | "onOpenChange"> & {
22
22
  openState?: CommandDialogOpenState;
23
- }): react_jsx_runtime337.JSX.Element;
23
+ }): react_jsx_runtime64.JSX.Element;
24
24
  /**
25
25
  * CommandDialogTrigger
26
26
  */
@@ -37,42 +37,42 @@ declare function CommandDialogTrigger({
37
37
  children,
38
38
  disabled,
39
39
  ...props
40
- }: CommandDialogTriggerProps): react_jsx_runtime337.JSX.Element | undefined;
40
+ }: CommandDialogTriggerProps): react_jsx_runtime64.JSX.Element | undefined;
41
41
  /**
42
42
  * CommandDialogContent
43
43
  */
44
44
  declare function CommandDialogContent({
45
45
  children,
46
46
  ...props
47
- }: DialogContentProps): react_jsx_runtime337.JSX.Element;
47
+ }: DialogContentProps): react_jsx_runtime64.JSX.Element;
48
48
  /**
49
49
  * CommandDialogHeader
50
50
  */
51
51
  declare function CommandDialogHeader({
52
52
  children,
53
53
  ...props
54
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime337.JSX.Element;
54
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime64.JSX.Element;
55
55
  /**
56
56
  * CommandDialogTitle
57
57
  */
58
58
  declare function CommandDialogTitle({
59
59
  children,
60
60
  ...props
61
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime337.JSX.Element;
61
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime64.JSX.Element;
62
62
  /**
63
63
  * CommandDialogDescription
64
64
  */
65
65
  declare function CommandDialogDescription({
66
66
  children,
67
67
  ...props
68
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime337.JSX.Element;
68
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime64.JSX.Element;
69
69
  /**
70
70
  * CommandDialogFooter
71
71
  */
72
72
  declare function CommandDialogFooter({
73
73
  children,
74
74
  ...props
75
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime337.JSX.Element;
75
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime64.JSX.Element;
76
76
  //#endregion
77
77
  export { CommandDialog, CommandDialogContent, CommandDialogDescription, CommandDialogFooter, CommandDialogHeader, CommandDialogTitle, CommandDialogTrigger };
78
78
  //# sourceMappingURL=dialog-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/dialog-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAiBsD,KAOjD,sBAAA,GAAsB;EAcX,IAAA,EAAA,OAAA;EACd,OAAA,EAbS,KAAA,CAAM,QAaf,CAbwB,KAAA,CAAM,cAa9B,CAAA,OAAA,CAAA,CAAA;CACA;;;;AAEoF,iBAJtE,aAAA,CAIsE;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAYrF,CAZqF,EAAnF,IAAmF,CAA9E,WAA8E,EAAA,MAAA,GAAA,cAAA,CAAA,GAAA;EAAA,SAAA,CAAA,EAAxB,sBAAwB;AAYrF,CAAA,CAAA,EAZqF,oBAAA,CAAA,GAAA,CAAA,OAiBxD;AAQ9B;;;KARK,yBAAA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AA,OAA3B;;;AAOjE;AACE,iBADc,wBAAA,CACd;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAEC,KAAA,CAAM,cAFP,CAEsB,WAFtB,CAAA,CAAA,EAEkC,mBAAA,CAAA,GAAA,CAAA,OAFlC;;;;AAEkC,iBAOpB,mBAAA,CAPoB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAOwB,KAAA,CAAM,cAP9B,CAO6C,WAP7C,CAAA,CAAA,EAOyD,mBAAA,CAAA,GAAA,CAAA,OAPzD"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime344 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
4
4
 
@@ -13,7 +13,7 @@ type CommandDropdownProps = {
13
13
  declare function CommandDropdown({
14
14
  children,
15
15
  ...props
16
- }: CommandDropdownProps): react_jsx_runtime344.JSX.Element | null;
16
+ }: CommandDropdownProps): react_jsx_runtime71.JSX.Element | null;
17
17
  /**
18
18
  * CommandDropdownContent
19
19
  */
@@ -24,7 +24,7 @@ type CommandDropdownContentProps = {
24
24
  declare function CommandDropdownContent({
25
25
  children,
26
26
  ...props
27
- }: CommandDropdownContentProps): react_jsx_runtime344.JSX.Element | null;
27
+ }: CommandDropdownContentProps): react_jsx_runtime71.JSX.Element | null;
28
28
  /**
29
29
  * CommandDropdownTrigger
30
30
  */
@@ -39,7 +39,7 @@ declare function CommandDropdownTrigger({
39
39
  disabled,
40
40
  children,
41
41
  ...props
42
- }: CommandDropdownTriggerProps): react_jsx_runtime344.JSX.Element | null;
42
+ }: CommandDropdownTriggerProps): react_jsx_runtime71.JSX.Element | null;
43
43
  /**
44
44
  * CommandDropdownItem
45
45
  */
@@ -54,7 +54,7 @@ declare function CommandDropdownItem<TData = unknown, TError = DefaultError, TVa
54
54
  mutation,
55
55
  children,
56
56
  ...props
57
- }: CommandDropdownItemProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime344.JSX.Element | null;
57
+ }: CommandDropdownItemProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime71.JSX.Element | null;
58
58
  //#endregion
59
59
  export { CommandDropdown, CommandDropdownContent, CommandDropdownItem, CommandDropdownProps, CommandDropdownTrigger };
60
60
  //# sourceMappingURL=dropdown-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/dropdown-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAsCY,KAAA,oBAAA,GAAoB;EAKhB,QAAA,EAJJ,KAAA,CAAM,SAIa;EAAG,SAAA,CAAA,EAAA,MAAA;CAAsB;AAAoB,iBAA5D,eAAA,CAA4D;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAApB,oBAAoB,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA,GAAA,IAAA;;AAmC3E;AAUD;KALK,2BAAA,GAKoC;EAAsB,QAAA,EAJnD,KAAA,CAAM,SAI6C;EAA2B,SAAA,CAAA,EAAA,MAAA;CAAA;AAqBrF,iBArBW,sBAAA,CAsBJ;EAAA,QAAM;EAAA,GAAA;AAAS,CAAA,EAtBoC,2BAsBpC,CAAA,EAtB+D,oBAAA,CAAA,GAAA,CAAA,OAAA,GAsB/D,IAAA;AAM3B;;;KAPK,2BAAA,GAUH;EAEC,QAAA,EAXS,KAAA,CAAM,SAWf;EAA2B,SAAA,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EA6CzB,QAAA,CAAA,EAAA,OAAA;CAEM;AAIE,iBAxDG,sBAAA,CAwDH;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAnDV,2BAmDU,CAAA,EAnDiB,oBAAA,CAAA,GAAA,CAAA,OAAA,GAmDjB,IAAA;;;;KANR,wBAOkD,CAAA,QAAA,OAAA,EAAA,SAL5C,YAK4C,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,GAAA;EAA3C,SAAA,EADC,UACD;EACA,QAAM,EADN,eACM,CADU,KACV,EADiB,MACjB,EADyB,UACzB,EADqC,eACrC,CAAA;EAAS,QAAA,EAAf,KAAA,CAAM,SAAS;EAIX,SAAA,CAAA,EAAA,MAAA;CAEL;AAIT,iBANc,mBAMd,CAAA,QAAA,OAAA,EAAA,SAJS,YAIT,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAIC,wBAJD,CAI0B,KAJ1B,EAIiC,MAJjC,EAIyC,UAJzC,EAIqD,eAJrD,CAAA,CAAA,EAIqE,oBAAA,CAAA,GAAA,CAAA,OAAA,GAJrE,IAAA"}
1
+ {"version":3,"file":"dropdown-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/dropdown-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAsCY,KAAA,oBAAA,GAAoB;EAKhB,QAAA,EAJJ,KAAA,CAAM,SAIa;EAAG,SAAA,CAAA,EAAA,MAAA;CAAsB;AAAoB,iBAA5D,eAAA,CAA4D;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAApB,oBAAoB,CAAA,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA,GAAA,IAAA;;AAmC3E;AAUD;KALK,2BAAA,GAKoC;EAAsB,QAAA,EAJnD,KAAA,CAAM,SAI6C;EAA2B,SAAA,CAAA,EAAA,MAAA;CAAA;AAqBrF,iBArBW,sBAAA,CAsBJ;EAAA,QAAM;EAAA,GAAA;AAAS,CAAA,EAtBoC,2BAsBpC,CAAA,EAtB+D,mBAAA,CAAA,GAAA,CAAA,OAAA,GAsB/D,IAAA;AAM3B;;;KAPK,2BAAA,GAUH;EAEC,QAAA,EAXS,KAAA,CAAM,SAWf;EAA2B,SAAA,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EA6CzB,QAAA,CAAA,EAAA,OAAA;CAEM;AAIE,iBAxDG,sBAAA,CAwDH;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAnDV,2BAmDU,CAAA,EAnDiB,mBAAA,CAAA,GAAA,CAAA,OAAA,GAmDjB,IAAA;;;;KANR,wBAOkD,CAAA,QAAA,OAAA,EAAA,SAL5C,YAK4C,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,GAAA;EAA3C,SAAA,EADC,UACD;EACA,QAAM,EADN,eACM,CADU,KACV,EADiB,MACjB,EADyB,UACzB,EADqC,eACrC,CAAA;EAAS,QAAA,EAAf,KAAA,CAAM,SAAS;EAIX,SAAA,CAAA,EAAA,MAAA;CAEL;AAIT,iBANc,mBAMd,CAAA,QAAA,OAAA,EAAA,SAJS,YAIT,EAAA,aAAA,SAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAIC,wBAJD,CAI0B,KAJ1B,EAIiC,MAJjC,EAIyC,UAJzC,EAIqD,eAJrD,CAAA,CAAA,EAIqE,mBAAA,CAAA,GAAA,CAAA,OAAA,GAJrE,IAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime348 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime75 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/modules/commands/components/empty-command.client.d.ts
@@ -13,7 +13,7 @@ declare function CommandEmpty({
13
13
  children,
14
14
  disabled,
15
15
  ...props
16
- }: CommandEmptyProps): react_jsx_runtime348.JSX.Element | null;
16
+ }: CommandEmptyProps): react_jsx_runtime75.JSX.Element | null;
17
17
  //#endregion
18
18
  export { CommandEmpty, CommandEmptyProps };
19
19
  //# sourceMappingURL=empty-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/empty-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KASY,iBAAA;YACA,KAAA,CAAM;;EADN,QAAA,CAAA,EAAA,OAAA;EAOI,KAAA,CAAA,EAAA,MAAA;CAAe;AAAO,iBAAtB,YAAA,CAAsB;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAgC,iBAAhC,CAAA,EAAiD,oBAAA,CAAA,GAAA,CAAA,OAAA,GAAjD,IAAA"}
1
+ {"version":3,"file":"empty-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/empty-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KASY,iBAAA;YACA,KAAA,CAAM;;EADN,QAAA,CAAA,EAAA,OAAA;EAOI,KAAA,CAAA,EAAA,MAAA;CAAe;AAAO,iBAAtB,YAAA,CAAsB;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAgC,iBAAhC,CAAA,EAAiD,mBAAA,CAAA,GAAA,CAAA,OAAA,GAAjD,IAAA"}
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime349 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime76 from "react/jsx-runtime";
2
2
  import React, { ComponentProps } from "react";
3
3
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
4
- import { FieldValues, Form } from "react-hook-form";
5
4
  import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
5
+ import { FieldValues, Form } from "react-hook-form";
6
6
  import { Keys } from "react-hotkeys-hook";
7
7
 
8
8
  //#region src/modules/commands/components/form-dialog-command.client.d.ts
@@ -12,7 +12,7 @@ import { Keys } from "react-hotkeys-hook";
12
12
  declare function CommandFormDialog({
13
13
  children,
14
14
  ...props
15
- }: DialogProps): react_jsx_runtime349.JSX.Element;
15
+ }: DialogProps): react_jsx_runtime76.JSX.Element;
16
16
  /**
17
17
  * CommandFormDialogTrigger
18
18
  */
@@ -29,28 +29,28 @@ declare function CommandFormDialogTrigger({
29
29
  children,
30
30
  disabled,
31
31
  ...props
32
- }: CommandFormDialogTriggerProps): react_jsx_runtime349.JSX.Element | undefined;
32
+ }: CommandFormDialogTriggerProps): react_jsx_runtime76.JSX.Element | undefined;
33
33
  /**
34
34
  * CommandFormDialogHeader
35
35
  */
36
36
  declare function CommandFormDialogHeader({
37
37
  children,
38
38
  ...props
39
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
39
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
40
40
  /**
41
41
  * CommandFormDialogTitle
42
42
  */
43
43
  declare function CommandFormDialogTitle({
44
44
  children,
45
45
  ...props
46
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
46
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
47
47
  /**
48
48
  * CommandFormDialogDescription
49
49
  */
50
50
  declare function CommandFormDialogDescription({
51
51
  children,
52
52
  ...props
53
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
53
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
54
54
  declare const CommandFormDialogContentProvider: typeof Form;
55
55
  /**
56
56
  * CommandFormDialogContent
@@ -65,7 +65,7 @@ declare function CommandFormDialogContent<TValues extends FieldValues, TData = u
65
65
  mutation,
66
66
  children,
67
67
  ...props
68
- }: CommandFormDialogContentProps<TValues, TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime349.JSX.Element;
68
+ }: CommandFormDialogContentProps<TValues, TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime76.JSX.Element;
69
69
  /**
70
70
  * FormDialogFields
71
71
  */
@@ -73,28 +73,28 @@ declare function CommandFormDialogFields({
73
73
  children,
74
74
  className,
75
75
  ...props
76
- }: ComponentProps<"div">): react_jsx_runtime349.JSX.Element;
76
+ }: ComponentProps<"div">): react_jsx_runtime76.JSX.Element;
77
77
  /**
78
78
  * CommandFormDialogFooter
79
79
  */
80
80
  declare function CommandFormDialogFooter({
81
81
  children,
82
82
  ...props
83
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
83
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
84
84
  /**
85
85
  * CommandFormDialogCancel
86
86
  */
87
87
  declare function CommandFormDialogCancel({
88
88
  children,
89
89
  ...props
90
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
90
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
91
91
  /**
92
92
  * CommandFormDialogSubmit
93
93
  */
94
94
  declare function CommandFormDialogSubmit({
95
95
  children,
96
96
  ...props
97
- }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime349.JSX.Element;
97
+ }: React.HTMLAttributes<HTMLElement>): react_jsx_runtime76.JSX.Element;
98
98
  //#endregion
99
99
  export { CommandFormDialog, CommandFormDialogCancel, CommandFormDialogContent, CommandFormDialogContentProps, CommandFormDialogContentProvider, CommandFormDialogDescription, CommandFormDialogFields, CommandFormDialogFooter, CommandFormDialogHeader, CommandFormDialogSubmit, CommandFormDialogTitle, CommandFormDialogTrigger };
100
100
  //# sourceMappingURL=form-dialog-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/form-dialog-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAsCgB,iBAAA,iBAAA,CAAiB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAyB,WAAzB,CAAA,EAAoC,oBAAA,CAAA,GAAA,CAAA,OAApC;;;;KAe5B,6BAAA,GAfgE;EAehE,QAAA,EACO,KAAA,CAAM,SADb;EAQW,SAAA,CAAA,EAAA,MAAA;EACd,KAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,MAAA,CAAA,EANS,IAMT;CACA;AAEC,iBANa,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AAA;EAAA,GAAA;AAAA,CAAA,EA6BtC,6BA7BsC,CA6BR,OA7BQ,EA6BC,KA7BD,EA6BQ,MA7BR,EA6BgB,UA7BhB,EA6B4B,eA7B5B,CAAA,CAAA,EA6B4C,oBAAA,CAAA,GAAA,CAAA,OA7B5C;;;;AAOnB,iBAyDN,uBAAA,CAzDM;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyDqD,cAzDrD,CAAA,KAAA,CAAA,CAAA,EAyD0E,oBAAA,CAAA,GAAA,CAAA,OAzD1E;;;;AACsB,iBAmE5B,uBAAA,CAnE4B;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAmEoB,KAAA,CAAM,cAnE1B,CAmEyC,WAnEzC,CAAA,CAAA,EAmEqD,oBAAA,CAAA,GAAA,CAAA,OAnErD;;;;AACjB,iBAyEX,uBAAA,CAzEW;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAyEqC,KAAA,CAAM,cAzE3C,CAyE0D,WAzE1D,CAAA,CAAA,EAyEsE,oBAAA,CAAA,GAAA,CAAA,OAzEtE;AAS3B;;;AAOE,iBA+Ec,uBAAA,CA/Ed;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA+E8D,KAAA,CAAM,cA/EpE,CA+EmF,WA/EnF,CAAA,CAAA,EA+E+F,oBAAA,CAAA,GAAA,CAAA,OA/E/F"}
1
+ {"version":3,"file":"form-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/form-dialog-command.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAsCgB,iBAAA,iBAAA,CAAiB;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAyB,WAAzB,CAAA,EAAoC,mBAAA,CAAA,GAAA,CAAA,OAApC;;;;KAe5B,6BAAA,GAfgE;EAehE,QAAA,EACO,KAAA,CAAM,SADb;EAQW,SAAA,CAAA,EAAA,MAAA;EACd,KAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAA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A,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA6BtC,6BA7BsC,CA6BR,OA7BQ,EA6BC,KA7BD,EA6BQ,MA7BR,EA6BgB,UA7BhB,EA6B4B,eA7B5B,CAAA,CAAA,EA6B4C,mBAAA,CAAA,GAAA,CAAA,OA7B5C;;;;AAOnB,iBAyDN,uBAAA,CAzDM;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyDqD,cAzDrD,CAAA,KAAA,CAAA,CAAA,EAyD0E,mBAAA,CAAA,GAAA,CAAA,OAzD1E;;;;AACsB,iBAmE5B,uBAAA,CAnE4B;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAmEoB,KAAA,CAAM,cAnE1B,CAmEyC,WAnEzC,CAAA,CAAA,EAmEqD,mBAAA,CAAA,GAAA,CAAA,OAnErD;;;;AACjB,iBAyEX,uBAAA,CAzEW;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAyEqC,KAAA,CAAM,cAzE3C,CAyE0D,WAzE1D,CAAA,CAAA,EAyEsE,mBAAA,CAAA,GAAA,CAAA,OAzEtE;AAS3B;;;AAOE,iBA+Ec,uBAAA,CA/Ed;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA+E8D,KAAA,CAAM,cA/EpE,CA+EmF,WA/EnF,CAAA,CAAA,EA+E+F,mBAAA,CAAA,GAAA,CAAA,OA/E/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-command-menu.client.mjs","names":["data"],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type BulkCommandDefRenderParams,\n type CommandDef,\n type SingleCommandDefRenderParams,\n} from \"../lib/definitions\";\n\n/**\n * Command menu props\n */\nexport type SingleCommandMenuProps<TData, TMeta> = {\n data: TData;\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\nexport type BulkCommandMenuProps<TData, TMeta> = {\n data: TData[];\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\n/**\n * Check if a command has an id field in the data\n */\nfunction dataHasId<TData>(data: TData) {\n return data && typeof data === \"object\" && \"id\" in data && typeof data.id === \"string\";\n}\n\n/**\n * Single command validation\n */\ntype ValidateSingleCommandParams<TData, TMeta> = {\n data: TData;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction validateSingleCommand<TData, TMeta>({\n data,\n command,\n}: ValidateSingleCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Single command rendering\n */\ntype RenderSingleCommandParams<TData, TMeta> = {\n data: TData;\n meta?: TMeta;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction renderSingleCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderSingleCommandParams<TData, TMeta>) {\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(dataHasId(data) ? { id: (data as TData & { id: string }).id } : {}),\n } as SingleCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * Bulk command validation\n */\ntype ValidateBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n};\n\nfunction validateBulkCommand<TData, TMeta>({\n data,\n command,\n}: ValidateBulkCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Bulk command rendering\n */\ntype RenderBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n meta?: TMeta;\n};\n\nfunction renderBulkCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderBulkCommandParams<TData, TMeta>) {\n const ids = data.filter(dataHasId).map((data) => (data as TData & { id: string }).id);\n\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(ids.length > 0 ? { ids } : {}),\n } as BulkCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * useSingleCommandMenu\n */\nexport function useSingleCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n // const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n // usePermission(mergePermissions(permissions));\n\n // filter out commands that don't have valid conditions\n const validCommands = commands.filter((command) =>\n command.mode === \"single\"\n ? validateSingleCommand({ data, command })\n : validateBulkCommand({ data: [data], command }),\n );\n\n function renderCommand(command: (typeof validCommands)[number]) {\n return command.mode === \"single\"\n ? renderSingleCommand({ command, data, meta })\n : renderBulkCommand({ command, data: [data], meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n/**\n * useBulkCommandMenu\n */\nexport function useBulkCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: BulkCommandMenuProps<TData, TMeta>) {\n // const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n // usePermission(mergePermissions(permissions));\n\n /**\n * Filter out commands that don't have valid conditions\n */\n const validCommands = commands\n // filter out commands that have mode \"bulk\"\n .filter((command) => command.mode === \"bulk\")\n // filter out commands that don't have valid conditions\n .filter((command) => command.mode === \"bulk\" && validateBulkCommand({ data, command }));\n\n /**\n * Render command\n */\n function renderCommand(command: (typeof commands)[number]) {\n if (command.mode === \"single\") return null;\n\n return renderBulkCommand({ command, data, meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n// export function useBulkCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: BulkCommandMenuProps<TData, TMeta>) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that have mode \"bulk\"\n// if (mode !== \"bulk\") return null;\n\n// // filter out commands that don't have valid conditions\n// if (!validateBulkCommand({ data, command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// const renderCommand = (command: (typeof validCommands)[number]) =>\n// renderBulkCommand({ command, data, meta });\n\n// return [validCommands, renderCommand] as const;\n// }\n\n// */\n// export function useSingleCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that don't have valid conditions\n// if (mode === \"single\" && !validateSingleCommand({ data, command })) return null;\n// if (mode === \"bulk\" && !validateBulkCommand({ data: [data], command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// function renderCommand(command: (typeof validCommands)[number]) {\n// return command.mode === \"single\"\n// ? renderSingleCommand({ command, data, meta })\n// : renderBulkCommand({ command, data: [data], meta });\n// }\n\n// return [validCommands, renderCommand] as const;\n// }\n"],"mappings":";;;;;;AA0BA,SAAS,UAAiB,MAAa;AACrC,QAAO,QAAQ,OAAO,SAAS,YAAY,QAAQ,QAAQ,OAAO,KAAK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,YAAY,QAAQ,SAAS,OAAO,CAE5C,QAAQ,YAAY,QAAQ,SAAS,UAAU,oBAAoB;EAAE;EAAM;EAAS,CAAC,CAAC;;;;CAKzF,SAAS,cAAc,SAAoC;AACzD,MAAI,QAAQ,SAAS,SAAU,QAAO;AAEtC,SAAO,kBAAkB;GAAE;GAAS;GAAM;GAAM,CAAC;;AAGnD,QAAO,CAAC,eAAe,cAAc"}
1
+ {"version":3,"file":"use-command-menu.client.mjs","names":["data"],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type BulkCommandDefRenderParams,\n type CommandDef,\n type SingleCommandDefRenderParams,\n} from \"../lib/definitions\";\n\n/**\n * Command menu props\n */\nexport type SingleCommandMenuProps<TData, TMeta> = {\n data: TData;\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\nexport type BulkCommandMenuProps<TData, TMeta> = {\n data: TData[];\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\n/**\n * Check if a command has an id field in the data\n */\nfunction dataHasId<TData>(data: TData) {\n return data && typeof data === \"object\" && \"id\" in data && typeof data.id === \"string\";\n}\n\n/**\n * Single command validation\n */\ntype ValidateSingleCommandParams<TData, TMeta> = {\n data: TData;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction validateSingleCommand<TData, TMeta>({\n data,\n command,\n}: ValidateSingleCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Single command rendering\n */\ntype RenderSingleCommandParams<TData, TMeta> = {\n data: TData;\n meta?: TMeta;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction renderSingleCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderSingleCommandParams<TData, TMeta>) {\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(dataHasId(data) ? { id: (data as TData & { id: string }).id } : {}),\n } as SingleCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * Bulk command validation\n */\ntype ValidateBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n};\n\nfunction validateBulkCommand<TData, TMeta>({\n data,\n command,\n}: ValidateBulkCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Bulk command rendering\n */\ntype RenderBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n meta?: TMeta;\n};\n\nfunction renderBulkCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderBulkCommandParams<TData, TMeta>) {\n const ids = data.filter(dataHasId).map((data) => (data as TData & { id: string }).id);\n\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(ids.length > 0 ? { ids } : {}),\n } as BulkCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * useSingleCommandMenu\n */\nexport function useSingleCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n // filter out commands that don't have valid conditions\n const validCommands = commands.filter((command) =>\n command.mode === \"single\"\n ? validateSingleCommand({ data, command })\n : validateBulkCommand({ data: [data], command }),\n );\n\n function renderCommand(command: (typeof validCommands)[number]) {\n return command.mode === \"single\"\n ? renderSingleCommand({ command, data, meta })\n : renderBulkCommand({ command, data: [data], meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n/**\n * useBulkCommandMenu\n */\nexport function useBulkCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: BulkCommandMenuProps<TData, TMeta>) {\n /**\n * Filter out commands that don't have valid conditions\n */\n const validCommands = commands\n // filter out commands that have mode \"bulk\"\n .filter((command) => command.mode === \"bulk\")\n // filter out commands that don't have valid conditions\n .filter((command) => command.mode === \"bulk\" && validateBulkCommand({ data, command }));\n\n /**\n * Render command\n */\n function renderCommand(command: (typeof commands)[number]) {\n if (command.mode === \"single\") return null;\n\n return renderBulkCommand({ command, data, meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n// export function useBulkCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: BulkCommandMenuProps<TData, TMeta>) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that have mode \"bulk\"\n// if (mode !== \"bulk\") return null;\n\n// // filter out commands that don't have valid conditions\n// if (!validateBulkCommand({ data, command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// const renderCommand = (command: (typeof validCommands)[number]) =>\n// renderBulkCommand({ command, data, meta });\n\n// return [validCommands, renderCommand] as const;\n// }\n\n// */\n// export function useSingleCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that don't have valid conditions\n// if (mode === \"single\" && !validateSingleCommand({ data, command })) return null;\n// if (mode === \"bulk\" && !validateBulkCommand({ data: [data], command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// function renderCommand(command: (typeof validCommands)[number]) {\n// return command.mode === \"single\"\n// ? renderSingleCommand({ command, data, meta })\n// : renderBulkCommand({ command, data: [data], meta });\n// }\n\n// return [validCommands, renderCommand] as const;\n// }\n"],"mappings":";;;;;;AA0BA,SAAS,UAAiB,MAAa;AACrC,QAAO,QAAQ,OAAO,SAAS,YAAY,QAAQ,QAAQ,OAAO,KAAK,OAAO;;AAWhF,SAAS,sBAAoC,EAC3C,MACA,WAC4C;CAC5C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,oBAAkC,EACzC,MACA,SACA,QAC0C;AAC1C,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,UAAU,KAAK,GAAG,EAAE,IAAK,KAAgC,IAAI,GAAG,EAAE;EACvE,CAA+C;;AAWlD,SAAS,oBAAkC,EACzC,MACA,WAC0C;CAC1C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,kBAAgC,EACvC,MACA,SACA,QACwC;CACxC,MAAM,MAAM,KAAK,OAAO,UAAU,CAAC,KAAK,WAAUA,OAAgC,GAAG;AAErF,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,IAAI,SAAS,IAAI,EAAE,KAAK,GAAG,EAAE;EAClC,CAA6C;;;;;AAMhD,SAAgB,qBAAmC,EACjD,MACA,UACA,QACyD;CAEzD,MAAM,gBAAgB,SAAS,QAAQ,YACrC,QAAQ,SAAS,WACb,sBAAsB;EAAE;EAAM;EAAS,CAAC,GACxC,oBAAoB;EAAE,MAAM,CAAC,KAAK;EAAE;EAAS,CAAC,CACnD;CAED,SAAS,cAAc,SAAyC;AAC9D,SAAO,QAAQ,SAAS,WACpB,oBAAoB;GAAE;GAAS;GAAM;GAAM,CAAC,GAC5C,kBAAkB;GAAE;GAAS,MAAM,CAAC,KAAK;GAAE;GAAM,CAAC;;AAGxD,QAAO,CAAC,eAAe,cAAc;;;;;AAMvC,SAAgB,mBAAiC,EAC/C,MACA,UACA,QACqC;;;;CAIrC,MAAM,gBAAgB,SAEnB,QAAQ,YAAY,QAAQ,SAAS,OAAO,CAE5C,QAAQ,YAAY,QAAQ,SAAS,UAAU,oBAAoB;EAAE;EAAM;EAAS,CAAC,CAAC;;;;CAKzF,SAAS,cAAc,SAAoC;AACzD,MAAI,QAAQ,SAAS,SAAU,QAAO;AAEtC,SAAO,kBAAkB;GAAE;GAAS;GAAM;GAAM,CAAC;;AAGnD,QAAO,CAAC,eAAe,cAAc"}
@@ -1,5 +1,5 @@
1
1
  import { useRouter } from "next/navigation";
2
- import * as _tanstack_react_query0 from "@tanstack/react-query";
2
+ import * as _tanstack_react_query1 from "@tanstack/react-query";
3
3
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
4
4
 
5
5
  //#region src/modules/commands/hooks/use-command-mutation.client.d.ts
@@ -11,7 +11,7 @@ type BulkCommandAction = (params: {
11
11
  type CommandMutationMeta = {
12
12
  router: ReturnType<typeof useRouter>;
13
13
  };
14
- declare function useCommandMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options?: MutationOptions<TData, TError, TVariables, TOnMutateResult>): _tanstack_react_query0.UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
14
+ declare function useCommandMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options?: MutationOptions<TData, TError, TVariables, TOnMutateResult>): _tanstack_react_query1.UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
15
15
  //#endregion
16
16
  export { BulkCommandAction, CommandAction, CommandActionResult, CommandMutationMeta, useCommandMutation };
17
17
  //# sourceMappingURL=use-command-mutation.client.d.mts.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
- import { useCommand } from "./context.client.mjs";
4
3
  import { useAction } from "../../../lib/hooks/use-action.mjs";
4
+ import { useCommand } from "./context.client.mjs";
5
5
  import { useRouter } from "next/navigation";
6
6
 
7
7
  //#region src/modules/commands/hooks/use-command-mutation.client.tsx
@@ -1,6 +1,6 @@
1
1
  import { ContextMenu, ContextMenuTrigger } from "../../../components/ui/context-menu.mjs";
2
2
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
3
- import * as react_jsx_runtime359 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime86 from "react/jsx-runtime";
4
4
  import { ContextMenuContentProps } from "@radix-ui/react-context-menu";
5
5
 
6
6
  //#region src/modules/commands/menus/context-menu.client.d.ts
@@ -21,7 +21,7 @@ declare function ContextCommandMenuContent<TData, TMeta>({
21
21
  meta,
22
22
  className,
23
23
  ...props
24
- }: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps): react_jsx_runtime359.JSX.Element;
24
+ }: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps): react_jsx_runtime86.JSX.Element;
25
25
  //#endregion
26
26
  export { ContextCommandMenu, ContextCommandMenuContent, ContextCommandMenuTrigger };
27
27
  //# sourceMappingURL=context-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/context-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBa,cAAA,kBAAkB,EAAA,OAAA,WAAc;AAK7C;AAKA;;AAEE,cAPW,yBAOX,EAAA,OAPoC,kBAOpC;;;;AAI+B,iBANjB,yBAMiB,CAAA,KAAA,EAAA,KAAA,CAAA,CAAA;EAAA,IAAA;EAAA,QAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA9B,sBAA8B,CAAP,KAAO,EAAA,KAAA,CAAA,GAAS,uBAAT,CAAA,EAAgC,oBAAA,CAAA,GAAA,CAAA,OAAhC"}
1
+ {"version":3,"file":"context-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/context-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBa,cAAA,kBAAkB,EAAA,OAAA,WAAc;AAK7C;AAKA;;AAEE,cAPW,yBAOX,EAAA,OAPoC,kBAOpC;;;;AAI+B,iBANjB,yBAMiB,CAAA,KAAA,EAAA,KAAA,CAAA,CAAA;EAAA,IAAA;EAAA,QAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA9B,sBAA8B,CAAP,KAAO,EAAA,KAAA,CAAA,GAAS,uBAAT,CAAA,EAAgC,mBAAA,CAAA,GAAA,CAAA,OAAhC"}
@@ -1,5 +1,5 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime360 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime87 from "react/jsx-runtime";
3
3
  import React, { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/commands/menus/dropdown-menu.client.d.ts
@@ -9,11 +9,11 @@ declare function DropdownCommandMenu<TData, TMeta>({
9
9
  meta,
10
10
  className,
11
11
  ...props
12
- }: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>): react_jsx_runtime360.JSX.Element | null;
12
+ }: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>): react_jsx_runtime87.JSX.Element | null;
13
13
  declare function DropdownCommandMenuLoading({
14
14
  className,
15
15
  ...props
16
- }: ComponentProps<"div">): react_jsx_runtime360.JSX.Element;
16
+ }: ComponentProps<"div">): react_jsx_runtime87.JSX.Element;
17
17
  //#endregion
18
18
  export { DropdownCommandMenu, DropdownCommandMenuLoading };
19
19
  //# sourceMappingURL=dropdown-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/dropdown-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAgBgB;;;;;;GAMb,uBAAuB,OAAO,SAAS,KAAA,CAAM,eAAe,eAAY,oBAAA,CAAA,GAAA,CAAA,OAAA;iBA8B3D,0BAAA;;;GAAoD,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"dropdown-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/dropdown-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAgBgB;;;;;;GAMb,uBAAuB,OAAO,SAAS,KAAA,CAAM,eAAe,eAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;iBA8B3D,0BAAA;;;GAAoD,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime362 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime89 from "react/jsx-runtime";
3
3
  import React, { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/commands/menus/inline-menu.client.d.ts
@@ -10,11 +10,11 @@ declare function InlineCommandMenu<TData, TMeta>({
10
10
  commands,
11
11
  className,
12
12
  ...props
13
- }: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime362.JSX.Element | null;
13
+ }: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime89.JSX.Element | null;
14
14
  declare function InlineCommandMenuLoading({
15
15
  className,
16
16
  ...props
17
- }: ComponentProps<"div">): react_jsx_runtime362.JSX.Element;
17
+ }: ComponentProps<"div">): react_jsx_runtime89.JSX.Element;
18
18
  //#endregion
19
19
  export { InlineCommandMenu, InlineCommandMenuLoading, InlineCommandMenuProps };
20
20
  //# sourceMappingURL=inline-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/inline-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;KASY,uCAAuC,uBAAuB,OAAO,SAC/E,KAAA,CAAM,eAAe;iBAEP;;;;;;GAMb,uBAAuB,OAAO,SAAM,oBAAA,CAAA,GAAA,CAAA,OAAA;iBAkBvB,wBAAA;;;GAAkD,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"inline-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/inline-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;KASY,uCAAuC,uBAAuB,OAAO,SAC/E,KAAA,CAAM,eAAe;iBAEP;;;;;;GAMb,uBAAuB,OAAO,SAAM,mBAAA,CAAA,GAAA,CAAA,OAAA;iBAkBvB,wBAAA;;;GAAkD,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime364 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime93 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/modules/commands/menus/responsive-menu.client.d.ts
5
5
  type ResponsiveCommandMenuProps<TData, TMeta> = SingleCommandMenuProps<TData, TMeta>;
6
- declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>): react_jsx_runtime364.JSX.Element;
7
- declare function ResponsiveCommandMenuLoading(): react_jsx_runtime364.JSX.Element;
6
+ declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>): react_jsx_runtime93.JSX.Element;
7
+ declare function ResponsiveCommandMenuLoading(): react_jsx_runtime93.JSX.Element;
8
8
  //#endregion
9
9
  export { ResponsiveCommandMenu, ResponsiveCommandMenuLoading };
10
10
  //# sourceMappingURL=responsive-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responsive-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/responsive-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;KAMK,2CAA2C,uBAAuB,OAAO;iBAE9D,2CACP,2BAA2B,OAAO,SAAM,oBAAA,CAAA,GAAA,CAAA;iBAUjC,4BAAA,CAAA,GAA4B,oBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"responsive-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/responsive-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;KAMK,2CAA2C,uBAAuB,OAAO;iBAE9D,2CACP,2BAA2B,OAAO,SAAM,mBAAA,CAAA,GAAA,CAAA;iBAUjC,4BAAA,CAAA,GAA4B,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime366 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime91 from "react/jsx-runtime";
2
2
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
3
3
 
4
4
  //#region src/modules/commands/utils/archive-command.client.d.ts
@@ -17,7 +17,7 @@ declare function ArchiveCommand<TData = unknown, TError = DefaultError, TVariabl
17
17
  }, TOnMutateResult = unknown>({
18
18
  variables,
19
19
  mutation
20
- }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime366.JSX.Element;
20
+ }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime91.JSX.Element;
21
21
  /**
22
22
  * Unarchive command
23
23
  * @description command to unarchive a resource
@@ -27,7 +27,7 @@ declare function RestoreCommand<TData = unknown, TError = DefaultError, TVariabl
27
27
  }, TOnMutateResult = unknown>({
28
28
  variables,
29
29
  mutation
30
- }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime366.JSX.Element;
30
+ }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime91.JSX.Element;
31
31
  //#endregion
32
32
  export { ArchiveCommand, ArchiveCommandProps, RestoreCommand };
33
33
  //# sourceMappingURL=archive-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/archive-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,8CAED;;;EAFC,SAAA,EAMC,UAND;EAED,QAAA,EAKC,eALD,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA;CAIE;;;;;AACD,iBAOI,cAPJ,CAAA,QAAA,OAAA,EAAA,SASD,YATC,EAAA,aAAA;EAAe,GAAA,EAAA,MAAA,EAAA;AAO3B,CAAA,EAAA,kBAA8B,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAKH,mBALG,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA,CAAA,EAK4D,oBAAA,CAAA,GAAA,CAAA,OAL5D;;;;;AAKwB,iBAkBtC,cAlBsC,CAAA,QAAA,OAAA,EAAA,SAoB3C,YApB2C,EAAA,aAAA;EAAQ,GAAA,EAAA,MAAA,EAAA;CAAY,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAuB/C,mBAvB+C,CAuB3B,KAvB2B,EAuBpB,MAvBoB,EAuBZ,UAvBY,EAuBA,eAvBA,CAAA,CAAA,EAuBgB,oBAAA,CAAA,GAAA,CAAA,OAvBhB"}
1
+ {"version":3,"file":"archive-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/archive-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,8CAED;;;EAFC,SAAA,EAMC,UAND;EAED,QAAA,EAKC,eALD,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA;CAIE;;;;;AACD,iBAOI,cAPJ,CAAA,QAAA,OAAA,EAAA,SASD,YATC,EAAA,aAAA;EAAe,GAAA,EAAA,MAAA,EAAA;AAO3B,CAAA,EAAA,kBAA8B,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAKH,mBALG,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA,CAAA,EAK4D,mBAAA,CAAA,GAAA,CAAA,OAL5D;;;;;AAKwB,iBAkBtC,cAlBsC,CAAA,QAAA,OAAA,EAAA,SAoB3C,YApB2C,EAAA,aAAA;EAAQ,GAAA,EAAA,MAAA,EAAA;CAAY,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAuB/C,mBAvB+C,CAuB3B,KAvB2B,EAuBpB,MAvBoB,EAuBZ,UAvBY,EAuBA,eAvBA,CAAA,CAAA,EAuBgB,mBAAA,CAAA,GAAA,CAAA,OAvBhB"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime368 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime95 from "react/jsx-runtime";
2
2
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
3
3
 
4
4
  //#region src/modules/commands/utils/delete-command.client.d.ts
@@ -13,7 +13,7 @@ type DeleteCommandProps<TData = unknown, TError = DefaultError, TVariables = unk
13
13
  declare function DeleteCommand<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown>({
14
14
  variables,
15
15
  mutation
16
- }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime368.JSX.Element;
16
+ }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime95.JSX.Element;
17
17
  /**
18
18
  * Single Delete command
19
19
  */
@@ -22,7 +22,7 @@ declare function SingleDeleteCommand<TData = unknown, TError = DefaultError, TVa
22
22
  }, TOnMutateResult = unknown>({
23
23
  variables,
24
24
  mutation
25
- }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime368.JSX.Element;
25
+ }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime95.JSX.Element;
26
26
  //#endregion
27
27
  export { DeleteCommand, DeleteCommandProps, SingleDeleteCommand };
28
28
  //# sourceMappingURL=delete-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/delete-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAiBY,6CAED;aAIE;YACD,gBAAgB,OAAO,QAAQ,YAAY;AAPvD,CAAA;;;;;AAO2C,iBAM3B,aAN2B,CAAA,QAAA,OAAA,EAAA,SAQhC,YARgC,EAAA,aAAA,OAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAWhB,kBAXgB,CAWG,KAXH,EAWU,MAXV,EAWkB,UAXlB,EAW8B,eAX9B,CAAA,CAAA,EAW8C,oBAAA,CAAA,GAAA,CAAA,OAX9C;;;;AAM3B,iBAsCA,mBAtCa,CAAA,QAAA,OAAA,EAAA,SAwClB,YAxCkB,EAAA,aAAA;EAElB,EAAA,EAAA,MAAA;CAGP,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAsCuB,kBAtCvB,CAsC0C,KAtC1C,EAsCiD,MAtCjD,EAsCyD,UAtCzD,EAsCqE,eAtCrE,CAAA,CAAA,EAsCqF,oBAAA,CAAA,GAAA,CAAA,OAtCrF"}
1
+ {"version":3,"file":"delete-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/delete-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAiBY,6CAED;aAIE;YACD,gBAAgB,OAAO,QAAQ,YAAY;AAPvD,CAAA;;;;;AAO2C,iBAM3B,aAN2B,CAAA,QAAA,OAAA,EAAA,SAQhC,YARgC,EAAA,aAAA,OAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAWhB,kBAXgB,CAWG,KAXH,EAWU,MAXV,EAWkB,UAXlB,EAW8B,eAX9B,CAAA,CAAA,EAW8C,mBAAA,CAAA,GAAA,CAAA,OAX9C;;;;AAM3B,iBAsCA,mBAtCa,CAAA,QAAA,OAAA,EAAA,SAwClB,YAxCkB,EAAA,aAAA;EAElB,EAAA,EAAA,MAAA;CAGP,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAsCuB,kBAtCvB,CAsC0C,KAtC1C,EAsCiD,MAtCjD,EAsCyD,UAtCzD,EAsCqE,eAtCrE,CAAA,CAAA,EAsCqF,mBAAA,CAAA,GAAA,CAAA,OAtCrF"}
@@ -1,5 +1,5 @@
1
- import * as drizzle_orm_pg_core57 from "drizzle-orm/pg-core";
2
- import * as drizzle_orm12 from "drizzle-orm";
1
+ import * as drizzle_orm_pg_core1991 from "drizzle-orm/pg-core";
2
+ import * as drizzle_orm467 from "drizzle-orm";
3
3
 
4
4
  //#region src/modules/config/db/helpers.d.ts
5
5
  declare const generateDefaultUUID: () => string;
@@ -7,9 +7,9 @@ declare const generateDefaultUUID: () => string;
7
7
  * Base columns4
8
8
  */
9
9
  declare const baseColumns: {
10
- id: drizzle_orm12.HasRuntimeDefault<drizzle_orm12.HasDefault<drizzle_orm12.IsPrimaryKey<drizzle_orm12.NotNull<drizzle_orm_pg_core57.PgUUIDBuilderInitial<"">>>>>;
11
- createdAt: drizzle_orm12.NotNull<drizzle_orm12.HasDefault<drizzle_orm_pg_core57.PgTimestampBuilderInitial<"">>>;
12
- updatedAt: drizzle_orm12.HasDefault<drizzle_orm12.NotNull<drizzle_orm12.HasDefault<drizzle_orm_pg_core57.PgTimestampBuilderInitial<"">>>>;
10
+ id: drizzle_orm467.HasRuntimeDefault<drizzle_orm467.HasDefault<drizzle_orm467.IsPrimaryKey<drizzle_orm467.NotNull<drizzle_orm_pg_core1991.PgUUIDBuilderInitial<"">>>>>;
11
+ createdAt: drizzle_orm467.NotNull<drizzle_orm467.HasDefault<drizzle_orm_pg_core1991.PgTimestampBuilderInitial<"">>>;
12
+ updatedAt: drizzle_orm467.HasDefault<drizzle_orm467.NotNull<drizzle_orm467.HasDefault<drizzle_orm_pg_core1991.PgTimestampBuilderInitial<"">>>>;
13
13
  };
14
14
  //#endregion
15
15
  export { baseColumns, generateDefaultUUID };
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/modules/config/db/helpers.ts"],"sourcesContent":[],"mappings":";;;;cAGa;;;;AAAA,cAKA,WALoC,EAAA;EAKpC,EAAA,iCAWZ,yBAAA,2BAAA,sBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EAAA,SAAA,uBAAA,yBAAA,gDAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/modules/config/db/helpers.ts"],"sourcesContent":[],"mappings":";;;;cAGa;;;;AAAA,cAKA,WALoC,EAAA;EAKpC,EAAA,kCAWZ,0BAAA,4BAAA,uBAAA,CAAA,uBAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EAAA,SAAA,wBAAA,0BAAA,kDAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  //#region src/modules/config/lib/config.d.ts
2
- type TulipConfig<TValues> = {
2
+ type TulipConfig<TValues = object> = {
3
3
  general: {
4
4
  name: string;
5
5
  shortName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.mjs","names":[],"sources":["../../../../src/modules/config/lib/config.ts"],"sourcesContent":["export type TulipConfig<TValues> = {\n general: {\n name: string;\n shortName: string;\n };\n email: {\n defaultFrom: string;\n };\n} & TValues;\n\n/**\n * Build the Tulip config\n */\n\nexport const defineTulipConfig = <TValues>(config: TulipConfig<TValues>): TulipConfig<TValues> => config;\n"],"mappings":";;;;AAcA,MAAa,qBAA8B,WAAuD"}
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../../../../src/modules/config/lib/config.ts"],"sourcesContent":["export type TulipConfig<TValues = object> = {\n general: {\n name: string;\n shortName: string;\n };\n email: {\n defaultFrom: string;\n };\n} & TValues;\n\n/**\n * Build the Tulip config\n */\n\nexport const defineTulipConfig = <TValues>(config: TulipConfig<TValues>): TulipConfig<TValues> =>\n config;\n"],"mappings":";;;;AAcA,MAAa,qBAA8B,WACzC"}