@vitnode/core 1.2.0-canary.52 → 1.2.0-canary.54

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 (579) hide show
  1. package/config/next.config.ts +3 -3
  2. package/dist/scripts/get-config.d.ts +2 -2
  3. package/dist/scripts/get-config.d.ts.map +1 -1
  4. package/dist/scripts/plugin.d.ts.map +1 -1
  5. package/dist/scripts/prepare-database.d.ts +0 -1
  6. package/dist/scripts/prepare-database.d.ts.map +1 -1
  7. package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
  8. package/dist/scripts/scripts.js +3 -3
  9. package/dist/scripts/shared/file-utils.d.ts.map +1 -1
  10. package/dist/src/api/adapters/cron/node-cron.adapter.d.ts +3 -0
  11. package/dist/src/api/adapters/cron/node-cron.adapter.d.ts.map +1 -0
  12. package/dist/src/api/adapters/cron/node-cron.adapter.js +11 -0
  13. package/dist/src/api/adapters/email/nodemailer.d.ts +1 -1
  14. package/dist/src/api/adapters/email/nodemailer.js +3 -3
  15. package/dist/src/api/adapters/email/resend.d.ts +1 -1
  16. package/dist/src/api/adapters/email/resend.js +2 -2
  17. package/dist/src/api/adapters/sso/discord.d.ts +1 -1
  18. package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
  19. package/dist/src/api/adapters/sso/discord.js +21 -21
  20. package/dist/src/api/adapters/sso/facebook.d.ts +1 -1
  21. package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
  22. package/dist/src/api/adapters/sso/facebook.js +23 -23
  23. package/dist/src/api/adapters/sso/google.d.ts +1 -1
  24. package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
  25. package/dist/src/api/adapters/sso/google.js +21 -21
  26. package/dist/src/api/config.d.ts +3 -3
  27. package/dist/src/api/config.d.ts.map +1 -1
  28. package/dist/src/api/config.js +30 -18
  29. package/dist/src/api/lib/check-plugin-id.js +8 -8
  30. package/dist/src/api/lib/cron.d.ts +18 -0
  31. package/dist/src/api/lib/cron.d.ts.map +1 -0
  32. package/dist/src/api/lib/cron.js +22 -0
  33. package/dist/src/api/lib/logger-middleware.d.ts +1 -1
  34. package/dist/src/api/lib/logger-middleware.js +9 -9
  35. package/dist/src/api/lib/module.d.ts +6 -3
  36. package/dist/src/api/lib/module.d.ts.map +1 -1
  37. package/dist/src/api/lib/module.js +3 -2
  38. package/dist/src/api/lib/plugin.d.ts +4 -2
  39. package/dist/src/api/lib/plugin.d.ts.map +1 -1
  40. package/dist/src/api/lib/plugin.js +9 -1
  41. package/dist/src/api/lib/route.d.ts +2 -2
  42. package/dist/src/api/lib/route.d.ts.map +1 -1
  43. package/dist/src/api/lib/route.js +1 -1
  44. package/dist/src/api/lib/with-pagination.d.ts +7 -7
  45. package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
  46. package/dist/src/api/lib/with-pagination.js +37 -24
  47. package/dist/src/api/middlewares/captcha.middleware.d.ts +1 -1
  48. package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -1
  49. package/dist/src/api/middlewares/captcha.middleware.js +14 -13
  50. package/dist/src/api/middlewares/cron-auth.middleware.d.ts +3 -0
  51. package/dist/src/api/middlewares/cron-auth.middleware.d.ts.map +1 -0
  52. package/dist/src/api/middlewares/cron-auth.middleware.js +19 -0
  53. package/dist/src/api/middlewares/global.middleware.d.ts +18 -12
  54. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  55. package/dist/src/api/middlewares/global.middleware.js +46 -34
  56. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +3 -3
  57. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
  58. package/dist/src/api/middlewares/rate-limiter.middleware.js +4 -4
  59. package/dist/src/api/models/device.d.ts +1 -1
  60. package/dist/src/api/models/device.d.ts.map +1 -1
  61. package/dist/src/api/models/device.js +13 -13
  62. package/dist/src/api/models/email.d.ts +15 -15
  63. package/dist/src/api/models/email.d.ts.map +1 -1
  64. package/dist/src/api/models/email.js +11 -10
  65. package/dist/src/api/models/password.js +9 -9
  66. package/dist/src/api/models/session-admin.d.ts +1 -1
  67. package/dist/src/api/models/session-admin.d.ts.map +1 -1
  68. package/dist/src/api/models/session-admin.js +19 -19
  69. package/dist/src/api/models/session.d.ts +1 -1
  70. package/dist/src/api/models/session.d.ts.map +1 -1
  71. package/dist/src/api/models/session.js +17 -17
  72. package/dist/src/api/models/sso.d.ts +1 -1
  73. package/dist/src/api/models/sso.d.ts.map +1 -1
  74. package/dist/src/api/models/sso.js +22 -25
  75. package/dist/src/api/models/user/get-user-by-id.d.ts +1 -1
  76. package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
  77. package/dist/src/api/models/user/get-user-by-id.js +1 -1
  78. package/dist/src/api/models/user/sign-in-with-passwords.d.ts +1 -1
  79. package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
  80. package/dist/src/api/models/user/sign-in-with-passwords.js +1 -1
  81. package/dist/src/api/models/user/sign-up.d.ts +2 -2
  82. package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
  83. package/dist/src/api/models/user/sign-up.js +11 -12
  84. package/dist/src/api/models/user.d.ts +1 -1
  85. package/dist/src/api/models/user.d.ts.map +1 -1
  86. package/dist/src/api/modules/admin/admin.module.d.ts +166 -4
  87. package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
  88. package/dist/src/api/modules/admin/admin.module.js +7 -4
  89. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +164 -0
  90. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -0
  91. package/dist/src/api/modules/admin/advanced/advanced.admin.module.js +11 -0
  92. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts +164 -0
  93. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -0
  94. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.js +12 -0
  95. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts +98 -0
  96. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -0
  97. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.js +66 -0
  98. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts +70 -0
  99. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -0
  100. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.js +95 -0
  101. package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +1 -1
  102. package/dist/src/api/modules/admin/debug/debug.admin.module.js +2 -2
  103. package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
  104. package/dist/src/api/modules/admin/debug/routes/logs.route.js +17 -17
  105. package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -2
  106. package/dist/src/api/modules/admin/routes/session.route.js +8 -8
  107. package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -2
  108. package/dist/src/api/modules/admin/users/routes/list.route.js +13 -13
  109. package/dist/src/api/modules/admin/users/routes/users.route.d.ts +5 -5
  110. package/dist/src/api/modules/admin/users/routes/users.route.js +16 -16
  111. package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
  112. package/dist/src/api/modules/admin/users/users.admin.module.js +2 -2
  113. package/dist/src/api/modules/cron/cron/clean.cron.d.ts +2 -0
  114. package/dist/src/api/modules/cron/cron/clean.cron.d.ts.map +1 -0
  115. package/dist/src/api/modules/cron/cron/clean.cron.js +24 -0
  116. package/dist/src/api/modules/cron/cron.module.d.ts +26 -0
  117. package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -0
  118. package/dist/src/api/modules/cron/cron.module.js +14 -0
  119. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +36 -0
  120. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -0
  121. package/dist/src/api/modules/cron/helpers/process-cron-jobs.js +72 -0
  122. package/dist/src/api/modules/cron/routes/cron.route.d.ts +27 -0
  123. package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -0
  124. package/dist/src/api/modules/cron/routes/cron.route.js +95 -0
  125. package/dist/src/api/modules/middleware/middleware.module.d.ts +1 -1
  126. package/dist/src/api/modules/middleware/middleware.module.js +2 -2
  127. package/dist/src/api/modules/middleware/route.d.ts +2 -2
  128. package/dist/src/api/modules/middleware/route.js +13 -13
  129. package/dist/src/api/modules/users/routes/change-password.route.d.ts +2 -2
  130. package/dist/src/api/modules/users/routes/change-password.route.js +14 -14
  131. package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +2 -2
  132. package/dist/src/api/modules/users/routes/reset-passowrd.route.js +18 -18
  133. package/dist/src/api/modules/users/routes/session.route.d.ts +2 -2
  134. package/dist/src/api/modules/users/routes/session.route.js +7 -7
  135. package/dist/src/api/modules/users/routes/sign-in.route.d.ts +3 -3
  136. package/dist/src/api/modules/users/routes/sign-in.route.js +11 -11
  137. package/dist/src/api/modules/users/routes/sign-out.route.d.ts +2 -2
  138. package/dist/src/api/modules/users/routes/sign-out.route.js +8 -8
  139. package/dist/src/api/modules/users/routes/sign-up.route.d.ts +3 -3
  140. package/dist/src/api/modules/users/routes/sign-up.route.js +15 -15
  141. package/dist/src/api/modules/users/routes/test.route.d.ts +3 -3
  142. package/dist/src/api/modules/users/routes/test.route.js +10 -10
  143. package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +2 -2
  144. package/dist/src/api/modules/users/sso/routes/callback.route.js +9 -9
  145. package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -2
  146. package/dist/src/api/modules/users/sso/routes/create-url.route.js +7 -7
  147. package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
  148. package/dist/src/api/modules/users/sso/sso.module.js +2 -2
  149. package/dist/src/api/modules/users/users.module.d.ts +12 -12
  150. package/dist/src/api/modules/users/users.module.js +2 -2
  151. package/dist/src/api/plugin.d.ts.map +1 -1
  152. package/dist/src/api/plugin.js +4 -2
  153. package/dist/src/app/login/page.d.ts +1 -1
  154. package/dist/src/app/login/page.js +2 -2
  155. package/dist/src/app/login/reset-password/page.d.ts +2 -2
  156. package/dist/src/app/login/reset-password/page.js +2 -2
  157. package/dist/src/app/register/page.d.ts +1 -1
  158. package/dist/src/app/register/page.js +2 -2
  159. package/dist/src/app_admin/core/advanced/cron/page.d.ts +11 -0
  160. package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +1 -0
  161. package/dist/src/app_admin/core/advanced/cron/page.js +42 -0
  162. package/dist/src/app_admin/core/debug/page.d.ts +1 -1
  163. package/dist/src/app_admin/core/debug/page.js +8 -8
  164. package/dist/src/app_admin/core/users/page.d.ts +2 -2
  165. package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
  166. package/dist/src/app_admin/core/users/page.js +7 -7
  167. package/dist/src/components/avatar.d.ts +1 -1
  168. package/dist/src/components/avatar.js +1 -1
  169. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
  170. package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +5 -5
  171. package/dist/src/components/confirm-action/content.d.ts.map +1 -1
  172. package/dist/src/components/confirm-action/content.js +3 -4
  173. package/dist/src/components/date-format.js +8 -8
  174. package/dist/src/components/form/auto-form.d.ts +16 -16
  175. package/dist/src/components/form/auto-form.d.ts.map +1 -1
  176. package/dist/src/components/form/auto-form.js +13 -12
  177. package/dist/src/components/form/common/desc.js +1 -1
  178. package/dist/src/components/form/common/label.d.ts +1 -1
  179. package/dist/src/components/form/common/label.js +1 -1
  180. package/dist/src/components/form/fields/checkbox.d.ts +2 -2
  181. package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
  182. package/dist/src/components/form/fields/combobox-async.d.ts +3 -3
  183. package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
  184. package/dist/src/components/form/fields/combobox-async.js +29 -23
  185. package/dist/src/components/form/fields/combobox.d.ts +3 -3
  186. package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
  187. package/dist/src/components/form/fields/combobox.js +6 -7
  188. package/dist/src/components/form/fields/input.d.ts +2 -2
  189. package/dist/src/components/form/fields/input.d.ts.map +1 -1
  190. package/dist/src/components/form/fields/input.js +2 -2
  191. package/dist/src/components/form/fields/radio-group.d.ts +3 -3
  192. package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
  193. package/dist/src/components/form/fields/radio-group.js +0 -1
  194. package/dist/src/components/form/fields/select.d.ts +3 -3
  195. package/dist/src/components/form/fields/select.d.ts.map +1 -1
  196. package/dist/src/components/form/fields/select.js +2 -3
  197. package/dist/src/components/form/fields/switch.d.ts +2 -2
  198. package/dist/src/components/form/fields/switch.d.ts.map +1 -1
  199. package/dist/src/components/form/fields/textarea.d.ts +3 -3
  200. package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
  201. package/dist/src/components/form/fields/textarea.js +1 -2
  202. package/dist/src/components/i18n-provider.d.ts +2 -2
  203. package/dist/src/components/i18n-provider.js +3 -3
  204. package/dist/src/components/logo-vitnode.d.ts.map +1 -1
  205. package/dist/src/components/logo-vitnode.js +8 -2
  206. package/dist/src/components/switchers/langs/{language-swietcher.d.ts → language-switcher.d.ts} +2 -2
  207. package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
  208. package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +3 -3
  209. package/dist/src/components/switchers/themes/theme-switcher.js +4 -4
  210. package/dist/src/components/table/content.d.ts +1 -1
  211. package/dist/src/components/table/content.d.ts.map +1 -1
  212. package/dist/src/components/table/content.js +5 -5
  213. package/dist/src/components/table/data-table.d.ts +7 -7
  214. package/dist/src/components/table/data-table.d.ts.map +1 -1
  215. package/dist/src/components/table/data-table.js +22 -15
  216. package/dist/src/components/table/order-table-head.d.ts +4 -4
  217. package/dist/src/components/table/order-table-head.d.ts.map +1 -1
  218. package/dist/src/components/table/order-table-head.js +20 -9
  219. package/dist/src/components/table/pagination.js +19 -19
  220. package/dist/src/components/tiptap/extension.d.ts +4 -0
  221. package/dist/src/components/tiptap/extension.d.ts.map +1 -0
  222. package/dist/src/components/tiptap/extension.js +26 -0
  223. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts +2 -0
  224. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
  225. package/dist/src/components/tiptap/toolbar/actions/bold-action.js +39 -0
  226. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +2 -0
  227. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -0
  228. package/dist/src/components/tiptap/toolbar/actions/headings-action.js +94 -0
  229. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +2 -0
  230. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -0
  231. package/dist/src/components/tiptap/toolbar/actions/italic-action.js +38 -0
  232. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +2 -0
  233. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -0
  234. package/dist/src/components/tiptap/toolbar/actions/list-action.js +60 -0
  235. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +2 -0
  236. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -0
  237. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +59 -0
  238. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +2 -0
  239. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -0
  240. package/dist/src/components/tiptap/toolbar/actions/underline-action.js +38 -0
  241. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +2 -0
  242. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -0
  243. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +63 -0
  244. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +4 -0
  245. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -0
  246. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.js +11 -0
  247. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +5 -0
  248. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -0
  249. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +35 -0
  250. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts +9 -0
  251. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts.map +1 -0
  252. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.js +5 -0
  253. package/dist/src/components/ui/accordion.d.ts +2 -2
  254. package/dist/src/components/ui/accordion.d.ts.map +1 -1
  255. package/dist/src/components/ui/accordion.js +4 -5
  256. package/dist/src/components/ui/alert-dialog.d.ts +7 -7
  257. package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
  258. package/dist/src/components/ui/alert-dialog.js +12 -12
  259. package/dist/src/components/ui/alert.d.ts +5 -5
  260. package/dist/src/components/ui/alert.d.ts.map +1 -1
  261. package/dist/src/components/ui/alert.js +6 -7
  262. package/dist/src/components/ui/badge.d.ts +3 -3
  263. package/dist/src/components/ui/badge.d.ts.map +1 -1
  264. package/dist/src/components/ui/badge.js +7 -8
  265. package/dist/src/components/ui/button-client.d.ts +1 -1
  266. package/dist/src/components/ui/button-client.d.ts.map +1 -1
  267. package/dist/src/components/ui/button-client.js +10 -10
  268. package/dist/src/components/ui/button.d.ts +8 -8
  269. package/dist/src/components/ui/button.d.ts.map +1 -1
  270. package/dist/src/components/ui/button.js +14 -15
  271. package/dist/src/components/ui/card.d.ts +8 -8
  272. package/dist/src/components/ui/card.js +7 -7
  273. package/dist/src/components/ui/checkbox.d.ts +2 -2
  274. package/dist/src/components/ui/checkbox.d.ts.map +1 -1
  275. package/dist/src/components/ui/checkbox.js +2 -3
  276. package/dist/src/components/ui/collapsible.d.ts +1 -1
  277. package/dist/src/components/ui/collapsible.js +1 -1
  278. package/dist/src/components/ui/command.d.ts +4 -4
  279. package/dist/src/components/ui/command.d.ts.map +1 -1
  280. package/dist/src/components/ui/command.js +9 -10
  281. package/dist/src/components/ui/context-menu.d.ts +4 -4
  282. package/dist/src/components/ui/context-menu.d.ts.map +1 -1
  283. package/dist/src/components/ui/context-menu.js +7 -8
  284. package/dist/src/components/ui/dialog.d.ts +6 -6
  285. package/dist/src/components/ui/dialog.d.ts.map +1 -1
  286. package/dist/src/components/ui/dialog.js +16 -16
  287. package/dist/src/components/ui/drawer.d.ts +4 -4
  288. package/dist/src/components/ui/drawer.d.ts.map +1 -1
  289. package/dist/src/components/ui/drawer.js +7 -8
  290. package/dist/src/components/ui/dropdown-menu.d.ts +4 -4
  291. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
  292. package/dist/src/components/ui/dropdown-menu.js +8 -9
  293. package/dist/src/components/ui/editor-content.d.ts +4 -0
  294. package/dist/src/components/ui/editor-content.d.ts.map +1 -0
  295. package/dist/src/components/ui/editor-content.js +10 -0
  296. package/dist/src/components/ui/editor.d.ts +6 -0
  297. package/dist/src/components/ui/editor.d.ts.map +1 -0
  298. package/dist/src/components/ui/editor.js +35 -0
  299. package/dist/src/components/ui/form.d.ts +10 -10
  300. package/dist/src/components/ui/form.d.ts.map +1 -1
  301. package/dist/src/components/ui/form.js +15 -15
  302. package/dist/src/components/ui/header-content.js +1 -1
  303. package/dist/src/components/ui/hover-card.d.ts +2 -2
  304. package/dist/src/components/ui/hover-card.d.ts.map +1 -1
  305. package/dist/src/components/ui/hover-card.js +3 -4
  306. package/dist/src/components/ui/input-otp.d.ts +5 -5
  307. package/dist/src/components/ui/input-otp.d.ts.map +1 -1
  308. package/dist/src/components/ui/input-otp.js +6 -7
  309. package/dist/src/components/ui/input.d.ts +2 -2
  310. package/dist/src/components/ui/input.d.ts.map +1 -1
  311. package/dist/src/components/ui/input.js +1 -2
  312. package/dist/src/components/ui/label.d.ts +2 -2
  313. package/dist/src/components/ui/label.d.ts.map +1 -1
  314. package/dist/src/components/ui/label.js +2 -3
  315. package/dist/src/components/ui/loader.js +3 -3
  316. package/dist/src/components/ui/menubar.d.ts +4 -4
  317. package/dist/src/components/ui/menubar.d.ts.map +1 -1
  318. package/dist/src/components/ui/menubar.js +11 -12
  319. package/dist/src/components/ui/navigation-menu.d.ts +2 -2
  320. package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
  321. package/dist/src/components/ui/navigation-menu.js +10 -11
  322. package/dist/src/components/ui/popover.d.ts +2 -2
  323. package/dist/src/components/ui/popover.d.ts.map +1 -1
  324. package/dist/src/components/ui/popover.js +3 -4
  325. package/dist/src/components/ui/progress.d.ts +2 -2
  326. package/dist/src/components/ui/progress.d.ts.map +1 -1
  327. package/dist/src/components/ui/progress.js +2 -3
  328. package/dist/src/components/ui/radio-group.d.ts +2 -2
  329. package/dist/src/components/ui/radio-group.d.ts.map +1 -1
  330. package/dist/src/components/ui/radio-group.js +3 -4
  331. package/dist/src/components/ui/select.d.ts +3 -3
  332. package/dist/src/components/ui/select.d.ts.map +1 -1
  333. package/dist/src/components/ui/select.js +9 -10
  334. package/dist/src/components/ui/separator.d.ts +2 -2
  335. package/dist/src/components/ui/separator.d.ts.map +1 -1
  336. package/dist/src/components/ui/separator.js +3 -4
  337. package/dist/src/components/ui/sheet.d.ts +5 -5
  338. package/dist/src/components/ui/sheet.d.ts.map +1 -1
  339. package/dist/src/components/ui/sheet.js +8 -9
  340. package/dist/src/components/ui/sidebar.d.ts +31 -31
  341. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  342. package/dist/src/components/ui/sidebar.js +78 -80
  343. package/dist/src/components/ui/skeleton.d.ts +1 -1
  344. package/dist/src/components/ui/skeleton.js +1 -1
  345. package/dist/src/components/ui/slider.d.ts +2 -2
  346. package/dist/src/components/ui/slider.d.ts.map +1 -1
  347. package/dist/src/components/ui/slider.js +16 -8
  348. package/dist/src/components/ui/sonner.d.ts +1 -1
  349. package/dist/src/components/ui/sonner.d.ts.map +1 -1
  350. package/dist/src/components/ui/sonner.js +6 -6
  351. package/dist/src/components/ui/switch.d.ts +2 -2
  352. package/dist/src/components/ui/switch.d.ts.map +1 -1
  353. package/dist/src/components/ui/switch.js +3 -4
  354. package/dist/src/components/ui/table.d.ts +9 -9
  355. package/dist/src/components/ui/table.d.ts.map +1 -1
  356. package/dist/src/components/ui/table.js +8 -9
  357. package/dist/src/components/ui/tabs.d.ts +2 -2
  358. package/dist/src/components/ui/tabs.d.ts.map +1 -1
  359. package/dist/src/components/ui/tabs.js +4 -5
  360. package/dist/src/components/ui/textarea.d.ts +2 -2
  361. package/dist/src/components/ui/textarea.d.ts.map +1 -1
  362. package/dist/src/components/ui/textarea.js +1 -2
  363. package/dist/src/components/ui/toggle-group.d.ts +4 -4
  364. package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
  365. package/dist/src/components/ui/toggle-group.js +6 -6
  366. package/dist/src/components/ui/toggle.d.ts +3 -3
  367. package/dist/src/components/ui/toggle.d.ts.map +1 -1
  368. package/dist/src/components/ui/toggle.js +8 -9
  369. package/dist/src/components/ui/tooltip.d.ts +6 -3
  370. package/dist/src/components/ui/tooltip.d.ts.map +1 -1
  371. package/dist/src/components/ui/tooltip.js +20 -5
  372. package/dist/src/config.js +2 -2
  373. package/dist/src/database/admins.js +10 -10
  374. package/dist/src/database/cron.d.ts +171 -0
  375. package/dist/src/database/cron.d.ts.map +1 -0
  376. package/dist/src/database/cron.js +22 -0
  377. package/dist/src/database/languages.js +7 -7
  378. package/dist/src/database/logs.js +9 -9
  379. package/dist/src/database/moderators.js +5 -5
  380. package/dist/src/database/roles.js +1 -1
  381. package/dist/src/database/sessions.js +6 -6
  382. package/dist/src/database/users.d.ts +2 -2
  383. package/dist/src/database/users.js +14 -14
  384. package/dist/src/drizzle.config.d.ts +2 -2
  385. package/dist/src/drizzle.config.d.ts.map +1 -1
  386. package/dist/src/drizzle.config.js +19 -12
  387. package/dist/src/emails/default-template.d.ts +3 -3
  388. package/dist/src/emails/default-template.d.ts.map +1 -1
  389. package/dist/src/emails/default-template.js +39 -38
  390. package/dist/src/emails/reset-password.d.ts +1 -1
  391. package/dist/src/emails/reset-password.d.ts.map +1 -1
  392. package/dist/src/emails/reset-password.js +51 -51
  393. package/dist/src/emails/ui/button.d.ts +2 -2
  394. package/dist/src/emails/ui/button.js +13 -13
  395. package/dist/src/emails/ui/card.d.ts +1 -1
  396. package/dist/src/emails/ui/card.js +6 -6
  397. package/dist/src/hooks/use-before-unload.js +3 -3
  398. package/dist/src/hooks/use-captcha.d.ts +2 -2
  399. package/dist/src/hooks/use-captcha.d.ts.map +1 -1
  400. package/dist/src/hooks/use-captcha.js +29 -37
  401. package/dist/src/hooks/use-mobile.d.ts.map +1 -1
  402. package/dist/src/hooks/use-mobile.js +3 -4
  403. package/dist/src/lib/api/get-middleware-api.js +4 -4
  404. package/dist/src/lib/api/get-next-cron-run-date.d.ts +2 -0
  405. package/dist/src/lib/api/get-next-cron-run-date.d.ts.map +1 -0
  406. package/dist/src/lib/api/get-next-cron-run-date.js +14 -0
  407. package/dist/src/lib/api/get-next-cron-run-date.test.d.ts +2 -0
  408. package/dist/src/lib/api/get-next-cron-run-date.test.d.ts.map +1 -0
  409. package/dist/src/lib/api/get-next-cron-run-date.test.js +55 -0
  410. package/dist/src/lib/api/get-session-admin-api.js +5 -5
  411. package/dist/src/lib/api/get-session-api.js +4 -4
  412. package/dist/src/lib/api/should-cron-job-run.d.ts +2 -0
  413. package/dist/src/lib/api/should-cron-job-run.d.ts.map +1 -0
  414. package/dist/src/lib/api/should-cron-job-run.js +16 -0
  415. package/dist/src/lib/api/should-cron-job-run.test.d.ts +2 -0
  416. package/dist/src/lib/api/should-cron-job-run.test.d.ts.map +1 -0
  417. package/dist/src/lib/api/should-cron-job-run.test.js +213 -0
  418. package/dist/src/lib/colors.js +28 -19
  419. package/dist/src/lib/colors.test.js +60 -60
  420. package/dist/src/lib/config.d.ts +1 -0
  421. package/dist/src/lib/config.d.ts.map +1 -1
  422. package/dist/src/lib/config.js +8 -6
  423. package/dist/src/lib/ctrl-or-command-character.d.ts +2 -0
  424. package/dist/src/lib/ctrl-or-command-character.d.ts.map +1 -0
  425. package/dist/src/lib/ctrl-or-command-character.js +9 -0
  426. package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
  427. package/dist/src/lib/fetcher/cookie-from-string-to-object.js +1 -1
  428. package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +27 -27
  429. package/dist/src/lib/fetcher/core.d.ts +5 -5
  430. package/dist/src/lib/fetcher/core.d.ts.map +1 -1
  431. package/dist/src/lib/fetcher/core.js +11 -10
  432. package/dist/src/lib/fetcher/helpers-server.d.ts +1 -1
  433. package/dist/src/lib/fetcher/helpers-server.js +1 -1
  434. package/dist/src/lib/fetcher/helpers.test.js +17 -17
  435. package/dist/src/lib/fetcher/types.d.ts +26 -26
  436. package/dist/src/lib/fetcher/types.d.ts.map +1 -1
  437. package/dist/src/lib/fetcher-client.d.ts +4 -4
  438. package/dist/src/lib/fetcher-client.d.ts.map +1 -1
  439. package/dist/src/lib/fetcher-client.js +3 -3
  440. package/dist/src/lib/fetcher.d.ts +5 -5
  441. package/dist/src/lib/fetcher.d.ts.map +1 -1
  442. package/dist/src/lib/fetcher.js +4 -4
  443. package/dist/src/lib/helpers/auto-form.d.ts +3 -3
  444. package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
  445. package/dist/src/lib/helpers/auto-form.js +16 -15
  446. package/dist/src/lib/helpers/auto-form.test.js +129 -129
  447. package/dist/src/lib/navigation.d.ts +3 -3
  448. package/dist/src/lib/navigation.d.ts.map +1 -1
  449. package/dist/src/lib/plugin.d.ts +3 -3
  450. package/dist/src/lib/special-characters.js +1 -1
  451. package/dist/src/lib/special-characters.test.js +36 -36
  452. package/dist/src/lib/utils.d.ts +1 -1
  453. package/dist/src/tests/setup.d.ts +1 -1
  454. package/dist/src/views/admin/layouts/admin-layout.d.ts +1 -1
  455. package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
  456. package/dist/src/views/admin/layouts/admin-layout.js +5 -9
  457. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
  458. package/dist/src/views/admin/layouts/sidebar/nav/item.js +8 -12
  459. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +1 -1
  460. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
  461. package/dist/src/views/admin/layouts/sidebar/nav/nav.js +23 -12
  462. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
  463. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
  464. package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -2
  465. package/dist/src/views/admin/layouts/sidebar/sign-out.js +1 -1
  466. package/dist/src/views/admin/layouts/user-bar/client.js +5 -5
  467. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
  468. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
  469. package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
  470. package/dist/src/views/admin/sign-in/sign-in-admin-view.js +1 -1
  471. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts +5 -0
  472. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -0
  473. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +97 -0
  474. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts +4 -0
  475. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts.map +1 -0
  476. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.js +23 -0
  477. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +4 -0
  478. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -0
  479. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.js +37 -0
  480. package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +3 -3
  481. package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +10 -10
  482. package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +2 -2
  483. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
  484. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
  485. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.js +15 -15
  486. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +1 -1
  487. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts.map +1 -1
  488. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +16 -25
  489. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
  490. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.js +7 -1
  491. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
  492. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.js +3 -3
  493. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +25 -25
  494. package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
  495. package/dist/src/views/admin/views/core/test.js +134 -124
  496. package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
  497. package/dist/src/views/admin/views/core/users/users-admin-view.js +13 -14
  498. package/dist/src/views/auth/password-reset/change-password-form/form.js +9 -9
  499. package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +2 -2
  500. package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +5 -5
  501. package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +2 -2
  502. package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
  503. package/dist/src/views/auth/password-reset/change-password-form/use-form.js +7 -7
  504. package/dist/src/views/auth/password-reset/form/form.d.ts +2 -2
  505. package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
  506. package/dist/src/views/auth/password-reset/form/form.js +15 -15
  507. package/dist/src/views/auth/password-reset/form/mutation-api.js +5 -5
  508. package/dist/src/views/auth/password-reset/form/use-form.d.ts +2 -2
  509. package/dist/src/views/auth/password-reset/form/use-form.js +7 -7
  510. package/dist/src/views/auth/password-reset/password-reset-view.js +4 -4
  511. package/dist/src/views/auth/sign-in/form/form.js +9 -9
  512. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts +2 -2
  513. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
  514. package/dist/src/views/auth/sign-in/form/mutation-api.js +10 -10
  515. package/dist/src/views/auth/sign-in/form/use-form.d.ts +2 -2
  516. package/dist/src/views/auth/sign-in/form/use-form.js +11 -11
  517. package/dist/src/views/auth/sign-in/sign-in-view.js +5 -5
  518. package/dist/src/views/auth/sign-up/components/password-input.d.ts +3 -3
  519. package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
  520. package/dist/src/views/auth/sign-up/components/password-input.js +9 -10
  521. package/dist/src/views/auth/sign-up/email-confirmation-view.js +4 -4
  522. package/dist/src/views/auth/sign-up/form/form.d.ts +2 -2
  523. package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
  524. package/dist/src/views/auth/sign-up/form/form.js +18 -18
  525. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +2 -2
  526. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
  527. package/dist/src/views/auth/sign-up/form/mutation-api.js +6 -6
  528. package/dist/src/views/auth/sign-up/form/use-form.d.ts +2 -2
  529. package/dist/src/views/auth/sign-up/form/use-form.js +21 -21
  530. package/dist/src/views/auth/sign-up/sign-up-view.js +5 -5
  531. package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
  532. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
  533. package/dist/src/views/auth/sign-up/wrapper.js +5 -8
  534. package/dist/src/views/auth/sso/buttons/client.js +4 -4
  535. package/dist/src/views/auth/sso/buttons/mutation-api.js +5 -5
  536. package/dist/src/views/auth/sso/buttons/sso-buttons.js +2 -2
  537. package/dist/src/views/auth/sso/callback/callback-sso-view.js +6 -6
  538. package/dist/src/views/auth/sso/callback/client/client.d.ts +1 -1
  539. package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
  540. package/dist/src/views/auth/sso/callback/client/client.js +9 -9
  541. package/dist/src/views/auth/sso/callback/client/mutation-api.js +7 -7
  542. package/dist/src/views/error/back-button.js +1 -1
  543. package/dist/src/views/error/error-view.js +4 -4
  544. package/dist/src/views/error/global-error-view.d.ts +3 -3
  545. package/dist/src/views/error/global-error-view.d.ts.map +1 -1
  546. package/dist/src/views/error/global-error-view.js +36 -44
  547. package/dist/src/views/layouts/provider.d.ts +4 -4
  548. package/dist/src/views/layouts/provider.d.ts.map +1 -1
  549. package/dist/src/views/layouts/provider.js +3 -3
  550. package/dist/src/views/layouts/root-layout.d.ts +3 -3
  551. package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
  552. package/dist/src/views/layouts/root-layout.js +1 -2
  553. package/dist/src/views/layouts/theme/header/header.d.ts +2 -2
  554. package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
  555. package/dist/src/views/layouts/theme/header/header.js +2 -2
  556. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
  557. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
  558. package/dist/src/views/layouts/theme/header/user/auth/client.js +4 -4
  559. package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +8 -8
  560. package/dist/src/views/layouts/theme/header/user/user.js +4 -4
  561. package/dist/src/views/layouts/theme/layout.d.ts +2 -2
  562. package/dist/src/views/layouts/theme/layout.js +1 -1
  563. package/dist/src/vitnode.config.d.ts +18 -16
  564. package/dist/src/vitnode.config.d.ts.map +1 -1
  565. package/dist/src/vitnode.config.js +3 -2
  566. package/dist/tsconfig.tsbuildinfo +1 -1
  567. package/package.json +32 -29
  568. package/src/app/login/page.tsx +5 -5
  569. package/src/app/login/reset-password/page.tsx +5 -5
  570. package/src/app/login/sso/[providerId]/page.tsx +1 -1
  571. package/src/app/register/page.tsx +5 -5
  572. package/src/app_admin/core/advanced/cron/page.tsx +41 -0
  573. package/src/app_admin/core/debug/page.tsx +14 -14
  574. package/src/app_admin/core/page.tsx +1 -1
  575. package/src/app_admin/core/test/page.tsx +1 -1
  576. package/src/app_admin/core/users/page.tsx +12 -13
  577. package/src/locales/en.json +43 -0
  578. package/src/tiptap.css +20 -0
  579. package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { z } from "zod";
4
4
  import { AutoForm } from "../../../../components/form/auto-form.js";
5
5
  import { AutoFormCheckbox } from "../../../../components/form/fields/checkbox.js";
@@ -10,142 +10,152 @@ import { AutoFormSelect } from "../../../../components/form/fields/select.js";
10
10
  import { AutoFormSwitch } from "../../../../components/form/fields/switch.js";
11
11
  import { AutoFormTextarea } from "../../../../components/form/fields/textarea.js";
12
12
  import { Card } from "../../../../components/ui/card.js";
13
+ import { Editor } from "../../../../components/ui/editor.js";
14
+ import { EditorContent } from "../../../../components/ui/editor-content.js";
13
15
  export const TestView = ()=>{
14
16
  const formSchema = z.object({
15
17
  provider: z.string().min(1, {
16
- message: 'Provider is required'
17
- }).describe('This is the provider for your application. It should be a valid provider name.'),
18
+ message: "Provider is required"
19
+ }).describe("This is the provider for your application. It should be a valid provider name."),
18
20
  client_secret: z.string().min(1, {
19
- message: 'Client Secret is required'
20
- }).describe('This is the client secret for your application. It should be kept secret and not shared with anyone.'),
21
+ message: "Client Secret is required"
22
+ }).describe("This is the client secret for your application. It should be kept secret and not shared with anyone."),
21
23
  terms: z.boolean().refine((val)=>val, {
22
- message: 'You must accept the terms and conditions'
23
- }).describe('By checking this box, you agree to the terms and conditions.'),
24
+ message: "You must accept the terms and conditions"
25
+ }).describe("By checking this box, you agree to the terms and conditions."),
24
26
  options: z.enum([
25
- 'option1',
26
- 'option2',
27
- 'option3'
28
- ]).default('option1'),
27
+ "option1",
28
+ "option2",
29
+ "option3"
30
+ ]).default("option1"),
29
31
  options_long: z.enum([
30
- 'option1',
31
- 'option2',
32
- 'option3'
33
- ]).default('option2'),
34
- switch: z.boolean().default(false).describe('elo'),
32
+ "option1",
33
+ "option2",
34
+ "option3"
35
+ ]).default("option2"),
36
+ switch: z.boolean().default(false).describe("elo"),
35
37
  type: z.enum([
36
- 'option-one',
37
- 'option-two'
38
+ "option-one",
39
+ "option-two"
38
40
  ])
39
41
  });
40
42
  return /*#__PURE__*/ _jsx("div", {
41
43
  className: "p-4",
42
- children: /*#__PURE__*/ _jsx(Card, {
44
+ children: /*#__PURE__*/ _jsxs(Card, {
43
45
  className: "p-6",
44
- children: /*#__PURE__*/ _jsx(AutoForm, {
45
- fields: [
46
- {
47
- id: 'provider',
48
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormInput, {
49
- description: "This is the provider for your application. It should be a valid provider name.",
50
- label: "Provider",
51
- ...props
52
- })
53
- },
54
- {
55
- id: 'client_secret',
56
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormTextarea, {
57
- description: "This is the client secret for your application. It should be kept secret and not shared with anyone.",
58
- label: "Client Secret",
59
- ...props
60
- })
61
- },
62
- {
63
- id: 'terms',
64
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormCheckbox, {
65
- description: "By checking this box, you agree to the terms and conditions.",
66
- label: "I agree to the terms and conditions",
67
- ...props
68
- })
69
- },
70
- {
71
- id: 'options',
72
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormRadioGroup, {
73
- description: "By checking this box, you agree to the terms and conditions.",
74
- label: "I agree to the terms and conditions",
75
- labels: [
76
- {
77
- value: 'option1',
78
- label: 'Option 1 with a very long label that should be truncated'
79
- },
80
- {
81
- value: 'option2',
82
- label: 'Option 2'
83
- },
84
- {
85
- value: 'option3',
86
- label: 'Option 3'
87
- }
88
- ],
89
- ...props
90
- })
91
- },
92
- {
93
- id: 'options_long',
94
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormSelect, {
95
- description: "By checking this box, you agree to the terms and conditions.",
96
- label: "I agree to the terms and conditions",
97
- labels: [
98
- {
99
- value: 'option1',
100
- label: 'Option 1 with a very long label that should be truncated'
101
- },
102
- {
103
- value: 'option2',
104
- label: 'Option 2'
105
- },
106
- {
107
- value: 'option3',
108
- label: 'Option 3'
109
- }
110
- ],
111
- placeholder: "Select an option from the list",
112
- ...props
113
- })
114
- },
115
- {
116
- id: 'switch',
117
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormSwitch, {
118
- ...props,
119
- description: "By checking this box, you agree to the terms and conditions.",
120
- label: "I agree to the terms and conditions"
121
- })
122
- },
123
- {
124
- id: 'type',
125
- component: (props)=>/*#__PURE__*/ _jsx(AutoFormCombobox, {
126
- description: "By checking this box, you agree to the terms and conditions.",
127
- label: "Type",
128
- labels: [
129
- {
130
- value: 'option-one',
131
- label: 'Option One'
132
- },
133
- {
134
- value: 'option-two',
135
- label: 'Option Two'
136
- }
137
- ],
138
- ...props
139
- })
46
+ children: [
47
+ /*#__PURE__*/ _jsx(Editor, {
48
+ value: "<p>Hello World! 🌎️</p>"
49
+ }),
50
+ /*#__PURE__*/ _jsx(EditorContent, {
51
+ content: "<h2>Test header v2</h2><p>Hello World! 🌎️das d alfjnasjf kas djksa fkja sfj AFKJ afj AFJKNAJSKGNSAKFLMSAKLDNASFJNKJnjkdasnfjnas fjknsa fjknsafkjn askjfnkajsgnasjkfnskjanf kjans fjknasjkf naskjf naskjnf kjasn kfjans fjkas kfjnas jknfkasjn fkajsnf jnasfjkangaskjfnajsdnlaskmcdasjfnjskafnsajknfcksajdnasjkfnjkasn cfjksanfjckasnjcnaskjcnaksjcnaksjcnakjcnasjkn</p>"
52
+ }),
53
+ /*#__PURE__*/ _jsx(AutoForm, {
54
+ fields: [
55
+ {
56
+ id: "provider",
57
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormInput, {
58
+ description: "This is the provider for your application. It should be a valid provider name.",
59
+ label: "Provider",
60
+ ...props
61
+ })
62
+ },
63
+ {
64
+ id: "client_secret",
65
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormTextarea, {
66
+ description: "This is the client secret for your application. It should be kept secret and not shared with anyone.",
67
+ label: "Client Secret",
68
+ ...props
69
+ })
70
+ },
71
+ {
72
+ id: "terms",
73
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormCheckbox, {
74
+ description: "By checking this box, you agree to the terms and conditions.",
75
+ label: "I agree to the terms and conditions",
76
+ ...props
77
+ })
78
+ },
79
+ {
80
+ id: "options",
81
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormRadioGroup, {
82
+ description: "By checking this box, you agree to the terms and conditions.",
83
+ label: "I agree to the terms and conditions",
84
+ labels: [
85
+ {
86
+ value: "option1",
87
+ label: "Option 1 with a very long label that should be truncated"
88
+ },
89
+ {
90
+ value: "option2",
91
+ label: "Option 2"
92
+ },
93
+ {
94
+ value: "option3",
95
+ label: "Option 3"
96
+ }
97
+ ],
98
+ ...props
99
+ })
100
+ },
101
+ {
102
+ id: "options_long",
103
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormSelect, {
104
+ description: "By checking this box, you agree to the terms and conditions.",
105
+ label: "I agree to the terms and conditions",
106
+ labels: [
107
+ {
108
+ value: "option1",
109
+ label: "Option 1 with a very long label that should be truncated"
110
+ },
111
+ {
112
+ value: "option2",
113
+ label: "Option 2"
114
+ },
115
+ {
116
+ value: "option3",
117
+ label: "Option 3"
118
+ }
119
+ ],
120
+ placeholder: "Select an option from the list",
121
+ ...props
122
+ })
123
+ },
124
+ {
125
+ id: "switch",
126
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormSwitch, {
127
+ ...props,
128
+ description: "By checking this box, you agree to the terms and conditions.",
129
+ label: "I agree to the terms and conditions"
130
+ })
131
+ },
132
+ {
133
+ id: "type",
134
+ component: (props)=>/*#__PURE__*/ _jsx(AutoFormCombobox, {
135
+ description: "By checking this box, you agree to the terms and conditions.",
136
+ label: "Type",
137
+ labels: [
138
+ {
139
+ value: "option-one",
140
+ label: "Option One"
141
+ },
142
+ {
143
+ value: "option-two",
144
+ label: "Option Two"
145
+ }
146
+ ],
147
+ ...props
148
+ })
149
+ }
150
+ ],
151
+ formSchema: formSchema,
152
+ onSubmit: async (values)=>{
153
+ // biome-ignore lint/suspicious/noConsole: <needed>
154
+ console.log("Form submitted", values);
155
+ await new Promise((resolve)=>setTimeout(resolve, 3000));
140
156
  }
141
- ],
142
- formSchema: formSchema,
143
- onSubmit: async (values)=>{
144
- // eslint-disable-next-line no-console
145
- console.log('Form submitted', values);
146
- await new Promise((resolve)=>setTimeout(resolve, 3000));
147
- }
148
- })
157
+ })
158
+ ]
149
159
  })
150
160
  });
151
161
  };
@@ -1 +1 @@
1
- {"version":3,"file":"users-admin-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/views/core/users/users-admin-view.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,cAAc,GAAU,mBAElC;IACD,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;CACtE,qDA4DA,CAAC"}
1
+ {"version":3,"file":"users-admin-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/views/core/users/users-admin-view.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,GAAU,mBAElC;IACD,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;CACtE,qDA4DA,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { MailIcon } from "lucide-react";
3
3
  import { getTranslations } from "next-intl/server";
4
- import React from "react";
5
4
  import { adminModule } from "../../../../../api/modules/admin/admin.module.js";
6
5
  import { Avatar } from "../../../../../components/avatar.js";
7
6
  import { DateFormat } from "../../../../../components/date-format.js";
@@ -9,12 +8,12 @@ import { DataTable } from "../../../../../components/table/data-table.js";
9
8
  import { Tooltip, TooltipContent, TooltipTrigger } from "../../../../../components/ui/tooltip.js";
10
9
  import { fetcher } from "../../../../../lib/fetcher.js";
11
10
  export const UsersAdminView = async ({ searchParams })=>{
12
- const t = await getTranslations('admin.user.list');
11
+ const t = await getTranslations("admin.user.list");
13
12
  const query = await searchParams;
14
13
  const res = await fetcher(adminModule, {
15
- path: '/list',
16
- method: 'get',
17
- module: 'admin/users',
14
+ path: "/list",
15
+ method: "get",
16
+ module: "admin/users",
18
17
  args: {
19
18
  query
20
19
  },
@@ -24,8 +23,8 @@ export const UsersAdminView = async ({ searchParams })=>{
24
23
  return /*#__PURE__*/ _jsx(DataTable, {
25
24
  columns: [
26
25
  {
27
- id: 'name',
28
- label: t('user'),
26
+ id: "name",
27
+ label: t("user"),
29
28
  cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
30
29
  className: "flex items-center gap-3",
31
30
  children: [
@@ -51,7 +50,7 @@ export const UsersAdminView = async ({ searchParams })=>{
51
50
  })
52
51
  }),
53
52
  /*#__PURE__*/ _jsx(TooltipContent, {
54
- children: t('emailNotVerified')
53
+ children: t("emailNotVerified")
55
54
  })
56
55
  ]
57
56
  })
@@ -67,8 +66,8 @@ export const UsersAdminView = async ({ searchParams })=>{
67
66
  })
68
67
  },
69
68
  {
70
- id: 'createdAt',
71
- label: t('createdAt'),
69
+ id: "createdAt",
70
+ label: t("createdAt"),
72
71
  cell: ({ row })=>/*#__PURE__*/ _jsx(DateFormat, {
73
72
  date: row.createdAt
74
73
  })
@@ -77,12 +76,12 @@ export const UsersAdminView = async ({ searchParams })=>{
77
76
  edges: data.edges,
78
77
  order: {
79
78
  columns: [
80
- 'createdAt',
81
- 'name'
79
+ "createdAt",
80
+ "name"
82
81
  ],
83
82
  defaultOrder: {
84
- column: 'createdAt',
85
- order: 'desc'
83
+ column: "createdAt",
84
+ order: "desc"
86
85
  }
87
86
  },
88
87
  pageInfo: data.pageInfo
@@ -1,4 +1,4 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useTranslations } from "next-intl";
4
4
  import { AutoForm } from "../../../../components/form/auto-form.js";
@@ -6,8 +6,8 @@ import { CardContent, CardDescription, CardHeader, CardTitle } from "../../../..
6
6
  import { PasswordInput } from "../../sign-up/components/password-input.js";
7
7
  import { useForm } from "./use-form.js";
8
8
  export const ChangePasswordForm = (props)=>{
9
- const t = useTranslations('core.auth.change_password');
10
- const tSignUp = useTranslations('core.auth.sign_up');
9
+ const t = useTranslations("core.auth.change_password");
10
+ const tSignUp = useTranslations("core.auth.sign_up");
11
11
  const { formSchema, onSubmit } = useForm(props);
12
12
  return /*#__PURE__*/ _jsxs(_Fragment, {
13
13
  children: [
@@ -16,11 +16,11 @@ export const ChangePasswordForm = (props)=>{
16
16
  children: [
17
17
  /*#__PURE__*/ _jsx(CardTitle, {
18
18
  children: /*#__PURE__*/ _jsx("h1", {
19
- children: t('title')
19
+ children: t("title")
20
20
  })
21
21
  }),
22
22
  /*#__PURE__*/ _jsx(CardDescription, {
23
- children: t('desc')
23
+ children: t("desc")
24
24
  })
25
25
  ]
26
26
  }),
@@ -28,9 +28,9 @@ export const ChangePasswordForm = (props)=>{
28
28
  children: /*#__PURE__*/ _jsx(AutoForm, {
29
29
  fields: [
30
30
  {
31
- id: 'password',
31
+ id: "password",
32
32
  component: (props)=>/*#__PURE__*/ _jsx(PasswordInput, {
33
- label: tSignUp('password.label'),
33
+ label: tSignUp("password.label"),
34
34
  ...props
35
35
  })
36
36
  }
@@ -38,8 +38,8 @@ export const ChangePasswordForm = (props)=>{
38
38
  formSchema: formSchema,
39
39
  onSubmit: onSubmit,
40
40
  submitButtonProps: {
41
- className: 'w-full',
42
- children: t('submit')
41
+ className: "w-full",
42
+ children: t("submit")
43
43
  }
44
44
  })
45
45
  })
@@ -1,5 +1,5 @@
1
- import type z from 'zod';
2
- import type { zodChangePasswordSchema } from '../../../../api/modules/users/routes/change-password.route';
1
+ import type z from "zod";
2
+ import type { zodChangePasswordSchema } from "../../../../api/modules/users/routes/change-password.route";
3
3
  export declare const mutationApi: ({ password, token, userId, }: z.infer<typeof zodChangePasswordSchema>) => Promise<{
4
4
  error: string;
5
5
  } | undefined>;
@@ -1,11 +1,11 @@
1
- 'use server';
1
+ "use server";
2
2
  import { usersModule } from "../../../../api/modules/users/users.module.js";
3
3
  import { fetcher } from "../../../../lib/fetcher.js";
4
4
  export const mutationApi = async ({ password, token, userId })=>{
5
5
  const res = await fetcher(usersModule, {
6
- module: 'users',
7
- path: '/change-password',
8
- method: 'post',
6
+ module: "users",
7
+ path: "/change-password",
8
+ method: "post",
9
9
  args: {
10
10
  body: {
11
11
  password,
@@ -16,7 +16,7 @@ export const mutationApi = async ({ password, token, userId })=>{
16
16
  });
17
17
  if (res.status !== 201) {
18
18
  return {
19
- error: 'internal_server_error'
19
+ error: "internal_server_error"
20
20
  };
21
21
  }
22
22
  };
@@ -1,5 +1,5 @@
1
- import z from 'zod';
2
- import type { ChangePasswordForm } from './form';
1
+ import z from "zod";
2
+ import type { ChangePasswordForm } from "./form";
3
3
  export declare const useForm: ({ token, userId, }: React.ComponentProps<typeof ChangePasswordForm>) => {
4
4
  formSchema: z.ZodObject<{
5
5
  password: z.ZodDefault<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/change-password-form/use-form.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAKjD,eAAO,MAAM,OAAO,GAAI,oBAGrB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC;;;;qBAUlB,CAAC,CAAC,KAAK;;sBAAmB;CAyBzD,CAAC"}
1
+ {"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/change-password-form/use-form.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAGjD,eAAO,MAAM,OAAO,GAAI,oBAGrB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC;;;;qBAUlB,CAAC,CAAC,KAAK;;sBAAmB;CAyBzD,CAAC"}
@@ -5,8 +5,8 @@ import { useRouter } from "../../../../lib/navigation.js";
5
5
  import { usePasswordZodSchema } from "../../sign-up/form/use-form.js";
6
6
  import { mutationApi } from "./mutation-api.js";
7
7
  export const useForm = ({ token, userId })=>{
8
- const t = useTranslations('core.auth.change_password');
9
- const tError = useTranslations('core.global.errors');
8
+ const t = useTranslations("core.auth.change_password");
9
+ const tError = useTranslations("core.global.errors");
10
10
  const passwordSchema = usePasswordZodSchema();
11
11
  const { replace } = useRouter();
12
12
  const formSchema = z.object({
@@ -19,15 +19,15 @@ export const useForm = ({ token, userId })=>{
19
19
  userId: +userId
20
20
  });
21
21
  if (mutation?.error) {
22
- toast.error(tError('title'), {
23
- description: tError('internal_server_error')
22
+ toast.error(tError("title"), {
23
+ description: tError("internal_server_error")
24
24
  });
25
25
  return;
26
26
  }
27
- toast.success(t('success.title'), {
28
- description: t('success.desc')
27
+ toast.success(t("success.title"), {
28
+ description: t("success.desc")
29
29
  });
30
- replace('/login');
30
+ replace("/login");
31
31
  };
32
32
  return {
33
33
  formSchema,
@@ -1,5 +1,5 @@
1
- import type z from 'zod';
2
- import type { routeMiddlewareSchema } from '../../../../api/modules/middleware/route';
1
+ import type z from "zod";
2
+ import type { routeMiddlewareSchema } from "../../../../api/modules/middleware/route";
3
3
  export declare const PasswordResetForm: ({ captcha, }: {
4
4
  captcha: z.infer<typeof routeMiddlewareSchema>["captcha"];
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AA8C5E,eAAO,MAAM,iBAAiB,GAAI,cAE/B;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC3D,4CAuCA,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/form/form.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AA8C5E,eAAO,MAAM,iBAAiB,GAAI,cAE/B;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC3D,4CAuCA,CAAC"}
@@ -1,4 +1,4 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { MailCheckIcon } from "lucide-react";
4
4
  import { useTranslations } from "next-intl";
@@ -9,8 +9,8 @@ import { Input } from "../../../../components/ui/input.js";
9
9
  import { Label } from "../../../../components/ui/label.js";
10
10
  import { useForm } from "./use-form.js";
11
11
  function ConfirmationView({ email }) {
12
- const t = useTranslations('core.auth.reset_password');
13
- const tSignUp = useTranslations('core.auth.sign_up');
12
+ const t = useTranslations("core.auth.reset_password");
13
+ const tSignUp = useTranslations("core.auth.sign_up");
14
14
  return /*#__PURE__*/ _jsxs(_Fragment, {
15
15
  children: [
16
16
  /*#__PURE__*/ _jsxs(CardHeader, {
@@ -24,11 +24,11 @@ function ConfirmationView({ email }) {
24
24
  }),
25
25
  /*#__PURE__*/ _jsx(CardTitle, {
26
26
  className: "text-balance",
27
- children: t('confirmation.title')
27
+ children: t("confirmation.title")
28
28
  }),
29
29
  /*#__PURE__*/ _jsx(CardDescription, {
30
30
  className: "text-pretty",
31
- children: t('confirmation.desc')
31
+ children: t("confirmation.desc")
32
32
  })
33
33
  ]
34
34
  }),
@@ -37,7 +37,7 @@ function ConfirmationView({ email }) {
37
37
  children: [
38
38
  /*#__PURE__*/ _jsx(Label, {
39
39
  htmlFor: "email",
40
- children: tSignUp('email.label')
40
+ children: tSignUp("email.label")
41
41
  }),
42
42
  /*#__PURE__*/ _jsx(Input, {
43
43
  className: "w-full",
@@ -49,7 +49,7 @@ function ConfirmationView({ email }) {
49
49
  }),
50
50
  /*#__PURE__*/ _jsx(CardFooter, {
51
51
  children: /*#__PURE__*/ _jsx(CardDescription, {
52
- children: t('confirmation.check_spam')
52
+ children: t("confirmation.check_spam")
53
53
  })
54
54
  })
55
55
  ]
@@ -57,8 +57,8 @@ function ConfirmationView({ email }) {
57
57
  }
58
58
  export const PasswordResetForm = ({ captcha })=>{
59
59
  const { formSchema, onSubmit, sentEmail } = useForm();
60
- const t = useTranslations('core.auth.reset_password');
61
- const tSignUp = useTranslations('core.auth.sign_up');
60
+ const t = useTranslations("core.auth.reset_password");
61
+ const tSignUp = useTranslations("core.auth.sign_up");
62
62
  if (sentEmail) {
63
63
  return /*#__PURE__*/ _jsx(ConfirmationView, {
64
64
  email: sentEmail
@@ -71,11 +71,11 @@ export const PasswordResetForm = ({ captcha })=>{
71
71
  children: [
72
72
  /*#__PURE__*/ _jsx(CardTitle, {
73
73
  children: /*#__PURE__*/ _jsx("h1", {
74
- children: t('title')
74
+ children: t("title")
75
75
  })
76
76
  }),
77
77
  /*#__PURE__*/ _jsx(CardDescription, {
78
- children: t('desc')
78
+ children: t("desc")
79
79
  })
80
80
  ]
81
81
  }),
@@ -84,18 +84,18 @@ export const PasswordResetForm = ({ captcha })=>{
84
84
  captcha: captcha,
85
85
  fields: [
86
86
  {
87
- id: 'email',
87
+ id: "email",
88
88
  component: (props)=>/*#__PURE__*/ _jsx(AutoFormInput, {
89
89
  ...props,
90
- label: tSignUp('email.label')
90
+ label: tSignUp("email.label")
91
91
  })
92
92
  }
93
93
  ],
94
94
  formSchema: formSchema,
95
95
  onSubmit: onSubmit,
96
96
  submitButtonProps: {
97
- className: 'w-full',
98
- children: t('submit')
97
+ className: "w-full",
98
+ children: t("submit")
99
99
  }
100
100
  })
101
101
  })