@baseplate-dev/plugin-auth 0.6.17 → 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.
- package/CHANGELOG.md +20 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +6 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +6 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +6 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +6 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +6 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +36 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +6 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +60 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +12 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +6 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +6 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +6 -0
- package/dist/local-auth/admin/common.js +6 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +531 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +540 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +276 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +263 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +69 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +6 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +6 -0
- package/dist/local-auth/admin/node.js +13 -0
- package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
- package/dist/local-auth/admin/web.js +8 -0
- package/dist/local-auth/core/common.js +7 -2
- package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +66 -6
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +188 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +66 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +192 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +82 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +138 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +209 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +3 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +3 -2
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +5 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +20 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +13 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +17 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +20 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +66 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +134 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +184 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +8 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +840 -268
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +608 -283
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +148 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +264 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +311 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +2 -9
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +12 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +12 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +6 -0
- package/dist/local-auth/core/node.js +24 -6
- package/dist/local-auth/core/schema/migrations.d.ts +3 -0
- package/dist/local-auth/core/schema/migrations.js +36 -0
- package/dist/local-auth/core/schema/models.js +8 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +1 -0
- package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
- package/dist/local-auth/core/schema/web-app-schema.js +16 -0
- package/dist/local-auth/core/web.js +8 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js} +42 -34
- package/dist/web/assets/{dist-DY7ZXvq4.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js} +16717 -373
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js} +90 -38
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js} +1645 -921
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.js} +212 -57
- package/dist/web/assets/auth-CsHp2bQi.js +1 -0
- package/dist/web/assets/common-BGTuTgx7.js +43 -0
- package/dist/web/assets/common-C8_sC5pp.js +70 -0
- package/dist/web/assets/{common-ByxS61u8.js → common-Co5lW_TK.js} +10 -10
- package/dist/web/assets/{common-iHaemino.js → common-CoLuMS7U.js} +6 -6
- package/dist/web/assets/common-Dueu_1NG.js +36 -0
- package/dist/web/assets/{common-TDf_PrjX.js → common-N3skPbzk.js} +10 -10
- package/dist/web/assets/{dist-CrLSslv6.js → dist-DQd1TAJX.js} +273 -132
- package/dist/web/assets/{get-auth-plugin-definition-kDCtXq_6.js → get-auth-plugin-definition-DyokUVjX.js} +3 -3
- package/dist/web/assets/{hostInit-Cruek6c6.js → hostInit-BCYmw0H5.js} +32 -5
- package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-3ede9334.js} +2 -1
- package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-3da85eea.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-32e24e11.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-a3cfea9d.js} +3 -2
- package/dist/web/assets/{models-DSvs_3bA.js → models-BcPOQC5p.js} +4 -5
- package/dist/web/assets/{models-BZmCbizK.js → models-BcUgOGGn.js} +11 -6
- package/dist/web/assets/{plugin-definition-CYj29S3q.js → plugin-definition-D1EImXIf.js} +9 -10
- package/dist/web/assets/plugin-definition-lw-gB4hU.js +10 -0
- package/dist/web/assets/{styles-yjbHBTlw.js → styles-EOyEbGA4.js} +9 -10
- package/dist/web/assets/{virtualExposes-CbPBmicF.js → virtualExposes-DWORnjyA.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js +747 -0
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js} +13 -13
- package/dist/web/assets/{web-VqBA3jxZ.js → web-CBVepebK.js} +22 -22
- package/dist/web/assets/{web-D0MSKfyv.js → web-Dgb85jhs.js} +47 -47
- package/dist/web/assets/{web-CXAHKjIY.js → web-EDeSquSP.js} +28 -28
- package/dist/web/assets/{web-1eTcxMhf.js → web-PqAcfBSy.js} +9 -9
- package/dist/web/assets/{web-CDAKPPK9.js → web-RhChfBw_.js} +21 -21
- package/dist/web/assets/web-kaD9AzNS.js +59 -0
- package/dist/web/assets/web-xJ-GnSkC.js +148 -0
- package/dist/web/index.html +5 -5
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +14 -14
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js +0 -384
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js +0 -13566
- package/dist/web/assets/auth-BxAE0rgh.js +0 -1
- package/dist/web/assets/common-CKl_XlvH.js +0 -37
- package/dist/web/assets/common-UpVCKZeW.js +0 -41
- package/dist/web/assets/common-crSwCD36.js +0 -37
- package/dist/web/assets/model-utils-C0WDb_Ec.js +0 -1599
- package/dist/web/assets/plugin-definition-DOMmPL2Z.js +0 -11
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js +0 -259
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js +0 -129
- package/dist/web/assets/web-DbeAaDTV.js +0 -118
- package/dist/web/assets/web-miDovYk_.js +0 -46
- package/dist/web/remoteEntry.ssr.js +0 -43
|
@@ -31,7 +31,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
31
31
|
"./auth/core/web": async () => {
|
|
32
32
|
await injectCssAssets("./auth/core/web");
|
|
33
33
|
await Promise.all([]);
|
|
34
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
34
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-Dgb85jhs.js"), __vite__mapDeps([0]), import.meta.url));
|
|
35
35
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
36
36
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
37
37
|
const exportModule = {};
|
|
@@ -45,7 +45,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
45
45
|
"./auth/core/common": async () => {
|
|
46
46
|
await injectCssAssets("./auth/core/common");
|
|
47
47
|
await Promise.all([]);
|
|
48
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
48
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-N3skPbzk.js"), [], import.meta.url));
|
|
49
49
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
50
50
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
51
51
|
const exportModule = {};
|
|
@@ -59,7 +59,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
59
59
|
"./better-auth/core/web": async () => {
|
|
60
60
|
await injectCssAssets("./better-auth/core/web");
|
|
61
61
|
await Promise.all([]);
|
|
62
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
62
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CBVepebK.js"), __vite__mapDeps([0]), import.meta.url));
|
|
63
63
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
64
64
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
65
65
|
const exportModule = {};
|
|
@@ -73,7 +73,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
73
73
|
"./better-auth/core/common": async () => {
|
|
74
74
|
await injectCssAssets("./better-auth/core/common");
|
|
75
75
|
await Promise.all([]);
|
|
76
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
76
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-Co5lW_TK.js"), [], import.meta.url));
|
|
77
77
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
78
78
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
79
79
|
const exportModule = {};
|
|
@@ -87,7 +87,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
87
87
|
"./better-auth/admin/web": async () => {
|
|
88
88
|
await injectCssAssets("./better-auth/admin/web");
|
|
89
89
|
await Promise.all([]);
|
|
90
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
90
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-PqAcfBSy.js"), [], import.meta.url));
|
|
91
91
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
92
92
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
93
93
|
const exportModule = {};
|
|
@@ -101,7 +101,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
101
101
|
"./better-auth/admin/common": async () => {
|
|
102
102
|
await injectCssAssets("./better-auth/admin/common");
|
|
103
103
|
await Promise.all([]);
|
|
104
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
104
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-Dueu_1NG.js"), [], import.meta.url));
|
|
105
105
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
106
106
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
107
107
|
const exportModule = {};
|
|
@@ -115,7 +115,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
115
115
|
"./local-auth/core/web": async () => {
|
|
116
116
|
await injectCssAssets("./local-auth/core/web");
|
|
117
117
|
await Promise.all([]);
|
|
118
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
118
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-xJ-GnSkC.js"), __vite__mapDeps([0]), import.meta.url));
|
|
119
119
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
120
120
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
121
121
|
const exportModule = {};
|
|
@@ -129,7 +129,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
129
129
|
"./local-auth/core/common": async () => {
|
|
130
130
|
await injectCssAssets("./local-auth/core/common");
|
|
131
131
|
await Promise.all([]);
|
|
132
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
132
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-C8_sC5pp.js"), [], import.meta.url));
|
|
133
133
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
134
134
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
135
135
|
const exportModule = {};
|
|
@@ -143,7 +143,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
143
143
|
"./local-auth/admin/web": async () => {
|
|
144
144
|
await injectCssAssets("./local-auth/admin/web");
|
|
145
145
|
await Promise.all([]);
|
|
146
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
146
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-kaD9AzNS.js"), [], import.meta.url));
|
|
147
147
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
148
148
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
149
149
|
const exportModule = {};
|
|
@@ -157,7 +157,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
157
157
|
"./local-auth/admin/common": async () => {
|
|
158
158
|
await injectCssAssets("./local-auth/admin/common");
|
|
159
159
|
await Promise.all([]);
|
|
160
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
160
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-BGTuTgx7.js"), [], import.meta.url));
|
|
161
161
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
162
162
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
163
163
|
const exportModule = {};
|
|
@@ -171,7 +171,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
171
171
|
"./placeholder-auth/core/web": async () => {
|
|
172
172
|
await injectCssAssets("./placeholder-auth/core/web");
|
|
173
173
|
await Promise.all([]);
|
|
174
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
174
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-RhChfBw_.js"), __vite__mapDeps([0]), import.meta.url));
|
|
175
175
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
176
176
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
177
177
|
const exportModule = {};
|
|
@@ -185,7 +185,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
185
185
|
"./placeholder-auth/core/common": async () => {
|
|
186
186
|
await injectCssAssets("./placeholder-auth/core/common");
|
|
187
187
|
await Promise.all([]);
|
|
188
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
188
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-CoLuMS7U.js"), [], import.meta.url));
|
|
189
189
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
190
190
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
191
191
|
const exportModule = {};
|
|
@@ -200,4 +200,4 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
200
200
|
//#endregion
|
|
201
201
|
export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as t };
|
|
202
202
|
|
|
203
|
-
//# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
203
|
+
//# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
5
|
-
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-
|
|
6
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
1
|
+
import { Q as __mf_2, Z as __mf_1, _ as __mf_200, a as __mf_163, f as __mf_195, g as __mf_199, h as __mf_198, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js";
|
|
2
|
+
import { T as __mf_73, _ as __mf_242, f as __mf_17, g as __mf_238, h as __mf_23, w as __mf_71, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
3
|
+
import { i as __mf_15, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.js";
|
|
5
|
+
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-BcPOQC5p.js";
|
|
6
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
|
|
7
7
|
//#region src/better-auth/core/components/better-auth-definition-editor.tsx
|
|
8
|
-
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
9
9
|
function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } =
|
|
11
|
-
const betterAuthPluginDefinitionSchema =
|
|
10
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
|
|
11
|
+
const betterAuthPluginDefinitionSchema = __mf_11(createBetterAuthPluginDefinitionSchema);
|
|
12
12
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
13
13
|
const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
|
|
14
14
|
label: role.name,
|
|
@@ -18,7 +18,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
18
18
|
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
19
19
|
return { additionalUserAdminRoles: [] };
|
|
20
20
|
}, [pluginMetadata?.config]);
|
|
21
|
-
const form =
|
|
21
|
+
const form = __mf_15({
|
|
22
22
|
resolver: a(betterAuthPluginDefinitionSchema),
|
|
23
23
|
defaultValues
|
|
24
24
|
});
|
|
@@ -28,18 +28,18 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
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
30
|
const partialDef = __mf_34(() => createBetterAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
31
|
-
const diff = __mf_34(() =>
|
|
31
|
+
const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
32
32
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
33
33
|
const updatedData = { ...data };
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
__mf_242(definitionContainer, partialDef)(draftConfig);
|
|
35
|
+
__mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
36
36
|
}, {
|
|
37
37
|
successMessage: "Successfully saved Better Auth plugin!",
|
|
38
38
|
onSuccess: () => {
|
|
39
39
|
onSave();
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
|
-
|
|
42
|
+
__mf_7({
|
|
43
43
|
control,
|
|
44
44
|
reset,
|
|
45
45
|
onSubmit
|
|
@@ -54,15 +54,15 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
54
54
|
className: "auth:max-w-6xl auth:flex-1",
|
|
55
55
|
children: [/* @__PURE__ */ __mf_1("div", {
|
|
56
56
|
className: "auth:pb-16",
|
|
57
|
-
children: /* @__PURE__ */ __mf_2(
|
|
57
|
+
children: /* @__PURE__ */ __mf_2(__mf_195, { children: [/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
58
58
|
className: "auth:space-y-6",
|
|
59
59
|
children: /* @__PURE__ */ __mf_1(__mf_0, {
|
|
60
60
|
diff,
|
|
61
61
|
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
62
62
|
})
|
|
63
|
-
})] }), /* @__PURE__ */ __mf_2(
|
|
63
|
+
})] }), /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
64
64
|
className: "auth:space-y-6",
|
|
65
|
-
children: /* @__PURE__ */ __mf_1(
|
|
65
|
+
children: /* @__PURE__ */ __mf_1(__mf_163, {
|
|
66
66
|
label: "Additional User Admin Roles",
|
|
67
67
|
name: "additionalUserAdminRoles",
|
|
68
68
|
control,
|
|
@@ -70,7 +70,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
70
70
|
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
71
71
|
})
|
|
72
72
|
})] })] })
|
|
73
|
-
}), /* @__PURE__ */ __mf_1(
|
|
73
|
+
}), /* @__PURE__ */ __mf_1(__mf_125, {
|
|
74
74
|
form,
|
|
75
75
|
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
76
76
|
})]
|
|
@@ -82,11 +82,11 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
82
82
|
//#region src/better-auth/core/web.ts
|
|
83
83
|
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
84
84
|
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
85
|
-
var web_default =
|
|
85
|
+
var web_default = __mf_55({
|
|
86
86
|
name: "web",
|
|
87
87
|
dependencies: {
|
|
88
|
-
webConfig:
|
|
89
|
-
pluginDefaults:
|
|
88
|
+
webConfig: __mf_73,
|
|
89
|
+
pluginDefaults: __mf_71
|
|
90
90
|
},
|
|
91
91
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
92
92
|
webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
|
|
@@ -103,4 +103,4 @@ var web_default = __mf_142({
|
|
|
103
103
|
//#endregion
|
|
104
104
|
export { web_default as default };
|
|
105
105
|
|
|
106
|
-
//# sourceMappingURL=web-
|
|
106
|
+
//# sourceMappingURL=web-CBVepebK.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as __mf_92, t as __mf_13 } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-
|
|
5
|
-
import {
|
|
6
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
1
|
+
import { A as __mf_83, C as __mf_34$1, D as __mf_6, K as useWatch, L as MdAdd, M as __mf_85, N as __mf_88, O as __mf_80, Q as __mf_2, R as MdDeleteOutline, T as __mf_5, U as useFieldArray$1, W as useForm, X as __mf_0, Z as __mf_1, _ as __mf_200, c as __mf_189, d as __mf_192, dt as __mf_30, f as __mf_195, g as __mf_199, gt as __mf_38, h as __mf_198, j as __mf_84, k as __mf_82, l as __mf_190, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, r as __mf_133, u as __mf_191, v as __mf_202, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_4, x as __mf_273, y as __mf_24, z as MdEdit } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js";
|
|
2
|
+
import { n as __mf_92, t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.js";
|
|
3
|
+
import { T as __mf_73, b as __mf_58, c as __mf_145, f as __mf_17, h as __mf_23, w as __mf_71, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
4
|
+
import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-D1EImXIf.js";
|
|
5
|
+
import { i as __mf_15, n as __mf_11, r as __mf_14, s as __mf_2$1, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
6
|
+
import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.2.8/node_modules/@hookform/lenses/dist/rhf/index.js
|
|
8
|
-
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
9
9
|
function useFieldArray(props) {
|
|
10
10
|
const original = useFieldArray$1(props);
|
|
11
11
|
return {
|
|
@@ -45,9 +45,9 @@ function useFieldArray(props) {
|
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/auth/core/components/role-editor-form/role-dialog.tsx
|
|
48
|
-
|
|
48
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
49
49
|
function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
50
|
-
const authRoleSchema =
|
|
50
|
+
const authRoleSchema = __mf_11(createAuthRoleSchema);
|
|
51
51
|
const { control, handleSubmit } = useForm({
|
|
52
52
|
resolver: a(authRoleSchema),
|
|
53
53
|
values: role
|
|
@@ -57,39 +57,39 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
|
57
57
|
onOpenChange?.(false);
|
|
58
58
|
});
|
|
59
59
|
const formId = __mf_30();
|
|
60
|
-
return /* @__PURE__ */ __mf_1(
|
|
60
|
+
return /* @__PURE__ */ __mf_1(__mf_80, {
|
|
61
61
|
open,
|
|
62
62
|
onOpenChange,
|
|
63
|
-
children: /* @__PURE__ */ __mf_1(
|
|
63
|
+
children: /* @__PURE__ */ __mf_1(__mf_82, { children: /* @__PURE__ */ __mf_2("form", {
|
|
64
64
|
id: formId,
|
|
65
65
|
onSubmit: (e) => {
|
|
66
66
|
e.stopPropagation();
|
|
67
67
|
return onSubmit(e);
|
|
68
68
|
},
|
|
69
69
|
children: [
|
|
70
|
-
/* @__PURE__ */ __mf_2(
|
|
70
|
+
/* @__PURE__ */ __mf_2(__mf_85, { children: [/* @__PURE__ */ __mf_1(__mf_88, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(__mf_83, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })] }),
|
|
71
71
|
/* @__PURE__ */ __mf_2("div", {
|
|
72
72
|
className: "auth:space-y-4 auth:py-4",
|
|
73
|
-
children: [/* @__PURE__ */ __mf_1(
|
|
73
|
+
children: [/* @__PURE__ */ __mf_1(__mf_133, {
|
|
74
74
|
label: "Role Name",
|
|
75
75
|
name: "name",
|
|
76
76
|
control,
|
|
77
77
|
placeholder: "Enter role name"
|
|
78
|
-
}), /* @__PURE__ */ __mf_1(
|
|
78
|
+
}), /* @__PURE__ */ __mf_1(__mf_133, {
|
|
79
79
|
label: "Description",
|
|
80
80
|
name: "comment",
|
|
81
81
|
control,
|
|
82
82
|
placeholder: "Describe this role's purpose"
|
|
83
83
|
})]
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */ __mf_2(
|
|
85
|
+
/* @__PURE__ */ __mf_2(__mf_84, { children: [/* @__PURE__ */ __mf_1(__mf_34$1, {
|
|
86
86
|
type: "button",
|
|
87
87
|
variant: "outline",
|
|
88
88
|
onClick: () => {
|
|
89
89
|
onOpenChange?.(false);
|
|
90
90
|
},
|
|
91
91
|
children: "Cancel"
|
|
92
|
-
}), /* @__PURE__ */ __mf_2(
|
|
92
|
+
}), /* @__PURE__ */ __mf_2(__mf_34$1, {
|
|
93
93
|
form: formId,
|
|
94
94
|
type: "submit",
|
|
95
95
|
children: [isNew ? "Add" : "Update", " Role"]
|
|
@@ -100,9 +100,9 @@ function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/auth/core/components/role-editor-form/role-editor-form.tsx
|
|
103
|
-
|
|
103
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
104
104
|
function RoleEditorForm({ className, control }) {
|
|
105
|
-
const { requestConfirm } =
|
|
105
|
+
const { requestConfirm } = __mf_273();
|
|
106
106
|
const { append, update, remove } = useFieldArray({
|
|
107
107
|
control,
|
|
108
108
|
name: "roles"
|
|
@@ -129,27 +129,27 @@ function RoleEditorForm({ className, control }) {
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
return /* @__PURE__ */ __mf_2(
|
|
132
|
+
return /* @__PURE__ */ __mf_2(__mf_196, {
|
|
133
133
|
className,
|
|
134
|
-
children: [/* @__PURE__ */ __mf_2(
|
|
134
|
+
children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "User Roles" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(__mf_197, {
|
|
135
135
|
className: "auth:space-y-4",
|
|
136
136
|
children: [
|
|
137
|
-
roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(
|
|
137
|
+
roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(__mf_189, { children: [/* @__PURE__ */ __mf_2(__mf_192, { children: [/* @__PURE__ */ __mf_1(__mf_191, {
|
|
138
138
|
title: "Name",
|
|
139
139
|
children: /* @__PURE__ */ __mf_1("div", {
|
|
140
140
|
className: "auth:flex auth:items-center auth:gap-2",
|
|
141
141
|
children: /* @__PURE__ */ __mf_1("span", { children: role.name })
|
|
142
142
|
})
|
|
143
|
-
}), /* @__PURE__ */ __mf_1(
|
|
143
|
+
}), /* @__PURE__ */ __mf_1(__mf_191, {
|
|
144
144
|
title: "Description",
|
|
145
145
|
children: role.comment.trim() || /* @__PURE__ */ __mf_1("span", {
|
|
146
146
|
className: "auth:text-muted-foreground",
|
|
147
147
|
children: "No description"
|
|
148
148
|
})
|
|
149
|
-
})] }), /* @__PURE__ */ __mf_2(
|
|
149
|
+
})] }), /* @__PURE__ */ __mf_2(__mf_190, { children: [role.builtIn && /* @__PURE__ */ __mf_1(__mf_24, {
|
|
150
150
|
variant: "secondary",
|
|
151
151
|
children: "Default Role"
|
|
152
|
-
}), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(
|
|
152
|
+
}), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(__mf_34$1, {
|
|
153
153
|
variant: "ghost",
|
|
154
154
|
size: "icon",
|
|
155
155
|
title: "Edit",
|
|
@@ -159,7 +159,7 @@ function RoleEditorForm({ className, control }) {
|
|
|
159
159
|
setIsEditing(true);
|
|
160
160
|
},
|
|
161
161
|
children: /* @__PURE__ */ __mf_1(MdEdit, {})
|
|
162
|
-
}), /* @__PURE__ */ __mf_1(
|
|
162
|
+
}), /* @__PURE__ */ __mf_1(__mf_34$1, {
|
|
163
163
|
variant: "ghostDestructive",
|
|
164
164
|
size: "icon",
|
|
165
165
|
title: "Delete",
|
|
@@ -176,12 +176,12 @@ function RoleEditorForm({ className, control }) {
|
|
|
176
176
|
isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
|
|
177
177
|
onSave: handleSaveRole
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */ __mf_2(
|
|
179
|
+
/* @__PURE__ */ __mf_2(__mf_34$1, {
|
|
180
180
|
variant: "secondary",
|
|
181
181
|
size: "sm",
|
|
182
182
|
onClick: () => {
|
|
183
183
|
setRoleToEdit({
|
|
184
|
-
id:
|
|
184
|
+
id: __mf_145.generateNewId(),
|
|
185
185
|
name: "",
|
|
186
186
|
comment: "",
|
|
187
187
|
builtIn: false
|
|
@@ -196,11 +196,11 @@ function RoleEditorForm({ className, control }) {
|
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
198
|
//#region src/auth/core/components/auth-definition-editor.tsx
|
|
199
|
-
|
|
199
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
200
200
|
function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
201
|
-
const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } =
|
|
202
|
-
const authPluginDefinitionSchema =
|
|
203
|
-
const availableImplementations =
|
|
201
|
+
const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_14();
|
|
202
|
+
const authPluginDefinitionSchema = __mf_11(createAuthPluginDefinitionSchema);
|
|
203
|
+
const availableImplementations = __mf_58(schemaParserContext.pluginStore, metadata.key);
|
|
204
204
|
const defaultImplementation = availableImplementations.find((i) => i.fullyQualifiedName === "@baseplate-dev/plugin-auth:local-auth") ?? availableImplementations[0];
|
|
205
205
|
const defaultValues = __mf_34(() => {
|
|
206
206
|
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
@@ -218,27 +218,27 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
218
218
|
pluginMetadata?.config,
|
|
219
219
|
defaultImplementation
|
|
220
220
|
]);
|
|
221
|
-
const form =
|
|
221
|
+
const form = __mf_15({
|
|
222
222
|
resolver: a(authPluginDefinitionSchema),
|
|
223
223
|
defaultValues
|
|
224
224
|
});
|
|
225
225
|
const { control, reset, handleSubmit, watch } = form;
|
|
226
226
|
const implementationPluginKey = watch("implementationPluginKey");
|
|
227
227
|
const selectedPlugin = implementationPluginKey && availableImplementations.find((i) => i.key === implementationPluginKey);
|
|
228
|
-
const isSelectedImplementationActive = !!
|
|
228
|
+
const isSelectedImplementationActive = !!__mf_23.byKey(definitionContainer.definition, implementationPluginKey);
|
|
229
229
|
const hasSelectedImplementationChanged = implementationPluginKey !== (pluginMetadata?.config)?.implementationPluginKey;
|
|
230
230
|
const selectedImplementationUrl = selectedPlugin ? `/plugins/edit/${selectedPlugin.key}` : void 0;
|
|
231
231
|
const navigate = __mf_92();
|
|
232
232
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
233
233
|
const featureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
|
|
234
234
|
const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
|
|
235
|
-
|
|
235
|
+
__mf_23.setPluginConfig(draftConfig, metadata, {
|
|
236
236
|
...data,
|
|
237
237
|
authFeatureRef: featureRef,
|
|
238
238
|
accountsFeatureRef
|
|
239
239
|
}, definitionContainer);
|
|
240
240
|
const otherPlugins = availableImplementations.filter((i) => i.key !== implementationPluginKey);
|
|
241
|
-
for (const plugin of otherPlugins)
|
|
241
|
+
for (const plugin of otherPlugins) __mf_23.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
|
|
242
242
|
}, {
|
|
243
243
|
successMessage: `Successfully saved auth plugin! ${selectedImplementationUrl && !isSelectedImplementationActive ? `Please configure the provider plugin before syncing.` : ""}`,
|
|
244
244
|
onSuccess: () => {
|
|
@@ -248,7 +248,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
248
248
|
}, 100);
|
|
249
249
|
}
|
|
250
250
|
}));
|
|
251
|
-
|
|
251
|
+
__mf_7({
|
|
252
252
|
control,
|
|
253
253
|
reset,
|
|
254
254
|
onSubmit
|
|
@@ -263,9 +263,9 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
263
263
|
className: "auth:max-w-6xl auth:flex-1",
|
|
264
264
|
children: [/* @__PURE__ */ __mf_2("div", {
|
|
265
265
|
className: "auth:pb-16",
|
|
266
|
-
children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(
|
|
266
|
+
children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(__mf_4, {
|
|
267
267
|
variant: "warning",
|
|
268
|
-
children: [/* @__PURE__ */ __mf_1(
|
|
268
|
+
children: [/* @__PURE__ */ __mf_1(__mf_6, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(__mf_5, { children: /* @__PURE__ */ __mf_2("p", { children: [
|
|
269
269
|
"The selected implementation provider is not active. Please make sure",
|
|
270
270
|
" ",
|
|
271
271
|
/* @__PURE__ */ __mf_1(__mf_13, {
|
|
@@ -276,24 +276,24 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
276
276
|
" ",
|
|
277
277
|
"before syncing."
|
|
278
278
|
] }) })]
|
|
279
|
-
}), /* @__PURE__ */ __mf_2(
|
|
279
|
+
}), /* @__PURE__ */ __mf_2(__mf_195, { children: [/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "General Settings" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(__mf_197, {
|
|
280
280
|
className: "auth:space-y-6",
|
|
281
281
|
children: [
|
|
282
|
-
/* @__PURE__ */ __mf_1(
|
|
282
|
+
/* @__PURE__ */ __mf_1(__mf_2$1, {
|
|
283
283
|
label: "Auth Feature Path",
|
|
284
284
|
name: "authFeatureRef",
|
|
285
285
|
control,
|
|
286
286
|
canCreate: true,
|
|
287
287
|
description: "Specify the feature path where auth infrastructure will be generated"
|
|
288
288
|
}),
|
|
289
|
-
/* @__PURE__ */ __mf_1(
|
|
289
|
+
/* @__PURE__ */ __mf_1(__mf_2$1, {
|
|
290
290
|
label: "Accounts Feature Path",
|
|
291
291
|
name: "accountsFeatureRef",
|
|
292
292
|
control,
|
|
293
293
|
canCreate: true,
|
|
294
294
|
description: "Specify the feature path where user account models will be generated"
|
|
295
295
|
}),
|
|
296
|
-
/* @__PURE__ */ __mf_1(
|
|
296
|
+
/* @__PURE__ */ __mf_1(__mf_202, {
|
|
297
297
|
label: "Authentication Provider",
|
|
298
298
|
name: "implementationPluginKey",
|
|
299
299
|
control,
|
|
@@ -314,7 +314,7 @@ function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave })
|
|
|
314
314
|
})
|
|
315
315
|
]
|
|
316
316
|
})] }), /* @__PURE__ */ __mf_1(RoleEditorForm, { control })] })]
|
|
317
|
-
}), /* @__PURE__ */ __mf_1(
|
|
317
|
+
}), /* @__PURE__ */ __mf_1(__mf_125, {
|
|
318
318
|
form,
|
|
319
319
|
allowSaveWithoutDirty: !pluginMetadata
|
|
320
320
|
})]
|
|
@@ -328,11 +328,11 @@ var AUTH_FEATURE_NAME = "accounts/auth";
|
|
|
328
328
|
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
329
329
|
var AUTH_IMPL_FQN_PREFIX = "@baseplate-dev/plugin-auth:";
|
|
330
330
|
var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
|
|
331
|
-
var web_default =
|
|
331
|
+
var web_default = __mf_55({
|
|
332
332
|
name: "web",
|
|
333
333
|
dependencies: {
|
|
334
|
-
webConfig:
|
|
335
|
-
pluginDefaults:
|
|
334
|
+
webConfig: __mf_73,
|
|
335
|
+
pluginDefaults: __mf_71
|
|
336
336
|
},
|
|
337
337
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
338
338
|
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
@@ -355,4 +355,4 @@ var web_default = __mf_142({
|
|
|
355
355
|
//#endregion
|
|
356
356
|
export { web_default as default };
|
|
357
357
|
|
|
358
|
-
//# sourceMappingURL=web-
|
|
358
|
+
//# sourceMappingURL=web-Dgb85jhs.js.map
|