@baseplate-dev/plugin-auth 4.0.0 → 4.0.2
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 +621 -0
- package/dist/auth/core/common.d.ts +2 -5
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +14 -14
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/node.d.ts +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +5 -8
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/web.d.ts +3 -3
- package/dist/auth/core/web.d.ts.map +1 -1
- package/dist/auth/core/web.js +4 -5
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth0/core/common.d.ts +3 -5
- package/dist/auth0/core/common.d.ts.map +1 -1
- package/dist/auth0/core/common.js +11 -14
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/node.d.ts +3 -3
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +5 -8
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.js +1 -1
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/core/web.d.ts +3 -3
- package/dist/auth0/core/web.d.ts.map +1 -1
- package/dist/auth0/core/web.js +4 -5
- package/dist/auth0/core/web.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/local-auth/admin/common.d.ts +3 -2
- package/dist/local-auth/admin/common.d.ts.map +1 -1
- package/dist/local-auth/admin/common.js +6 -7
- package/dist/local-auth/admin/common.js.map +1 -1
- package/dist/local-auth/admin/node.d.ts +3 -6
- package/dist/local-auth/admin/node.d.ts.map +1 -1
- package/dist/local-auth/admin/node.js +13 -12
- package/dist/local-auth/admin/node.js.map +1 -1
- package/dist/local-auth/admin/web.d.ts +3 -4
- package/dist/local-auth/admin/web.d.ts.map +1 -1
- package/dist/local-auth/admin/web.js +22 -21
- package/dist/local-auth/admin/web.js.map +1 -1
- package/dist/local-auth/constants/model-names.d.ts +4 -0
- package/dist/local-auth/constants/model-names.d.ts.map +1 -1
- package/dist/local-auth/constants/model-names.js +4 -0
- package/dist/local-auth/constants/model-names.js.map +1 -1
- package/dist/local-auth/core/common.d.ts +3 -5
- package/dist/local-auth/core/common.d.ts.map +1 -1
- package/dist/local-auth/core/common.js +10 -13
- package/dist/local-auth/core/common.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +49 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +17 -6
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +209 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +47 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +48 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +253 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +102 -4
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js +106 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts +146 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +88 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +141 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +35 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +157 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +233 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +1216 -34
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +20 -19
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +131 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +240 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
- package/dist/local-auth/core/generators/index.d.ts +1 -0
- package/dist/local-auth/core/generators/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/index.js +1 -0
- package/dist/local-auth/core/generators/index.js.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
- package/dist/local-auth/core/node.d.ts +3 -3
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +16 -9
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +60 -0
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/local-auth/core/web.d.ts +3 -3
- package/dist/local-auth/core/web.d.ts.map +1 -1
- package/dist/local-auth/core/web.js +4 -5
- package/dist/local-auth/core/web.js.map +1 -1
- package/dist/placeholder-auth/core/common.d.ts +2 -5
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +10 -13
- package/dist/placeholder-auth/core/common.js.map +1 -1
- package/dist/placeholder-auth/core/node.d.ts +3 -3
- package/dist/placeholder-auth/core/node.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.js +5 -8
- package/dist/placeholder-auth/core/node.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/placeholder-auth/core/web.d.ts +3 -3
- package/dist/placeholder-auth/core/web.d.ts.map +1 -1
- package/dist/placeholder-auth/core/web.js +4 -5
- package/dist/placeholder-auth/core/web.js.map +1 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js +40 -0
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js → __federation_expose_auth0CoreWeb-CfhSWZsK.js} +9 -10
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js.map → __federation_expose_auth0CoreWeb-CfhSWZsK.js.map} +1 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js → __federation_expose_authCoreWeb-DZoAij9e.js} +10 -11
- package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js.map → __federation_expose_authCoreWeb-DZoAij9e.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-C75-DAzO.js → __federation_expose_local-authAdminCommon-BRHnF0Hn.js} +8 -9
- package/dist/web/assets/__federation_expose_local-authAdminCommon-BRHnF0Hn.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js +41 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js +21 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-ChyvdsRq.js → __federation_expose_local-authCoreWeb-Bwooi2qZ.js} +70 -11
- package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js +23 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js} +9 -13
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js → __federation_fn_import-pxYUpmb_.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js.map → __federation_fn_import-pxYUpmb_.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DtztAtUw.js → web-BXi2UCP-.js} +39 -120
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js +17445 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js +52536 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-Bxy-1ETU.js → utils-UiZ-8JBg.js} +30 -10
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DooFj-IS.js → react-router-BPEAtEJI.js} +1069 -746
- package/dist/web/assets/__federation_shared_@tanstack/react-router-BPEAtEJI.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js → get-auth-plugin-definition-DPsrvQbo.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js.map → get-auth-plugin-definition-DPsrvQbo.js.map} +1 -1
- package/dist/web/assets/{index-DwJT6_Wn.js → index-CSfs0UAV.js} +2 -2
- package/dist/web/assets/{index-DwJT6_Wn.js.map → index-CSfs0UAV.js.map} +1 -1
- package/dist/web/assets/{index.esm-ChwWPPiL.js → index.esm-BoRQu8mM.js} +2 -2
- package/dist/web/assets/{index.esm-ChwWPPiL.js.map → index.esm-BoRQu8mM.js.map} +1 -1
- package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
- package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
- package/dist/web/assets/{model-merger-gGkFnyaY.js → model-merger-CdjliK9v.js} +266 -101
- package/dist/web/assets/model-merger-CdjliK9v.js.map +1 -0
- package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
- package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-rpMj4pr8.js → plugin-definition-BG6tu7Hh.js} +3 -3
- package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +1 -0
- package/dist/web/assets/{plugin-definition-QRBMcFiG.js → plugin-definition-BMYDEj3f.js} +3 -3
- package/dist/web/assets/plugin-definition-BMYDEj3f.js.map +1 -0
- package/dist/web/assets/{plugin-definition-hAzbWO7b.js → plugin-definition-DRhTuQas.js} +2 -2
- package/dist/web/assets/{plugin-definition-hAzbWO7b.js.map → plugin-definition-DRhTuQas.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-_slrOM0G.js → plugin-definition-j1nJ0FFI.js} +2 -2
- package/dist/web/assets/{plugin-definition-_slrOM0G.js.map → plugin-definition-j1nJ0FFI.js.map} +1 -1
- package/dist/web/assets/{react-DbX1FP85.js → react-CBhSWxr_.js} +2 -2
- package/dist/web/assets/{react-DbX1FP85.js.map → react-CBhSWxr_.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +20 -20
- package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
- package/dist/web/assets/{styles-DqLt1Blm.js → styles-BbHyE-2h.js} +3 -3
- package/dist/web/assets/{styles-DqLt1Blm.js.map → styles-BbHyE-2h.js.map} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +23 -20
- package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js +0 -43
- package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js +0 -29
- package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-C75-DAzO.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js +0 -40
- package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js +0 -27
- package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-ChyvdsRq.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js +0 -26
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DtztAtUw.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js +0 -10507
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js +0 -24082
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-DooFj-IS.js.map +0 -1
- package/dist/web/assets/model-merger-gGkFnyaY.js.map +0 -1
- package/dist/web/assets/plugin-definition-QRBMcFiG.js.map +0 -1
- package/dist/web/assets/plugin-definition-rpMj4pr8.js.map +0 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
config: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").PluginConfigSpec>;
|
|
4
|
-
}, {
|
|
5
|
-
authConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthConfigSpec>;
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
6
3
|
}>;
|
|
7
4
|
export default _default;
|
|
8
5
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":";;;AAWA,wBAqBG"}
|
package/dist/auth/core/common.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { authConfigSpec,
|
|
1
|
+
import { authConfigSpec, createPluginModule, pluginConfigSpec, PluginUtils, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { createAuthPluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
3
|
-
export default
|
|
3
|
+
export default createPluginModule({
|
|
4
|
+
name: 'common',
|
|
4
5
|
dependencies: {
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
exports: {
|
|
6
|
+
pluginConfig: pluginConfigSpec,
|
|
8
7
|
authConfig: authConfigSpec,
|
|
9
8
|
},
|
|
10
|
-
initialize: ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
initialize: ({ authConfig, pluginConfig }, { pluginKey }) => {
|
|
10
|
+
pluginConfig.schemas.set(pluginKey, createAuthPluginDefinitionSchema);
|
|
11
|
+
authConfig.getAuthConfig.set((definition) => {
|
|
12
|
+
const pluginConfig = PluginUtils.configByKeyOrThrow(definition, pluginKey);
|
|
13
|
+
return {
|
|
14
|
+
roles: pluginConfig.roles,
|
|
15
|
+
modelNames: {
|
|
16
|
+
user: pluginConfig.authFeatureRef,
|
|
17
17
|
},
|
|
18
|
-
}
|
|
19
|
-
};
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3B;IACD,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC1D,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,gCAAgC,CAAC,CAAC;QACtE,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAC1C,MAAM,YAAY,GAAG,WAAW,CAAC,kBAAkB,CACjD,UAAU,EACV,SAAS,CACc,CAAC;YAC1B,OAAO;gBACL,KAAK,EAAE,YAAY,CAAC,KAAK;gBACzB,UAAU,EAAE;oBACV,IAAI,EAAE,YAAY,CAAC,cAAc;iBAClC;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth/core/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AAsBA,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AAsBA,wBAgDG"}
|
package/dist/auth/core/node.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { authContextGenerator, authPluginGenerator, authRolesGenerator, pothosAuthGenerator, prismaAuthorizerUtilsGenerator, userSessionTypesGenerator, } from '@baseplate-dev/fastify-generators';
|
|
2
|
-
import { appCompilerSpec, backendAppEntryType,
|
|
2
|
+
import { appCompilerSpec, backendAppEntryType, createPluginModule, PluginUtils, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
3
3
|
import { authErrorsGenerator, authIdentifyGenerator, } from '@baseplate-dev/react-generators';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'node',
|
|
5
6
|
dependencies: {
|
|
6
7
|
appCompiler: appCompilerSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
10
10
|
// register backend compiler
|
|
11
|
-
appCompiler.
|
|
11
|
+
appCompiler.compilers.push({
|
|
12
12
|
pluginKey,
|
|
13
13
|
appType: backendAppEntryType,
|
|
14
14
|
compile: ({ projectDefinition, appCompiler }) => {
|
|
@@ -30,9 +30,7 @@ export default createPlatformPluginExport({
|
|
|
30
30
|
authorizerUtils: prismaAuthorizerUtilsGenerator({}),
|
|
31
31
|
});
|
|
32
32
|
},
|
|
33
|
-
}
|
|
34
|
-
// register web compiler
|
|
35
|
-
appCompiler.registerAppCompiler({
|
|
33
|
+
}, {
|
|
36
34
|
pluginKey,
|
|
37
35
|
appType: webAppEntryType,
|
|
38
36
|
compile: ({ appCompiler }) => {
|
|
@@ -42,7 +40,6 @@ export default createPlatformPluginExport({
|
|
|
42
40
|
});
|
|
43
41
|
},
|
|
44
42
|
});
|
|
45
|
-
return {};
|
|
46
43
|
},
|
|
47
44
|
});
|
|
48
45
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AAIzC,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,4BAA4B;QAC5B,WAAW,CAAC,SAAS,CAAC,IAAI,CACxB;YACE,SAAS;YACT,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC9C,MAAM,IAAI,GAAG,WAAW,CAAC,kBAAkB,CACzC,iBAAiB,EACjB,SAAS,CACc,CAAC;gBAE1B,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE;oBACpD,WAAW,EAAE,oBAAoB,CAAC,EAAE,CAAC;oBACrC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBACnC,SAAS,EAAE,kBAAkB,CAAC;wBAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC5B,IAAI,EAAE,CAAC,CAAC,IAAI;4BACZ,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,OAAO,EAAE,CAAC,CAAC,OAAO;yBACnB,CAAC,CAAC;qBACJ,CAAC;oBACF,gBAAgB,EAAE,yBAAyB,CAAC,EAAE,CAAC;iBAChD,CAAC,CAAC;gBAEH,WAAW,CAAC,eAAe,CAAC;oBAC1B,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBACnC,eAAe,EAAE,8BAA8B,CAAC,EAAE,CAAC;iBACpD,CAAC,CAAC;YACL,CAAC;SACF,EACD;YACE,SAAS;YACT,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC3B,WAAW,CAAC,eAAe,CAAC;oBAC1B,YAAY,EAAE,qBAAqB,CAAC,EAAE,CAAC;oBACvC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;SACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth/core/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../styles.css';
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
4
|
+
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAQG"}
|
package/dist/auth/core/web.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { AuthDefinitionEditor } from './components/auth-definition-editor.js';
|
|
3
3
|
import '../../styles.css';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'web',
|
|
5
6
|
dependencies: {
|
|
6
7
|
webConfig: webConfigSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ webConfig }, { pluginKey }) => {
|
|
10
|
-
webConfig.
|
|
11
|
-
return {};
|
|
10
|
+
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
13
|
//# sourceMappingURL=web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}, {
|
|
5
|
-
authModelConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthModelConfigSpec>;
|
|
1
|
+
export type { PluginModule } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
6
4
|
}>;
|
|
7
5
|
export default _default;
|
|
8
6
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAWA,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;;;;AAEvE,wBAcG"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { authModelsSpec, createPluginModule, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { AUTH0_MODELS } from '../constants/model-names.js';
|
|
3
3
|
import { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';
|
|
4
4
|
import { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
5
|
-
export default
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'common',
|
|
6
7
|
dependencies: {
|
|
7
|
-
|
|
8
|
+
pluginConfig: pluginConfigSpec,
|
|
9
|
+
authModels: authModelsSpec,
|
|
8
10
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
authModelConfig: {
|
|
17
|
-
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, AUTH0_MODELS.user),
|
|
18
|
-
},
|
|
19
|
-
};
|
|
11
|
+
initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
|
|
12
|
+
pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);
|
|
13
|
+
pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
14
|
+
authModels.getAuthModels.set(() => ({
|
|
15
|
+
user: AUTH0_MODELS.user,
|
|
16
|
+
}));
|
|
20
17
|
},
|
|
21
18
|
});
|
|
22
19
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAKlF,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3B;IACD,UAAU,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC1D,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC;QACvE,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,8BAA8B,CAAC,CAAC;QAEvE,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;YAClC,IAAI,EAAE,YAAY,CAAC,IAAI;SACxB,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;AAkBA,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;AAkBA,wBA4CG"}
|
package/dist/auth0/core/node.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { appCompilerSpec, backendAppEntryType,
|
|
1
|
+
import { appCompilerSpec, backendAppEntryType, createPluginModule, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { reactRoutesGenerator } from '@baseplate-dev/react-generators';
|
|
3
3
|
import { getAuthPluginDefinition } from '#src/auth/utils/get-auth-plugin-definition.js';
|
|
4
4
|
import { auth0ApolloGenerator, auth0HooksGenerator, auth0ModuleGenerator, auth0PagesGenerator, reactAuth0Generator, } from '../generators/index.js';
|
|
5
|
-
export default
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'node',
|
|
6
7
|
dependencies: {
|
|
7
8
|
appCompiler: appCompilerSpec,
|
|
8
9
|
},
|
|
9
|
-
exports: {},
|
|
10
10
|
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
11
11
|
// register backend compiler
|
|
12
|
-
appCompiler.
|
|
12
|
+
appCompiler.compilers.push({
|
|
13
13
|
pluginKey,
|
|
14
14
|
appType: backendAppEntryType,
|
|
15
15
|
compile: ({ projectDefinition, appCompiler }) => {
|
|
@@ -20,9 +20,7 @@ export default createPlatformPluginExport({
|
|
|
20
20
|
}),
|
|
21
21
|
});
|
|
22
22
|
},
|
|
23
|
-
}
|
|
24
|
-
// register web compiler
|
|
25
|
-
appCompiler.registerAppCompiler({
|
|
23
|
+
}, {
|
|
26
24
|
pluginKey,
|
|
27
25
|
appType: webAppEntryType,
|
|
28
26
|
compile: ({ appCompiler, projectDefinition }) => {
|
|
@@ -42,7 +40,6 @@ export default createPlatformPluginExport({
|
|
|
42
40
|
});
|
|
43
41
|
},
|
|
44
42
|
});
|
|
45
|
-
return {};
|
|
46
43
|
},
|
|
47
44
|
});
|
|
48
45
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAEhC,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,4BAA4B;QAC5B,WAAW,CAAC,SAAS,CAAC,IAAI,CACxB;YACE,SAAS;YACT,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC9C,MAAM,IAAI,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;gBAExD,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE;oBACpD,WAAW,EAAE,oBAAoB,CAAC;wBAChC,iBAAiB,EAAE,IAAI;qBACxB,CAAC;iBACH,CAAC,CAAC;YACL,CAAC;SACF,EACD;YACE,SAAS;YACT,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,EAAE;gBAC9C,MAAM,IAAI,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;gBAExD,WAAW,CAAC,eAAe,CAAC;oBAC1B,IAAI,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBAC7B,SAAS,EAAE,mBAAmB,CAAC;wBAC7B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;qBAC/C,CAAC;oBACF,WAAW,EAAE,oBAAoB,CAAC,EAAE,CAAC;oBACrC,aAAa,EAAE,oBAAoB,CAAC;wBAClC,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE;4BACR,IAAI,EAAE,mBAAmB,CAAC,EAAE,CAAC;yBAC9B;qBACF,CAAC;iBACH,CAAC,CAAC;YACL,CAAC;SACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { definitionSchema } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export const createAuth0PluginDefinitionSchema = definitionSchema((
|
|
3
|
+
export const createAuth0PluginDefinitionSchema = definitionSchema(() => z.object({}));
|
|
4
4
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CACrE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CACb,CAAC"}
|
package/dist/auth0/core/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../styles.css';
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
4
|
+
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAQG"}
|
package/dist/auth0/core/web.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { Auth0DefinitionEditor } from './components/auth0-definition-editor.js';
|
|
3
3
|
import '../../styles.css';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'web',
|
|
5
6
|
dependencies: {
|
|
6
7
|
webConfig: webConfigSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ webConfig }, { pluginKey }) => {
|
|
10
|
-
webConfig.
|
|
11
|
-
return {};
|
|
10
|
+
webConfig.components.set(pluginKey, Auth0DefinitionEditor);
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
13
|
//# sourceMappingURL=web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts
CHANGED
|
@@ -10,7 +10,7 @@ builder.queryField('viewer', (t) =>
|
|
|
10
10
|
description: 'The currently authenticated user',
|
|
11
11
|
authorize: ['public'],
|
|
12
12
|
resolve: async (query, root, args, { auth }) => {
|
|
13
|
-
if (
|
|
13
|
+
if (auth.session?.type !== 'user') {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
return prisma.user.findUnique({
|
|
@@ -24,7 +24,7 @@ export const auth0HooksGenerator = createGenerator({
|
|
|
24
24
|
await builder.apply(renderers.hooksGroup.render({
|
|
25
25
|
variables: {
|
|
26
26
|
useSession: {
|
|
27
|
-
TPL_AUTH_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted([...authRoles].
|
|
27
|
+
TPL_AUTH_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted([...authRoles].toSorted().map((role) => quot(role))),
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACpD;iCACF;6BACF;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":";;;AAYA,wBA+BG"}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { adminCrudActionSpec, adminCrudColumnSpec, createAdminCrudActionType, createAdminCrudColumnType,
|
|
1
|
+
import { adminCrudActionSpec, adminCrudColumnSpec, createAdminCrudActionType, createAdminCrudColumnType, createPluginModule, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { createAdminCrudManageRolesActionSchema } from './schema/manage-role-action.js';
|
|
3
3
|
import { createAdminCrudResetPasswordActionSchema } from './schema/reset-password-action.js';
|
|
4
4
|
import { createAdminCrudRolesColumnSchema } from './schema/roles-column.js';
|
|
5
|
-
export default
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'common',
|
|
6
7
|
dependencies: {
|
|
7
8
|
adminCrudAction: adminCrudActionSpec,
|
|
8
9
|
adminCrudColumn: adminCrudColumnSpec,
|
|
9
10
|
},
|
|
10
|
-
exports: {},
|
|
11
11
|
initialize: ({ adminCrudAction, adminCrudColumn }) => {
|
|
12
12
|
// Register the manage-roles action type
|
|
13
|
-
adminCrudAction.
|
|
13
|
+
adminCrudAction.actions.add(createAdminCrudActionType({
|
|
14
14
|
name: 'manage-roles',
|
|
15
15
|
createSchema: createAdminCrudManageRolesActionSchema,
|
|
16
16
|
}));
|
|
17
17
|
// Register the reset-password action type
|
|
18
|
-
adminCrudAction.
|
|
18
|
+
adminCrudAction.actions.add(createAdminCrudActionType({
|
|
19
19
|
name: 'reset-password',
|
|
20
20
|
createSchema: createAdminCrudResetPasswordActionSchema,
|
|
21
21
|
}));
|
|
22
22
|
// Register the roles column type
|
|
23
|
-
adminCrudColumn.
|
|
23
|
+
adminCrudColumn.columns.add(createAdminCrudColumnType({
|
|
24
24
|
name: 'roles',
|
|
25
25
|
createSchema: createAdminCrudRolesColumnSchema,
|
|
26
26
|
}));
|
|
27
|
-
return {};
|
|
28
27
|
},
|
|
29
28
|
});
|
|
30
29
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,wCAAwC,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAE5E,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,eAAe,EAAE,mBAAmB;QACpC,eAAe,EAAE,mBAAmB;KACrC;IACD,UAAU,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,EAAE;QACnD,wCAAwC;QACxC,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE,sCAAsC;SACrD,CAAC,CACH,CAAC;QAEF,0CAA0C;QAC1C,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,gBAAgB;YACtB,YAAY,EAAE,wCAAwC;SACvD,CAAC,CACH,CAAC;QAEF,iCAAiC;QACjC,eAAe,CAAC,OAAO,CAAC,GAAG,CACzB,yBAAyB,CAAC;YACxB,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
adminCrudColumnCompiler: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").AdminCrudColumnCompilerSpec>;
|
|
5
|
-
authConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<AuthConfigSpec>;
|
|
6
|
-
}, {}>;
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
7
4
|
export default _default;
|
|
8
5
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":";;;AA6DA,wBAaG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { adminCrudActionCompilerSpec, adminCrudColumnCompilerSpec, authConfigSpec,
|
|
1
|
+
import { adminCrudActionCompilerSpec, adminCrudColumnCompilerSpec, authConfigSpec, createPluginModule, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { adminCrudManageRolesActionGenerator } from './generators/admin-crud-manage-roles-action/index.js';
|
|
3
3
|
import { adminCrudResetPasswordActionGenerator } from './generators/admin-crud-reset-password-action/index.js';
|
|
4
4
|
import { adminCrudRolesColumnGenerator } from './generators/admin-crud-roles-column/index.js';
|
|
@@ -14,16 +14,17 @@ function buildRolesColumnCompiler() {
|
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
function buildManageRolesActionCompiler(
|
|
17
|
+
function buildManageRolesActionCompiler() {
|
|
18
18
|
return {
|
|
19
19
|
name: 'manage-roles',
|
|
20
20
|
compileAction(definition, { order, definitionContainer }) {
|
|
21
|
+
const authConfig = definitionContainer.pluginStore.use(authConfigSpec);
|
|
21
22
|
return adminCrudManageRolesActionGenerator({
|
|
22
23
|
order,
|
|
23
24
|
position: definition.position,
|
|
24
25
|
availableRoles: authConfig
|
|
25
|
-
.
|
|
26
|
-
.filter((r) => !r.builtIn),
|
|
26
|
+
.getAuthConfigOrThrow(definitionContainer.definition)
|
|
27
|
+
.roles.filter((r) => !r.builtIn),
|
|
27
28
|
});
|
|
28
29
|
},
|
|
29
30
|
};
|
|
@@ -39,18 +40,18 @@ function buildResetPasswordActionCompiler() {
|
|
|
39
40
|
},
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
export default
|
|
43
|
+
export default createPluginModule({
|
|
44
|
+
name: 'node',
|
|
43
45
|
dependencies: {
|
|
44
46
|
adminCrudActionCompiler: adminCrudActionCompilerSpec,
|
|
45
47
|
adminCrudColumnCompiler: adminCrudColumnCompilerSpec,
|
|
46
|
-
authConfig: authConfigSpec,
|
|
47
48
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
initialize: ({ adminCrudActionCompiler, adminCrudColumnCompiler }) => {
|
|
50
|
+
adminCrudActionCompiler.actions.addMany([
|
|
51
|
+
buildManageRolesActionCompiler(),
|
|
52
|
+
buildResetPasswordActionCompiler(),
|
|
53
|
+
]);
|
|
54
|
+
adminCrudColumnCompiler.columns.add(buildRolesColumnCompiler());
|
|
54
55
|
},
|
|
55
56
|
});
|
|
56
57
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,EACd,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAM5C,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAC/G,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAE9F,SAAS,wBAAwB;IAC/B,OAAO;QACL,IAAI,EAAE,OAAO;QACb,aAAa,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE;YACjC,OAAO,6BAA6B,CAAC;gBACnC,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK;aACN,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B;IACrC,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,aAAa,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;YACtD,MAAM,UAAU,GAAG,mBAAmB,CAAC,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YACvE,OAAO,mCAAmC,CAAC;gBACzC,KAAK;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,cAAc,EAAE,UAAU;qBACvB,oBAAoB,CAAC,mBAAmB,CAAC,UAAU,CAAC;qBACpD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;aACnC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,gCAAgC;IACvC,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,aAAa,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE;YACjC,OAAO,qCAAqC,CAAC;gBAC3C,KAAK;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;aAC9B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,uBAAuB,EAAE,2BAA2B;QACpD,uBAAuB,EAAE,2BAA2B;KACrD;IACD,UAAU,EAAE,CAAC,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,EAAE,EAAE;QACnE,uBAAuB,CAAC,OAAO,CAAC,OAAO,CAAC;YACtC,8BAA8B,EAAE;YAChC,gCAAgC,EAAE;SACnC,CAAC,CAAC;QACH,uBAAuB,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAClE,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, {}>;
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
5
4
|
export default _default;
|
|
6
5
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":";;;AAWA,wBAsCG"}
|