@baseplate-dev/plugin-auth 0.6.18 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +31 -0
- package/dist/better-auth/core/node.js +7 -8
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +31 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +186 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +310 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +65 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +10 -7
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +8 -11
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +40 -13
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +6 -5
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +40 -16
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +11 -8
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +17 -13
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +25 -13
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +19 -7
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -26
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +48 -7
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +7 -3
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +28 -7
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -14
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +7 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +23 -17
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +25 -18
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +249 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +310 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +12 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +14 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +78 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +32 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +90 -12
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +48 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
- package/dist/local-auth/core/node.js +7 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +14 -14
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +198 -66
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +1 -1
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +2517 -1545
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +2 -2
- package/dist/web/assets/auth-DR6QxrAW.js +1 -0
- package/dist/web/assets/{common-CoLuMS7U.js → common-BsyRiQi3.js} +6 -6
- package/dist/web/assets/{common-N3skPbzk.js → common-CRwNlCMn.js} +10 -10
- package/dist/web/assets/{common-Co5lW_TK.js → common-CvqlRZC9.js} +12 -12
- package/dist/web/assets/{common-C8_sC5pp.js → common-D3atSs7O.js} +15 -15
- package/dist/web/assets/common-DuFyXa6l.js +36 -0
- package/dist/web/assets/common-islduJTj.js +43 -0
- package/dist/web/assets/{get-auth-plugin-definition-DyokUVjX.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
- package/dist/web/assets/{hostInit-BCYmw0H5.js → hostInit-DNA4kLRY.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-0-3ede9334.js → mf-entry-bootstrap-0-ea77c09b.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-1-3da85eea.js → mf-entry-bootstrap-1-9dee3d8d.js} +2 -2
- package/dist/web/assets/{mf-entry-bootstrap-2-32e24e11.js → mf-entry-bootstrap-2-3179040b.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-3-a3cfea9d.js → mf-entry-bootstrap-3-370d200d.js} +2 -2
- package/dist/web/assets/{models-BcPOQC5p.js → models-BOeSYfRn.js} +4 -4
- package/dist/web/assets/{models-BcUgOGGn.js → models-DF6DoXt6.js} +4 -4
- package/dist/web/assets/{plugin-definition-D1EImXIf.js → plugin-definition--k0VAeK3.js} +9 -9
- package/dist/web/assets/{plugin-definition-lw-gB4hU.js → plugin-definition-CMwSlxsJ.js} +3 -3
- package/dist/web/assets/{styles-EOyEbGA4.js → styles-BQEcQHoR.js} +8 -8
- package/dist/web/assets/{virtualExposes-DWORnjyA.js → virtualExposes-C7fDiAmS.js} +1 -1
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js} +3 -3
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
- package/dist/web/assets/{web-kaD9AzNS.js → web-8wz0ad-V.js} +8 -8
- package/dist/web/assets/{web-EDeSquSP.js → web-BGixH_gT.js} +19 -19
- package/dist/web/assets/{web-PqAcfBSy.js → web-BxIwkN3O.js} +7 -7
- package/dist/web/assets/{web-CBVepebK.js → web-CQMfABjr.js} +19 -19
- package/dist/web/assets/{web-RhChfBw_.js → web-CcNpItSu.js} +17 -17
- package/dist/web/assets/{web-xJ-GnSkC.js → web-CypPeiVv.js} +25 -25
- package/dist/web/assets/{web-Dgb85jhs.js → web-CzK_la2_.js} +41 -41
- package/dist/web/index.html +4 -4
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +12 -12
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
- package/dist/web/assets/auth-CsHp2bQi.js +0 -1
- package/dist/web/assets/common-BGTuTgx7.js +0 -43
- package/dist/web/assets/common-Dueu_1NG.js +0 -36
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
CardHeader,
|
|
12
12
|
CardTitle,
|
|
13
13
|
InputFieldController,
|
|
14
|
+
toast,
|
|
14
15
|
} from '%reactComponentsImports';
|
|
15
16
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
16
17
|
import { userSessionClient } from '%reactSessionImports';
|
|
@@ -24,7 +25,6 @@ import {
|
|
|
24
25
|
} from '@tanstack/react-router';
|
|
25
26
|
import { useCallback, useEffect, useState } from 'react';
|
|
26
27
|
import { useForm } from 'react-hook-form';
|
|
27
|
-
import { toast } from 'sonner';
|
|
28
28
|
import { z } from 'zod';
|
|
29
29
|
|
|
30
30
|
export const Route = createFileRoute('/auth_/accept-invite')({
|
|
@@ -73,6 +73,7 @@ const acceptInviteMutation = graphql(`
|
|
|
73
73
|
acceptInvite(input: $input) {
|
|
74
74
|
session {
|
|
75
75
|
userId
|
|
76
|
+
roles
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -145,18 +146,27 @@ function AcceptInvitePage(): React.JSX.Element {
|
|
|
145
146
|
if (!data) {
|
|
146
147
|
throw new Error('No data returned from accept invite mutation');
|
|
147
148
|
}
|
|
148
|
-
const { userId } = data.acceptInvite.session;
|
|
149
|
-
userSessionClient.signIn(userId);
|
|
149
|
+
const { userId, roles } = data.acceptInvite.session;
|
|
150
|
+
userSessionClient.signIn(userId, roles);
|
|
150
151
|
|
|
151
152
|
navigate({ to: '/', replace: true }).catch(logError);
|
|
152
153
|
})
|
|
153
154
|
.catch((err: unknown) => {
|
|
154
|
-
const errorCode = getApolloErrorCode(err, [
|
|
155
|
+
const errorCode = getApolloErrorCode(err, [
|
|
156
|
+
'invalid-token',
|
|
157
|
+
'user-already-has-account',
|
|
158
|
+
] as const);
|
|
155
159
|
switch (errorCode) {
|
|
156
160
|
case 'invalid-token': {
|
|
157
161
|
setTokenValid(false);
|
|
158
162
|
break;
|
|
159
163
|
}
|
|
164
|
+
case 'user-already-has-account': {
|
|
165
|
+
toast.error(
|
|
166
|
+
'You already have a password set. Please sign in instead.',
|
|
167
|
+
);
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
160
170
|
case null: {
|
|
161
171
|
toast.error(
|
|
162
172
|
logAndFormatError(err, 'Sorry, we could not accept your invite.'),
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js
CHANGED
|
@@ -2,14 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { PASSWORD_MAX_LENGTH } from '$constants';
|
|
4
4
|
import { graphql } from '%graphqlImports';
|
|
5
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
|
|
5
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, toast, } from '%reactComponentsImports';
|
|
6
6
|
import { logAndFormatError } from '%reactErrorImports';
|
|
7
7
|
import { useMutation } from '@apollo/client/react';
|
|
8
8
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
9
9
|
import { createFileRoute, Link, redirect } from '@tanstack/react-router';
|
|
10
10
|
import { useState } from 'react';
|
|
11
11
|
import { useForm } from 'react-hook-form';
|
|
12
|
-
import { toast } from 'sonner';
|
|
13
12
|
import { z } from 'zod';
|
|
14
13
|
export const Route = createFileRoute('/auth_/forgot-password')({
|
|
15
14
|
component: ForgotPasswordPage,
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle,
|
|
12
12
|
InputFieldController,
|
|
13
|
+
toast,
|
|
13
14
|
} from '%reactComponentsImports';
|
|
14
15
|
import { logAndFormatError } from '%reactErrorImports';
|
|
15
16
|
import { useMutation } from '@apollo/client/react';
|
|
@@ -17,7 +18,6 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
17
18
|
import { createFileRoute, Link, redirect } from '@tanstack/react-router';
|
|
18
19
|
import { useState } from 'react';
|
|
19
20
|
import { useForm } from 'react-hook-form';
|
|
20
|
-
import { toast } from 'sonner';
|
|
21
21
|
import { z } from 'zod';
|
|
22
22
|
|
|
23
23
|
export const Route = createFileRoute('/auth_/forgot-password')({
|
|
@@ -3,7 +3,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { EMAIL_OTP_LENGTH, EMAIL_OTP_RESEND_COOLDOWN_SEC } from '$otpConstants';
|
|
4
4
|
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
5
5
|
import { graphql } from '%graphqlImports';
|
|
6
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, InputOtpFieldController, } from '%reactComponentsImports';
|
|
6
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, InputOtpFieldController, toast, } from '%reactComponentsImports';
|
|
7
7
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
8
8
|
import { userSessionClient } from '%reactSessionImports';
|
|
9
9
|
import { useMutation } from '@apollo/client/react';
|
|
@@ -11,7 +11,6 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
11
11
|
import { createFileRoute, Link, redirect, useNavigate, } from '@tanstack/react-router';
|
|
12
12
|
import { useEffect, useState } from 'react';
|
|
13
13
|
import { useForm } from 'react-hook-form';
|
|
14
|
-
import { toast } from 'sonner';
|
|
15
14
|
import { z } from 'zod';
|
|
16
15
|
export const Route = createFileRoute('/auth_/login-otp')({
|
|
17
16
|
validateSearch: z.object({
|
|
@@ -50,6 +49,7 @@ const signInWithEmailOtpMutation = graphql(`
|
|
|
50
49
|
signInWithEmailOtp(input: $input) {
|
|
51
50
|
session {
|
|
52
51
|
userId
|
|
52
|
+
roles
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -127,8 +127,8 @@ function LoginOtpPage() {
|
|
|
127
127
|
if (!data) {
|
|
128
128
|
throw new Error('No data returned from sign-in mutation');
|
|
129
129
|
}
|
|
130
|
-
const { userId } = data.signInWithEmailOtp.session;
|
|
131
|
-
userSessionClient.signIn(userId);
|
|
130
|
+
const { userId, roles } = data.signInWithEmailOtp.session;
|
|
131
|
+
userSessionClient.signIn(userId, roles);
|
|
132
132
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
133
133
|
})
|
|
134
134
|
.catch((err) => {
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
CardTitle,
|
|
13
13
|
InputFieldController,
|
|
14
14
|
InputOtpFieldController,
|
|
15
|
+
toast,
|
|
15
16
|
} from '%reactComponentsImports';
|
|
16
17
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
17
18
|
import { userSessionClient } from '%reactSessionImports';
|
|
@@ -25,7 +26,6 @@ import {
|
|
|
25
26
|
} from '@tanstack/react-router';
|
|
26
27
|
import { useEffect, useState } from 'react';
|
|
27
28
|
import { useForm } from 'react-hook-form';
|
|
28
|
-
import { toast } from 'sonner';
|
|
29
29
|
import { z } from 'zod';
|
|
30
30
|
|
|
31
31
|
export const Route = createFileRoute('/auth_/login-otp')({
|
|
@@ -72,6 +72,7 @@ const signInWithEmailOtpMutation = graphql(`
|
|
|
72
72
|
signInWithEmailOtp(input: $input) {
|
|
73
73
|
session {
|
|
74
74
|
userId
|
|
75
|
+
roles
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
@@ -163,8 +164,8 @@ function LoginOtpPage(): React.JSX.Element {
|
|
|
163
164
|
if (!data) {
|
|
164
165
|
throw new Error('No data returned from sign-in mutation');
|
|
165
166
|
}
|
|
166
|
-
const { userId } = data.signInWithEmailOtp.session;
|
|
167
|
-
userSessionClient.signIn(userId);
|
|
167
|
+
const { userId, roles } = data.signInWithEmailOtp.session;
|
|
168
|
+
userSessionClient.signIn(userId, roles);
|
|
168
169
|
|
|
169
170
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
170
171
|
})
|
|
@@ -3,14 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
|
|
4
4
|
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
5
5
|
import { graphql } from '%graphqlImports';
|
|
6
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
|
|
6
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, toast, } from '%reactComponentsImports';
|
|
7
7
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
8
8
|
import { userSessionClient } from '%reactSessionImports';
|
|
9
9
|
import { useMutation } from '@apollo/client/react';
|
|
10
10
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
11
11
|
import { createFileRoute, Link, redirect, useNavigate, } from '@tanstack/react-router';
|
|
12
12
|
import { useForm } from 'react-hook-form';
|
|
13
|
-
import { toast } from 'sonner';
|
|
14
13
|
import { z } from 'zod';
|
|
15
14
|
export const Route = createFileRoute('/auth_/login')({
|
|
16
15
|
validateSearch: z.object({
|
|
@@ -40,6 +39,7 @@ const loginWithEmailPasswordMutation = graphql(`
|
|
|
40
39
|
loginWithEmailPassword(input: $input) {
|
|
41
40
|
session {
|
|
42
41
|
userId
|
|
42
|
+
roles
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -65,8 +65,8 @@ function LoginPage() {
|
|
|
65
65
|
if (!data) {
|
|
66
66
|
throw new Error('No data returned from login mutation');
|
|
67
67
|
}
|
|
68
|
-
const { userId } = data.loginWithEmailPassword.session;
|
|
69
|
-
userSessionClient.signIn(userId);
|
|
68
|
+
const { userId, roles } = data.loginWithEmailPassword.session;
|
|
69
|
+
userSessionClient.signIn(userId, roles);
|
|
70
70
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
71
71
|
})
|
|
72
72
|
.catch((err) => {
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
CardHeader,
|
|
12
12
|
CardTitle,
|
|
13
13
|
InputFieldController,
|
|
14
|
+
toast,
|
|
14
15
|
} from '%reactComponentsImports';
|
|
15
16
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
16
17
|
import { userSessionClient } from '%reactSessionImports';
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
useNavigate,
|
|
24
25
|
} from '@tanstack/react-router';
|
|
25
26
|
import { useForm } from 'react-hook-form';
|
|
26
|
-
import { toast } from 'sonner';
|
|
27
27
|
import { z } from 'zod';
|
|
28
28
|
|
|
29
29
|
export const Route = createFileRoute('/auth_/login')({
|
|
@@ -61,6 +61,7 @@ const loginWithEmailPasswordMutation = graphql(`
|
|
|
61
61
|
loginWithEmailPassword(input: $input) {
|
|
62
62
|
session {
|
|
63
63
|
userId
|
|
64
|
+
roles
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -95,8 +96,8 @@ function LoginPage(): React.JSX.Element {
|
|
|
95
96
|
if (!data) {
|
|
96
97
|
throw new Error('No data returned from login mutation');
|
|
97
98
|
}
|
|
98
|
-
const { userId } = data.loginWithEmailPassword.session;
|
|
99
|
-
userSessionClient.signIn(userId);
|
|
99
|
+
const { userId, roles } = data.loginWithEmailPassword.session;
|
|
100
|
+
userSessionClient.signIn(userId, roles);
|
|
100
101
|
|
|
101
102
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
102
103
|
})
|
|
@@ -2,14 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
4
4
|
import { graphql } from '%graphqlImports';
|
|
5
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
|
|
5
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, toast, } from '%reactComponentsImports';
|
|
6
6
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
7
7
|
import { userSessionClient } from '%reactSessionImports';
|
|
8
8
|
import { useMutation } from '@apollo/client/react';
|
|
9
9
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
10
10
|
import { createFileRoute, Link, redirect, useNavigate, } from '@tanstack/react-router';
|
|
11
11
|
import { useForm } from 'react-hook-form';
|
|
12
|
-
import { toast } from 'sonner';
|
|
13
12
|
import { z } from 'zod';
|
|
14
13
|
export const Route = createFileRoute('/auth_/register')({
|
|
15
14
|
validateSearch: z.object({
|
|
@@ -31,6 +30,7 @@ const registerWithEmailPasswordMutation = graphql(`
|
|
|
31
30
|
registerWithEmailPassword(input: $input) {
|
|
32
31
|
session {
|
|
33
32
|
userId
|
|
33
|
+
roles
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -53,8 +53,8 @@ function RegisterPage() {
|
|
|
53
53
|
if (!data) {
|
|
54
54
|
throw new Error('No data returned from login mutation');
|
|
55
55
|
}
|
|
56
|
-
const { userId } = data.registerWithEmailPassword.session;
|
|
57
|
-
userSessionClient.signIn(userId);
|
|
56
|
+
const { userId, roles } = data.registerWithEmailPassword.session;
|
|
57
|
+
userSessionClient.signIn(userId, roles);
|
|
58
58
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
59
59
|
})
|
|
60
60
|
.catch((err) => {
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle,
|
|
12
12
|
InputFieldController,
|
|
13
|
+
toast,
|
|
13
14
|
} from '%reactComponentsImports';
|
|
14
15
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
15
16
|
import { userSessionClient } from '%reactSessionImports';
|
|
@@ -22,7 +23,6 @@ import {
|
|
|
22
23
|
useNavigate,
|
|
23
24
|
} from '@tanstack/react-router';
|
|
24
25
|
import { useForm } from 'react-hook-form';
|
|
25
|
-
import { toast } from 'sonner';
|
|
26
26
|
import { z } from 'zod';
|
|
27
27
|
|
|
28
28
|
export const Route = createFileRoute('/auth_/register')({
|
|
@@ -49,6 +49,7 @@ const registerWithEmailPasswordMutation = graphql(`
|
|
|
49
49
|
registerWithEmailPassword(input: $input) {
|
|
50
50
|
session {
|
|
51
51
|
userId
|
|
52
|
+
roles
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -79,8 +80,8 @@ function RegisterPage(): React.JSX.Element {
|
|
|
79
80
|
if (!data) {
|
|
80
81
|
throw new Error('No data returned from login mutation');
|
|
81
82
|
}
|
|
82
|
-
const { userId } = data.registerWithEmailPassword.session;
|
|
83
|
-
userSessionClient.signIn(userId);
|
|
83
|
+
const { userId, roles } = data.registerWithEmailPassword.session;
|
|
84
|
+
userSessionClient.signIn(userId, roles);
|
|
84
85
|
|
|
85
86
|
navigate({ to: return_to ?? '/', replace: true }).catch(logError);
|
|
86
87
|
})
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js
CHANGED
|
@@ -3,14 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
|
|
4
4
|
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
5
5
|
import { graphql } from '%graphqlImports';
|
|
6
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
|
|
6
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, toast, } from '%reactComponentsImports';
|
|
7
7
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
8
8
|
import { useMutation } from '@apollo/client/react';
|
|
9
9
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
10
10
|
import { createFileRoute, Link, redirect, useNavigate, } from '@tanstack/react-router';
|
|
11
11
|
import { useCallback, useEffect, useState } from 'react';
|
|
12
12
|
import { useForm } from 'react-hook-form';
|
|
13
|
-
import { toast } from 'sonner';
|
|
14
13
|
import { z } from 'zod';
|
|
15
14
|
export const Route = createFileRoute('/auth_/reset-password')({
|
|
16
15
|
validateSearch: z.object({
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
CardHeader,
|
|
12
12
|
CardTitle,
|
|
13
13
|
InputFieldController,
|
|
14
|
+
toast,
|
|
14
15
|
} from '%reactComponentsImports';
|
|
15
16
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
16
17
|
import { useMutation } from '@apollo/client/react';
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
} from '@tanstack/react-router';
|
|
24
25
|
import { useCallback, useEffect, useState } from 'react';
|
|
25
26
|
import { useForm } from 'react-hook-form';
|
|
26
|
-
import { toast } from 'sonner';
|
|
27
27
|
import { z } from 'zod';
|
|
28
28
|
|
|
29
29
|
export const Route = createFileRoute('/auth_/reset-password')({
|
|
@@ -2,12 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
4
4
|
import { graphql } from '%graphqlImports';
|
|
5
|
-
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, } from '%reactComponentsImports';
|
|
5
|
+
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, toast, } from '%reactComponentsImports';
|
|
6
6
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
7
7
|
import { useMutation } from '@apollo/client/react';
|
|
8
8
|
import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router';
|
|
9
9
|
import { useCallback, useEffect, useState } from 'react';
|
|
10
|
-
import { toast } from 'sonner';
|
|
11
10
|
import { z } from 'zod';
|
|
12
11
|
export const Route = createFileRoute('/auth_/verify-email')({
|
|
13
12
|
validateSearch: z.object({
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
CardDescription,
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle,
|
|
12
|
+
toast,
|
|
12
13
|
} from '%reactComponentsImports';
|
|
13
14
|
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
14
15
|
import { useMutation } from '@apollo/client/react';
|
|
15
16
|
import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router';
|
|
16
17
|
import { useCallback, useEffect, useState } from 'react';
|
|
17
|
-
import { toast } from 'sonner';
|
|
18
18
|
import { z } from 'zod';
|
|
19
19
|
|
|
20
20
|
export const Route = createFileRoute('/auth_/verify-email')({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
2
2
|
imports: {
|
|
3
|
+
generatorName: string;
|
|
3
4
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
5
|
reactSessionImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
6
|
UserSessionClient: {};
|
|
@@ -27,8 +28,8 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
27
28
|
isTypeOnly: true;
|
|
28
29
|
};
|
|
29
30
|
useLogOut: {};
|
|
30
|
-
useRequiredUserId: {};
|
|
31
31
|
useSession: {};
|
|
32
|
+
useUserIdOrThrow: {};
|
|
32
33
|
AuthRole: {
|
|
33
34
|
isTypeOnly: true;
|
|
34
35
|
};
|
|
@@ -50,6 +51,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
50
51
|
isTypeOnly: true;
|
|
51
52
|
};
|
|
52
53
|
Alert: {};
|
|
54
|
+
AlertAction: {};
|
|
53
55
|
AlertDescription: {};
|
|
54
56
|
AlertTitle: {};
|
|
55
57
|
Autocomplete: {};
|
|
@@ -79,6 +81,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
79
81
|
buttonVariants: {};
|
|
80
82
|
Calendar: {};
|
|
81
83
|
Card: {};
|
|
84
|
+
CardAction: {};
|
|
82
85
|
CardContent: {};
|
|
83
86
|
CardDescription: {};
|
|
84
87
|
CardFooter: {};
|
|
@@ -205,6 +208,10 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
205
208
|
NotFoundCard: {};
|
|
206
209
|
NumberField: {};
|
|
207
210
|
NumberFieldController: {};
|
|
211
|
+
PageHeader: {};
|
|
212
|
+
PageHeaderActions: {};
|
|
213
|
+
PageHeaderDescription: {};
|
|
214
|
+
PageHeaderTitle: {};
|
|
208
215
|
Popover: {};
|
|
209
216
|
PopoverContent: {};
|
|
210
217
|
PopoverTrigger: {};
|
|
@@ -214,6 +221,11 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
214
221
|
isTypeOnly: true;
|
|
215
222
|
};
|
|
216
223
|
ScrollArea: {};
|
|
224
|
+
Section: {};
|
|
225
|
+
SectionActions: {};
|
|
226
|
+
SectionDescription: {};
|
|
227
|
+
SectionHeader: {};
|
|
228
|
+
SectionTitle: {};
|
|
217
229
|
Select: {};
|
|
218
230
|
SelectField: {};
|
|
219
231
|
SelectFieldController: {};
|
|
@@ -269,7 +281,27 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
269
281
|
Textarea: {};
|
|
270
282
|
TextareaField: {};
|
|
271
283
|
TextareaFieldController: {};
|
|
284
|
+
Toast: {};
|
|
285
|
+
toast: {};
|
|
286
|
+
ToastAction: {};
|
|
287
|
+
ToastClose: {};
|
|
288
|
+
ToastContent: {};
|
|
289
|
+
ToastDescription: {};
|
|
272
290
|
Toaster: {};
|
|
291
|
+
toastManager: {};
|
|
292
|
+
ToastOptions: {
|
|
293
|
+
isTypeOnly: true;
|
|
294
|
+
};
|
|
295
|
+
ToastPortal: {};
|
|
296
|
+
ToastProvider: {};
|
|
297
|
+
ToastTitle: {};
|
|
298
|
+
ToastType: {
|
|
299
|
+
isTypeOnly: true;
|
|
300
|
+
};
|
|
301
|
+
ToastUpdateOptions: {
|
|
302
|
+
isTypeOnly: true;
|
|
303
|
+
};
|
|
304
|
+
ToastViewport: {};
|
|
273
305
|
Tooltip: {};
|
|
274
306
|
TooltipContent: {};
|
|
275
307
|
TooltipProvider: {};
|
|
@@ -299,22 +331,30 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
299
331
|
templates: {
|
|
300
332
|
mainGroup: {
|
|
301
333
|
userSessionClient: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
302
|
-
reactUtilsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
303
|
-
getSafeLocalStorage: {};
|
|
304
|
-
}>>;
|
|
305
|
-
}, Record<never, Record<never, never>>>;
|
|
306
|
-
userSessionProvider: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
307
334
|
authHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
308
335
|
SessionData: {
|
|
309
336
|
isTypeOnly: true;
|
|
310
337
|
};
|
|
311
338
|
useLogOut: {};
|
|
312
|
-
useRequiredUserId: {};
|
|
313
339
|
useSession: {};
|
|
340
|
+
useUserIdOrThrow: {};
|
|
314
341
|
AuthRole: {
|
|
315
342
|
isTypeOnly: true;
|
|
316
343
|
};
|
|
317
344
|
}>>;
|
|
345
|
+
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
346
|
+
'*': {};
|
|
347
|
+
graphql: {};
|
|
348
|
+
readFragment: {};
|
|
349
|
+
FragmentType: {
|
|
350
|
+
isTypeOnly: true;
|
|
351
|
+
};
|
|
352
|
+
}>>;
|
|
353
|
+
reactUtilsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
354
|
+
getSafeLocalStorage: {};
|
|
355
|
+
}>>;
|
|
356
|
+
}, Record<never, Record<never, never>>>;
|
|
357
|
+
userSessionProvider: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
318
358
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
319
359
|
'*': {};
|
|
320
360
|
graphql: {};
|
|
@@ -331,6 +371,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
331
371
|
isTypeOnly: true;
|
|
332
372
|
};
|
|
333
373
|
Alert: {};
|
|
374
|
+
AlertAction: {};
|
|
334
375
|
AlertDescription: {};
|
|
335
376
|
AlertTitle: {};
|
|
336
377
|
Autocomplete: {};
|
|
@@ -360,6 +401,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
360
401
|
buttonVariants: {};
|
|
361
402
|
Calendar: {};
|
|
362
403
|
Card: {};
|
|
404
|
+
CardAction: {};
|
|
363
405
|
CardContent: {};
|
|
364
406
|
CardDescription: {};
|
|
365
407
|
CardFooter: {};
|
|
@@ -486,6 +528,10 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
486
528
|
NotFoundCard: {};
|
|
487
529
|
NumberField: {};
|
|
488
530
|
NumberFieldController: {};
|
|
531
|
+
PageHeader: {};
|
|
532
|
+
PageHeaderActions: {};
|
|
533
|
+
PageHeaderDescription: {};
|
|
534
|
+
PageHeaderTitle: {};
|
|
489
535
|
Popover: {};
|
|
490
536
|
PopoverContent: {};
|
|
491
537
|
PopoverTrigger: {};
|
|
@@ -495,6 +541,11 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
495
541
|
isTypeOnly: true;
|
|
496
542
|
};
|
|
497
543
|
ScrollArea: {};
|
|
544
|
+
Section: {};
|
|
545
|
+
SectionActions: {};
|
|
546
|
+
SectionDescription: {};
|
|
547
|
+
SectionHeader: {};
|
|
548
|
+
SectionTitle: {};
|
|
498
549
|
Select: {};
|
|
499
550
|
SelectField: {};
|
|
500
551
|
SelectFieldController: {};
|
|
@@ -550,7 +601,27 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
550
601
|
Textarea: {};
|
|
551
602
|
TextareaField: {};
|
|
552
603
|
TextareaFieldController: {};
|
|
604
|
+
Toast: {};
|
|
605
|
+
toast: {};
|
|
606
|
+
ToastAction: {};
|
|
607
|
+
ToastClose: {};
|
|
608
|
+
ToastContent: {};
|
|
609
|
+
ToastDescription: {};
|
|
553
610
|
Toaster: {};
|
|
611
|
+
toastManager: {};
|
|
612
|
+
ToastOptions: {
|
|
613
|
+
isTypeOnly: true;
|
|
614
|
+
};
|
|
615
|
+
ToastPortal: {};
|
|
616
|
+
ToastProvider: {};
|
|
617
|
+
ToastTitle: {};
|
|
618
|
+
ToastType: {
|
|
619
|
+
isTypeOnly: true;
|
|
620
|
+
};
|
|
621
|
+
ToastUpdateOptions: {
|
|
622
|
+
isTypeOnly: true;
|
|
623
|
+
};
|
|
624
|
+
ToastViewport: {};
|
|
554
625
|
Tooltip: {};
|
|
555
626
|
TooltipContent: {};
|
|
556
627
|
TooltipProvider: {};
|
|
@@ -16,8 +16,8 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
16
16
|
isTypeOnly: true;
|
|
17
17
|
};
|
|
18
18
|
useLogOut: {};
|
|
19
|
-
useRequiredUserId: {};
|
|
20
19
|
useSession: {};
|
|
20
|
+
useUserIdOrThrow: {};
|
|
21
21
|
AuthRole: {
|
|
22
22
|
isTypeOnly: true;
|
|
23
23
|
};
|
|
@@ -39,6 +39,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
39
39
|
isTypeOnly: true;
|
|
40
40
|
};
|
|
41
41
|
Alert: {};
|
|
42
|
+
AlertAction: {};
|
|
42
43
|
AlertDescription: {};
|
|
43
44
|
AlertTitle: {};
|
|
44
45
|
Autocomplete: {};
|
|
@@ -68,6 +69,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
68
69
|
buttonVariants: {};
|
|
69
70
|
Calendar: {};
|
|
70
71
|
Card: {};
|
|
72
|
+
CardAction: {};
|
|
71
73
|
CardContent: {};
|
|
72
74
|
CardDescription: {};
|
|
73
75
|
CardFooter: {};
|
|
@@ -194,6 +196,10 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
194
196
|
NotFoundCard: {};
|
|
195
197
|
NumberField: {};
|
|
196
198
|
NumberFieldController: {};
|
|
199
|
+
PageHeader: {};
|
|
200
|
+
PageHeaderActions: {};
|
|
201
|
+
PageHeaderDescription: {};
|
|
202
|
+
PageHeaderTitle: {};
|
|
197
203
|
Popover: {};
|
|
198
204
|
PopoverContent: {};
|
|
199
205
|
PopoverTrigger: {};
|
|
@@ -203,6 +209,11 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
203
209
|
isTypeOnly: true;
|
|
204
210
|
};
|
|
205
211
|
ScrollArea: {};
|
|
212
|
+
Section: {};
|
|
213
|
+
SectionActions: {};
|
|
214
|
+
SectionDescription: {};
|
|
215
|
+
SectionHeader: {};
|
|
216
|
+
SectionTitle: {};
|
|
206
217
|
Select: {};
|
|
207
218
|
SelectField: {};
|
|
208
219
|
SelectFieldController: {};
|
|
@@ -258,7 +269,27 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
258
269
|
Textarea: {};
|
|
259
270
|
TextareaField: {};
|
|
260
271
|
TextareaFieldController: {};
|
|
272
|
+
Toast: {};
|
|
273
|
+
toast: {};
|
|
274
|
+
ToastAction: {};
|
|
275
|
+
ToastClose: {};
|
|
276
|
+
ToastContent: {};
|
|
277
|
+
ToastDescription: {};
|
|
261
278
|
Toaster: {};
|
|
279
|
+
toastManager: {};
|
|
280
|
+
ToastOptions: {
|
|
281
|
+
isTypeOnly: true;
|
|
282
|
+
};
|
|
283
|
+
ToastPortal: {};
|
|
284
|
+
ToastProvider: {};
|
|
285
|
+
ToastTitle: {};
|
|
286
|
+
ToastType: {
|
|
287
|
+
isTypeOnly: true;
|
|
288
|
+
};
|
|
289
|
+
ToastUpdateOptions: {
|
|
290
|
+
isTypeOnly: true;
|
|
291
|
+
};
|
|
292
|
+
ToastViewport: {};
|
|
262
293
|
Tooltip: {};
|
|
263
294
|
TooltipContent: {};
|
|
264
295
|
TooltipProvider: {};
|
|
@@ -9,6 +9,7 @@ export declare const reactSessionImportsProvider: import("@baseplate-dev/sync").
|
|
|
9
9
|
userSessionClient: {};
|
|
10
10
|
}>>;
|
|
11
11
|
export declare const LOCAL_AUTH_CORE_REACT_SESSION_IMPORTS: {
|
|
12
|
+
generatorName: string;
|
|
12
13
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
13
14
|
reactSessionImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
14
15
|
UserSessionClient: {};
|
|
@@ -25,6 +25,7 @@ const localAuthCoreReactSessionImportsTask = createGeneratorTask({
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
export const LOCAL_AUTH_CORE_REACT_SESSION_IMPORTS = {
|
|
28
|
+
generatorName: '@baseplate-dev/plugin-auth#local-auth/core/react-session',
|
|
28
29
|
task: localAuthCoreReactSessionImportsTask,
|
|
29
30
|
};
|
|
30
31
|
//# sourceMappingURL=ts-import-providers.js.map
|