@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
|
@@ -31,7 +31,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
31
31
|
"./auth/core/web": async () => {
|
|
32
32
|
await injectCssAssets("./auth/core/web");
|
|
33
33
|
await Promise.all([]);
|
|
34
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
34
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CzK_la2_.js"), __vite__mapDeps([0]), import.meta.url));
|
|
35
35
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
36
36
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
37
37
|
const exportModule = {};
|
|
@@ -45,7 +45,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
45
45
|
"./auth/core/common": async () => {
|
|
46
46
|
await injectCssAssets("./auth/core/common");
|
|
47
47
|
await Promise.all([]);
|
|
48
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
48
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-CRwNlCMn.js"), [], import.meta.url));
|
|
49
49
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
50
50
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
51
51
|
const exportModule = {};
|
|
@@ -59,7 +59,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
59
59
|
"./better-auth/core/web": async () => {
|
|
60
60
|
await injectCssAssets("./better-auth/core/web");
|
|
61
61
|
await Promise.all([]);
|
|
62
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
62
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CQMfABjr.js"), __vite__mapDeps([0]), import.meta.url));
|
|
63
63
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
64
64
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
65
65
|
const exportModule = {};
|
|
@@ -73,7 +73,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
73
73
|
"./better-auth/core/common": async () => {
|
|
74
74
|
await injectCssAssets("./better-auth/core/common");
|
|
75
75
|
await Promise.all([]);
|
|
76
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
76
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-CvqlRZC9.js"), [], import.meta.url));
|
|
77
77
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
78
78
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
79
79
|
const exportModule = {};
|
|
@@ -87,7 +87,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
87
87
|
"./better-auth/admin/web": async () => {
|
|
88
88
|
await injectCssAssets("./better-auth/admin/web");
|
|
89
89
|
await Promise.all([]);
|
|
90
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
90
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-BxIwkN3O.js"), [], import.meta.url));
|
|
91
91
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
92
92
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
93
93
|
const exportModule = {};
|
|
@@ -101,7 +101,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
101
101
|
"./better-auth/admin/common": async () => {
|
|
102
102
|
await injectCssAssets("./better-auth/admin/common");
|
|
103
103
|
await Promise.all([]);
|
|
104
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
104
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-DuFyXa6l.js"), [], import.meta.url));
|
|
105
105
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
106
106
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
107
107
|
const exportModule = {};
|
|
@@ -115,7 +115,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
115
115
|
"./local-auth/core/web": async () => {
|
|
116
116
|
await injectCssAssets("./local-auth/core/web");
|
|
117
117
|
await Promise.all([]);
|
|
118
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
118
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CypPeiVv.js"), __vite__mapDeps([0]), import.meta.url));
|
|
119
119
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
120
120
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
121
121
|
const exportModule = {};
|
|
@@ -129,7 +129,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
129
129
|
"./local-auth/core/common": async () => {
|
|
130
130
|
await injectCssAssets("./local-auth/core/common");
|
|
131
131
|
await Promise.all([]);
|
|
132
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
132
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-D3atSs7O.js"), [], import.meta.url));
|
|
133
133
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
134
134
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
135
135
|
const exportModule = {};
|
|
@@ -143,7 +143,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
143
143
|
"./local-auth/admin/web": async () => {
|
|
144
144
|
await injectCssAssets("./local-auth/admin/web");
|
|
145
145
|
await Promise.all([]);
|
|
146
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
146
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-8wz0ad-V.js"), [], import.meta.url));
|
|
147
147
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
148
148
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
149
149
|
const exportModule = {};
|
|
@@ -157,7 +157,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
157
157
|
"./local-auth/admin/common": async () => {
|
|
158
158
|
await injectCssAssets("./local-auth/admin/common");
|
|
159
159
|
await Promise.all([]);
|
|
160
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
160
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-islduJTj.js"), [], import.meta.url));
|
|
161
161
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
162
162
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
163
163
|
const exportModule = {};
|
|
@@ -171,7 +171,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
171
171
|
"./placeholder-auth/core/web": async () => {
|
|
172
172
|
await injectCssAssets("./placeholder-auth/core/web");
|
|
173
173
|
await Promise.all([]);
|
|
174
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-
|
|
174
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./web-CcNpItSu.js"), __vite__mapDeps([0]), import.meta.url));
|
|
175
175
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
176
176
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
177
177
|
const exportModule = {};
|
|
@@ -185,7 +185,7 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
185
185
|
"./placeholder-auth/core/common": async () => {
|
|
186
186
|
await injectCssAssets("./placeholder-auth/core/common");
|
|
187
187
|
await Promise.all([]);
|
|
188
|
-
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-
|
|
188
|
+
const importModule = await importExposedModule(() => __vitePreload(() => import("./common-BsyRiQi3.js"), [], import.meta.url));
|
|
189
189
|
const dependencyPending = importModule && importModule.__mf_remote_dependency_pending;
|
|
190
190
|
if (dependencyPending && typeof dependencyPending.then === "function") await dependencyPending;
|
|
191
191
|
const exportModule = {};
|
|
@@ -200,4 +200,4 @@ var virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default = {
|
|
|
200
200
|
//#endregion
|
|
201
201
|
export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as t };
|
|
202
202
|
|
|
203
|
-
//# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
203
|
+
//# sourceMappingURL=virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { m as __mf_22, y as __mf_56 } 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
|
+
import { a as __mf_17, o as __mf_19 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
3
|
+
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
|
+
//#region src/local-auth/admin/web.ts
|
|
5
|
+
var web_default = __mf_56({
|
|
6
|
+
name: "web",
|
|
7
|
+
dependencies: {
|
|
8
|
+
adminCrudActionWeb: __mf_17,
|
|
9
|
+
adminCrudColumnWeb: __mf_19
|
|
10
|
+
},
|
|
11
|
+
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
|
+
adminCrudActionWeb.actions.addMany([
|
|
13
|
+
{
|
|
14
|
+
pluginKey,
|
|
15
|
+
name: "manage-roles",
|
|
16
|
+
label: "Manage Roles",
|
|
17
|
+
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
18
|
+
getNewAction: () => ({
|
|
19
|
+
type: "manage-roles",
|
|
20
|
+
position: "dropdown"
|
|
21
|
+
})
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
pluginKey,
|
|
25
|
+
name: "reset-password",
|
|
26
|
+
label: "Reset Password",
|
|
27
|
+
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
28
|
+
getNewAction: () => ({
|
|
29
|
+
type: "reset-password",
|
|
30
|
+
position: "dropdown"
|
|
31
|
+
})
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
pluginKey,
|
|
35
|
+
name: "invite-user",
|
|
36
|
+
label: "Send Invite",
|
|
37
|
+
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
38
|
+
getNewAction: () => ({
|
|
39
|
+
type: "invite-user",
|
|
40
|
+
position: "dropdown"
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
]);
|
|
44
|
+
adminCrudColumnWeb.columns.add({
|
|
45
|
+
pluginKey,
|
|
46
|
+
name: "roles",
|
|
47
|
+
label: "Roles",
|
|
48
|
+
isAvailableForModel: (definition, modelId) => __mf_22.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
49
|
+
getNewColumn: () => ({
|
|
50
|
+
type: "roles",
|
|
51
|
+
label: "Roles"
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { web_default as default };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=web-8wz0ad-V.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as __mf_3, D as __mf_6, E as __mf_58, G as useFormState, I as create, M as __mf_88, N as __mf_91, O as __mf_83, P as __mf_92, Q as __mf_2, S as __mf_298, T as __mf_5, W as useForm, Z as __mf_1, b as __mf_280, dt as __mf_30, et as __mfDefaultExport, gt as __mf_38, ht as __mf_37$1, k as __mf_85, lt as __mf_25, mt as __mf_34, r as __mf_162, tt as __mf_13, ut as __mf_28, v as __mf_24, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__, w as __mf_37 } 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 { A as createFieldMapSpec, D as ModelUtils, F as createPluginSpec, O as FeatureUtils, P as isEqual, k as withPlaceholderSlots } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
3
3
|
//#region ../../packages/project-builder-lib/dist/web/components/definition-diff-alert.js
|
|
4
4
|
var CHANGE_TYPE_BADGE_VARIANT = {
|
|
5
5
|
added: "default",
|
|
@@ -14,18 +14,18 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
14
14
|
children: entry.label
|
|
15
15
|
}), __mf_2("div", {
|
|
16
16
|
className: "flex items-center gap-2",
|
|
17
|
-
children: [__mf_1(
|
|
17
|
+
children: [__mf_1(__mf_24, {
|
|
18
18
|
variant: CHANGE_TYPE_BADGE_VARIANT[entry.type],
|
|
19
19
|
children: entry.type
|
|
20
|
-
}), __mf_2(
|
|
21
|
-
render: __mf_1(
|
|
20
|
+
}), __mf_2(__mf_83, { children: [__mf_1(__mf_92, {
|
|
21
|
+
render: __mf_1(__mf_37, {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
size: "sm"
|
|
24
24
|
}),
|
|
25
25
|
children: "Details"
|
|
26
|
-
}), __mf_2(
|
|
26
|
+
}), __mf_2(__mf_85, {
|
|
27
27
|
width: "xl",
|
|
28
|
-
children: [__mf_1(
|
|
28
|
+
children: [__mf_1(__mf_88, { children: __mf_2(__mf_91, { children: [
|
|
29
29
|
entry.label,
|
|
30
30
|
" — ",
|
|
31
31
|
entry.type
|
|
@@ -37,7 +37,7 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
37
37
|
}) : entry.type === "removed" ? __mf_1("pre", {
|
|
38
38
|
className: "text-xs whitespace-pre-wrap",
|
|
39
39
|
children: JSON.stringify(entry.current, null, 2)
|
|
40
|
-
}) : __mf_1(
|
|
40
|
+
}) : __mf_1(__mf_162, {
|
|
41
41
|
oldValue: entry.current,
|
|
42
42
|
newValue: entry.merged
|
|
43
43
|
})
|
|
@@ -47,9 +47,9 @@ function DefinitionDiffEntryRow({ entry }) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to date. No changes needed." }) {
|
|
50
|
-
if (!diff.hasChanges) return __mf_2(
|
|
50
|
+
if (!diff.hasChanges) return __mf_2(__mf_3, {
|
|
51
51
|
variant: "default",
|
|
52
|
-
children: [__mf_1(
|
|
52
|
+
children: [__mf_1(__mf_6, { children: "Up to Date" }), __mf_1(__mf_5, { children: upToDateMessage })]
|
|
53
53
|
});
|
|
54
54
|
return __mf_2("div", {
|
|
55
55
|
className: "overflow-hidden rounded-lg border",
|
|
@@ -70,7 +70,7 @@ function DefinitionDiffAlert({ diff, upToDateMessage = "All changes are up to da
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js
|
|
73
|
-
|
|
73
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
74
74
|
var ProjectDefinitionContext = __mfDefaultExport.createContext(null);
|
|
75
75
|
function useProjectDefinition() {
|
|
76
76
|
const result = __mfDefaultExport.useContext(ProjectDefinitionContext);
|
|
@@ -79,7 +79,7 @@ function useProjectDefinition() {
|
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region ../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js
|
|
82
|
-
|
|
82
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
83
83
|
function createCreateOption$1(value) {
|
|
84
84
|
return {
|
|
85
85
|
label: value,
|
|
@@ -105,7 +105,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
105
105
|
value,
|
|
106
106
|
canCreate
|
|
107
107
|
]);
|
|
108
|
-
return __mf_1(
|
|
108
|
+
return __mf_1(__mf_58, {
|
|
109
109
|
placeholder: "Select a feature",
|
|
110
110
|
...rest,
|
|
111
111
|
inputValue: searchQuery,
|
|
@@ -116,7 +116,7 @@ function FeatureComboboxField({ canCreate, value, ...rest }) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function FeatureComboboxFieldController({ name, control, ...rest }) {
|
|
119
|
-
const { field, fieldState: { error } } =
|
|
119
|
+
const { field, fieldState: { error } } = __mf_298({
|
|
120
120
|
name,
|
|
121
121
|
control
|
|
122
122
|
}, rest);
|
|
@@ -130,7 +130,7 @@ function FeatureComboboxFieldController({ name, control, ...rest }) {
|
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region ../../packages/project-builder-lib/dist/web/components/model-combobox-field.js
|
|
133
|
-
|
|
133
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
134
134
|
function createCreateOption(value) {
|
|
135
135
|
return {
|
|
136
136
|
label: `Create "${value}"`,
|
|
@@ -154,7 +154,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
154
154
|
value,
|
|
155
155
|
canCreate
|
|
156
156
|
]);
|
|
157
|
-
return __mf_1(
|
|
157
|
+
return __mf_1(__mf_58, {
|
|
158
158
|
placeholder: "Select a model",
|
|
159
159
|
...rest,
|
|
160
160
|
onInputValueChange: canCreate ? setSearchQuery : void 0,
|
|
@@ -163,7 +163,7 @@ function ModelComboboxField({ canCreate, value, ...rest }) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function ModelComboboxFieldController({ name, control, ...rest }) {
|
|
166
|
-
const { field, fieldState: { error } } =
|
|
166
|
+
const { field, fieldState: { error } } = __mf_298({
|
|
167
167
|
name,
|
|
168
168
|
control
|
|
169
169
|
}, rest);
|
|
@@ -177,11 +177,11 @@ function ModelComboboxFieldController({ name, control, ...rest }) {
|
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../packages/project-builder-lib/dist/web/contexts/error-handler.js
|
|
180
|
-
|
|
180
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
181
181
|
var ErrorHandlerContext = __mf_13(null);
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js
|
|
184
|
-
|
|
184
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
185
185
|
var useBlockerDialogState = create((set) => ({
|
|
186
186
|
activeBlockers: [],
|
|
187
187
|
addBlocker: (options) => {
|
|
@@ -258,9 +258,9 @@ function useBlockDirtyFormNavigate(formState, reset) {
|
|
|
258
258
|
}
|
|
259
259
|
//#endregion
|
|
260
260
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js
|
|
261
|
-
|
|
261
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
262
262
|
function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
|
|
263
|
-
const isDirtyRef = __mf_37(false);
|
|
263
|
+
const isDirtyRef = __mf_37$1(false);
|
|
264
264
|
const formState = useFormState({ control });
|
|
265
265
|
isDirtyRef.current = formState.isDirty;
|
|
266
266
|
useBlockerDialog({
|
|
@@ -282,7 +282,7 @@ function useBlockUnsavedChangesNavigate({ control, reset, onSubmit }) {
|
|
|
282
282
|
}
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js
|
|
285
|
-
|
|
285
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
286
286
|
function useDefinitionSchema(schemaCreator) {
|
|
287
287
|
const { definitionSchemaParserContext } = useProjectDefinition();
|
|
288
288
|
return __mf_34(() => {
|
|
@@ -292,7 +292,7 @@ function useDefinitionSchema(schemaCreator) {
|
|
|
292
292
|
}
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js
|
|
295
|
-
|
|
295
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
296
296
|
function useErrorHandler() {
|
|
297
297
|
const context = __mf_25(ErrorHandlerContext);
|
|
298
298
|
if (!context) throw new Error("useErrorHandler must be used within an ErrorHandlerContext");
|
|
@@ -300,17 +300,17 @@ function useErrorHandler() {
|
|
|
300
300
|
}
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region ../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js
|
|
303
|
-
|
|
303
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
304
304
|
function useResettableForm(props) {
|
|
305
305
|
const formProps = useForm(props);
|
|
306
306
|
const { reset, formState } = formProps;
|
|
307
307
|
const { isDirty } = formState;
|
|
308
308
|
const { updatedExternally } = useProjectDefinition();
|
|
309
|
-
const oldValues = __mf_37(void 0);
|
|
309
|
+
const oldValues = __mf_37$1(void 0);
|
|
310
310
|
__mf_28(() => {
|
|
311
311
|
if (oldValues.current && !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {
|
|
312
312
|
reset(props?.defaultValues);
|
|
313
|
-
if (isDirty && updatedExternally)
|
|
313
|
+
if (isDirty && updatedExternally) __mf_280.warning("Contents were updated externally so form was reset!");
|
|
314
314
|
}
|
|
315
315
|
if (!oldValues.current || !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) oldValues.current = { oldDefaultValues: props?.defaultValues };
|
|
316
316
|
}, [
|
|
@@ -407,4 +407,4 @@ function setUndefinedIfEmpty(value) {
|
|
|
407
407
|
//#endregion
|
|
408
408
|
export { DefinitionDiffAlert, ErrorHandlerContext, FeatureComboboxField, FeatureComboboxFieldController, ModelComboboxField, ModelComboboxFieldController, ProjectDefinitionContext, adminCrudActionWebSpec, adminCrudColumnWebSpec, adminCrudInputWebSpec, createAdminCrudActionWebConfig, createAdminCrudColumnWebConfig, createAdminCrudInputWebConfig, createModelTransformerWebConfig, createWebAppSettingsWebConfig, entityTypeUrlWebSpec, modelTransformerWebSpec, setUndefinedIfEmpty, useBlockBeforeContinue, useBlockDirtyFormNavigate, useBlockUnsavedChangesNavigate, useBlockerDialog, useBlockerDialogState, useDefinitionSchema, useErrorHandler, useProjectDefinition, useResettableForm, webAppSchemaExtensionWebSpec };
|
|
409
409
|
|
|
410
|
-
//# sourceMappingURL=web-
|
|
410
|
+
//# sourceMappingURL=web-BGixH_gT.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as __mf_22, y as __mf_56 } 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
|
+
import { a as __mf_17, o as __mf_19 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
3
3
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
4
4
|
//#region src/better-auth/admin/web.ts
|
|
5
|
-
var web_default =
|
|
5
|
+
var web_default = __mf_56({
|
|
6
6
|
name: "web",
|
|
7
7
|
dependencies: {
|
|
8
|
-
adminCrudActionWeb:
|
|
9
|
-
adminCrudColumnWeb:
|
|
8
|
+
adminCrudActionWeb: __mf_17,
|
|
9
|
+
adminCrudColumnWeb: __mf_19
|
|
10
10
|
},
|
|
11
11
|
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
12
12
|
adminCrudActionWeb.actions.addMany([{
|
|
@@ -43,4 +43,4 @@ var web_default = __mf_142({
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { web_default as default };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=web-
|
|
46
|
+
//# sourceMappingURL=web-BxIwkN3O.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
5
|
-
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-
|
|
6
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
1
|
+
import { Q as __mf_2, Z as __mf_1, d as __mf_202, f as __mf_203, g as __mf_207, h as __mf_206, i as __mf_166, m as __mf_205, mt as __mf_34, p as __mf_204, t as __mf_128, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
|
|
2
|
+
import { T as __mf_74, _ as __mf_244, f as __mf_18, g as __mf_240, h as __mf_24, w as __mf_72, y as __mf_56 } 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
|
+
import { i as __mf_15, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-BQEcQHoR.js";
|
|
5
|
+
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-BOeSYfRn.js";
|
|
6
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-BgWWHl_Y.js";
|
|
7
7
|
//#region src/better-auth/core/components/better-auth-definition-editor.tsx
|
|
8
|
-
|
|
8
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
9
9
|
function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
10
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } =
|
|
11
|
-
const betterAuthPluginDefinitionSchema =
|
|
10
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
|
|
11
|
+
const betterAuthPluginDefinitionSchema = __mf_11(createBetterAuthPluginDefinitionSchema);
|
|
12
12
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
13
13
|
const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
|
|
14
14
|
label: role.name,
|
|
@@ -18,7 +18,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
18
18
|
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
19
19
|
return { additionalUserAdminRoles: [] };
|
|
20
20
|
}, [pluginMetadata?.config]);
|
|
21
|
-
const form =
|
|
21
|
+
const form = __mf_15({
|
|
22
22
|
resolver: a(betterAuthPluginDefinitionSchema),
|
|
23
23
|
defaultValues
|
|
24
24
|
});
|
|
@@ -28,18 +28,18 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
28
28
|
const accountsFeature = definition.features.find((f) => f.id === authDefinition.accountsFeatureRef);
|
|
29
29
|
if (!accountsFeature) throw new Error(`Accounts feature not found for ref: ${authDefinition.accountsFeatureRef}`);
|
|
30
30
|
const partialDef = __mf_34(() => createBetterAuthPartialDefinition(authFeature.name, accountsFeature.name), [authFeature.name, accountsFeature.name]);
|
|
31
|
-
const diff = __mf_34(() =>
|
|
31
|
+
const diff = __mf_34(() => __mf_240(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
32
32
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
33
33
|
const updatedData = { ...data };
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
__mf_244(definitionContainer, partialDef)(draftConfig);
|
|
35
|
+
__mf_24.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
36
36
|
}, {
|
|
37
37
|
successMessage: "Successfully saved Better Auth plugin!",
|
|
38
38
|
onSuccess: () => {
|
|
39
39
|
onSave();
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
|
-
|
|
42
|
+
__mf_7({
|
|
43
43
|
control,
|
|
44
44
|
reset,
|
|
45
45
|
onSubmit
|
|
@@ -54,15 +54,15 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
54
54
|
className: "auth:max-w-6xl auth:flex-1",
|
|
55
55
|
children: [/* @__PURE__ */ __mf_1("div", {
|
|
56
56
|
className: "auth:pb-16",
|
|
57
|
-
children: /* @__PURE__ */ __mf_2(
|
|
57
|
+
children: /* @__PURE__ */ __mf_2(__mf_202, { children: [/* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "Better Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
|
|
58
58
|
className: "auth:space-y-6",
|
|
59
59
|
children: /* @__PURE__ */ __mf_1(__mf_0, {
|
|
60
60
|
diff,
|
|
61
61
|
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
62
62
|
})
|
|
63
|
-
})] }), /* @__PURE__ */ __mf_2(
|
|
63
|
+
})] }), /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "User Management Permissions" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "The \"admin\" role always has user management permissions. Optionally add more roles that can manage users and assign roles in the admin interface." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
|
|
64
64
|
className: "auth:space-y-6",
|
|
65
|
-
children: /* @__PURE__ */ __mf_1(
|
|
65
|
+
children: /* @__PURE__ */ __mf_1(__mf_166, {
|
|
66
66
|
label: "Additional User Admin Roles",
|
|
67
67
|
name: "additionalUserAdminRoles",
|
|
68
68
|
control,
|
|
@@ -70,7 +70,7 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
70
70
|
description: "Additional roles (beyond admin) that can manage users and assign roles."
|
|
71
71
|
})
|
|
72
72
|
})] })] })
|
|
73
|
-
}), /* @__PURE__ */ __mf_1(
|
|
73
|
+
}), /* @__PURE__ */ __mf_1(__mf_128, {
|
|
74
74
|
form,
|
|
75
75
|
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
76
76
|
})]
|
|
@@ -82,17 +82,17 @@ function BetterAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSa
|
|
|
82
82
|
//#region src/better-auth/core/web.ts
|
|
83
83
|
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
84
84
|
var ACCOUNTS_FEATURE_NAME = "accounts/users";
|
|
85
|
-
var web_default =
|
|
85
|
+
var web_default = __mf_56({
|
|
86
86
|
name: "web",
|
|
87
87
|
dependencies: {
|
|
88
|
-
webConfig:
|
|
89
|
-
pluginDefaults:
|
|
88
|
+
webConfig: __mf_74,
|
|
89
|
+
pluginDefaults: __mf_72
|
|
90
90
|
},
|
|
91
91
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
92
92
|
webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
|
|
93
93
|
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
__mf_18.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
95
|
+
__mf_18.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
96
96
|
return {
|
|
97
97
|
config: {},
|
|
98
98
|
partialDef: createBetterAuthPartialDefinition(AUTH_FEATURE_NAME, ACCOUNTS_FEATURE_NAME)
|
|
@@ -103,4 +103,4 @@ var web_default = __mf_142({
|
|
|
103
103
|
//#endregion
|
|
104
104
|
export { web_default as default };
|
|
105
105
|
|
|
106
|
-
//# sourceMappingURL=web-
|
|
106
|
+
//# sourceMappingURL=web-CQMfABjr.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as a, t as AuthConfigTabs } from "./styles-
|
|
5
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
6
|
-
import "./auth-
|
|
7
|
-
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-
|
|
1
|
+
import { Q as __mf_2, Z as __mf_1, d as __mf_202, f as __mf_203, g as __mf_207, h as __mf_206, m as __mf_205, mt as __mf_34, p as __mf_204, t as __mf_128, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
|
|
2
|
+
import { T as __mf_74, _ as __mf_244, f as __mf_18, g as __mf_240, h as __mf_24, w as __mf_72, y as __mf_56 } 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
|
+
import { i as __mf_15, n as __mf_11, r as __mf_14, t as __mf_0, u as __mf_7 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
4
|
+
import { n as a, t as AuthConfigTabs } from "./styles-BQEcQHoR.js";
|
|
5
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-BgWWHl_Y.js";
|
|
6
|
+
import "./auth-DR6QxrAW.js";
|
|
7
|
+
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-CMwSlxsJ.js";
|
|
8
8
|
//#region src/placeholder-auth/core/schema/models.ts
|
|
9
|
-
|
|
9
|
+
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
10
10
|
function createPlaceholderAuthPartialDefinition(authFeatureName) {
|
|
11
11
|
return { models: [{
|
|
12
12
|
name: PLACEHOLDER_AUTH_MODELS.user,
|
|
@@ -41,14 +41,14 @@ function createPlaceholderAuthPartialDefinition(authFeatureName) {
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx
|
|
43
43
|
function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata, onSave }) {
|
|
44
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } =
|
|
44
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = __mf_14();
|
|
45
45
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
46
|
-
const authPluginDefinitionSchema =
|
|
46
|
+
const authPluginDefinitionSchema = __mf_11(createPlaceholderAuthPluginDefinitionSchema);
|
|
47
47
|
const defaultValues = __mf_34(() => {
|
|
48
48
|
if (pluginMetadata?.config) return pluginMetadata.config;
|
|
49
49
|
return {};
|
|
50
50
|
}, [pluginMetadata?.config]);
|
|
51
|
-
const form =
|
|
51
|
+
const form = __mf_15({
|
|
52
52
|
resolver: a(authPluginDefinitionSchema),
|
|
53
53
|
defaultValues
|
|
54
54
|
});
|
|
@@ -56,18 +56,18 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
56
56
|
const authFeature = definition.features.find((f) => f.id === authDefinition.authFeatureRef);
|
|
57
57
|
if (!authFeature) throw new Error(`Auth feature not found for ref: ${authDefinition.authFeatureRef}`);
|
|
58
58
|
const partialDef = __mf_34(() => createPlaceholderAuthPartialDefinition(authFeature.name), [authFeature.name]);
|
|
59
|
-
const diff = __mf_34(() =>
|
|
59
|
+
const diff = __mf_34(() => __mf_240(definitionContainer.schema, definitionContainer.definition, partialDef), [definitionContainer, partialDef]);
|
|
60
60
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
61
61
|
const updatedData = { ...data };
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
__mf_244(definitionContainer, partialDef)(draftConfig);
|
|
63
|
+
__mf_24.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
|
|
64
64
|
}, {
|
|
65
65
|
successMessage: "Successfully saved placeholder auth plugin!",
|
|
66
66
|
onSuccess: () => {
|
|
67
67
|
onSave();
|
|
68
68
|
}
|
|
69
69
|
}));
|
|
70
|
-
|
|
70
|
+
__mf_7({
|
|
71
71
|
control,
|
|
72
72
|
reset,
|
|
73
73
|
onSubmit
|
|
@@ -82,14 +82,14 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
82
82
|
className: "auth:max-w-6xl auth:flex-1",
|
|
83
83
|
children: [/* @__PURE__ */ __mf_1("div", {
|
|
84
84
|
className: "auth:pb-16",
|
|
85
|
-
children: /* @__PURE__ */ __mf_1(
|
|
85
|
+
children: /* @__PURE__ */ __mf_1(__mf_202, { children: /* @__PURE__ */ __mf_2(__mf_203, { children: [/* @__PURE__ */ __mf_2(__mf_206, { children: [/* @__PURE__ */ __mf_1(__mf_207, { children: "Placeholder Auth Configuration" }), /* @__PURE__ */ __mf_1(__mf_205, { children: "The plugin will automatically configure the models it needs." })] }), /* @__PURE__ */ __mf_1(__mf_204, {
|
|
86
86
|
className: "auth:space-y-6",
|
|
87
87
|
children: /* @__PURE__ */ __mf_1(__mf_0, {
|
|
88
88
|
diff,
|
|
89
89
|
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
90
90
|
})
|
|
91
91
|
})] }) })
|
|
92
|
-
}), /* @__PURE__ */ __mf_1(
|
|
92
|
+
}), /* @__PURE__ */ __mf_1(__mf_128, {
|
|
93
93
|
form,
|
|
94
94
|
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
95
95
|
})]
|
|
@@ -100,16 +100,16 @@ function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, metadata,
|
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/placeholder-auth/core/web.ts
|
|
102
102
|
var AUTH_FEATURE_NAME = "accounts/auth";
|
|
103
|
-
var web_default =
|
|
103
|
+
var web_default = __mf_56({
|
|
104
104
|
name: "web",
|
|
105
105
|
dependencies: {
|
|
106
|
-
webConfig:
|
|
107
|
-
pluginDefaults:
|
|
106
|
+
webConfig: __mf_74,
|
|
107
|
+
pluginDefaults: __mf_72
|
|
108
108
|
},
|
|
109
109
|
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
110
110
|
webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);
|
|
111
111
|
pluginDefaults.builders.set(pluginKey, ({ draft }) => {
|
|
112
|
-
|
|
112
|
+
__mf_18.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
113
113
|
return {
|
|
114
114
|
config: {},
|
|
115
115
|
partialDef: createPlaceholderAuthPartialDefinition(AUTH_FEATURE_NAME)
|
|
@@ -120,4 +120,4 @@ var web_default = __mf_142({
|
|
|
120
120
|
//#endregion
|
|
121
121
|
export { web_default as default };
|
|
122
122
|
|
|
123
|
-
//# sourceMappingURL=web-
|
|
123
|
+
//# sourceMappingURL=web-CcNpItSu.js.map
|