@baseplate-dev/plugin-auth 0.6.18 → 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 (209) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -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 +62 -0
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
  10. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
  11. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -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 +31 -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 +31 -0
  39. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +186 -0
  40. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +31 -0
  41. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +310 -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 +65 -2
  44. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +32 -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 +32 -1
  48. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +32 -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/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +62 -0
  51. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +62 -0
  52. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +31 -0
  53. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +31 -0
  54. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +1 -2
  55. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +1 -1
  56. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
  57. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
  58. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
  59. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -0
  60. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
  61. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
  62. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +62 -0
  63. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
  64. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
  65. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -0
  66. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
  67. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  68. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +31 -0
  69. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +10 -7
  70. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +8 -11
  71. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +40 -13
  72. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +9 -0
  73. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +6 -5
  74. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
  75. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
  76. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +40 -16
  77. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +11 -8
  78. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
  79. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
  80. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +17 -13
  81. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +25 -13
  82. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -3
  83. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +5 -3
  84. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
  85. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
  86. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
  87. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
  88. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
  89. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
  90. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
  91. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
  92. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
  93. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
  94. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
  95. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
  96. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
  97. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
  98. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +19 -7
  99. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -26
  100. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +48 -7
  101. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +0 -1
  102. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +0 -1
  103. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +19 -1
  104. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +7 -3
  105. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +1 -0
  106. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +1 -0
  107. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +28 -7
  108. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -14
  109. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +7 -6
  110. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +23 -17
  111. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +25 -18
  112. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
  113. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
  114. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +31 -0
  115. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +249 -0
  116. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +31 -0
  117. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
  118. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
  119. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +310 -0
  120. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +12 -5
  121. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +14 -4
  122. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
  123. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
  124. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +4 -4
  125. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +4 -3
  126. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +4 -4
  127. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +4 -3
  128. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
  129. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
  130. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
  131. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
  132. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
  133. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
  134. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +78 -7
  135. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +32 -1
  136. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
  137. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
  138. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +90 -12
  139. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
  140. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +48 -1
  141. package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
  142. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
  143. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
  144. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
  145. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
  146. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
  147. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
  148. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
  149. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
  150. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
  151. package/dist/local-auth/core/node.js +7 -7
  152. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
  153. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
  154. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
  155. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
  156. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
  157. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
  158. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
  159. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
  160. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
  161. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
  162. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
  163. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
  164. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
  165. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
  166. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
  167. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
  168. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +14 -14
  169. package/dist/web/assets/{_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-Cx7TvZ_H.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} +198 -66
  170. package/dist/web/assets/{_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-D3Nvasea.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} +1 -1
  171. package/dist/web/assets/{_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-C2GDE8Py.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} +2517 -1545
  172. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.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} +2 -2
  173. package/dist/web/assets/auth-DR6QxrAW.js +1 -0
  174. package/dist/web/assets/{common-CoLuMS7U.js → common-BsyRiQi3.js} +6 -6
  175. package/dist/web/assets/{common-N3skPbzk.js → common-CRwNlCMn.js} +10 -10
  176. package/dist/web/assets/{common-Co5lW_TK.js → common-CvqlRZC9.js} +12 -12
  177. package/dist/web/assets/{common-C8_sC5pp.js → common-D3atSs7O.js} +15 -15
  178. package/dist/web/assets/common-DuFyXa6l.js +36 -0
  179. package/dist/web/assets/common-islduJTj.js +43 -0
  180. package/dist/web/assets/{get-auth-plugin-definition-DyokUVjX.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
  181. package/dist/web/assets/{hostInit-BCYmw0H5.js → hostInit-DNA4kLRY.js} +1 -1
  182. package/dist/web/assets/{mf-entry-bootstrap-0-3ede9334.js → mf-entry-bootstrap-0-ea77c09b.js} +1 -1
  183. package/dist/web/assets/{mf-entry-bootstrap-1-3da85eea.js → mf-entry-bootstrap-1-9dee3d8d.js} +2 -2
  184. package/dist/web/assets/{mf-entry-bootstrap-2-32e24e11.js → mf-entry-bootstrap-2-3179040b.js} +1 -1
  185. package/dist/web/assets/{mf-entry-bootstrap-3-a3cfea9d.js → mf-entry-bootstrap-3-370d200d.js} +2 -2
  186. package/dist/web/assets/{models-BcPOQC5p.js → models-BOeSYfRn.js} +4 -4
  187. package/dist/web/assets/{models-BcUgOGGn.js → models-DF6DoXt6.js} +4 -4
  188. package/dist/web/assets/{plugin-definition-D1EImXIf.js → plugin-definition--k0VAeK3.js} +9 -9
  189. package/dist/web/assets/{plugin-definition-lw-gB4hU.js → plugin-definition-CMwSlxsJ.js} +3 -3
  190. package/dist/web/assets/{styles-EOyEbGA4.js → styles-BQEcQHoR.js} +8 -8
  191. package/dist/web/assets/{virtualExposes-DWORnjyA.js → virtualExposes-C7fDiAmS.js} +1 -1
  192. package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js} +3 -3
  193. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
  194. package/dist/web/assets/{web-kaD9AzNS.js → web-8wz0ad-V.js} +8 -8
  195. package/dist/web/assets/{web-EDeSquSP.js → web-BGixH_gT.js} +19 -19
  196. package/dist/web/assets/{web-PqAcfBSy.js → web-BxIwkN3O.js} +7 -7
  197. package/dist/web/assets/{web-CBVepebK.js → web-CQMfABjr.js} +19 -19
  198. package/dist/web/assets/{web-RhChfBw_.js → web-CcNpItSu.js} +17 -17
  199. package/dist/web/assets/{web-xJ-GnSkC.js → web-CypPeiVv.js} +25 -25
  200. package/dist/web/assets/{web-Dgb85jhs.js → web-CzK_la2_.js} +41 -41
  201. package/dist/web/index.html +4 -4
  202. package/dist/web/remoteEntry.js +1 -1
  203. package/package.json +12 -12
  204. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
  205. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
  206. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
  207. package/dist/web/assets/auth-CsHp2bQi.js +0 -1
  208. package/dist/web/assets/common-BGTuTgx7.js +0 -43
  209. package/dist/web/assets/common-Dueu_1NG.js +0 -36
@@ -1,9 +1,9 @@
1
- import { Q as __mf_2, Z as __mf_1, _ as __mf_200, a as __mf_163, b as __mf_250, f as __mf_195, g as __mf_199, h as __mf_198, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } 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-C2GDE8Py.js";
2
- import { T as __mf_73, _ as __mf_242, f as __mf_17, g as __mf_238, h as __mf_23, w as __mf_71, y as __mf_55 } 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-Cx7TvZ_H.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-D3Nvasea.js";
4
- import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.js";
5
- import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
6
- import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-BcUgOGGn.js";
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
7
  //#region src/local-auth/core/components/local-auth-definition-editor.tsx
8
8
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
9
9
  function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
@@ -32,11 +32,11 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
32
32
  const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
33
33
  if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
34
34
  const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
35
- const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
35
+ const diff = __mf_34(() => __mf_240(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
36
36
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
37
37
  const updatedData = { ...data };
38
- __mf_242(definitionContainer, partialDef)(draftConfig);
39
- __mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
38
+ __mf_244(definitionContainer, partialDef)(draftConfig);
39
+ __mf_24.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
40
40
  }, {
41
41
  successMessage: "Successfully saved auth plugin!",
42
42
  onSuccess: () => {
@@ -58,14 +58,14 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
58
58
  className: "auth:max-w-6xl auth:flex-1",
59
59
  children: [/* @__PURE__ */ __mf_1("div", {
60
60
  className: "auth:pb-16",
61
- children: /* @__PURE__ */ __mf_2(__mf_195, { children: [
62
- /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
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
63
  className: "auth:space-y-6",
64
64
  children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
65
65
  })] }),
66
- /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_198, { 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_197, {
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
67
  className: "auth:space-y-6",
68
- children: /* @__PURE__ */ __mf_1(__mf_163, {
68
+ children: /* @__PURE__ */ __mf_1(__mf_166, {
69
69
  label: "Additional User Admin Roles",
70
70
  name: "additionalUserAdminRoles",
71
71
  control,
@@ -73,18 +73,18 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
73
73
  description: "Additional roles (beyond admin) that can manage users and assign roles."
74
74
  })
75
75
  })] }),
76
- /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
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
77
  className: "auth:space-y-6",
78
- children: /* @__PURE__ */ __mf_1(__mf_250, {
78
+ children: /* @__PURE__ */ __mf_1(__mf_262, {
79
79
  label: "Require Name on Registration",
80
80
  name: "requireNameOnRegistration",
81
81
  control,
82
82
  description: "When enabled, users must provide their name when registering."
83
83
  })
84
84
  })] }),
85
- /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Sign-in Methods" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Choose how users can sign in, in addition to email and password." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
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
86
  className: "auth:space-y-6",
87
- children: /* @__PURE__ */ __mf_1(__mf_250, {
87
+ children: /* @__PURE__ */ __mf_1(__mf_262, {
88
88
  label: "Email Sign-in Codes",
89
89
  name: "emailOtp",
90
90
  control,
@@ -92,7 +92,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
92
92
  })
93
93
  })] })
94
94
  ] })
95
- }), /* @__PURE__ */ __mf_1(__mf_125, {
95
+ }), /* @__PURE__ */ __mf_1(__mf_128, {
96
96
  form,
97
97
  allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
98
98
  })]
@@ -108,7 +108,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
108
108
  * web app form.
109
109
  */
110
110
  function LocalAuthWebAppSettingsForm({ formProps, pluginKey }) {
111
- return /* @__PURE__ */ __mf_1(__mf_250, {
111
+ return /* @__PURE__ */ __mf_1(__mf_262, {
112
112
  label: "Disable Registration",
113
113
  description: "When enabled, this site's sign-up page and link are hidden so users can only be added via an invite.",
114
114
  control: formProps.control,
@@ -119,11 +119,11 @@ function LocalAuthWebAppSettingsForm({ formProps, pluginKey }) {
119
119
  //#region src/local-auth/core/web.ts
120
120
  var AUTH_FEATURE_NAME = "accounts/auth";
121
121
  var ACCOUNTS_FEATURE_NAME = "accounts/users";
122
- var web_default = __mf_55({
122
+ var web_default = __mf_56({
123
123
  name: "web",
124
124
  dependencies: {
125
- webConfig: __mf_73,
126
- pluginDefaults: __mf_71,
125
+ webConfig: __mf_74,
126
+ pluginDefaults: __mf_72,
127
127
  webAppSchemaExtensionWeb: __mf_26
128
128
  },
129
129
  initialize: ({ webConfig, pluginDefaults, webAppSchemaExtensionWeb }, { pluginKey }) => {
@@ -133,8 +133,8 @@ var web_default = __mf_55({
133
133
  Form: LocalAuthWebAppSettingsForm
134
134
  }));
135
135
  pluginDefaults.builders.set(pluginKey, ({ draft }) => {
136
- __mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
137
- __mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
136
+ __mf_18.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
137
+ __mf_18.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
138
138
  return {
139
139
  config: {},
140
140
  partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
@@ -145,4 +145,4 @@ var web_default = __mf_55({
145
145
  //#endregion
146
146
  export { web_default as default };
147
147
 
148
- //# sourceMappingURL=web-xJ-GnSkC.js.map
148
+ //# sourceMappingURL=web-CypPeiVv.js.map
@@ -1,9 +1,9 @@
1
- import { A as __mf_83, C as __mf_34$1, D as __mf_6, K as useWatch, L as MdAdd, M as __mf_85, N as __mf_88, O as __mf_80, 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_200, c as __mf_189, d as __mf_192, dt as __mf_30, f as __mf_195, g as __mf_199, gt as __mf_38, h as __mf_198, j as __mf_84, k as __mf_82, l as __mf_190, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, r as __mf_133, u as __mf_191, v as __mf_202, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_4, x as __mf_273, y as __mf_24, 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-C2GDE8Py.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-CiccpWjh.js";
3
- import { T as __mf_73, b as __mf_58, c as __mf_145, f as __mf_17, h as __mf_23, w as __mf_71, y as __mf_55 } 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-Cx7TvZ_H.js";
4
- import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-D1EImXIf.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-D3Nvasea.js";
6
- import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.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
8
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
9
9
  function useFieldArray(props) {
@@ -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_80, {
60
+ return /* @__PURE__ */ __mf_1(__mf_83, {
61
61
  open,
62
62
  onOpenChange,
63
- children: /* @__PURE__ */ __mf_1(__mf_82, { 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_85, { children: [/* @__PURE__ */ __mf_1(__mf_88, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(__mf_83, { 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_133, {
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_133, {
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_84, { children: [/* @__PURE__ */ __mf_1(__mf_34$1, {
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_34$1, {
92
+ }), /* @__PURE__ */ __mf_2(__mf_37, {
93
93
  form: formId,
94
94
  type: "submit",
95
95
  children: [isNew ? "Add" : "Update", " Role"]
@@ -102,7 +102,7 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
102
102
  //#region src/auth/core/components/role-editor-form/role-editor-form.tsx
103
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_273();
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_196, {
132
+ return /* @__PURE__ */ __mf_2(__mf_203, {
133
133
  className,
134
- children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_197, {
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_189, { children: [/* @__PURE__ */ __mf_2(__mf_192, { children: [/* @__PURE__ */ __mf_1(__mf_191, {
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_191, {
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_190, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_24, {
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_34$1, {
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_34$1, {
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_34$1, {
179
+ /* @__PURE__ */ __mf_2(__mf_37, {
180
180
  variant: "secondary",
181
181
  size: "sm",
182
182
  onClick: () => {
183
183
  setRoleToEdit({
184
- id: __mf_145.generateNewId(),
184
+ id: __mf_146.generateNewId(),
185
185
  name: "",
186
186
  comment: "",
187
187
  builtIn: false
@@ -200,12 +200,12 @@ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react
200
200
  function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
201
201
  const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_14();
202
202
  const authPluginDefinitionSchema = __mf_11(createAuthPluginDefinitionSchema);
203
- const availableImplementations = __mf_58(schemaParserContext.pluginStore, metadata.key);
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,
@@ -225,20 +225,20 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
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_23.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_23.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_23.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: () => {
@@ -263,7 +263,7 @@ 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_4, {
266
+ children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_3, {
267
267
  variant: "warning",
268
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",
@@ -276,7 +276,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
276
276
  " ",
277
277
  "before syncing."
278
278
  ] }) })]
279
- }), /* @__PURE__ */ __mf_2(__mf_195, { children: [/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_197, {
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
282
  /* @__PURE__ */ __mf_1(__mf_2$1, {
@@ -293,7 +293,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
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_202, {
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_125, {
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_55({
331
+ var web_default = __mf_56({
332
332
  name: "web",
333
333
  dependencies: {
334
- webConfig: __mf_73,
335
- pluginDefaults: __mf_71
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_55({
355
355
  //#endregion
356
356
  export { web_default as default };
357
357
 
358
- //# sourceMappingURL=web-Dgb85jhs.js.map
358
+ //# sourceMappingURL=web-CzK_la2_.js.map
@@ -15,10 +15,10 @@
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-3ede9334.js"></script>
19
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-1-3da85eea.js"></script>
20
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-2-32e24e11.js"></script>
21
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-3-a3cfea9d.js"></script>
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
22
  </head>
23
23
 
24
24
  <body>
@@ -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-t-KnBiUh.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.18",
3
+ "version": "0.6.19",
4
4
  "description": "Contains the auth plugin for Baseplate",
5
5
  "keywords": [
6
6
  "authentication",
@@ -43,16 +43,16 @@
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.18",
47
- "@baseplate-dev/fastify-generators": "0.6.18",
48
- "@baseplate-dev/plugin-email": "0.6.18",
49
- "@baseplate-dev/plugin-queue": "0.6.18",
50
- "@baseplate-dev/plugin-rate-limit": "0.6.18",
51
- "@baseplate-dev/project-builder-lib": "0.6.18",
52
- "@baseplate-dev/react-generators": "0.6.18",
53
- "@baseplate-dev/sync": "0.6.18",
54
- "@baseplate-dev/ui-components": "0.6.18",
55
- "@baseplate-dev/utils": "0.6.18"
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
58
  "@module-federation/vite": "1.20.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.18"
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
@@ -1,77 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import * as crypto from 'node:crypto';
4
-
5
- /**
6
- * Cookie signing utilities
7
- * Based on node-cookie-signature by TJ Holowaychuk
8
- * Source: https://github.com/tj/node-cookie-signature
9
- */
10
-
11
- /**
12
- * Sign the given `val` with `secret` using HMAC-SHA256.
13
- *
14
- * @param val - The value to sign.
15
- * @param secret - The secret key to use for signing.
16
- * @returns The signed value.
17
- */
18
- export function sign(val: string, secret: string): string {
19
- return `${val}.${crypto
20
- .createHmac('sha256', secret)
21
- .update(val)
22
- .digest('base64')
23
- // remove all equal signs since they are not valid in cookie values
24
- .replaceAll('=', '')}`;
25
- }
26
-
27
- /**
28
- * Unsign and decode the given `input` with `secret`,
29
- *
30
- * @param input - The signed cookie string to unsign.
31
- * @param secret - The secret key used for signing.
32
- * @returns The unsigned value or undefined if the signature is invalid.
33
- */
34
- export function unsign(input: string, secret: string): string | undefined {
35
- const tentativeValue = input.slice(0, input.lastIndexOf('.'));
36
- const expectedInput = sign(tentativeValue, secret);
37
- const expectedBuffer = Buffer.from(expectedInput);
38
- const inputBuffer = Buffer.from(input);
39
- if (
40
- expectedBuffer.length !== inputBuffer.length ||
41
- !crypto.timingSafeEqual(expectedBuffer, inputBuffer)
42
- ) {
43
- return undefined;
44
- }
45
- return tentativeValue;
46
- }
47
-
48
- /**
49
- * Sign an object by JSON stringifying and base64 encoding it, then signing with secret.
50
- *
51
- * @param obj - The object to sign.
52
- * @param secret - The secret key to use for signing.
53
- * @returns The signed encoded object.
54
- */
55
- export function signObject(obj: unknown, secret: string): string {
56
- const encoded = Buffer.from(JSON.stringify(obj)).toString('base64url');
57
- return sign(encoded, secret);
58
- }
59
-
60
- /**
61
- * Unsign and decode an object that was signed with signObject.
62
- *
63
- * @param input - The signed encoded object string to unsign.
64
- * @param secret - The secret key used for signing.
65
- * @returns The decoded object or undefined if the signature is invalid.
66
- */
67
- export function unsignObject(input: string, secret: string): unknown {
68
- const unsigned = unsign(input, secret);
69
- if (!unsigned) return undefined;
70
-
71
- try {
72
- const decoded = Buffer.from(unsigned, 'base64url').toString('utf8');
73
- return JSON.parse(decoded);
74
- } catch {
75
- return undefined;
76
- }
77
- }
@@ -1 +0,0 @@
1
- import "./get-auth-plugin-definition-DyokUVjX.js";