@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as __mf_34, D as __mf_6, E as __mf_55, G as useFormState, I as create, M as __mf_85, N as __mf_88, O as __mf_80, P as __mf_89, Q as __mf_2, S as __mf_275, T as __mf_5, W as useForm, Z as __mf_1, dt as __mf_30, et as __mfDefaultExport, gt as __mf_38, ht as __mf_37, i as __mf_159, k as __mf_82, lt as __mf_25, mt as __mf_34$1, t as __mf_0, tt as __mf_13, ut as __mf_28, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_4, y as __mf_24 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js";
|
|
2
|
+
import { A as createFieldMapSpec, D as ModelUtils, F as createPluginSpec, O as FeatureUtils, P as isEqual, k as withPlaceholderSlots } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
3
3
|
//#region ../../packages/project-builder-lib/dist/web/components/definition-diff-alert.js
|
|
4
4
|
var CHANGE_TYPE_BADGE_VARIANT = {
|
|
5
5
|
added: "default",
|
|
@@ -14,18 +14,18 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
14
14
|
children: entry.label
|
|
15
15
|
}), __mf_2("div", {
|
|
16
16
|
className: "flex items-center gap-2",
|
|
17
|
-
children: [__mf_1(
|
|
17
|
+
children: [__mf_1(__mf_24, {
|
|
18
18
|
variant: CHANGE_TYPE_BADGE_VARIANT[entry.type],
|
|
19
19
|
children: entry.type
|
|
20
|
-
}), __mf_2(
|
|
21
|
-
render: __mf_1(
|
|
20
|
+
}), __mf_2(__mf_80, { children: [__mf_1(__mf_89, {
|
|
21
|
+
render: __mf_1(__mf_34, {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
size: "sm"
|
|
24
24
|
}),
|
|
25
25
|
children: "Details"
|
|
26
|
-
}), __mf_2(
|
|
26
|
+
}), __mf_2(__mf_82, {
|
|
27
27
|
width: "xl",
|
|
28
|
-
children: [__mf_1(
|
|
28
|
+
children: [__mf_1(__mf_85, { children: __mf_2(__mf_88, { children: [
|
|
29
29
|
entry.label,
|
|
30
30
|
" — ",
|
|
31
31
|
entry.type
|
|
@@ -37,7 +37,7 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
37
37
|
}) : entry.type === "removed" ? __mf_1("pre", {
|
|
38
38
|
className: "text-xs whitespace-pre-wrap",
|
|
39
39
|
children: JSON.stringify(entry.current, null, 2)
|
|
40
|
-
}) : __mf_1(
|
|
40
|
+
}) : __mf_1(__mf_159, {
|
|
41
41
|
oldValue: entry.current,
|
|
42
42
|
newValue: entry.merged
|
|
43
43
|
})
|
|
@@ -47,9 +47,9 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to date. No changes needed." }) {
|
|
50
|
-
if (!diff.hasChanges) return __mf_2(
|
|
50
|
+
if (!diff.hasChanges) return __mf_2(__mf_4, {
|
|
51
51
|
variant: "default",
|
|
52
|
-
children: [__mf_1(
|
|
52
|
+
children: [__mf_1(__mf_6, { children: "Up to Date" }), __mf_1(__mf_5, { children: upToDateMessage })]
|
|
53
53
|
});
|
|
54
54
|
return __mf_2("div", {
|
|
55
55
|
className: "overflow-hidden rounded-lg border",
|
|
@@ -70,7 +70,7 @@ function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to da
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js
|
|
73
|
-
|
|
73
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
74
74
|
var ProjectDefinitionContext = __mfDefaultExport.createContext(null);
|
|
75
75
|
function useProjectDefinition() {
|
|
76
76
|
const result = __mfDefaultExport.useContext(ProjectDefinitionContext);
|
|
@@ -79,7 +79,7 @@ function useProjectDefinition() {
|
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region ../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js
|
|
82
|
-
|
|
82
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
83
83
|
function createCreateOption$1(value) {
|
|
84
84
|
return {
|
|
85
85
|
label: value,
|
|
@@ -90,7 +90,7 @@ function createCreateOption$1(value) {
|
|
|
90
90
|
function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
91
91
|
const { definition } = useProjectDefinition();
|
|
92
92
|
const [searchQuery, setSearchQuery] = __mf_38(value ? FeatureUtils.getFeatureById(definition, value)?.name : "");
|
|
93
|
-
const featureOptions = __mf_34(() => {
|
|
93
|
+
const featureOptions = __mf_34$1(() => {
|
|
94
94
|
const baseFeatures = definition.features.map((feature) => ({
|
|
95
95
|
label: feature.name,
|
|
96
96
|
value: feature.id,
|
|
@@ -105,7 +105,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
105
105
|
value,
|
|
106
106
|
canCreate
|
|
107
107
|
]);
|
|
108
|
-
return __mf_1(
|
|
108
|
+
return __mf_1(__mf_55, {
|
|
109
109
|
placeholder: "Select a feature",
|
|
110
110
|
...rest,
|
|
111
111
|
inputValue: searchQuery,
|
|
@@ -116,7 +116,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function FeatureComboboxFieldController({ name, control, ...rest }) {
|
|
119
|
-
const { field, fieldState: { error } } =
|
|
119
|
+
const { field, fieldState: { error } } = __mf_275({
|
|
120
120
|
name,
|
|
121
121
|
control
|
|
122
122
|
}, rest);
|
|
@@ -130,7 +130,7 @@ function FeatureComboboxFieldController({ name, control, ...rest }) {
|
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region ../../packages/project-builder-lib/dist/web/components/model-combobox-field.js
|
|
133
|
-
|
|
133
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
134
134
|
function createCreateOption(value) {
|
|
135
135
|
return {
|
|
136
136
|
label: `Create "${value}"`,
|
|
@@ -140,7 +140,7 @@ function createCreateOption(value) {
|
|
|
140
140
|
function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
141
141
|
const { definition } = useProjectDefinition();
|
|
142
142
|
const [searchQuery, setSearchQuery] = __mf_38("");
|
|
143
|
-
const modelOptions = __mf_34(() => {
|
|
143
|
+
const modelOptions = __mf_34$1(() => {
|
|
144
144
|
const baseModels = definition.models.map((model) => ({
|
|
145
145
|
label: model.name,
|
|
146
146
|
value: model.id
|
|
@@ -154,7 +154,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
154
154
|
value,
|
|
155
155
|
canCreate
|
|
156
156
|
]);
|
|
157
|
-
return __mf_1(
|
|
157
|
+
return __mf_1(__mf_55, {
|
|
158
158
|
placeholder: "Select a model",
|
|
159
159
|
...rest,
|
|
160
160
|
onInputValueChange: canCreate ? setSearchQuery : void 0,
|
|
@@ -163,7 +163,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function ModelComboboxFieldController({ name, control, ...rest }) {
|
|
166
|
-
const { field, fieldState: { error } } =
|
|
166
|
+
const { field, fieldState: { error } } = __mf_275({
|
|
167
167
|
name,
|
|
168
168
|
control
|
|
169
169
|
}, rest);
|
|
@@ -177,11 +177,11 @@ function ModelComboboxFieldController({ name, control, ...rest }) {
|
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../packages/project-builder-lib/dist/web/contexts/error-handler.js
|
|
180
|
-
|
|
180
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
181
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__mf_owner__1__loadShare__react__loadShare__();
|
|
185
185
|
var useBlockerDialogState = create((set) => ({
|
|
186
186
|
activeBlockers: [],
|
|
187
187
|
addBlocker: (options) => {
|
|
@@ -258,7 +258,7 @@ function useBlockDirtyFormNavigate(formState, reset) {
|
|
|
258
258
|
}
|
|
259
259
|
//#endregion
|
|
260
260
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js
|
|
261
|
-
|
|
261
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
262
262
|
function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
|
|
263
263
|
const isDirtyRef = __mf_37(false);
|
|
264
264
|
const formState = useFormState({ control });
|
|
@@ -282,17 +282,17 @@ function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
|
|
|
282
282
|
}
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js
|
|
285
|
-
|
|
285
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
286
286
|
function useDefinitionSchema(schemaCreator) {
|
|
287
287
|
const { definitionSchemaParserContext } = useProjectDefinition();
|
|
288
|
-
return __mf_34(() => {
|
|
288
|
+
return __mf_34$1(() => {
|
|
289
289
|
if ("slotDefinition" in schemaCreator) return withPlaceholderSlots(schemaCreator)(definitionSchemaParserContext);
|
|
290
290
|
return schemaCreator(definitionSchemaParserContext);
|
|
291
291
|
}, [definitionSchemaParserContext, schemaCreator]);
|
|
292
292
|
}
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js
|
|
295
|
-
|
|
295
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
296
296
|
function useErrorHandler() {
|
|
297
297
|
const context = __mf_25(ErrorHandlerContext);
|
|
298
298
|
if (!context) throw new Error("useErrorHandler must be used within an ErrorHandlerContext");
|
|
@@ -300,7 +300,7 @@ function useErrorHandler() {
|
|
|
300
300
|
}
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js
|
|
303
|
-
|
|
303
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
304
304
|
function useResettableForm(props) {
|
|
305
305
|
const formProps = useForm(props);
|
|
306
306
|
const { reset, formState } = formProps;
|
|
@@ -310,7 +310,7 @@ function useResettableForm(props) {
|
|
|
310
310
|
__mf_28(() => {
|
|
311
311
|
if (oldValues.current && !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {
|
|
312
312
|
reset(props?.defaultValues);
|
|
313
|
-
if (isDirty && updatedExternally)
|
|
313
|
+
if (isDirty && updatedExternally) __mf_0.warning("Contents were updated externally so form was reset!");
|
|
314
314
|
}
|
|
315
315
|
if (!oldValues.current || !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) oldValues.current = { oldDefaultValues: props?.defaultValues };
|
|
316
316
|
}, [
|
|
@@ -407,4 +407,4 @@ function setUndefinedIfEmpty(value) {
|
|
|
407
407
|
//#endregion
|
|
408
408
|
export { DefinitionDiffAlert, ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, createWebAppSettingsWebConfig, entityTypeUrlWebSpec, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm, webAppSchemaExtensionWebSpec };
|
|
409
409
|
|
|
410
|
-
//# sourceMappingURL=web-
|
|
410
|
+
//# sourceMappingURL=web-EDeSquSP.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as __mf_21, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
2
|
+
import { a as __mf_17, o as __mf_19 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
3
3
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
4
4
|
//#region src/better-auth/admin/web.ts
|
|
5
|
-
var web_default =
|
|
5
|
+
var web_default = __mf_55({
|
|
6
6
|
name: "web",
|
|
7
7
|
dependencies: {
|
|
8
|
-
adminCrudActionWeb:
|
|
9
|
-
adminCrudColumnWeb:
|
|
8
|
+
adminCrudActionWeb: __mf_17,
|
|
9
|
+
adminCrudColumnWeb: __mf_19
|
|
10
10
|
},
|
|
11
11
|
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
12
|
adminCrudActionWeb.actions.addMany([{
|
|
13
13
|
pluginKey,
|
|
14
14
|
name: "manage-roles",
|
|
15
15
|
label: "Manage Roles",
|
|
16
|
-
isAvailableForModel: (definition, modelId) =>
|
|
16
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
|
|
17
17
|
getNewAction: () => ({
|
|
18
18
|
type: "manage-roles",
|
|
19
19
|
position: "dropdown"
|
|
@@ -22,7 +22,7 @@ var web_default = __mf_142({
|
|
|
22
22
|
pluginKey,
|
|
23
23
|
name: "reset-password",
|
|
24
24
|
label: "Reset Password",
|
|
25
|
-
isAvailableForModel: (definition, modelId) =>
|
|
25
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
|
|
26
26
|
getNewAction: () => ({
|
|
27
27
|
type: "reset-password",
|
|
28
28
|
position: "dropdown"
|
|
@@ -32,7 +32,7 @@ var web_default = __mf_142({
|
|
|
32
32
|
pluginKey,
|
|
33
33
|
name: "roles",
|
|
34
34
|
label: "Roles",
|
|
35
|
-
isAvailableForModel: (definition, modelId) =>
|
|
35
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === BETTER_AUTH_MODELS.user,
|
|
36
36
|
getNewColumn: () => ({
|
|
37
37
|
type: "roles",
|
|
38
38
|
label: "Roles"
|
|
@@ -43,4 +43,4 @@ var web_default = __mf_142({
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { web_default as default };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=web-
|
|
46
|
+
//# sourceMappingURL=web-PqAcfBSy.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
5
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
6
|
-
import "./auth-
|
|
7
|
-
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-
|
|
1
|
+
import { Q as __mf_2, Z as __mf_1, _ as __mf_200, f as __mf_195, g as __mf_199, h as __mf_198, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js";
|
|
2
|
+
import { T as __mf_73, _ as __mf_242, f as __mf_17, g as __mf_238, h as __mf_23, w as __mf_71, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
3
|
+
import { i as __mf_15, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.js";
|
|
5
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
|
|
6
|
+
import "./auth-CsHp2bQi.js";
|
|
7
|
+
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-lw-gB4hU.js";
|
|
8
8
|
//#region src/placeholder-auth/core/schema/models.ts
|
|
9
|
-
|
|
9
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
10
10
|
function createPlaceholderAuthPartialDefinition(authFeatureName) {
|
|
11
11
|
return { models: [{
|
|
12
12
|
name: PLACEHOLDER_AUTH_MODELS.user,
|
|
@@ -41,14 +41,14 @@ function createPlaceholderAuthPartialDefinition(authFeatureName) {
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx
|
|
43
43
|
function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
44
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } =
|
|
44
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
|
|
45
45
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
46
|
-
const authPluginDefinitionSchema =
|
|
46
|
+
const authPluginDefinitionSchema = __mf_11(createPlaceholderAuthPluginDefinitionSchema);
|
|
47
47
|
const defaultValues = __mf_34(() => {
|
|
48
48
|
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
49
49
|
return {};
|
|
50
50
|
}, [pluginMetadata?.config]);
|
|
51
|
-
const form =
|
|
51
|
+
const form = __mf_15({
|
|
52
52
|
resolver: a(authPluginDefinitionSchema),
|
|
53
53
|
defaultValues
|
|
54
54
|
});
|
|
@@ -56,18 +56,18 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
56
56
|
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
57
57
|
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
58
58
|
const partialDef = __mf_34(() => createPlaceholderAuthPartialDefinition(authFeature.name), [authFeature.name]);
|
|
59
|
-
const diff = __mf_34(() =>
|
|
59
|
+
const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
60
60
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
61
61
|
const updatedData = { ...data };
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
__mf_242(definitionContainer, partialDef)(draftConfig);
|
|
63
|
+
__mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
64
64
|
}, {
|
|
65
65
|
successMessage: "Successfully saved placeholder auth plugin!",
|
|
66
66
|
onSuccess: () => {
|
|
67
67
|
onSave();
|
|
68
68
|
}
|
|
69
69
|
}));
|
|
70
|
-
|
|
70
|
+
__mf_7({
|
|
71
71
|
control,
|
|
72
72
|
reset,
|
|
73
73
|
onSubmit
|
|
@@ -82,14 +82,14 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
82
82
|
className: "auth:max-w-6xl auth:flex-1",
|
|
83
83
|
children: [/* @__PURE__ */ __mf_1("div", {
|
|
84
84
|
className: "auth:pb-16",
|
|
85
|
-
children: /* @__PURE__ */ __mf_1(
|
|
85
|
+
children: /* @__PURE__ */ __mf_1(__mf_195, { children: /* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Placeholder Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
86
86
|
className: "auth:space-y-6",
|
|
87
87
|
children: /* @__PURE__ */ __mf_1(__mf_0, {
|
|
88
88
|
diff,
|
|
89
89
|
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
90
90
|
})
|
|
91
91
|
})] }) })
|
|
92
|
-
}), /* @__PURE__ */ __mf_1(
|
|
92
|
+
}), /* @__PURE__ */ __mf_1(__mf_125, {
|
|
93
93
|
form,
|
|
94
94
|
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
95
95
|
})]
|
|
@@ -100,11 +100,11 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/placeholder-auth/core/web.ts
|
|
102
102
|
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
103
|
-
var web_default =
|
|
103
|
+
var web_default = __mf_55({
|
|
104
104
|
name: "web",
|
|
105
105
|
dependencies: {
|
|
106
|
-
webConfig:
|
|
107
|
-
pluginDefaults:
|
|
106
|
+
webConfig: __mf_73,
|
|
107
|
+
pluginDefaults: __mf_71
|
|
108
108
|
},
|
|
109
109
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
110
110
|
webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);
|
|
@@ -120,4 +120,4 @@ var web_default = __mf_142({
|
|
|
120
120
|
//#endregion
|
|
121
121
|
export { web_default as default };
|
|
122
122
|
|
|
123
|
-
//# sourceMappingURL=web-
|
|
123
|
+
//# sourceMappingURL=web-RhChfBw_.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { m as __mf_21, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
2
|
+
import { a as __mf_17, o as __mf_19 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
3
|
+
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
|
+
//#region src/local-auth/admin/web.ts
|
|
5
|
+
var web_default = __mf_55({
|
|
6
|
+
name: "web",
|
|
7
|
+
dependencies: {
|
|
8
|
+
adminCrudActionWeb: __mf_17,
|
|
9
|
+
adminCrudColumnWeb: __mf_19
|
|
10
|
+
},
|
|
11
|
+
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
|
+
adminCrudActionWeb.actions.addMany([
|
|
13
|
+
{
|
|
14
|
+
pluginKey,
|
|
15
|
+
name: "manage-roles",
|
|
16
|
+
label: "Manage Roles",
|
|
17
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
18
|
+
getNewAction: () => ({
|
|
19
|
+
type: "manage-roles",
|
|
20
|
+
position: "dropdown"
|
|
21
|
+
})
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
pluginKey,
|
|
25
|
+
name: "reset-password",
|
|
26
|
+
label: "Reset Password",
|
|
27
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
28
|
+
getNewAction: () => ({
|
|
29
|
+
type: "reset-password",
|
|
30
|
+
position: "dropdown"
|
|
31
|
+
})
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
pluginKey,
|
|
35
|
+
name: "invite-user",
|
|
36
|
+
label: "Send Invite",
|
|
37
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
38
|
+
getNewAction: () => ({
|
|
39
|
+
type: "invite-user",
|
|
40
|
+
position: "dropdown"
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
]);
|
|
44
|
+
adminCrudColumnWeb.columns.add({
|
|
45
|
+
pluginKey,
|
|
46
|
+
name: "roles",
|
|
47
|
+
label: "Roles",
|
|
48
|
+
isAvailableForModel: (definition, modelId) => __mf_21.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
49
|
+
getNewColumn: () => ({
|
|
50
|
+
type: "roles",
|
|
51
|
+
label: "Roles"
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { web_default as default };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=web-kaD9AzNS.js.map
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Q as __mf_2, Z as __mf_1, _ as __mf_200, a as __mf_163, b as __mf_250, f as __mf_195, g as __mf_199, h as __mf_198, m as __mf_197, mt as __mf_34, n as __mf_125, p as __mf_196, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js";
|
|
2
|
+
import { T as __mf_73, _ as __mf_242, f as __mf_17, g as __mf_238, h as __mf_23, w as __mf_71, y as __mf_55 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js";
|
|
3
|
+
import { c as __mf_25, i as __mf_15, l as __mf_26, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-EOyEbGA4.js";
|
|
5
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-DyokUVjX.js";
|
|
6
|
+
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-BcUgOGGn.js";
|
|
7
|
+
//#region src/local-auth/core/components/local-auth-definition-editor.tsx
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
9
|
+
function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
|
|
11
|
+
const authPluginDefinitionSchema = __mf_11(createLocalAuthPluginDefinitionSchema);
|
|
12
|
+
const authDefinition = getAuthPluginDefinition(definition);
|
|
13
|
+
const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
|
|
14
|
+
label: role.name,
|
|
15
|
+
value: role.id
|
|
16
|
+
}));
|
|
17
|
+
const defaultValues = __mf_34(() => {
|
|
18
|
+
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
19
|
+
return {
|
|
20
|
+
additionalUserAdminRoles: [],
|
|
21
|
+
requireNameOnRegistration: false,
|
|
22
|
+
emailOtp: false
|
|
23
|
+
};
|
|
24
|
+
}, [pluginMetadata?.config]);
|
|
25
|
+
const form = __mf_15({
|
|
26
|
+
resolver: a(authPluginDefinitionSchema),
|
|
27
|
+
defaultValues
|
|
28
|
+
});
|
|
29
|
+
const { control, reset, handleSubmit } = form;
|
|
30
|
+
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
31
|
+
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
32
|
+
const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
|
|
33
|
+
if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
|
|
34
|
+
const partialDef = __mf_34(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
35
|
+
const diff = __mf_34(() => __mf_238(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
36
|
+
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
37
|
+
const updatedData = { ...data };
|
|
38
|
+
__mf_242(definitionContainer, partialDef)(draftConfig);
|
|
39
|
+
__mf_23.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
40
|
+
}, {
|
|
41
|
+
successMessage: "Successfully saved auth plugin!",
|
|
42
|
+
onSuccess: () => {
|
|
43
|
+
onSave();
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
__mf_7({
|
|
47
|
+
control,
|
|
48
|
+
reset,
|
|
49
|
+
onSubmit
|
|
50
|
+
});
|
|
51
|
+
return /* @__PURE__ */ __mf_2("div", {
|
|
52
|
+
className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
|
|
53
|
+
children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
|
|
54
|
+
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
55
|
+
style: { "--action-bar-height": "52px" },
|
|
56
|
+
children: /* @__PURE__ */ __mf_2("form", {
|
|
57
|
+
onSubmit,
|
|
58
|
+
className: "auth:max-w-6xl auth:flex-1",
|
|
59
|
+
children: [/* @__PURE__ */ __mf_1("div", {
|
|
60
|
+
className: "auth:pb-16",
|
|
61
|
+
children: /* @__PURE__ */ __mf_2(__mf_195, { children: [
|
|
62
|
+
/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
63
|
+
className: "auth:space-y-6",
|
|
64
|
+
children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
|
|
65
|
+
})] }),
|
|
66
|
+
/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
67
|
+
className: "auth:space-y-6",
|
|
68
|
+
children: /* @__PURE__ */ __mf_1(__mf_163, {
|
|
69
|
+
label: "Additional User Admin Roles",
|
|
70
|
+
name: "additionalUserAdminRoles",
|
|
71
|
+
control,
|
|
72
|
+
options: roles,
|
|
73
|
+
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
74
|
+
})
|
|
75
|
+
})] }),
|
|
76
|
+
/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
77
|
+
className: "auth:space-y-6",
|
|
78
|
+
children: /* @__PURE__ */ __mf_1(__mf_250, {
|
|
79
|
+
label: "Require Name on Registration",
|
|
80
|
+
name: "requireNameOnRegistration",
|
|
81
|
+
control,
|
|
82
|
+
description: "When enabled, users must provide their name when registering."
|
|
83
|
+
})
|
|
84
|
+
})] }),
|
|
85
|
+
/* @__PURE__ */ __mf_2(__mf_196, { children: [/* @__PURE__ */ __mf_2(__mf_199, { children: [/* @__PURE__ */ __mf_1(__mf_200, { children: "Sign-in Methods" }), /* @__PURE__ */ __mf_1(__mf_198, { children: "Choose how users can sign in, in addition to email and password." })] }), /* @__PURE__ */ __mf_1(__mf_197, {
|
|
86
|
+
className: "auth:space-y-6",
|
|
87
|
+
children: /* @__PURE__ */ __mf_1(__mf_250, {
|
|
88
|
+
label: "Email Sign-in Codes",
|
|
89
|
+
name: "emailOtp",
|
|
90
|
+
control,
|
|
91
|
+
description: "When enabled, users can sign in with a single-use code emailed to them instead of a password. Signing in with a code creates an account if the address is new."
|
|
92
|
+
})
|
|
93
|
+
})] })
|
|
94
|
+
] })
|
|
95
|
+
}), /* @__PURE__ */ __mf_1(__mf_125, {
|
|
96
|
+
form,
|
|
97
|
+
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
98
|
+
})]
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/local-auth/core/components/local-auth-web-app-settings-form.tsx
|
|
105
|
+
/**
|
|
106
|
+
* Renders the local-auth per-app settings (disable registration toggle) in
|
|
107
|
+
* the web app settings page. Bound to `pluginData[pluginKey]` on the shared
|
|
108
|
+
* web app form.
|
|
109
|
+
*/
|
|
110
|
+
function LocalAuthWebAppSettingsForm({ formProps, pluginKey }) {
|
|
111
|
+
return /* @__PURE__ */ __mf_1(__mf_250, {
|
|
112
|
+
label: "Disable Registration",
|
|
113
|
+
description: "When enabled, this site's sign-up page and link are hidden so users can only be added via an invite.",
|
|
114
|
+
control: formProps.control,
|
|
115
|
+
name: `pluginData.${pluginKey}.disableRegistration`
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/local-auth/core/web.ts
|
|
120
|
+
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
121
|
+
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
122
|
+
var web_default = __mf_55({
|
|
123
|
+
name: "web",
|
|
124
|
+
dependencies: {
|
|
125
|
+
webConfig: __mf_73,
|
|
126
|
+
pluginDefaults: __mf_71,
|
|
127
|
+
webAppSchemaExtensionWeb: __mf_26
|
|
128
|
+
},
|
|
129
|
+
initialize: ({ webConfig, pluginDefaults, webAppSchemaExtensionWeb }, { pluginKey }) => {
|
|
130
|
+
webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
|
|
131
|
+
webAppSchemaExtensionWeb.configs.set(pluginKey, __mf_25({
|
|
132
|
+
pluginKey,
|
|
133
|
+
Form: LocalAuthWebAppSettingsForm
|
|
134
|
+
}));
|
|
135
|
+
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
136
|
+
__mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
137
|
+
__mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
138
|
+
return {
|
|
139
|
+
config: {},
|
|
140
|
+
partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
//#endregion
|
|
146
|
+
export { web_default as default };
|
|
147
|
+
|
|
148
|
+
//# sourceMappingURL=web-xJ-GnSkC.js.map
|
package/dist/web/index.html
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<meta charset="UTF-8" />
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
17
17
|
<title>React Remote</title>
|
|
18
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-
|
|
19
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-1-
|
|
20
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-2-
|
|
21
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-3-
|
|
22
|
-
|
|
18
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-3ede9334.js"></script>
|
|
19
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-1-3da85eea.js"></script>
|
|
20
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-2-32e24e11.js"></script>
|
|
21
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-3-a3cfea9d.js"></script>
|
|
22
|
+
</head>
|
|
23
23
|
|
|
24
24
|
<body>
|
|
25
25
|
<div id="root"></div>
|
package/dist/web/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-
|
|
1
|
+
import { n as init, t as getExposes } from "./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js";
|
|
2
2
|
export { getExposes as get, init };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/plugin-auth",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.18",
|
|
4
4
|
"description": "Contains the auth plugin for Baseplate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"react-hook-form": "^7.71.1",
|
|
44
44
|
"react-icons": "^5.7.0",
|
|
45
45
|
"zod": "~4.3.6",
|
|
46
|
-
"@baseplate-dev/core-generators": "0.6.
|
|
47
|
-
"@baseplate-dev/fastify-generators": "0.6.
|
|
48
|
-
"@baseplate-dev/plugin-email": "0.6.
|
|
49
|
-
"@baseplate-dev/plugin-queue": "0.6.
|
|
50
|
-
"@baseplate-dev/plugin-rate-limit": "0.6.
|
|
51
|
-
"@baseplate-dev/project-builder-lib": "0.6.
|
|
52
|
-
"@baseplate-dev/react-generators": "0.6.
|
|
53
|
-
"@baseplate-dev/sync": "0.6.
|
|
54
|
-
"@baseplate-dev/ui-components": "0.6.
|
|
55
|
-
"@baseplate-dev/utils": "0.6.
|
|
46
|
+
"@baseplate-dev/core-generators": "0.6.18",
|
|
47
|
+
"@baseplate-dev/fastify-generators": "0.6.18",
|
|
48
|
+
"@baseplate-dev/plugin-email": "0.6.18",
|
|
49
|
+
"@baseplate-dev/plugin-queue": "0.6.18",
|
|
50
|
+
"@baseplate-dev/plugin-rate-limit": "0.6.18",
|
|
51
|
+
"@baseplate-dev/project-builder-lib": "0.6.18",
|
|
52
|
+
"@baseplate-dev/react-generators": "0.6.18",
|
|
53
|
+
"@baseplate-dev/sync": "0.6.18",
|
|
54
|
+
"@baseplate-dev/ui-components": "0.6.18",
|
|
55
|
+
"@baseplate-dev/utils": "0.6.18"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@module-federation/vite": "1.
|
|
58
|
+
"@module-federation/vite": "1.20.5",
|
|
59
59
|
"@tailwindcss/vite": "4.3.3",
|
|
60
|
-
"@types/node": "^24.
|
|
60
|
+
"@types/node": "^24.13.0",
|
|
61
61
|
"@types/react": "^19.2.18",
|
|
62
62
|
"@types/react-dom": "^19.2.4",
|
|
63
63
|
"@vitejs/plugin-react": "6.0.5",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typescript": "6.0.3",
|
|
71
71
|
"vite": "8.2.0",
|
|
72
72
|
"vitest": "4.1.10",
|
|
73
|
-
"@baseplate-dev/tools": "0.6.
|
|
73
|
+
"@baseplate-dev/tools": "0.6.18"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": "^24.0.0"
|