@baseplate-dev/plugin-auth 4.0.3 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +2 -1
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +2 -12
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/schema.d.ts +2 -12
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/schema.js +10 -17
- package/dist/auth/core/schema/roles/schema.js.map +1 -1
- package/dist/auth/plugin.json +1 -1
- package/dist/better-auth/constants/model-names.d.ts +8 -0
- package/dist/better-auth/constants/model-names.d.ts.map +1 -0
- package/dist/better-auth/constants/model-names.js +8 -0
- package/dist/better-auth/constants/model-names.js.map +1 -0
- package/dist/better-auth/constants/packages.d.ts +4 -0
- package/dist/better-auth/constants/packages.d.ts.map +1 -0
- package/dist/better-auth/constants/packages.js +4 -0
- package/dist/better-auth/constants/packages.js.map +1 -0
- package/dist/better-auth/core/common.d.ts.map +1 -0
- package/dist/better-auth/core/common.js +17 -0
- package/dist/better-auth/core/common.js.map +1 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -0
- package/dist/{auth0/core/components/auth0-definition-editor.js → better-auth/core/components/better-auth-definition-editor.js} +17 -17
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -0
- package/dist/better-auth/core/index.d.ts +2 -0
- package/dist/better-auth/core/index.d.ts.map +1 -0
- package/dist/better-auth/core/index.js +2 -0
- package/dist/better-auth/core/index.js.map +1 -0
- package/dist/better-auth/core/node.d.ts.map +1 -0
- package/dist/{auth0 → better-auth}/core/node.js +16 -14
- package/dist/better-auth/core/node.js.map +1 -0
- package/dist/better-auth/core/schema/models.d.ts +3 -0
- package/dist/better-auth/core/schema/models.d.ts.map +1 -0
- package/dist/better-auth/core/schema/models.js +278 -0
- package/dist/better-auth/core/schema/models.js.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.js +4 -0
- package/dist/better-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/better-auth/core/web.d.ts.map +1 -0
- package/dist/{auth0 → better-auth}/core/web.js +2 -2
- package/dist/better-auth/core/web.js.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts → better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts} +20 -26
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +75 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/index.d.ts +41 -26
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.d.ts +16 -10
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.js +35 -16
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +30 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +37 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.d.ts +29 -20
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.js +37 -9
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +31 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/templates/module/schema/user-session.queries.ts +1 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +62 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +72 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
- package/dist/better-auth/generators/fastify/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/index.js +2 -0
- package/dist/better-auth/generators/fastify/index.js.map +1 -0
- package/dist/better-auth/generators/index.d.ts.map +1 -0
- package/dist/better-auth/generators/index.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts} +11 -7
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.js → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js} +8 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/index.d.ts +21 -8
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/template-paths.js +9 -7
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.d.ts +2 -2
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.js +5 -5
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.d.ts +21 -3
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.js +7 -3
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +18 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +30 -0
- package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts} +15 -6
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.js → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js} +7 -7
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts +246 -6
- package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts.map +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -0
- package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/better-auth-pages}/generated/template-renderers.d.ts +13 -9
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +895 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +35 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/login.tsx +146 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/register.tsx +162 -0
- package/dist/better-auth/generators/react/index.d.ts +4 -0
- package/dist/better-auth/generators/react/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/index.js +4 -0
- package/dist/better-auth/generators/react/index.js.map +1 -0
- package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts +42 -7
- package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts.map +1 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/react-better-auth}/generated/template-renderers.d.ts +28 -9
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/typed-templates.d.ts +16 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +1 -0
- package/dist/{auth0/generators/react/react-auth0/react-auth0.generator.d.ts → better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts} +28 -25
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +58 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +15 -0
- package/dist/better-auth/index.d.ts +3 -0
- package/dist/better-auth/index.d.ts.map +1 -0
- package/dist/better-auth/index.js +2 -0
- package/dist/better-auth/index.js.map +1 -0
- package/dist/better-auth/plugin.json +9 -0
- package/dist/better-auth/static/icon.svg +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js +11 -11
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +4 -4
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +6 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -2
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +14 -3
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- 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 +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
- 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 +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +34 -15
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +58 -15
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +8 -6
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts +2 -4
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +254 -252
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +11 -11
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -4
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +30 -28
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-Bg2mzE9K.js → __federation_expose_authCoreCommon-CIVhaGqo.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-Bg2mzE9K.js.map → __federation_expose_authCoreCommon-CIVhaGqo.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-DrOVHmj4.js → __federation_expose_authCoreWeb-N-mh42Bs.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-DrOVHmj4.js.map → __federation_expose_authCoreWeb-N-mh42Bs.js.map} +1 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js +20 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js +402 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-Bzb0P17-.js → __federation_expose_local-authAdminCommon-DvHe9w29.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-Bzb0P17-.js.map → __federation_expose_local-authAdminCommon-DvHe9w29.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-D_LWcl7j.js → __federation_expose_local-authAdminWeb-CLU9aEy9.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-D_LWcl7j.js.map → __federation_expose_local-authAdminWeb-CLU9aEy9.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-D6OG-Rz6.js → __federation_expose_local-authCoreCommon-DbuvGG7o.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-D6OG-Rz6.js.map → __federation_expose_local-authCoreCommon-DbuvGG7o.js.map} +1 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js +432 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-D7b3GEPP.js → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-D7b3GEPP.js.map → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-VZzvid5j.js → __federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js} +61 -53
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-DfNliZHH.js → __federation_fn_import-BLFDCY-V.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-DfNliZHH.js.map → __federation_fn_import-BLFDCY-V.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BqJ1vSYx.js → web-bRU6KpPk.js} +48 -26
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-qf98MMJC.js → project-builder-lib-CQKLkNsU.js} +5705 -1957
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-DFkMnXmX.js → ui-components-DhyoEUTy.js} +5886 -1191
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CApJheqk.js → utils-9w-0yxVZ.js} +64 -45
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-YQslfDyE.js → react-router-CbExBaoL.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-YQslfDyE.js.map → react-router-CbExBaoL.js.map} +1 -1
- package/dist/web/assets/{__federation_shared_zod-B6wbpZ4f.js → __federation_shared_zod-Do7Aa1b5.js} +3431 -2188
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-CVuj_mvy.js → get-auth-plugin-definition-BL50g0cJ.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-CVuj_mvy.js.map → get-auth-plugin-definition-BL50g0cJ.js.map} +1 -1
- package/dist/web/assets/{index-B00D4irM.js → index-B_A3cgiy.js} +2 -2
- package/dist/web/assets/{index-B00D4irM.js.map → index-B_A3cgiy.js.map} +1 -1
- package/dist/web/assets/{index.esm-1qBxxnfu.js → index.esm-BraHxHLB.js} +338 -231
- package/dist/web/assets/index.esm-BraHxHLB.js.map +1 -0
- package/dist/web/assets/{isEqual-BQtm2LNT.js → isEqual-tnzoadW8.js} +18 -18
- package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
- package/dist/web/assets/model-utils-BfcjfzCn.js +694 -0
- package/dist/web/assets/model-utils-BfcjfzCn.js.map +1 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js +20 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js.map +1 -0
- package/dist/web/assets/{plugin-definition-CcdhC0td.js → plugin-definition-Ckl5hjD1.js} +2 -2
- package/dist/web/assets/{plugin-definition-CcdhC0td.js.map → plugin-definition-Ckl5hjD1.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-B_hlyPlm.js → plugin-definition-D26rR8AB.js} +2 -2
- package/dist/web/assets/{plugin-definition-B_hlyPlm.js.map → plugin-definition-D26rR8AB.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-BKCeZ0Ni.js → plugin-definition-DJzXScRp.js} +12 -19
- package/dist/web/assets/plugin-definition-DJzXScRp.js.map +1 -0
- package/dist/web/assets/{react-Df9ccuow.js → react-CL9M_wyN.js} +2 -2
- package/dist/web/assets/{react-Df9ccuow.js.map → react-CL9M_wyN.js.map} +1 -1
- package/dist/web/assets/{registries-19UehlAo.js → registries-Tz_dluz3.js} +51 -13
- package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
- package/dist/web/assets/remoteEntry.js +14 -14
- package/dist/web/assets/{styles-CbPVroCT.js → styles-tkrWV-ZE.js} +4 -4
- package/dist/web/assets/{styles-CbPVroCT.js.map → styles-tkrWV-ZE.js.map} +1 -1
- package/package.json +17 -17
- package/dist/auth0/constants/model-names.d.ts +0 -4
- package/dist/auth0/constants/model-names.d.ts.map +0 -1
- package/dist/auth0/constants/model-names.js +0 -4
- package/dist/auth0/constants/model-names.js.map +0 -1
- package/dist/auth0/constants/packages.d.ts +0 -6
- package/dist/auth0/constants/packages.d.ts.map +0 -1
- package/dist/auth0/constants/packages.js +0 -6
- package/dist/auth0/constants/packages.js.map +0 -1
- package/dist/auth0/core/common.d.ts.map +0 -1
- package/dist/auth0/core/common.js +0 -19
- package/dist/auth0/core/common.js.map +0 -1
- package/dist/auth0/core/components/auth0-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth0-definition-editor.js.map +0 -1
- package/dist/auth0/core/node.d.ts.map +0 -1
- package/dist/auth0/core/node.js.map +0 -1
- package/dist/auth0/core/schema/migrations.d.ts +0 -3
- package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
- package/dist/auth0/core/schema/migrations.js +0 -19
- package/dist/auth0/core/schema/migrations.js.map +0 -1
- package/dist/auth0/core/schema/models.d.ts +0 -5
- package/dist/auth0/core/schema/models.d.ts.map +0 -1
- package/dist/auth0/core/schema/models.js +0 -40
- package/dist/auth0/core/schema/models.js.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -5
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.js +0 -4
- package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth0/core/web.d.ts.map +0 -1
- package/dist/auth0/core/web.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -114
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -14
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -24
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
- package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
- package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
- package/dist/auth0/generators/fastify/index.d.ts +0 -2
- package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/index.js +0 -2
- package/dist/auth0/generators/fastify/index.js.map +0 -1
- package/dist/auth0/generators/index.d.ts.map +0 -1
- package/dist/auth0/generators/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
- package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -14
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -23
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -38
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
- package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -36
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
- package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -433
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
- package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
- package/dist/auth0/generators/react/index.d.ts +0 -5
- package/dist/auth0/generators/react/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/index.js +0 -5
- package/dist/auth0/generators/react/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
- package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
- package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/index.js +0 -2
- package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
- package/dist/auth0/plugin.json +0 -9
- package/dist/auth0/static/icon.svg +0 -7
- package/dist/web/assets/__federation_expose_auth0CoreCommon-e_GtBIIm.js +0 -40
- package/dist/web/assets/__federation_expose_auth0CoreCommon-e_GtBIIm.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-CTfPylMw.js +0 -158
- package/dist/web/assets/__federation_expose_auth0CoreWeb-CTfPylMw.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js +0 -424
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-VZzvid5j.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BqJ1vSYx.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-qf98MMJC.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CApJheqk.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js.map +0 -1
- package/dist/web/assets/index.esm-1qBxxnfu.js.map +0 -1
- package/dist/web/assets/isEqual-BQtm2LNT.js.map +0 -1
- package/dist/web/assets/model-merger-59HLmy_J.js +0 -1705
- package/dist/web/assets/model-merger-59HLmy_J.js.map +0 -1
- package/dist/web/assets/plugin-definition-BKCeZ0Ni.js.map +0 -1
- package/dist/web/assets/plugin-definition-Bkx-a_wA.js +0 -16
- package/dist/web/assets/plugin-definition-Bkx-a_wA.js.map +0 -1
- package/dist/web/assets/registries-19UehlAo.js.map +0 -1
- package/dist/web/assets/sortBy-BPH_zRB8.js +0 -34
- package/dist/web/assets/sortBy-BPH_zRB8.js.map +0 -1
- /package/dist/{auth0 → better-auth}/core/common.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/core/node.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/core/web.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
- /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { importShared } from './__federation_fn_import-BLFDCY-V.js';
|
|
2
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
|
|
3
|
+
import { a, A as AuthConfigTabs } from './styles-tkrWV-ZE.js';
|
|
4
|
+
import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-BL50g0cJ.js';
|
|
5
|
+
import { B as BETTER_AUTH_MODELS, c as createBetterAuthPluginDefinitionSchema } from './plugin-definition-CXnKUJ1l.js';
|
|
6
|
+
|
|
7
|
+
function createBetterAuthPartialDefinition(authFeatureName) {
|
|
8
|
+
return {
|
|
9
|
+
models: [
|
|
10
|
+
{
|
|
11
|
+
name: BETTER_AUTH_MODELS.user,
|
|
12
|
+
featureRef: authFeatureName,
|
|
13
|
+
model: {
|
|
14
|
+
fields: [
|
|
15
|
+
{
|
|
16
|
+
name: "id",
|
|
17
|
+
type: "uuid",
|
|
18
|
+
options: { genUuid: true }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "name",
|
|
22
|
+
type: "string",
|
|
23
|
+
isOptional: false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "email",
|
|
27
|
+
type: "string",
|
|
28
|
+
isOptional: false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "emailVerified",
|
|
32
|
+
type: "boolean",
|
|
33
|
+
options: { default: "false" }
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "image",
|
|
37
|
+
type: "string",
|
|
38
|
+
isOptional: true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "updatedAt",
|
|
42
|
+
type: "dateTime",
|
|
43
|
+
options: { defaultToNow: true, updatedAt: true }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "createdAt",
|
|
47
|
+
type: "dateTime",
|
|
48
|
+
options: { defaultToNow: true }
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
primaryKeyFieldRefs: ["id"],
|
|
52
|
+
uniqueConstraints: [
|
|
53
|
+
{
|
|
54
|
+
fields: [{ fieldRef: "email" }]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
graphql: {
|
|
59
|
+
objectType: {
|
|
60
|
+
enabled: true,
|
|
61
|
+
fields: [{ ref: "id" }, { ref: "email" }]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: BETTER_AUTH_MODELS.session,
|
|
67
|
+
featureRef: authFeatureName,
|
|
68
|
+
model: {
|
|
69
|
+
fields: [
|
|
70
|
+
{
|
|
71
|
+
name: "id",
|
|
72
|
+
type: "uuid",
|
|
73
|
+
options: { genUuid: true }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "expiresAt",
|
|
77
|
+
type: "dateTime"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "token",
|
|
81
|
+
type: "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "ipAddress",
|
|
85
|
+
type: "string",
|
|
86
|
+
isOptional: true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "userAgent",
|
|
90
|
+
type: "string",
|
|
91
|
+
isOptional: true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "userId",
|
|
95
|
+
type: "uuid"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "createdAt",
|
|
99
|
+
type: "dateTime",
|
|
100
|
+
options: { defaultToNow: true }
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "updatedAt",
|
|
104
|
+
type: "dateTime",
|
|
105
|
+
options: { defaultToNow: true, updatedAt: true }
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
primaryKeyFieldRefs: ["id"],
|
|
109
|
+
uniqueConstraints: [
|
|
110
|
+
{
|
|
111
|
+
fields: [{ fieldRef: "token" }]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
relations: [
|
|
115
|
+
{
|
|
116
|
+
name: "user",
|
|
117
|
+
references: [{ localRef: "userId", foreignRef: "id" }],
|
|
118
|
+
modelRef: BETTER_AUTH_MODELS.user,
|
|
119
|
+
foreignRelationName: "sessions",
|
|
120
|
+
onDelete: "Cascade",
|
|
121
|
+
onUpdate: "Restrict"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: BETTER_AUTH_MODELS.account,
|
|
128
|
+
featureRef: authFeatureName,
|
|
129
|
+
model: {
|
|
130
|
+
fields: [
|
|
131
|
+
{
|
|
132
|
+
name: "id",
|
|
133
|
+
type: "uuid",
|
|
134
|
+
options: { genUuid: true }
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "accountId",
|
|
138
|
+
type: "string"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "providerId",
|
|
142
|
+
type: "string"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: "userId",
|
|
146
|
+
type: "uuid"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "accessToken",
|
|
150
|
+
type: "string",
|
|
151
|
+
isOptional: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "refreshToken",
|
|
155
|
+
type: "string",
|
|
156
|
+
isOptional: true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "idToken",
|
|
160
|
+
type: "string",
|
|
161
|
+
isOptional: true
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "accessTokenExpiresAt",
|
|
165
|
+
type: "dateTime",
|
|
166
|
+
isOptional: true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "refreshTokenExpiresAt",
|
|
170
|
+
type: "dateTime",
|
|
171
|
+
isOptional: true
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "scope",
|
|
175
|
+
type: "string",
|
|
176
|
+
isOptional: true
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "password",
|
|
180
|
+
type: "string",
|
|
181
|
+
isOptional: true
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "createdAt",
|
|
185
|
+
type: "dateTime",
|
|
186
|
+
options: { defaultToNow: true }
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "updatedAt",
|
|
190
|
+
type: "dateTime",
|
|
191
|
+
options: { defaultToNow: true, updatedAt: true }
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
primaryKeyFieldRefs: ["id"],
|
|
195
|
+
relations: [
|
|
196
|
+
{
|
|
197
|
+
name: "user",
|
|
198
|
+
references: [{ localRef: "userId", foreignRef: "id" }],
|
|
199
|
+
modelRef: BETTER_AUTH_MODELS.user,
|
|
200
|
+
foreignRelationName: "accounts",
|
|
201
|
+
onDelete: "Cascade",
|
|
202
|
+
onUpdate: "Restrict"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: BETTER_AUTH_MODELS.verification,
|
|
209
|
+
featureRef: authFeatureName,
|
|
210
|
+
model: {
|
|
211
|
+
fields: [
|
|
212
|
+
{
|
|
213
|
+
name: "id",
|
|
214
|
+
type: "uuid",
|
|
215
|
+
options: { genUuid: true }
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "identifier",
|
|
219
|
+
type: "string"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "value",
|
|
223
|
+
type: "string"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: "expiresAt",
|
|
227
|
+
type: "dateTime"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: "createdAt",
|
|
231
|
+
type: "dateTime",
|
|
232
|
+
options: { defaultToNow: true }
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "updatedAt",
|
|
236
|
+
type: "dateTime",
|
|
237
|
+
options: { defaultToNow: true, updatedAt: true }
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
primaryKeyFieldRefs: ["id"]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: BETTER_AUTH_MODELS.userRole,
|
|
245
|
+
featureRef: authFeatureName,
|
|
246
|
+
model: {
|
|
247
|
+
fields: [
|
|
248
|
+
{
|
|
249
|
+
name: "userId",
|
|
250
|
+
type: "uuid"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "role",
|
|
254
|
+
type: "string"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: "updatedAt",
|
|
258
|
+
type: "dateTime",
|
|
259
|
+
options: { defaultToNow: true, updatedAt: true }
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: "createdAt",
|
|
263
|
+
type: "dateTime",
|
|
264
|
+
options: { defaultToNow: true }
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
primaryKeyFieldRefs: ["userId", "role"],
|
|
268
|
+
relations: [
|
|
269
|
+
{
|
|
270
|
+
name: "user",
|
|
271
|
+
references: [{ localRef: "userId", foreignRef: "id" }],
|
|
272
|
+
modelRef: BETTER_AUTH_MODELS.user,
|
|
273
|
+
foreignRelationName: "roles",
|
|
274
|
+
onDelete: "Cascade",
|
|
275
|
+
onUpdate: "Restrict"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const {applyMergedDefinition,diffDefinition,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
285
|
+
|
|
286
|
+
const {DefinitionDiffAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
|
|
287
|
+
|
|
288
|
+
const {FormActionBar,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
|
|
289
|
+
const {useMemo} = await importShared('react');
|
|
290
|
+
function BetterAuthDefinitionEditor({
|
|
291
|
+
definition: pluginMetadata,
|
|
292
|
+
metadata,
|
|
293
|
+
onSave
|
|
294
|
+
}) {
|
|
295
|
+
const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
|
|
296
|
+
const betterAuthPluginDefinitionSchema = useDefinitionSchema(
|
|
297
|
+
createBetterAuthPluginDefinitionSchema
|
|
298
|
+
);
|
|
299
|
+
const defaultValues = useMemo(() => {
|
|
300
|
+
if (pluginMetadata?.config) {
|
|
301
|
+
return pluginMetadata.config;
|
|
302
|
+
}
|
|
303
|
+
return {};
|
|
304
|
+
}, [pluginMetadata?.config]);
|
|
305
|
+
const form = useResettableForm({
|
|
306
|
+
resolver: a(betterAuthPluginDefinitionSchema),
|
|
307
|
+
defaultValues
|
|
308
|
+
});
|
|
309
|
+
const { control, reset, handleSubmit } = form;
|
|
310
|
+
const authDefinition = getAuthPluginDefinition(definition);
|
|
311
|
+
const authFeature = definition.features.find(
|
|
312
|
+
(f) => f.id === authDefinition.authFeatureRef
|
|
313
|
+
);
|
|
314
|
+
if (!authFeature) {
|
|
315
|
+
throw new Error(
|
|
316
|
+
`Auth feature not found for ref: ${authDefinition.authFeatureRef}`
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
const partialDef = useMemo(
|
|
320
|
+
() => createBetterAuthPartialDefinition(authFeature.name),
|
|
321
|
+
[authFeature.name]
|
|
322
|
+
);
|
|
323
|
+
const diff = useMemo(
|
|
324
|
+
() => diffDefinition(
|
|
325
|
+
definitionContainer.schema,
|
|
326
|
+
definitionContainer.definition,
|
|
327
|
+
partialDef
|
|
328
|
+
),
|
|
329
|
+
[definitionContainer, partialDef]
|
|
330
|
+
);
|
|
331
|
+
const onSubmit = handleSubmit(
|
|
332
|
+
(data) => saveDefinitionWithFeedback(
|
|
333
|
+
(draftConfig) => {
|
|
334
|
+
const updatedData = {
|
|
335
|
+
...data
|
|
336
|
+
};
|
|
337
|
+
applyMergedDefinition(definitionContainer, partialDef)(draftConfig);
|
|
338
|
+
PluginUtils.setPluginConfig(
|
|
339
|
+
draftConfig,
|
|
340
|
+
metadata,
|
|
341
|
+
updatedData,
|
|
342
|
+
definitionContainer
|
|
343
|
+
);
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
successMessage: "Successfully saved Better Auth plugin!",
|
|
347
|
+
onSuccess: () => {
|
|
348
|
+
onSave();
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
);
|
|
353
|
+
useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
|
|
354
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden", children: [
|
|
355
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
|
|
356
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
357
|
+
"div",
|
|
358
|
+
{
|
|
359
|
+
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
360
|
+
style: {
|
|
361
|
+
"--action-bar-height": "52px"
|
|
362
|
+
},
|
|
363
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
|
|
364
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionList, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
|
|
365
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
|
|
366
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Better Auth Configuration" }),
|
|
367
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
|
|
368
|
+
] }),
|
|
369
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
370
|
+
DefinitionDiffAlert,
|
|
371
|
+
{
|
|
372
|
+
diff,
|
|
373
|
+
upToDateMessage: "All required models are already configured correctly. No changes needed."
|
|
374
|
+
}
|
|
375
|
+
) })
|
|
376
|
+
] }) }) }),
|
|
377
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
378
|
+
FormActionBar,
|
|
379
|
+
{
|
|
380
|
+
form,
|
|
381
|
+
allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
] })
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
] });
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
391
|
+
const web = createPluginModule({
|
|
392
|
+
name: "web",
|
|
393
|
+
dependencies: {
|
|
394
|
+
webConfig: webConfigSpec
|
|
395
|
+
},
|
|
396
|
+
initialize: ({ webConfig }, { pluginKey }) => {
|
|
397
|
+
webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
export { web as default };
|
|
402
|
+
//# sourceMappingURL=__federation_expose_better-authCoreWeb-CMhPrXPA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__federation_expose_better-authCoreWeb-CMhPrXPA.js","sources":["../../../src/better-auth/core/schema/models.ts","../../../src/better-auth/core/components/better-auth-definition-editor.tsx","../../../src/better-auth/core/web.ts"],"sourcesContent":["import type { PartialProjectDefinitionInput } from '@baseplate-dev/project-builder-lib';\n\nimport { BETTER_AUTH_MODELS } from '#src/better-auth/constants/model-names.js';\n\nexport function createBetterAuthPartialDefinition(\n authFeatureName: string,\n): PartialProjectDefinitionInput {\n return {\n models: [\n {\n name: BETTER_AUTH_MODELS.user,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'name',\n type: 'string',\n isOptional: false,\n },\n {\n name: 'email',\n type: 'string',\n isOptional: false,\n },\n {\n name: 'emailVerified',\n type: 'boolean',\n options: { default: 'false' },\n },\n {\n name: 'image',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: [{ ref: 'id' }, { ref: 'email' }],\n },\n },\n },\n {\n name: BETTER_AUTH_MODELS.session,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'token',\n type: 'string',\n },\n {\n name: 'ipAddress',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'userAgent',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'token' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'sessions',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: BETTER_AUTH_MODELS.account,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'accountId',\n type: 'string',\n },\n {\n name: 'providerId',\n type: 'string',\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'accessToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'refreshToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'idToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'accessTokenExpiresAt',\n type: 'dateTime',\n isOptional: true,\n },\n {\n name: 'refreshTokenExpiresAt',\n type: 'dateTime',\n isOptional: true,\n },\n {\n name: 'scope',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'password',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'accounts',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: BETTER_AUTH_MODELS.verification,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'identifier',\n type: 'string',\n },\n {\n name: 'value',\n type: 'string',\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n },\n },\n {\n name: BETTER_AUTH_MODELS.userRole,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'role',\n type: 'string',\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['userId', 'role'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'roles',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n ],\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n applyMergedDefinition,\n diffDefinition,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n DefinitionDiffAlert,\n useBlockUnsavedChangesNavigate,\n useDefinitionSchema,\n useProjectDefinition,\n useResettableForm,\n} from '@baseplate-dev/project-builder-lib/web';\nimport {\n FormActionBar,\n SectionList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { getAuthPluginDefinition } from '#src/auth/utils/get-auth-plugin-definition.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\n\nimport type { BetterAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createBetterAuthPartialDefinition } from '../schema/models.js';\nimport { createBetterAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function BetterAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const betterAuthPluginDefinitionSchema = useDefinitionSchema(\n createBetterAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as BetterAuthPluginDefinitionInput;\n }\n\n return {} satisfies BetterAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(betterAuthPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const authFeature = definition.features.find(\n (f) => f.id === authDefinition.authFeatureRef,\n );\n if (!authFeature) {\n throw new Error(\n `Auth feature not found for ref: ${authDefinition.authFeatureRef}`,\n );\n }\n\n const partialDef = useMemo(\n () => createBetterAuthPartialDefinition(authFeature.name),\n [authFeature.name],\n );\n\n const diff = useMemo(\n () =>\n diffDefinition(\n definitionContainer.schema,\n definitionContainer.definition,\n partialDef,\n ),\n [definitionContainer, partialDef],\n );\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n applyMergedDefinition(definitionContainer, partialDef)(draftConfig);\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved Better Auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n return (\n <div className=\"auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden\">\n <AuthConfigTabs />\n <div\n className=\"auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto\"\n style={\n {\n '--action-bar-height': '52px',\n } as React.CSSProperties\n }\n >\n <form onSubmit={onSubmit} className=\"auth:max-w-6xl auth:flex-1\">\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Better Auth Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n The plugin will automatically configure the models it needs.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <DefinitionDiffAlert\n diff={diff}\n upToDateMessage=\"All required models are already configured correctly. No changes needed.\"\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={!pluginMetadata || diff.hasChanges}\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { BetterAuthDefinitionEditor } from './components/better-auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n webConfig: webConfigSpec,\n },\n initialize: ({ webConfig }, { pluginKey }) => {\n webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAIO,SAAS,kCACd,eAAA,EAC+B;AAC/B,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN;AAAA,QACE,MAAM,kBAAA,CAAmB,IAAA;AAAA,QACzB,UAAA,EAAY,eAAA;AAAA,QACZ,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ;AAAA,YACN;AAAA,cACE,IAAA,EAAM,IAAA;AAAA,cACN,IAAA,EAAM,MAAA;AAAA,cACN,OAAA,EAAS,EAAE,OAAA,EAAS,IAAA;AAAK,aAC3B;AAAA,YACA;AAAA,cACE,IAAA,EAAM,MAAA;AAAA,cACN,IAAA,EAAM,QAAA;AAAA,cACN,UAAA,EAAY;AAAA,aACd;AAAA,YACA;AAAA,cACE,IAAA,EAAM,OAAA;AAAA,cACN,IAAA,EAAM,QAAA;AAAA,cACN,UAAA,EAAY;AAAA,aACd;AAAA,YACA;AAAA,cACE,IAAA,EAAM,eAAA;AAAA,cACN,IAAA,EAAM,SAAA;AAAA,cACN,OAAA,EAAS,EAAE,OAAA,EAAS,OAAA;AAAQ,aAC9B;AAAA,YACA;AAAA,cACE,IAAA,EAAM,OAAA;AAAA,cACN,IAAA,EAAM,QAAA;AAAA,cACN,UAAA,EAAY;AAAA,aACd;AAAA,YACA;AAAA,cACE,IAAA,EAAM,WAAA;AAAA,cACN,IAAA,EAAM,UAAA;AAAA,cACN,OAAA,EAAS,EAAE,YAAA,EAAc,IAAA,EAAM,WAAW,IAAA;AAAK,aACjD;AAAA,YAC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;AAAA,0BAEAA,qBAAA;AAAA,YAAC,aAAA;AAAA,YAAA;AAAA,cACC,IAAA;AAAA,cACA,qBAAA,EAAuB,CAAC,cAAA,IAAkB,IAAA,CAAK;AAAA;AAAA;AACjD,SAAA,EACF;AAAA;AAAA;AACF,GAAA,EACF,CAAA;AAEJ;;AC3JA,MAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AASA,YAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,KAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,SAAA,EAAW;AAAA,GACb;AAAA,EACA,YAAY,CAAC,EAAE,WAAU,EAAG,EAAE,WAAU,KAAM;AAC5C,IAAA,SAAA,CAAU,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,0BAA0B,CAAA;AAAA,EAChE;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
1
|
+
import { importShared } from './__federation_fn_import-BLFDCY-V.js';
|
|
2
2
|
|
|
3
3
|
const {baseAdminCrudActionSchema: baseAdminCrudActionSchema$1,definitionSchema: definitionSchema$2} = await importShared('@baseplate-dev/project-builder-lib');
|
|
4
4
|
|
|
@@ -60,4 +60,4 @@ const common = createPluginModule({
|
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
export { common as default };
|
|
63
|
-
//# sourceMappingURL=__federation_expose_local-authAdminCommon-
|
|
63
|
+
//# sourceMappingURL=__federation_expose_local-authAdminCommon-DvHe9w29.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authAdminCommon-
|
|
1
|
+
{"version":3,"file":"__federation_expose_local-authAdminCommon-DvHe9w29.js","sources":["../../../src/local-auth/admin/schema/manage-role-action.ts","../../../src/local-auth/admin/schema/reset-password-action.ts","../../../src/local-auth/admin/schema/roles-column.ts","../../../src/local-auth/admin/common.ts"],"sourcesContent":["import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudActionSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudManageRolesActionSchema = definitionSchema(() =>\n baseAdminCrudActionSchema.extend({\n type: z.literal('manage-roles'),\n }),\n);\n\nexport type AdminCrudManageRolesActionDefinition = def.InferOutput<\n typeof createAdminCrudManageRolesActionSchema\n>;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudActionSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudResetPasswordActionSchema = definitionSchema(() =>\n baseAdminCrudActionSchema.extend({\n type: z.literal('reset-password'),\n }),\n);\n\nexport type AdminCrudResetPasswordActionDefinition = def.InferOutput<\n typeof createAdminCrudResetPasswordActionSchema\n>;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n baseAdminCrudColumnSchema,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createAdminCrudRolesColumnSchema = definitionSchema(() =>\n baseAdminCrudColumnSchema.extend({\n type: z.literal('roles'),\n }),\n);\n\nexport type AdminCrudRolesColumnDefinition = def.InferOutput<\n typeof createAdminCrudRolesColumnSchema\n>;\n","import {\n adminCrudActionSpec,\n adminCrudColumnSpec,\n createAdminCrudActionType,\n createAdminCrudColumnType,\n createPluginModule,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { createAdminCrudManageRolesActionSchema } from './schema/manage-role-action.js';\nimport { createAdminCrudResetPasswordActionSchema } from './schema/reset-password-action.js';\nimport { createAdminCrudRolesColumnSchema } from './schema/roles-column.js';\n\nexport default createPluginModule({\n name: 'common',\n dependencies: {\n adminCrudAction: adminCrudActionSpec,\n adminCrudColumn: adminCrudColumnSpec,\n },\n initialize: ({ adminCrudAction, adminCrudColumn }) => {\n // Register the manage-roles action type\n adminCrudAction.actions.add(\n createAdminCrudActionType({\n name: 'manage-roles',\n createSchema: createAdminCrudManageRolesActionSchema,\n }),\n );\n\n // Register the reset-password action type\n adminCrudAction.actions.add(\n createAdminCrudActionType({\n name: 'reset-password',\n createSchema: createAdminCrudResetPasswordActionSchema,\n }),\n );\n\n // Register the roles column type\n adminCrudColumn.columns.add(\n createAdminCrudColumnType({\n name: 'roles',\n createSchema: createAdminCrudRolesColumnSchema,\n }),\n );\n },\n});\n"],"names":["baseAdminCrudActionSchema","definitionSchema","z"],"mappings":";;AAEA,MAAA,4BAAAA,2BAAA,mBAAAC,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,IAAAC,GAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,sCAAA,GAAyCD,kBAAA;AAAA,EAAiB,MACrED,4BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAME,GAAA,CAAE,OAAA,CAAQ,cAAc;AAAA,GAC/B;AACH,CAAA;;ACVA,MAAA,CAAA,yBAAA,mBAAAD,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,IAAAC,GAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,wCAAA,GAA2CD,kBAAA;AAAA,EAAiB,MACvE,0BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAMC,GAAA,CAAE,OAAA,CAAQ,gBAAgB;AAAA,GACjC;AACH,CAAA;;ACVA,MAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,gCAAA,GAAmC,gBAAA;AAAA,EAAiB,MAC/D,0BAA0B,MAAA,CAAO;AAAA,IAC/B,IAAA,EAAM,CAAA,CAAE,OAAA,CAAQ,OAAO;AAAA,GACxB;AACH,CAAA;;ACZA,MAAA,CAAA,mBAAA,CAAA,mBAAA,CAAA,yBAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAYA,eAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,eAAA,EAAiB,mBAAA;AAAA,IACjB,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,eAAA,EAAiB,iBAAgB,KAAM;AAEpD,IAAA,eAAA,CAAgB,OAAA,CAAQ,GAAA;AAAA,MACtB,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,cAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAGA,IAAA,eAAA,CAAgB,OAAA,CAAQ,GAAA;AAAA,MACtB,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,gBAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAGA,IAAA,eAAA,CAAgB,OAAA,CAAQ,GAAA;AAAA,MACtB,yBAAA,CAA0B;AAAA,QACxB,IAAA,EAAM,OAAA;AAAA,QACN,YAAA,EAAc;AAAA,OACf;AAAA,KACH;AAAA,EACF;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
1
|
+
import { importShared } from './__federation_fn_import-BLFDCY-V.js';
|
|
2
2
|
import { L as LOCAL_AUTH_MODELS } from './model-names-DrcaRxt1.js';
|
|
3
3
|
|
|
4
4
|
const {createPluginModule,ModelUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
@@ -38,4 +38,4 @@ const web = createPluginModule({
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
export { web as default };
|
|
41
|
-
//# sourceMappingURL=__federation_expose_local-authAdminWeb-
|
|
41
|
+
//# sourceMappingURL=__federation_expose_local-authAdminWeb-CLU9aEy9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authAdminWeb-
|
|
1
|
+
{"version":3,"file":"__federation_expose_local-authAdminWeb-CLU9aEy9.js","sources":["../../../src/local-auth/admin/web.ts"],"sourcesContent":["import {\n createPluginModule,\n ModelUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n adminCrudActionWebSpec,\n adminCrudColumnWebSpec,\n} from '@baseplate-dev/project-builder-lib/web';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n adminCrudActionWeb: adminCrudActionWebSpec,\n adminCrudColumnWeb: adminCrudColumnWebSpec,\n },\n initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {\n adminCrudActionWeb.actions.addMany([\n {\n pluginKey,\n name: 'manage-roles',\n label: 'Manage Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),\n },\n {\n pluginKey,\n name: 'reset-password',\n label: 'Reset Password',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),\n },\n ]);\n\n adminCrudColumnWeb.columns.add({\n pluginKey,\n name: 'roles',\n label: 'Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewColumn: () => ({ type: 'roles', label: 'Roles' }),\n });\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,sBAAA,CAAA,sBAAA,CAAA,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EAAE,IAAA,EAAM,OAAA,EAAS,OAAO,OAAA,EAAQ;AAAA,KACtD,CAAA;AAAA,EACH;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
1
|
+
import { importShared } from './__federation_fn_import-BLFDCY-V.js';
|
|
2
2
|
import { L as LOCAL_AUTH_MODELS } from './model-names-DrcaRxt1.js';
|
|
3
|
-
import { c as createLocalAuthPluginDefinitionSchema } from './plugin-definition-
|
|
3
|
+
import { c as createLocalAuthPluginDefinitionSchema } from './plugin-definition-Ckl5hjD1.js';
|
|
4
4
|
|
|
5
5
|
const {authModelsSpec,createPluginModule,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
6
6
|
const common = createPluginModule({
|
|
@@ -18,4 +18,4 @@ const common = createPluginModule({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
export { common as default };
|
|
21
|
-
//# sourceMappingURL=__federation_expose_local-authCoreCommon-
|
|
21
|
+
//# sourceMappingURL=__federation_expose_local-authCoreCommon-DbuvGG7o.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authCoreCommon-
|
|
1
|
+
{"version":3,"file":"__federation_expose_local-authCoreCommon-DbuvGG7o.js","sources":["../../../src/local-auth/core/common.ts"],"sourcesContent":["import {\n authModelsSpec,\n createPluginModule,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nimport { createLocalAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPluginModule({\n name: 'common',\n dependencies: {\n pluginConfig: pluginConfigSpec,\n authModels: authModelsSpec,\n },\n initialize: ({ pluginConfig, authModels }, { pluginKey }) => {\n pluginConfig.schemas.set(pluginKey, createLocalAuthPluginDefinitionSchema);\n authModels.getAuthModels.set(() => ({\n user: LOCAL_AUTH_MODELS.user,\n }));\n },\n});\n"],"names":[],"mappings":";;;;AAAA,MAAA,CAAA,cAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAaA,eAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,YAAA,EAAc,gBAAA;AAAA,IACd,UAAA,EAAY;AAAA,GACd;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,YAAA,EAAc,YAAW,EAAG,EAAE,WAAU,KAAM;AAC3D,IAAA,YAAA,CAAa,OAAA,CAAQ,GAAA,CAAI,SAAA,EAAW,qCAAqC,CAAA;AACzE,IAAA,UAAA,CAAW,aAAA,CAAc,IAAI,OAAO;AAAA,MAClC,MAAM,iBAAA,CAAkB;AAAA,KAC1B,CAAE,CAAA;AAAA,EACJ;AACF,CAAC,CAAA;;;;"}
|