@baseplate-dev/plugin-auth 0.6.17 → 0.6.19
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 +54 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
- package/dist/better-auth/core/node.js +7 -8
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +37 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +222 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +37 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +370 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +77 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +38 -1
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
- package/dist/local-auth/admin/common.js +6 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +593 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +602 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +307 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +294 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +68 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
- package/dist/local-auth/admin/node.js +13 -0
- package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
- package/dist/local-auth/admin/web.js +8 -0
- package/dist/local-auth/core/common.js +7 -2
- package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
- package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +16 -7
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +73 -16
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +222 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +27 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +71 -4
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +226 -10
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +91 -7
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +142 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +221 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +5 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -5
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +23 -7
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +7 -26
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +65 -4
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +22 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +19 -2
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +7 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +42 -4
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +24 -13
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +67 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +140 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +191 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +39 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1089 -268
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +49 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +918 -283
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +155 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +274 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +312 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +5 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +6 -12
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +90 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +38 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +102 -12
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +54 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
- package/dist/local-auth/core/node.js +30 -12
- package/dist/local-auth/core/schema/migrations.d.ts +3 -0
- package/dist/local-auth/core/schema/migrations.js +36 -0
- package/dist/local-auth/core/schema/models.js +8 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +1 -0
- package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
- package/dist/local-auth/core/schema/web-app-schema.js +16 -0
- package/dist/local-auth/core/web.js +8 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +42 -34
- package/dist/web/assets/{dist-DY7ZXvq4.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +16857 -381
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +90 -38
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +4095 -2399
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +212 -57
- package/dist/web/assets/auth-DR6QxrAW.js +1 -0
- package/dist/web/assets/{common-iHaemino.js → common-BsyRiQi3.js} +6 -6
- package/dist/web/assets/{common-TDf_PrjX.js → common-CRwNlCMn.js} +10 -10
- package/dist/web/assets/{common-ByxS61u8.js → common-CvqlRZC9.js} +12 -12
- package/dist/web/assets/common-D3atSs7O.js +70 -0
- package/dist/web/assets/common-DuFyXa6l.js +36 -0
- package/dist/web/assets/common-islduJTj.js +43 -0
- package/dist/web/assets/{dist-CrLSslv6.js → dist-DQd1TAJX.js} +273 -132
- package/dist/web/assets/{get-auth-plugin-definition-kDCtXq_6.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
- package/dist/web/assets/{hostInit-Cruek6c6.js → hostInit-DNA4kLRY.js} +32 -5
- package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-ea77c09b.js} +2 -1
- package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-9dee3d8d.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-3179040b.js} +3 -2
- package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-370d200d.js} +3 -2
- package/dist/web/assets/{models-DSvs_3bA.js → models-BOeSYfRn.js} +4 -5
- package/dist/web/assets/{models-BZmCbizK.js → models-DF6DoXt6.js} +11 -6
- package/dist/web/assets/{plugin-definition-CYj29S3q.js → plugin-definition--k0VAeK3.js} +9 -10
- package/dist/web/assets/plugin-definition-CMwSlxsJ.js +10 -0
- package/dist/web/assets/{styles-yjbHBTlw.js → styles-BQEcQHoR.js} +9 -10
- package/dist/web/assets/{virtualExposes-CbPBmicF.js → virtualExposes-C7fDiAmS.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js +747 -0
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
- package/dist/web/assets/web-8wz0ad-V.js +59 -0
- package/dist/web/assets/{web-CXAHKjIY.js → web-BGixH_gT.js} +27 -27
- package/dist/web/assets/{web-1eTcxMhf.js → web-BxIwkN3O.js} +6 -6
- package/dist/web/assets/{web-VqBA3jxZ.js → web-CQMfABjr.js} +24 -24
- package/dist/web/assets/{web-CDAKPPK9.js → web-CcNpItSu.js} +22 -22
- package/dist/web/assets/web-CypPeiVv.js +148 -0
- package/dist/web/assets/{web-D0MSKfyv.js → web-CzK_la2_.js} +53 -53
- package/dist/web/index.html +5 -5
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +14 -14
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js +0 -384
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js +0 -13566
- package/dist/web/assets/auth-BxAE0rgh.js +0 -1
- package/dist/web/assets/common-CKl_XlvH.js +0 -37
- package/dist/web/assets/common-UpVCKZeW.js +0 -41
- package/dist/web/assets/common-crSwCD36.js +0 -37
- package/dist/web/assets/model-utils-C0WDb_Ec.js +0 -1599
- package/dist/web/assets/plugin-definition-DOMmPL2Z.js +0 -11
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js +0 -259
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js +0 -129
- package/dist/web/assets/web-DbeAaDTV.js +0 -118
- package/dist/web/assets/web-miDovYk_.js +0 -46
- package/dist/web/remoteEntry.ssr.js +0 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as __mf_24 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
//#region src/auth/utils/get-auth-plugin-definition.ts
|
|
3
3
|
/**
|
|
4
4
|
* Get the auth plugin definition from the project definition.
|
|
@@ -6,9 +6,9 @@ import { f as __mf_26 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__lo
|
|
|
6
6
|
* @returns The auth plugin definition.
|
|
7
7
|
*/
|
|
8
8
|
function getAuthPluginDefinition(definition) {
|
|
9
|
-
return
|
|
9
|
+
return __mf_24.configByKeyOrThrow(definition, "baseplate-dev_plugin-auth_auth");
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
export { getAuthPluginDefinition as t };
|
|
13
13
|
|
|
14
|
-
//# sourceMappingURL=get-auth-plugin-definition-
|
|
14
|
+
//# sourceMappingURL=get-auth-plugin-definition-BgWWHl_Y.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __vitePreload } from "./vite-preload-helper-ARKYL6bp.js";
|
|
2
|
-
//#region \0virtual:mf:
|
|
2
|
+
//#region \0virtual:mf:__mfe_internal__plugin_mf_2_auth__mf_owner__1__H_A_I__hostAutoInit__H_A_I__.js
|
|
3
3
|
var __mfCacheGlobalKey = "__mf_module_cache__";
|
|
4
4
|
globalThis[__mfCacheGlobalKey] ||= {
|
|
5
5
|
share: {},
|
|
@@ -30,6 +30,7 @@ async function initHost() {
|
|
|
30
30
|
if (value !== void 0) return value;
|
|
31
31
|
const aliases = descriptor.aliases || [];
|
|
32
32
|
for (const alias of aliases) {
|
|
33
|
+
if (!Object.prototype.hasOwnProperty.call(cache, alias)) continue;
|
|
33
34
|
const aliasValue = cache[alias];
|
|
34
35
|
if (aliasValue !== void 0) {
|
|
35
36
|
cache[descriptor.canonical] = aliasValue;
|
|
@@ -37,15 +38,41 @@ async function initHost() {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
|
-
const
|
|
41
|
+
const __mfSharedCacheListenersKey = Symbol.for("module-federation.shared-cache-listeners");
|
|
42
|
+
const __mfSharedCacheOwnersKey = Symbol.for("module-federation.shared-cache-owners");
|
|
43
|
+
const __mfGetSharedCacheOwners = (cache) => {
|
|
44
|
+
let owners = cache[__mfSharedCacheOwnersKey];
|
|
45
|
+
if (owners === void 0) {
|
|
46
|
+
owners = Object.create(null);
|
|
47
|
+
Object.defineProperty(cache, __mfSharedCacheOwnersKey, {
|
|
48
|
+
value: owners,
|
|
49
|
+
enumerable: false,
|
|
50
|
+
configurable: false,
|
|
51
|
+
writable: false
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return owners;
|
|
55
|
+
};
|
|
56
|
+
const __mfWriteSharedCache = (cache, descriptor, value, owner) => {
|
|
41
57
|
cache[descriptor.canonical] = value;
|
|
42
58
|
const aliases = descriptor.aliases || [];
|
|
43
|
-
for (const alias of aliases)
|
|
59
|
+
for (const alias of aliases) Object.defineProperty(cache, alias, {
|
|
60
|
+
value,
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true
|
|
64
|
+
});
|
|
65
|
+
const owners = cache[__mfSharedCacheOwnersKey];
|
|
66
|
+
if (owner === void 0) {
|
|
67
|
+
if (owners) delete owners[descriptor.canonical];
|
|
68
|
+
} else __mfGetSharedCacheOwners(cache)[descriptor.canonical] = owner;
|
|
69
|
+
const listeners = cache[__mfSharedCacheListenersKey]?.[descriptor.canonical];
|
|
70
|
+
if (listeners) for (const listener of listeners) listener(value);
|
|
44
71
|
return value;
|
|
45
72
|
};
|
|
46
73
|
const runtime = await (await __vitePreload(() => import("../remoteEntry.js"), [], import.meta.url)).init();
|
|
47
74
|
const { usedShared } = await __vitePreload(async () => {
|
|
48
|
-
const { usedShared } = await import("./_virtual_mf-
|
|
75
|
+
const { usedShared } = await import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js");
|
|
49
76
|
return { usedShared };
|
|
50
77
|
}, [], import.meta.url);
|
|
51
78
|
const __mfNormalizeRuntimeShare = (mod) => {
|
|
@@ -85,7 +112,7 @@ async function initHost() {
|
|
|
85
112
|
await runtime.loadShare(pkg, { customShareInfo: { shareConfig: share.shareConfig } }).then((factory) => {
|
|
86
113
|
const mod = typeof factory === "function" ? factory() : factory;
|
|
87
114
|
return Promise.resolve(mod).then((resolved) => {
|
|
88
|
-
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, __mfNormalizeRuntimeShare(resolved));
|
|
115
|
+
__mfWriteSharedCache(__mfModuleCache.share, cacheDescriptor, __mfNormalizeRuntimeShare(resolved), "plugin-auth");
|
|
89
116
|
});
|
|
90
117
|
});
|
|
91
118
|
}
|
package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-ea77c09b.js}
RENAMED
|
@@ -24,8 +24,9 @@ const __mfImport = (src) =>
|
|
|
24
24
|
: import(src);
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
(async () => {
|
|
28
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
29
30
|
await __mfHostInit.__tla;
|
|
30
31
|
const { initHost } = __mfHostInit;
|
|
31
32
|
await initHost();
|
package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-9dee3d8d.js}
RENAMED
|
@@ -24,12 +24,13 @@ const __mfImport = (src) =>
|
|
|
24
24
|
: import(src);
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
(async () => {
|
|
28
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
29
30
|
await __mfHostInit.__tla;
|
|
30
31
|
const { initHost } = __mfHostInit;
|
|
31
32
|
await initHost();
|
|
32
33
|
if (__mfModuleCache.pendingShareLoads) {
|
|
33
34
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
34
35
|
}
|
|
35
|
-
})().then(() => __mfImport("./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
36
|
+
})().then(() => __mfImport("./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js"));
|
package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-3179040b.js}
RENAMED
|
@@ -24,12 +24,13 @@ const __mfImport = (src) =>
|
|
|
24
24
|
: import(src);
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
(async () => {
|
|
28
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
29
30
|
await __mfHostInit.__tla;
|
|
30
31
|
const { initHost } = __mfHostInit;
|
|
31
32
|
await initHost();
|
|
32
33
|
if (__mfModuleCache.pendingShareLoads) {
|
|
33
34
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
34
35
|
}
|
|
35
|
-
})().then(() => __mfImport("./dist-
|
|
36
|
+
})().then(() => __mfImport("./dist-DQd1TAJX.js"));
|
package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-370d200d.js}
RENAMED
|
@@ -24,12 +24,13 @@ const __mfImport = (src) =>
|
|
|
24
24
|
: import(src);
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
(async () => {
|
|
28
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
29
30
|
await __mfHostInit.__tla;
|
|
30
31
|
const { initHost } = __mfHostInit;
|
|
31
32
|
await initHost();
|
|
32
33
|
if (__mfModuleCache.pendingShareLoads) {
|
|
33
34
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
34
35
|
}
|
|
35
|
-
})().then(() => __mfImport("./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-
|
|
36
|
+
})().then(() => __mfImport("./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js"));
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js";
|
|
1
|
+
import { M as __mf_0, c as __mf_146, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
3
2
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
4
3
|
//#region src/better-auth/core/schema/plugin-definition.ts
|
|
5
|
-
var createBetterAuthPluginDefinitionSchema =
|
|
6
|
-
type:
|
|
4
|
+
var createBetterAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({ additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
|
|
5
|
+
type: __mf_146,
|
|
7
6
|
onDelete: "DELETE"
|
|
8
7
|
})), []) }));
|
|
9
8
|
//#endregion
|
|
@@ -301,4 +300,4 @@ function createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
301
300
|
//#endregion
|
|
302
301
|
export { createBetterAuthPluginDefinitionSchema as n, createBetterAuthPartialDefinition as t };
|
|
303
302
|
|
|
304
|
-
//# sourceMappingURL=models-
|
|
303
|
+
//# sourceMappingURL=models-BOeSYfRn.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js";
|
|
1
|
+
import { M as __mf_0, c as __mf_146, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
3
2
|
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
3
|
//#region src/local-auth/core/schema/plugin-definition.ts
|
|
5
|
-
var createLocalAuthPluginDefinitionSchema =
|
|
4
|
+
var createLocalAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({
|
|
6
5
|
additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
|
|
7
|
-
type:
|
|
6
|
+
type: __mf_146,
|
|
8
7
|
onDelete: "DELETE"
|
|
9
8
|
})), []),
|
|
10
|
-
requireNameOnRegistration: __mf_0.boolean().default(false)
|
|
9
|
+
requireNameOnRegistration: __mf_0.boolean().default(false),
|
|
10
|
+
emailOtp: __mf_0.boolean().default(false)
|
|
11
11
|
}));
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/local-auth/core/schema/models.ts
|
|
@@ -252,6 +252,11 @@ function createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
252
252
|
type: "json",
|
|
253
253
|
isOptional: true
|
|
254
254
|
},
|
|
255
|
+
{
|
|
256
|
+
name: "attempts",
|
|
257
|
+
type: "int",
|
|
258
|
+
options: { default: "0" }
|
|
259
|
+
},
|
|
255
260
|
{
|
|
256
261
|
name: "expiresAt",
|
|
257
262
|
type: "dateTime"
|
|
@@ -282,4 +287,4 @@ function createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
282
287
|
//#endregion
|
|
283
288
|
export { createLocalAuthPluginDefinitionSchema as n, createLocalAuthPartialDefinition as t };
|
|
284
289
|
|
|
285
|
-
//# sourceMappingURL=models-
|
|
290
|
+
//# sourceMappingURL=models-DF6DoXt6.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as __mf_163, s as __mf_172, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js";
|
|
1
|
+
import { M as __mf_0, c as __mf_146, d as __mf_159, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
3
2
|
//#region src/auth/core/schema/roles/constants.ts
|
|
4
3
|
var AUTH_DEFAULT_ROLES = [
|
|
5
4
|
{
|
|
@@ -30,23 +29,23 @@ var AUTH_DEFAULT_ROLES = [
|
|
|
30
29
|
function createDefaultAuthRoles() {
|
|
31
30
|
return AUTH_DEFAULT_ROLES.map((role) => ({
|
|
32
31
|
...role,
|
|
33
|
-
id:
|
|
32
|
+
id: __mf_146.generateNewId()
|
|
34
33
|
}));
|
|
35
34
|
}
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/auth/core/schema/roles/schema.ts
|
|
38
|
-
var createAuthRoleSchema =
|
|
37
|
+
var createAuthRoleSchema = __mf_156((ctx) => ctx.withEnt(__mf_0.object({
|
|
39
38
|
id: __mf_0.string(),
|
|
40
39
|
name: __mf_0.string().min(1),
|
|
41
40
|
comment: __mf_0.string().min(1),
|
|
42
41
|
builtIn: __mf_0.boolean().default(false),
|
|
43
42
|
autoAssigned: __mf_0.boolean().default(false)
|
|
44
|
-
}), { type:
|
|
43
|
+
}), { type: __mf_146 }));
|
|
45
44
|
/**
|
|
46
45
|
* Defines the schema for an array of roles ensuring that there are no duplicate
|
|
47
46
|
* role names and that the built-in roles are included.
|
|
48
47
|
*/
|
|
49
|
-
var createAuthRolesSchema =
|
|
48
|
+
var createAuthRolesSchema = __mf_156((ctx) => __mf_0.array(createAuthRoleSchema(ctx)).superRefine((roles, ctx) => {
|
|
50
49
|
const dup = roles.map((r) => r.name).filter((v, i, a) => a.indexOf(v) !== i);
|
|
51
50
|
if (dup.length > 0) ctx.addIssue({
|
|
52
51
|
code: "custom",
|
|
@@ -60,14 +59,14 @@ var createAuthRolesSchema = __mf_163((ctx) => __mf_0.array(createAuthRoleSchema(
|
|
|
60
59
|
}));
|
|
61
60
|
//#endregion
|
|
62
61
|
//#region src/auth/core/schema/plugin-definition.ts
|
|
63
|
-
var createAuthPluginDefinitionSchema =
|
|
62
|
+
var createAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({
|
|
64
63
|
implementationPluginKey: __mf_0.string().min(1, "Auth implementation plugin must be selected"),
|
|
65
64
|
authFeatureRef: ctx.withRef({
|
|
66
|
-
type:
|
|
65
|
+
type: __mf_159,
|
|
67
66
|
onDelete: "RESTRICT"
|
|
68
67
|
}),
|
|
69
68
|
accountsFeatureRef: ctx.withRef({
|
|
70
|
-
type:
|
|
69
|
+
type: __mf_159,
|
|
71
70
|
onDelete: "RESTRICT"
|
|
72
71
|
}),
|
|
73
72
|
roles: createAuthRolesSchema(ctx)
|
|
@@ -75,4 +74,4 @@ var createAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({
|
|
|
75
74
|
//#endregion
|
|
76
75
|
export { createAuthRoleSchema as n, createDefaultAuthRoles as r, createAuthPluginDefinitionSchema as t };
|
|
77
76
|
|
|
78
|
-
//# sourceMappingURL=plugin-definition
|
|
77
|
+
//# sourceMappingURL=plugin-definition--k0VAeK3.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { M as __mf_0, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
//#region src/placeholder-auth/constants/model-names.ts
|
|
3
|
+
var PLACEHOLDER_AUTH_MODELS = { user: "User" };
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/placeholder-auth/core/schema/plugin-definition.ts
|
|
6
|
+
var createPlaceholderAuthPluginDefinitionSchema = __mf_156(() => __mf_0.object({}));
|
|
7
|
+
//#endregion
|
|
8
|
+
export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=plugin-definition-CMwSlxsJ.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as __mf_13 } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as __mf_25 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js";
|
|
1
|
+
import { B as appendErrors, H as set, Q as __mf_2, V as get, Z as __mf_1, a as __mf_178, o as __mf_179 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
|
|
2
|
+
import { t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js";
|
|
3
|
+
import { L as parse, R as parseAsync, h as __mf_24, z as $ZodError } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
4
|
+
import { r as __mf_14 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
6
5
|
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1/node_modules/@hookform/resolvers/dist/resolvers.mjs
|
|
7
6
|
var r = (t, r, o) => {
|
|
8
7
|
if (t && "reportValidity" in t) {
|
|
@@ -149,20 +148,20 @@ function a(o$1, a, u) {
|
|
|
149
148
|
//#endregion
|
|
150
149
|
//#region src/common/components/auth-config-tabs.tsx
|
|
151
150
|
function AuthConfigTabs() {
|
|
152
|
-
const { definition, schemaParserContext } =
|
|
151
|
+
const { definition, schemaParserContext } = __mf_14();
|
|
153
152
|
const authPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.packageName === "@baseplate-dev/plugin-auth" && p.metadata.name === "auth");
|
|
154
153
|
if (!authPlugin) return null;
|
|
155
|
-
const implementationPluginKey =
|
|
154
|
+
const implementationPluginKey = __mf_24.configByKey(definition, authPlugin.metadata.key)?.implementationPluginKey;
|
|
156
155
|
const authImplementationPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.key === implementationPluginKey);
|
|
157
156
|
if (!authImplementationPlugin) return null;
|
|
158
|
-
return /* @__PURE__ */ __mf_2(
|
|
157
|
+
return /* @__PURE__ */ __mf_2(__mf_178, { children: [/* @__PURE__ */ __mf_1(__mf_179, {
|
|
159
158
|
render: /* @__PURE__ */ __mf_1(__mf_13, {
|
|
160
159
|
to: "/plugins/edit/$key",
|
|
161
160
|
params: { key: authPlugin.metadata.key },
|
|
162
161
|
activeOptions: { exact: true }
|
|
163
162
|
}),
|
|
164
163
|
children: "Auth"
|
|
165
|
-
}), /* @__PURE__ */ __mf_1(
|
|
164
|
+
}), /* @__PURE__ */ __mf_1(__mf_179, {
|
|
166
165
|
render: /* @__PURE__ */ __mf_1(__mf_13, {
|
|
167
166
|
to: `/plugins/edit/${authImplementationPlugin.metadata.key}`,
|
|
168
167
|
activeOptions: { exact: true }
|
|
@@ -173,4 +172,4 @@ function AuthConfigTabs() {
|
|
|
173
172
|
//#endregion
|
|
174
173
|
export { a as n, AuthConfigTabs as t };
|
|
175
174
|
|
|
176
|
-
//# sourceMappingURL=styles-
|
|
175
|
+
//# sourceMappingURL=styles-BQEcQHoR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
1
|
+
import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js";
|
|
2
2
|
export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as default };
|