@baseplate-dev/plugin-auth 3.0.4 → 4.0.1
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/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/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/auth0-module.generator.d.ts +39 -25
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.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/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.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 +15 -18
- 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/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-hooks/auth-hooks.generator.d.ts +12 -3
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
- 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 +3 -0
- 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 +6 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
- 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 +19 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
- 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 -8
- 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 +36 -7
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
- 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 +0 -1
- 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 +13 -6
- 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 +5 -12
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
- 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 +5 -13
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
- 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 +12 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -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 +12 -2
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
- 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 +5 -8
- package/dist/local-auth/core/node.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/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.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/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-DLSGXjCI.js +40 -0
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-C7FfhlmF.js} +9 -10
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-C7FfhlmF.js.map} +1 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-DMq9M88g.js} +10 -11
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-DMq9M88g.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-sQw4q5YX.js} +8 -9
- package/dist/web/assets/__federation_expose_local-authAdminCommon-sQw4q5YX.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js +41 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js +21 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-Czp0GaY1.js} +9 -10
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-Czp0GaY1.js.map} +1 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js +23 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js} +9 -13
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-DsXcpNlB.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-DsXcpNlB.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-zqe3PPcn.js} +37 -118
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CmgMfkI5.js} +2185 -2171
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-D1Dayhn9.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-D1Dayhn9.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-BO5VHrCf.js} +58 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-CNzDweD5.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-CNzDweD5.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-BV2O8wTa.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-BV2O8wTa.js.map} +1 -1
- package/dist/web/assets/{index-Dccn3WBN.js → index-BL7fotl7.js} +2 -2
- package/dist/web/assets/{index-Dccn3WBN.js.map → index-BL7fotl7.js.map} +1 -1
- package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-B4RpOlq_.js} +2 -2
- package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-B4RpOlq_.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-kOQ_dmiE.js → model-merger-BwRNqcBu.js} +194 -81
- package/dist/web/assets/model-merger-BwRNqcBu.js.map +1 -0
- package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-B9d2CoQL.js} +2 -2
- package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-B9d2CoQL.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-BMTsmwyH.js} +2 -2
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-BMTsmwyH.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-CHD5r-h7.js} +2 -2
- package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-CHD5r-h7.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-DA9rJBcS.js} +2 -2
- package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-DA9rJBcS.js.map} +1 -1
- package/dist/web/assets/{react-DA5A88WZ.js → react-B9vhIZMy.js} +2 -2
- package/dist/web/assets/{react-DA5A88WZ.js.map → react-B9vhIZMy.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +10 -10
- package/dist/web/assets/{styles-CfTjrsB-.js → styles-CEm5K1iU.js} +3 -3
- package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-CEm5K1iU.js.map} +1 -1
- package/package.json +14 -13
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js +0 -43
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js +0 -29
- package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-C0_ovnDb.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js +0 -40
- package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js +0 -27
- package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js +0 -26
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BTmJxb08.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
- package/dist/web/assets/model-merger-kOQ_dmiE.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/plugin-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Contains the auth plugin for Baseplate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"react-hook-form": "7.60.0",
|
|
37
37
|
"react-icons": "5.5.0",
|
|
38
38
|
"zod": "^4.1.13",
|
|
39
|
-
"@baseplate-dev/
|
|
40
|
-
"@baseplate-dev/
|
|
41
|
-
"@baseplate-dev/
|
|
42
|
-
"@baseplate-dev/
|
|
43
|
-
"@baseplate-dev/
|
|
39
|
+
"@baseplate-dev/core-generators": "0.5.1",
|
|
40
|
+
"@baseplate-dev/fastify-generators": "0.5.1",
|
|
41
|
+
"@baseplate-dev/react-generators": "0.5.1",
|
|
42
|
+
"@baseplate-dev/ui-components": "0.5.1",
|
|
43
|
+
"@baseplate-dev/utils": "0.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@originjs/vite-plugin-federation": "1.3.6",
|
|
@@ -52,18 +52,19 @@
|
|
|
52
52
|
"concurrently": "9.0.1",
|
|
53
53
|
"cpx2": "8.0.0",
|
|
54
54
|
"eslint": "9.32.0",
|
|
55
|
+
"nodemon": "3.1.11",
|
|
55
56
|
"prettier": "3.6.2",
|
|
56
57
|
"tailwindcss": "4.1.13",
|
|
57
58
|
"typescript": "5.8.3",
|
|
58
59
|
"vite": "7.1.12",
|
|
59
|
-
"vitest": "
|
|
60
|
-
"@baseplate-dev/project-builder-lib": "0.
|
|
61
|
-
"@baseplate-dev/sync": "0.
|
|
62
|
-
"@baseplate-dev/tools": "0.
|
|
60
|
+
"vitest": "4.0.16",
|
|
61
|
+
"@baseplate-dev/project-builder-lib": "0.5.1",
|
|
62
|
+
"@baseplate-dev/sync": "0.5.1",
|
|
63
|
+
"@baseplate-dev/tools": "0.5.1"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@baseplate-dev/project-builder-lib": "0.
|
|
66
|
-
"@baseplate-dev/sync": "0.
|
|
66
|
+
"@baseplate-dev/project-builder-lib": "0.5.1",
|
|
67
|
+
"@baseplate-dev/sync": "0.5.1"
|
|
67
68
|
},
|
|
68
69
|
"engines": {
|
|
69
70
|
"node": "^22.0.0"
|
|
@@ -88,6 +89,6 @@
|
|
|
88
89
|
"typecheck": "tsc --noEmit",
|
|
89
90
|
"watch": "concurrently pnpm:watch:*",
|
|
90
91
|
"watch:static": "pnpm build:static --watch",
|
|
91
|
-
"watch:vite": "vite build --watch"
|
|
92
|
+
"watch:vite": "nodemon --watch vite.config.ts --watch \"src/*/plugin.json\" --exec \"vite build --watch\""
|
|
92
93
|
}
|
|
93
94
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
import type { CurrentUserFragment } from '%generatedGraphqlImports';
|
|
4
|
-
|
|
5
|
-
import { useQuery } from '@apollo/client/react';
|
|
6
|
-
|
|
7
|
-
import { GetUserByIdDocument } from '%generatedGraphqlImports';
|
|
8
|
-
import { useSession } from '$useSession';
|
|
9
|
-
|
|
10
|
-
interface UseCurrentUserResult {
|
|
11
|
-
user?: CurrentUserFragment;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
error?: Error | null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function useCurrentUser(): UseCurrentUserResult {
|
|
17
|
-
const { userId } = useSession();
|
|
18
|
-
const { data, loading, error } = useQuery(GetUserByIdDocument, {
|
|
19
|
-
variables: { id: userId ?? '' },
|
|
20
|
-
skip: !userId,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const noUserError = !userId ? new Error('No user logged in') : null;
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
user: data?.TPL_USER,
|
|
27
|
-
loading,
|
|
28
|
-
error: error ?? noUserError,
|
|
29
|
-
};
|
|
30
|
-
}
|
package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CurrentUserFragment } from '%generatedGraphqlImports';
|
|
2
|
-
/**
|
|
3
|
-
* Result returned by useCurrentUser hook
|
|
4
|
-
*/
|
|
5
|
-
export interface UseCurrentUserResult {
|
|
6
|
-
/** Current user data from GraphQL */
|
|
7
|
-
user?: CurrentUserFragment;
|
|
8
|
-
/** Whether user data is loading */
|
|
9
|
-
loading: boolean;
|
|
10
|
-
/** Any error that occurred while fetching user data */
|
|
11
|
-
error?: Error | undefined;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Fetches information about the current user via GraphQL
|
|
15
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
16
|
-
*/
|
|
17
|
-
export declare function useCurrentUser(): UseCurrentUserResult;
|
|
18
|
-
//# sourceMappingURL=use-current-user.d.ts.map
|
package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-user.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAMpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qCAAqC;IACrC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CAcrD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { useSession } from '$useSession';
|
|
3
|
-
import { GetUserByIdDocument } from '%generatedGraphqlImports';
|
|
4
|
-
import { useQuery } from '@apollo/client/react';
|
|
5
|
-
/**
|
|
6
|
-
* Fetches information about the current user via GraphQL
|
|
7
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
8
|
-
*/
|
|
9
|
-
export function useCurrentUser() {
|
|
10
|
-
const { userId } = useSession();
|
|
11
|
-
const { data, loading, error } = useQuery(GetUserByIdDocument, {
|
|
12
|
-
variables: { id: userId ?? '' },
|
|
13
|
-
skip: !userId,
|
|
14
|
-
});
|
|
15
|
-
const noUserError = !userId ? new Error('No user logged in') : undefined;
|
|
16
|
-
return {
|
|
17
|
-
user: data?.user,
|
|
18
|
-
loading,
|
|
19
|
-
error: error ?? noUserError,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=use-current-user.js.map
|
package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-user.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;IAChC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,mBAAmB,EAAE;QAC7D,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,IAAI,EAAE,EAAE;QAC/B,IAAI,EAAE,CAAC,MAAM;KACd,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEzE,OAAO;QACL,IAAI,EAAE,IAAI,EAAE,IAAI;QAChB,OAAO;QACP,KAAK,EAAE,KAAK,IAAI,WAAW;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
import type { CurrentUserFragment } from '%generatedGraphqlImports';
|
|
4
|
-
|
|
5
|
-
import { useSession } from '$useSession';
|
|
6
|
-
import { GetUserByIdDocument } from '%generatedGraphqlImports';
|
|
7
|
-
import { useQuery } from '@apollo/client/react';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Result returned by useCurrentUser hook
|
|
11
|
-
*/
|
|
12
|
-
export interface UseCurrentUserResult {
|
|
13
|
-
/** Current user data from GraphQL */
|
|
14
|
-
user?: CurrentUserFragment;
|
|
15
|
-
/** Whether user data is loading */
|
|
16
|
-
loading: boolean;
|
|
17
|
-
/** Any error that occurred while fetching user data */
|
|
18
|
-
error?: Error | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Fetches information about the current user via GraphQL
|
|
23
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
24
|
-
*/
|
|
25
|
-
export function useCurrentUser(): UseCurrentUserResult {
|
|
26
|
-
const { userId } = useSession();
|
|
27
|
-
const { data, loading, error } = useQuery(GetUserByIdDocument, {
|
|
28
|
-
variables: { id: userId ?? '' },
|
|
29
|
-
skip: !userId,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const noUserError = !userId ? new Error('No user logged in') : undefined;
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
user: data?.user,
|
|
36
|
-
loading,
|
|
37
|
-
error: error ?? noUserError,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
mutation RegisterWithEmailPassword($input: RegisterWithEmailPasswordInput!) {
|
|
2
|
-
registerWithEmailPassword(input: $input) {
|
|
3
|
-
session {
|
|
4
|
-
userId
|
|
5
|
-
roles
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
mutation LoginWithEmailPassword($input: LoginWithEmailPasswordInput!) {
|
|
11
|
-
loginWithEmailPassword(input: $input) {
|
|
12
|
-
session {
|
|
13
|
-
userId
|
|
14
|
-
roles
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CurrentUserFragment } from '%generatedGraphqlImports';
|
|
2
|
-
interface UseCurrentUserResult {
|
|
3
|
-
user?: CurrentUserFragment;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
error?: Error | undefined;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Fetches information about the current user
|
|
9
|
-
*
|
|
10
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
11
|
-
*/
|
|
12
|
-
export declare function useCurrentUser(): UseCurrentUserResult;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=use-current-user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-user.d.ts","sourceRoot":"","sources":["../../../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAOpE,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CAcrD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { useQuery } from '@apollo/client/react';
|
|
3
|
-
import { GetUserByIdDocument } from '%generatedGraphqlImports';
|
|
4
|
-
import { useSession } from '$useSession';
|
|
5
|
-
/**
|
|
6
|
-
* Fetches information about the current user
|
|
7
|
-
*
|
|
8
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
9
|
-
*/
|
|
10
|
-
export function useCurrentUser() {
|
|
11
|
-
const { userId } = useSession();
|
|
12
|
-
const { data, loading, error } = useQuery(GetUserByIdDocument, {
|
|
13
|
-
variables: { id: userId ?? '' },
|
|
14
|
-
skip: !userId,
|
|
15
|
-
});
|
|
16
|
-
const noUserError = !userId ? new Error('No user logged in') : undefined;
|
|
17
|
-
return {
|
|
18
|
-
user: data?.user,
|
|
19
|
-
loading,
|
|
20
|
-
error: error ?? noUserError,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=use-current-user.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-user.js","sourceRoot":"","sources":["../../../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQzC;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;IAChC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,mBAAmB,EAAE;QAC7D,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,IAAI,EAAE,EAAE;QAC/B,IAAI,EAAE,CAAC,MAAM;KACd,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEzE,OAAO;QACL,IAAI,EAAE,IAAI,EAAE,IAAI;QAChB,OAAO;QACP,KAAK,EAAE,KAAK,IAAI,WAAW;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
import type { CurrentUserFragment } from '%generatedGraphqlImports';
|
|
4
|
-
|
|
5
|
-
import { useQuery } from '@apollo/client/react';
|
|
6
|
-
|
|
7
|
-
import { GetUserByIdDocument } from '%generatedGraphqlImports';
|
|
8
|
-
import { useSession } from '$useSession';
|
|
9
|
-
|
|
10
|
-
interface UseCurrentUserResult {
|
|
11
|
-
user?: CurrentUserFragment;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
error?: Error | undefined;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Fetches information about the current user
|
|
18
|
-
*
|
|
19
|
-
* @returns A result containing the current user or an error if the user is not authenticated
|
|
20
|
-
*/
|
|
21
|
-
export function useCurrentUser(): UseCurrentUserResult {
|
|
22
|
-
const { userId } = useSession();
|
|
23
|
-
const { data, loading, error } = useQuery(GetUserByIdDocument, {
|
|
24
|
-
variables: { id: userId ?? '' },
|
|
25
|
-
skip: !userId,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const noUserError = !userId ? new Error('No user logged in') : undefined;
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
user: data?.user,
|
|
32
|
-
loading,
|
|
33
|
-
error: error ?? noUserError,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CVjKjdRb.js';
|
|
2
|
-
import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-DKygiFuR.js';
|
|
3
|
-
|
|
4
|
-
const AUTH0_PLUGIN_CONFIG_MIGRATIONS = [
|
|
5
|
-
{
|
|
6
|
-
name: "move-models",
|
|
7
|
-
version: 1,
|
|
8
|
-
migrate: (config) => {
|
|
9
|
-
const typedConfig = config;
|
|
10
|
-
return {
|
|
11
|
-
updatedConfig: {
|
|
12
|
-
...typedConfig,
|
|
13
|
-
userAccountModelRef: void 0,
|
|
14
|
-
modelRefs: {
|
|
15
|
-
user: typedConfig.userAccountModelRef
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
const {authModelConfigSpec,createPlatformPluginExport,ModelUtils,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
24
|
-
const common = createPlatformPluginExport({
|
|
25
|
-
dependencies: {
|
|
26
|
-
config: pluginConfigSpec
|
|
27
|
-
},
|
|
28
|
-
exports: {
|
|
29
|
-
authModelConfig: authModelConfigSpec
|
|
30
|
-
},
|
|
31
|
-
initialize: ({ config }, { pluginKey }) => {
|
|
32
|
-
config.registerSchemaCreator(pluginKey, createAuth0PluginDefinitionSchema);
|
|
33
|
-
config.registerMigrations(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
34
|
-
return {
|
|
35
|
-
authModelConfig: {
|
|
36
|
-
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, AUTH0_MODELS.user)
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export { common as default };
|
|
43
|
-
//# sourceMappingURL=__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreCommon-DxPG_Wc0.js","sources":["../../../src/auth0/core/schema/migrations.ts","../../../src/auth0/core/common.ts"],"sourcesContent":["import type { PluginConfigMigration } from '@baseplate-dev/project-builder-lib';\n\nexport const AUTH0_PLUGIN_CONFIG_MIGRATIONS: PluginConfigMigration[] = [\n {\n name: 'move-models',\n version: 1,\n migrate: (config) => {\n const typedConfig = config as { userAccountModelRef: string };\n return {\n updatedConfig: {\n ...typedConfig,\n userAccountModelRef: undefined,\n modelRefs: {\n user: typedConfig.userAccountModelRef,\n },\n },\n };\n },\n },\n];\n","import {\n authModelConfigSpec,\n createPlatformPluginExport,\n ModelUtils,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AUTH0_MODELS } from '../constants/model-names.js';\nimport { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';\nimport { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authModelConfig: authModelConfigSpec,\n },\n initialize: ({ config }, { pluginKey }) => {\n config.registerSchemaCreator(pluginKey, createAuth0PluginDefinitionSchema);\n config.registerMigrations(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);\n return {\n authModelConfig: {\n getUserModel: (definition) =>\n ModelUtils.byNameOrThrow(definition, AUTH0_MODELS.user),\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAAA,GAA0D;AAAA,EACrE;AAAA,IACE,IAAA,EAAM,aAAA;AAAA,IACN,OAAA,EAAS,CAAA;AAAA,IACT,OAAA,EAAS,CAAC,MAAA,KAAW;AACnB,MAAA,MAAM,WAAA,GAAc,MAAA;AACpB,MAAA,OAAO;AAAA,QACL,aAAA,EAAe;AAAA,UACb,GAAG,WAAA;AAAA,UACH,mBAAA,EAAqB,MAAA;AAAA,UACrB,SAAA,EAAW;AAAA,YACT,MAAM,WAAA,CAAY;AAAA;AACpB;AACF,OACF;AAAA,IACF;AAAA;AAEJ,CAAA;;ACnBA,MAAA,CAAA,mBAAA,CAAA,0BAAA,CAAA,UAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,OAAA,EAAS;AAAA,IACP,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,YAAY,CAAC,EAAE,QAAO,EAAG,EAAE,WAAU,KAAM;AACzC,IAAA,MAAA,CAAO,qBAAA,CAAsB,WAAW,iCAAiC,CAAA;AACzE,IAAA,MAAA,CAAO,kBAAA,CAAmB,WAAW,8BAA8B,CAAA;AACnE,IAAA,OAAO;AAAA,MACL,eAAA,EAAiB;AAAA,QACf,cAAc,CAAC,UAAA,KACb,WAAW,aAAA,CAAc,UAAA,EAAY,aAAa,IAAI;AAAA;AAC1D,KACF;AAAA,EACF;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CVjKjdRb.js';
|
|
2
|
-
import { a as createAuthPluginDefinitionSchema } from './plugin-definition-CxKhFkmJ.js';
|
|
3
|
-
|
|
4
|
-
const {authConfigSpec,createPlatformPluginExport,pluginConfigSpec,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
const common = createPlatformPluginExport({
|
|
6
|
-
dependencies: {
|
|
7
|
-
config: pluginConfigSpec
|
|
8
|
-
},
|
|
9
|
-
exports: {
|
|
10
|
-
authConfig: authConfigSpec
|
|
11
|
-
},
|
|
12
|
-
initialize: ({ config }, { pluginKey }) => {
|
|
13
|
-
config.registerSchemaCreator(pluginKey, createAuthPluginDefinitionSchema);
|
|
14
|
-
return {
|
|
15
|
-
authConfig: {
|
|
16
|
-
getAuthRoles: (definition) => {
|
|
17
|
-
const pluginConfig = PluginUtils.configByKeyOrThrow(
|
|
18
|
-
definition,
|
|
19
|
-
pluginKey
|
|
20
|
-
);
|
|
21
|
-
return pluginConfig.roles;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export { common as default };
|
|
29
|
-
//# sourceMappingURL=__federation_expose_authCoreCommon-Cxa_7fkO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_authCoreCommon-Cxa_7fkO.js","sources":["../../../src/auth/core/common.ts"],"sourcesContent":["import {\n authConfigSpec,\n createPlatformPluginExport,\n pluginConfigSpec,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from './schema/plugin-definition.js';\n\nimport { createAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authConfig: authConfigSpec,\n },\n initialize: ({ config }, { pluginKey }) => {\n config.registerSchemaCreator(pluginKey, createAuthPluginDefinitionSchema);\n return {\n authConfig: {\n getAuthRoles: (definition) => {\n const pluginConfig = PluginUtils.configByKeyOrThrow(\n definition,\n pluginKey,\n ) as AuthPluginDefinition;\n return pluginConfig.roles;\n },\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,cAAA,CAAA,0BAAA,CAAA,gBAAA,CAAA,WAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,OAAA,EAAS;AAAA,IACP,UAAA,EAAY;AAAA,GACd;AAAA,EACA,YAAY,CAAC,EAAE,QAAO,EAAG,EAAE,WAAU,KAAM;AACzC,IAAA,MAAA,CAAO,qBAAA,CAAsB,WAAW,gCAAgC,CAAA;AACxE,IAAA,OAAO;AAAA,MACL,UAAA,EAAY;AAAA,QACV,YAAA,EAAc,CAAC,UAAA,KAAe;AAC5B,UAAA,MAAM,eAAe,WAAA,CAAY,kBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,YAAA,CAAa,KAAA;AAAA,QACtB;AAAA;AACF,KACF;AAAA,EACF;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authAdminCommon-C0_ovnDb.js","sources":["../../../src/local-auth/admin/schema/manage-role-action.ts","../../../src/local-auth/admin/schema/reset-password-action.ts","../../../src/local-auth/admin/schema/roles-column.ts","../../../src/local-auth/admin/common.ts"],"sourcesContent":["import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudActionSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudManageRolesActionSchema = definitionSchema(() =>\n baseAdminCrudActionSchema.extend({\n type: z.literal('manage-roles'),\n }),\n);\n\nexport type AdminCrudManageRolesActionDefinition = def.InferOutput<\n typeof createAdminCrudManageRolesActionSchema\n>;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudActionSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudResetPasswordActionSchema = definitionSchema(() =>\n baseAdminCrudActionSchema.extend({\n type: z.literal('reset-password'),\n }),\n);\n\nexport type AdminCrudResetPasswordActionDefinition = def.InferOutput<\n typeof createAdminCrudResetPasswordActionSchema\n>;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudColumnSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudRolesColumnSchema = definitionSchema(() =>\n baseAdminCrudColumnSchema.extend({\n type: z.literal('roles'),\n }),\n);\n\nexport type AdminCrudRolesColumnDefinition = def.InferOutput<\n typeof createAdminCrudRolesColumnSchema\n>;\n","import type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nimport {\n adminCrudActionSpec,\n adminCrudColumnSpec,\n createAdminCrudActionType,\n createAdminCrudColumnType,\n createPlatformPluginExport,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { createAdminCrudManageRolesActionSchema } from './schema/manage-role-action.js';\nimport { createAdminCrudResetPasswordActionSchema } from './schema/reset-password-action.js';\nimport { createAdminCrudRolesColumnSchema } from './schema/roles-column.js';\n\nexport default createPlatformPluginExport({\n dependencies: {\n adminCrudAction: adminCrudActionSpec,\n adminCrudColumn: adminCrudColumnSpec,\n },\n exports: {},\n initialize: ({ adminCrudAction, adminCrudColumn }) => {\n // Register the manage-roles action type\n adminCrudAction.registerAdminCrudAction(\n createAdminCrudActionType({\n name: 'manage-roles',\n createSchema: createAdminCrudManageRolesActionSchema,\n }),\n );\n\n // Register the reset-password action type\n adminCrudAction.registerAdminCrudAction(\n createAdminCrudActionType({\n name: 'reset-password',\n createSchema: createAdminCrudResetPasswordActionSchema,\n }),\n );\n\n // Register the roles column type\n adminCrudColumn.registerAdminCrudColumn(\n createAdminCrudColumnType({\n name: 'roles',\n createSchema: createAdminCrudRolesColumnSchema,\n }),\n );\n\n return {};\n },\n}) as PluginPlatformModule;\n"],"names":["baseAdminCrudActionSchema","definitionSchema","z"],"mappings":";;AAEA,MAAA,4BAAAA,2BAAA,mBAAAC,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,IAAAC,GAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,sCAAA,GAAyCD,kBAAA;AAAA,EAAiB,MACrED,4BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAME,GAAA,CAAE,OAAA,CAAQ,cAAc;AAAA,GAC/B;AACH,CAAA;;ACVA,MAAA,CAAA,yBAAA,mBAAAD,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,IAAAC,GAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,wCAAA,GAA2CD,kBAAA;AAAA,EAAiB,MACvE,0BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAMC,GAAA,CAAE,OAAA,CAAQ,gBAAgB;AAAA,GACjC;AACH,CAAA;;ACVA,MAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,gCAAA,GAAmC,gBAAA;AAAA,EAAiB,MAC/D,0BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAM,CAAA,CAAE,OAAA,CAAQ,OAAO;AAAA,GACxB;AACH,CAAA;;ACVA,MAAA,CAAA,mBAAA,CAAA,mBAAA,CAAA,yBAAA,CAAA,yBAAA,CAAA,0BAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAYA,eAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,eAAA,EAAiB,mBAAA;AAAA,IACjB,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,SAAS,EAAC;AAAA,EACV,UAAA,EAAY,CAAC,EAAE,eAAA,EAAiB,iBAAgB,KAAM;AAEpD,IAAA,eAAA,CAAgB,uBAAA;AAAA,MACd,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,cAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAGA,IAAA,eAAA,CAAgB,uBAAA;AAAA,MACd,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,gBAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAGA,IAAA,eAAA,CAAgB,uBAAA;AAAA,MACd,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,OAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAEA,IAAA,OAAO,EAAC;AAAA,EACV;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CVjKjdRb.js';
|
|
2
|
-
import { L as LOCAL_AUTH_MODELS } from './model-names-CEoSIalq.js';
|
|
3
|
-
|
|
4
|
-
const {createPlatformPluginExport,ModelUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
|
|
6
|
-
const {adminCrudActionWebSpec,adminCrudColumnWebSpec} = await importShared('@baseplate-dev/project-builder-lib/web');
|
|
7
|
-
const web = createPlatformPluginExport({
|
|
8
|
-
dependencies: {
|
|
9
|
-
adminCrudActionWeb: adminCrudActionWebSpec,
|
|
10
|
-
adminCrudColumnWeb: adminCrudColumnWebSpec
|
|
11
|
-
},
|
|
12
|
-
exports: {},
|
|
13
|
-
initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
|
|
14
|
-
adminCrudActionWeb.registerActionWebConfig({
|
|
15
|
-
pluginKey,
|
|
16
|
-
name: "manage-roles",
|
|
17
|
-
label: "Manage Roles",
|
|
18
|
-
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
19
|
-
getNewAction: () => ({ type: "manage-roles", position: "dropdown" })
|
|
20
|
-
});
|
|
21
|
-
adminCrudActionWeb.registerActionWebConfig({
|
|
22
|
-
pluginKey,
|
|
23
|
-
name: "reset-password",
|
|
24
|
-
label: "Reset Password",
|
|
25
|
-
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
26
|
-
getNewAction: () => ({ type: "reset-password", position: "dropdown" })
|
|
27
|
-
});
|
|
28
|
-
adminCrudColumnWeb.registerColumnWebConfig({
|
|
29
|
-
pluginKey,
|
|
30
|
-
name: "roles",
|
|
31
|
-
label: "Roles",
|
|
32
|
-
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
33
|
-
getNewColumn: () => ({ type: "roles", label: "Roles" })
|
|
34
|
-
});
|
|
35
|
-
return {};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export { web as default };
|
|
40
|
-
//# sourceMappingURL=__federation_expose_local-authAdminWeb-GqHU6av7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authAdminWeb-GqHU6av7.js","sources":["../../../src/local-auth/admin/web.ts"],"sourcesContent":["import {\n createPlatformPluginExport,\n ModelUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n adminCrudActionWebSpec,\n adminCrudColumnWebSpec,\n} from '@baseplate-dev/project-builder-lib/web';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport default createPlatformPluginExport({\n dependencies: {\n adminCrudActionWeb: adminCrudActionWebSpec,\n adminCrudColumnWeb: adminCrudColumnWebSpec,\n },\n exports: {},\n initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'manage-roles',\n label: 'Manage Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),\n });\n\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'reset-password',\n label: 'Reset Password',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),\n });\n\n adminCrudColumnWeb.registerColumnWebConfig({\n pluginKey,\n name: 'roles',\n label: 'Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewColumn: () => ({ type: 'roles', label: 'Roles' }),\n });\n return {};\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,0BAAA,CAAA,UAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,sBAAA,CAAA,sBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,wCAAA,CAAA;AAOA,YAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,kBAAA,EAAoB,sBAAA;AAAA,IACpB,kBAAA,EAAoB;AAAA,GACtB;AAAA,EACA,SAAS,EAAC;AAAA,EACV,UAAA,EAAY,CAAC,EAAE,kBAAA,EAAoB,oBAAmB,EAAG,EAAE,WAAU,KAAM;AACzE,IAAA,kBAAA,CAAmB,uBAAA,CAAwB;AAAA,MACzC,SAAA;AAAA,MACA,IAAA,EAAM,cAAA;AAAA,MACN,KAAA,EAAO,cAAA;AAAA,MACP,mBAAA,EAAqB,CAAC,UAAA,EAAY,OAAA,KAChC,UAAA,CAAW,YAAY,UAAA,EAAY,OAAO,CAAA,CAAE,IAAA,KAC5C,iBAAA,CAAkB,IAAA;AAAA,MACpB,cAAc,OAAO,EAAE,IAAA,EAAM,cAAA,EAAgB,UAAU,UAAA,EAAW;AAAA,KACnE,CAAA;AAED,IAAA,kBAAA,CAAmB,uBAAA,CAAwB;AAAA,MACzC,SAAA;AAAA,MACA,IAAA,EAAM,gBAAA;AAAA,MACN,KAAA,EAAO,gBAAA;AAAA,MACP,mBAAA,EAAqB,CAAC,UAAA,EAAY,OAAA,KAChC,UAAA,CAAW,YAAY,UAAA,EAAY,OAAO,CAAA,CAAE,IAAA,KAC5C,iBAAA,CAAkB,IAAA;AAAA,MACpB,cAAc,OAAO,EAAE,IAAA,EAAM,gBAAA,EAAkB,UAAU,UAAA,EAAW;AAAA,KACrE,CAAA;AAED,IAAA,kBAAA,CAAmB,uBAAA,CAAwB;AAAA,MACzC,SAAA;AAAA,MACA,IAAA,EAAM,OAAA;AAAA,MACN,KAAA,EAAO,OAAA;AAAA,MACP,mBAAA,EAAqB,CAAC,UAAA,EAAY,OAAA,KAChC,UAAA,CAAW,YAAY,UAAA,EAAY,OAAO,CAAA,CAAE,IAAA,KAC5C,iBAAA,CAAkB,IAAA;AAAA,MACpB,cAAc,OAAO,EAAE,IAAA,EAAM,OAAA,EAAS,OAAO,OAAA,EAAQ;AAAA,KACtD,CAAA;AACD,IAAA,OAAO,EAAC;AAAA,EACV;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CVjKjdRb.js';
|
|
2
|
-
import { L as LOCAL_AUTH_MODELS } from './model-names-CEoSIalq.js';
|
|
3
|
-
import { c as createLocalAuthPluginDefinitionSchema } from './plugin-definition-JFxKP18O.js';
|
|
4
|
-
|
|
5
|
-
const {authModelConfigSpec,createPlatformPluginExport,ModelUtils,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
6
|
-
const common = createPlatformPluginExport({
|
|
7
|
-
dependencies: {
|
|
8
|
-
config: pluginConfigSpec
|
|
9
|
-
},
|
|
10
|
-
exports: {
|
|
11
|
-
authModelConfig: authModelConfigSpec
|
|
12
|
-
},
|
|
13
|
-
initialize: ({ config }, { pluginKey }) => {
|
|
14
|
-
config.registerSchemaCreator(
|
|
15
|
-
pluginKey,
|
|
16
|
-
createLocalAuthPluginDefinitionSchema
|
|
17
|
-
);
|
|
18
|
-
return {
|
|
19
|
-
authModelConfig: {
|
|
20
|
-
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, LOCAL_AUTH_MODELS.user)
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { common as default };
|
|
27
|
-
//# sourceMappingURL=__federation_expose_local-authCoreCommon-PHXPCKoj.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authCoreCommon-PHXPCKoj.js","sources":["../../../src/local-auth/core/common.ts"],"sourcesContent":["import {\n authModelConfigSpec,\n createPlatformPluginExport,\n ModelUtils,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nimport { createLocalAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authModelConfig: authModelConfigSpec,\n },\n initialize: ({ config }, { pluginKey }) => {\n config.registerSchemaCreator(\n pluginKey,\n createLocalAuthPluginDefinitionSchema,\n );\n return {\n authModelConfig: {\n getUserModel: (definition) =>\n ModelUtils.byNameOrThrow(definition, LOCAL_AUTH_MODELS.user),\n },\n };\n },\n});\n"],"names":[],"mappings":";;;;AAAA,MAAA,CAAA,mBAAA,CAAA,0BAAA,CAAA,UAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,OAAA,EAAS;AAAA,IACP,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,YAAY,CAAC,EAAE,QAAO,EAAG,EAAE,WAAU,KAAM;AACzC,IAAA,MAAA,CAAO,qBAAA;AAAA,MACL,SAAA;AAAA,MACA;AAAA,KACF;AACA,IAAA,OAAO;AAAA,MACL,eAAA,EAAiB;AAAA,QACf,cAAc,CAAC,UAAA,KACb,WAAW,aAAA,CAAc,UAAA,EAAY,kBAAkB,IAAI;AAAA;AAC/D,KACF;AAAA,EACF;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CVjKjdRb.js';
|
|
2
|
-
import { c as createPlaceholderAuthPluginDefinitionSchema, P as PLACEHOLDER_AUTH_MODELS } from './plugin-definition-qkkt1X28.js';
|
|
3
|
-
|
|
4
|
-
const {authModelConfigSpec,createPlatformPluginExport,ModelUtils,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
const common = createPlatformPluginExport({
|
|
6
|
-
dependencies: {
|
|
7
|
-
config: pluginConfigSpec
|
|
8
|
-
},
|
|
9
|
-
exports: {
|
|
10
|
-
authModelConfig: authModelConfigSpec
|
|
11
|
-
},
|
|
12
|
-
initialize: ({ config }, { pluginKey }) => {
|
|
13
|
-
config.registerSchemaCreator(
|
|
14
|
-
pluginKey,
|
|
15
|
-
createPlaceholderAuthPluginDefinitionSchema
|
|
16
|
-
);
|
|
17
|
-
return {
|
|
18
|
-
authModelConfig: {
|
|
19
|
-
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, PLACEHOLDER_AUTH_MODELS.user)
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export { common as default };
|
|
26
|
-
//# sourceMappingURL=__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js","sources":["../../../src/placeholder-auth/core/common.ts"],"sourcesContent":["import {\n authModelConfigSpec,\n createPlatformPluginExport,\n ModelUtils,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nimport { createPlaceholderAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authModelConfig: authModelConfigSpec,\n },\n initialize: ({ config }, { pluginKey }) => {\n config.registerSchemaCreator(\n pluginKey,\n createPlaceholderAuthPluginDefinitionSchema,\n );\n return {\n authModelConfig: {\n getUserModel: (definition) =>\n ModelUtils.byNameOrThrow(definition, PLACEHOLDER_AUTH_MODELS.user),\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,mBAAA,CAAA,0BAAA,CAAA,UAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAAA,CAA2B;AAAA,EACxC,YAAA,EAAc;AAAA,IACZ,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,OAAA,EAAS;AAAA,IACP,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,YAAY,CAAC,EAAE,QAAO,EAAG,EAAE,WAAU,KAAM;AACzC,IAAA,MAAA,CAAO,qBAAA;AAAA,MACL,SAAA;AAAA,MACA;AAAA,KACF;AACA,IAAA,OAAO;AAAA,MACL,eAAA,EAAiB;AAAA,QACf,cAAc,CAAC,UAAA,KACb,WAAW,aAAA,CAAc,UAAA,EAAY,wBAAwB,IAAI;AAAA;AACrE,KACF;AAAA,EACF;AACF,CAAC,CAAA;;;;"}
|