@baseplate-dev/plugin-auth 0.6.17 → 0.6.19

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 (294) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
  6. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
  7. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
  10. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
  11. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
  12. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
  13. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  14. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
  15. package/dist/better-auth/core/node.js +7 -8
  16. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
  17. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
  18. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
  19. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
  20. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
  21. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
  22. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
  23. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
  24. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
  25. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
  26. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
  27. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
  28. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
  29. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
  30. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
  31. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
  32. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
  33. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
  34. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
  35. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
  36. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
  37. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
  38. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +37 -0
  39. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +222 -0
  40. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +37 -0
  41. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +370 -0
  42. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
  43. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +77 -2
  44. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +38 -1
  45. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
  46. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
  47. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +38 -1
  48. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +38 -1
  49. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
  50. package/dist/local-auth/admin/common.js +6 -0
  51. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +593 -0
  52. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
  53. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +602 -0
  54. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
  55. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
  56. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
  57. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +307 -0
  58. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
  59. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +294 -0
  60. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
  61. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
  62. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
  63. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
  64. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +68 -0
  65. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
  66. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
  67. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
  68. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
  69. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
  70. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
  71. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
  72. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
  73. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
  74. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
  75. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
  76. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
  77. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  78. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
  79. package/dist/local-auth/admin/node.js +13 -0
  80. package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
  81. package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
  82. package/dist/local-auth/admin/web.js +8 -0
  83. package/dist/local-auth/core/common.js +7 -2
  84. package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
  85. package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
  86. package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
  87. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +16 -7
  88. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +73 -16
  89. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +222 -7
  90. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  91. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  92. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +27 -0
  93. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +71 -4
  94. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
  95. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
  96. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +226 -10
  97. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +91 -7
  98. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
  99. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
  100. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
  101. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
  102. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
  103. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
  104. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
  105. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
  106. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
  107. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
  108. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
  109. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
  110. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
  111. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
  112. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
  113. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
  114. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
  115. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
  116. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
  117. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
  118. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +142 -0
  119. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +221 -0
  120. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +5 -6
  121. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -5
  122. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
  123. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
  124. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
  125. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
  126. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
  127. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
  128. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
  129. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
  130. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
  131. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
  132. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
  133. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
  134. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
  135. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
  136. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
  137. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
  138. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
  139. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
  140. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
  141. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
  142. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
  143. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
  144. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
  145. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
  146. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
  147. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
  148. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
  149. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
  150. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
  151. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +23 -7
  152. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +7 -26
  153. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +65 -4
  154. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -1
  155. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -1
  156. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +22 -1
  157. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +19 -2
  158. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +10 -0
  159. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +7 -0
  160. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +42 -4
  161. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +24 -13
  162. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
  163. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
  164. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
  165. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +67 -0
  166. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +140 -0
  167. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +191 -0
  168. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
  169. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
  170. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +39 -0
  171. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
  172. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1089 -268
  173. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
  174. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
  175. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +49 -0
  176. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
  177. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
  178. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
  179. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +918 -283
  180. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
  181. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
  182. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
  183. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
  184. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
  185. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +155 -0
  186. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +274 -0
  187. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
  188. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
  190. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
  191. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +312 -0
  192. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +5 -5
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +6 -12
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
  199. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
  200. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +90 -7
  201. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +38 -1
  202. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
  203. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
  204. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +102 -12
  205. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
  206. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +54 -1
  207. package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
  208. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
  209. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
  210. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
  211. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
  212. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
  213. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
  214. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
  215. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
  216. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
  217. package/dist/local-auth/core/node.js +30 -12
  218. package/dist/local-auth/core/schema/migrations.d.ts +3 -0
  219. package/dist/local-auth/core/schema/migrations.js +36 -0
  220. package/dist/local-auth/core/schema/models.js +8 -0
  221. package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
  222. package/dist/local-auth/core/schema/plugin-definition.js +1 -0
  223. package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
  224. package/dist/local-auth/core/schema/web-app-schema.js +16 -0
  225. package/dist/local-auth/core/web.js +8 -1
  226. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
  227. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
  228. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
  229. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
  230. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
  231. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
  232. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
  233. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
  234. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
  235. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
  236. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
  237. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
  238. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
  239. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
  240. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
  241. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
  242. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +42 -34
  243. package/dist/web/assets/{dist-DY7ZXvq4.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +16857 -381
  244. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +90 -38
  245. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +4095 -2399
  246. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +212 -57
  247. package/dist/web/assets/auth-DR6QxrAW.js +1 -0
  248. package/dist/web/assets/{common-iHaemino.js → common-BsyRiQi3.js} +6 -6
  249. package/dist/web/assets/{common-TDf_PrjX.js → common-CRwNlCMn.js} +10 -10
  250. package/dist/web/assets/{common-ByxS61u8.js → common-CvqlRZC9.js} +12 -12
  251. package/dist/web/assets/common-D3atSs7O.js +70 -0
  252. package/dist/web/assets/common-DuFyXa6l.js +36 -0
  253. package/dist/web/assets/common-islduJTj.js +43 -0
  254. package/dist/web/assets/{dist-CrLSslv6.js → dist-DQd1TAJX.js} +273 -132
  255. package/dist/web/assets/{get-auth-plugin-definition-kDCtXq_6.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
  256. package/dist/web/assets/{hostInit-Cruek6c6.js → hostInit-DNA4kLRY.js} +32 -5
  257. package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-ea77c09b.js} +2 -1
  258. package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-9dee3d8d.js} +3 -2
  259. package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-3179040b.js} +3 -2
  260. package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-370d200d.js} +3 -2
  261. package/dist/web/assets/{models-DSvs_3bA.js → models-BOeSYfRn.js} +4 -5
  262. package/dist/web/assets/{models-BZmCbizK.js → models-DF6DoXt6.js} +11 -6
  263. package/dist/web/assets/{plugin-definition-CYj29S3q.js → plugin-definition--k0VAeK3.js} +9 -10
  264. package/dist/web/assets/plugin-definition-CMwSlxsJ.js +10 -0
  265. package/dist/web/assets/{styles-yjbHBTlw.js → styles-BQEcQHoR.js} +9 -10
  266. package/dist/web/assets/{virtualExposes-CbPBmicF.js → virtualExposes-C7fDiAmS.js} +1 -1
  267. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js +747 -0
  268. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
  269. package/dist/web/assets/web-8wz0ad-V.js +59 -0
  270. package/dist/web/assets/{web-CXAHKjIY.js → web-BGixH_gT.js} +27 -27
  271. package/dist/web/assets/{web-1eTcxMhf.js → web-BxIwkN3O.js} +6 -6
  272. package/dist/web/assets/{web-VqBA3jxZ.js → web-CQMfABjr.js} +24 -24
  273. package/dist/web/assets/{web-CDAKPPK9.js → web-CcNpItSu.js} +22 -22
  274. package/dist/web/assets/web-CypPeiVv.js +148 -0
  275. package/dist/web/assets/{web-D0MSKfyv.js → web-CzK_la2_.js} +53 -53
  276. package/dist/web/index.html +5 -5
  277. package/dist/web/remoteEntry.js +1 -1
  278. package/package.json +14 -14
  279. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
  280. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
  281. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
  282. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js +0 -384
  283. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js +0 -13566
  284. package/dist/web/assets/auth-BxAE0rgh.js +0 -1
  285. package/dist/web/assets/common-CKl_XlvH.js +0 -37
  286. package/dist/web/assets/common-UpVCKZeW.js +0 -41
  287. package/dist/web/assets/common-crSwCD36.js +0 -37
  288. package/dist/web/assets/model-utils-C0WDb_Ec.js +0 -1599
  289. package/dist/web/assets/plugin-definition-DOMmPL2Z.js +0 -11
  290. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js +0 -259
  291. package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js +0 -129
  292. package/dist/web/assets/web-DbeAaDTV.js +0 -118
  293. package/dist/web/assets/web-miDovYk_.js +0 -46
  294. package/dist/web/remoteEntry.ssr.js +0 -43
@@ -0,0 +1,148 @@
1
+ import { Q as __mf_2, Z as __mf_1, d as __mf_202, f as __mf_203, g as __mf_207, h as __mf_206, i as __mf_166, m as __mf_205, mt as __mf_34, p as __mf_204, t as __mf_128, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, y as __mf_262 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
2
+ import { T as __mf_74, _ as __mf_244, f as __mf_18, g as __mf_240, h as __mf_24, w as __mf_72, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
3
+ import { c as __mf_25, i as __mf_15, l as __mf_26, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
4
+ import { n as a, t as AuthConfigTabs } from "./styles-BQEcQHoR.js";
5
+ import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-BgWWHl_Y.js";
6
+ import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-DF6DoXt6.js";
7
+ //#region src/local-auth/core/components/local-auth-definition-editor.tsx
8
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
9
+ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
10
+ const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
11
+ const authPluginDefinitionSchema = __mf_11(createLocalAuthPluginDefinitionSchema);
12
+ const authDefinition = getAuthPluginDefinition(definition);
13
+ const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
14
+ label: role.name,
15
+ value: role.id
16
+ }));
17
+ const defaultValues = __mf_34(() => {
18
+ if (pluginMetadata?.config) return pluginMetadata.config;
19
+ return {
20
+ additionalUserAdminRoles: [],
21
+ requireNameOnRegistration: false,
22
+ emailOtp: false
23
+ };
24
+ }, [pluginMetadata?.config]);
25
+ const form = __mf_15({
26
+ resolver: a(authPluginDefinitionSchema),
27
+ defaultValues
28
+ });
29
+ const { control, reset, handleSubmit } = form;
30
+ const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
31
+ if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
32
+ const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
33
+ if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
34
+ const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
35
+ const diff = __mf_34(() => __mf_240(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
36
+ const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
37
+ const updatedData = { ...data };
38
+ __mf_244(definitionContainer, partialDef)(draftConfig);
39
+ __mf_24.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
40
+ }, {
41
+ successMessage: "Successfully saved auth plugin!",
42
+ onSuccess: () => {
43
+ onSave();
44
+ }
45
+ }));
46
+ __mf_7({
47
+ control,
48
+ reset,
49
+ onSubmit
50
+ });
51
+ return /* @__PURE__ */ __mf_2("div", {
52
+ className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
53
+ children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
54
+ className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
55
+ style: { "--action-bar-height": "52px" },
56
+ children: /* @__PURE__ */ __mf_2("form", {
57
+ onSubmit,
58
+ className: "auth:max-w-6xl auth:flex-1",
59
+ children: [/* @__PURE__ */ __mf_1("div", {
60
+ className: "auth:pb-16",
61
+ children: /* @__PURE__ */ __mf_2(__mf_202, { children: [
62
+ /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
63
+ className: "auth:space-y-6",
64
+ children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
65
+ })] }),
66
+ /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
67
+ className: "auth:space-y-6",
68
+ children: /* @__PURE__ */ __mf_1(__mf_166, {
69
+ label: "Additional User Admin Roles",
70
+ name: "additionalUserAdminRoles",
71
+ control,
72
+ options: roles,
73
+ description: "Additional roles (beyond admin) that can manage users and assign roles."
74
+ })
75
+ })] }),
76
+ /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
77
+ className: "auth:space-y-6",
78
+ children: /* @__PURE__ */ __mf_1(__mf_262, {
79
+ label: "Require Name on Registration",
80
+ name: "requireNameOnRegistration",
81
+ control,
82
+ description: "When enabled, users must provide their name when registering."
83
+ })
84
+ })] }),
85
+ /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "Sign-in Methods" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "Choose how users can sign in, in addition to email and password." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
86
+ className: "auth:space-y-6",
87
+ children: /* @__PURE__ */ __mf_1(__mf_262, {
88
+ label: "Email Sign-in Codes",
89
+ name: "emailOtp",
90
+ control,
91
+ description: "When enabled, users can sign in with a single-use code emailed to them instead of a password. Signing in with a code creates an account if the address is new."
92
+ })
93
+ })] })
94
+ ] })
95
+ }), /* @__PURE__ */ __mf_1(__mf_128, {
96
+ form,
97
+ allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
98
+ })]
99
+ })
100
+ })]
101
+ });
102
+ }
103
+ //#endregion
104
+ //#region src/local-auth/core/components/local-auth-web-app-settings-form.tsx
105
+ /**
106
+ * Renders the local-auth per-app settings (disable registration toggle) in
107
+ * the web app settings page. Bound to `pluginData[pluginKey]` on the shared
108
+ * web app form.
109
+ */
110
+ function LocalAuthWebAppSettingsForm({ formProps, pluginKey }) {
111
+ return /* @__PURE__ */ __mf_1(__mf_262, {
112
+ label: "Disable Registration",
113
+ description: "When enabled, this site's sign-up page and link are hidden so users can only be added via an invite.",
114
+ control: formProps.control,
115
+ name: `pluginData.${pluginKey}.disableRegistration`
116
+ });
117
+ }
118
+ //#endregion
119
+ //#region src/local-auth/core/web.ts
120
+ var AUTH_FEATURE_NAME = "accounts/auth";
121
+ var ACCOUNTS_FEATURE_NAME = "accounts/users";
122
+ var web_default = __mf_56({
123
+ name: "web",
124
+ dependencies: {
125
+ webConfig: __mf_74,
126
+ pluginDefaults: __mf_72,
127
+ webAppSchemaExtensionWeb: __mf_26
128
+ },
129
+ initialize: ({ webConfig, pluginDefaults, webAppSchemaExtensionWeb }, { pluginKey }) => {
130
+ webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
131
+ webAppSchemaExtensionWeb.configs.set(pluginKey, __mf_25({
132
+ pluginKey,
133
+ Form: LocalAuthWebAppSettingsForm
134
+ }));
135
+ pluginDefaults.builders.set(pluginKey, ({ draft }) => {
136
+ __mf_18.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
137
+ __mf_18.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
138
+ return {
139
+ config: {},
140
+ partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
141
+ };
142
+ });
143
+ }
144
+ });
145
+ //#endregion
146
+ export { web_default as default };
147
+
148
+ //# sourceMappingURL=web-CypPeiVv.js.map
@@ -1,11 +1,11 @@
1
- import { $ as __mf_2, A as __mf_76, K as useWatch, L as MdAdd, M as __mf_78, N as __mf_81, O as __mf_73, Q as __mf_1, R as MdDeleteOutline, T as __mf_270, U as useFieldArray$1, W as useForm, Z as __mf_0, _ as __mf_180, _t as __mf_38, b as __mf_19, d as __mf_172, f as __mf_173, ft as __mf_30, g as __mf_179, h as __mf_178, ht as __mf_34, i as __mf_124, j as __mf_77, k as __mf_75, l as __mf_170, m as __mf_177, n as __mf_1$1, p as __mf_176, r as __mf_116, t as __mf_0$1, u as __mf_171, v as __mf_181, w as __mf_27, x as __mf_2$1, y as __mf_185, yt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, z as MdEdit } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js";
2
- import { n as __mf_92, t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js";
3
- import { c as __mf_189, d as __mf_233, f as __mf_26, n as __mf_142, o as __mf_17, p as __mf_263, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js";
4
- import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-CYj29S3q.js";
5
- import { a as __mf_26$1, i as __mf_25, n as __mf_20, o as __mf_3, r as __mf_23 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js";
6
- import { n as a, t as AuthConfigTabs } from "./styles-yjbHBTlw.js";
1
+ import { A as __mf_86, C as __mf_3, D as __mf_6, K as useWatch, L as MdAdd, M as __mf_88, N as __mf_91, O as __mf_83, Q as __mf_2, R as MdDeleteOutline, T as __mf_5, U as useFieldArray$1, W as useForm, X as __mf_0, Z as __mf_1, _ as __mf_214, c as __mf_197, d as __mf_202, dt as __mf_30, f as __mf_203, g as __mf_207, gt as __mf_38, h as __mf_206, j as __mf_87, k as __mf_85, l as __mf_198, m as __mf_205, mt as __mf_34, n as __mf_136, p as __mf_204, s as __mf_196, t as __mf_128, u as __mf_199, v as __mf_24, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_37, x as __mf_296, z as MdEdit } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
2
+ import { n as __mf_92, t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js";
3
+ import { T as __mf_74, b as __mf_59, c as __mf_146, f as __mf_18, h as __mf_24$1, w as __mf_72, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
4
+ import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition--k0VAeK3.js";
5
+ import { i as __mf_15, n as __mf_11, r as __mf_14, s as __mf_2$1, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
6
+ import { n as a, t as AuthConfigTabs } from "./styles-BQEcQHoR.js";
7
7
  //#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.2.8/node_modules/@hookform/lenses/dist/rhf/index.js
8
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
8
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
9
9
  function useFieldArray(props) {
10
10
  const original = useFieldArray$1(props);
11
11
  return {
@@ -45,9 +45,9 @@ function useFieldArray(props) {
45
45
  }
46
46
  //#endregion
47
47
  //#region src/auth/core/components/role-editor-form/role-dialog.tsx
48
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
48
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
49
49
  function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
50
- const authRoleSchema = __mf_23(createAuthRoleSchema);
50
+ const authRoleSchema = __mf_11(createAuthRoleSchema);
51
51
  const { control, handleSubmit } = useForm({
52
52
  resolver: a(authRoleSchema),
53
53
  values: role
@@ -57,39 +57,39 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
57
57
  onOpenChange?.(false);
58
58
  });
59
59
  const formId = __mf_30();
60
- return /* @__PURE__ */ __mf_1(__mf_73, {
60
+ return /* @__PURE__ */ __mf_1(__mf_83, {
61
61
  open,
62
62
  onOpenChange,
63
- children: /* @__PURE__ */ __mf_1(__mf_75, { children: /* @__PURE__ */ __mf_2("form", {
63
+ children: /* @__PURE__ */ __mf_1(__mf_85, { children: /* @__PURE__ */ __mf_2("form", {
64
64
  id: formId,
65
65
  onSubmit: (e) => {
66
66
  e.stopPropagation();
67
67
  return onSubmit(e);
68
68
  },
69
69
  children: [
70
- /* @__PURE__ */ __mf_2(__mf_78, { children: [/* @__PURE__ */ __mf_1(__mf_81, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(__mf_76, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })] }),
70
+ /* @__PURE__ */ __mf_2(__mf_88, { children: [/* @__PURE__ */ __mf_1(__mf_91, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(__mf_86, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })] }),
71
71
  /* @__PURE__ */ __mf_2("div", {
72
72
  className: "auth:space-y-4 auth:py-4",
73
- children: [/* @__PURE__ */ __mf_1(__mf_124, {
73
+ children: [/* @__PURE__ */ __mf_1(__mf_136, {
74
74
  label: "Role Name",
75
75
  name: "name",
76
76
  control,
77
77
  placeholder: "Enter role name"
78
- }), /* @__PURE__ */ __mf_1(__mf_124, {
78
+ }), /* @__PURE__ */ __mf_1(__mf_136, {
79
79
  label: "Description",
80
80
  name: "comment",
81
81
  control,
82
82
  placeholder: "Describe this role's purpose"
83
83
  })]
84
84
  }),
85
- /* @__PURE__ */ __mf_2(__mf_77, { children: [/* @__PURE__ */ __mf_1(__mf_27, {
85
+ /* @__PURE__ */ __mf_2(__mf_87, { children: [/* @__PURE__ */ __mf_1(__mf_37, {
86
86
  type: "button",
87
87
  variant: "outline",
88
88
  onClick: () => {
89
89
  onOpenChange?.(false);
90
90
  },
91
91
  children: "Cancel"
92
- }), /* @__PURE__ */ __mf_2(__mf_27, {
92
+ }), /* @__PURE__ */ __mf_2(__mf_37, {
93
93
  form: formId,
94
94
  type: "submit",
95
95
  children: [isNew ? "Add" : "Update", " Role"]
@@ -100,9 +100,9 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
100
100
  }
101
101
  //#endregion
102
102
  //#region src/auth/core/components/role-editor-form/role-editor-form.tsx
103
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
103
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
104
104
  function RoleEditorForm({ className, control }) {
105
- const { requestConfirm } = __mf_270();
105
+ const { requestConfirm } = __mf_296();
106
106
  const { append, update, remove } = useFieldArray({
107
107
  control,
108
108
  name: "roles"
@@ -129,27 +129,27 @@ function RoleEditorForm({ className, control }) {
129
129
  }
130
130
  });
131
131
  }
132
- return /* @__PURE__ */ __mf_2(__mf_177, {
132
+ return /* @__PURE__ */ __mf_2(__mf_203, {
133
133
  className,
134
- children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_178, {
134
+ children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_204, {
135
135
  className: "auth:space-y-4",
136
136
  children: [
137
- roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_170, { children: [/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_1(__mf_172, {
137
+ roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_198, {
138
138
  title: "Name",
139
139
  children: /* @__PURE__ */ __mf_1("div", {
140
140
  className: "auth:flex auth:items-center auth:gap-2",
141
141
  children: /* @__PURE__ */ __mf_1("span", { children: role.name })
142
142
  })
143
- }), /* @__PURE__ */ __mf_1(__mf_172, {
143
+ }), /* @__PURE__ */ __mf_1(__mf_198, {
144
144
  title: "Description",
145
145
  children: role.comment.trim() || /* @__PURE__ */ __mf_1("span", {
146
146
  className: "auth:text-muted-foreground",
147
147
  children: "No description"
148
148
  })
149
- })] }), /* @__PURE__ */ __mf_2(__mf_171, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_19, {
149
+ })] }), /* @__PURE__ */ __mf_2(__mf_197, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_24, {
150
150
  variant: "secondary",
151
151
  children: "Default Role"
152
- }), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_27, {
152
+ }), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_37, {
153
153
  variant: "ghost",
154
154
  size: "icon",
155
155
  title: "Edit",
@@ -159,7 +159,7 @@ function RoleEditorForm({ className, control }) {
159
159
  setIsEditing(true);
160
160
  },
161
161
  children: /* @__PURE__ */ __mf_1(MdEdit, {})
162
- }), /* @__PURE__ */ __mf_1(__mf_27, {
162
+ }), /* @__PURE__ */ __mf_1(__mf_37, {
163
163
  variant: "ghostDestructive",
164
164
  size: "icon",
165
165
  title: "Delete",
@@ -176,12 +176,12 @@ function RoleEditorForm({ className, control }) {
176
176
  isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
177
177
  onSave: handleSaveRole
178
178
  }),
179
- /* @__PURE__ */ __mf_2(__mf_27, {
179
+ /* @__PURE__ */ __mf_2(__mf_37, {
180
180
  variant: "secondary",
181
181
  size: "sm",
182
182
  onClick: () => {
183
183
  setRoleToEdit({
184
- id: __mf_59.generateNewId(),
184
+ id: __mf_146.generateNewId(),
185
185
  name: "",
186
186
  comment: "",
187
187
  builtIn: false
@@ -196,16 +196,16 @@ function RoleEditorForm({ className, control }) {
196
196
  }
197
197
  //#endregion
198
198
  //#region src/auth/core/components/auth-definition-editor.tsx
199
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
199
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
200
200
  function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
201
- const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_25();
202
- const authPluginDefinitionSchema = __mf_23(createAuthPluginDefinitionSchema);
203
- const availableImplementations = __mf_189(schemaParserContext.pluginStore, metadata.key);
201
+ const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_14();
202
+ const authPluginDefinitionSchema = __mf_11(createAuthPluginDefinitionSchema);
203
+ const availableImplementations = __mf_59(schemaParserContext.pluginStore, metadata.key);
204
204
  const defaultImplementation = availableImplementations.find((i) => i.fullyQualifiedName === "@baseplate-dev/plugin-auth:local-auth") ?? availableImplementations[0];
205
205
  const defaultValues = __mf_34(() => {
206
206
  if (pluginMetadata?.config) return pluginMetadata.config;
207
- const defaultAuthFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/auth");
208
- const defaultAccountsFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/users");
207
+ const defaultAuthFeatureRef = __mf_18.getFeatureIdByNameOrDefault(definition, "accounts/auth");
208
+ const defaultAccountsFeatureRef = __mf_18.getFeatureIdByNameOrDefault(definition, "accounts/users");
209
209
  if (!defaultImplementation) throw new Error("No auth implementation plugins are available");
210
210
  return {
211
211
  implementationPluginKey: defaultImplementation.key,
@@ -218,27 +218,27 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
218
218
  pluginMetadata?.config,
219
219
  defaultImplementation
220
220
  ]);
221
- const form = __mf_26$1({
221
+ const form = __mf_15({
222
222
  resolver: a(authPluginDefinitionSchema),
223
223
  defaultValues
224
224
  });
225
225
  const { control, reset, handleSubmit, watch } = form;
226
226
  const implementationPluginKey = watch("implementationPluginKey");
227
227
  const selectedPlugin = implementationPluginKey && availableImplementations.find((i) => i.key === implementationPluginKey);
228
- const isSelectedImplementationActive = !!__mf_26.byKey(definitionContainer.definition, implementationPluginKey);
228
+ const isSelectedImplementationActive = !!__mf_24$1.byKey(definitionContainer.definition, implementationPluginKey);
229
229
  const hasSelectedImplementationChanged = implementationPluginKey !== (pluginMetadata?.config)?.implementationPluginKey;
230
230
  const selectedImplementationUrl = selectedPlugin ? `/plugins/edit/${selectedPlugin.key}` : void 0;
231
231
  const navigate = __mf_92();
232
232
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
233
- const featureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
234
- const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
235
- __mf_26.setPluginConfig(draftConfig, metadata, {
233
+ const featureRef = __mf_18.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
234
+ const accountsFeatureRef = __mf_18.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
235
+ __mf_24$1.setPluginConfig(draftConfig, metadata, {
236
236
  ...data,
237
237
  authFeatureRef: featureRef,
238
238
  accountsFeatureRef
239
239
  }, definitionContainer);
240
240
  const otherPlugins = availableImplementations.filter((i) => i.key !== implementationPluginKey);
241
- for (const plugin of otherPlugins) __mf_26.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
241
+ for (const plugin of otherPlugins) __mf_24$1.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
242
242
  }, {
243
243
  successMessage: `Successfully saved auth plugin! ${selectedImplementationUrl && !isSelectedImplementationActive ? `Please configure the provider plugin before syncing.` : ""}`,
244
244
  onSuccess: () => {
@@ -248,7 +248,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
248
248
  }, 100);
249
249
  }
250
250
  }));
251
- __mf_20({
251
+ __mf_7({
252
252
  control,
253
253
  reset,
254
254
  onSubmit
@@ -263,9 +263,9 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
263
263
  className: "auth:max-w-6xl auth:flex-1",
264
264
  children: [/* @__PURE__ */ __mf_2("div", {
265
265
  className: "auth:pb-16",
266
- children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_0$1, {
266
+ children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_3, {
267
267
  variant: "warning",
268
- children: [/* @__PURE__ */ __mf_1(__mf_2$1, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(__mf_1$1, { children: /* @__PURE__ */ __mf_2("p", { children: [
268
+ children: [/* @__PURE__ */ __mf_1(__mf_6, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(__mf_5, { children: /* @__PURE__ */ __mf_2("p", { children: [
269
269
  "The selected implementation provider is not active. Please make sure",
270
270
  " ",
271
271
  /* @__PURE__ */ __mf_1(__mf_13, {
@@ -276,24 +276,24 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
276
276
  " ",
277
277
  "before syncing."
278
278
  ] }) })]
279
- }), /* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_178, {
279
+ }), /* @__PURE__ */ __mf_2(__mf_202, { children: [/* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_204, {
280
280
  className: "auth:space-y-6",
281
281
  children: [
282
- /* @__PURE__ */ __mf_1(__mf_3, {
282
+ /* @__PURE__ */ __mf_1(__mf_2$1, {
283
283
  label: "Auth Feature Path",
284
284
  name: "authFeatureRef",
285
285
  control,
286
286
  canCreate: true,
287
287
  description: "Specify the feature path where auth infrastructure will be generated"
288
288
  }),
289
- /* @__PURE__ */ __mf_1(__mf_3, {
289
+ /* @__PURE__ */ __mf_1(__mf_2$1, {
290
290
  label: "Accounts Feature Path",
291
291
  name: "accountsFeatureRef",
292
292
  control,
293
293
  canCreate: true,
294
294
  description: "Specify the feature path where user account models will be generated"
295
295
  }),
296
- /* @__PURE__ */ __mf_1(__mf_185, {
296
+ /* @__PURE__ */ __mf_1(__mf_214, {
297
297
  label: "Authentication Provider",
298
298
  name: "implementationPluginKey",
299
299
  control,
@@ -314,7 +314,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
314
314
  })
315
315
  ]
316
316
  })] }), /* @__PURE__ */ __mf_1(RoleEditorForm, { control })] })]
317
- }), /* @__PURE__ */ __mf_1(__mf_116, {
317
+ }), /* @__PURE__ */ __mf_1(__mf_128, {
318
318
  form,
319
319
  allowSaveWithoutDirty: !pluginMetadata
320
320
  })]
@@ -328,17 +328,17 @@ var AUTH_FEATURE_NAME = "accounts/auth";
328
328
  var ACCOUNTS_FEATURE_NAME = "accounts/users";
329
329
  var AUTH_IMPL_FQN_PREFIX = "@baseplate-dev/plugin-auth:";
330
330
  var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
331
- var web_default = __mf_142({
331
+ var web_default = __mf_56({
332
332
  name: "web",
333
333
  dependencies: {
334
- webConfig: __mf_263,
335
- pluginDefaults: __mf_233
334
+ webConfig: __mf_74,
335
+ pluginDefaults: __mf_72
336
336
  },
337
337
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
338
338
  webConfig.components.set(pluginKey, AuthDefinitionEditor);
339
339
  pluginDefaults.builders.set(pluginKey, ({ draft, enabledPluginFqns, findPluginMetadataByFqn }) => {
340
- const authFeatureRef = __mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
341
- const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
340
+ const authFeatureRef = __mf_18.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
341
+ const accountsFeatureRef = __mf_18.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
342
342
  const implFqn = [...enabledPluginFqns].find((fqn) => fqn.startsWith(AUTH_IMPL_FQN_PREFIX) && fqn !== PARENT_AUTH_FQN);
343
343
  if (!implFqn) throw new Error("No auth implementation plugin enabled. Add an auth implementation (e.g. local-auth or better-auth) to the enabled plugins.");
344
344
  const implPlugin = findPluginMetadataByFqn(implFqn);
@@ -355,4 +355,4 @@ var web_default = __mf_142({
355
355
  //#endregion
356
356
  export { web_default as default };
357
357
 
358
- //# sourceMappingURL=web-D0MSKfyv.js.map
358
+ //# sourceMappingURL=web-CzK_la2_.js.map
@@ -15,11 +15,11 @@
15
15
  <meta charset="UTF-8" />
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
17
17
  <title>React Remote</title>
18
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-dfed0275.js"></script>
19
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-1-5275674a.js"></script>
20
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-2-39fb9255.js"></script>
21
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-3-49e64336.js"></script>
22
- <link rel="modulepreload" crossorigin href="./assets/hostInit-Cruek6c6.js"><link rel="modulepreload" crossorigin href="./remoteEntry.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js"></head>
18
+ <script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-ea77c09b.js"></script>
19
+ <script type="module" crossorigin src="./assets/mf-entry-bootstrap-1-9dee3d8d.js"></script>
20
+ <script type="module" crossorigin src="./assets/mf-entry-bootstrap-2-3179040b.js"></script>
21
+ <script type="module" crossorigin src="./assets/mf-entry-bootstrap-3-370d200d.js"></script>
22
+ </head>
23
23
 
24
24
  <body>
25
25
  <div id="root"></div>
@@ -1,2 +1,2 @@
1
- import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js";
1
+ import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js";
2
2
  export { getExposes as get, init };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/plugin-auth",
3
- "version": "0.6.17",
3
+ "version": "0.6.19",
4
4
  "description": "Contains the auth plugin for Baseplate",
5
5
  "keywords": [
6
6
  "authentication",
@@ -43,21 +43,21 @@
43
43
  "react-hook-form": "^7.71.1",
44
44
  "react-icons": "^5.7.0",
45
45
  "zod": "~4.3.6",
46
- "@baseplate-dev/core-generators": "0.6.17",
47
- "@baseplate-dev/fastify-generators": "0.6.17",
48
- "@baseplate-dev/plugin-email": "0.6.17",
49
- "@baseplate-dev/plugin-queue": "0.6.17",
50
- "@baseplate-dev/plugin-rate-limit": "0.6.17",
51
- "@baseplate-dev/project-builder-lib": "0.6.17",
52
- "@baseplate-dev/react-generators": "0.6.17",
53
- "@baseplate-dev/sync": "0.6.17",
54
- "@baseplate-dev/ui-components": "0.6.17",
55
- "@baseplate-dev/utils": "0.6.17"
46
+ "@baseplate-dev/core-generators": "0.6.19",
47
+ "@baseplate-dev/fastify-generators": "0.6.19",
48
+ "@baseplate-dev/plugin-email": "0.6.19",
49
+ "@baseplate-dev/plugin-queue": "0.6.19",
50
+ "@baseplate-dev/plugin-rate-limit": "0.6.19",
51
+ "@baseplate-dev/project-builder-lib": "0.6.19",
52
+ "@baseplate-dev/react-generators": "0.6.19",
53
+ "@baseplate-dev/sync": "0.6.19",
54
+ "@baseplate-dev/ui-components": "0.6.19",
55
+ "@baseplate-dev/utils": "0.6.19"
56
56
  },
57
57
  "devDependencies": {
58
- "@module-federation/vite": "1.17.0",
58
+ "@module-federation/vite": "1.20.5",
59
59
  "@tailwindcss/vite": "4.3.3",
60
- "@types/node": "^24.12.0",
60
+ "@types/node": "^24.13.0",
61
61
  "@types/react": "^19.2.18",
62
62
  "@types/react-dom": "^19.2.4",
63
63
  "@vitejs/plugin-react": "6.0.5",
@@ -70,7 +70,7 @@
70
70
  "typescript": "6.0.3",
71
71
  "vite": "8.2.0",
72
72
  "vitest": "4.1.10",
73
- "@baseplate-dev/tools": "0.6.17"
73
+ "@baseplate-dev/tools": "0.6.19"
74
74
  },
75
75
  "engines": {
76
76
  "node": "^24.0.0"
@@ -1,38 +0,0 @@
1
- /**
2
- * Cookie signing utilities
3
- * Based on node-cookie-signature by TJ Holowaychuk
4
- * Source: https://github.com/tj/node-cookie-signature
5
- */
6
- /**
7
- * Sign the given `val` with `secret` using HMAC-SHA256.
8
- *
9
- * @param val - The value to sign.
10
- * @param secret - The secret key to use for signing.
11
- * @returns The signed value.
12
- */
13
- export declare function sign(val: string, secret: string): string;
14
- /**
15
- * Unsign and decode the given `input` with `secret`,
16
- *
17
- * @param input - The signed cookie string to unsign.
18
- * @param secret - The secret key used for signing.
19
- * @returns The unsigned value or undefined if the signature is invalid.
20
- */
21
- export declare function unsign(input: string, secret: string): string | undefined;
22
- /**
23
- * Sign an object by JSON stringifying and base64 encoding it, then signing with secret.
24
- *
25
- * @param obj - The object to sign.
26
- * @param secret - The secret key to use for signing.
27
- * @returns The signed encoded object.
28
- */
29
- export declare function signObject(obj: unknown, secret: string): string;
30
- /**
31
- * Unsign and decode an object that was signed with signObject.
32
- *
33
- * @param input - The signed encoded object string to unsign.
34
- * @param secret - The secret key used for signing.
35
- * @returns The decoded object or undefined if the signature is invalid.
36
- */
37
- export declare function unsignObject(input: string, secret: string): unknown;
38
- //# sourceMappingURL=cookie-signer.d.ts.map
@@ -1,71 +0,0 @@
1
- // @ts-nocheck
2
- import * as crypto from 'node:crypto';
3
- /**
4
- * Cookie signing utilities
5
- * Based on node-cookie-signature by TJ Holowaychuk
6
- * Source: https://github.com/tj/node-cookie-signature
7
- */
8
- /**
9
- * Sign the given `val` with `secret` using HMAC-SHA256.
10
- *
11
- * @param val - The value to sign.
12
- * @param secret - The secret key to use for signing.
13
- * @returns The signed value.
14
- */
15
- export function sign(val, secret) {
16
- return `${val}.${crypto
17
- .createHmac('sha256', secret)
18
- .update(val)
19
- .digest('base64')
20
- // remove all equal signs since they are not valid in cookie values
21
- .replaceAll('=', '')}`;
22
- }
23
- /**
24
- * Unsign and decode the given `input` with `secret`,
25
- *
26
- * @param input - The signed cookie string to unsign.
27
- * @param secret - The secret key used for signing.
28
- * @returns The unsigned value or undefined if the signature is invalid.
29
- */
30
- export function unsign(input, secret) {
31
- const tentativeValue = input.slice(0, input.lastIndexOf('.'));
32
- const expectedInput = sign(tentativeValue, secret);
33
- const expectedBuffer = Buffer.from(expectedInput);
34
- const inputBuffer = Buffer.from(input);
35
- if (expectedBuffer.length !== inputBuffer.length ||
36
- !crypto.timingSafeEqual(expectedBuffer, inputBuffer)) {
37
- return undefined;
38
- }
39
- return tentativeValue;
40
- }
41
- /**
42
- * Sign an object by JSON stringifying and base64 encoding it, then signing with secret.
43
- *
44
- * @param obj - The object to sign.
45
- * @param secret - The secret key to use for signing.
46
- * @returns The signed encoded object.
47
- */
48
- export function signObject(obj, secret) {
49
- const encoded = Buffer.from(JSON.stringify(obj)).toString('base64url');
50
- return sign(encoded, secret);
51
- }
52
- /**
53
- * Unsign and decode an object that was signed with signObject.
54
- *
55
- * @param input - The signed encoded object string to unsign.
56
- * @param secret - The secret key used for signing.
57
- * @returns The decoded object or undefined if the signature is invalid.
58
- */
59
- export function unsignObject(input, secret) {
60
- const unsigned = unsign(input, secret);
61
- if (!unsigned)
62
- return undefined;
63
- try {
64
- const decoded = Buffer.from(unsigned, 'base64url').toString('utf8');
65
- return JSON.parse(decoded);
66
- }
67
- catch {
68
- return undefined;
69
- }
70
- }
71
- //# sourceMappingURL=cookie-signer.js.map