@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
- import { $ as __mf_2, C as __mf_267, D as __mf_57, E as __mf_272, G as useFormState, I as create, M as __mf_78, N as __mf_81, O as __mf_73, P as __mf_82, Q as __mf_1, W as useForm, _t as __mf_35, a as __mf_141, b as __mf_19, dt as __mf_26, ft as __mf_27$1, gt as __mf_34, ht as __mf_31, k as __mf_75, n as __mf_1$1, rt as __mf_11, t as __mf_0, tt as __mfDefaultExport, ut as __mf_23, w as __mf_27, x as __mf_2$1, 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 { O as isEqual, S as createFieldMapSpec, f as withPlaceholderSlots, n as FeatureUtils, rt as createPluginSpec, t as ModelUtils } from "./model-utils-dNFTOjqi.js";
1
+ import { C as __mf_34, D as __mf_6, E as __mf_55, G as useFormState, I as create, M as __mf_85, N as __mf_88, O as __mf_80, P as __mf_89, Q as __mf_2, S as __mf_275, T as __mf_5, W as useForm, Z as __mf_1, dt as __mf_30, et as __mfDefaultExport, gt as __mf_38, ht as __mf_37, i as __mf_159, k as __mf_82, lt as __mf_25, mt as __mf_34$1, t as __mf_0, tt as __mf_13, ut as __mf_28, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_4, y as __mf_24 } 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 { A as createFieldMapSpec, D as ModelUtils, F as createPluginSpec, O as FeatureUtils, P as isEqual, k as withPlaceholderSlots } 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
3
  //#region ../../packages/project-builder-lib/dist/web/components/definition-diff-alert.js
4
4
  var CHANGE_TYPE_BADGE_VARIANT = {
5
5
  added: "default",
@@ -14,18 +14,18 @@ function DefinitionDiffEntryRow({ entry }) {
14
14
  children: entry.label
15
15
  }), __mf_2("div", {
16
16
  className: "flex items-center gap-2",
17
- children: [__mf_1(__mf_19, {
17
+ children: [__mf_1(__mf_24, {
18
18
  variant: CHANGE_TYPE_BADGE_VARIANT[entry.type],
19
19
  children: entry.type
20
- }), __mf_2(__mf_73, { children: [__mf_1(__mf_82, {
21
- render: __mf_1(__mf_27, {
20
+ }), __mf_2(__mf_80, { children: [__mf_1(__mf_89, {
21
+ render: __mf_1(__mf_34, {
22
22
  variant: "ghost",
23
23
  size: "sm"
24
24
  }),
25
25
  children: "Details"
26
- }), __mf_2(__mf_75, {
26
+ }), __mf_2(__mf_82, {
27
27
  width: "xl",
28
- children: [__mf_1(__mf_78, { children: __mf_2(__mf_81, { children: [
28
+ children: [__mf_1(__mf_85, { children: __mf_2(__mf_88, { children: [
29
29
  entry.label,
30
30
  " — ",
31
31
  entry.type
@@ -37,7 +37,7 @@ function DefinitionDiffEntryRow({ entry }) {
37
37
  }) : entry.type === "removed" ? __mf_1("pre", {
38
38
  className: "text-xs whitespace-pre-wrap",
39
39
  children: JSON.stringify(entry.current, null, 2)
40
- }) : __mf_1(__mf_141, {
40
+ }) : __mf_1(__mf_159, {
41
41
  oldValue: entry.current,
42
42
  newValue: entry.merged
43
43
  })
@@ -47,9 +47,9 @@ function DefinitionDiffEntryRow({ entry }) {
47
47
  });
48
48
  }
49
49
  function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to date. No changes needed." }) {
50
- if (!diff.hasChanges) return __mf_2(__mf_0, {
50
+ if (!diff.hasChanges) return __mf_2(__mf_4, {
51
51
  variant: "default",
52
- children: [__mf_1(__mf_2$1, { children: "Up to Date" }), __mf_1(__mf_1$1, { children: upToDateMessage })]
52
+ children: [__mf_1(__mf_6, { children: "Up to Date" }), __mf_1(__mf_5, { children: upToDateMessage })]
53
53
  });
54
54
  return __mf_2("div", {
55
55
  className: "overflow-hidden rounded-lg border",
@@ -70,7 +70,7 @@ function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to da
70
70
  }
71
71
  //#endregion
72
72
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js
73
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
73
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
74
74
  var ProjectDefinitionContext = __mfDefaultExport.createContext(null);
75
75
  function useProjectDefinition() {
76
76
  const result = __mfDefaultExport.useContext(ProjectDefinitionContext);
@@ -79,7 +79,7 @@ function useProjectDefinition() {
79
79
  }
80
80
  //#endregion
81
81
  //#region ../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js
82
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
82
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
83
83
  function createCreateOption$1(value) {
84
84
  return {
85
85
  label: value,
@@ -89,8 +89,8 @@ function createCreateOption$1(value) {
89
89
  }
90
90
  function FeatureComboboxField({ canCreate, value, ...rest }) {
91
91
  const { definition } = useProjectDefinition();
92
- const [searchQuery, setSearchQuery] = __mf_35(value ? FeatureUtils.getFeatureById(definition, value)?.name : "");
93
- const featureOptions = __mf_31(() => {
92
+ const [searchQuery, setSearchQuery] = __mf_38(value ? FeatureUtils.getFeatureById(definition, value)?.name : "");
93
+ const featureOptions = __mf_34$1(() => {
94
94
  const baseFeatures = definition.features.map((feature) => ({
95
95
  label: feature.name,
96
96
  value: feature.id,
@@ -105,7 +105,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
105
105
  value,
106
106
  canCreate
107
107
  ]);
108
- return __mf_1(__mf_57, {
108
+ return __mf_1(__mf_55, {
109
109
  placeholder: "Select a feature",
110
110
  ...rest,
111
111
  inputValue: searchQuery,
@@ -116,7 +116,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
116
116
  });
117
117
  }
118
118
  function FeatureComboboxFieldController({ name, control, ...rest }) {
119
- const { field, fieldState: { error } } = __mf_272({
119
+ const { field, fieldState: { error } } = __mf_275({
120
120
  name,
121
121
  control
122
122
  }, rest);
@@ -130,7 +130,7 @@ function FeatureComboboxFieldController({ name, control, ...rest }) {
130
130
  }
131
131
  //#endregion
132
132
  //#region ../../packages/project-builder-lib/dist/web/components/model-combobox-field.js
133
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
133
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
134
134
  function createCreateOption(value) {
135
135
  return {
136
136
  label: `Create "${value}"`,
@@ -139,8 +139,8 @@ function createCreateOption(value) {
139
139
  }
140
140
  function ModelComboboxField({ canCreate, value, ...rest }) {
141
141
  const { definition } = useProjectDefinition();
142
- const [searchQuery, setSearchQuery] = __mf_35("");
143
- const modelOptions = __mf_31(() => {
142
+ const [searchQuery, setSearchQuery] = __mf_38("");
143
+ const modelOptions = __mf_34$1(() => {
144
144
  const baseModels = definition.models.map((model) => ({
145
145
  label: model.name,
146
146
  value: model.id
@@ -154,7 +154,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
154
154
  value,
155
155
  canCreate
156
156
  ]);
157
- return __mf_1(__mf_57, {
157
+ return __mf_1(__mf_55, {
158
158
  placeholder: "Select a model",
159
159
  ...rest,
160
160
  onInputValueChange: canCreate ? setSearchQuery : void 0,
@@ -163,7 +163,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
163
163
  });
164
164
  }
165
165
  function ModelComboboxFieldController({ name, control, ...rest }) {
166
- const { field, fieldState: { error } } = __mf_272({
166
+ const { field, fieldState: { error } } = __mf_275({
167
167
  name,
168
168
  control
169
169
  }, rest);
@@ -177,11 +177,11 @@ function ModelComboboxFieldController({ name, control, ...rest }) {
177
177
  }
178
178
  //#endregion
179
179
  //#region ../../packages/project-builder-lib/dist/web/contexts/error-handler.js
180
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
181
- var ErrorHandlerContext = __mf_11(null);
180
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
181
+ var ErrorHandlerContext = __mf_13(null);
182
182
  //#endregion
183
183
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js
184
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
184
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
185
185
  var useBlockerDialogState = create((set) => ({
186
186
  activeBlockers: [],
187
187
  addBlocker: (options) => {
@@ -201,7 +201,7 @@ var useBlockerDialogState = create((set) => ({
201
201
  function useBlockBeforeContinue() {
202
202
  const hasActiveBlockers = useBlockerDialogState((state) => state.activeBlockers.length > 0);
203
203
  const clearRequestedBlockers = useBlockerDialogState((state) => state.clearRequestedBlockers);
204
- __mf_26(() => () => {
204
+ __mf_28(() => () => {
205
205
  clearRequestedBlockers();
206
206
  }, [clearRequestedBlockers]);
207
207
  const requestBlocker = useBlockerDialogState((state) => state.requestBlocker);
@@ -211,10 +211,10 @@ function useBlockBeforeContinue() {
211
211
  return requestBlocker;
212
212
  }
213
213
  function useBlockerDialog(options) {
214
- const id = __mf_27$1();
214
+ const id = __mf_30();
215
215
  const addBlocker = useBlockerDialogState((state) => state.addBlocker);
216
216
  const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);
217
- __mf_26(() => {
217
+ __mf_28(() => {
218
218
  if (options.disableBlock) return;
219
219
  addBlocker({
220
220
  disableBlock: options.disableBlock,
@@ -258,9 +258,9 @@ function useBlockDirtyFormNavigate(formState, reset) {
258
258
  }
259
259
  //#endregion
260
260
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js
261
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
261
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
262
262
  function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
263
- const isDirtyRef = __mf_34(false);
263
+ const isDirtyRef = __mf_37(false);
264
264
  const formState = useFormState({ control });
265
265
  isDirtyRef.current = formState.isDirty;
266
266
  useBlockerDialog({
@@ -282,35 +282,35 @@ function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
282
282
  }
283
283
  //#endregion
284
284
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js
285
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
285
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
286
286
  function useDefinitionSchema(schemaCreator) {
287
287
  const { definitionSchemaParserContext } = useProjectDefinition();
288
- return __mf_31(() => {
288
+ return __mf_34$1(() => {
289
289
  if ("slotDefinition" in schemaCreator) return withPlaceholderSlots(schemaCreator)(definitionSchemaParserContext);
290
290
  return schemaCreator(definitionSchemaParserContext);
291
291
  }, [definitionSchemaParserContext, schemaCreator]);
292
292
  }
293
293
  //#endregion
294
294
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js
295
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
295
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
296
296
  function useErrorHandler() {
297
- const context = __mf_23(ErrorHandlerContext);
297
+ const context = __mf_25(ErrorHandlerContext);
298
298
  if (!context) throw new Error("useErrorHandler must be used within an ErrorHandlerContext");
299
299
  return context;
300
300
  }
301
301
  //#endregion
302
302
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js
303
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
303
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
304
304
  function useResettableForm(props) {
305
305
  const formProps = useForm(props);
306
306
  const { reset, formState } = formProps;
307
307
  const { isDirty } = formState;
308
308
  const { updatedExternally } = useProjectDefinition();
309
- const oldValues = __mf_34(void 0);
310
- __mf_26(() => {
309
+ const oldValues = __mf_37(void 0);
310
+ __mf_28(() => {
311
311
  if (oldValues.current && !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {
312
312
  reset(props?.defaultValues);
313
- if (isDirty && updatedExternally) __mf_267.warning("Contents were updated externally so form was reset!");
313
+ if (isDirty && updatedExternally) __mf_0.warning("Contents were updated externally so form was reset!");
314
314
  }
315
315
  if (!oldValues.current || !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) oldValues.current = { oldDefaultValues: props?.defaultValues };
316
316
  }, [
@@ -407,4 +407,4 @@ function setUndefinedIfEmpty(value) {
407
407
  //#endregion
408
408
  export { DefinitionDiffAlert, ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, createWebAppSettingsWebConfig, entityTypeUrlWebSpec, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm, webAppSchemaExtensionWebSpec };
409
409
 
410
- //# sourceMappingURL=web-BZd3bM0n.js.map
410
+ //# sourceMappingURL=web-EDeSquSP.js.map
@@ -1,19 +1,19 @@
1
- import { l as __mf_22, n as __mf_142 } 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";
2
- import { c as __mf_8, s as __mf_7 } 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";
1
+ import { m as __mf_21, 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";
2
+ import { a as __mf_17, o as __mf_19 } 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";
3
3
  import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
4
4
  //#region src/better-auth/admin/web.ts
5
- var web_default = __mf_142({
5
+ var web_default = __mf_55({
6
6
  name: "web",
7
7
  dependencies: {
8
- adminCrudActionWeb: __mf_7,
9
- adminCrudColumnWeb: __mf_8
8
+ adminCrudActionWeb: __mf_17,
9
+ adminCrudColumnWeb: __mf_19
10
10
  },
11
11
  initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
12
12
  adminCrudActionWeb.actions.addMany([{
13
13
  pluginKey,
14
14
  name: "manage-roles",
15
15
  label: "Manage Roles",
16
- isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
16
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
17
17
  getNewAction: () => ({
18
18
  type: "manage-roles",
19
19
  position: "dropdown"
@@ -22,7 +22,7 @@ var web_default = __mf_142({
22
22
  pluginKey,
23
23
  name: "reset-password",
24
24
  label: "Reset Password",
25
- isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
25
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
26
26
  getNewAction: () => ({
27
27
  type: "reset-password",
28
28
  position: "dropdown"
@@ -32,7 +32,7 @@ var web_default = __mf_142({
32
32
  pluginKey,
33
33
  name: "roles",
34
34
  label: "Roles",
35
- isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
35
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
36
36
  getNewColumn: () => ({
37
37
  type: "roles",
38
38
  label: "Roles"
@@ -43,4 +43,4 @@ var web_default = __mf_142({
43
43
  //#endregion
44
44
  export { web_default as default };
45
45
 
46
- //# sourceMappingURL=web-DNrWXjpS.js.map
46
+ //# sourceMappingURL=web-PqAcfBSy.js.map
@@ -1,12 +1,12 @@
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, 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 { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-x8oAsN1R.js";
6
- import "./auth-8qJtXAgU.js";
7
- import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-ChBrbazJ.js";
1
+ import { Q as __mf_2, Z as __mf_1, _ as __mf_200, 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 { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
6
+ import "./auth-CsHp2bQi.js";
7
+ import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-lw-gB4hU.js";
8
8
  //#region src/placeholder-auth/core/schema/models.ts
9
- init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
9
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
10
10
  function createPlaceholderAuthPartialDefinition(authFeatureName) {
11
11
  return { models: [{
12
12
  name: PLACEHOLDER_AUTH_MODELS.user,
@@ -41,33 +41,33 @@ function createPlaceholderAuthPartialDefinition(authFeatureName) {
41
41
  //#endregion
42
42
  //#region src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx
43
43
  function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
44
- const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_25();
44
+ const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
45
45
  const authDefinition = getAuthPluginDefinition(definition);
46
- const authPluginDefinitionSchema = __mf_23(createPlaceholderAuthPluginDefinitionSchema);
47
- const defaultValues = __mf_31(() => {
46
+ const authPluginDefinitionSchema = __mf_11(createPlaceholderAuthPluginDefinitionSchema);
47
+ const defaultValues = __mf_34(() => {
48
48
  if (pluginMetadata?.config) return pluginMetadata.config;
49
49
  return {};
50
50
  }, [pluginMetadata?.config]);
51
- const form = __mf_26$1({
51
+ const form = __mf_15({
52
52
  resolver: a(authPluginDefinitionSchema),
53
53
  defaultValues
54
54
  });
55
55
  const { control, reset, handleSubmit } = form;
56
56
  const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
57
57
  if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
58
- const partialDef = __mf_31(() => createPlaceholderAuthPartialDefinition(authFeature.name), [authFeature.name]);
59
- const diff = __mf_31(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
58
+ const partialDef = __mf_34(() => createPlaceholderAuthPartialDefinition(authFeature.name), [authFeature.name]);
59
+ const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
60
60
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
61
61
  const updatedData = { ...data };
62
- __mf_55(definitionContainer, partialDef)(draftConfig);
63
- __mf_26.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
62
+ __mf_242(definitionContainer, partialDef)(draftConfig);
63
+ __mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
64
64
  }, {
65
65
  successMessage: "Successfully saved placeholder auth plugin!",
66
66
  onSuccess: () => {
67
67
  onSave();
68
68
  }
69
69
  }));
70
- __mf_20({
70
+ __mf_7({
71
71
  control,
72
72
  reset,
73
73
  onSubmit
@@ -82,14 +82,14 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
82
82
  className: "auth:max-w-6xl auth:flex-1",
83
83
  children: [/* @__PURE__ */ __mf_1("div", {
84
84
  className: "auth:pb-16",
85
- children: /* @__PURE__ */ __mf_1(__mf_176, { children: /* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Placeholder Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
85
+ children: /* @__PURE__ */ __mf_1(__mf_195, { children: /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Placeholder Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
86
86
  className: "auth:space-y-6",
87
87
  children: /* @__PURE__ */ __mf_1(__mf_0, {
88
88
  diff,
89
89
  upToDateMessage: "All required models are already configured correctly. No changes needed."
90
90
  })
91
91
  })] }) })
92
- }), /* @__PURE__ */ __mf_1(__mf_116, {
92
+ }), /* @__PURE__ */ __mf_1(__mf_125, {
93
93
  form,
94
94
  allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
95
95
  })]
@@ -100,11 +100,11 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
100
100
  //#endregion
101
101
  //#region src/placeholder-auth/core/web.ts
102
102
  var AUTH_FEATURE_NAME = "accounts/auth";
103
- var web_default = __mf_142({
103
+ var web_default = __mf_55({
104
104
  name: "web",
105
105
  dependencies: {
106
- webConfig: __mf_263,
107
- pluginDefaults: __mf_233
106
+ webConfig: __mf_73,
107
+ pluginDefaults: __mf_71
108
108
  },
109
109
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
110
110
  webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);
@@ -120,4 +120,4 @@ var web_default = __mf_142({
120
120
  //#endregion
121
121
  export { web_default as default };
122
122
 
123
- //# sourceMappingURL=web-BgWG7dYl.js.map
123
+ //# sourceMappingURL=web-RhChfBw_.js.map
@@ -0,0 +1,59 @@
1
+ import { m as __mf_21, 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";
2
+ import { a as __mf_17, o as __mf_19 } 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";
3
+ import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
4
+ //#region src/local-auth/admin/web.ts
5
+ var web_default = __mf_55({
6
+ name: "web",
7
+ dependencies: {
8
+ adminCrudActionWeb: __mf_17,
9
+ adminCrudColumnWeb: __mf_19
10
+ },
11
+ initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
12
+ adminCrudActionWeb.actions.addMany([
13
+ {
14
+ pluginKey,
15
+ name: "manage-roles",
16
+ label: "Manage Roles",
17
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
18
+ getNewAction: () => ({
19
+ type: "manage-roles",
20
+ position: "dropdown"
21
+ })
22
+ },
23
+ {
24
+ pluginKey,
25
+ name: "reset-password",
26
+ label: "Reset Password",
27
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
28
+ getNewAction: () => ({
29
+ type: "reset-password",
30
+ position: "dropdown"
31
+ })
32
+ },
33
+ {
34
+ pluginKey,
35
+ name: "invite-user",
36
+ label: "Send Invite",
37
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
38
+ getNewAction: () => ({
39
+ type: "invite-user",
40
+ position: "dropdown"
41
+ })
42
+ }
43
+ ]);
44
+ adminCrudColumnWeb.columns.add({
45
+ pluginKey,
46
+ name: "roles",
47
+ label: "Roles",
48
+ isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
49
+ getNewColumn: () => ({
50
+ type: "roles",
51
+ label: "Roles"
52
+ })
53
+ });
54
+ }
55
+ });
56
+ //#endregion
57
+ export { web_default as default };
58
+
59
+ //# sourceMappingURL=web-kaD9AzNS.js.map
@@ -0,0 +1,148 @@
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";
7
+ //#region src/local-auth/core/components/local-auth-definition-editor.tsx
8
+ init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
9
+ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
10
+ const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
11
+ const authPluginDefinitionSchema = __mf_11(createLocalAuthPluginDefinitionSchema);
12
+ const authDefinition = getAuthPluginDefinition(definition);
13
+ const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
14
+ label: role.name,
15
+ value: role.id
16
+ }));
17
+ const defaultValues = __mf_34(() => {
18
+ if (pluginMetadata?.config) return pluginMetadata.config;
19
+ return {
20
+ additionalUserAdminRoles: [],
21
+ requireNameOnRegistration: false,
22
+ emailOtp: false
23
+ };
24
+ }, [pluginMetadata?.config]);
25
+ const form = __mf_15({
26
+ resolver: a(authPluginDefinitionSchema),
27
+ defaultValues
28
+ });
29
+ const { control, reset, handleSubmit } = form;
30
+ const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
31
+ if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
32
+ const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
33
+ if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
34
+ const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
35
+ const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
36
+ const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
37
+ const updatedData = { ...data };
38
+ __mf_242(definitionContainer, partialDef)(draftConfig);
39
+ __mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
40
+ }, {
41
+ successMessage: "Successfully saved auth plugin!",
42
+ onSuccess: () => {
43
+ onSave();
44
+ }
45
+ }));
46
+ __mf_7({
47
+ control,
48
+ reset,
49
+ onSubmit
50
+ });
51
+ return /* @__PURE__ */ __mf_2("div", {
52
+ className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
53
+ children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
54
+ className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
55
+ style: { "--action-bar-height": "52px" },
56
+ children: /* @__PURE__ */ __mf_2("form", {
57
+ onSubmit,
58
+ className: "auth:max-w-6xl auth:flex-1",
59
+ children: [/* @__PURE__ */ __mf_1("div", {
60
+ className: "auth:pb-16",
61
+ children: /* @__PURE__ */ __mf_2(__mf_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, {
63
+ className: "auth:space-y-6",
64
+ children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
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, {
67
+ className: "auth:space-y-6",
68
+ children: /* @__PURE__ */ __mf_1(__mf_163, {
69
+ label: "Additional User Admin Roles",
70
+ name: "additionalUserAdminRoles",
71
+ control,
72
+ options: roles,
73
+ description: "Additional roles (beyond admin) that can manage users and assign roles."
74
+ })
75
+ })] }),
76
+ /* @__PURE__ */ __mf_2(__mf_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, {
77
+ className: "auth:space-y-6",
78
+ children: /* @__PURE__ */ __mf_1(__mf_250, {
79
+ label: "Require Name on Registration",
80
+ name: "requireNameOnRegistration",
81
+ control,
82
+ description: "When enabled, users must provide their name when registering."
83
+ })
84
+ })] }),
85
+ /* @__PURE__ */ __mf_2(__mf_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, {
86
+ className: "auth:space-y-6",
87
+ children: /* @__PURE__ */ __mf_1(__mf_250, {
88
+ label: "Email Sign-in Codes",
89
+ name: "emailOtp",
90
+ control,
91
+ description: "When enabled, users can sign in with a single-use code emailed to them instead of a password. Signing in with a code creates an account if the address is new."
92
+ })
93
+ })] })
94
+ ] })
95
+ }), /* @__PURE__ */ __mf_1(__mf_125, {
96
+ form,
97
+ allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
98
+ })]
99
+ })
100
+ })]
101
+ });
102
+ }
103
+ //#endregion
104
+ //#region src/local-auth/core/components/local-auth-web-app-settings-form.tsx
105
+ /**
106
+ * Renders the local-auth per-app settings (disable registration toggle) in
107
+ * the web app settings page. Bound to `pluginData[pluginKey]` on the shared
108
+ * web app form.
109
+ */
110
+ function LocalAuthWebAppSettingsForm({ formProps, pluginKey }) {
111
+ return /* @__PURE__ */ __mf_1(__mf_250, {
112
+ label: "Disable Registration",
113
+ description: "When enabled, this site's sign-up page and link are hidden so users can only be added via an invite.",
114
+ control: formProps.control,
115
+ name: `pluginData.${pluginKey}.disableRegistration`
116
+ });
117
+ }
118
+ //#endregion
119
+ //#region src/local-auth/core/web.ts
120
+ var AUTH_FEATURE_NAME = "accounts/auth";
121
+ var ACCOUNTS_FEATURE_NAME = "accounts/users";
122
+ var web_default = __mf_55({
123
+ name: "web",
124
+ dependencies: {
125
+ webConfig: __mf_73,
126
+ pluginDefaults: __mf_71,
127
+ webAppSchemaExtensionWeb: __mf_26
128
+ },
129
+ initialize: ({ webConfig, pluginDefaults, webAppSchemaExtensionWeb }, { pluginKey }) => {
130
+ webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
131
+ webAppSchemaExtensionWeb.configs.set(pluginKey, __mf_25({
132
+ pluginKey,
133
+ Form: LocalAuthWebAppSettingsForm
134
+ }));
135
+ pluginDefaults.builders.set(pluginKey, ({ draft }) => {
136
+ __mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
137
+ __mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
138
+ return {
139
+ config: {},
140
+ partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
141
+ };
142
+ });
143
+ }
144
+ });
145
+ //#endregion
146
+ export { web_default as default };
147
+
148
+ //# sourceMappingURL=web-xJ-GnSkC.js.map
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-diff-viewer-continued@4.4.0_@types+react@19.1.3_react-dom@19.1.0_react@19.1.0_supports-color@10.2.2/node_modules/react-diff-viewer-continued/lib/esm/src/workerBundle.js
1
+ //#region ../../node_modules/.pnpm/react-diff-viewer-continued@4.4.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8_supports-color@10.2.2/node_modules/react-diff-viewer-continued/lib/esm/src/workerBundle.js
2
2
  /**
3
3
  * Bundled worker code as a string.
4
4
  * This allows us to create a Blob URL at runtime without needing a separate file.
@@ -7,4 +7,4 @@ var WORKER_CODE = "\"use strict\";(()=>{var hr=Object.defineProperty;var mr=(i,n
7
7
  //#endregion
8
8
  export { WORKER_CODE };
9
9
 
10
- //# sourceMappingURL=workerBundle-GFUata9j.js.map
10
+ //# sourceMappingURL=workerBundle-BjsY-uXx.js.map
@@ -15,8 +15,11 @@
15
15
  <meta charset="UTF-8" />
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
17
17
  <title>React Remote</title>
18
- <script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-659c976f.js"></script>
19
- <link rel="modulepreload" crossorigin href="./assets/hostInit-Bay0Y9UX.js"><link rel="modulepreload" crossorigin href="./assets/index-qso1IsKy.js"><link rel="modulepreload" crossorigin href="./remoteEntry.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js"></head>
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>
22
+ </head>
20
23
 
21
24
  <body>
22
25
  <div id="root"></div>
@@ -1,2 +1,2 @@
1
- import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js";
1
+ import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js";
2
2
  export { getExposes as get, init };