@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @baseplate-dev/plugin-auth
|
|
2
2
|
|
|
3
|
+
## 0.6.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1035](https://github.com/halfdomelabs/baseplate/pull/1035) [`2671e93`](https://github.com/halfdomelabs/baseplate/commit/2671e9352cd5c7cdd2803a4f5475a6342b79d5f8) Thanks [@kingston](https://github.com/kingston)! - Guesses at an emailed verification code are now counted before the code is compared, so a burst of concurrent guesses can no longer exceed the code's attempt budget, and simultaneous guesses no longer surface a Prisma error or discard a code another request is still redeeming. Every validation spends an attempt, including a correct one.
|
|
8
|
+
|
|
9
|
+
- [#1048](https://github.com/halfdomelabs/baseplate/pull/1048) [`00800a2`](https://github.com/halfdomelabs/baseplate/commit/00800a222acd086f1885d24588804cdca115fb5f) Thanks [@kingston](https://github.com/kingston)! - Generated apps no longer depend on sonner: toasts come from a Base UI `toast.tsx` component that the app owns, which stacks, swipes to dismiss, announces errors assertively, and sits bottom-right instead of top-center. Code that imported `toast` from `'sonner'` should import it from the generated components instead (`@/components/ui/toast`, or the shared component library in library mode).
|
|
10
|
+
|
|
11
|
+
- [#1034](https://github.com/halfdomelabs/baseplate/pull/1034) [`902e8ae`](https://github.com/halfdomelabs/baseplate/commit/902e8ae08b9e33f7a8275fb0728ae7e77ed138d1) Thanks [@kingston](https://github.com/kingston)! - Auth now derives its signing keys from `APP_SECRET` instead of `AUTH_SECRET` and `BETTER_AUTH_SECRET`, which are no longer read and can be dropped from your environment. Upgrading signs existing users out and invalidates outstanding one-time codes.
|
|
12
|
+
|
|
13
|
+
- [#1038](https://github.com/halfdomelabs/baseplate/pull/1038) [`74ae3ed`](https://github.com/halfdomelabs/baseplate/commit/74ae3ed92144aeeb60aad7b826d98cb90053214c) Thanks [@kingston](https://github.com/kingston)! - Password reset and email verification links now point back to the app the request came from, so a reset started on the admin console emails an admin console link instead of always linking to the project's default web app; a request from an unrecognised origin still falls back to that default. Invite links are unchanged.
|
|
14
|
+
|
|
15
|
+
- [#1035](https://github.com/halfdomelabs/baseplate/pull/1035) [`2671e93`](https://github.com/halfdomelabs/baseplate/commit/2671e9352cd5c7cdd2803a4f5475a6342b79d5f8) Thanks [@kingston](https://github.com/kingston)! - Each app now carries its own public URL, and the backend reads them through `getApiUrl`, `getWebUrl` and `getWebOrigins`, so anything minting an absolute link names the client it means rather than declaring a URL setting of its own. `ALLOWED_ORIGINS` and `AUTH_FRONTEND_URL` are gone: set `API_URL` and a `WEB_URL_<APP>` per web app before upgrading, or the app will fail to start, plus `ADDITIONAL_WEB_ORIGINS` for any trusted origin that is not an app in the project.
|
|
16
|
+
|
|
17
|
+
- [#1042](https://github.com/halfdomelabs/baseplate/pull/1042) [`9c2117d`](https://github.com/halfdomelabs/baseplate/commit/9c2117d377d51a769fe8b9519045493cbe0cf3de) Thanks [@kingston](https://github.com/kingston)! - The auth hook that returns the signed-in user id is now consistently `useUserIdOrThrow` in `use-user-id-or-throw.ts` across Better Auth, local auth and placeholder auth, following Prisma's `OrThrow` naming; Better Auth apps should rename their imports of `useRequiredUserId`. Import maps for auth context, password reset and Stripe billing no longer offer symbols that the generated files stopped exporting.
|
|
18
|
+
|
|
19
|
+
- [#1036](https://github.com/halfdomelabs/baseplate/pull/1036) [`0a595f4`](https://github.com/halfdomelabs/baseplate/commit/0a595f4b730660b4ce777474316f8090c07f7415) Thanks [@kingston](https://github.com/kingston)! - Accepting an invite no longer replaces the password of an account that registered after the invite was sent; the accept-invite page now tells that user to sign in instead.
|
|
20
|
+
|
|
21
|
+
- [#1028](https://github.com/halfdomelabs/baseplate/pull/1028) [`94d84c1`](https://github.com/halfdomelabs/baseplate/commit/94d84c1ce807fe7fa55eb1f6f01515a6fea137f6) Thanks [@kingston](https://github.com/kingston)! - Signing in, signing out, and session changes from another tab no longer unmount the app, so the previous screen no longer flashes before the new one and page state survives the transition.
|
|
22
|
+
|
|
23
|
+
- [#1041](https://github.com/halfdomelabs/baseplate/pull/1041) [`5fe4f0a`](https://github.com/halfdomelabs/baseplate/commit/5fe4f0a16e41bf7f18985856380b428ab26181a3) Thanks [@kingston](https://github.com/kingston)! - Editing a component, hook, or service in a generated web app now updates the page in place instead of rebuilding the router and remounting the whole app, so your route, scroll position, and open subscriptions survive a save. Sentry is now initialised from `main.tsx` via `initSentry(router)` rather than importing the router itself.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`4805d5a`](https://github.com/halfdomelabs/baseplate/commit/4805d5a2eb09c415c9a304d8169cf0aaa32734da), [`fc4a2b1`](https://github.com/halfdomelabs/baseplate/commit/fc4a2b1a65271daf2b7f9ba1b4d898ea22c406ab), [`9e622b6`](https://github.com/halfdomelabs/baseplate/commit/9e622b67fbe22137759aea0c3dac40ac73b99b35), [`9e622b6`](https://github.com/halfdomelabs/baseplate/commit/9e622b67fbe22137759aea0c3dac40ac73b99b35), [`9e622b6`](https://github.com/halfdomelabs/baseplate/commit/9e622b67fbe22137759aea0c3dac40ac73b99b35), [`00800a2`](https://github.com/halfdomelabs/baseplate/commit/00800a222acd086f1885d24588804cdca115fb5f), [`57e356a`](https://github.com/halfdomelabs/baseplate/commit/57e356ad50d7eac9bb58f66b4d04a11efd74d7f2), [`0a595f4`](https://github.com/halfdomelabs/baseplate/commit/0a595f4b730660b4ce777474316f8090c07f7415), [`9c2117d`](https://github.com/halfdomelabs/baseplate/commit/9c2117d377d51a769fe8b9519045493cbe0cf3de), [`2671e93`](https://github.com/halfdomelabs/baseplate/commit/2671e9352cd5c7cdd2803a4f5475a6342b79d5f8), [`daef666`](https://github.com/halfdomelabs/baseplate/commit/daef666c5710453aa3a5777976e8ba4e70025135), [`9c2117d`](https://github.com/halfdomelabs/baseplate/commit/9c2117d377d51a769fe8b9519045493cbe0cf3de), [`840dcb3`](https://github.com/halfdomelabs/baseplate/commit/840dcb37c0f10e7a1126dcc3d78550cb045c3f25), [`616d2f5`](https://github.com/halfdomelabs/baseplate/commit/616d2f5cb41a91e01b1689309a56d5b2525037dc), [`94d84c1`](https://github.com/halfdomelabs/baseplate/commit/94d84c1ce807fe7fa55eb1f6f01515a6fea137f6), [`00800a2`](https://github.com/halfdomelabs/baseplate/commit/00800a222acd086f1885d24588804cdca115fb5f), [`6a5a1bf`](https://github.com/halfdomelabs/baseplate/commit/6a5a1bfe71e75e2bce938a89d9c2860f8a9ee213), [`5fe4f0a`](https://github.com/halfdomelabs/baseplate/commit/5fe4f0a16e41bf7f18985856380b428ab26181a3), [`2299376`](https://github.com/halfdomelabs/baseplate/commit/229937646555f840597afe238470112d84592c78), [`e5c3315`](https://github.com/halfdomelabs/baseplate/commit/e5c3315615780e85914cf9ce3a95d325572d0f84)]:
|
|
26
|
+
- @baseplate-dev/fastify-generators@0.6.19
|
|
27
|
+
- @baseplate-dev/react-generators@0.6.19
|
|
28
|
+
- @baseplate-dev/ui-components@0.6.19
|
|
29
|
+
- @baseplate-dev/project-builder-lib@0.6.19
|
|
30
|
+
- @baseplate-dev/core-generators@0.6.19
|
|
31
|
+
- @baseplate-dev/plugin-email@0.6.19
|
|
32
|
+
- @baseplate-dev/sync@0.6.19
|
|
33
|
+
- @baseplate-dev/plugin-queue@0.6.19
|
|
34
|
+
- @baseplate-dev/plugin-rate-limit@0.6.19
|
|
35
|
+
- @baseplate-dev/utils@0.6.19
|
|
36
|
+
|
|
37
|
+
## 0.6.18
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#1026](https://github.com/halfdomelabs/baseplate/pull/1026) [`f72a34c`](https://github.com/halfdomelabs/baseplate/commit/f72a34c5d3d18ce0d24d2ab96a4468d0ed974a06) Thanks [@kingston](https://github.com/kingston)! - Local auth now supports inviting a user by email to set up their account via a "Send Invite" admin action, and each web app can independently disable self-service registration; once every web app on a backend disables it, the registration mutation itself is removed from the API.
|
|
42
|
+
|
|
43
|
+
- [#1023](https://github.com/halfdomelabs/baseplate/pull/1023) [`865e976`](https://github.com/halfdomelabs/baseplate/commit/865e97651f2306580f21532a939dc317d53bf4f8) Thanks [@kingston](https://github.com/kingston)! - Local auth can now offer passwordless sign-in with a single-use code emailed to the user, enabled with the new "Email Sign-in Codes" setting. Existing local auth projects pick up a schema change and will need a database migration on their next sync.
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [[`eeff7b5`](https://github.com/halfdomelabs/baseplate/commit/eeff7b5895155dc252720d70ced0eca64272ad6a), [`ce52092`](https://github.com/halfdomelabs/baseplate/commit/ce5209240d4163966967f60cc9fa6286c4f8dcbb), [`e766854`](https://github.com/halfdomelabs/baseplate/commit/e766854f565d24003c7d4adc8011445953713917), [`6f6e083`](https://github.com/halfdomelabs/baseplate/commit/6f6e0834b3963046e91e509fc6638130f290428e), [`6f6e083`](https://github.com/halfdomelabs/baseplate/commit/6f6e0834b3963046e91e509fc6638130f290428e), [`6f6e083`](https://github.com/halfdomelabs/baseplate/commit/6f6e0834b3963046e91e509fc6638130f290428e), [`8285b67`](https://github.com/halfdomelabs/baseplate/commit/8285b67d1627e0b4200d716ebdce6accc7fd67a1), [`865e976`](https://github.com/halfdomelabs/baseplate/commit/865e97651f2306580f21532a939dc317d53bf4f8), [`a091468`](https://github.com/halfdomelabs/baseplate/commit/a091468889619613d028db530acd42f7ab476d58), [`ff22f21`](https://github.com/halfdomelabs/baseplate/commit/ff22f21b3d92705b904fdacb90819bb3bdd6c303), [`93aee4f`](https://github.com/halfdomelabs/baseplate/commit/93aee4f95c4cef9e16e08e1934ccae2d5d3f3ce6)]:
|
|
46
|
+
- @baseplate-dev/utils@0.6.18
|
|
47
|
+
- @baseplate-dev/sync@0.6.18
|
|
48
|
+
- @baseplate-dev/core-generators@0.6.18
|
|
49
|
+
- @baseplate-dev/fastify-generators@0.6.18
|
|
50
|
+
- @baseplate-dev/react-generators@0.6.18
|
|
51
|
+
- @baseplate-dev/plugin-email@0.6.18
|
|
52
|
+
- @baseplate-dev/ui-components@0.6.18
|
|
53
|
+
- @baseplate-dev/project-builder-lib@0.6.18
|
|
54
|
+
- @baseplate-dev/plugin-queue@0.6.18
|
|
55
|
+
- @baseplate-dev/plugin-rate-limit@0.6.18
|
|
56
|
+
|
|
3
57
|
## 0.6.17
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
|
@@ -28,6 +28,7 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
28
28
|
isTypeOnly: true;
|
|
29
29
|
};
|
|
30
30
|
Alert: {};
|
|
31
|
+
AlertAction: {};
|
|
31
32
|
AlertDescription: {};
|
|
32
33
|
AlertTitle: {};
|
|
33
34
|
Autocomplete: {};
|
|
@@ -57,6 +58,7 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
57
58
|
buttonVariants: {};
|
|
58
59
|
Calendar: {};
|
|
59
60
|
Card: {};
|
|
61
|
+
CardAction: {};
|
|
60
62
|
CardContent: {};
|
|
61
63
|
CardDescription: {};
|
|
62
64
|
CardFooter: {};
|
|
@@ -141,6 +143,12 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
141
143
|
InputGroupInput: {};
|
|
142
144
|
InputGroupText: {};
|
|
143
145
|
InputGroupTextarea: {};
|
|
146
|
+
InputOtp: {};
|
|
147
|
+
InputOtpField: {};
|
|
148
|
+
InputOtpFieldController: {};
|
|
149
|
+
InputOtpGroup: {};
|
|
150
|
+
InputOtpSeparator: {};
|
|
151
|
+
InputOtpSlot: {};
|
|
144
152
|
inputVariants: {};
|
|
145
153
|
Item: {};
|
|
146
154
|
ItemActions: {};
|
|
@@ -177,6 +185,10 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
177
185
|
NotFoundCard: {};
|
|
178
186
|
NumberField: {};
|
|
179
187
|
NumberFieldController: {};
|
|
188
|
+
PageHeader: {};
|
|
189
|
+
PageHeaderActions: {};
|
|
190
|
+
PageHeaderDescription: {};
|
|
191
|
+
PageHeaderTitle: {};
|
|
180
192
|
Popover: {};
|
|
181
193
|
PopoverContent: {};
|
|
182
194
|
PopoverTrigger: {};
|
|
@@ -186,6 +198,11 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
186
198
|
isTypeOnly: true;
|
|
187
199
|
};
|
|
188
200
|
ScrollArea: {};
|
|
201
|
+
Section: {};
|
|
202
|
+
SectionActions: {};
|
|
203
|
+
SectionDescription: {};
|
|
204
|
+
SectionHeader: {};
|
|
205
|
+
SectionTitle: {};
|
|
189
206
|
Select: {};
|
|
190
207
|
SelectField: {};
|
|
191
208
|
SelectFieldController: {};
|
|
@@ -241,7 +258,27 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
241
258
|
Textarea: {};
|
|
242
259
|
TextareaField: {};
|
|
243
260
|
TextareaFieldController: {};
|
|
261
|
+
Toast: {};
|
|
262
|
+
toast: {};
|
|
263
|
+
ToastAction: {};
|
|
264
|
+
ToastClose: {};
|
|
265
|
+
ToastContent: {};
|
|
266
|
+
ToastDescription: {};
|
|
244
267
|
Toaster: {};
|
|
268
|
+
toastManager: {};
|
|
269
|
+
ToastOptions: {
|
|
270
|
+
isTypeOnly: true;
|
|
271
|
+
};
|
|
272
|
+
ToastPortal: {};
|
|
273
|
+
ToastProvider: {};
|
|
274
|
+
ToastTitle: {};
|
|
275
|
+
ToastType: {
|
|
276
|
+
isTypeOnly: true;
|
|
277
|
+
};
|
|
278
|
+
ToastUpdateOptions: {
|
|
279
|
+
isTypeOnly: true;
|
|
280
|
+
};
|
|
281
|
+
ToastViewport: {};
|
|
245
282
|
Tooltip: {};
|
|
246
283
|
TooltipContent: {};
|
|
247
284
|
TooltipProvider: {};
|
|
@@ -266,6 +303,7 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
266
303
|
isTypeOnly: true;
|
|
267
304
|
};
|
|
268
305
|
Alert: {};
|
|
306
|
+
AlertAction: {};
|
|
269
307
|
AlertDescription: {};
|
|
270
308
|
AlertTitle: {};
|
|
271
309
|
Autocomplete: {};
|
|
@@ -295,6 +333,7 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
295
333
|
buttonVariants: {};
|
|
296
334
|
Calendar: {};
|
|
297
335
|
Card: {};
|
|
336
|
+
CardAction: {};
|
|
298
337
|
CardContent: {};
|
|
299
338
|
CardDescription: {};
|
|
300
339
|
CardFooter: {};
|
|
@@ -379,6 +418,12 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
379
418
|
InputGroupInput: {};
|
|
380
419
|
InputGroupText: {};
|
|
381
420
|
InputGroupTextarea: {};
|
|
421
|
+
InputOtp: {};
|
|
422
|
+
InputOtpField: {};
|
|
423
|
+
InputOtpFieldController: {};
|
|
424
|
+
InputOtpGroup: {};
|
|
425
|
+
InputOtpSeparator: {};
|
|
426
|
+
InputOtpSlot: {};
|
|
382
427
|
inputVariants: {};
|
|
383
428
|
Item: {};
|
|
384
429
|
ItemActions: {};
|
|
@@ -415,6 +460,10 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
415
460
|
NotFoundCard: {};
|
|
416
461
|
NumberField: {};
|
|
417
462
|
NumberFieldController: {};
|
|
463
|
+
PageHeader: {};
|
|
464
|
+
PageHeaderActions: {};
|
|
465
|
+
PageHeaderDescription: {};
|
|
466
|
+
PageHeaderTitle: {};
|
|
418
467
|
Popover: {};
|
|
419
468
|
PopoverContent: {};
|
|
420
469
|
PopoverTrigger: {};
|
|
@@ -424,6 +473,11 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
424
473
|
isTypeOnly: true;
|
|
425
474
|
};
|
|
426
475
|
ScrollArea: {};
|
|
476
|
+
Section: {};
|
|
477
|
+
SectionActions: {};
|
|
478
|
+
SectionDescription: {};
|
|
479
|
+
SectionHeader: {};
|
|
480
|
+
SectionTitle: {};
|
|
427
481
|
Select: {};
|
|
428
482
|
SelectField: {};
|
|
429
483
|
SelectFieldController: {};
|
|
@@ -479,7 +533,27 @@ export declare const adminCrudManageRolesActionGenerator: import("@baseplate-dev
|
|
|
479
533
|
Textarea: {};
|
|
480
534
|
TextareaField: {};
|
|
481
535
|
TextareaFieldController: {};
|
|
536
|
+
Toast: {};
|
|
537
|
+
toast: {};
|
|
538
|
+
ToastAction: {};
|
|
539
|
+
ToastClose: {};
|
|
540
|
+
ToastContent: {};
|
|
541
|
+
ToastDescription: {};
|
|
482
542
|
Toaster: {};
|
|
543
|
+
toastManager: {};
|
|
544
|
+
ToastOptions: {
|
|
545
|
+
isTypeOnly: true;
|
|
546
|
+
};
|
|
547
|
+
ToastPortal: {};
|
|
548
|
+
ToastProvider: {};
|
|
549
|
+
ToastTitle: {};
|
|
550
|
+
ToastType: {
|
|
551
|
+
isTypeOnly: true;
|
|
552
|
+
};
|
|
553
|
+
ToastUpdateOptions: {
|
|
554
|
+
isTypeOnly: true;
|
|
555
|
+
};
|
|
556
|
+
ToastViewport: {};
|
|
483
557
|
Tooltip: {};
|
|
484
558
|
TooltipContent: {};
|
|
485
559
|
TooltipProvider: {};
|
package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
26
26
|
isTypeOnly: true;
|
|
27
27
|
};
|
|
28
28
|
Alert: {};
|
|
29
|
+
AlertAction: {};
|
|
29
30
|
AlertDescription: {};
|
|
30
31
|
AlertTitle: {};
|
|
31
32
|
Autocomplete: {};
|
|
@@ -55,6 +56,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
55
56
|
buttonVariants: {};
|
|
56
57
|
Calendar: {};
|
|
57
58
|
Card: {};
|
|
59
|
+
CardAction: {};
|
|
58
60
|
CardContent: {};
|
|
59
61
|
CardDescription: {};
|
|
60
62
|
CardFooter: {};
|
|
@@ -139,6 +141,12 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
139
141
|
InputGroupInput: {};
|
|
140
142
|
InputGroupText: {};
|
|
141
143
|
InputGroupTextarea: {};
|
|
144
|
+
InputOtp: {};
|
|
145
|
+
InputOtpField: {};
|
|
146
|
+
InputOtpFieldController: {};
|
|
147
|
+
InputOtpGroup: {};
|
|
148
|
+
InputOtpSeparator: {};
|
|
149
|
+
InputOtpSlot: {};
|
|
142
150
|
inputVariants: {};
|
|
143
151
|
Item: {};
|
|
144
152
|
ItemActions: {};
|
|
@@ -175,6 +183,10 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
175
183
|
NotFoundCard: {};
|
|
176
184
|
NumberField: {};
|
|
177
185
|
NumberFieldController: {};
|
|
186
|
+
PageHeader: {};
|
|
187
|
+
PageHeaderActions: {};
|
|
188
|
+
PageHeaderDescription: {};
|
|
189
|
+
PageHeaderTitle: {};
|
|
178
190
|
Popover: {};
|
|
179
191
|
PopoverContent: {};
|
|
180
192
|
PopoverTrigger: {};
|
|
@@ -184,6 +196,11 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
184
196
|
isTypeOnly: true;
|
|
185
197
|
};
|
|
186
198
|
ScrollArea: {};
|
|
199
|
+
Section: {};
|
|
200
|
+
SectionActions: {};
|
|
201
|
+
SectionDescription: {};
|
|
202
|
+
SectionHeader: {};
|
|
203
|
+
SectionTitle: {};
|
|
187
204
|
Select: {};
|
|
188
205
|
SelectField: {};
|
|
189
206
|
SelectFieldController: {};
|
|
@@ -239,7 +256,27 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
239
256
|
Textarea: {};
|
|
240
257
|
TextareaField: {};
|
|
241
258
|
TextareaFieldController: {};
|
|
259
|
+
Toast: {};
|
|
260
|
+
toast: {};
|
|
261
|
+
ToastAction: {};
|
|
262
|
+
ToastClose: {};
|
|
263
|
+
ToastContent: {};
|
|
264
|
+
ToastDescription: {};
|
|
242
265
|
Toaster: {};
|
|
266
|
+
toastManager: {};
|
|
267
|
+
ToastOptions: {
|
|
268
|
+
isTypeOnly: true;
|
|
269
|
+
};
|
|
270
|
+
ToastPortal: {};
|
|
271
|
+
ToastProvider: {};
|
|
272
|
+
ToastTitle: {};
|
|
273
|
+
ToastType: {
|
|
274
|
+
isTypeOnly: true;
|
|
275
|
+
};
|
|
276
|
+
ToastUpdateOptions: {
|
|
277
|
+
isTypeOnly: true;
|
|
278
|
+
};
|
|
279
|
+
ToastViewport: {};
|
|
243
280
|
Tooltip: {};
|
|
244
281
|
TooltipContent: {};
|
|
245
282
|
TooltipProvider: {};
|
|
@@ -275,6 +312,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
275
312
|
isTypeOnly: true;
|
|
276
313
|
};
|
|
277
314
|
Alert: {};
|
|
315
|
+
AlertAction: {};
|
|
278
316
|
AlertDescription: {};
|
|
279
317
|
AlertTitle: {};
|
|
280
318
|
Autocomplete: {};
|
|
@@ -304,6 +342,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
304
342
|
buttonVariants: {};
|
|
305
343
|
Calendar: {};
|
|
306
344
|
Card: {};
|
|
345
|
+
CardAction: {};
|
|
307
346
|
CardContent: {};
|
|
308
347
|
CardDescription: {};
|
|
309
348
|
CardFooter: {};
|
|
@@ -388,6 +427,12 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
388
427
|
InputGroupInput: {};
|
|
389
428
|
InputGroupText: {};
|
|
390
429
|
InputGroupTextarea: {};
|
|
430
|
+
InputOtp: {};
|
|
431
|
+
InputOtpField: {};
|
|
432
|
+
InputOtpFieldController: {};
|
|
433
|
+
InputOtpGroup: {};
|
|
434
|
+
InputOtpSeparator: {};
|
|
435
|
+
InputOtpSlot: {};
|
|
391
436
|
inputVariants: {};
|
|
392
437
|
Item: {};
|
|
393
438
|
ItemActions: {};
|
|
@@ -424,6 +469,10 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
424
469
|
NotFoundCard: {};
|
|
425
470
|
NumberField: {};
|
|
426
471
|
NumberFieldController: {};
|
|
472
|
+
PageHeader: {};
|
|
473
|
+
PageHeaderActions: {};
|
|
474
|
+
PageHeaderDescription: {};
|
|
475
|
+
PageHeaderTitle: {};
|
|
427
476
|
Popover: {};
|
|
428
477
|
PopoverContent: {};
|
|
429
478
|
PopoverTrigger: {};
|
|
@@ -433,6 +482,11 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
433
482
|
isTypeOnly: true;
|
|
434
483
|
};
|
|
435
484
|
ScrollArea: {};
|
|
485
|
+
Section: {};
|
|
486
|
+
SectionActions: {};
|
|
487
|
+
SectionDescription: {};
|
|
488
|
+
SectionHeader: {};
|
|
489
|
+
SectionTitle: {};
|
|
436
490
|
Select: {};
|
|
437
491
|
SelectField: {};
|
|
438
492
|
SelectFieldController: {};
|
|
@@ -488,7 +542,27 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_GENERATED:
|
|
|
488
542
|
Textarea: {};
|
|
489
543
|
TextareaField: {};
|
|
490
544
|
TextareaFieldController: {};
|
|
545
|
+
Toast: {};
|
|
546
|
+
toast: {};
|
|
547
|
+
ToastAction: {};
|
|
548
|
+
ToastClose: {};
|
|
549
|
+
ToastContent: {};
|
|
550
|
+
ToastDescription: {};
|
|
491
551
|
Toaster: {};
|
|
552
|
+
toastManager: {};
|
|
553
|
+
ToastOptions: {
|
|
554
|
+
isTypeOnly: true;
|
|
555
|
+
};
|
|
556
|
+
ToastPortal: {};
|
|
557
|
+
ToastProvider: {};
|
|
558
|
+
ToastTitle: {};
|
|
559
|
+
ToastType: {
|
|
560
|
+
isTypeOnly: true;
|
|
561
|
+
};
|
|
562
|
+
ToastUpdateOptions: {
|
|
563
|
+
isTypeOnly: true;
|
|
564
|
+
};
|
|
565
|
+
ToastViewport: {};
|
|
492
566
|
Tooltip: {};
|
|
493
567
|
TooltipContent: {};
|
|
494
568
|
TooltipProvider: {};
|
|
@@ -25,6 +25,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
25
25
|
isTypeOnly: true;
|
|
26
26
|
};
|
|
27
27
|
Alert: {};
|
|
28
|
+
AlertAction: {};
|
|
28
29
|
AlertDescription: {};
|
|
29
30
|
AlertTitle: {};
|
|
30
31
|
Autocomplete: {};
|
|
@@ -54,6 +55,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
54
55
|
buttonVariants: {};
|
|
55
56
|
Calendar: {};
|
|
56
57
|
Card: {};
|
|
58
|
+
CardAction: {};
|
|
57
59
|
CardContent: {};
|
|
58
60
|
CardDescription: {};
|
|
59
61
|
CardFooter: {};
|
|
@@ -138,6 +140,12 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
138
140
|
InputGroupInput: {};
|
|
139
141
|
InputGroupText: {};
|
|
140
142
|
InputGroupTextarea: {};
|
|
143
|
+
InputOtp: {};
|
|
144
|
+
InputOtpField: {};
|
|
145
|
+
InputOtpFieldController: {};
|
|
146
|
+
InputOtpGroup: {};
|
|
147
|
+
InputOtpSeparator: {};
|
|
148
|
+
InputOtpSlot: {};
|
|
141
149
|
inputVariants: {};
|
|
142
150
|
Item: {};
|
|
143
151
|
ItemActions: {};
|
|
@@ -174,6 +182,10 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
174
182
|
NotFoundCard: {};
|
|
175
183
|
NumberField: {};
|
|
176
184
|
NumberFieldController: {};
|
|
185
|
+
PageHeader: {};
|
|
186
|
+
PageHeaderActions: {};
|
|
187
|
+
PageHeaderDescription: {};
|
|
188
|
+
PageHeaderTitle: {};
|
|
177
189
|
Popover: {};
|
|
178
190
|
PopoverContent: {};
|
|
179
191
|
PopoverTrigger: {};
|
|
@@ -183,6 +195,11 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
183
195
|
isTypeOnly: true;
|
|
184
196
|
};
|
|
185
197
|
ScrollArea: {};
|
|
198
|
+
Section: {};
|
|
199
|
+
SectionActions: {};
|
|
200
|
+
SectionDescription: {};
|
|
201
|
+
SectionHeader: {};
|
|
202
|
+
SectionTitle: {};
|
|
186
203
|
Select: {};
|
|
187
204
|
SelectField: {};
|
|
188
205
|
SelectFieldController: {};
|
|
@@ -238,7 +255,27 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS:
|
|
|
238
255
|
Textarea: {};
|
|
239
256
|
TextareaField: {};
|
|
240
257
|
TextareaFieldController: {};
|
|
258
|
+
Toast: {};
|
|
259
|
+
toast: {};
|
|
260
|
+
ToastAction: {};
|
|
261
|
+
ToastClose: {};
|
|
262
|
+
ToastContent: {};
|
|
263
|
+
ToastDescription: {};
|
|
241
264
|
Toaster: {};
|
|
265
|
+
toastManager: {};
|
|
266
|
+
ToastOptions: {
|
|
267
|
+
isTypeOnly: true;
|
|
268
|
+
};
|
|
269
|
+
ToastPortal: {};
|
|
270
|
+
ToastProvider: {};
|
|
271
|
+
ToastTitle: {};
|
|
272
|
+
ToastType: {
|
|
273
|
+
isTypeOnly: true;
|
|
274
|
+
};
|
|
275
|
+
ToastUpdateOptions: {
|
|
276
|
+
isTypeOnly: true;
|
|
277
|
+
};
|
|
278
|
+
ToastViewport: {};
|
|
242
279
|
Tooltip: {};
|
|
243
280
|
TooltipContent: {};
|
|
244
281
|
TooltipProvider: {};
|
|
@@ -15,6 +15,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
15
15
|
isTypeOnly: true;
|
|
16
16
|
};
|
|
17
17
|
Alert: {};
|
|
18
|
+
AlertAction: {};
|
|
18
19
|
AlertDescription: {};
|
|
19
20
|
AlertTitle: {};
|
|
20
21
|
Autocomplete: {};
|
|
@@ -44,6 +45,7 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
44
45
|
buttonVariants: {};
|
|
45
46
|
Calendar: {};
|
|
46
47
|
Card: {};
|
|
48
|
+
CardAction: {};
|
|
47
49
|
CardContent: {};
|
|
48
50
|
CardDescription: {};
|
|
49
51
|
CardFooter: {};
|
|
@@ -128,6 +130,12 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
128
130
|
InputGroupInput: {};
|
|
129
131
|
InputGroupText: {};
|
|
130
132
|
InputGroupTextarea: {};
|
|
133
|
+
InputOtp: {};
|
|
134
|
+
InputOtpField: {};
|
|
135
|
+
InputOtpFieldController: {};
|
|
136
|
+
InputOtpGroup: {};
|
|
137
|
+
InputOtpSeparator: {};
|
|
138
|
+
InputOtpSlot: {};
|
|
131
139
|
inputVariants: {};
|
|
132
140
|
Item: {};
|
|
133
141
|
ItemActions: {};
|
|
@@ -164,6 +172,10 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
164
172
|
NotFoundCard: {};
|
|
165
173
|
NumberField: {};
|
|
166
174
|
NumberFieldController: {};
|
|
175
|
+
PageHeader: {};
|
|
176
|
+
PageHeaderActions: {};
|
|
177
|
+
PageHeaderDescription: {};
|
|
178
|
+
PageHeaderTitle: {};
|
|
167
179
|
Popover: {};
|
|
168
180
|
PopoverContent: {};
|
|
169
181
|
PopoverTrigger: {};
|
|
@@ -173,6 +185,11 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
173
185
|
isTypeOnly: true;
|
|
174
186
|
};
|
|
175
187
|
ScrollArea: {};
|
|
188
|
+
Section: {};
|
|
189
|
+
SectionActions: {};
|
|
190
|
+
SectionDescription: {};
|
|
191
|
+
SectionHeader: {};
|
|
192
|
+
SectionTitle: {};
|
|
176
193
|
Select: {};
|
|
177
194
|
SelectField: {};
|
|
178
195
|
SelectFieldController: {};
|
|
@@ -228,7 +245,27 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES:
|
|
|
228
245
|
Textarea: {};
|
|
229
246
|
TextareaField: {};
|
|
230
247
|
TextareaFieldController: {};
|
|
248
|
+
Toast: {};
|
|
249
|
+
toast: {};
|
|
250
|
+
ToastAction: {};
|
|
251
|
+
ToastClose: {};
|
|
252
|
+
ToastContent: {};
|
|
253
|
+
ToastDescription: {};
|
|
231
254
|
Toaster: {};
|
|
255
|
+
toastManager: {};
|
|
256
|
+
ToastOptions: {
|
|
257
|
+
isTypeOnly: true;
|
|
258
|
+
};
|
|
259
|
+
ToastPortal: {};
|
|
260
|
+
ToastProvider: {};
|
|
261
|
+
ToastTitle: {};
|
|
262
|
+
ToastType: {
|
|
263
|
+
isTypeOnly: true;
|
|
264
|
+
};
|
|
265
|
+
ToastUpdateOptions: {
|
|
266
|
+
isTypeOnly: true;
|
|
267
|
+
};
|
|
268
|
+
ToastViewport: {};
|
|
232
269
|
Tooltip: {};
|
|
233
270
|
TooltipContent: {};
|
|
234
271
|
TooltipProvider: {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { graphql, readFragment } from '%graphqlImports';
|
|
3
|
-
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, MultiComboboxFieldController, } from '%reactComponentsImports';
|
|
3
|
+
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, MultiComboboxFieldController, toast, } from '%reactComponentsImports';
|
|
4
4
|
import { useMutation } from '@apollo/client/react';
|
|
5
5
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { useForm } from 'react-hook-form';
|
|
8
|
-
import { toast } from 'sonner';
|
|
9
8
|
import { z } from 'zod';
|
|
10
9
|
const roleFormSchema = z.object({
|
|
11
10
|
roles: z.array(z.string()),
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
DialogHeader,
|
|
14
14
|
DialogTitle,
|
|
15
15
|
MultiComboboxFieldController,
|
|
16
|
+
toast,
|
|
16
17
|
} from '%reactComponentsImports';
|
|
17
18
|
import { useMutation } from '@apollo/client/react';
|
|
18
19
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
19
20
|
import { useState } from 'react';
|
|
20
21
|
import { useForm } from 'react-hook-form';
|
|
21
|
-
import { toast } from 'sonner';
|
|
22
22
|
import { z } from 'zod';
|
|
23
23
|
|
|
24
24
|
const roleFormSchema = z.object({
|