@vitnode/core 1.2.0-canary.53 → 1.2.0-canary.55

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 (320) hide show
  1. package/dist/scripts/get-config.d.ts.map +1 -1
  2. package/dist/scripts/plugin.d.ts.map +1 -1
  3. package/dist/scripts/prepare-database.d.ts +0 -1
  4. package/dist/scripts/prepare-database.d.ts.map +1 -1
  5. package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
  6. package/dist/scripts/scripts.js +4 -4
  7. package/dist/scripts/shared/file-utils.d.ts.map +1 -1
  8. package/dist/src/api/adapters/cron/node-cron.adapter.d.ts +3 -0
  9. package/dist/src/api/adapters/cron/node-cron.adapter.d.ts.map +1 -0
  10. package/dist/src/api/adapters/cron/node-cron.adapter.js +11 -0
  11. package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
  12. package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
  13. package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
  14. package/dist/src/api/config.d.ts.map +1 -1
  15. package/dist/src/api/config.js +22 -9
  16. package/dist/src/api/lib/cron.d.ts +18 -0
  17. package/dist/src/api/lib/cron.d.ts.map +1 -0
  18. package/dist/src/api/lib/cron.js +22 -0
  19. package/dist/src/api/lib/logger-middleware.js +1 -1
  20. package/dist/src/api/lib/module.d.ts +4 -1
  21. package/dist/src/api/lib/module.d.ts.map +1 -1
  22. package/dist/src/api/lib/module.js +3 -2
  23. package/dist/src/api/lib/plugin.d.ts +2 -0
  24. package/dist/src/api/lib/plugin.d.ts.map +1 -1
  25. package/dist/src/api/lib/plugin.js +9 -1
  26. package/dist/src/api/lib/route.d.ts.map +1 -1
  27. package/dist/src/api/lib/with-pagination.d.ts +1 -1
  28. package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
  29. package/dist/src/api/middlewares/cron-auth.middleware.d.ts +3 -0
  30. package/dist/src/api/middlewares/cron-auth.middleware.d.ts.map +1 -0
  31. package/dist/src/api/middlewares/cron-auth.middleware.js +19 -0
  32. package/dist/src/api/middlewares/global.middleware.d.ts +8 -2
  33. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  34. package/dist/src/api/middlewares/global.middleware.js +33 -23
  35. package/dist/src/api/models/device.d.ts.map +1 -1
  36. package/dist/src/api/models/device.js +1 -1
  37. package/dist/src/api/models/email.d.ts.map +1 -1
  38. package/dist/src/api/models/email.js +1 -2
  39. package/dist/src/api/models/session-admin.d.ts.map +1 -1
  40. package/dist/src/api/models/session.d.ts.map +1 -1
  41. package/dist/src/api/models/sso.d.ts.map +1 -1
  42. package/dist/src/api/models/sso.js +1 -1
  43. package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
  44. package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
  45. package/dist/src/api/models/user/sign-up.d.ts +1 -1
  46. package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
  47. package/dist/src/api/models/user/sign-up.js +1 -0
  48. package/dist/src/api/models/user.d.ts +1 -1
  49. package/dist/src/api/models/user.d.ts.map +1 -1
  50. package/dist/src/api/modules/admin/admin.module.d.ts +163 -1
  51. package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
  52. package/dist/src/api/modules/admin/admin.module.js +6 -3
  53. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +164 -0
  54. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -0
  55. package/dist/src/api/modules/admin/advanced/advanced.admin.module.js +11 -0
  56. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts +164 -0
  57. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -0
  58. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.js +12 -0
  59. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts +98 -0
  60. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -0
  61. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.js +66 -0
  62. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts +70 -0
  63. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -0
  64. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.js +95 -0
  65. package/dist/src/api/modules/admin/debug/debug.admin.module.js +1 -1
  66. package/dist/src/api/modules/admin/debug/routes/logs.route.js +1 -1
  67. package/dist/src/api/modules/admin/routes/session.route.js +1 -1
  68. package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
  69. package/dist/src/api/modules/admin/users/routes/users.route.d.ts +3 -3
  70. package/dist/src/api/modules/admin/users/routes/users.route.js +1 -1
  71. package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
  72. package/dist/src/api/modules/cron/cron/clean.cron.d.ts +2 -0
  73. package/dist/src/api/modules/cron/cron/clean.cron.d.ts.map +1 -0
  74. package/dist/src/api/modules/cron/cron/clean.cron.js +24 -0
  75. package/dist/src/api/modules/cron/cron.module.d.ts +26 -0
  76. package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -0
  77. package/dist/src/api/modules/cron/cron.module.js +14 -0
  78. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +36 -0
  79. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -0
  80. package/dist/src/api/modules/cron/helpers/process-cron-jobs.js +72 -0
  81. package/dist/src/api/modules/cron/routes/cron.route.d.ts +27 -0
  82. package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -0
  83. package/dist/src/api/modules/cron/routes/cron.route.js +95 -0
  84. package/dist/src/api/modules/middleware/middleware.module.js +1 -1
  85. package/dist/src/api/modules/middleware/route.js +1 -1
  86. package/dist/src/api/modules/users/routes/change-password.route.js +1 -1
  87. package/dist/src/api/modules/users/routes/reset-passowrd.route.js +1 -1
  88. package/dist/src/api/modules/users/routes/session.route.js +1 -1
  89. package/dist/src/api/modules/users/routes/sign-in.route.js +1 -1
  90. package/dist/src/api/modules/users/routes/sign-out.route.js +1 -1
  91. package/dist/src/api/modules/users/routes/sign-up.route.js +1 -1
  92. package/dist/src/api/modules/users/routes/test.route.js +1 -1
  93. package/dist/src/api/modules/users/sso/routes/callback.route.js +1 -1
  94. package/dist/src/api/modules/users/sso/routes/create-url.route.js +1 -1
  95. package/dist/src/api/modules/users/sso/sso.module.js +1 -1
  96. package/dist/src/api/modules/users/users.module.js +1 -1
  97. package/dist/src/api/plugin.d.ts.map +1 -1
  98. package/dist/src/api/plugin.js +4 -2
  99. package/dist/src/app_admin/core/advanced/cron/page.d.ts +11 -0
  100. package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +1 -0
  101. package/dist/src/app_admin/core/advanced/cron/page.js +42 -0
  102. package/dist/src/app_admin/core/debug/page.js +1 -1
  103. package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
  104. package/dist/src/app_admin/core/users/page.js +1 -1
  105. package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +1 -1
  106. package/dist/src/components/confirm-action/content.d.ts.map +1 -1
  107. package/dist/src/components/confirm-action/content.js +1 -0
  108. package/dist/src/components/form/auto-form.d.ts.map +1 -1
  109. package/dist/src/components/form/auto-form.js +0 -1
  110. package/dist/src/components/form/fields/checkbox.d.ts +1 -1
  111. package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
  112. package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
  113. package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
  114. package/dist/src/components/form/fields/input.d.ts +1 -1
  115. package/dist/src/components/form/fields/input.d.ts.map +1 -1
  116. package/dist/src/components/form/fields/select.d.ts.map +1 -1
  117. package/dist/src/components/form/fields/switch.js +1 -1
  118. package/dist/src/components/switchers/langs/{language-swietcher.d.ts → language-switcher.d.ts} +1 -1
  119. package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
  120. package/dist/src/components/table/content.d.ts.map +1 -1
  121. package/dist/src/components/table/data-table.d.ts +1 -1
  122. package/dist/src/components/table/data-table.d.ts.map +1 -1
  123. package/dist/src/components/table/order-table-head.d.ts.map +1 -1
  124. package/dist/src/components/table/pagination.js +1 -1
  125. package/dist/src/components/tiptap/extension.d.ts +4 -0
  126. package/dist/src/components/tiptap/extension.d.ts.map +1 -0
  127. package/dist/src/components/tiptap/extension.js +33 -0
  128. package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts +2 -0
  129. package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts.map +1 -0
  130. package/dist/src/components/tiptap/toolbar/actions/alignment-action.js +91 -0
  131. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts +2 -0
  132. package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
  133. package/dist/src/components/tiptap/toolbar/actions/bold-action.js +39 -0
  134. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +2 -0
  135. package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -0
  136. package/dist/src/components/tiptap/toolbar/actions/headings-action.js +93 -0
  137. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +2 -0
  138. package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -0
  139. package/dist/src/components/tiptap/toolbar/actions/italic-action.js +38 -0
  140. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +2 -0
  141. package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -0
  142. package/dist/src/components/tiptap/toolbar/actions/list-action.js +61 -0
  143. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +2 -0
  144. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -0
  145. package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +59 -0
  146. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +2 -0
  147. package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -0
  148. package/dist/src/components/tiptap/toolbar/actions/underline-action.js +38 -0
  149. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +2 -0
  150. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -0
  151. package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +63 -0
  152. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +4 -0
  153. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -0
  154. package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.js +11 -0
  155. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +5 -0
  156. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -0
  157. package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +55 -0
  158. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts +9 -0
  159. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts.map +1 -0
  160. package/dist/src/components/tiptap/toolbar/use-toolbar-editor.js +5 -0
  161. package/dist/src/components/ui/accordion.d.ts +1 -1
  162. package/dist/src/components/ui/accordion.d.ts.map +1 -1
  163. package/dist/src/components/ui/alert.d.ts +1 -1
  164. package/dist/src/components/ui/alert.d.ts.map +1 -1
  165. package/dist/src/components/ui/badge.d.ts +1 -1
  166. package/dist/src/components/ui/badge.d.ts.map +1 -1
  167. package/dist/src/components/ui/button-client.d.ts.map +1 -1
  168. package/dist/src/components/ui/button-client.js +1 -1
  169. package/dist/src/components/ui/button.d.ts +2 -2
  170. package/dist/src/components/ui/button.d.ts.map +1 -1
  171. package/dist/src/components/ui/button.js +1 -1
  172. package/dist/src/components/ui/checkbox.d.ts +1 -1
  173. package/dist/src/components/ui/checkbox.d.ts.map +1 -1
  174. package/dist/src/components/ui/command.d.ts +1 -1
  175. package/dist/src/components/ui/command.d.ts.map +1 -1
  176. package/dist/src/components/ui/context-menu.d.ts +1 -1
  177. package/dist/src/components/ui/context-menu.d.ts.map +1 -1
  178. package/dist/src/components/ui/drawer.d.ts.map +1 -1
  179. package/dist/src/components/ui/dropdown-menu.d.ts +1 -1
  180. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
  181. package/dist/src/components/ui/editor-content.d.ts +4 -0
  182. package/dist/src/components/ui/editor-content.d.ts.map +1 -0
  183. package/dist/src/components/ui/editor-content.js +10 -0
  184. package/dist/src/components/ui/editor.d.ts +6 -0
  185. package/dist/src/components/ui/editor.d.ts.map +1 -0
  186. package/dist/src/components/ui/editor.js +35 -0
  187. package/dist/src/components/ui/form.d.ts.map +1 -1
  188. package/dist/src/components/ui/hover-card.d.ts +1 -1
  189. package/dist/src/components/ui/hover-card.d.ts.map +1 -1
  190. package/dist/src/components/ui/label.d.ts +1 -1
  191. package/dist/src/components/ui/label.d.ts.map +1 -1
  192. package/dist/src/components/ui/menubar.d.ts +1 -1
  193. package/dist/src/components/ui/menubar.d.ts.map +1 -1
  194. package/dist/src/components/ui/navigation-menu.d.ts +1 -1
  195. package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
  196. package/dist/src/components/ui/popover.d.ts +1 -1
  197. package/dist/src/components/ui/popover.d.ts.map +1 -1
  198. package/dist/src/components/ui/progress.d.ts +1 -1
  199. package/dist/src/components/ui/progress.d.ts.map +1 -1
  200. package/dist/src/components/ui/radio-group.d.ts +1 -1
  201. package/dist/src/components/ui/radio-group.d.ts.map +1 -1
  202. package/dist/src/components/ui/scroll-area.d.ts +6 -0
  203. package/dist/src/components/ui/scroll-area.d.ts.map +1 -0
  204. package/dist/src/components/ui/scroll-area.js +33 -0
  205. package/dist/src/components/ui/select.d.ts +1 -1
  206. package/dist/src/components/ui/select.d.ts.map +1 -1
  207. package/dist/src/components/ui/separator.d.ts +1 -1
  208. package/dist/src/components/ui/separator.d.ts.map +1 -1
  209. package/dist/src/components/ui/sheet.d.ts +1 -1
  210. package/dist/src/components/ui/sheet.d.ts.map +1 -1
  211. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  212. package/dist/src/components/ui/sidebar.js +14 -15
  213. package/dist/src/components/ui/sonner.d.ts.map +1 -1
  214. package/dist/src/components/ui/switch.d.ts +1 -1
  215. package/dist/src/components/ui/switch.d.ts.map +1 -1
  216. package/dist/src/components/ui/table.js +1 -1
  217. package/dist/src/components/ui/tabs.d.ts +1 -1
  218. package/dist/src/components/ui/tabs.d.ts.map +1 -1
  219. package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
  220. package/dist/src/components/ui/toggle.d.ts +1 -1
  221. package/dist/src/components/ui/toggle.d.ts.map +1 -1
  222. package/dist/src/components/ui/toggle.js +1 -1
  223. package/dist/src/components/ui/tooltip.d.ts +5 -2
  224. package/dist/src/components/ui/tooltip.d.ts.map +1 -1
  225. package/dist/src/components/ui/tooltip.js +18 -2
  226. package/dist/src/database/cron.d.ts +171 -0
  227. package/dist/src/database/cron.d.ts.map +1 -0
  228. package/dist/src/database/cron.js +22 -0
  229. package/dist/src/database/users.d.ts +2 -2
  230. package/dist/src/database/users.js +1 -1
  231. package/dist/src/drizzle.config.d.ts.map +1 -1
  232. package/dist/src/drizzle.config.js +1 -1
  233. package/dist/src/emails/default-template.d.ts.map +1 -1
  234. package/dist/src/emails/default-template.js +20 -21
  235. package/dist/src/hooks/use-captcha.d.ts +20 -0
  236. package/dist/src/hooks/use-captcha.d.ts.map +1 -1
  237. package/dist/src/hooks/use-captcha.js +19 -18
  238. package/dist/src/hooks/use-mobile.d.ts.map +1 -1
  239. package/dist/src/hooks/use-mobile.js +1 -0
  240. package/dist/src/lib/api/get-next-cron-run-date.d.ts +2 -0
  241. package/dist/src/lib/api/get-next-cron-run-date.d.ts.map +1 -0
  242. package/dist/src/lib/api/get-next-cron-run-date.js +14 -0
  243. package/dist/src/lib/api/get-next-cron-run-date.test.d.ts +2 -0
  244. package/dist/src/lib/api/get-next-cron-run-date.test.d.ts.map +1 -0
  245. package/dist/src/lib/api/get-next-cron-run-date.test.js +55 -0
  246. package/dist/src/lib/api/should-cron-job-run.d.ts +2 -0
  247. package/dist/src/lib/api/should-cron-job-run.d.ts.map +1 -0
  248. package/dist/src/lib/api/should-cron-job-run.js +16 -0
  249. package/dist/src/lib/api/should-cron-job-run.test.d.ts +2 -0
  250. package/dist/src/lib/api/should-cron-job-run.test.d.ts.map +1 -0
  251. package/dist/src/lib/api/should-cron-job-run.test.js +213 -0
  252. package/dist/src/lib/config.d.ts +1 -0
  253. package/dist/src/lib/config.d.ts.map +1 -1
  254. package/dist/src/lib/config.js +7 -5
  255. package/dist/src/lib/ctrl-or-command-character.d.ts +2 -0
  256. package/dist/src/lib/ctrl-or-command-character.d.ts.map +1 -0
  257. package/dist/src/lib/ctrl-or-command-character.js +5 -0
  258. package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
  259. package/dist/src/lib/fetcher/core.d.ts.map +1 -1
  260. package/dist/src/lib/fetcher/core.js +1 -2
  261. package/dist/src/lib/fetcher-client.d.ts.map +1 -1
  262. package/dist/src/lib/fetcher.d.ts.map +1 -1
  263. package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
  264. package/dist/src/lib/helpers/auto-form.js +0 -1
  265. package/dist/src/lib/navigation.d.ts +2 -2
  266. package/dist/src/lib/navigation.d.ts.map +1 -1
  267. package/dist/src/lib/tiptap/toolbar/actions/bold-action.d.ts +1 -0
  268. package/dist/src/lib/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
  269. package/dist/src/lib/tiptap/toolbar/actions/bold-action.js +0 -0
  270. package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
  271. package/dist/src/views/admin/layouts/admin-layout.js +5 -2
  272. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
  273. package/dist/src/views/admin/layouts/sidebar/nav/item.js +0 -3
  274. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
  275. package/dist/src/views/admin/layouts/sidebar/nav/nav.js +12 -1
  276. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
  277. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts +5 -0
  278. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -0
  279. package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +97 -0
  280. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts +4 -0
  281. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts.map +1 -0
  282. package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.js +23 -0
  283. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +4 -0
  284. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -0
  285. package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.js +38 -0
  286. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
  287. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts.map +1 -1
  288. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +12 -21
  289. package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
  290. package/dist/src/views/admin/views/core/test.js +116 -106
  291. package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
  292. package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
  293. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
  294. package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
  295. package/dist/src/views/auth/sign-up/components/password-input.js +2 -1
  296. package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
  297. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
  298. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
  299. package/dist/src/views/auth/sign-up/wrapper.js +6 -3
  300. package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
  301. package/dist/src/views/error/global-error-view.d.ts.map +1 -1
  302. package/dist/src/views/error/global-error-view.js +2 -1
  303. package/dist/src/views/layouts/provider.d.ts.map +1 -1
  304. package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
  305. package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
  306. package/dist/src/views/layouts/theme/header/header.js +1 -1
  307. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
  308. package/dist/src/vitnode.config.d.ts +2 -0
  309. package/dist/src/vitnode.config.d.ts.map +1 -1
  310. package/dist/src/vitnode.config.js +0 -1
  311. package/dist/tsconfig.tsbuildinfo +1 -1
  312. package/eslint.config.mjs +17 -0
  313. package/package.json +37 -27
  314. package/src/app_admin/core/advanced/cron/page.tsx +42 -0
  315. package/src/app_admin/core/debug/page.tsx +1 -1
  316. package/src/app_admin/core/users/page.tsx +2 -1
  317. package/src/locales/en.json +51 -0
  318. package/src/tiptap.css +28 -0
  319. package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +0 -1
  320. /package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +0 -0
@@ -35,7 +35,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
35
35
  isActive: isActive,
36
36
  tooltip: title,
37
37
  children: /*#__PURE__*/ _jsx(Link, {
38
- className: cn("relative", isActive && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
39
38
  href: href,
40
39
  onClick: ()=>{
41
40
  if (isMobile) {
@@ -58,7 +57,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
58
57
  /*#__PURE__*/ _jsx(CollapsibleTrigger, {
59
58
  asChild: true,
60
59
  children: /*#__PURE__*/ _jsxs(SidebarMenuButton, {
61
- className: cn("relative", (isActive || hasActiveChild) && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
62
60
  isActive: isActive || hasActiveChild,
63
61
  tooltip: title,
64
62
  children: [
@@ -79,7 +77,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
79
77
  asChild: true,
80
78
  isActive: isChildActive,
81
79
  children: /*#__PURE__*/ _jsx(Link, {
82
- className: cn("relative", isChildActive && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
83
80
  href: item.href,
84
81
  onClick: ()=>{
85
82
  if (isMobile) {
@@ -1 +1 @@
1
- {"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/layouts/sidebar/nav/nav.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAU,gBAEnC;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,uDA0CA,CAAC"}
1
+ {"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/layouts/sidebar/nav/nav.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAU,gBAEnC;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,uDAqDA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LayoutDashboardIcon, UsersRoundIcon } from "lucide-react";
2
+ import { LayoutDashboardIcon, UsersRoundIcon, WrenchIcon } from "lucide-react";
3
3
  import { getTranslations } from "next-intl/server";
4
4
  import { SidebarGroup, SidebarGroupLabel, SidebarMenu } from "../../../../../components/ui/sidebar.js";
5
5
  import { ItemNavAdmin } from "./item.js";
@@ -29,6 +29,17 @@ export const NavSidebarAdmin = async ({ pluginNav })=>{
29
29
  href: "/admin/core/test"
30
30
  }
31
31
  ]
32
+ },
33
+ {
34
+ href: "/admin/core/advanced",
35
+ title: t("advanced.title"),
36
+ icon: /*#__PURE__*/ _jsx(WrenchIcon, {}),
37
+ items: [
38
+ {
39
+ title: t("advanced.cron"),
40
+ href: "/admin/core/advanced/cron"
41
+ }
42
+ ]
32
43
  }
33
44
  ]
34
45
  },
@@ -1 +1 @@
1
- {"version":3,"file":"user-bar.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/layouts/user-bar/user-bar.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAI1E,eAAO,MAAM,YAAY,GAAI,WAE1B,IAAI,CACL,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,EAC3D,MAAM,CACP,4CAkBA,CAAC"}
1
+ {"version":3,"file":"user-bar.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/layouts/user-bar/user-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAY1E,eAAO,MAAM,YAAY,GAAI,WAE1B,IAAI,CACL,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,EAC3D,MAAM,CACP,4CAkBA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type SearchParamsDataTable } from "../../../../../../components/table/data-table";
2
+ export declare const CronTableView: ({ searchParams, }: {
3
+ searchParams: Promise<SearchParamsDataTable>;
4
+ }) => Promise<import("react/jsx-runtime").JSX.Element>;
5
+ //# sourceMappingURL=cron-table-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron-table-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/views/admin/views/core/advanced/cron/cron-table-view.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AAKvC,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC9C,qDA8EA,CAAC"}
@@ -0,0 +1,97 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getTranslations } from "next-intl/server";
3
+ import { cronAdminModule } from "../../../../../../api/modules/admin/advanced/cron/cron.admin.module.js";
4
+ import { DateFormat } from "../../../../../../components/date-format.js";
5
+ import { DataTable } from "../../../../../../components/table/data-table.js";
6
+ import { fetcher } from "../../../../../../lib/fetcher.js";
7
+ import { RunActionCronTable } from "./run-action/run-action.js";
8
+ export const CronTableView = async ({ searchParams })=>{
9
+ const query = await searchParams;
10
+ const res = await fetcher(cronAdminModule, {
11
+ path: "/",
12
+ method: "get",
13
+ module: "cron",
14
+ prefixPath: "/admin/advanced",
15
+ args: {
16
+ query
17
+ },
18
+ withPagination: true
19
+ });
20
+ const [data, t] = await Promise.all([
21
+ res.json(),
22
+ getTranslations("admin.advanced.cron")
23
+ ]);
24
+ return /*#__PURE__*/ _jsx(DataTable, {
25
+ columns: [
26
+ {
27
+ id: "name",
28
+ label: t("list.name"),
29
+ cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
30
+ className: "flex max-w-sm flex-col",
31
+ children: [
32
+ /*#__PURE__*/ _jsx("span", {
33
+ children: row.name
34
+ }),
35
+ /*#__PURE__*/ _jsx("p", {
36
+ className: "text-muted-foreground text-sm",
37
+ children: row.description
38
+ })
39
+ ]
40
+ })
41
+ },
42
+ {
43
+ id: "pluginId",
44
+ label: t("list.pluginId")
45
+ },
46
+ {
47
+ id: "module",
48
+ label: t("list.module")
49
+ },
50
+ {
51
+ id: "schedule",
52
+ label: t("list.schedule")
53
+ },
54
+ {
55
+ id: "lastRun",
56
+ label: t("list.lastRun.title"),
57
+ cell: ({ row })=>row.lastRun ? /*#__PURE__*/ _jsx(DateFormat, {
58
+ date: row.lastRun
59
+ }) : /*#__PURE__*/ _jsx("span", {
60
+ className: "text-muted-foreground italic",
61
+ children: t("list.lastRun.never")
62
+ })
63
+ },
64
+ {
65
+ id: "nextRun",
66
+ label: t("list.nextRun.title"),
67
+ cell: ({ row })=>row.nextRun ? /*#__PURE__*/ _jsx(DateFormat, {
68
+ date: row.nextRun,
69
+ showFullDate: true
70
+ }) : /*#__PURE__*/ _jsx("span", {
71
+ className: "text-muted-foreground italic",
72
+ children: t("list.nextRun.never")
73
+ })
74
+ },
75
+ {
76
+ id: "actions",
77
+ label: "",
78
+ cell: ({ row })=>/*#__PURE__*/ _jsx(RunActionCronTable, {
79
+ id: row.id
80
+ })
81
+ }
82
+ ],
83
+ edges: data.edges,
84
+ order: {
85
+ columns: [
86
+ "lastRun",
87
+ "createdAt",
88
+ "nextRun"
89
+ ],
90
+ defaultOrder: {
91
+ column: "lastRun",
92
+ order: "desc"
93
+ }
94
+ },
95
+ pageInfo: data.pageInfo
96
+ });
97
+ };
@@ -0,0 +1,4 @@
1
+ export declare const mutationApi: (id: number) => Promise<{
2
+ error: string;
3
+ } | undefined>;
4
+ //# sourceMappingURL=mutation-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/advanced/cron/run-action/mutation-api.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAU,IAAI,MAAM;;cAkB3C,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use server";
2
+ import { revalidatePath } from "next/cache";
3
+ import { cronAdminModule } from "../../../../../../../api/modules/admin/advanced/cron/cron.admin.module.js";
4
+ import { fetcher } from "../../../../../../../lib/fetcher.js";
5
+ export const mutationApi = async (id)=>{
6
+ const res = await fetcher(cronAdminModule, {
7
+ path: "/{id}",
8
+ method: "post",
9
+ module: "cron",
10
+ prefixPath: "/admin/advanced",
11
+ args: {
12
+ params: {
13
+ id: id.toString()
14
+ }
15
+ }
16
+ });
17
+ if (!res.ok) {
18
+ return {
19
+ error: "Failed to run cron job"
20
+ };
21
+ }
22
+ revalidatePath("[locale]/admin/(auth)/(plugins)/(vitnode-core)/core/advanced/cron");
23
+ };
@@ -0,0 +1,4 @@
1
+ export declare const RunActionCronTable: ({ id }: {
2
+ id: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=run-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/advanced/cron/run-action/run-action.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,kBAAkB,GAAI,QAAQ;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,4CAgCxD,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { PlayIcon } from "lucide-react";
4
+ import { useTranslations } from "next-intl";
5
+ import { useActionState } from "react";
6
+ import { toast } from "sonner";
7
+ import { Button } from "../../../../../../../components/ui/button.js";
8
+ import { TooltipWithContent } from "../../../../../../../components/ui/tooltip.js";
9
+ import { mutationApi } from "./mutation-api.js";
10
+ export const RunActionCronTable = ({ id })=>{
11
+ const t = useTranslations("admin.advanced.cron.list.actions.runNow");
12
+ const tError = useTranslations("core.global.errors");
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ const [_, formAction, isPending] = useActionState(async ()=>{
15
+ const mutation = await mutationApi(id);
16
+ if (mutation?.error) {
17
+ toast.error(tError("title"), {
18
+ description: tError("internal_server_error")
19
+ });
20
+ return;
21
+ }
22
+ toast.success(t("success"));
23
+ }, null);
24
+ return /*#__PURE__*/ _jsx("form", {
25
+ action: formAction,
26
+ children: /*#__PURE__*/ _jsx(TooltipWithContent, {
27
+ text: t("label"),
28
+ children: /*#__PURE__*/ _jsx(Button, {
29
+ "aria-label": t("label"),
30
+ isLoading: isPending,
31
+ size: "icon",
32
+ type: "submit",
33
+ variant: "ghost",
34
+ children: /*#__PURE__*/ _jsx(PlayIcon, {})
35
+ })
36
+ })
37
+ });
38
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/content.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,eAAO,MAAM,2BAA2B,GAAI,mGAYzC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,4CAiLhE,CAAC"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/content.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKhE,eAAO,MAAM,2BAA2B,GAAI,mGAYzC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,4CAiLhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"more.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/more.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,2BAA2B,CAAC,4CAsChE,CAAC"}
1
+ {"version":3,"file":"more.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/more.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,2BAA2B,CAAC,4CAiChE,CAAC"}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { SearchIcon } from "lucide-react";
4
- import dynamic from "next/dynamic";
5
4
  import { useTranslations } from "next-intl";
5
+ import dynamic from "next/dynamic";
6
6
  import React from "react";
7
7
  import { Button } from "../../../../../../../../components/ui/button.js";
8
8
  import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "../../../../../../../../components/ui/dialog.js";
9
9
  import { Loader } from "../../../../../../../../components/ui/loader.js";
10
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../../../../../../components/ui/tooltip.js";
10
+ import { TooltipWithContent } from "../../../../../../../../components/ui/tooltip.js";
11
11
  const ContentMoreActionSystemLogs = dynamic(async ()=>import("./content.js").then((module)=>({
12
12
  default: module.ContentMoreActionSystemLogs
13
13
  })));
@@ -15,25 +15,16 @@ export const MoreActionSystemLogs = (props)=>{
15
15
  const t = useTranslations("admin.debug.logs.more");
16
16
  return /*#__PURE__*/ _jsxs(Dialog, {
17
17
  children: [
18
- /*#__PURE__*/ _jsx(TooltipProvider, {
19
- children: /*#__PURE__*/ _jsxs(Tooltip, {
20
- children: [
21
- /*#__PURE__*/ _jsx(TooltipTrigger, {
22
- asChild: true,
23
- children: /*#__PURE__*/ _jsx(DialogTrigger, {
24
- asChild: true,
25
- children: /*#__PURE__*/ _jsx(Button, {
26
- "aria-label": t("title"),
27
- size: "icon",
28
- variant: "ghost",
29
- children: /*#__PURE__*/ _jsx(SearchIcon, {})
30
- })
31
- })
32
- }),
33
- /*#__PURE__*/ _jsx(TooltipContent, {
34
- children: t("title")
35
- })
36
- ]
18
+ /*#__PURE__*/ _jsx(TooltipWithContent, {
19
+ text: t("title"),
20
+ children: /*#__PURE__*/ _jsx(DialogTrigger, {
21
+ asChild: true,
22
+ children: /*#__PURE__*/ _jsx(Button, {
23
+ "aria-label": t("title"),
24
+ size: "icon",
25
+ variant: "ghost",
26
+ children: /*#__PURE__*/ _jsx(SearchIcon, {})
27
+ })
37
28
  })
38
29
  }),
39
30
  /*#__PURE__*/ _jsxs(DialogContent, {
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/views/core/test.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,QAAQ,+CA0JpB,CAAC"}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/views/core/test.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,QAAQ,+CA6JpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
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,6 +10,8 @@ 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, {
@@ -39,113 +41,121 @@ export const TestView = ()=>{
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
+ // eslint-disable-next-line no-console
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
- // biome-ignore lint/suspicious/noConsole: <needed>
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":"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"}
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 +1 @@
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
+ {"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 +1 @@
1
- {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/mutation-api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GACtB,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;cA6BF,CAAC"}
1
+ {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GACtB,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;cA6BF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/components/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQ9C,eAAO,MAAM,aAAa,GAAI,2FAM3B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,CAAC,4CA+EjD,CAAC"}
1
+ {"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/components/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQ9C,eAAO,MAAM,aAAa,GAAI,2FAO3B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,CAAC,4CA+EjD,CAAC"}
@@ -6,7 +6,8 @@ import { AutoFormLabel } from "../../../../components/form/common/label.js";
6
6
  import { FormControl, FormItem, FormMessage } from "../../../../components/ui/form.js";
7
7
  import { Input } from "../../../../components/ui/input.js";
8
8
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../../components/ui/tooltip.js";
9
- export const PasswordInput = ({ label, description: _, field, otherProps: { maxLength, minLength, pattern }, ...props })=>{
9
+ export const PasswordInput = ({ label, // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
+ description: _, field, otherProps: { maxLength, minLength, pattern }, ...props })=>{
10
11
  const t = useTranslations("core.auth.sign_up");
11
12
  const [openTooltip, setOpenTooltip] = React.useState(false);
12
13
  const value = field.value ?? "";
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAc5E,eAAO,MAAM,UAAU,GAAI,uBAGxB;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,EAAE,OAAO,CAAC;CAClB,4CAuFA,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAc5E,eAAO,MAAM,UAAU,GAAI,uBAGxB;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,EAAE,OAAO,CAAC;CAClB,4CAuFA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GAAU,4BAG/B,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;EAuB5D,CAAC"}
1
+ {"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GAAU,4BAG/B,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;EAuB5D,CAAC"}