@baseplate-dev/plugin-auth 3.0.3 → 4.0.0
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/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/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.map +1 -1
- package/dist/local-auth/admin/node.js +2 -6
- package/dist/local-auth/admin/node.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/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/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js → __federation_expose_auth0CoreCommon-Ga9LD3d6.js} +3 -3
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map → __federation_expose_auth0CoreCommon-Ga9LD3d6.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-CZueDXPK.js} +5 -5
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-CZueDXPK.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js → __federation_expose_authCoreCommon-BrTLsuJC.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js.map → __federation_expose_authCoreCommon-BrTLsuJC.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-C8rgnA2v.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-C8rgnA2v.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-C75-DAzO.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js.map → __federation_expose_local-authAdminCommon-C75-DAzO.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js → __federation_expose_local-authAdminWeb-D2xGvwyL.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js.map → __federation_expose_local-authAdminWeb-D2xGvwyL.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js → __federation_expose_local-authCoreCommon-BFUbyPYg.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js.map → __federation_expose_local-authCoreCommon-BFUbyPYg.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-ChyvdsRq.js} +5 -5
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-ChyvdsRq.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js} +5 -5
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-C_QCk5FX.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-C_QCk5FX.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-DtztAtUw.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js.map → web-DtztAtUw.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CcNtL_U6.js} +293 -216
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-DA_4I2Vy.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-DA_4I2Vy.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-Bxy-1ETU.js} +34 -3
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-DooFj-IS.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-DooFj-IS.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-D2XMaoy7.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-D2XMaoy7.js.map} +1 -1
- package/dist/web/assets/{index-Dccn3WBN.js → index-DwJT6_Wn.js} +2 -2
- package/dist/web/assets/{index-Dccn3WBN.js.map → index-DwJT6_Wn.js.map} +1 -1
- package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-ChwWPPiL.js} +2 -2
- package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-ChwWPPiL.js.map} +1 -1
- package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-gGkFnyaY.js} +7 -2
- package/dist/web/assets/model-merger-gGkFnyaY.js.map +1 -0
- package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-QRBMcFiG.js} +2 -2
- package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-QRBMcFiG.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-_slrOM0G.js} +2 -2
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-_slrOM0G.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-hAzbWO7b.js} +2 -2
- package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-hAzbWO7b.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-rpMj4pr8.js} +2 -2
- package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-rpMj4pr8.js.map} +1 -1
- package/dist/web/assets/{react-DA5A88WZ.js → react-DbX1FP85.js} +2 -2
- package/dist/web/assets/{react-DA5A88WZ.js.map → react-DbX1FP85.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +10 -10
- package/dist/web/assets/{styles-CfTjrsB-.js → styles-DqLt1Blm.js} +3 -3
- package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-DqLt1Blm.js.map} +1 -1
- package/package.json +12 -12
- 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_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
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
export declare const mainGroup: {
|
|
2
2
|
passwordResetDialog: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
4
|
+
graphql: {};
|
|
5
|
+
readFragment: {};
|
|
6
|
+
FragmentOf: {
|
|
7
|
+
isTypeOnly: true;
|
|
8
|
+
};
|
|
9
|
+
ResultOf: {
|
|
10
|
+
isTypeOnly: true;
|
|
11
|
+
};
|
|
12
|
+
VariablesOf: {
|
|
13
|
+
isTypeOnly: true;
|
|
14
|
+
};
|
|
5
15
|
}>>;
|
|
6
16
|
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
7
17
|
AddOptionRequiredFields: {
|
|
@@ -219,8 +229,18 @@ export declare const mainGroup: {
|
|
|
219
229
|
export declare const LOCAL_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATES: {
|
|
220
230
|
mainGroup: {
|
|
221
231
|
passwordResetDialog: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
222
|
-
|
|
223
|
-
|
|
232
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
233
|
+
graphql: {};
|
|
234
|
+
readFragment: {};
|
|
235
|
+
FragmentOf: {
|
|
236
|
+
isTypeOnly: true;
|
|
237
|
+
};
|
|
238
|
+
ResultOf: {
|
|
239
|
+
isTypeOnly: true;
|
|
240
|
+
};
|
|
241
|
+
VariablesOf: {
|
|
242
|
+
isTypeOnly: true;
|
|
243
|
+
};
|
|
224
244
|
}>>;
|
|
225
245
|
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
226
246
|
AddOptionRequiredFields: {
|
|
@@ -435,8 +455,5 @@ export declare const LOCAL_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATES
|
|
|
435
455
|
}>>;
|
|
436
456
|
}, Record<never, Record<never, never>>>;
|
|
437
457
|
};
|
|
438
|
-
passwordResetDialogGql: import("@baseplate-dev/core-generators").TextTemplateFile<{
|
|
439
|
-
TPL_USER_ROW_FRAGMENT: {};
|
|
440
|
-
}>;
|
|
441
458
|
};
|
|
442
459
|
//# sourceMappingURL=typed-templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0B,CAAC;AAEjD,eAAO,MAAM,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEvE,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { createTsTemplateFile } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { graphqlImportsProvider, reactComponentsImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
const passwordResetDialog = createTsTemplateFile({
|
|
5
5
|
fileOptions: { kind: 'singleton' },
|
|
6
6
|
group: 'main',
|
|
7
7
|
importMapProviders: {
|
|
8
|
-
|
|
8
|
+
graphqlImports: graphqlImportsProvider,
|
|
9
9
|
reactComponentsImports: reactComponentsImportsProvider,
|
|
10
10
|
},
|
|
11
11
|
name: 'password-reset-dialog',
|
|
@@ -16,16 +16,7 @@ const passwordResetDialog = createTsTemplateFile({
|
|
|
16
16
|
variables: {},
|
|
17
17
|
});
|
|
18
18
|
export const mainGroup = { passwordResetDialog };
|
|
19
|
-
const passwordResetDialogGql = createTextTemplateFile({
|
|
20
|
-
fileOptions: { kind: 'singleton' },
|
|
21
|
-
name: 'password-reset-dialog-gql',
|
|
22
|
-
source: {
|
|
23
|
-
path: path.join(import.meta.dirname, '../templates/routes/-components/password-reset-dialog.gql'),
|
|
24
|
-
},
|
|
25
|
-
variables: { TPL_USER_ROW_FRAGMENT: {} },
|
|
26
|
-
});
|
|
27
19
|
export const LOCAL_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATES = {
|
|
28
20
|
mainGroup,
|
|
29
|
-
passwordResetDialogGql,
|
|
30
21
|
};
|
|
31
22
|
//# sourceMappingURL=typed-templates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;QAClB,cAAc,EAAE,sBAAsB;QACtC,sBAAsB,EAAE,8BAA8B;KACvD;IACD,IAAI,EAAE,uBAAuB;IAC7B,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2DAA2D,CAC5D;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,mBAAmB,EAAE,CAAC;AAEjD,MAAM,CAAC,MAAM,2DAA2D,GAAG;IACzE,SAAS;CACV,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FragmentOf } from '%graphqlImports';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
+
export declare const passwordResetDialogUserFragment: any;
|
|
3
4
|
interface PasswordResetDialogProps {
|
|
4
|
-
user:
|
|
5
|
+
user: FragmentOf<typeof passwordResetDialogUserFragment>;
|
|
5
6
|
open: boolean;
|
|
6
7
|
onOpenChange: (open: boolean) => void;
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"password-reset-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAwC1C,eAAO,MAAM,+BAA+B,KAM1C,CAAC;AAeH,UAAU,wBAAwB;IAChC,IAAI,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;IACzD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,IAAI,EACJ,YAAY,GACb,EAAE,wBAAwB,GAAG,YAAY,CAwFzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { graphql, readFragment } from '%graphqlImports';
|
|
3
3
|
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, InputFieldController, } from '%reactComponentsImports';
|
|
4
4
|
import { useMutation } from '@apollo/client/react';
|
|
5
5
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
@@ -20,6 +20,22 @@ const passwordResetSchema = z
|
|
|
20
20
|
message: "Passwords don't match",
|
|
21
21
|
path: ['confirmPassword'],
|
|
22
22
|
});
|
|
23
|
+
export const passwordResetDialogUserFragment = graphql(`
|
|
24
|
+
fragment PasswordResetDialog_user on User {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
email
|
|
28
|
+
}
|
|
29
|
+
`);
|
|
30
|
+
const resetUserPasswordMutation = graphql(`
|
|
31
|
+
mutation ResetUserPassword($input: ResetUserPasswordInput!) {
|
|
32
|
+
resetUserPassword(input: $input) {
|
|
33
|
+
user {
|
|
34
|
+
...PasswordResetDialog_user
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`, [passwordResetDialogUserFragment]);
|
|
23
39
|
/**
|
|
24
40
|
* Dialog for resetting a user's password.
|
|
25
41
|
* Allows admins to set a new password for any user without requiring the current password.
|
|
@@ -33,9 +49,9 @@ const passwordResetSchema = z
|
|
|
33
49
|
*/
|
|
34
50
|
export function PasswordResetDialog({ user, open, onOpenChange, }) {
|
|
35
51
|
const [isSaving, setIsSaving] = useState(false);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
52
|
+
// Unmask the fragment data
|
|
53
|
+
const userData = readFragment(passwordResetDialogUserFragment, user);
|
|
54
|
+
const [resetUserPassword] = useMutation(resetUserPasswordMutation);
|
|
39
55
|
const form = useForm({
|
|
40
56
|
resolver: zodResolver(passwordResetSchema),
|
|
41
57
|
defaultValues: {
|
|
@@ -49,7 +65,7 @@ export function PasswordResetDialog({ user, open, onOpenChange, }) {
|
|
|
49
65
|
await resetUserPassword({
|
|
50
66
|
variables: {
|
|
51
67
|
input: {
|
|
52
|
-
userId:
|
|
68
|
+
userId: userData.id,
|
|
53
69
|
newPassword: data.newPassword,
|
|
54
70
|
},
|
|
55
71
|
},
|
|
@@ -65,7 +81,7 @@ export function PasswordResetDialog({ user, open, onOpenChange, }) {
|
|
|
65
81
|
setIsSaving(false);
|
|
66
82
|
}
|
|
67
83
|
};
|
|
68
|
-
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Reset Password" }), _jsxs(DialogDescription, { children: ["Set a new password for ",
|
|
84
|
+
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Reset Password" }), _jsxs(DialogDescription, { children: ["Set a new password for ", userData.name ?? userData.email] })] }), _jsxs("form", { onSubmit: form.handleSubmit(handleSubmit), children: [_jsxs("div", { className: "space-y-4 py-4", children: [_jsx(InputFieldController, { control: form.control, name: "newPassword", label: "New Password", type: "password", placeholder: "Enter new password", description: `Must be at least ${PASSWORD_MIN_LENGTH} characters`, autoComplete: "off" }), _jsx(InputFieldController, { control: form.control, name: "confirmPassword", label: "Confirm Password", type: "password", placeholder: "Confirm new password", autoComplete: "off" })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "outline", onClick: () => {
|
|
69
85
|
onOpenChange(false);
|
|
70
86
|
form.reset();
|
|
71
87
|
}, children: "Cancel" }), _jsx(Button, { type: "submit", disabled: isSaving, children: "Reset Password" })] })] })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset-dialog.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx"],"names":[],"mappings":";AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"password-reset-dialog.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { FragmentOf } from '%graphqlImports';
|
|
4
4
|
import type { ReactElement } from 'react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
GetUsersDocument,
|
|
8
|
-
ResetUserPasswordDocument,
|
|
9
|
-
} from '%generatedGraphqlImports';
|
|
6
|
+
import { graphql, readFragment } from '%graphqlImports';
|
|
10
7
|
import {
|
|
11
8
|
Button,
|
|
12
9
|
Dialog,
|
|
@@ -44,8 +41,29 @@ const passwordResetSchema = z
|
|
|
44
41
|
|
|
45
42
|
type PasswordResetFormData = z.infer<typeof passwordResetSchema>;
|
|
46
43
|
|
|
44
|
+
export const passwordResetDialogUserFragment = graphql(`
|
|
45
|
+
fragment PasswordResetDialog_user on User {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
email
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
|
|
52
|
+
const resetUserPasswordMutation = graphql(
|
|
53
|
+
`
|
|
54
|
+
mutation ResetUserPassword($input: ResetUserPasswordInput!) {
|
|
55
|
+
resetUserPassword(input: $input) {
|
|
56
|
+
user {
|
|
57
|
+
...PasswordResetDialog_user
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`,
|
|
62
|
+
[passwordResetDialogUserFragment],
|
|
63
|
+
);
|
|
64
|
+
|
|
47
65
|
interface PasswordResetDialogProps {
|
|
48
|
-
user:
|
|
66
|
+
user: FragmentOf<typeof passwordResetDialogUserFragment>;
|
|
49
67
|
open: boolean;
|
|
50
68
|
onOpenChange: (open: boolean) => void;
|
|
51
69
|
}
|
|
@@ -68,9 +86,10 @@ export function PasswordResetDialog({
|
|
|
68
86
|
}: PasswordResetDialogProps): ReactElement {
|
|
69
87
|
const [isSaving, setIsSaving] = useState(false);
|
|
70
88
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
89
|
+
// Unmask the fragment data
|
|
90
|
+
const userData = readFragment(passwordResetDialogUserFragment, user);
|
|
91
|
+
|
|
92
|
+
const [resetUserPassword] = useMutation(resetUserPasswordMutation);
|
|
74
93
|
|
|
75
94
|
const form = useForm<PasswordResetFormData>({
|
|
76
95
|
resolver: zodResolver(passwordResetSchema),
|
|
@@ -86,7 +105,7 @@ export function PasswordResetDialog({
|
|
|
86
105
|
await resetUserPassword({
|
|
87
106
|
variables: {
|
|
88
107
|
input: {
|
|
89
|
-
userId:
|
|
108
|
+
userId: userData.id,
|
|
90
109
|
newPassword: data.newPassword,
|
|
91
110
|
},
|
|
92
111
|
},
|
|
@@ -107,7 +126,7 @@ export function PasswordResetDialog({
|
|
|
107
126
|
<DialogHeader>
|
|
108
127
|
<DialogTitle>Reset Password</DialogTitle>
|
|
109
128
|
<DialogDescription>
|
|
110
|
-
Set a new password for {
|
|
129
|
+
Set a new password for {userData.name ?? userData.email}
|
|
111
130
|
</DialogDescription>
|
|
112
131
|
</DialogHeader>
|
|
113
132
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-roles-column.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"admin-crud-roles-column.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CxC,CAAC"}
|
|
@@ -22,10 +22,7 @@ export const adminCrudRolesColumnGenerator = createGenerator({
|
|
|
22
22
|
adminCrudColumnContainer.addColumn({
|
|
23
23
|
label,
|
|
24
24
|
order,
|
|
25
|
-
|
|
26
|
-
content: (itemName) => tsTemplateWithImports([
|
|
27
|
-
reactComponentsImports.Badge.declaration(),
|
|
28
|
-
]) `
|
|
25
|
+
content: (itemName) => tsTemplateWithImports([reactComponentsImports.Badge.declaration()]) `
|
|
29
26
|
<div className="flex flex-wrap gap-1">
|
|
30
27
|
{${itemName}.roles.map((userRole) => (
|
|
31
28
|
<Badge
|
|
@@ -42,13 +39,12 @@ export const adminCrudRolesColumnGenerator = createGenerator({
|
|
|
42
39
|
)}
|
|
43
40
|
</div>
|
|
44
41
|
`,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
42
|
+
graphQLFields: [
|
|
43
|
+
{
|
|
44
|
+
name: 'roles',
|
|
45
|
+
fields: [{ name: 'role' }],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
52
48
|
});
|
|
53
49
|
return {};
|
|
54
50
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-roles-column.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EACL,gCAAgC,EAChC,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;IAC3D,IAAI,EAAE,0CAA0C;IAChD,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE;IAC9C,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACjC,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,wBAAwB,EAAE,gCAAgC;gBAC1D,sBAAsB,EAAE,8BAA8B;aACvD;YACD,GAAG,CAAC,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;gBACtD,wBAAwB,CAAC,SAAS,CAAC;oBACjC,KAAK;oBACL,KAAK;oBACL,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"admin-crud-roles-column.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EACL,gCAAgC,EAChC,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;IAC3D,IAAI,EAAE,0CAA0C;IAChD,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE;IAC9C,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACjC,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,wBAAwB,EAAE,gCAAgC;gBAC1D,sBAAsB,EAAE,8BAA8B;aACvD;YACD,GAAG,CAAC,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;gBACtD,wBAAwB,CAAC,SAAS,CAAC;oBACjC,KAAK;oBACL,KAAK;oBACL,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CACpB,qBAAqB,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;;qBAE1D,QAAQ;;;;;;;;qBAQR,QAAQ;;;;;;eAMd;oBACL,aAAa,EAAE;wBACb;4BACE,IAAI,EAAE,OAAO;4BACb,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yBAC3B;qBACF;iBACF,CAAC,CAAC;gBACH,OAAO,EAAE,CAAC;YACZ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,oCAAoC,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,oCAAoC,CAAC;;;;;;AA2D5C,wBAqBG"}
|
|
@@ -17,12 +17,10 @@ function buildRolesColumnCompiler() {
|
|
|
17
17
|
function buildManageRolesActionCompiler(authConfig) {
|
|
18
18
|
return {
|
|
19
19
|
name: 'manage-roles',
|
|
20
|
-
compileAction(definition, { order,
|
|
21
|
-
const userModelName = definitionContainer.nameFromId(model.id);
|
|
20
|
+
compileAction(definition, { order, definitionContainer }) {
|
|
22
21
|
return adminCrudManageRolesActionGenerator({
|
|
23
22
|
order,
|
|
24
23
|
position: definition.position,
|
|
25
|
-
userModelName,
|
|
26
24
|
availableRoles: authConfig
|
|
27
25
|
.getAuthRoles(definitionContainer.definition)
|
|
28
26
|
.filter((r) => !r.builtIn),
|
|
@@ -33,12 +31,10 @@ function buildManageRolesActionCompiler(authConfig) {
|
|
|
33
31
|
function buildResetPasswordActionCompiler() {
|
|
34
32
|
return {
|
|
35
33
|
name: 'reset-password',
|
|
36
|
-
compileAction(definition, { order
|
|
37
|
-
const userModelName = definitionContainer.nameFromId(model.id);
|
|
34
|
+
compileAction(definition, { order }) {
|
|
38
35
|
return adminCrudResetPasswordActionGenerator({
|
|
39
36
|
order,
|
|
40
37
|
position: definition.position,
|
|
41
|
-
userModelName,
|
|
42
38
|
});
|
|
43
39
|
},
|
|
44
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,GAC3B,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,CACrC,UAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,aAAa,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/local-auth/admin/node.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,GAC3B,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,CACrC,UAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,aAAa,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;YACtD,OAAO,mCAAmC,CAAC;gBACzC,KAAK;gBACL,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,cAAc,EAAE,UAAU;qBACvB,YAAY,CAAC,mBAAmB,CAAC,UAAU,CAAC;qBAC5C,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;aAC7B,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,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,uBAAuB,EAAE,2BAA2B;QACpD,uBAAuB,EAAE,2BAA2B;QACpD,UAAU,EAAE,cAAc;KAC3B;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EACX,uBAAuB,EACvB,UAAU,EACV,uBAAuB,GACxB,EAAE,EAAE;QACH,uBAAuB,CAAC,gBAAgB,CACtC,8BAA8B,CAAC,UAAU,CAAC,CAC3C,CAAC;QACF,uBAAuB,CAAC,gBAAgB,CACtC,gCAAgC,EAAE,CACnC,CAAC;QACF,uBAAuB,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,CAAC,CAAC;QACrE,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -14,7 +14,6 @@ export declare const authHooksGenerator: import("@baseplate-dev/sync").Generator
|
|
|
14
14
|
SessionData: {
|
|
15
15
|
isTypeOnly: true;
|
|
16
16
|
};
|
|
17
|
-
useCurrentUser: {};
|
|
18
17
|
useLogOut: {};
|
|
19
18
|
useRequiredUserId: {};
|
|
20
19
|
useSession: {};
|
|
@@ -31,8 +30,18 @@ export declare const authHooksGenerator: import("@baseplate-dev/sync").Generator
|
|
|
31
30
|
renderers: import("@baseplate-dev/sync").GeneratorTask<{
|
|
32
31
|
localAuthCoreAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").LocalAuthCoreAuthHooksRenderers>;
|
|
33
32
|
}, {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
34
|
+
graphql: {};
|
|
35
|
+
readFragment: {};
|
|
36
|
+
FragmentOf: {
|
|
37
|
+
isTypeOnly: true;
|
|
38
|
+
};
|
|
39
|
+
ResultOf: {
|
|
40
|
+
isTypeOnly: true;
|
|
41
|
+
};
|
|
42
|
+
VariablesOf: {
|
|
43
|
+
isTypeOnly: true;
|
|
44
|
+
};
|
|
36
45
|
}>>;
|
|
37
46
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthHooksPaths>;
|
|
38
47
|
reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oCAAoC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEnG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,4BAA4B;IAClC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-hooks/auth-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oCAAoC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEnG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,4BAA4B;IAClC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBACvD,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_GENERATED: {
|
|
|
5
5
|
SessionData: {
|
|
6
6
|
isTypeOnly: true;
|
|
7
7
|
};
|
|
8
|
-
useCurrentUser: {};
|
|
9
8
|
useLogOut: {};
|
|
10
9
|
useRequiredUserId: {};
|
|
11
10
|
useSession: {};
|
|
@@ -33,8 +32,18 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_GENERATED: {
|
|
|
33
32
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
34
33
|
localAuthCoreAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").LocalAuthCoreAuthHooksRenderers>;
|
|
35
34
|
}, {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
36
|
+
graphql: {};
|
|
37
|
+
readFragment: {};
|
|
38
|
+
FragmentOf: {
|
|
39
|
+
isTypeOnly: true;
|
|
40
|
+
};
|
|
41
|
+
ResultOf: {
|
|
42
|
+
isTypeOnly: true;
|
|
43
|
+
};
|
|
44
|
+
VariablesOf: {
|
|
45
|
+
isTypeOnly: true;
|
|
46
|
+
};
|
|
38
47
|
}>>;
|
|
39
48
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthHooksPaths>;
|
|
40
49
|
reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -50,21 +59,20 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_GENERATED: {
|
|
|
50
59
|
}, undefined>;
|
|
51
60
|
};
|
|
52
61
|
templates: {
|
|
53
|
-
hooksGqlGroup: {
|
|
54
|
-
useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
|
|
55
|
-
useLogOutGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
|
|
56
|
-
};
|
|
57
62
|
hooksGroup: {
|
|
58
|
-
useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
59
|
-
generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
60
|
-
'*': {};
|
|
61
|
-
}>>;
|
|
62
|
-
}, {
|
|
63
|
-
useSession: {};
|
|
64
|
-
}>;
|
|
65
63
|
useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
65
|
+
graphql: {};
|
|
66
|
+
readFragment: {};
|
|
67
|
+
FragmentOf: {
|
|
68
|
+
isTypeOnly: true;
|
|
69
|
+
};
|
|
70
|
+
ResultOf: {
|
|
71
|
+
isTypeOnly: true;
|
|
72
|
+
};
|
|
73
|
+
VariablesOf: {
|
|
74
|
+
isTypeOnly: true;
|
|
75
|
+
};
|
|
68
76
|
}>>;
|
|
69
77
|
reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
70
78
|
formatError: {};
|
|
@@ -80,8 +88,18 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_GENERATED: {
|
|
|
80
88
|
useSession: {};
|
|
81
89
|
}>;
|
|
82
90
|
useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
92
|
+
graphql: {};
|
|
93
|
+
readFragment: {};
|
|
94
|
+
FragmentOf: {
|
|
95
|
+
isTypeOnly: true;
|
|
96
|
+
};
|
|
97
|
+
ResultOf: {
|
|
98
|
+
isTypeOnly: true;
|
|
99
|
+
};
|
|
100
|
+
VariablesOf: {
|
|
101
|
+
isTypeOnly: true;
|
|
102
|
+
};
|
|
85
103
|
}>>;
|
|
86
104
|
}, Record<never, Record<never, never>>>;
|
|
87
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,2BAA2B;IAC1C,
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AA2BD,eAAO,MAAM,gCAAgC;;;;;;;CAG5C,CAAC"}
|
|
@@ -11,10 +11,7 @@ const localAuthCoreAuthHooksPathsTask = createGeneratorTask({
|
|
|
11
11
|
return {
|
|
12
12
|
providers: {
|
|
13
13
|
localAuthCoreAuthHooksPaths: {
|
|
14
|
-
useCurrentUser: `${srcRoot}/hooks/use-current-user.ts`,
|
|
15
|
-
useCurrentUserGql: `${srcRoot}/hooks/use-current-user.gql`,
|
|
16
14
|
useLogOut: `${srcRoot}/hooks/use-log-out.ts`,
|
|
17
|
-
useLogOutGql: `${srcRoot}/hooks/use-log-out.gql`,
|
|
18
15
|
useRequiredUserId: `${srcRoot}/hooks/use-user-id-or-throw.ts`,
|
|
19
16
|
useSession: `${srcRoot}/hooks/use-session.ts`,
|
|
20
17
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,MAAM,2BAA2B,GAC/B,kBAAkB,CAChB,kCAAkC,CACnC,CAAC;AAEJ,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IAC1D,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,2BAA2B,EAAE,2BAA2B,CAAC,MAAM,EAAE;KAClE;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,2BAA2B,EAAE;oBAC3B,SAAS,EAAE,GAAG,OAAO,uBAAuB;oBAC5C,iBAAiB,EAAE,GAAG,OAAO,gCAAgC;oBAC7D,UAAU,EAAE,GAAG,OAAO,uBAAuB;iBAC9C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,+BAA+B;CACtC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
|
|
2
2
|
import type { BuilderAction } from '@baseplate-dev/sync';
|
|
3
3
|
import { LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES } from './typed-templates.js';
|
|
4
4
|
export interface LocalAuthCoreAuthHooksRenderers {
|
|
5
|
-
hooksGqlGroup: {
|
|
6
|
-
render: (options: Omit<RenderTextTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGqlGroup>, 'group' | 'paths'>) => BuilderAction;
|
|
7
|
-
};
|
|
8
5
|
hooksGroup: {
|
|
9
6
|
render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES.hooksGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
|
|
10
7
|
};
|
|
@@ -14,8 +11,18 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_RENDERERS: {
|
|
|
14
11
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
15
12
|
localAuthCoreAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<LocalAuthCoreAuthHooksRenderers>;
|
|
16
13
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
|
+
graphql: {};
|
|
16
|
+
readFragment: {};
|
|
17
|
+
FragmentOf: {
|
|
18
|
+
isTypeOnly: true;
|
|
19
|
+
};
|
|
20
|
+
ResultOf: {
|
|
21
|
+
isTypeOnly: true;
|
|
22
|
+
};
|
|
23
|
+
VariablesOf: {
|
|
24
|
+
isTypeOnly: true;
|
|
25
|
+
};
|
|
19
26
|
}>>;
|
|
20
27
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthHooksPaths>;
|
|
21
28
|
reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAYzD,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAC;AAE5E,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,oCAAoC,CAAC,UAAU,CACvD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAgDD,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhD,CAAC"}
|