@baseplate-dev/plugin-auth 4.0.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -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
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { typescriptFileProvider } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
-
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
4
|
-
import { AUTH0_REACT_AUTH0_PATHS } from './template-paths.js';
|
|
5
|
-
import { AUTH0_REACT_AUTH0_TEMPLATES } from './typed-templates.js';
|
|
6
|
-
const auth0ReactAuth0Renderers = createProviderType('auth0-react-auth0-renderers');
|
|
7
|
-
const auth0ReactAuth0RenderersTask = createGeneratorTask({
|
|
8
|
-
dependencies: {
|
|
9
|
-
paths: AUTH0_REACT_AUTH0_PATHS.provider,
|
|
10
|
-
reactComponentsImports: reactComponentsImportsProvider,
|
|
11
|
-
reactErrorImports: reactErrorImportsProvider,
|
|
12
|
-
typescriptFile: typescriptFileProvider,
|
|
13
|
-
},
|
|
14
|
-
exports: { auth0ReactAuth0Renderers: auth0ReactAuth0Renderers.export() },
|
|
15
|
-
run({ paths, reactComponentsImports, reactErrorImports, typescriptFile }) {
|
|
16
|
-
return {
|
|
17
|
-
providers: {
|
|
18
|
-
auth0ReactAuth0Renderers: {
|
|
19
|
-
authLoadedGate: {
|
|
20
|
-
render: (options) => typescriptFile.renderTemplateFile({
|
|
21
|
-
template: AUTH0_REACT_AUTH0_TEMPLATES.authLoadedGate,
|
|
22
|
-
destination: paths.authLoadedGate,
|
|
23
|
-
importMapProviders: {
|
|
24
|
-
reactComponentsImports,
|
|
25
|
-
reactErrorImports,
|
|
26
|
-
},
|
|
27
|
-
...options,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
export const AUTH0_REACT_AUTH0_RENDERERS = {
|
|
36
|
-
provider: auth0ReactAuth0Renderers,
|
|
37
|
-
task: auth0ReactAuth0RenderersTask,
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=template-renderers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAenE,MAAM,wBAAwB,GAAG,kBAAkB,CACjD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IACvD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB,CAAC,QAAQ;QACvC,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,wBAAwB,EAAE,wBAAwB,CAAC,MAAM,EAAE,EAAE;IACxE,GAAG,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,cAAc,EAAE;QACtE,OAAO;YACL,SAAS,EAAE;gBACT,wBAAwB,EAAE;oBACxB,cAAc,EAAE;wBACd,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,2BAA2B,CAAC,cAAc;4BACpD,WAAW,EAAE,KAAK,CAAC,cAAc;4BACjC,kBAAkB,EAAE;gCAClB,sBAAsB;gCACtB,iBAAiB;6BAClB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,wBAAwB;IAClC,IAAI,EAAE,4BAA4B;CACnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/typed-templates.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createTsTemplateFile } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
const authLoadedGate = createTsTemplateFile({
|
|
5
|
-
fileOptions: { kind: 'singleton' },
|
|
6
|
-
importMapProviders: {
|
|
7
|
-
reactComponentsImports: reactComponentsImportsProvider,
|
|
8
|
-
reactErrorImports: reactErrorImportsProvider,
|
|
9
|
-
},
|
|
10
|
-
name: 'auth-loaded-gate',
|
|
11
|
-
source: {
|
|
12
|
-
path: path.join(import.meta.dirname, '../templates/src/app/auth-loaded-gate.tsx'),
|
|
13
|
-
},
|
|
14
|
-
variables: {},
|
|
15
|
-
});
|
|
16
|
-
export const AUTH0_REACT_AUTH0_TEMPLATES = { authLoadedGate };
|
|
17
|
-
//# sourceMappingURL=typed-templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2CAA2C,CAC5C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-auth0.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0G9B,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { createNodePackagesTask, extractPackageVersions, packageScope, TsCodeUtils, tsImportBuilder, tsTemplate, tsTemplateWithImports, } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { reactAppConfigProvider, reactAuthRoutesProvider, reactConfigImportsProvider, reactConfigProvider, reactRouterConfigProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
-
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { AUTH0_PACKAGES } from '#src/auth0/constants/packages.js';
|
|
6
|
-
import { AUTH0_REACT_AUTH0_GENERATED } from './generated/index.js';
|
|
7
|
-
const descriptorSchema = z.object({});
|
|
8
|
-
export const reactAuth0Generator = createGenerator({
|
|
9
|
-
name: 'auth0/react-auth0',
|
|
10
|
-
generatorFileUrl: import.meta.url,
|
|
11
|
-
descriptorSchema,
|
|
12
|
-
buildTasks: () => ({
|
|
13
|
-
paths: AUTH0_REACT_AUTH0_GENERATED.paths.task,
|
|
14
|
-
renderers: AUTH0_REACT_AUTH0_GENERATED.renderers.task,
|
|
15
|
-
nodePackages: createNodePackagesTask({
|
|
16
|
-
prod: extractPackageVersions(AUTH0_PACKAGES, ['@auth0/auth0-react']),
|
|
17
|
-
}),
|
|
18
|
-
reactConfig: createProviderTask(reactConfigProvider, (reactConfig) => {
|
|
19
|
-
reactConfig.configEntries.mergeObj({
|
|
20
|
-
VITE_AUTH0_DOMAIN: {
|
|
21
|
-
comment: 'Auth0 Domain',
|
|
22
|
-
validator: 'z.string().min(1)',
|
|
23
|
-
devDefaultValue: 'domain.auth0.com',
|
|
24
|
-
},
|
|
25
|
-
VITE_AUTH0_CLIENT_ID: {
|
|
26
|
-
comment: 'Auth0 Client ID',
|
|
27
|
-
validator: 'z.string().min(1)',
|
|
28
|
-
devDefaultValue: 'AUTH0_CLIENT_ID',
|
|
29
|
-
},
|
|
30
|
-
VITE_AUTH0_AUDIENCE: {
|
|
31
|
-
comment: 'Auth0 Audience',
|
|
32
|
-
validator: 'z.string().min(1)',
|
|
33
|
-
devDefaultValue: 'AUTH0_AUDIENCE',
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}),
|
|
37
|
-
reactRouterContext: createGeneratorTask({
|
|
38
|
-
dependencies: {
|
|
39
|
-
reactRouterConfig: reactRouterConfigProvider,
|
|
40
|
-
},
|
|
41
|
-
run({ reactRouterConfig }) {
|
|
42
|
-
reactRouterConfig.routerSetupFragments.set('auth0', tsTemplateWithImports(tsImportBuilder(['useAuth0']).from('@auth0/auth0-react')) `const auth0 = useAuth0()`);
|
|
43
|
-
reactRouterConfig.rootContextFields.add({
|
|
44
|
-
name: 'auth0',
|
|
45
|
-
type: TsCodeUtils.typeImportFragment('Auth0ContextInterface', '@auth0/auth0-react'),
|
|
46
|
-
optional: false,
|
|
47
|
-
routerProviderInitializer: {
|
|
48
|
-
code: tsTemplate `auth0`,
|
|
49
|
-
dependencies: ['auth0'],
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
}),
|
|
54
|
-
authLoadedGate: createGeneratorTask({
|
|
55
|
-
dependencies: {
|
|
56
|
-
renderers: AUTH0_REACT_AUTH0_GENERATED.renderers.provider,
|
|
57
|
-
},
|
|
58
|
-
run({ renderers }) {
|
|
59
|
-
return {
|
|
60
|
-
build: async (builder) => {
|
|
61
|
-
await builder.apply(renderers.authLoadedGate.render({}));
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
}),
|
|
66
|
-
reactAuth: createGeneratorTask({
|
|
67
|
-
exports: {
|
|
68
|
-
reactAuth: reactAuthRoutesProvider.export(packageScope),
|
|
69
|
-
},
|
|
70
|
-
run() {
|
|
71
|
-
return {
|
|
72
|
-
providers: {
|
|
73
|
-
reactAuth: {
|
|
74
|
-
getLoginUrlPath: () => '/auth/login',
|
|
75
|
-
getRegisterUrlPath: () => '/auth/login?screen_hint=signup',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
}),
|
|
81
|
-
reactAppConfig: createGeneratorTask({
|
|
82
|
-
dependencies: {
|
|
83
|
-
reactConfigImports: reactConfigImportsProvider,
|
|
84
|
-
reactAppConfig: reactAppConfigProvider,
|
|
85
|
-
paths: AUTH0_REACT_AUTH0_GENERATED.paths.provider,
|
|
86
|
-
},
|
|
87
|
-
run({ reactConfigImports, reactAppConfig, paths }) {
|
|
88
|
-
reactAppConfig.renderWrappers.set('react-auth0', {
|
|
89
|
-
wrap: (contents) => TsCodeUtils.templateWithImports([
|
|
90
|
-
tsImportBuilder(['Auth0Provider']).from('@auth0/auth0-react'),
|
|
91
|
-
reactConfigImports.config.declaration(),
|
|
92
|
-
tsImportBuilder(['AuthLoadedGate']).from(paths.authLoadedGate),
|
|
93
|
-
]) `<Auth0Provider
|
|
94
|
-
domain={config.VITE_AUTH0_DOMAIN}
|
|
95
|
-
clientId={config.VITE_AUTH0_CLIENT_ID}
|
|
96
|
-
authorizationParams={{
|
|
97
|
-
redirect_uri: globalThis.location.origin,
|
|
98
|
-
audience: config.VITE_AUTH0_AUDIENCE,
|
|
99
|
-
}}
|
|
100
|
-
><AuthLoadedGate>${contents}</AuthLoadedGate></Auth0Provider>`,
|
|
101
|
-
type: 'auth',
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
}),
|
|
105
|
-
}),
|
|
106
|
-
});
|
|
107
|
-
//# sourceMappingURL=react-auth0.generator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-auth0.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,EACV,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB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AAC;YACJ,CAAC;SACF,CAAC;QACF,cAAc,EAAE,mBAAmB,CAAC;YAClC,YAAY,EAAE;gBACZ,kBAAkB,EAAE,0BAA0B;gBAC9C,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,EAAE;gBAC/C,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,aAAa,EAAE;oBAC/C,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC;wBAClD,eAAe,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;wBAC7D,kBAAkB,CAAC,MAAM,CAAC,WAAW,EAAE;wBACvC,eAAe,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;qBAC/D,CAAC,CAAA;;;;;;;yBAOa,QAAQ,mCAAmC;oBAC1D,IAAI,EAAE,MAAM;iBACb,CAAC,CAAC;YACL,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
Alert,
|
|
5
|
-
AlertDescription,
|
|
6
|
-
AlertTitle,
|
|
7
|
-
Button,
|
|
8
|
-
Card,
|
|
9
|
-
Loader,
|
|
10
|
-
} from '%reactComponentsImports';
|
|
11
|
-
import { logError } from '%reactErrorImports';
|
|
12
|
-
import { useAuth0 } from '@auth0/auth0-react';
|
|
13
|
-
import { useEffect } from 'react';
|
|
14
|
-
|
|
15
|
-
function isInvalidRoleError(error: unknown): boolean {
|
|
16
|
-
return (
|
|
17
|
-
error instanceof Error &&
|
|
18
|
-
'error' in error &&
|
|
19
|
-
'error_description' in error &&
|
|
20
|
-
typeof error.error_description === 'string' &&
|
|
21
|
-
error.error === 'access_denied' &&
|
|
22
|
-
error.error_description.includes('INVALID_ROLE')
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function formatAuthError(error: unknown): {
|
|
27
|
-
title: string;
|
|
28
|
-
description: string;
|
|
29
|
-
} {
|
|
30
|
-
if (isInvalidRoleError(error)) {
|
|
31
|
-
return {
|
|
32
|
-
title: 'You do not have permission to access this page.',
|
|
33
|
-
description: 'Please contact support if you believe this is an error.',
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
title: 'Sorry, we could not log you in.',
|
|
38
|
-
description: 'Please try logging out and logging in again.',
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* A component that waits for the Auth0 client to be loaded before rendering its children.
|
|
44
|
-
*
|
|
45
|
-
* @param children - The children to render when the Auth0 client is loaded.
|
|
46
|
-
* @returns The children or a loading indicator (with optional error message) if the Auth0 client is not loaded.
|
|
47
|
-
*/
|
|
48
|
-
export function AuthLoadedGate({
|
|
49
|
-
children,
|
|
50
|
-
}: {
|
|
51
|
-
children: React.ReactNode;
|
|
52
|
-
}): React.ReactElement {
|
|
53
|
-
const { isLoading, error, logout } = useAuth0();
|
|
54
|
-
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
if (error) {
|
|
57
|
-
logError(error);
|
|
58
|
-
}
|
|
59
|
-
}, [error]);
|
|
60
|
-
|
|
61
|
-
if (error) {
|
|
62
|
-
const { title, description } = formatAuthError(error);
|
|
63
|
-
return (
|
|
64
|
-
<div className="flex h-full items-center justify-center">
|
|
65
|
-
<Card className="w-sm space-y-4 p-4">
|
|
66
|
-
<Alert variant="error">
|
|
67
|
-
<AlertTitle>{title}</AlertTitle>
|
|
68
|
-
<AlertDescription>{description}</AlertDescription>
|
|
69
|
-
</Alert>
|
|
70
|
-
<Button onClick={() => logout()}>Log Out</Button>
|
|
71
|
-
</Card>
|
|
72
|
-
</div>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
if (isLoading) return <Loader />;
|
|
76
|
-
|
|
77
|
-
return <>{children}</>;
|
|
78
|
-
}
|
package/dist/auth0/plugin.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "auth0",
|
|
3
|
-
"displayName": "Auth0",
|
|
4
|
-
"icon": "icon.svg",
|
|
5
|
-
"description": "This plugin allows users to authenticate and authorize access to the application using Auth0.",
|
|
6
|
-
"version": "0.1.0",
|
|
7
|
-
"moduleDirectories": ["core"],
|
|
8
|
-
"managedBy": "@baseplate-dev/plugin-auth:auth"
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
aria-label="Auth0" role="img"
|
|
4
|
-
viewBox="0 0 512 512"><rect
|
|
5
|
-
width="512" height="512"
|
|
6
|
-
rx="15%"
|
|
7
|
-
fill="#ffffff"/><path d="M358.1 378.8L319.6 260L420.5 186.9H295.7l-38.6-118.7l-.01-.03h124.8l38.6 118.7v-.003l0.03-.02c22.4 68.8-.7 147 -62.4 192zm-201.9 0l-.036 .03L257.13 452.2L358.09 378.84L257.17 305.51ZM93.85 186.85c-23.57 72.57 3.79 149.46 62.36 192l0.01-.036L194.77 260.17L93.89 186.87H218.6L257.15 68.2L257.2 68.2H132.4Z" fill="#eb5424"/></svg>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-DfNliZHH.js';
|
|
2
|
-
import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-Bkx-a_wA.js';
|
|
3
|
-
|
|
4
|
-
const AUTH0_PLUGIN_CONFIG_MIGRATIONS = [
|
|
5
|
-
{
|
|
6
|
-
name: "move-models",
|
|
7
|
-
version: 1,
|
|
8
|
-
migrate: (config) => {
|
|
9
|
-
const typedConfig = config;
|
|
10
|
-
return {
|
|
11
|
-
updatedConfig: {
|
|
12
|
-
...typedConfig,
|
|
13
|
-
userAccountModelRef: void 0,
|
|
14
|
-
modelRefs: {
|
|
15
|
-
user: typedConfig.userAccountModelRef
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
const {authModelsSpec,createPluginModule,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
24
|
-
const common = createPluginModule({
|
|
25
|
-
name: "common",
|
|
26
|
-
dependencies: {
|
|
27
|
-
pluginConfig: pluginConfigSpec,
|
|
28
|
-
authModels: authModelsSpec
|
|
29
|
-
},
|
|
30
|
-
initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
|
|
31
|
-
pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);
|
|
32
|
-
pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
33
|
-
authModels.getAuthModels.set(() => ({
|
|
34
|
-
user: AUTH0_MODELS.user
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export { common as default };
|
|
40
|
-
//# sourceMappingURL=__federation_expose_auth0CoreCommon-e_GtBIIm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreCommon-e_GtBIIm.js","sources":["../../../src/auth0/core/schema/migrations.ts","../../../src/auth0/core/common.ts"],"sourcesContent":["import type { PluginConfigMigration } from '@baseplate-dev/project-builder-lib';\n\nexport const AUTH0_PLUGIN_CONFIG_MIGRATIONS: PluginConfigMigration[] = [\n {\n name: 'move-models',\n version: 1,\n migrate: (config) => {\n const typedConfig = config as { userAccountModelRef: string };\n return {\n updatedConfig: {\n ...typedConfig,\n userAccountModelRef: undefined,\n modelRefs: {\n user: typedConfig.userAccountModelRef,\n },\n },\n };\n },\n },\n];\n","import {\n authModelsSpec,\n createPluginModule,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AUTH0_MODELS } from '../constants/model-names.js';\nimport { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';\nimport { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { 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, createAuth0PluginDefinitionSchema);\n pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);\n\n authModels.getAuthModels.set(() => ({\n user: AUTH0_MODELS.user,\n }));\n },\n});\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAAA,GAA0D;AAAA,EACrE;AAAA,IACE,IAAA,EAAM,aAAA;AAAA,IACN,OAAA,EAAS,CAAA;AAAA,IACT,OAAA,EAAS,CAAC,MAAA,KAAW;AACnB,MAAA,MAAM,WAAA,GAAc,MAAA;AACpB,MAAA,OAAO;AAAA,QACL,aAAA,EAAe;AAAA,UACb,GAAG,WAAA;AAAA,UACH,mBAAA,EAAqB,MAAA;AAAA,UACrB,SAAA,EAAW;AAAA,YACT,MAAM,WAAA,CAAY;AAAA;AACpB;AACF,OACF;AAAA,IACF;AAAA;AAEJ,CAAA;;ACnBA,MAAA,CAAA,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,iCAAiC,CAAA;AACrE,IAAA,YAAA,CAAa,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,8BAA8B,CAAA;AAErE,IAAA,UAAA,CAAW,aAAA,CAAc,IAAI,OAAO;AAAA,MAClC,MAAM,YAAA,CAAa;AAAA,KACrB,CAAE,CAAA;AAAA,EACJ;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-DfNliZHH.js';
|
|
2
|
-
import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
|
|
3
|
-
import { a, A as AuthConfigTabs } from './styles-CbPVroCT.js';
|
|
4
|
-
import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-CVuj_mvy.js';
|
|
5
|
-
import { A as AUTH0_MODELS, c as createAuth0PluginDefinitionSchema } from './plugin-definition-Bkx-a_wA.js';
|
|
6
|
-
|
|
7
|
-
function createAuth0Models({
|
|
8
|
-
authFeatureRef
|
|
9
|
-
}) {
|
|
10
|
-
return {
|
|
11
|
-
user: {
|
|
12
|
-
name: AUTH0_MODELS.user,
|
|
13
|
-
featureRef: authFeatureRef,
|
|
14
|
-
model: {
|
|
15
|
-
fields: [
|
|
16
|
-
{
|
|
17
|
-
name: "id",
|
|
18
|
-
type: "uuid",
|
|
19
|
-
options: { genUuid: true }
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: "email",
|
|
23
|
-
type: "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: "auth0Id",
|
|
27
|
-
type: "string",
|
|
28
|
-
isOptional: true
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
primaryKeyFieldRefs: ["id"],
|
|
32
|
-
uniqueConstraints: [
|
|
33
|
-
{
|
|
34
|
-
fields: [{ fieldRef: "auth0Id" }]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
graphql: {
|
|
39
|
-
objectType: {
|
|
40
|
-
enabled: true,
|
|
41
|
-
fields: ["id", "email"]
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const {createAndApplyModelMergerResults,createModelMergerResults,doesModelMergerResultsHaveChanges,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
49
|
-
|
|
50
|
-
const {ModelMergerResultAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
|
|
51
|
-
|
|
52
|
-
const {FormActionBar,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
|
|
53
|
-
const {useMemo} = await importShared('react');
|
|
54
|
-
function Auth0DefinitionEditor({
|
|
55
|
-
definition: pluginMetadata,
|
|
56
|
-
metadata,
|
|
57
|
-
onSave
|
|
58
|
-
}) {
|
|
59
|
-
const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
|
|
60
|
-
const auth0PluginDefinitionSchema = useDefinitionSchema(
|
|
61
|
-
createAuth0PluginDefinitionSchema
|
|
62
|
-
);
|
|
63
|
-
const defaultValues = useMemo(() => {
|
|
64
|
-
if (pluginMetadata?.config) {
|
|
65
|
-
return pluginMetadata.config;
|
|
66
|
-
}
|
|
67
|
-
return {};
|
|
68
|
-
}, [pluginMetadata?.config]);
|
|
69
|
-
const form = useResettableForm({
|
|
70
|
-
resolver: a(auth0PluginDefinitionSchema),
|
|
71
|
-
defaultValues
|
|
72
|
-
});
|
|
73
|
-
const { control, reset, handleSubmit } = form;
|
|
74
|
-
const authDefinition = getAuthPluginDefinition(definition);
|
|
75
|
-
const pendingModelChanges = useMemo(() => {
|
|
76
|
-
const desiredModels = createAuth0Models(authDefinition);
|
|
77
|
-
return createModelMergerResults(
|
|
78
|
-
AUTH0_MODELS,
|
|
79
|
-
desiredModels,
|
|
80
|
-
definitionContainer
|
|
81
|
-
);
|
|
82
|
-
}, [definitionContainer, authDefinition]);
|
|
83
|
-
const onSubmit = handleSubmit(
|
|
84
|
-
(data) => saveDefinitionWithFeedback(
|
|
85
|
-
(draftConfig) => {
|
|
86
|
-
const updatedData = {
|
|
87
|
-
...data
|
|
88
|
-
};
|
|
89
|
-
createAndApplyModelMergerResults(
|
|
90
|
-
draftConfig,
|
|
91
|
-
AUTH0_MODELS,
|
|
92
|
-
createAuth0Models(authDefinition),
|
|
93
|
-
definitionContainer
|
|
94
|
-
);
|
|
95
|
-
PluginUtils.setPluginConfig(
|
|
96
|
-
draftConfig,
|
|
97
|
-
metadata,
|
|
98
|
-
updatedData,
|
|
99
|
-
definitionContainer
|
|
100
|
-
);
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
successMessage: "Successfully saved Auth0 plugin!",
|
|
104
|
-
onSuccess: () => {
|
|
105
|
-
onSave();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
);
|
|
110
|
-
useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
|
|
111
|
-
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: [
|
|
112
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
|
|
113
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
|
|
117
|
-
style: {
|
|
118
|
-
"--action-bar-height": "52px"
|
|
119
|
-
},
|
|
120
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
|
|
121
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionList, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
|
|
122
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
|
|
123
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Auth0 Configuration" }),
|
|
124
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
127
|
-
ModelMergerResultAlert,
|
|
128
|
-
{
|
|
129
|
-
pendingModelChanges
|
|
130
|
-
}
|
|
131
|
-
) })
|
|
132
|
-
] }) }) }),
|
|
133
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
134
|
-
FormActionBar,
|
|
135
|
-
{
|
|
136
|
-
form,
|
|
137
|
-
allowSaveWithoutDirty: !pluginMetadata || doesModelMergerResultsHaveChanges(pendingModelChanges)
|
|
138
|
-
}
|
|
139
|
-
)
|
|
140
|
-
] })
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
] });
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
|
|
147
|
-
const web = createPluginModule({
|
|
148
|
-
name: "web",
|
|
149
|
-
dependencies: {
|
|
150
|
-
webConfig: webConfigSpec
|
|
151
|
-
},
|
|
152
|
-
initialize: ({ webConfig }, { pluginKey }) => {
|
|
153
|
-
webConfig.components.set(pluginKey, Auth0DefinitionEditor);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
export { web as default };
|
|
158
|
-
//# sourceMappingURL=__federation_expose_auth0CoreWeb-CTfPylMw.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreWeb-CTfPylMw.js","sources":["../../../src/auth0/core/schema/models.ts","../../../src/auth0/core/components/auth0-definition-editor.tsx","../../../src/auth0/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nimport { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';\n\nexport function createAuth0Models({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof AUTH0_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: AUTH0_MODELS.user,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'email',\n type: 'string',\n },\n {\n name: 'auth0Id',\n type: 'string',\n isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'auth0Id' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: ['id', 'email'],\n },\n },\n },\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n createAndApplyModelMergerResults,\n createModelMergerResults,\n doesModelMergerResultsHaveChanges,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n ModelMergerResultAlert,\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 { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\n\nimport type { Auth0PluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuth0Models } from '../schema/models.js';\nimport { createAuth0PluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function Auth0DefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const auth0PluginDefinitionSchema = useDefinitionSchema(\n createAuth0PluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as Auth0PluginDefinitionInput;\n }\n\n return {} satisfies Auth0PluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(auth0PluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuth0Models(authDefinition);\n\n return createModelMergerResults(\n AUTH0_MODELS,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authDefinition]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n createAndApplyModelMergerResults(\n draftConfig,\n AUTH0_MODELS,\n createAuth0Models(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved Auth0 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 Auth0 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 <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { Auth0DefinitionEditor } from './components/auth0-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, Auth0DefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAMO,SAAS,iBAAA,CAAkB;AAAA,EAChC;AACF,CAAA,EAGE;AACA,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,MAAM,YAAA,CAAa,IAAA;AAAA,MACnB,UAAA,EAAY,cAAA;AAAA,MACZ,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ;AAAA,UACN;AAAA,YACE,IAAA,EAAM,IAAA;AAAA,YACN,IAAA,EAAM,MAAA;AAA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