@baseplate-dev/plugin-auth 0.6.16 → 0.6.18

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 (220) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +12 -0
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +12 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +6 -0
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +6 -0
  6. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +12 -0
  7. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +12 -0
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +6 -0
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +12 -0
  10. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +6 -0
  11. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +6 -0
  12. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +36 -0
  13. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +6 -0
  14. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +60 -0
  15. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +12 -0
  16. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +6 -0
  17. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +6 -0
  18. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +6 -0
  19. package/dist/local-auth/admin/common.js +6 -0
  20. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +531 -0
  21. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
  22. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +540 -0
  23. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
  24. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
  25. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
  26. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +276 -0
  27. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
  28. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +263 -0
  29. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
  30. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
  31. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
  32. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
  33. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +69 -0
  34. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
  35. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +12 -0
  36. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +12 -0
  37. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +6 -0
  38. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +6 -0
  39. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +12 -0
  40. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +12 -0
  41. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +6 -0
  42. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +12 -0
  43. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +6 -0
  44. package/dist/local-auth/admin/node.js +13 -0
  45. package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
  46. package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
  47. package/dist/local-auth/admin/web.js +8 -0
  48. package/dist/local-auth/core/common.js +7 -2
  49. package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
  50. package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
  51. package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
  52. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +1 -0
  53. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +6 -0
  54. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +66 -6
  55. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +188 -0
  56. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  57. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  58. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +18 -0
  59. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +66 -0
  60. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +192 -0
  61. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +82 -1
  62. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
  63. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
  64. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
  65. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
  66. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
  67. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
  68. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
  69. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
  70. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
  71. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
  72. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
  73. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
  74. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
  75. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
  76. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
  77. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
  78. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
  79. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
  80. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +138 -0
  81. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +209 -0
  82. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +3 -3
  83. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +3 -2
  84. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
  85. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
  86. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
  87. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
  88. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
  89. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
  90. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
  91. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
  92. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
  93. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
  94. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
  95. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
  96. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
  97. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
  98. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
  99. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +8 -0
  100. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +5 -1
  101. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +32 -0
  102. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
  103. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
  104. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +7 -0
  105. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +13 -0
  106. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -0
  107. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -0
  108. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +25 -0
  109. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +20 -0
  110. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
  111. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
  112. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
  113. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +66 -0
  114. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +134 -0
  115. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +184 -0
  116. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +8 -0
  117. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
  118. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +840 -268
  119. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
  120. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
  121. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +18 -0
  122. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
  123. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +608 -283
  124. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
  125. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
  126. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
  127. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
  128. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
  129. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +148 -0
  130. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +264 -0
  131. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
  132. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
  133. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +311 -0
  134. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
  135. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +2 -9
  136. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +12 -0
  137. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +6 -0
  138. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +12 -0
  139. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +6 -0
  140. package/dist/local-auth/core/node.js +24 -6
  141. package/dist/local-auth/core/schema/migrations.d.ts +3 -0
  142. package/dist/local-auth/core/schema/migrations.js +36 -0
  143. package/dist/local-auth/core/schema/models.js +8 -0
  144. package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
  145. package/dist/local-auth/core/schema/plugin-definition.js +1 -0
  146. package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
  147. package/dist/local-auth/core/schema/web-app-schema.js +16 -0
  148. package/dist/local-auth/core/web.js +8 -1
  149. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js} +49 -41
  150. package/dist/web/assets/{dist-BjxypexQ.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-Cx7TvZ_H.js} +16720 -384
  151. 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 +177 -0
  152. 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-CXGct_48.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-C2GDE8Py.js} +3349 -2632
  153. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js → _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} +320 -164
  154. package/dist/web/assets/{arduino-BP2nYunF.js → arduino-BXtgMpyb.js} +2 -2
  155. package/dist/web/assets/auth-CsHp2bQi.js +1 -0
  156. package/dist/web/assets/{c-C7Ey31hW.js → c-6gdx-Hqg.js} +3 -3
  157. package/dist/web/assets/{clike-D9YNFwtw.js → clike-Ds9lUsCq.js} +2 -2
  158. package/dist/web/assets/common-BGTuTgx7.js +43 -0
  159. package/dist/web/assets/common-C8_sC5pp.js +70 -0
  160. package/dist/web/assets/{common-BvU-7KsV.js → common-Co5lW_TK.js} +13 -11
  161. package/dist/web/assets/{common-eFh2vwGb.js → common-CoLuMS7U.js} +6 -6
  162. package/dist/web/assets/common-Dueu_1NG.js +36 -0
  163. package/dist/web/assets/{common-BBriDRRy.js → common-N3skPbzk.js} +10 -10
  164. package/dist/web/assets/{cpp-_RjA_yNA.js → cpp-DRYAY5P6.js} +2 -2
  165. package/dist/web/assets/{csharp-0LZzOc6Q.js → csharp-RJBSoHJ6.js} +2 -2
  166. package/dist/web/assets/{dist-SBfmsOB2.js → dist-DQd1TAJX.js} +274 -133
  167. package/dist/web/assets/{get-auth-plugin-definition-x8oAsN1R.js → get-auth-plugin-definition-DyokUVjX.js} +3 -3
  168. package/dist/web/assets/{go-CzER04EZ.js → go-D9nlw8GJ.js} +2 -2
  169. package/dist/web/assets/{hostInit-Bay0Y9UX.js → hostInit-BCYmw0H5.js} +33 -6
  170. package/dist/web/assets/{java-HAvRESj1.js → java-Asfw0WtJ.js} +2 -2
  171. package/dist/web/assets/{javascript-BVAr0eZH.js → javascript-fpnGEVws.js} +2 -2
  172. package/dist/web/assets/{kotlin-DkCMjTKK.js → kotlin-zNWfDPVY.js} +2 -2
  173. package/dist/web/assets/{markdown-_2_uVr2L.js → markdown-ewV-vLcZ.js} +2 -2
  174. package/dist/web/assets/{markup-BVZ8HhdW.js → markup-D2krQlDZ.js} +2 -2
  175. package/dist/web/assets/{markup-templating-BDIRuVJH.js → markup-templating-c_XBo6vX.js} +2 -2
  176. package/dist/web/assets/mf-entry-bootstrap-0-3ede9334.js +36 -0
  177. package/dist/web/assets/mf-entry-bootstrap-1-3da85eea.js +36 -0
  178. package/dist/web/assets/{mf-entry-bootstrap-0-659c976f.js → mf-entry-bootstrap-2-32e24e11.js} +3 -2
  179. package/dist/web/assets/mf-entry-bootstrap-3-a3cfea9d.js +36 -0
  180. package/dist/web/assets/{models-BpslIbU7.js → models-BcPOQC5p.js} +4 -5
  181. package/dist/web/assets/{models-CKab4MTC.js → models-BcUgOGGn.js} +11 -6
  182. package/dist/web/assets/{objectivec-DPgB68It.js → objectivec-PkUOhxeb.js} +2 -2
  183. package/dist/web/assets/{php-JTON0zp9.js → php-CfWLJZIj.js} +2 -2
  184. package/dist/web/assets/{plugin-definition-8Exesd6T.js → plugin-definition-D1EImXIf.js} +9 -10
  185. package/dist/web/assets/plugin-definition-lw-gB4hU.js +10 -0
  186. package/dist/web/assets/{rolldown-runtime-FZ4Itg2g.js → rolldown-runtime-7_rZTKki.js} +1 -1
  187. package/dist/web/assets/{ruby-BoFHz67P.js → ruby-BlM93DKO.js} +2 -2
  188. package/dist/web/assets/{styles-Cc26Bbxc.css → styles-DIj1cIPB.css} +119 -1
  189. package/dist/web/assets/{styles-Cuq4wgvD.js → styles-EOyEbGA4.js} +9 -10
  190. package/dist/web/assets/{typescript-CDkIWcT8.js → typescript-C5BVqltI.js} +2 -2
  191. package/dist/web/assets/{virtualExposes-BwIds34r.js → virtualExposes-DWORnjyA.js} +1 -1
  192. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js +747 -0
  193. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js} +15 -15
  194. package/dist/web/assets/{vite-preload-helper-iIio8xkS.js → vite-preload-helper-ARKYL6bp.js} +5 -1
  195. package/dist/web/assets/{web-DHv2aVpi.js → web-CBVepebK.js} +24 -24
  196. package/dist/web/assets/{web-CnB-sqCR.js → web-Dgb85jhs.js} +54 -53
  197. package/dist/web/assets/{web-BZd3bM0n.js → web-EDeSquSP.js} +38 -38
  198. package/dist/web/assets/{web-DNrWXjpS.js → web-PqAcfBSy.js} +9 -9
  199. package/dist/web/assets/{web-BgWG7dYl.js → web-RhChfBw_.js} +23 -23
  200. package/dist/web/assets/web-kaD9AzNS.js +59 -0
  201. package/dist/web/assets/web-xJ-GnSkC.js +148 -0
  202. package/dist/web/assets/{workerBundle-GFUata9j.js → workerBundle-BjsY-uXx.js} +2 -2
  203. package/dist/web/index.html +5 -2
  204. package/dist/web/remoteEntry.js +1 -1
  205. package/package.json +36 -39
  206. 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-BfSk5vRC.js +0 -384
  207. 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-DZIcwf2B.js +0 -125
  208. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js +0 -13567
  209. package/dist/web/assets/auth-8qJtXAgU.js +0 -1
  210. package/dist/web/assets/common-23-wvKrM.js +0 -39
  211. package/dist/web/assets/common-B-NI9TR-.js +0 -37
  212. package/dist/web/assets/common-DBBUvtGu.js +0 -37
  213. package/dist/web/assets/index-qso1IsKy.js +0 -2
  214. package/dist/web/assets/model-utils-dNFTOjqi.js +0 -1599
  215. package/dist/web/assets/plugin-definition-ChBrbazJ.js +0 -11
  216. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js +0 -259
  217. package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js +0 -129
  218. package/dist/web/assets/web-CXHw8SK7.js +0 -118
  219. package/dist/web/assets/web-D_H-MoGI.js +0 -46
  220. package/dist/web/remoteEntry.ssr.js +0 -43
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./styles-Cc26Bbxc.css"])))=>i.map(i=>d[i]);
2
- import { t as __vitePreload } from "./vite-preload-helper-iIio8xkS.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./styles-DIj1cIPB.css"])))=>i.map(i=>d[i]);
2
+ import { t as __vitePreload } from "./vite-preload-helper-ARKYL6bp.js";
3
3
  //#region virtual:mf-exposes:__mfe_internal__plugin-auth__remoteEntry_js
4
4
  var cssAssetMap = {};
5
5
  var injectedCssHrefs = /* @__PURE__ */ new Set();
@@ -31,7 +31,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
31
31
  "./auth/core/web": async () => {
32
32
  await injectCssAssets("./auth/core/web");
33
33
  await Promise.all([]);
34
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CnB-sqCR.js"), __vite__mapDeps([0]), import.meta.url));
34
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-Dgb85jhs.js"), __vite__mapDeps([0]), import.meta.url));
35
35
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
36
36
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
37
37
  const exportModule = {};
@@ -45,7 +45,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
45
45
  "./auth/core/common": async () => {
46
46
  await injectCssAssets("./auth/core/common");
47
47
  await Promise.all([]);
48
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-BBriDRRy.js"), [], import.meta.url));
48
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-N3skPbzk.js"), [], import.meta.url));
49
49
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
50
50
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
51
51
  const exportModule = {};
@@ -59,7 +59,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
59
59
  "./better-auth/core/web": async () => {
60
60
  await injectCssAssets("./better-auth/core/web");
61
61
  await Promise.all([]);
62
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-DHv2aVpi.js"), __vite__mapDeps([0]), import.meta.url));
62
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CBVepebK.js"), __vite__mapDeps([0]), import.meta.url));
63
63
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
64
64
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
65
65
  const exportModule = {};
@@ -73,7 +73,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
73
73
  "./better-auth/core/common": async () => {
74
74
  await injectCssAssets("./better-auth/core/common");
75
75
  await Promise.all([]);
76
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-BvU-7KsV.js"), [], import.meta.url));
76
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-Co5lW_TK.js"), [], import.meta.url));
77
77
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
78
78
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
79
79
  const exportModule = {};
@@ -87,7 +87,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
87
87
  "./better-auth/admin/web": async () => {
88
88
  await injectCssAssets("./better-auth/admin/web");
89
89
  await Promise.all([]);
90
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-DNrWXjpS.js"), [], import.meta.url));
90
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-PqAcfBSy.js"), [], import.meta.url));
91
91
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
92
92
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
93
93
  const exportModule = {};
@@ -101,7 +101,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
101
101
  "./better-auth/admin/common": async () => {
102
102
  await injectCssAssets("./better-auth/admin/common");
103
103
  await Promise.all([]);
104
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-DBBUvtGu.js"), [], import.meta.url));
104
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-Dueu_1NG.js"), [], import.meta.url));
105
105
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
106
106
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
107
107
  const exportModule = {};
@@ -115,7 +115,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
115
115
  "./local-auth/core/web": async () => {
116
116
  await injectCssAssets("./local-auth/core/web");
117
117
  await Promise.all([]);
118
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CXHw8SK7.js"), __vite__mapDeps([0]), import.meta.url));
118
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-xJ-GnSkC.js"), __vite__mapDeps([0]), import.meta.url));
119
119
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
120
120
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
121
121
  const exportModule = {};
@@ -129,7 +129,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
129
129
  "./local-auth/core/common": async () => {
130
130
  await injectCssAssets("./local-auth/core/common");
131
131
  await Promise.all([]);
132
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-23-wvKrM.js"), [], import.meta.url));
132
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-C8_sC5pp.js"), [], import.meta.url));
133
133
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
134
134
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
135
135
  const exportModule = {};
@@ -143,7 +143,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
143
143
  "./local-auth/admin/web": async () => {
144
144
  await injectCssAssets("./local-auth/admin/web");
145
145
  await Promise.all([]);
146
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-D_H-MoGI.js"), [], import.meta.url));
146
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-kaD9AzNS.js"), [], import.meta.url));
147
147
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
148
148
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
149
149
  const exportModule = {};
@@ -157,7 +157,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
157
157
  "./local-auth/admin/common": async () => {
158
158
  await injectCssAssets("./local-auth/admin/common");
159
159
  await Promise.all([]);
160
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-B-NI9TR-.js"), [], import.meta.url));
160
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-BGTuTgx7.js"), [], import.meta.url));
161
161
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
162
162
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
163
163
  const exportModule = {};
@@ -171,7 +171,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
171
171
  "./placeholder-auth/core/web": async () => {
172
172
  await injectCssAssets("./placeholder-auth/core/web");
173
173
  await Promise.all([]);
174
- const importModule = await importExposedModule(() => __vitePreload(() => import("./web-BgWG7dYl.js"), __vite__mapDeps([0]), import.meta.url));
174
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./web-RhChfBw_.js"), __vite__mapDeps([0]), import.meta.url));
175
175
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
176
176
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
177
177
  const exportModule = {};
@@ -185,7 +185,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
185
185
  "./placeholder-auth/core/common": async () => {
186
186
  await injectCssAssets("./placeholder-auth/core/common");
187
187
  await Promise.all([]);
188
- const importModule = await importExposedModule(() => __vitePreload(() => import("./common-eFh2vwGb.js"), [], import.meta.url));
188
+ const importModule = await importExposedModule(() => __vitePreload(() => import("./common-CoLuMS7U.js"), [], import.meta.url));
189
189
  const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
190
190
  if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
191
191
  const exportModule = {};
@@ -200,4 +200,4 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
200
200
  //#endregion
201
201
  export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as t };
202
202
 
203
- //# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js.map
203
+ //# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js.map
@@ -24,7 +24,11 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
24
24
  }
25
25
  function importMetaResolve(specifier) {
26
26
  if (import.meta.resolve) return import.meta.resolve(specifier);
27
- return new URL(specifier, new URL("../../../src/node/plugins/importAnalysisBuild.ts", import.meta.url)).href;
27
+ return new URL(
28
+ specifier,
29
+ /** #__KEEP__ */
30
+ import.meta.url
31
+ ).href;
28
32
  }
29
33
  promise = allSettled(deps.map((dep) => {
30
34
  dep = assetsURL(dep, importerUrl);
@@ -1,24 +1,24 @@
1
- import { $ as __mf_2, Q as __mf_1, _ as __mf_180, g as __mf_179, h as __mf_178, ht as __mf_31, m as __mf_177, o as __mf_145, p as __mf_176, r as __mf_116, v as __mf_181, yt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js";
2
- import { a as __mf_167, d as __mf_233, f as __mf_26, g as __mf_55, n as __mf_142, o as __mf_17, p as __mf_263 } 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-BfSk5vRC.js";
3
- import { a as __mf_26$1, i as __mf_25, n as __mf_20, r as __mf_23, t as __mf_0 } 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-DZIcwf2B.js";
4
- import { n as a, t as AuthConfigTabs } from "./styles-Cuq4wgvD.js";
5
- import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-BpslIbU7.js";
6
- import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-x8oAsN1R.js";
1
+ import { Q as __mf_2, Z as __mf_1, _ as __mf_200, a as __mf_163, 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 { i as __mf_15, 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 { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-BcPOQC5p.js";
6
+ import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
7
7
  //#region src/better-auth/core/components/better-auth-definition-editor.tsx
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 BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
10
- const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_25();
11
- const betterAuthPluginDefinitionSchema = __mf_23(createBetterAuthPluginDefinitionSchema);
10
+ const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
11
+ const betterAuthPluginDefinitionSchema = __mf_11(createBetterAuthPluginDefinitionSchema);
12
12
  const authDefinition = getAuthPluginDefinition(definition);
13
13
  const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
14
14
  label: role.name,
15
15
  value: role.id
16
16
  }));
17
- const defaultValues = __mf_31(() => {
17
+ const defaultValues = __mf_34(() => {
18
18
  if (pluginMetadata?.config) return pluginMetadata.config;
19
19
  return { additionalUserAdminRoles: [] };
20
20
  }, [pluginMetadata?.config]);
21
- const form = __mf_26$1({
21
+ const form = __mf_15({
22
22
  resolver: a(betterAuthPluginDefinitionSchema),
23
23
  defaultValues
24
24
  });
@@ -27,19 +27,19 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
27
27
  if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
28
28
  const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
29
29
  if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
30
- const partialDef = __mf_31(() => createBetterAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
31
- const diff = __mf_31(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
30
+ const partialDef = __mf_34(() => createBetterAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
31
+ const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
32
32
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
33
33
  const updatedData = { ...data };
34
- __mf_55(definitionContainer, partialDef)(draftConfig);
35
- __mf_26.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
34
+ __mf_242(definitionContainer, partialDef)(draftConfig);
35
+ __mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
36
36
  }, {
37
37
  successMessage: "Successfully saved Better Auth plugin!",
38
38
  onSuccess: () => {
39
39
  onSave();
40
40
  }
41
41
  }));
42
- __mf_20({
42
+ __mf_7({
43
43
  control,
44
44
  reset,
45
45
  onSubmit
@@ -54,15 +54,15 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
54
54
  className: "auth:max-w-6xl auth:flex-1",
55
55
  children: [/* @__PURE__ */ __mf_1("div", {
56
56
  className: "auth:pb-16",
57
- children: /* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
57
+ children: /* @__PURE__ */ __mf_2(__mf_195, { children: [/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
58
58
  className: "auth:space-y-6",
59
59
  children: /* @__PURE__ */ __mf_1(__mf_0, {
60
60
  diff,
61
61
  upToDateMessage: "All required models are already configured correctly. No changes needed."
62
62
  })
63
- })] }), /* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_179, { 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_178, {
63
+ })] }), /* @__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, {
64
64
  className: "auth:space-y-6",
65
- children: /* @__PURE__ */ __mf_1(__mf_145, {
65
+ children: /* @__PURE__ */ __mf_1(__mf_163, {
66
66
  label: "Additional User Admin Roles",
67
67
  name: "additionalUserAdminRoles",
68
68
  control,
@@ -70,7 +70,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
70
70
  description: "Additional roles (beyond admin) that can manage users and assign roles."
71
71
  })
72
72
  })] })] })
73
- }), /* @__PURE__ */ __mf_1(__mf_116, {
73
+ }), /* @__PURE__ */ __mf_1(__mf_125, {
74
74
  form,
75
75
  allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
76
76
  })]
@@ -82,11 +82,11 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
82
82
  //#region src/better-auth/core/web.ts
83
83
  var AUTH_FEATURE_NAME = "accounts/auth";
84
84
  var ACCOUNTS_FEATURE_NAME = "accounts/users";
85
- var web_default = __mf_142({
85
+ var web_default = __mf_55({
86
86
  name: "web",
87
87
  dependencies: {
88
- webConfig: __mf_263,
89
- pluginDefaults: __mf_233
88
+ webConfig: __mf_73,
89
+ pluginDefaults: __mf_71
90
90
  },
91
91
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
92
92
  webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
@@ -103,4 +103,4 @@ var web_default = __mf_142({
103
103
  //#endregion
104
104
  export { web_default as default };
105
105
 
106
- //# sourceMappingURL=web-DHv2aVpi.js.map
106
+ //# sourceMappingURL=web-CBVepebK.js.map
@@ -1,15 +1,15 @@
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_35, b as __mf_19, d as __mf_172, f as __mf_173, ft as __mf_27, g as __mf_179, h as __mf_178, ht as __mf_31, 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$1, 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-CXGct_48.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-Ci5_qYaj.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-BfSk5vRC.js";
4
- import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-8Exesd6T.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-DZIcwf2B.js";
6
- import { n as a, t as AuthConfigTabs } from "./styles-Cuq4wgvD.js";
7
- //#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.1.0/node_modules/@hookform/lenses/dist/rhf/index.js
8
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
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";
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__mf_owner__1__loadShare__react__loadShare__();
9
9
  function useFieldArray(props) {
10
10
  const original = useFieldArray$1(props);
11
11
  return {
12
- fields: __mf_31(() => {
12
+ fields: __mf_34(() => {
13
13
  if (!props.getTransformer) return original.fields;
14
14
  return original.fields.map(props.getTransformer);
15
15
  }, [original.fields, props.getTransformer]),
@@ -45,50 +45,51 @@ 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_11(createAuthRoleSchema);
50
51
  const { control, handleSubmit } = useForm({
51
- resolver: a(__mf_23(createAuthRoleSchema)),
52
+ resolver: a(authRoleSchema),
52
53
  values: role
53
54
  });
54
55
  const onSubmit = handleSubmit((data) => {
55
56
  onSave(data);
56
57
  onOpenChange?.(false);
57
58
  });
58
- const formId = __mf_27();
59
- return /* @__PURE__ */ __mf_1(__mf_73, {
59
+ const formId = __mf_30();
60
+ return /* @__PURE__ */ __mf_1(__mf_80, {
60
61
  open,
61
62
  onOpenChange,
62
- children: /* @__PURE__ */ __mf_1(__mf_75, { children: /* @__PURE__ */ __mf_2("form", {
63
+ children: /* @__PURE__ */ __mf_1(__mf_82, { children: /* @__PURE__ */ __mf_2("form", {
63
64
  id: formId,
64
65
  onSubmit: (e) => {
65
66
  e.stopPropagation();
66
67
  return onSubmit(e);
67
68
  },
68
69
  children: [
69
- /* @__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_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
71
  /* @__PURE__ */ __mf_2("div", {
71
72
  className: "auth:space-y-4 auth:py-4",
72
- children: [/* @__PURE__ */ __mf_1(__mf_124, {
73
+ children: [/* @__PURE__ */ __mf_1(__mf_133, {
73
74
  label: "Role Name",
74
75
  name: "name",
75
76
  control,
76
77
  placeholder: "Enter role name"
77
- }), /* @__PURE__ */ __mf_1(__mf_124, {
78
+ }), /* @__PURE__ */ __mf_1(__mf_133, {
78
79
  label: "Description",
79
80
  name: "comment",
80
81
  control,
81
82
  placeholder: "Describe this role's purpose"
82
83
  })]
83
84
  }),
84
- /* @__PURE__ */ __mf_2(__mf_77, { children: [/* @__PURE__ */ __mf_1(__mf_27$1, {
85
+ /* @__PURE__ */ __mf_2(__mf_84, { children: [/* @__PURE__ */ __mf_1(__mf_34$1, {
85
86
  type: "button",
86
87
  variant: "outline",
87
88
  onClick: () => {
88
89
  onOpenChange?.(false);
89
90
  },
90
91
  children: "Cancel"
91
- }), /* @__PURE__ */ __mf_2(__mf_27$1, {
92
+ }), /* @__PURE__ */ __mf_2(__mf_34$1, {
92
93
  form: formId,
93
94
  type: "submit",
94
95
  children: [isNew ? "Add" : "Update", " Role"]
@@ -99,15 +100,15 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
99
100
  }
100
101
  //#endregion
101
102
  //#region src/auth/core/components/role-editor-form/role-editor-form.tsx
102
- 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__();
103
104
  function RoleEditorForm({ className, control }) {
104
- const { requestConfirm } = __mf_270();
105
+ const { requestConfirm } = __mf_273();
105
106
  const { append, update, remove } = useFieldArray({
106
107
  control,
107
108
  name: "roles"
108
109
  });
109
- const [roleToEdit, setRoleToEdit] = __mf_35();
110
- const [isEditing, setIsEditing] = __mf_35(false);
110
+ const [roleToEdit, setRoleToEdit] = __mf_38();
111
+ const [isEditing, setIsEditing] = __mf_38(false);
111
112
  const roles = useWatch({
112
113
  control,
113
114
  name: "roles"
@@ -128,27 +129,27 @@ function RoleEditorForm({ className, control }) {
128
129
  }
129
130
  });
130
131
  }
131
- return /* @__PURE__ */ __mf_2(__mf_177, {
132
+ return /* @__PURE__ */ __mf_2(__mf_196, {
132
133
  className,
133
- 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_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
135
  className: "auth:space-y-4",
135
136
  children: [
136
- 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_189, { children: [/* @__PURE__ */ __mf_2(__mf_192, { children: [/* @__PURE__ */ __mf_1(__mf_191, {
137
138
  title: "Name",
138
139
  children: /* @__PURE__ */ __mf_1("div", {
139
140
  className: "auth:flex auth:items-center auth:gap-2",
140
141
  children: /* @__PURE__ */ __mf_1("span", { children: role.name })
141
142
  })
142
- }), /* @__PURE__ */ __mf_1(__mf_172, {
143
+ }), /* @__PURE__ */ __mf_1(__mf_191, {
143
144
  title: "Description",
144
145
  children: role.comment.trim() || /* @__PURE__ */ __mf_1("span", {
145
146
  className: "auth:text-muted-foreground",
146
147
  children: "No description"
147
148
  })
148
- })] }), /* @__PURE__ */ __mf_2(__mf_171, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_19, {
149
+ })] }), /* @__PURE__ */ __mf_2(__mf_190, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_24, {
149
150
  variant: "secondary",
150
151
  children: "Default Role"
151
- }), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_27$1, {
152
+ }), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_34$1, {
152
153
  variant: "ghost",
153
154
  size: "icon",
154
155
  title: "Edit",
@@ -158,7 +159,7 @@ function RoleEditorForm({ className, control }) {
158
159
  setIsEditing(true);
159
160
  },
160
161
  children: /* @__PURE__ */ __mf_1(MdEdit, {})
161
- }), /* @__PURE__ */ __mf_1(__mf_27$1, {
162
+ }), /* @__PURE__ */ __mf_1(__mf_34$1, {
162
163
  variant: "ghostDestructive",
163
164
  size: "icon",
164
165
  title: "Delete",
@@ -175,12 +176,12 @@ function RoleEditorForm({ className, control }) {
175
176
  isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
176
177
  onSave: handleSaveRole
177
178
  }),
178
- /* @__PURE__ */ __mf_2(__mf_27$1, {
179
+ /* @__PURE__ */ __mf_2(__mf_34$1, {
179
180
  variant: "secondary",
180
181
  size: "sm",
181
182
  onClick: () => {
182
183
  setRoleToEdit({
183
- id: __mf_59.generateNewId(),
184
+ id: __mf_145.generateNewId(),
184
185
  name: "",
185
186
  comment: "",
186
187
  builtIn: false
@@ -195,13 +196,13 @@ function RoleEditorForm({ className, control }) {
195
196
  }
196
197
  //#endregion
197
198
  //#region src/auth/core/components/auth-definition-editor.tsx
198
- 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__();
199
200
  function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
200
- const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_25();
201
- const authPluginDefinitionSchema = __mf_23(createAuthPluginDefinitionSchema);
202
- 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_58(schemaParserContext.pluginStore, metadata.key);
203
204
  const defaultImplementation = availableImplementations.find((i) => i.fullyQualifiedName === "@baseplate-dev/plugin-auth:local-auth") ?? availableImplementations[0];
204
- const defaultValues = __mf_31(() => {
205
+ const defaultValues = __mf_34(() => {
205
206
  if (pluginMetadata?.config) return pluginMetadata.config;
206
207
  const defaultAuthFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/auth");
207
208
  const defaultAccountsFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/users");
@@ -217,27 +218,27 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
217
218
  pluginMetadata?.config,
218
219
  defaultImplementation
219
220
  ]);
220
- const form = __mf_26$1({
221
+ const form = __mf_15({
221
222
  resolver: a(authPluginDefinitionSchema),
222
223
  defaultValues
223
224
  });
224
225
  const { control, reset, handleSubmit, watch } = form;
225
226
  const implementationPluginKey = watch("implementationPluginKey");
226
227
  const selectedPlugin = implementationPluginKey && availableImplementations.find((i) => i.key === implementationPluginKey);
227
- const isSelectedImplementationActive = !!__mf_26.byKey(definitionContainer.definition, implementationPluginKey);
228
+ const isSelectedImplementationActive = !!__mf_23.byKey(definitionContainer.definition, implementationPluginKey);
228
229
  const hasSelectedImplementationChanged = implementationPluginKey !== (pluginMetadata?.config)?.implementationPluginKey;
229
230
  const selectedImplementationUrl = selectedPlugin ? `/plugins/edit/${selectedPlugin.key}` : void 0;
230
231
  const navigate = __mf_92();
231
232
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
232
233
  const featureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
233
234
  const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
234
- __mf_26.setPluginConfig(draftConfig, metadata, {
235
+ __mf_23.setPluginConfig(draftConfig, metadata, {
235
236
  ...data,
236
237
  authFeatureRef: featureRef,
237
238
  accountsFeatureRef
238
239
  }, definitionContainer);
239
240
  const otherPlugins = availableImplementations.filter((i) => i.key !== implementationPluginKey);
240
- for (const plugin of otherPlugins) __mf_26.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
241
+ for (const plugin of otherPlugins) __mf_23.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
241
242
  }, {
242
243
  successMessage: `Successfully saved auth plugin! ${selectedImplementationUrl && !isSelectedImplementationActive ? `Please configure the provider plugin before syncing.` : ""}`,
243
244
  onSuccess: () => {
@@ -247,7 +248,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
247
248
  }, 100);
248
249
  }
249
250
  }));
250
- __mf_20({
251
+ __mf_7({
251
252
  control,
252
253
  reset,
253
254
  onSubmit
@@ -262,9 +263,9 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
262
263
  className: "auth:max-w-6xl auth:flex-1",
263
264
  children: [/* @__PURE__ */ __mf_2("div", {
264
265
  className: "auth:pb-16",
265
- children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_0$1, {
266
+ children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_4, {
266
267
  variant: "warning",
267
- 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: [
268
269
  "The selected implementation provider is not active. Please make sure",
269
270
  " ",
270
271
  /* @__PURE__ */ __mf_1(__mf_13, {
@@ -275,24 +276,24 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
275
276
  " ",
276
277
  "before syncing."
277
278
  ] }) })]
278
- }), /* @__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_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
280
  className: "auth:space-y-6",
280
281
  children: [
281
- /* @__PURE__ */ __mf_1(__mf_3, {
282
+ /* @__PURE__ */ __mf_1(__mf_2$1, {
282
283
  label: "Auth Feature Path",
283
284
  name: "authFeatureRef",
284
285
  control,
285
286
  canCreate: true,
286
287
  description: "Specify the feature path where auth infrastructure will be generated"
287
288
  }),
288
- /* @__PURE__ */ __mf_1(__mf_3, {
289
+ /* @__PURE__ */ __mf_1(__mf_2$1, {
289
290
  label: "Accounts Feature Path",
290
291
  name: "accountsFeatureRef",
291
292
  control,
292
293
  canCreate: true,
293
294
  description: "Specify the feature path where user account models will be generated"
294
295
  }),
295
- /* @__PURE__ */ __mf_1(__mf_185, {
296
+ /* @__PURE__ */ __mf_1(__mf_202, {
296
297
  label: "Authentication Provider",
297
298
  name: "implementationPluginKey",
298
299
  control,
@@ -313,7 +314,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
313
314
  })
314
315
  ]
315
316
  })] }), /* @__PURE__ */ __mf_1(RoleEditorForm, { control })] })]
316
- }), /* @__PURE__ */ __mf_1(__mf_116, {
317
+ }), /* @__PURE__ */ __mf_1(__mf_125, {
317
318
  form,
318
319
  allowSaveWithoutDirty: !pluginMetadata
319
320
  })]
@@ -327,11 +328,11 @@ var AUTH_FEATURE_NAME = "accounts/auth";
327
328
  var ACCOUNTS_FEATURE_NAME = "accounts/users";
328
329
  var AUTH_IMPL_FQN_PREFIX = "@baseplate-dev/plugin-auth:";
329
330
  var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
330
- var web_default = __mf_142({
331
+ var web_default = __mf_55({
331
332
  name: "web",
332
333
  dependencies: {
333
- webConfig: __mf_263,
334
- pluginDefaults: __mf_233
334
+ webConfig: __mf_73,
335
+ pluginDefaults: __mf_71
335
336
  },
336
337
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
337
338
  webConfig.components.set(pluginKey, AuthDefinitionEditor);
@@ -354,4 +355,4 @@ var web_default = __mf_142({
354
355
  //#endregion
355
356
  export { web_default as default };
356
357
 
357
- //# sourceMappingURL=web-CnB-sqCR.js.map
358
+ //# sourceMappingURL=web-Dgb85jhs.js.map