@baseplate-dev/plugin-auth 0.6.9 → 0.6.11
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 +38 -0
- package/dist/auth/core/web.js +31 -2
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/core/web.js +15 -2
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -1
- package/dist/local-auth/core/web.js +15 -2
- package/dist/placeholder-auth/core/web.js +13 -2
- package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DEljr3MS.js +226 -0
- 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-B6a7L2-k.js +346 -0
- 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-JKpdJ1L0.js +89 -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-DsLoA9K7.js +73549 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js +6181 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js +13784 -0
- package/dist/web/assets/auth-YjeUffyx.js +1 -0
- package/dist/web/assets/common-B3OG-gju.js +37 -0
- package/dist/web/assets/common-CTWnBc6I.js +39 -0
- package/dist/web/assets/common-CzNLnT_1.js +63 -0
- package/dist/web/assets/common-g_Gn0v5J.js +18 -0
- package/dist/web/assets/common-kfSP8YQO.js +39 -0
- package/dist/web/assets/common-zfktVQvk.js +37 -0
- package/dist/web/assets/dist-C6kDPCTC.js +18148 -0
- package/dist/web/assets/get-auth-plugin-definition-2vFJROjB.js +14 -0
- package/dist/web/assets/hostInit-35H-qR11.js +119 -0
- package/dist/web/assets/index-Cr47LBtj.js +2 -0
- package/dist/web/assets/mf-entry-bootstrap-0-13480d2a.js +32 -0
- package/dist/web/assets/model-names-BluImOzu.js +27 -0
- package/dist/web/assets/model-names-CUS5rSei.js +12 -0
- package/dist/web/assets/model-utils-ZF_FVZ_o.js +1287 -0
- package/dist/web/assets/models-CORL4i-6.js +285 -0
- package/dist/web/assets/models-DPPMgQz_.js +304 -0
- package/dist/web/assets/plugin-definition-UAfMRa7u.js +78 -0
- package/dist/web/assets/plugin-definition-mNNM2hOB.js +11 -0
- package/dist/web/assets/rolldown-runtime-FZ4Itg2g.js +42 -0
- package/dist/web/assets/{style-DiK_rD1L.css → styles-Cc26Bbxc.css} +1 -1
- package/dist/web/assets/styles-DNVWarsT.js +173 -0
- package/dist/web/assets/virtualExposes-CZsMFYa2.js +2 -0
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bt9-dftr.js +3892 -0
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DC8YPV1Z.js +129 -0
- package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-CmilMd0E.js +168 -0
- package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
- package/dist/web/assets/web-BbqWFVPH.js +397 -0
- package/dist/web/assets/web-BldKZtQd.js +123 -0
- package/dist/web/assets/web-CNMEeTj-.js +46 -0
- package/dist/web/assets/web-CnsQCdFE.js +46 -0
- package/dist/web/assets/web-DiGj_0d0.js +118 -0
- package/dist/web/assets/web-OntIhIfe.js +355 -0
- package/dist/web/assets/web-y8E7eNgy.js +106 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +2 -0
- package/dist/web/remoteEntry.ssr.js +43 -0
- package/package.json +24 -21
- package/dist/auth/core/common.d.ts.map +0 -1
- package/dist/auth/core/common.js.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/auth/core/node.d.ts.map +0 -1
- package/dist/auth/core/node.js.map +0 -1
- package/dist/auth/core/schema/migrations.d.ts.map +0 -1
- package/dist/auth/core/schema/migrations.js.map +0 -1
- package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/constants.js.map +0 -1
- package/dist/auth/core/schema/roles/index.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/index.js.map +0 -1
- package/dist/auth/core/schema/roles/schema.d.ts.map +0 -1
- package/dist/auth/core/schema/roles/schema.js.map +0 -1
- package/dist/auth/core/web.d.ts.map +0 -1
- package/dist/auth/core/web.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +0 -1
- package/dist/auth/utils/get-auth-plugin-definition.js.map +0 -1
- package/dist/auth/utils/index.d.ts.map +0 -1
- package/dist/auth/utils/index.js.map +0 -1
- package/dist/better-auth/admin/common.d.ts.map +0 -1
- package/dist/better-auth/admin/common.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
- package/dist/better-auth/admin/node.d.ts.map +0 -1
- package/dist/better-auth/admin/node.js.map +0 -1
- package/dist/better-auth/admin/schema/manage-role-action.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/manage-role-action.js.map +0 -1
- package/dist/better-auth/admin/schema/reset-password-action.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/reset-password-action.js.map +0 -1
- package/dist/better-auth/admin/schema/roles-column.d.ts.map +0 -1
- package/dist/better-auth/admin/schema/roles-column.js.map +0 -1
- package/dist/better-auth/admin/web.d.ts.map +0 -1
- package/dist/better-auth/admin/web.js.map +0 -1
- package/dist/better-auth/constants/model-names.d.ts.map +0 -1
- package/dist/better-auth/constants/model-names.js.map +0 -1
- package/dist/better-auth/constants/packages.d.ts.map +0 -1
- package/dist/better-auth/constants/packages.js.map +0 -1
- package/dist/better-auth/core/common.d.ts.map +0 -1
- package/dist/better-auth/core/common.js.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +0 -1
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +0 -1
- package/dist/better-auth/core/index.d.ts.map +0 -1
- package/dist/better-auth/core/index.js.map +0 -1
- package/dist/better-auth/core/node.d.ts.map +0 -1
- package/dist/better-auth/core/node.js.map +0 -1
- package/dist/better-auth/core/schema/models.d.ts.map +0 -1
- package/dist/better-auth/core/schema/models.js.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/better-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
- package/dist/better-auth/core/schema/schema-issue-checker.js.map +0 -1
- package/dist/better-auth/core/web.d.ts.map +0 -1
- package/dist/better-auth/core/web.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js.map +0 -1
- package/dist/better-auth/generators/index.d.ts.map +0 -1
- package/dist/better-auth/generators/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +0 -1
- package/dist/better-auth/generators/react/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +0 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +0 -1
- package/dist/better-auth/index.d.ts.map +0 -1
- package/dist/better-auth/index.js.map +0 -1
- package/dist/common/components/auth-config-tabs.d.ts.map +0 -1
- package/dist/common/components/auth-config-tabs.js.map +0 -1
- package/dist/local-auth/admin/common.d.ts.map +0 -1
- package/dist/local-auth/admin/common.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
- package/dist/local-auth/admin/node.d.ts.map +0 -1
- package/dist/local-auth/admin/node.js.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/manage-role-action.js.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/reset-password-action.js.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +0 -1
- package/dist/local-auth/admin/schema/roles-column.js.map +0 -1
- package/dist/local-auth/admin/web.d.ts.map +0 -1
- package/dist/local-auth/admin/web.js.map +0 -1
- package/dist/local-auth/constants/model-names.d.ts.map +0 -1
- package/dist/local-auth/constants/model-names.js.map +0 -1
- package/dist/local-auth/core/common.d.ts.map +0 -1
- package/dist/local-auth/core/common.js.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +0 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +0 -1
- package/dist/local-auth/core/generators/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/index.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +0 -1
- package/dist/local-auth/core/index.d.ts.map +0 -1
- package/dist/local-auth/core/index.js.map +0 -1
- package/dist/local-auth/core/node.d.ts.map +0 -1
- package/dist/local-auth/core/node.js.map +0 -1
- package/dist/local-auth/core/schema/models.d.ts.map +0 -1
- package/dist/local-auth/core/schema/models.js.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/local-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
- package/dist/local-auth/core/schema/schema-issue-checker.js.map +0 -1
- package/dist/local-auth/core/web.d.ts.map +0 -1
- package/dist/local-auth/core/web.js.map +0 -1
- package/dist/local-auth/index.d.ts.map +0 -1
- package/dist/local-auth/index.js.map +0 -1
- package/dist/placeholder-auth/constants/model-names.d.ts.map +0 -1
- package/dist/placeholder-auth/constants/model-names.js.map +0 -1
- package/dist/placeholder-auth/core/common.d.ts.map +0 -1
- package/dist/placeholder-auth/core/common.js.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
- package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
- package/dist/placeholder-auth/core/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/index.js.map +0 -1
- package/dist/placeholder-auth/core/node.d.ts.map +0 -1
- package/dist/placeholder-auth/core/node.js.map +0 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/models.js.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/placeholder-auth/core/web.d.ts.map +0 -1
- package/dist/placeholder-auth/core/web.js.map +0 -1
- package/dist/placeholder-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/index.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-B9LFt4zi.js +0 -85
- package/dist/web/assets/__federation_expose_authCoreCommon-B9LFt4zi.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CRo6bfSQ.js +0 -453
- package/dist/web/assets/__federation_expose_authCoreWeb-CRo6bfSQ.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Drx1dj0K.js +0 -63
- package/dist/web/assets/__federation_expose_better-authAdminCommon-Drx1dj0K.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Zsc9mjjD.js +0 -41
- package/dist/web/assets/__federation_expose_better-authAdminWeb-Zsc9mjjD.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BTstKS5D.js +0 -54
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BTstKS5D.js.map +0 -1
- package/dist/web/assets/__federation_expose_better-authCoreWeb-ClXucVm1.js +0 -157
- package/dist/web/assets/__federation_expose_better-authCoreWeb-ClXucVm1.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-Drx1dj0K.js +0 -63
- package/dist/web/assets/__federation_expose_local-authAdminCommon-Drx1dj0K.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-Ci30yAgH.js +0 -41
- package/dist/web/assets/__federation_expose_local-authAdminWeb-Ci30yAgH.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C13Qctt3.js +0 -54
- package/dist/web/assets/__federation_expose_local-authCoreCommon-C13Qctt3.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CLMjEvfQ.js +0 -167
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CLMjEvfQ.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZPLUXY.js +0 -23
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZPLUXY.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DNuOQDyt.js +0 -177
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DNuOQDyt.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-DvwH-J9J.js +0 -421
- package/dist/web/assets/__federation_fn_import-DvwH-J9J.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B2EK5IrR.js +0 -359
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B2EK5IrR.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CueLW7vJ.js +0 -22532
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CueLW7vJ.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Cs5voPoC.js +0 -78638
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Cs5voPoC.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DH2Y7csi.js +0 -1855
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DH2Y7csi.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CDlgRD7c.js +0 -6565
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CDlgRD7c.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +0 -8
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +0 -251
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +0 -13250
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +0 -1
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +0 -6
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/web/assets/get-auth-plugin-definition-B2xRtRBt.js +0 -13
- package/dist/web/assets/get-auth-plugin-definition-B2xRtRBt.js.map +0 -1
- package/dist/web/assets/index-D2s6d88Y.js +0 -101
- package/dist/web/assets/index-D2s6d88Y.js.map +0 -1
- package/dist/web/assets/index-DUwCgkeV.js +0 -570
- package/dist/web/assets/index-DUwCgkeV.js.map +0 -1
- package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
- package/dist/web/assets/index.esm-CUhaqfEI.js +0 -2676
- package/dist/web/assets/index.esm-CUhaqfEI.js.map +0 -1
- package/dist/web/assets/isEqual-tnzoadW8.js +0 -242
- package/dist/web/assets/isEqual-tnzoadW8.js.map +0 -1
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +0 -60
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +0 -1
- package/dist/web/assets/mergeWith-VagwCqUi.js +0 -76
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +0 -1
- package/dist/web/assets/model-names-D7UT0B8x.js +0 -10
- package/dist/web/assets/model-names-D7UT0B8x.js.map +0 -1
- package/dist/web/assets/model-names-DrcaRxt1.js +0 -25
- package/dist/web/assets/model-names-DrcaRxt1.js.map +0 -1
- package/dist/web/assets/model-utils-Ccvph4Ii.js +0 -840
- package/dist/web/assets/model-utils-Ccvph4Ii.js.map +0 -1
- package/dist/web/assets/plugin-definition-B6PqjUHm.js +0 -16
- package/dist/web/assets/plugin-definition-B6PqjUHm.js.map +0 -1
- package/dist/web/assets/plugin-definition-B6kOvigE.js +0 -315
- package/dist/web/assets/plugin-definition-B6kOvigE.js.map +0 -1
- package/dist/web/assets/plugin-definition-DDe2WhbZ.js +0 -93
- package/dist/web/assets/plugin-definition-DDe2WhbZ.js.map +0 -1
- package/dist/web/assets/plugin-definition-QKz1ZAYK.js +0 -304
- package/dist/web/assets/plugin-definition-QKz1ZAYK.js.map +0 -1
- package/dist/web/assets/react-D62wAwO5.js +0 -47
- package/dist/web/assets/react-D62wAwO5.js.map +0 -1
- package/dist/web/assets/registries-Tz_dluz3.js +0 -1119
- package/dist/web/assets/registries-Tz_dluz3.js.map +0 -1
- package/dist/web/assets/remoteEntry.js +0 -84
- package/dist/web/assets/remoteEntry.js.map +0 -1
- package/dist/web/assets/styles-BEU-uMT0.js +0 -69
- package/dist/web/assets/styles-BEU-uMT0.js.map +0 -1
- package/dist/web/assets/with-selector-DTXBONcE.js +0 -201
- package/dist/web/assets/with-selector-DTXBONcE.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { St as __mf_2, _ as MultiComboboxFieldController, _t as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, a as SectionListSection, b as FormActionBar, c as SectionListSectionHeader, ft as __mf_31, g as SwitchFieldController, i as SectionList, l as SectionListSectionTitle, o as SectionListSectionContent, s as SectionListSectionDescription, xt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js";
|
|
2
|
+
import { a as __mf_167, d as __mf_231, f as __mf_259, g as __mf_55, n as __mf_142, o as __mf_17, p as __mf_26 } 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-B6a7L2-k.js";
|
|
3
|
+
import { a as __mf_25, i as __mf_24, n as __mf_19, r as __mf_22, 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-JKpdJ1L0.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-DNVWarsT.js";
|
|
5
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-2vFJROjB.js";
|
|
6
|
+
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-CORL4i-6.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_24();
|
|
11
|
+
const authPluginDefinitionSchema = __mf_22(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_25({
|
|
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_19({
|
|
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(SectionList, { children: [
|
|
61
|
+
/* @__PURE__ */ __mf_2(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "Local Auth User Models" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(SectionListSectionContent, {
|
|
62
|
+
className: "auth:space-y-6",
|
|
63
|
+
children: /* @__PURE__ */ __mf_1(__mf_0, { diff })
|
|
64
|
+
})] }),
|
|
65
|
+
/* @__PURE__ */ __mf_2(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { 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(SectionListSectionContent, {
|
|
66
|
+
className: "auth:space-y-6",
|
|
67
|
+
children: /* @__PURE__ */ __mf_1(MultiComboboxFieldController, {
|
|
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(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "Registration Settings" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { children: "Configure what information is collected during user registration." })] }), /* @__PURE__ */ __mf_1(SectionListSectionContent, {
|
|
76
|
+
className: "auth:space-y-6",
|
|
77
|
+
children: /* @__PURE__ */ __mf_1(SwitchFieldController, {
|
|
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(FormActionBar, {
|
|
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_259,
|
|
101
|
+
pluginDefaults: __mf_231
|
|
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-DiGj_0d0.js.map
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { n as __mf_88, t as __mf_53 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js";
|
|
2
|
+
import { B as useFieldArray$1, C as DialogDescription, E as DialogTitle, F as MdEdit, G as AlertDescription, K as AlertTitle, M as Button, N as MdAdd, O as useConfirmDialog, P as MdDeleteOutline, S as DialogContent, St as __mf_2, T as DialogHeader, U as useWatch, V as useForm, W as Alert, _t as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, a as SectionListSection, b as FormActionBar, bt as __mf_0, c as SectionListSectionHeader, d as RecordViewActions, f as RecordViewItem, ft as __mf_31, i as SectionList, j as Badge, l as SectionListSectionTitle, lt as __mf_27, mt as __mf_35, o as SectionListSectionContent, p as RecordViewItemList, r as SelectFieldController, s as SectionListSectionDescription, u as RecordView, w as DialogFooter, x as Dialog, xt as __mf_1, y as InputFieldController } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js";
|
|
3
|
+
import { c as __mf_189, d as __mf_231, f as __mf_259, n as __mf_142, o as __mf_17, p as __mf_26, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-B6a7L2-k.js";
|
|
4
|
+
import { n as createAuthRoleSchema, r as createDefaultAuthRoles, t as createAuthPluginDefinitionSchema } from "./plugin-definition-UAfMRa7u.js";
|
|
5
|
+
import { a as __mf_25, i as __mf_24, n as __mf_19, o as __mf_3, r as __mf_22 } 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-JKpdJ1L0.js";
|
|
6
|
+
import { n as a, t as AuthConfigTabs } from "./styles-DNVWarsT.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@hookform+lenses@0.8.1_react-hook-form@7.71.1_react@19.1.0/node_modules/@hookform/lenses/dist/rhf/index.js
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
|
+
function useFieldArray(props) {
|
|
10
|
+
const original = useFieldArray$1(props);
|
|
11
|
+
return {
|
|
12
|
+
fields: __mf_31(() => {
|
|
13
|
+
if (!props.getTransformer) return original.fields;
|
|
14
|
+
return original.fields.map(props.getTransformer);
|
|
15
|
+
}, [original.fields, props.getTransformer]),
|
|
16
|
+
move: original.move,
|
|
17
|
+
remove: original.remove,
|
|
18
|
+
swap: original.swap,
|
|
19
|
+
prepend: (value, options) => {
|
|
20
|
+
if (!props.setTransformer) return original.prepend(value, options);
|
|
21
|
+
const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
|
|
22
|
+
original.prepend(newValue, options);
|
|
23
|
+
},
|
|
24
|
+
append: (value, options) => {
|
|
25
|
+
if (!props.setTransformer) return original.append(value, options);
|
|
26
|
+
const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
|
|
27
|
+
original.append(newValue, options);
|
|
28
|
+
},
|
|
29
|
+
insert: (index, value, options) => {
|
|
30
|
+
if (!props.setTransformer) return original.insert(index, value, options);
|
|
31
|
+
const newValue = Array.isArray(value) ? value.map(props.setTransformer) : props.setTransformer(value);
|
|
32
|
+
original.insert(index, newValue, options);
|
|
33
|
+
},
|
|
34
|
+
update: (index, value) => {
|
|
35
|
+
if (!props.setTransformer) return original.update(index, value);
|
|
36
|
+
const newValue = props.setTransformer(value);
|
|
37
|
+
original.update(index, newValue);
|
|
38
|
+
},
|
|
39
|
+
replace: (value) => {
|
|
40
|
+
if (!props.setTransformer) return original.replace(value);
|
|
41
|
+
const newValue = props.setTransformer(value);
|
|
42
|
+
original.replace(newValue);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/auth/core/components/role-editor-form/role-dialog.tsx
|
|
48
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
49
|
+
function RoleDialog({ open, onOpenChange, role, isNew = false, onSave }) {
|
|
50
|
+
const { control, handleSubmit } = useForm({
|
|
51
|
+
resolver: a(__mf_22(createAuthRoleSchema)),
|
|
52
|
+
values: role
|
|
53
|
+
});
|
|
54
|
+
const onSubmit = handleSubmit((data) => {
|
|
55
|
+
onSave(data);
|
|
56
|
+
onOpenChange?.(false);
|
|
57
|
+
});
|
|
58
|
+
const formId = __mf_27();
|
|
59
|
+
return /* @__PURE__ */ __mf_1(Dialog, {
|
|
60
|
+
open,
|
|
61
|
+
onOpenChange,
|
|
62
|
+
children: /* @__PURE__ */ __mf_1(DialogContent, { children: /* @__PURE__ */ __mf_2("form", {
|
|
63
|
+
id: formId,
|
|
64
|
+
onSubmit: (e) => {
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
return onSubmit(e);
|
|
67
|
+
},
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ __mf_2(DialogHeader, { children: [/* @__PURE__ */ __mf_1(DialogTitle, { children: isNew ? "Add Role" : "Edit Role" }), /* @__PURE__ */ __mf_1(DialogDescription, { children: isNew ? "Enter the details for the new role." : "Update the role details below." })] }),
|
|
70
|
+
/* @__PURE__ */ __mf_2("div", {
|
|
71
|
+
className: "auth:space-y-4 auth:py-4",
|
|
72
|
+
children: [/* @__PURE__ */ __mf_1(InputFieldController, {
|
|
73
|
+
label: "Role Name",
|
|
74
|
+
name: "name",
|
|
75
|
+
control,
|
|
76
|
+
placeholder: "Enter role name"
|
|
77
|
+
}), /* @__PURE__ */ __mf_1(InputFieldController, {
|
|
78
|
+
label: "Description",
|
|
79
|
+
name: "comment",
|
|
80
|
+
control,
|
|
81
|
+
placeholder: "Describe this role's purpose"
|
|
82
|
+
})]
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ __mf_2(DialogFooter, { children: [/* @__PURE__ */ __mf_1(Button, {
|
|
85
|
+
type: "button",
|
|
86
|
+
variant: "outline",
|
|
87
|
+
onClick: () => {
|
|
88
|
+
onOpenChange?.(false);
|
|
89
|
+
},
|
|
90
|
+
children: "Cancel"
|
|
91
|
+
}), /* @__PURE__ */ __mf_2(Button, {
|
|
92
|
+
form: formId,
|
|
93
|
+
type: "submit",
|
|
94
|
+
children: [isNew ? "Add" : "Update", " Role"]
|
|
95
|
+
})] })
|
|
96
|
+
]
|
|
97
|
+
}) })
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/auth/core/components/role-editor-form/role-editor-form.tsx
|
|
102
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
103
|
+
function RoleEditorForm({ className, control }) {
|
|
104
|
+
const { requestConfirm } = useConfirmDialog();
|
|
105
|
+
const { append, update, remove } = useFieldArray({
|
|
106
|
+
control,
|
|
107
|
+
name: "roles"
|
|
108
|
+
});
|
|
109
|
+
const [roleToEdit, setRoleToEdit] = __mf_35();
|
|
110
|
+
const [isEditing, setIsEditing] = __mf_35(false);
|
|
111
|
+
const roles = useWatch({
|
|
112
|
+
control,
|
|
113
|
+
name: "roles"
|
|
114
|
+
});
|
|
115
|
+
function handleSaveRole(newRole) {
|
|
116
|
+
const existingIndex = roles.findIndex((role) => role.id === newRole.id);
|
|
117
|
+
if (existingIndex === -1) append(newRole);
|
|
118
|
+
else update(existingIndex, newRole);
|
|
119
|
+
}
|
|
120
|
+
function handleDeleteRole(roleIdx) {
|
|
121
|
+
const role = roles[roleIdx];
|
|
122
|
+
requestConfirm({
|
|
123
|
+
title: "Delete Role",
|
|
124
|
+
content: `Are you sure you want to delete the role "${role.name}"?`,
|
|
125
|
+
onConfirm: () => {
|
|
126
|
+
remove(roleIdx);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
return /* @__PURE__ */ __mf_2(SectionListSection, {
|
|
131
|
+
className,
|
|
132
|
+
children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "User Roles" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), /* @__PURE__ */ __mf_2(SectionListSectionContent, {
|
|
133
|
+
className: "auth:space-y-4",
|
|
134
|
+
children: [
|
|
135
|
+
roles.map((role, roleIdx) => /* @__PURE__ */ __mf_2(RecordView, { children: [/* @__PURE__ */ __mf_2(RecordViewItemList, { children: [/* @__PURE__ */ __mf_1(RecordViewItem, {
|
|
136
|
+
title: "Name",
|
|
137
|
+
children: /* @__PURE__ */ __mf_1("div", {
|
|
138
|
+
className: "auth:flex auth:items-center auth:gap-2",
|
|
139
|
+
children: /* @__PURE__ */ __mf_1("span", { children: role.name })
|
|
140
|
+
})
|
|
141
|
+
}), /* @__PURE__ */ __mf_1(RecordViewItem, {
|
|
142
|
+
title: "Description",
|
|
143
|
+
children: role.comment.trim() || /* @__PURE__ */ __mf_1("span", {
|
|
144
|
+
className: "auth:text-muted-foreground",
|
|
145
|
+
children: "No description"
|
|
146
|
+
})
|
|
147
|
+
})] }), /* @__PURE__ */ __mf_2(RecordViewActions, { children: [role.builtIn && /* @__PURE__ */ __mf_1(Badge, {
|
|
148
|
+
variant: "secondary",
|
|
149
|
+
children: "Default Role"
|
|
150
|
+
}), !role.builtIn && /* @__PURE__ */ __mf_2(__mf_0, { children: [/* @__PURE__ */ __mf_1(Button, {
|
|
151
|
+
variant: "ghost",
|
|
152
|
+
size: "icon",
|
|
153
|
+
title: "Edit",
|
|
154
|
+
"aria-label": "Edit role",
|
|
155
|
+
onClick: () => {
|
|
156
|
+
setRoleToEdit(role);
|
|
157
|
+
setIsEditing(true);
|
|
158
|
+
},
|
|
159
|
+
children: /* @__PURE__ */ __mf_1(MdEdit, {})
|
|
160
|
+
}), /* @__PURE__ */ __mf_1(Button, {
|
|
161
|
+
variant: "ghostDestructive",
|
|
162
|
+
size: "icon",
|
|
163
|
+
title: "Delete",
|
|
164
|
+
"aria-label": "Delete role",
|
|
165
|
+
onClick: () => {
|
|
166
|
+
handleDeleteRole(roleIdx);
|
|
167
|
+
},
|
|
168
|
+
children: /* @__PURE__ */ __mf_1(MdDeleteOutline, {})
|
|
169
|
+
})] })] })] }, role.id)),
|
|
170
|
+
/* @__PURE__ */ __mf_1(RoleDialog, {
|
|
171
|
+
open: isEditing,
|
|
172
|
+
onOpenChange: setIsEditing,
|
|
173
|
+
role: roleToEdit,
|
|
174
|
+
isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true,
|
|
175
|
+
onSave: handleSaveRole
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ __mf_2(Button, {
|
|
178
|
+
variant: "secondary",
|
|
179
|
+
size: "sm",
|
|
180
|
+
onClick: () => {
|
|
181
|
+
setRoleToEdit({
|
|
182
|
+
id: __mf_59.generateNewId(),
|
|
183
|
+
name: "",
|
|
184
|
+
comment: "",
|
|
185
|
+
builtIn: false
|
|
186
|
+
});
|
|
187
|
+
setIsEditing(true);
|
|
188
|
+
},
|
|
189
|
+
children: [/* @__PURE__ */ __mf_1(MdAdd, {}), "Add Role"]
|
|
190
|
+
})
|
|
191
|
+
]
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/auth/core/components/auth-definition-editor.tsx
|
|
197
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
198
|
+
function AuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
199
|
+
const { definition, definitionContainer, schemaParserContext, saveDefinitionWithFeedback } = __mf_24();
|
|
200
|
+
const authPluginDefinitionSchema = __mf_22(createAuthPluginDefinitionSchema);
|
|
201
|
+
const availableImplementations = __mf_189(schemaParserContext.pluginStore, metadata.key);
|
|
202
|
+
const defaultImplementation = availableImplementations.find((i) => i.fullyQualifiedName === "@baseplate-dev/plugin-auth:local-auth") ?? availableImplementations[0];
|
|
203
|
+
const defaultValues = __mf_31(() => {
|
|
204
|
+
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
205
|
+
const defaultAuthFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/auth");
|
|
206
|
+
const defaultAccountsFeatureRef = __mf_17.getFeatureIdByNameOrDefault(definition, "accounts/users");
|
|
207
|
+
return {
|
|
208
|
+
implementationPluginKey: defaultImplementation.key,
|
|
209
|
+
authFeatureRef: defaultAuthFeatureRef,
|
|
210
|
+
accountsFeatureRef: defaultAccountsFeatureRef,
|
|
211
|
+
roles: createDefaultAuthRoles()
|
|
212
|
+
};
|
|
213
|
+
}, [
|
|
214
|
+
definition,
|
|
215
|
+
pluginMetadata?.config,
|
|
216
|
+
defaultImplementation
|
|
217
|
+
]);
|
|
218
|
+
const form = __mf_25({
|
|
219
|
+
resolver: a(authPluginDefinitionSchema),
|
|
220
|
+
defaultValues
|
|
221
|
+
});
|
|
222
|
+
const { control, reset, handleSubmit, watch } = form;
|
|
223
|
+
const implementationPluginKey = watch("implementationPluginKey");
|
|
224
|
+
const selectedPlugin = implementationPluginKey && availableImplementations.find((i) => i.key === implementationPluginKey);
|
|
225
|
+
const isSelectedImplementationActive = !!__mf_26.byKey(definitionContainer.definition, implementationPluginKey);
|
|
226
|
+
const hasSelectedImplementationChanged = implementationPluginKey !== (pluginMetadata?.config)?.implementationPluginKey;
|
|
227
|
+
const selectedImplementationUrl = selectedPlugin ? `/plugins/edit/${selectedPlugin.key}` : void 0;
|
|
228
|
+
const navigate = __mf_88();
|
|
229
|
+
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
230
|
+
const featureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.authFeatureRef);
|
|
231
|
+
const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draftConfig, data.accountsFeatureRef);
|
|
232
|
+
__mf_26.setPluginConfig(draftConfig, metadata, {
|
|
233
|
+
...data,
|
|
234
|
+
authFeatureRef: featureRef,
|
|
235
|
+
accountsFeatureRef
|
|
236
|
+
}, definitionContainer);
|
|
237
|
+
const otherPlugins = availableImplementations.filter((i) => i.key !== implementationPluginKey);
|
|
238
|
+
for (const plugin of otherPlugins) __mf_26.disablePlugin(draftConfig, plugin.key, definitionContainer.parserContext);
|
|
239
|
+
}, {
|
|
240
|
+
successMessage: `Successfully saved auth plugin! ${selectedImplementationUrl && !isSelectedImplementationActive ? `Please configure the provider plugin before syncing.` : ""}`,
|
|
241
|
+
onSuccess: () => {
|
|
242
|
+
onSave();
|
|
243
|
+
if (selectedImplementationUrl && !isSelectedImplementationActive) setTimeout(() => {
|
|
244
|
+
navigate({ to: selectedImplementationUrl });
|
|
245
|
+
}, 100);
|
|
246
|
+
}
|
|
247
|
+
}));
|
|
248
|
+
__mf_19({
|
|
249
|
+
control,
|
|
250
|
+
reset,
|
|
251
|
+
onSubmit
|
|
252
|
+
});
|
|
253
|
+
return /* @__PURE__ */ __mf_2("div", {
|
|
254
|
+
className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
|
|
255
|
+
children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
|
|
256
|
+
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
257
|
+
style: { "--action-bar-height": "52px" },
|
|
258
|
+
children: /* @__PURE__ */ __mf_2("form", {
|
|
259
|
+
onSubmit,
|
|
260
|
+
className: "auth:max-w-6xl auth:flex-1",
|
|
261
|
+
children: [/* @__PURE__ */ __mf_2("div", {
|
|
262
|
+
className: "auth:pb-16",
|
|
263
|
+
children: [!isSelectedImplementationActive && selectedPlugin && !hasSelectedImplementationChanged && /* @__PURE__ */ __mf_2(Alert, {
|
|
264
|
+
variant: "warning",
|
|
265
|
+
children: [/* @__PURE__ */ __mf_1(AlertTitle, { children: "Implementation Provider Not Active" }), /* @__PURE__ */ __mf_1(AlertDescription, { children: /* @__PURE__ */ __mf_2("p", { children: [
|
|
266
|
+
"The selected implementation provider is not active. Please make sure",
|
|
267
|
+
" ",
|
|
268
|
+
/* @__PURE__ */ __mf_1(__mf_53, {
|
|
269
|
+
to: selectedImplementationUrl,
|
|
270
|
+
className: "auth:inline-block auth:font-medium",
|
|
271
|
+
children: "configure the provider"
|
|
272
|
+
}),
|
|
273
|
+
" ",
|
|
274
|
+
"before syncing."
|
|
275
|
+
] }) })]
|
|
276
|
+
}), /* @__PURE__ */ __mf_2(SectionList, { children: [/* @__PURE__ */ __mf_2(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "General Settings" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { children: "Configure the general settings for the auth plugin." })] }), /* @__PURE__ */ __mf_2(SectionListSectionContent, {
|
|
277
|
+
className: "auth:space-y-6",
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ __mf_1(__mf_3, {
|
|
280
|
+
label: "Auth Feature Path",
|
|
281
|
+
name: "authFeatureRef",
|
|
282
|
+
control,
|
|
283
|
+
canCreate: true,
|
|
284
|
+
description: "Specify the feature path where auth infrastructure will be generated"
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ __mf_1(__mf_3, {
|
|
287
|
+
label: "Accounts Feature Path",
|
|
288
|
+
name: "accountsFeatureRef",
|
|
289
|
+
control,
|
|
290
|
+
canCreate: true,
|
|
291
|
+
description: "Specify the feature path where user account models will be generated"
|
|
292
|
+
}),
|
|
293
|
+
/* @__PURE__ */ __mf_1(SelectFieldController, {
|
|
294
|
+
label: "Authentication Provider",
|
|
295
|
+
name: "implementationPluginKey",
|
|
296
|
+
control,
|
|
297
|
+
options: availableImplementations,
|
|
298
|
+
renderItemLabel: (item) => /* @__PURE__ */ __mf_2("div", {
|
|
299
|
+
className: "auth:flex auth:flex-col auth:gap-2",
|
|
300
|
+
children: [/* @__PURE__ */ __mf_1("div", {
|
|
301
|
+
className: "auth:text-sm auth:font-medium",
|
|
302
|
+
children: item.displayName
|
|
303
|
+
}), /* @__PURE__ */ __mf_1("div", {
|
|
304
|
+
className: "auth:text-sm auth:text-muted-foreground",
|
|
305
|
+
children: item.description
|
|
306
|
+
})]
|
|
307
|
+
}),
|
|
308
|
+
getOptionLabel: (item) => item.displayName,
|
|
309
|
+
getOptionValue: (item) => item.key,
|
|
310
|
+
description: "The authentication provider to use for your project"
|
|
311
|
+
})
|
|
312
|
+
]
|
|
313
|
+
})] }), /* @__PURE__ */ __mf_1(RoleEditorForm, { control })] })]
|
|
314
|
+
}), /* @__PURE__ */ __mf_1(FormActionBar, {
|
|
315
|
+
form,
|
|
316
|
+
allowSaveWithoutDirty: !pluginMetadata
|
|
317
|
+
})]
|
|
318
|
+
})
|
|
319
|
+
})]
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/auth/core/web.ts
|
|
324
|
+
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
325
|
+
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
326
|
+
var AUTH_IMPL_FQN_PREFIX = "@baseplate-dev/plugin-auth:";
|
|
327
|
+
var PARENT_AUTH_FQN = "@baseplate-dev/plugin-auth:auth";
|
|
328
|
+
var web_default = __mf_142({
|
|
329
|
+
name: "web",
|
|
330
|
+
dependencies: {
|
|
331
|
+
webConfig: __mf_259,
|
|
332
|
+
pluginDefaults: __mf_231
|
|
333
|
+
},
|
|
334
|
+
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
335
|
+
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
336
|
+
pluginDefaults.builders.set(pluginKey, ({ draft, enabledPluginFqns, findPluginMetadataByFqn }) => {
|
|
337
|
+
const authFeatureRef = __mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
338
|
+
const accountsFeatureRef = __mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
339
|
+
const implFqn = [...enabledPluginFqns].find((fqn) => fqn.startsWith(AUTH_IMPL_FQN_PREFIX) && fqn !== PARENT_AUTH_FQN);
|
|
340
|
+
if (!implFqn) throw new Error("No auth implementation plugin enabled. Add an auth implementation (e.g. local-auth or better-auth) to the enabled plugins.");
|
|
341
|
+
const implPlugin = findPluginMetadataByFqn(implFqn);
|
|
342
|
+
if (!implPlugin) throw new Error(`Auth implementation plugin ${implFqn} is enabled but its metadata could not be resolved.`);
|
|
343
|
+
return { config: {
|
|
344
|
+
implementationPluginKey: implPlugin.key,
|
|
345
|
+
authFeatureRef,
|
|
346
|
+
accountsFeatureRef,
|
|
347
|
+
roles: createDefaultAuthRoles()
|
|
348
|
+
} };
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
//#endregion
|
|
353
|
+
export { web_default as default };
|
|
354
|
+
|
|
355
|
+
//# sourceMappingURL=web-OntIhIfe.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { St as __mf_2, _ as MultiComboboxFieldController, _t as init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__, a as SectionListSection, b as FormActionBar, c as SectionListSectionHeader, ft as __mf_31, i as SectionList, l as SectionListSectionTitle, o as SectionListSectionContent, s as SectionListSectionDescription, xt as __mf_1 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js";
|
|
2
|
+
import { a as __mf_167, d as __mf_231, f as __mf_259, g as __mf_55, n as __mf_142, o as __mf_17, p as __mf_26 } 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-B6a7L2-k.js";
|
|
3
|
+
import { a as __mf_25, i as __mf_24, n as __mf_19, r as __mf_22, 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-JKpdJ1L0.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-DNVWarsT.js";
|
|
5
|
+
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-DPPMgQz_.js";
|
|
6
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-2vFJROjB.js";
|
|
7
|
+
//#region src/better-auth/core/components/better-auth-definition-editor.tsx
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__();
|
|
9
|
+
function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_24();
|
|
11
|
+
const betterAuthPluginDefinitionSchema = __mf_22(createBetterAuthPluginDefinitionSchema);
|
|
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 { additionalUserAdminRoles: [] };
|
|
20
|
+
}, [pluginMetadata?.config]);
|
|
21
|
+
const form = __mf_25({
|
|
22
|
+
resolver: a(betterAuthPluginDefinitionSchema),
|
|
23
|
+
defaultValues
|
|
24
|
+
});
|
|
25
|
+
const { control, reset, handleSubmit } = form;
|
|
26
|
+
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
27
|
+
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
28
|
+
const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
|
|
29
|
+
if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
|
|
30
|
+
const partialDef = __mf_31(() => createBetterAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
31
|
+
const diff = __mf_31(() => __mf_167(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
32
|
+
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
33
|
+
const updatedData = { ...data };
|
|
34
|
+
__mf_55(definitionContainer, partialDef)(draftConfig);
|
|
35
|
+
__mf_26.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
36
|
+
}, {
|
|
37
|
+
successMessage: "Successfully saved Better Auth plugin!",
|
|
38
|
+
onSuccess: () => {
|
|
39
|
+
onSave();
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
__mf_19({
|
|
43
|
+
control,
|
|
44
|
+
reset,
|
|
45
|
+
onSubmit
|
|
46
|
+
});
|
|
47
|
+
return /* @__PURE__ */ __mf_2("div", {
|
|
48
|
+
className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden",
|
|
49
|
+
children: [/* @__PURE__ */ __mf_1(AuthConfigTabs, {}), /* @__PURE__ */ __mf_1("div", {
|
|
50
|
+
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
51
|
+
style: { "--action-bar-height": "52px" },
|
|
52
|
+
children: /* @__PURE__ */ __mf_2("form", {
|
|
53
|
+
onSubmit,
|
|
54
|
+
className: "auth:max-w-6xl auth:flex-1",
|
|
55
|
+
children: [/* @__PURE__ */ __mf_1("div", {
|
|
56
|
+
className: "auth:pb-16",
|
|
57
|
+
children: /* @__PURE__ */ __mf_2(SectionList, { children: [/* @__PURE__ */ __mf_2(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(SectionListSectionContent, {
|
|
58
|
+
className: "auth:space-y-6",
|
|
59
|
+
children: /* @__PURE__ */ __mf_1(__mf_0, {
|
|
60
|
+
diff,
|
|
61
|
+
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
62
|
+
})
|
|
63
|
+
})] }), /* @__PURE__ */ __mf_2(SectionListSection, { children: [/* @__PURE__ */ __mf_2(SectionListSectionHeader, { children: [/* @__PURE__ */ __mf_1(SectionListSectionTitle, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(SectionListSectionDescription, { 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(SectionListSectionContent, {
|
|
64
|
+
className: "auth:space-y-6",
|
|
65
|
+
children: /* @__PURE__ */ __mf_1(MultiComboboxFieldController, {
|
|
66
|
+
label: "Additional User Admin Roles",
|
|
67
|
+
name: "additionalUserAdminRoles",
|
|
68
|
+
control,
|
|
69
|
+
options: roles,
|
|
70
|
+
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
71
|
+
})
|
|
72
|
+
})] })] })
|
|
73
|
+
}), /* @__PURE__ */ __mf_1(FormActionBar, {
|
|
74
|
+
form,
|
|
75
|
+
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/better-auth/core/web.ts
|
|
83
|
+
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
84
|
+
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
85
|
+
var web_default = __mf_142({
|
|
86
|
+
name: "web",
|
|
87
|
+
dependencies: {
|
|
88
|
+
webConfig: __mf_259,
|
|
89
|
+
pluginDefaults: __mf_231
|
|
90
|
+
},
|
|
91
|
+
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
92
|
+
webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
|
|
93
|
+
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
94
|
+
__mf_17.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
95
|
+
__mf_17.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
96
|
+
return {
|
|
97
|
+
config: {},
|
|
98
|
+
partialDef: createBetterAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { web_default as default };
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=web-y8E7eNgy.js.map
|
package/dist/web/index.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
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
|
-
<
|
|
19
|
-
|
|
18
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-13480d2a.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/hostInit-35H-qR11.js"><link rel="modulepreload" crossorigin href="./assets/index-Cr47LBtj.js"><link rel="modulepreload" crossorigin href="./remoteEntry.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DEljr3MS.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-B6a7L2-k.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-JKpdJ1L0.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js"></head>
|
|
20
20
|
|
|
21
21
|
<body>
|
|
22
22
|
<div id="root"></div>
|
|
@@ -0,0 +1,43 @@
|
|
|
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-DC8YPV1Z.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
|