@baseplate-dev/plugin-auth 0.6.15 → 0.6.17

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 (147) 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 +14 -28
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
  6. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
  7. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
  10. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
  11. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +9 -2
  12. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +6 -2
  13. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +16 -2
  14. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +8 -1
  15. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +8 -1
  16. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +5 -1
  17. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -14
  18. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -84
  19. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -14
  20. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -140
  21. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -28
  22. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -14
  23. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -14
  24. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -14
  25. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
  26. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
  27. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
  28. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
  29. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
  30. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
  31. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
  32. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
  33. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
  34. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +1 -0
  35. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +2 -1
  36. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +6 -3
  37. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +2 -1
  38. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -3
  39. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
  40. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -2
  41. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -2
  42. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +2 -2
  43. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +6 -3
  44. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +6 -3
  45. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +7 -2
  46. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -1
  47. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +18 -3
  48. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +6 -1
  49. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +14 -3
  50. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +18 -16
  51. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +18 -16
  52. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +6 -6
  53. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +6 -6
  54. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +7 -14
  55. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +42 -84
  56. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +7 -14
  57. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +63 -126
  58. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -28
  59. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -14
  60. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -28
  61. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -14
  62. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +1 -1
  63. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +3 -1
  64. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-D2O_GHnM.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js} +24 -24
  65. 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-DPxqayXr.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js} +6 -5
  66. 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-DGL7vJhO.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js} +2 -2
  67. 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-IL2CfUDN.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js} +11120 -4828
  68. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-olZgW088.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js} +4179 -2900
  69. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js} +2 -3
  70. package/dist/web/assets/arduino-BXtgMpyb.js +21 -0
  71. package/dist/web/assets/auth-BxAE0rgh.js +1 -0
  72. package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
  73. package/dist/web/assets/basic-3mvohyEL.js +28 -0
  74. package/dist/web/assets/c-6gdx-Hqg.js +74 -0
  75. package/dist/web/assets/clike-Ds9lUsCq.js +41 -0
  76. package/dist/web/assets/{common-2qsch56z.js → common-ByxS61u8.js} +8 -6
  77. package/dist/web/assets/{common-D-CUPN3f.js → common-CKl_XlvH.js} +3 -3
  78. package/dist/web/assets/{common-BJslFOaI.js → common-TDf_PrjX.js} +3 -3
  79. package/dist/web/assets/{common-2sTWj7X2.js → common-UpVCKZeW.js} +8 -6
  80. package/dist/web/assets/{common-DtVPzGI9.js → common-crSwCD36.js} +3 -3
  81. package/dist/web/assets/{common-BY8yEk1M.js → common-iHaemino.js} +3 -3
  82. package/dist/web/assets/cpp-DRYAY5P6.js +82 -0
  83. package/dist/web/assets/csharp-RJBSoHJ6.js +301 -0
  84. package/dist/web/assets/css-D7TbgetL.js +70 -0
  85. package/dist/web/assets/diff-CtSa_15w.js +54 -0
  86. package/dist/web/assets/{dist-SBfmsOB2.js → dist-CrLSslv6.js} +2 -2
  87. package/dist/web/assets/{dist-DiQ4J8N0.js → dist-DY7ZXvq4.js} +1408 -916
  88. package/dist/web/assets/{get-auth-plugin-definition-gCzcUybB.js → get-auth-plugin-definition-kDCtXq_6.js} +2 -2
  89. package/dist/web/assets/go-D9nlw8GJ.js +36 -0
  90. package/dist/web/assets/{hostInit-BPDI3Q4j.js → hostInit-Cruek6c6.js} +2 -2
  91. package/dist/web/assets/ini-CU-wHLTy.js +51 -0
  92. package/dist/web/assets/java-Asfw0WtJ.js +116 -0
  93. package/dist/web/assets/javascript-fpnGEVws.js +124 -0
  94. package/dist/web/assets/json-DN8T4yFI.js +38 -0
  95. package/dist/web/assets/kotlin-zNWfDPVY.js +83 -0
  96. package/dist/web/assets/less-ZXX1tgaG.js +42 -0
  97. package/dist/web/assets/lua-D9bD4wrb.js +28 -0
  98. package/dist/web/assets/makefile-CKoRpler.js +40 -0
  99. package/dist/web/assets/markdown-ewV-vLcZ.js +278 -0
  100. package/dist/web/assets/markup-D2krQlDZ.js +176 -0
  101. package/dist/web/assets/markup-templating-c_XBo6vX.js +94 -0
  102. package/dist/web/assets/mf-entry-bootstrap-0-dfed0275.js +35 -0
  103. package/dist/web/assets/mf-entry-bootstrap-1-5275674a.js +35 -0
  104. package/dist/web/assets/{mf-entry-bootstrap-0-b337c957.js → mf-entry-bootstrap-2-39fb9255.js} +2 -2
  105. package/dist/web/assets/mf-entry-bootstrap-3-49e64336.js +35 -0
  106. package/dist/web/assets/{model-utils-BoeoBppL.js → model-utils-C0WDb_Ec.js} +269 -26
  107. package/dist/web/assets/{models-Bb8Sa9xa.js → models-BZmCbizK.js} +3 -3
  108. package/dist/web/assets/{models-CExR9mVk.js → models-DSvs_3bA.js} +3 -3
  109. package/dist/web/assets/objectivec-PkUOhxeb.js +25 -0
  110. package/dist/web/assets/perl-Cul_ma_h.js +92 -0
  111. package/dist/web/assets/php-CfWLJZIj.js +298 -0
  112. package/dist/web/assets/{plugin-definition-BSgRuyCf.js → plugin-definition-CYj29S3q.js} +3 -3
  113. package/dist/web/assets/{plugin-definition-DoLu-enC.js → plugin-definition-DOMmPL2Z.js} +3 -3
  114. package/dist/web/assets/python-CURlmZ7M.js +73 -0
  115. package/dist/web/assets/r-8lr7pbGm.js +30 -0
  116. package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
  117. package/dist/web/assets/{rolldown-runtime-FZ4Itg2g.js → rolldown-runtime-7_rZTKki.js} +1 -1
  118. package/dist/web/assets/ruby-BlM93DKO.js +175 -0
  119. package/dist/web/assets/rust-CpZXpaj0.js +107 -0
  120. package/dist/web/assets/sass-DG0YAnL7.js +65 -0
  121. package/dist/web/assets/scss-BDRIqhak.js +70 -0
  122. package/dist/web/assets/sql-C-bL8_gT.js +40 -0
  123. package/dist/web/assets/{styles-Cc26Bbxc.css → styles-DIj1cIPB.css} +119 -1
  124. package/dist/web/assets/{styles-DWNihayS.js → styles-yjbHBTlw.js} +8 -8
  125. package/dist/web/assets/swift-rQ52kfab.js +107 -0
  126. package/dist/web/assets/typescript-C5BVqltI.js +57 -0
  127. package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
  128. package/dist/web/assets/{virtualExposes-ZQ3-2Iup.js → virtualExposes-CbPBmicF.js} +1 -1
  129. package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-joyeTHHj.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js} +5 -5
  130. package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-Cxtxsg7w.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js} +15 -15
  131. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BzJkYZS3.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js} +15 -15
  132. package/dist/web/assets/{vite-preload-helper-iIio8xkS.js → vite-preload-helper-ARKYL6bp.js} +5 -1
  133. package/dist/web/assets/{web-pdVFZ-id.js → web-1eTcxMhf.js} +3 -3
  134. package/dist/web/assets/{web-sVeHdqQo.js → web-CDAKPPK9.js} +13 -13
  135. package/dist/web/assets/{web-CbftiK5A.js → web-CXAHKjIY.js} +19 -19
  136. package/dist/web/assets/{web-DUQ-iyMI.js → web-D0MSKfyv.js} +31 -30
  137. package/dist/web/assets/{web-BbZNg5Ko.js → web-DbeAaDTV.js} +16 -16
  138. package/dist/web/assets/{web-QvGnMr85.js → web-VqBA3jxZ.js} +13 -13
  139. package/dist/web/assets/{web-BWF6Fc7g.js → web-miDovYk_.js} +3 -3
  140. package/dist/web/assets/workerBundle-BjsY-uXx.js +10 -0
  141. package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
  142. package/dist/web/index.html +5 -2
  143. package/dist/web/remoteEntry.js +1 -1
  144. package/dist/web/remoteEntry.ssr.js +2 -2
  145. package/package.json +38 -41
  146. package/dist/web/assets/auth-BA-e6ORB.js +0 -1
  147. package/dist/web/assets/index-BocHdii2.js +0 -2
@@ -1,5 +1,5 @@
1
- import { $ as __mf_11, C as __mf_263, D as __mf_57, E as __mf_27, G as useFormState, I as create, M as __mf_78, N as __mf_81, O as __mf_73, P as __mf_82, T as __mf_268, W as useForm, Z as __mfDefaultExport, a as __mf_141, b as __mf_19, bt as __mf_2, ct as __mf_27$1, dt as __mf_31, ft as __mf_34, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, k as __mf_75, n as __mf_1$1, ot as __mf_23, pt as __mf_35, st as __mf_26, t as __mf_0, x as __mf_2$1, yt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-IL2CfUDN.js";
2
- import { O as isEqual, S as createFieldMapSpec, f as withPlaceholderSlots, n as FeatureUtils, nt as createPluginSpec, t as ModelUtils } from "./model-utils-BoeoBppL.js";
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_38, a as __mf_141, b as __mf_19, dt as __mf_28, ft as __mf_30, gt as __mf_37, ht as __mf_34, k as __mf_75, n as __mf_1$1, nt as __mf_13, t as __mf_0, tt as __mfDefaultExport, ut as __mf_25, 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-DRSNXPPo.js";
2
+ import { O as isEqual, S as createFieldMapSpec, f as withPlaceholderSlots, n as FeatureUtils, rt as createPluginSpec, t as ModelUtils } from "./model-utils-C0WDb_Ec.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",
@@ -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(() => {
94
94
  const baseFeatures = definition.features.map((feature) => ({
95
95
  label: feature.name,
96
96
  value: feature.id,
@@ -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_268({
119
+ const { field, fieldState: { error } } = __mf_272({
120
120
  name,
121
121
  control
122
122
  }, rest);
@@ -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(() => {
144
144
  const baseModels = definition.models.map((model) => ({
145
145
  label: model.name,
146
146
  value: model.id
@@ -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_268({
166
+ const { field, fieldState: { error } } = __mf_272({
167
167
  name,
168
168
  control
169
169
  }, rest);
@@ -178,7 +178,7 @@ function ModelComboboxFieldController({ name, control, ...rest }) {
178
178
  //#endregion
179
179
  //#region ../../packages/project-builder-lib/dist/web/contexts/error-handler.js
180
180
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
181
- var ErrorHandlerContext = __mf_11(null);
181
+ var ErrorHandlerContext = __mf_13(null);
182
182
  //#endregion
183
183
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js
184
184
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
@@ -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,
@@ -260,7 +260,7 @@ function useBlockDirtyFormNavigate(formState, reset) {
260
260
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js
261
261
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__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({
@@ -285,7 +285,7 @@ function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
285
285
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
286
286
  function useDefinitionSchema(schemaCreator) {
287
287
  const { definitionSchemaParserContext } = useProjectDefinition();
288
- return __mf_31(() => {
288
+ return __mf_34(() => {
289
289
  if ("slotDefinition" in schemaCreator) return withPlaceholderSlots(schemaCreator)(definitionSchemaParserContext);
290
290
  return schemaCreator(definitionSchemaParserContext);
291
291
  }, [definitionSchemaParserContext, schemaCreator]);
@@ -294,7 +294,7 @@ function useDefinitionSchema(schemaCreator) {
294
294
  //#region ../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js
295
295
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__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
  }
@@ -306,11 +306,11 @@ function useResettableForm(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_263.warning("Contents were updated externally so form was reset!");
313
+ if (isDirty && updatedExternally) __mf_267.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-CbftiK5A.js.map
410
+ //# sourceMappingURL=web-CXAHKjIY.js.map
@@ -1,15 +1,15 @@
1
- import { n as __mf_88, t as __mf_53 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-olZgW088.js";
2
- import { A as __mf_76, E as __mf_27$1, K as useWatch, L as MdAdd, M as __mf_78, N as __mf_81, O as __mf_73, R as MdDeleteOutline, U as useFieldArray$1, W as useForm, _ as __mf_176, b as __mf_19, bt as __mf_2, ct as __mf_27, d as __mf_168, dt as __mf_31, f as __mf_169, g as __mf_175, h as __mf_174, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, i as __mf_124, j as __mf_77, k as __mf_75, l as __mf_166, m as __mf_173, n as __mf_1$1, p as __mf_172, pt as __mf_35, r as __mf_116, t as __mf_0$1, u as __mf_167, v as __mf_177, vt as __mf_0, w as __mf_266, x as __mf_2$1, y as __mf_181, yt as __mf_1, 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-IL2CfUDN.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_262, 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-DPxqayXr.js";
4
- import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-BSgRuyCf.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-DGL7vJhO.js";
6
- import { n as a, t as AuthConfigTabs } from "./styles-DWNihayS.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
1
+ import { $ as __mf_2, A as __mf_76, K as useWatch, L as MdAdd, M as __mf_78, N as __mf_81, O as __mf_73, Q as __mf_1, R as MdDeleteOutline, T as __mf_270, U as useFieldArray$1, W as useForm, Z as __mf_0, _ as __mf_180, _t as __mf_38, b as __mf_19, d as __mf_172, f as __mf_173, ft as __mf_30, g as __mf_179, h as __mf_178, ht as __mf_34, i as __mf_124, j as __mf_77, k as __mf_75, l as __mf_170, m as __mf_177, n as __mf_1$1, p as __mf_176, r as __mf_116, t as __mf_0$1, u as __mf_171, v as __mf_181, w as __mf_27, x as __mf_2$1, y as __mf_185, yt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, z as MdEdit } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js";
2
+ import { n as __mf_92, t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js";
3
+ import { c as __mf_189, d as __mf_233, f as __mf_26, n as __mf_142, o as __mf_17, p as __mf_263, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js";
4
+ import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-CYj29S3q.js";
5
+ import { a as __mf_26$1, i as __mf_25, n as __mf_20, o as __mf_3, r as __mf_23 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js";
6
+ import { n as a, t as AuthConfigTabs } from "./styles-yjbHBTlw.js";
7
+ //#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.2.8/node_modules/@hookform/lenses/dist/rhf/index.js
8
8
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__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]),
@@ -47,15 +47,16 @@ function useFieldArray(props) {
47
47
  //#region src/auth/core/components/role-editor-form/role-dialog.tsx
48
48
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
49
49
  function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
50
+ const authRoleSchema = __mf_23(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
+ const formId = __mf_30();
59
60
  return /* @__PURE__ */ __mf_1(__mf_73, {
60
61
  open,
61
62
  onOpenChange,
@@ -81,14 +82,14 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
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_77, { children: [/* @__PURE__ */ __mf_1(__mf_27, {
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_27, {
92
93
  form: formId,
93
94
  type: "submit",
94
95
  children: [isNew ? "Add" : "Update", " Role"]
@@ -101,13 +102,13 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
101
102
  //#region src/auth/core/components/role-editor-form/role-editor-form.tsx
102
103
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
103
104
  function RoleEditorForm({ className, control }) {
104
- const { requestConfirm } = __mf_266();
105
+ const { requestConfirm } = __mf_270();
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_173, {
132
+ return /* @__PURE__ */ __mf_2(__mf_177, {
132
133
  className,
133
- children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_174, {
134
+ children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_178, {
134
135
  className: "auth:space-y-4",
135
136
  children: [
136
- roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_166, { children: [/* @__PURE__ */ __mf_2(__mf_169, { children: [/* @__PURE__ */ __mf_1(__mf_168, {
137
+ roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_170, { children: [/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_1(__mf_172, {
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_168, {
143
+ }), /* @__PURE__ */ __mf_1(__mf_172, {
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_167, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_19, {
149
+ })] }), /* @__PURE__ */ __mf_2(__mf_171, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_19, {
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_27, {
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_27, {
162
163
  variant: "ghostDestructive",
163
164
  size: "icon",
164
165
  title: "Delete",
@@ -175,7 +176,7 @@ 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_27, {
179
180
  variant: "secondary",
180
181
  size: "sm",
181
182
  onClick: () => {
@@ -201,7 +202,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
201
202
  const authPluginDefinitionSchema = __mf_23(createAuthPluginDefinitionSchema);
202
203
  const availableImplementations = __mf_189(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");
@@ -227,7 +228,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
227
228
  const isSelectedImplementationActive = !!__mf_26.byKey(definitionContainer.definition, implementationPluginKey);
228
229
  const hasSelectedImplementationChanged = implementationPluginKey !== (pluginMetadata?.config)?.implementationPluginKey;
229
230
  const selectedImplementationUrl = selectedPlugin ? `/plugins/edit/${selectedPlugin.key}` : void 0;
230
- const navigate = __mf_88();
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);
@@ -267,7 +268,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
267
268
  children: [/* @__PURE__ */ __mf_1(__mf_2$1, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(__mf_1$1, { children: /* @__PURE__ */ __mf_2("p", { children: [
268
269
  "The selected implementation provider is not active. Please make sure",
269
270
  " ",
270
- /* @__PURE__ */ __mf_1(__mf_53, {
271
+ /* @__PURE__ */ __mf_1(__mf_13, {
271
272
  to: selectedImplementationUrl,
272
273
  className: "auth:inline-block auth:font-medium",
273
274
  children: "configure the provider"
@@ -275,7 +276,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
275
276
  " ",
276
277
  "before syncing."
277
278
  ] }) })]
278
- }), /* @__PURE__ */ __mf_2(__mf_172, { children: [/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_174, {
279
+ }), /* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_178, {
279
280
  className: "auth:space-y-6",
280
281
  children: [
281
282
  /* @__PURE__ */ __mf_1(__mf_3, {
@@ -292,7 +293,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
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_181, {
296
+ /* @__PURE__ */ __mf_1(__mf_185, {
296
297
  label: "Authentication Provider",
297
298
  name: "implementationPluginKey",
298
299
  control,
@@ -330,7 +331,7 @@ var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
330
331
  var web_default = __mf_142({
331
332
  name: "web",
332
333
  dependencies: {
333
- webConfig: __mf_262,
334
+ webConfig: __mf_263,
334
335
  pluginDefaults: __mf_233
335
336
  },
336
337
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
@@ -354,4 +355,4 @@ var web_default = __mf_142({
354
355
  //#endregion
355
356
  export { web_default as default };
356
357
 
357
- //# sourceMappingURL=web-DUQ-iyMI.js.map
358
+ //# sourceMappingURL=web-D0MSKfyv.js.map
@@ -1,9 +1,9 @@
1
- import { S as __mf_230, _ as __mf_176, bt as __mf_2, dt as __mf_31, g as __mf_175, h as __mf_174, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, m as __mf_173, o as __mf_145, p as __mf_172, r as __mf_116, v as __mf_177, yt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-IL2CfUDN.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_262 } 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-DPxqayXr.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-DGL7vJhO.js";
4
- import { n as a, t as AuthConfigTabs } from "./styles-DWNihayS.js";
5
- import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-gCzcUybB.js";
6
- import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-Bb8Sa9xa.js";
1
+ import { $ as __mf_2, Q as __mf_1, S as __mf_234, _ as __mf_180, g as __mf_179, h as __mf_178, ht as __mf_34, 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-DRSNXPPo.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-CO5Pvo0y.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-37vlYRxk.js";
4
+ import { n as a, t as AuthConfigTabs } from "./styles-yjbHBTlw.js";
5
+ import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-kDCtXq_6.js";
6
+ import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-BZmCbizK.js";
7
7
  //#region src/local-auth/core/components/local-auth-definition-editor.tsx
8
8
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
9
9
  function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
@@ -14,7 +14,7 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
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 {
20
20
  additionalUserAdminRoles: [],
@@ -30,8 +30,8 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
30
30
  if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
31
31
  const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
32
32
  if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
33
- const partialDef = __mf_31(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
34
- const diff = __mf_31(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
33
+ const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
34
+ const diff = __mf_34(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
35
35
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
36
36
  const updatedData = { ...data };
37
37
  __mf_55(definitionContainer, partialDef)(draftConfig);
@@ -57,12 +57,12 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
57
57
  className: "auth:max-w-6xl auth:flex-1",
58
58
  children: [/* @__PURE__ */ __mf_1("div", {
59
59
  className: "auth:pb-16",
60
- children: /* @__PURE__ */ __mf_2(__mf_172, { children: [
61
- /* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_174, {
60
+ children: /* @__PURE__ */ __mf_2(__mf_176, { children: [
61
+ /* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
62
62
  className: "auth:space-y-6",
63
63
  children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
64
64
  })] }),
65
- /* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_175, { 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_174, {
65
+ /* @__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, {
66
66
  className: "auth:space-y-6",
67
67
  children: /* @__PURE__ */ __mf_1(__mf_145, {
68
68
  label: "Additional User Admin Roles",
@@ -72,9 +72,9 @@ function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSav
72
72
  description: "Additional roles (beyond admin) that can manage users and assign roles."
73
73
  })
74
74
  })] }),
75
- /* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_174, {
75
+ /* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
76
76
  className: "auth:space-y-6",
77
- children: /* @__PURE__ */ __mf_1(__mf_230, {
77
+ children: /* @__PURE__ */ __mf_1(__mf_234, {
78
78
  label: "Require Name on Registration",
79
79
  name: "requireNameOnRegistration",
80
80
  control,
@@ -97,7 +97,7 @@ var ACCOUNTS_FEATURE_NAME = "accounts/users";
97
97
  var web_default = __mf_142({
98
98
  name: "web",
99
99
  dependencies: {
100
- webConfig: __mf_262,
100
+ webConfig: __mf_263,
101
101
  pluginDefaults: __mf_233
102
102
  },
103
103
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
@@ -115,4 +115,4 @@ var web_default = __mf_142({
115
115
  //#endregion
116
116
  export { web_default as default };
117
117
 
118
- //# sourceMappingURL=web-BbZNg5Ko.js.map
118
+ //# sourceMappingURL=web-DbeAaDTV.js.map
@@ -1,9 +1,9 @@
1
- import { _ as __mf_176, bt as __mf_2, dt as __mf_31, g as __mf_175, h as __mf_174, ht as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, m as __mf_173, o as __mf_145, p as __mf_172, r as __mf_116, v as __mf_177, yt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-IL2CfUDN.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_262 } 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-DPxqayXr.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-DGL7vJhO.js";
4
- import { n as a, t as AuthConfigTabs } from "./styles-DWNihayS.js";
5
- import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-CExR9mVk.js";
6
- import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-gCzcUybB.js";
1
+ import { $ as __mf_2, Q as __mf_1, _ as __mf_180, g as __mf_179, h as __mf_178, ht as __mf_34, 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-DRSNXPPo.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-CO5Pvo0y.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-37vlYRxk.js";
4
+ import { n as a, t as AuthConfigTabs } from "./styles-yjbHBTlw.js";
5
+ import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-DSvs_3bA.js";
6
+ import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-kDCtXq_6.js";
7
7
  //#region src/better-auth/core/components/better-auth-definition-editor.tsx
8
8
  init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
9
9
  function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
@@ -14,7 +14,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
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]);
@@ -27,8 +27,8 @@ 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_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
32
32
  const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
33
33
  const updatedData = { ...data };
34
34
  __mf_55(definitionContainer, partialDef)(draftConfig);
@@ -54,13 +54,13 @@ 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_172, { children: [/* @__PURE__ */ __mf_2(__mf_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_175, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_174, {
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, {
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_173, { children: [/* @__PURE__ */ __mf_2(__mf_176, { children: [/* @__PURE__ */ __mf_1(__mf_177, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_175, { 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_174, {
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, {
64
64
  className: "auth:space-y-6",
65
65
  children: /* @__PURE__ */ __mf_1(__mf_145, {
66
66
  label: "Additional User Admin Roles",
@@ -85,7 +85,7 @@ var ACCOUNTS_FEATURE_NAME = "accounts/users";
85
85
  var web_default = __mf_142({
86
86
  name: "web",
87
87
  dependencies: {
88
- webConfig: __mf_262,
88
+ webConfig: __mf_263,
89
89
  pluginDefaults: __mf_233
90
90
  },
91
91
  initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
@@ -103,4 +103,4 @@ var web_default = __mf_142({
103
103
  //#endregion
104
104
  export { web_default as default };
105
105
 
106
- //# sourceMappingURL=web-QvGnMr85.js.map
106
+ //# sourceMappingURL=web-VqBA3jxZ.js.map
@@ -1,5 +1,5 @@
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-DPxqayXr.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-DGL7vJhO.js";
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-CO5Pvo0y.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-37vlYRxk.js";
3
3
  import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
4
4
  //#region src/local-auth/admin/web.ts
5
5
  var web_default = __mf_142({
@@ -43,4 +43,4 @@ var web_default = __mf_142({
43
43
  //#endregion
44
44
  export { web_default as default };
45
45
 
46
- //# sourceMappingURL=web-BWF6Fc7g.js.map
46
+ //# sourceMappingURL=web-miDovYk_.js.map