@baseplate-dev/plugin-auth 0.6.16 → 0.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -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-apollo/auth-apollo.generator.d.ts +1 -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 +8 -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 +32 -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 +7 -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 +25 -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-04_7KkB1.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js} +49 -41
- package/dist/web/assets/{dist-BjxypexQ.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js} +16720 -384
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js +177 -0
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js} +3349 -2632
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.js} +320 -164
- package/dist/web/assets/{arduino-BP2nYunF.js → arduino-BXtgMpyb.js} +2 -2
- package/dist/web/assets/auth-CsHp2bQi.js +1 -0
- package/dist/web/assets/{c-C7Ey31hW.js → c-6gdx-Hqg.js} +3 -3
- package/dist/web/assets/{clike-D9YNFwtw.js → clike-Ds9lUsCq.js} +2 -2
- package/dist/web/assets/common-BGTuTgx7.js +43 -0
- package/dist/web/assets/common-C8_sC5pp.js +70 -0
- package/dist/web/assets/{common-BvU-7KsV.js → common-Co5lW_TK.js} +13 -11
- package/dist/web/assets/{common-eFh2vwGb.js → common-CoLuMS7U.js} +6 -6
- package/dist/web/assets/common-Dueu_1NG.js +36 -0
- package/dist/web/assets/{common-BBriDRRy.js → common-N3skPbzk.js} +10 -10
- package/dist/web/assets/{cpp-_RjA_yNA.js → cpp-DRYAY5P6.js} +2 -2
- package/dist/web/assets/{csharp-0LZzOc6Q.js → csharp-RJBSoHJ6.js} +2 -2
- package/dist/web/assets/{dist-SBfmsOB2.js → dist-DQd1TAJX.js} +274 -133
- package/dist/web/assets/{get-auth-plugin-definition-x8oAsN1R.js → get-auth-plugin-definition-DyokUVjX.js} +3 -3
- package/dist/web/assets/{go-CzER04EZ.js → go-D9nlw8GJ.js} +2 -2
- package/dist/web/assets/{hostInit-Bay0Y9UX.js → hostInit-BCYmw0H5.js} +33 -6
- package/dist/web/assets/{java-HAvRESj1.js → java-Asfw0WtJ.js} +2 -2
- package/dist/web/assets/{javascript-BVAr0eZH.js → javascript-fpnGEVws.js} +2 -2
- package/dist/web/assets/{kotlin-DkCMjTKK.js → kotlin-zNWfDPVY.js} +2 -2
- package/dist/web/assets/{markdown-_2_uVr2L.js → markdown-ewV-vLcZ.js} +2 -2
- package/dist/web/assets/{markup-BVZ8HhdW.js → markup-D2krQlDZ.js} +2 -2
- package/dist/web/assets/{markup-templating-BDIRuVJH.js → markup-templating-c_XBo6vX.js} +2 -2
- package/dist/web/assets/mf-entry-bootstrap-0-3ede9334.js +36 -0
- package/dist/web/assets/mf-entry-bootstrap-1-3da85eea.js +36 -0
- package/dist/web/assets/{mf-entry-bootstrap-0-659c976f.js → mf-entry-bootstrap-2-32e24e11.js} +3 -2
- package/dist/web/assets/mf-entry-bootstrap-3-a3cfea9d.js +36 -0
- package/dist/web/assets/{models-BpslIbU7.js → models-BcPOQC5p.js} +4 -5
- package/dist/web/assets/{models-CKab4MTC.js → models-BcUgOGGn.js} +11 -6
- package/dist/web/assets/{objectivec-DPgB68It.js → objectivec-PkUOhxeb.js} +2 -2
- package/dist/web/assets/{php-JTON0zp9.js → php-CfWLJZIj.js} +2 -2
- package/dist/web/assets/{plugin-definition-8Exesd6T.js → plugin-definition-D1EImXIf.js} +9 -10
- package/dist/web/assets/plugin-definition-lw-gB4hU.js +10 -0
- package/dist/web/assets/{rolldown-runtime-FZ4Itg2g.js → rolldown-runtime-7_rZTKki.js} +1 -1
- package/dist/web/assets/{ruby-BoFHz67P.js → ruby-BlM93DKO.js} +2 -2
- package/dist/web/assets/{styles-Cc26Bbxc.css → styles-DIj1cIPB.css} +119 -1
- package/dist/web/assets/{styles-Cuq4wgvD.js → styles-EOyEbGA4.js} +9 -10
- package/dist/web/assets/{typescript-CDkIWcT8.js → typescript-C5BVqltI.js} +2 -2
- package/dist/web/assets/{virtualExposes-BwIds34r.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-DM6Ir1_S.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js} +15 -15
- package/dist/web/assets/{vite-preload-helper-iIio8xkS.js → vite-preload-helper-ARKYL6bp.js} +5 -1
- package/dist/web/assets/{web-DHv2aVpi.js → web-CBVepebK.js} +24 -24
- package/dist/web/assets/{web-CnB-sqCR.js → web-Dgb85jhs.js} +54 -53
- package/dist/web/assets/{web-BZd3bM0n.js → web-EDeSquSP.js} +38 -38
- package/dist/web/assets/{web-DNrWXjpS.js → web-PqAcfBSy.js} +9 -9
- package/dist/web/assets/{web-BgWG7dYl.js → web-RhChfBw_.js} +23 -23
- package/dist/web/assets/web-kaD9AzNS.js +59 -0
- package/dist/web/assets/web-xJ-GnSkC.js +148 -0
- package/dist/web/assets/{workerBundle-GFUata9j.js → workerBundle-BjsY-uXx.js} +2 -2
- package/dist/web/index.html +5 -2
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +36 -39
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js +0 -384
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js +0 -125
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js +0 -13567
- package/dist/web/assets/auth-8qJtXAgU.js +0 -1
- package/dist/web/assets/common-23-wvKrM.js +0 -39
- package/dist/web/assets/common-B-NI9TR-.js +0 -37
- package/dist/web/assets/common-DBBUvtGu.js +0 -37
- package/dist/web/assets/index-qso1IsKy.js +0 -2
- package/dist/web/assets/model-utils-dNFTOjqi.js +0 -1599
- package/dist/web/assets/plugin-definition-ChBrbazJ.js +0 -11
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js +0 -259
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js +0 -129
- package/dist/web/assets/web-CXHw8SK7.js +0 -118
- package/dist/web/assets/web-D_H-MoGI.js +0 -46
- package/dist/web/remoteEntry.ssr.js +0 -43
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
|
|
2
|
-
import { i as __mf_163 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
|
-
//#region src/placeholder-auth/constants/model-names.ts
|
|
4
|
-
var PLACEHOLDER_AUTH_MODELS = { user: "User" };
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/placeholder-auth/core/schema/plugin-definition.ts
|
|
7
|
-
var createPlaceholderAuthPluginDefinitionSchema = __mf_163(() => __mf_0.object({}));
|
|
8
|
-
//#endregion
|
|
9
|
-
export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=plugin-definition-ChBrbazJ.js.map
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { t as __vitePreload } from "./vite-preload-helper-iIio8xkS.js";
|
|
2
|
-
import { t as init$1 } from "./dist-SBfmsOB2.js";
|
|
3
|
-
//#region virtual:mf-REMOTE_ENTRY_ID:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
if (typeof __VUE_HMR_RUNTIME__ === "undefined") globalThis.__VUE_HMR_RUNTIME__ = {
|
|
5
|
-
createRecord() {},
|
|
6
|
-
rerender() {},
|
|
7
|
-
reload() {}
|
|
8
|
-
};
|
|
9
|
-
var __mfResolveGlobalKey = "__mf_init__virtual:mf:__mfe_internal__plugin_mf_2_auth__mf_v__runtimeInit__mf_v__.js__";
|
|
10
|
-
var __mfResolveState = globalThis[__mfResolveGlobalKey];
|
|
11
|
-
if (!__mfResolveState) {
|
|
12
|
-
let initResolve, initReject;
|
|
13
|
-
const initPromise = new Promise((re, rj) => {
|
|
14
|
-
initResolve = re;
|
|
15
|
-
initReject = rj;
|
|
16
|
-
});
|
|
17
|
-
__mfResolveState = globalThis[__mfResolveGlobalKey] = {
|
|
18
|
-
initPromise,
|
|
19
|
-
initResolve,
|
|
20
|
-
initReject
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
var initResolve = __mfResolveState.initResolve;
|
|
24
|
-
var __mfCacheGlobalKey = "__mf_module_cache__";
|
|
25
|
-
globalThis[__mfCacheGlobalKey] ||= {
|
|
26
|
-
share: {},
|
|
27
|
-
remote: {}
|
|
28
|
-
};
|
|
29
|
-
globalThis[__mfCacheGlobalKey].share ||= {};
|
|
30
|
-
globalThis[__mfCacheGlobalKey].remote ||= {};
|
|
31
|
-
var __mfModuleCache = globalThis[__mfCacheGlobalKey];
|
|
32
|
-
for (const __mfShareKey of Object.keys(__mfModuleCache.share)) if (__mfShareKey.startsWith("default:")) {
|
|
33
|
-
const __mfLegacyShareKey = __mfShareKey.slice(8);
|
|
34
|
-
if (__mfModuleCache.share[__mfLegacyShareKey] === void 0) __mfModuleCache.share[__mfLegacyShareKey] = __mfModuleCache.share[__mfShareKey];
|
|
35
|
-
} else if (!__mfShareKey.includes(":")) {
|
|
36
|
-
const __mfDefaultShareKey = "default:" + __mfShareKey;
|
|
37
|
-
if (__mfModuleCache.share[__mfDefaultShareKey] === void 0) __mfModuleCache.share[__mfDefaultShareKey] = __mfModuleCache.share[__mfShareKey];
|
|
38
|
-
}
|
|
39
|
-
var initTokens = {};
|
|
40
|
-
var shareScopeName = "default";
|
|
41
|
-
var mfName = "plugin-auth";
|
|
42
|
-
var localSharedImportMapPromise;
|
|
43
|
-
var exposesMapPromise;
|
|
44
|
-
async function retrySharedInit(fn) {
|
|
45
|
-
for (let attempt = 0;; attempt++) try {
|
|
46
|
-
return await fn();
|
|
47
|
-
} catch (e) {
|
|
48
|
-
throw e;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async function getLocalSharedImportMap() {
|
|
52
|
-
if (!localSharedImportMapPromise) localSharedImportMapPromise = retrySharedInit(() => __vitePreload(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js"), [], import.meta.url)).catch((e) => {
|
|
53
|
-
localSharedImportMapPromise = void 0;
|
|
54
|
-
throw e;
|
|
55
|
-
});
|
|
56
|
-
return localSharedImportMapPromise;
|
|
57
|
-
}
|
|
58
|
-
async function getExposesMap() {
|
|
59
|
-
if (!exposesMapPromise) exposesMapPromise = retrySharedInit(() => __vitePreload(() => import("./virtualExposes-BwIds34r.js"), [], import.meta.url)).then((mod) => mod.default ?? mod).catch((e) => {
|
|
60
|
-
exposesMapPromise = void 0;
|
|
61
|
-
throw e;
|
|
62
|
-
});
|
|
63
|
-
return exposesMapPromise;
|
|
64
|
-
}
|
|
65
|
-
async function init(shared = {}, initScope = []) {
|
|
66
|
-
const __mfGetSharedCacheDescriptor = (pkg, singleton, version, scope) => {
|
|
67
|
-
const scopeName = (Array.isArray(scope) ? scope[0] : scope) || "default";
|
|
68
|
-
const id = singleton || !version ? pkg : pkg + "@" + version;
|
|
69
|
-
const descriptor = { canonical: scopeName + ":" + id };
|
|
70
|
-
if (scopeName === "default") descriptor.aliases = [id];
|
|
71
|
-
return descriptor;
|
|
72
|
-
};
|
|
73
|
-
const __mfReadSharedCache = (cache, descriptor) => {
|
|
74
|
-
const value = cache[descriptor.canonical];
|
|
75
|
-
if (value !== void 0) return value;
|
|
76
|
-
const aliases = descriptor.aliases || [];
|
|
77
|
-
for (const alias of aliases) {
|
|
78
|
-
const aliasValue = cache[alias];
|
|
79
|
-
if (aliasValue !== void 0) {
|
|
80
|
-
cache[descriptor.canonical] = aliasValue;
|
|
81
|
-
return aliasValue;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
const __mfWriteSharedCache = (cache, descriptor, value) => {
|
|
86
|
-
cache[descriptor.canonical] = value;
|
|
87
|
-
const aliases = descriptor.aliases || [];
|
|
88
|
-
for (const alias of aliases) if (cache[alias] === void 0) cache[alias] = value;
|
|
89
|
-
return value;
|
|
90
|
-
};
|
|
91
|
-
const __mfTreeShakingSelectionCacheKey = Symbol.for("module-federation.tree-shaking-shared-selection-cache");
|
|
92
|
-
const __mfReadTreeShakingSharedSelection = (cache, descriptor, consumer) => {
|
|
93
|
-
const fullModule = __mfReadSharedCache(cache, descriptor);
|
|
94
|
-
if (fullModule !== void 0) return fullModule;
|
|
95
|
-
return cache[__mfTreeShakingSelectionCacheKey]?.[descriptor.canonical]?.[consumer];
|
|
96
|
-
};
|
|
97
|
-
const { usedShared, usedRemotes } = await getLocalSharedImportMap();
|
|
98
|
-
try {
|
|
99
|
-
const allInstances = globalThis.__FEDERATION__?.__SHARE__;
|
|
100
|
-
if (allInstances) {
|
|
101
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
102
|
-
let current = mod;
|
|
103
|
-
for (let i = 0; i < 5; i++) {
|
|
104
|
-
const defaultExport = current?.default;
|
|
105
|
-
if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
|
|
106
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
107
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
108
|
-
current = defaultExport;
|
|
109
|
-
}
|
|
110
|
-
return current;
|
|
111
|
-
};
|
|
112
|
-
for (const [, scopes] of Object.entries(allInstances)) {
|
|
113
|
-
const scopeShare = scopes?.["default"];
|
|
114
|
-
if (!scopeShare) continue;
|
|
115
|
-
for (const [pkg, versionMap] of Object.entries(scopeShare)) {
|
|
116
|
-
const usedShare = usedShared?.[pkg];
|
|
117
|
-
const selectedProvider = usedShare?.shareConfig?.import === false ? __mfSelectSharedProvider(versionMap, pkg, usedShare, "version-first") : void 0;
|
|
118
|
-
const providerEntries = usedShare?.shareConfig?.import === false ? Object.entries(versionMap).filter(([, provider]) => provider === selectedProvider) : Object.entries(versionMap);
|
|
119
|
-
for (const [version, provider] of providerEntries) {
|
|
120
|
-
if (!provider.lib) continue;
|
|
121
|
-
const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, provider.shareConfig?.singleton, version, "default");
|
|
122
|
-
if (__mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
|
|
123
|
-
const mod = typeof provider.lib === "function" ? provider.lib() : provider.lib;
|
|
124
|
-
const normalized = __mfNormalizeRuntimeShare(await Promise.resolve(mod));
|
|
125
|
-
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, normalized);
|
|
126
|
-
if (provider.shareConfig?.singleton && usedShare) {
|
|
127
|
-
const usedCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, usedShare.shareConfig?.singleton, usedShare.version, usedShare.scope);
|
|
128
|
-
if (__mfReadSharedCache(__mfModuleCache.share, usedCacheDescriptor) === void 0) __mfWriteSharedCache(__mfModuleCache.share, usedCacheDescriptor, normalized);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
} catch (e) {
|
|
135
|
-
console.error("[Module Federation] Failed to bridge external shared modules", e);
|
|
136
|
-
}
|
|
137
|
-
for (const [pkg, share] of Object.entries(usedShared)) {
|
|
138
|
-
const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
|
|
139
|
-
if (__mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
|
|
140
|
-
const singletonCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, true, share.version, share.scope);
|
|
141
|
-
const singletonModule = __mfReadSharedCache(__mfModuleCache.share, singletonCacheDescriptor);
|
|
142
|
-
if (singletonModule !== void 0) __mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, singletonModule);
|
|
143
|
-
}
|
|
144
|
-
const __mfSeedKeys = [
|
|
145
|
-
"react/jsx-runtime",
|
|
146
|
-
"react",
|
|
147
|
-
"react-dom",
|
|
148
|
-
"zod",
|
|
149
|
-
"@baseplate-dev/ui-components",
|
|
150
|
-
"@baseplate-dev/project-builder-lib/web",
|
|
151
|
-
"@baseplate-dev/project-builder-lib",
|
|
152
|
-
"@tanstack/react-router"
|
|
153
|
-
].filter((pkg) => usedShared[pkg] !== void 0);
|
|
154
|
-
const __mfSeedPackageName = (pkg) => pkg.startsWith("@") ? pkg.split("/").slice(0, 2).join("/") : pkg.split("/")[0];
|
|
155
|
-
for (const pkg of Object.keys(usedShared)) {
|
|
156
|
-
if (__mfSeedKeys.includes(pkg)) continue;
|
|
157
|
-
const packageName = __mfSeedPackageName(pkg);
|
|
158
|
-
const rootIndex = __mfSeedKeys.indexOf(packageName);
|
|
159
|
-
if (rootIndex === -1) {
|
|
160
|
-
__mfSeedKeys.push(pkg);
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
let insertIndex = rootIndex;
|
|
164
|
-
while (insertIndex > 0 && __mfSeedPackageName(__mfSeedKeys[insertIndex - 1]) === packageName && __mfSeedKeys[insertIndex - 1] !== packageName) insertIndex--;
|
|
165
|
-
__mfSeedKeys.splice(insertIndex, 0, pkg);
|
|
166
|
-
}
|
|
167
|
-
for (const pkg of __mfSeedKeys) {
|
|
168
|
-
const share = usedShared[pkg];
|
|
169
|
-
const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
|
|
170
|
-
if (share.shareConfig?.import === false || Boolean(share.treeShaking) || __mfReadSharedCache(__mfModuleCache.share, cacheDescriptor) !== void 0) continue;
|
|
171
|
-
const singletonCacheDescriptor = __mfGetSharedCacheDescriptor(pkg, true, share.version, share.scope);
|
|
172
|
-
const singletonModule = __mfReadSharedCache(__mfModuleCache.share, singletonCacheDescriptor);
|
|
173
|
-
if (singletonModule !== void 0) {
|
|
174
|
-
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, singletonModule);
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
const factory = await share.get();
|
|
178
|
-
const mod = typeof factory === "function" ? factory() : factory;
|
|
179
|
-
const resolved = await Promise.resolve(mod);
|
|
180
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
181
|
-
let current = mod;
|
|
182
|
-
for (let i = 0; i < 5; i++) {
|
|
183
|
-
const defaultExport = current?.default;
|
|
184
|
-
if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
|
|
185
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
186
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
187
|
-
current = defaultExport;
|
|
188
|
-
}
|
|
189
|
-
return current;
|
|
190
|
-
};
|
|
191
|
-
const normalizedModule = __mfNormalizeRuntimeShare(resolved);
|
|
192
|
-
const exportModule = normalizedModule === resolved ? { ...resolved } : normalizedModule;
|
|
193
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
194
|
-
value: true,
|
|
195
|
-
enumerable: false
|
|
196
|
-
});
|
|
197
|
-
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, exportModule);
|
|
198
|
-
}
|
|
199
|
-
const __browserPlugins = [];
|
|
200
|
-
const __ssrPlugins = typeof globalThis.window === "undefined" ? await Promise.all([]) : [];
|
|
201
|
-
const initRes = init$1({
|
|
202
|
-
name: mfName,
|
|
203
|
-
remotes: usedRemotes,
|
|
204
|
-
shared: usedShared,
|
|
205
|
-
plugins: [...__browserPlugins, ...__ssrPlugins],
|
|
206
|
-
shareStrategy: "version-first"
|
|
207
|
-
});
|
|
208
|
-
var initToken = initTokens[shareScopeName];
|
|
209
|
-
if (!initToken) initToken = initTokens[shareScopeName] = { from: mfName };
|
|
210
|
-
if (initScope.indexOf(initToken) >= 0) return;
|
|
211
|
-
initScope.push(initToken);
|
|
212
|
-
initRes.initShareScopeMap("default", shared);
|
|
213
|
-
try {
|
|
214
|
-
await retrySharedInit(async () => {
|
|
215
|
-
await Promise.all(await initRes.initializeSharing("default", {
|
|
216
|
-
strategy: "version-first",
|
|
217
|
-
from: "build",
|
|
218
|
-
initScope
|
|
219
|
-
}));
|
|
220
|
-
});
|
|
221
|
-
} catch (e) {
|
|
222
|
-
console.error("[Module Federation]", e);
|
|
223
|
-
}
|
|
224
|
-
for (const [pkg, share] of Object.entries(usedShared)) {
|
|
225
|
-
const cacheDescriptor = __mfGetSharedCacheDescriptor(pkg, share.shareConfig?.singleton, share.version, share.scope);
|
|
226
|
-
const cachedShare = share.treeShaking ? __mfReadTreeShakingSharedSelection(__mfModuleCache.share, cacheDescriptor, mfName) : __mfReadSharedCache(__mfModuleCache.share, cacheDescriptor);
|
|
227
|
-
if (share.shareConfig?.import !== false || cachedShare !== void 0) continue;
|
|
228
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
229
|
-
let current = mod;
|
|
230
|
-
for (let i = 0; i < 5; i++) {
|
|
231
|
-
const defaultExport = current?.default;
|
|
232
|
-
if (!defaultExport || typeof defaultExport !== "object" || Object.keys(defaultExport).length === 0) break;
|
|
233
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
234
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
235
|
-
current = defaultExport;
|
|
236
|
-
}
|
|
237
|
-
return current;
|
|
238
|
-
};
|
|
239
|
-
const versions = shared?.[pkg];
|
|
240
|
-
const provider = __mfSelectSharedProvider(versions, pkg, share, "version-first");
|
|
241
|
-
if (!provider) continue;
|
|
242
|
-
const factory = provider.lib || (provider.loading ? await provider.loading : await provider.get?.());
|
|
243
|
-
const mod = typeof factory === "function" ? factory() : factory;
|
|
244
|
-
const resolved = await Promise.resolve(mod);
|
|
245
|
-
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, __mfNormalizeRuntimeShare(resolved));
|
|
246
|
-
}
|
|
247
|
-
initResolve(initRes);
|
|
248
|
-
return initRes;
|
|
249
|
-
}
|
|
250
|
-
async function getExposes(moduleName) {
|
|
251
|
-
const exposesMap = await getExposesMap();
|
|
252
|
-
if (!(moduleName in exposesMap)) throw new Error(`[Module Federation] Module ${moduleName} does not exist in container.`);
|
|
253
|
-
if (__mfModuleCache.pendingShareLoads) await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
254
|
-
return exposesMap[moduleName]().then((res) => () => res);
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
257
|
-
export { init as n, getExposes as t };
|
|
258
|
-
|
|
259
|
-
//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js.map
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./styles-Cc26Bbxc.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { t as __vitePreload } from "./vite-preload-helper-iIio8xkS.js";
|
|
3
|
-
//#region virtual:mf-exposes-ssr:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
var virtual_mf_exposes_ssr___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
5
|
-
"./auth/core/web": async () => {
|
|
6
|
-
const importModule = await __vitePreload(() => import("./web-CnB-sqCR.js"), __vite__mapDeps([0]), import.meta.url);
|
|
7
|
-
const exportModule = {};
|
|
8
|
-
Object.assign(exportModule, importModule);
|
|
9
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
10
|
-
value: true,
|
|
11
|
-
enumerable: false
|
|
12
|
-
});
|
|
13
|
-
return exportModule;
|
|
14
|
-
},
|
|
15
|
-
"./auth/core/common": async () => {
|
|
16
|
-
const importModule = await __vitePreload(() => import("./common-BBriDRRy.js"), [], import.meta.url);
|
|
17
|
-
const exportModule = {};
|
|
18
|
-
Object.assign(exportModule, importModule);
|
|
19
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
20
|
-
value: true,
|
|
21
|
-
enumerable: false
|
|
22
|
-
});
|
|
23
|
-
return exportModule;
|
|
24
|
-
},
|
|
25
|
-
"./better-auth/core/web": async () => {
|
|
26
|
-
const importModule = await __vitePreload(() => import("./web-DHv2aVpi.js"), __vite__mapDeps([0]), import.meta.url);
|
|
27
|
-
const exportModule = {};
|
|
28
|
-
Object.assign(exportModule, importModule);
|
|
29
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
30
|
-
value: true,
|
|
31
|
-
enumerable: false
|
|
32
|
-
});
|
|
33
|
-
return exportModule;
|
|
34
|
-
},
|
|
35
|
-
"./better-auth/core/common": async () => {
|
|
36
|
-
const importModule = await __vitePreload(() => import("./common-BvU-7KsV.js"), [], import.meta.url);
|
|
37
|
-
const exportModule = {};
|
|
38
|
-
Object.assign(exportModule, importModule);
|
|
39
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
40
|
-
value: true,
|
|
41
|
-
enumerable: false
|
|
42
|
-
});
|
|
43
|
-
return exportModule;
|
|
44
|
-
},
|
|
45
|
-
"./better-auth/admin/web": async () => {
|
|
46
|
-
const importModule = await __vitePreload(() => import("./web-DNrWXjpS.js"), [], import.meta.url);
|
|
47
|
-
const exportModule = {};
|
|
48
|
-
Object.assign(exportModule, importModule);
|
|
49
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
50
|
-
value: true,
|
|
51
|
-
enumerable: false
|
|
52
|
-
});
|
|
53
|
-
return exportModule;
|
|
54
|
-
},
|
|
55
|
-
"./better-auth/admin/common": async () => {
|
|
56
|
-
const importModule = await __vitePreload(() => import("./common-DBBUvtGu.js"), [], import.meta.url);
|
|
57
|
-
const exportModule = {};
|
|
58
|
-
Object.assign(exportModule, importModule);
|
|
59
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
60
|
-
value: true,
|
|
61
|
-
enumerable: false
|
|
62
|
-
});
|
|
63
|
-
return exportModule;
|
|
64
|
-
},
|
|
65
|
-
"./local-auth/core/web": async () => {
|
|
66
|
-
const importModule = await __vitePreload(() => import("./web-CXHw8SK7.js"), __vite__mapDeps([0]), import.meta.url);
|
|
67
|
-
const exportModule = {};
|
|
68
|
-
Object.assign(exportModule, importModule);
|
|
69
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
70
|
-
value: true,
|
|
71
|
-
enumerable: false
|
|
72
|
-
});
|
|
73
|
-
return exportModule;
|
|
74
|
-
},
|
|
75
|
-
"./local-auth/core/common": async () => {
|
|
76
|
-
const importModule = await __vitePreload(() => import("./common-23-wvKrM.js"), [], import.meta.url);
|
|
77
|
-
const exportModule = {};
|
|
78
|
-
Object.assign(exportModule, importModule);
|
|
79
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
80
|
-
value: true,
|
|
81
|
-
enumerable: false
|
|
82
|
-
});
|
|
83
|
-
return exportModule;
|
|
84
|
-
},
|
|
85
|
-
"./local-auth/admin/web": async () => {
|
|
86
|
-
const importModule = await __vitePreload(() => import("./web-D_H-MoGI.js"), [], import.meta.url);
|
|
87
|
-
const exportModule = {};
|
|
88
|
-
Object.assign(exportModule, importModule);
|
|
89
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
90
|
-
value: true,
|
|
91
|
-
enumerable: false
|
|
92
|
-
});
|
|
93
|
-
return exportModule;
|
|
94
|
-
},
|
|
95
|
-
"./local-auth/admin/common": async () => {
|
|
96
|
-
const importModule = await __vitePreload(() => import("./common-B-NI9TR-.js"), [], import.meta.url);
|
|
97
|
-
const exportModule = {};
|
|
98
|
-
Object.assign(exportModule, importModule);
|
|
99
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
100
|
-
value: true,
|
|
101
|
-
enumerable: false
|
|
102
|
-
});
|
|
103
|
-
return exportModule;
|
|
104
|
-
},
|
|
105
|
-
"./placeholder-auth/core/web": async () => {
|
|
106
|
-
const importModule = await __vitePreload(() => import("./web-BgWG7dYl.js"), __vite__mapDeps([0]), import.meta.url);
|
|
107
|
-
const exportModule = {};
|
|
108
|
-
Object.assign(exportModule, importModule);
|
|
109
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
110
|
-
value: true,
|
|
111
|
-
enumerable: false
|
|
112
|
-
});
|
|
113
|
-
return exportModule;
|
|
114
|
-
},
|
|
115
|
-
"./placeholder-auth/core/common": async () => {
|
|
116
|
-
const importModule = await __vitePreload(() => import("./common-eFh2vwGb.js"), [], import.meta.url);
|
|
117
|
-
const exportModule = {};
|
|
118
|
-
Object.assign(exportModule, importModule);
|
|
119
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
120
|
-
value: true,
|
|
121
|
-
enumerable: false
|
|
122
|
-
});
|
|
123
|
-
return exportModule;
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
//#endregion
|
|
127
|
-
export { virtual_mf_exposes_ssr___mfe_internal__plugin_auth__remoteEntry_js_default as default };
|
|
128
|
-
|
|
129
|
-
//# sourceMappingURL=virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js.map
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { $ as __mf_2, Q as __mf_1, S as __mf_234, _ as __mf_180, g as __mf_179, h as __mf_178, ht as __mf_31, m as __mf_177, o as __mf_145, p as __mf_176, r as __mf_116, v as __mf_181, yt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js";
|
|
2
|
-
import { a as __mf_167, d as __mf_233, f as __mf_26, g as __mf_55, n as __mf_142, o as __mf_17, p as __mf_263 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
|
-
import { a as __mf_26$1, i as __mf_25, n as __mf_20, r as __mf_23, t as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js";
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-Cuq4wgvD.js";
|
|
5
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-x8oAsN1R.js";
|
|
6
|
-
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-CKab4MTC.js";
|
|
7
|
-
//#region src/local-auth/core/components/local-auth-definition-editor.tsx
|
|
8
|
-
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
|
-
function LocalAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_25();
|
|
11
|
-
const authPluginDefinitionSchema = __mf_23(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_31(() => {
|
|
18
|
-
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
19
|
-
return {
|
|
20
|
-
additionalUserAdminRoles: [],
|
|
21
|
-
requireNameOnRegistration: false
|
|
22
|
-
};
|
|
23
|
-
}, [pluginMetadata?.config]);
|
|
24
|
-
const form = __mf_26$1({
|
|
25
|
-
resolver: a(authPluginDefinitionSchema),
|
|
26
|
-
defaultValues
|
|
27
|
-
});
|
|
28
|
-
const { control, reset, handleSubmit } = form;
|
|
29
|
-
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
30
|
-
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
31
|
-
const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
|
|
32
|
-
if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
|
|
33
|
-
const partialDef = __mf_31(() => createLocalAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
34
|
-
const diff = __mf_31(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
35
|
-
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
36
|
-
const updatedData = { ...data };
|
|
37
|
-
__mf_55(definitionContainer, partialDef)(draftConfig);
|
|
38
|
-
__mf_26.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
39
|
-
}, {
|
|
40
|
-
successMessage: "Successfully saved auth plugin!",
|
|
41
|
-
onSuccess: () => {
|
|
42
|
-
onSave();
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
__mf_20({
|
|
46
|
-
control,
|
|
47
|
-
reset,
|
|
48
|
-
onSubmit
|
|
49
|
-
});
|
|
50
|
-
return /* @__PURE__ */ __mf_2("div", {
|
|
51
|
-
className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
|
|
52
|
-
children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
|
|
53
|
-
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
54
|
-
style: { "--action-bar-height": "52px" },
|
|
55
|
-
children: /* @__PURE__ */ __mf_2("form", {
|
|
56
|
-
onSubmit,
|
|
57
|
-
className: "auth:max-w-6xl auth:flex-1",
|
|
58
|
-
children: [/* @__PURE__ */ __mf_1("div", {
|
|
59
|
-
className: "auth:pb-16",
|
|
60
|
-
children: /* @__PURE__ */ __mf_2(__mf_176, { children: [
|
|
61
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
62
|
-
className: "auth:space-y-6",
|
|
63
|
-
children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
|
|
64
|
-
})] }),
|
|
65
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
66
|
-
className: "auth:space-y-6",
|
|
67
|
-
children: /* @__PURE__ */ __mf_1(__mf_145, {
|
|
68
|
-
label: "Additional User Admin Roles",
|
|
69
|
-
name: "additionalUserAdminRoles",
|
|
70
|
-
control,
|
|
71
|
-
options: roles,
|
|
72
|
-
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
73
|
-
})
|
|
74
|
-
})] }),
|
|
75
|
-
/* @__PURE__ */ __mf_2(__mf_177, { children: [/* @__PURE__ */ __mf_2(__mf_180, { children: [/* @__PURE__ */ __mf_1(__mf_181, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(__mf_179, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(__mf_178, {
|
|
76
|
-
className: "auth:space-y-6",
|
|
77
|
-
children: /* @__PURE__ */ __mf_1(__mf_234, {
|
|
78
|
-
label: "Require Name on Registration",
|
|
79
|
-
name: "requireNameOnRegistration",
|
|
80
|
-
control,
|
|
81
|
-
description: "When enabled, users must provide their name when registering."
|
|
82
|
-
})
|
|
83
|
-
})] })
|
|
84
|
-
] })
|
|
85
|
-
}), /* @__PURE__ */ __mf_1(__mf_116, {
|
|
86
|
-
form,
|
|
87
|
-
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
88
|
-
})]
|
|
89
|
-
})
|
|
90
|
-
})]
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region src/local-auth/core/web.ts
|
|
95
|
-
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
96
|
-
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
97
|
-
var web_default = __mf_142({
|
|
98
|
-
name: "web",
|
|
99
|
-
dependencies: {
|
|
100
|
-
webConfig: __mf_263,
|
|
101
|
-
pluginDefaults: __mf_233
|
|
102
|
-
},
|
|
103
|
-
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
104
|
-
webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
|
|
105
|
-
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
106
|
-
__mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
107
|
-
__mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
108
|
-
return {
|
|
109
|
-
config: {},
|
|
110
|
-
partialDef: createLocalAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
//#endregion
|
|
116
|
-
export { web_default as default };
|
|
117
|
-
|
|
118
|
-
//# sourceMappingURL=web-CXHw8SK7.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { l as __mf_22, n as __mf_142 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
2
|
-
import { c as __mf_8, s as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js";
|
|
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_142({
|
|
6
|
-
name: "web",
|
|
7
|
-
dependencies: {
|
|
8
|
-
adminCrudActionWeb: __mf_7,
|
|
9
|
-
adminCrudColumnWeb: __mf_8
|
|
10
|
-
},
|
|
11
|
-
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
|
-
adminCrudActionWeb.actions.addMany([{
|
|
13
|
-
pluginKey,
|
|
14
|
-
name: "manage-roles",
|
|
15
|
-
label: "Manage Roles",
|
|
16
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
17
|
-
getNewAction: () => ({
|
|
18
|
-
type: "manage-roles",
|
|
19
|
-
position: "dropdown"
|
|
20
|
-
})
|
|
21
|
-
}, {
|
|
22
|
-
pluginKey,
|
|
23
|
-
name: "reset-password",
|
|
24
|
-
label: "Reset Password",
|
|
25
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
26
|
-
getNewAction: () => ({
|
|
27
|
-
type: "reset-password",
|
|
28
|
-
position: "dropdown"
|
|
29
|
-
})
|
|
30
|
-
}]);
|
|
31
|
-
adminCrudColumnWeb.columns.add({
|
|
32
|
-
pluginKey,
|
|
33
|
-
name: "roles",
|
|
34
|
-
label: "Roles",
|
|
35
|
-
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
36
|
-
getNewColumn: () => ({
|
|
37
|
-
type: "roles",
|
|
38
|
-
label: "Roles"
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//#endregion
|
|
44
|
-
export { web_default as default };
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=web-D_H-MoGI.js.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { t as __vitePreload } from "./assets/vite-preload-helper-iIio8xkS.js";
|
|
2
|
-
import { init as init$1 } from "@module-federation/runtime";
|
|
3
|
-
//#region virtual:mf-REMOTE_ENTRY_SSR_ID:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
var exposesMapPromise;
|
|
5
|
-
async function getExposesMap() {
|
|
6
|
-
exposesMapPromise ??= __vitePreload(() => import("./assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js").then((mod) => mod.default ?? mod), [], import.meta.url);
|
|
7
|
-
return exposesMapPromise;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Called by the MF runtime on the host to register this remote's share scope.
|
|
11
|
-
* On the server the host has already initialised the runtime, so we just need
|
|
12
|
-
* to set up a minimal runtime instance for the remote container.
|
|
13
|
-
*/
|
|
14
|
-
async function init(shared = {}, initScope = []) {
|
|
15
|
-
const initRes = init$1({
|
|
16
|
-
name: "plugin-auth",
|
|
17
|
-
remotes: [],
|
|
18
|
-
shared: {}
|
|
19
|
-
});
|
|
20
|
-
const initToken = { from: "plugin-auth" };
|
|
21
|
-
if (initScope.indexOf(initToken) >= 0) return;
|
|
22
|
-
initScope.push(initToken);
|
|
23
|
-
initRes.initShareScopeMap("default", shared);
|
|
24
|
-
try {
|
|
25
|
-
await Promise.all(await initRes.initializeSharing("default", {
|
|
26
|
-
strategy: "version-first",
|
|
27
|
-
from: "build",
|
|
28
|
-
initScope
|
|
29
|
-
}));
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.error("[Module Federation SSR]", e);
|
|
32
|
-
}
|
|
33
|
-
return initRes;
|
|
34
|
-
}
|
|
35
|
-
async function getExposes(moduleName) {
|
|
36
|
-
const exposesMap = await getExposesMap();
|
|
37
|
-
if (!(moduleName in exposesMap)) throw new Error(`[Module Federation] Module ${moduleName} does not exist in container.`);
|
|
38
|
-
return exposesMap[moduleName]().then((res) => () => res);
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { getExposes as get, init };
|
|
42
|
-
|
|
43
|
-
//# sourceMappingURL=remoteEntry.ssr.js.map
|