@baseplate-dev/plugin-auth 1.0.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +3 -7
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.js +44 -30
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.d.ts +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.js +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +1 -0
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-editor-form.js +6 -3
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +21 -32
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +3 -28
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +5 -20
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/constants.js.map +1 -0
- package/dist/auth/core/schema/roles/index.d.ts +3 -0
- package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/index.js +3 -0
- package/dist/auth/core/schema/roles/index.js.map +1 -0
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/schema.js.map +1 -0
- package/dist/auth/core/web.js +2 -2
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/plugin.json +8 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +1 -0
- package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
- package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
- package/dist/auth/utils/index.d.ts +2 -0
- package/dist/auth/utils/index.d.ts.map +1 -0
- package/dist/auth/utils/index.js +2 -0
- package/dist/auth/utils/index.js.map +1 -0
- package/dist/auth0/core/common.d.ts +2 -1
- package/dist/auth0/core/common.d.ts.map +1 -1
- package/dist/auth0/core/common.js +7 -11
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/components/auth0-definition-editor.d.ts +5 -0
- package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +1 -0
- package/dist/auth0/core/components/auth0-definition-editor.js +54 -0
- package/dist/auth0/core/components/auth0-definition-editor.js.map +1 -0
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +12 -11
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/schema/models.d.ts +2 -1
- package/dist/auth0/core/schema/models.d.ts.map +1 -1
- package/dist/auth0/core/schema/models.js +1 -1
- package/dist/auth0/core/schema/models.js.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -61
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.js +1 -7
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/core/web.js +3 -3
- package/dist/auth0/core/web.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +6 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +4 -0
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +7 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +6 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +3 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +6 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +6 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +14 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +2 -0
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
- package/dist/auth0/{metadata.json → plugin.json} +2 -1
- package/dist/common/components/auth-config-tabs.d.ts +2 -0
- package/dist/common/components/auth-config-tabs.d.ts.map +1 -0
- package/dist/common/components/auth-config-tabs.js +21 -0
- package/dist/common/components/auth-config-tabs.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/local-auth/core/common.d.ts +8 -0
- package/dist/local-auth/core/common.d.ts.map +1 -0
- package/dist/local-auth/core/common.js +22 -0
- package/dist/local-auth/core/common.js.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js +62 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.js +2 -6
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -6
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/index.d.ts +8 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-paths.js +7 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.js +12 -12
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.d.ts +5 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.js +7 -5
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.js +3 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +2 -2
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +9 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.js +6 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.ts +17 -4
- package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -20
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.js +2 -2
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/index.d.ts +17 -54
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.d.ts +4 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.js +9 -7
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.d.ts +9 -23
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.js +15 -13
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +38 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.d.ts +7 -65
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.js +14 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +4 -4
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +4 -4
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +3 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +3 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +1 -1
- package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.d.ts +12 -6
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.js +3 -3
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/index.d.ts +38 -8
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.d.ts +5 -4
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.js +10 -7
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.d.ts +16 -10
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.js +19 -16
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.js +5 -5
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.d.ts +45 -3
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.js +19 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.js +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.js +11 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.ts +13 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts +3 -45
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts +4 -60
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.js +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.tsx +2 -3
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/queries.gql +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.js +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/index.d.ts +1 -0
- package/dist/local-auth/core/generators/index.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/index.js +1 -0
- package/dist/local-auth/core/generators/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.js +1 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +345 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
- package/dist/{auth/core/generators/auth-email-password → local-auth/core/generators/react-session}/generated/index.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +173 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +58 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +22 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +324 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +46 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +189 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/react-session.generator.js +6 -11
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
- package/dist/{auth/core/generators/react-session/templates/src/app/user-session-check.gql → local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql} +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +48 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +73 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.d.ts +10 -31
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.js +9 -25
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.ts +15 -52
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +75 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +38 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +44 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +19 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +27 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +20 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +46 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
- package/dist/local-auth/core/index.d.ts.map +1 -0
- package/dist/local-auth/core/index.js.map +1 -0
- package/dist/local-auth/core/node.d.ts +5 -0
- package/dist/local-auth/core/node.d.ts.map +1 -0
- package/dist/local-auth/core/node.js +59 -0
- package/dist/local-auth/core/node.js.map +1 -0
- package/dist/local-auth/core/schema/models.d.ts +10 -0
- package/dist/local-auth/core/schema/models.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/schema/models.js +1 -1
- package/dist/local-auth/core/schema/models.js.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +40 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +27 -0
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/local-auth/core/web.d.ts +6 -0
- package/dist/local-auth/core/web.d.ts.map +1 -0
- package/dist/local-auth/core/web.js +14 -0
- package/dist/local-auth/core/web.js.map +1 -0
- package/dist/local-auth/index.d.ts +2 -0
- package/dist/local-auth/index.d.ts.map +1 -0
- package/dist/local-auth/index.js +2 -0
- package/dist/local-auth/index.js.map +1 -0
- package/dist/{auth/metadata.json → local-auth/plugin.json} +4 -3
- package/dist/local-auth/static/icon.svg +1 -0
- package/dist/placeholder-auth/core/common.d.ts +1 -1
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +6 -10
- package/dist/placeholder-auth/core/common.js.map +1 -1
- 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 +12 -16
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +5 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +4 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.js +7 -10
- package/dist/placeholder-auth/core/node.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +1 -1
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +0 -61
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -7
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/placeholder-auth/core/web.js +2 -2
- package/dist/placeholder-auth/core/web.js.map +1 -1
- package/dist/placeholder-auth/{metadata.json → plugin.json} +2 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js +49 -0
- package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-DjVw47sM.js → __federation_expose_auth0CoreWeb-5F0rTNis.js} +51 -78
- package/dist/web/assets/__federation_expose_auth0CoreWeb-5F0rTNis.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js +439 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js +32 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-CrFEmZp3.js → __federation_expose_local-authCoreWeb-B5iBudnh.js} +109 -108
- package/dist/web/assets/__federation_expose_local-authCoreWeb-B5iBudnh.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js +32 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js → __federation_expose_placeholder-authCoreWeb-DbI_bZsk.js} +50 -74
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-CGvRdRVe.js → __federation_fn_import-DReOsou_.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-CGvRdRVe.js.map → __federation_fn_import-DReOsou_.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-D1kBtwsm.js → web-BlPKO2K7.js} +7 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-D1kBtwsm.js.map → web-BlPKO2K7.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-B7442OYh.js → project-builder-lib-CGEZr0YI.js} +232 -614
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CGEZr0YI.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-X318M5Ml.js → ui-components-RO_rk4f0.js} +2224 -2030
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-RO_rk4f0.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js +1544 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js +6138 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
- package/dist/web/assets/{__federation_shared_react-uocnGSER.js.map → __federation_shared_react-CJ2OfFKA.js.map} +1 -1
- package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js → __federation_shared_react-dom-B4vgf5Ln.js} +3 -2
- package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js.map → __federation_shared_react-dom-B4vgf5Ln.js.map} +1 -1
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js +13 -0
- package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js.map +1 -0
- package/dist/web/assets/{index-ydDQKauE.js → index-BkOJzK_m.js} +3 -3
- package/dist/web/assets/{index-ydDQKauE.js.map → index-BkOJzK_m.js.map} +1 -1
- package/dist/web/assets/{index-B1hOKVPw.js → index-DUwCgkeV.js} +2 -6
- package/dist/web/assets/{index-B1hOKVPw.js.map → index-DUwCgkeV.js.map} +1 -1
- package/dist/web/assets/{index.esm-DYWXRkn-.js → index.esm-UnRzlLlr.js} +3 -61
- package/dist/web/assets/index.esm-UnRzlLlr.js.map +1 -0
- package/dist/web/assets/isEqual-DAXqKRba.js +242 -0
- package/dist/web/assets/isEqual-DAXqKRba.js.map +1 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
- package/dist/web/assets/{model-merger-BVBtbNAj.js → model-merger-BLEOsCIp.js} +9 -321
- package/dist/web/assets/model-merger-BLEOsCIp.js.map +1 -0
- package/dist/web/assets/plugin-definition-C935Xf1h.js +19 -0
- package/dist/web/assets/plugin-definition-C935Xf1h.js.map +1 -0
- package/dist/web/assets/plugin-definition-ChUKIqUg.js +40 -0
- package/dist/web/assets/plugin-definition-ChUKIqUg.js.map +1 -0
- package/dist/web/assets/plugin-definition-DH4QyCfv.js +86 -0
- package/dist/web/assets/plugin-definition-DH4QyCfv.js.map +1 -0
- package/dist/web/assets/plugin-definition-PCHsX2lR.js +19 -0
- package/dist/web/assets/plugin-definition-PCHsX2lR.js.map +1 -0
- package/dist/web/assets/{react-B23vKoD0.js → react-ecPihYHK.js} +2 -2
- package/dist/web/assets/{react-B23vKoD0.js.map → react-ecPihYHK.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +18 -12
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/sortBy-BPH_zRB8.js +34 -0
- package/dist/web/assets/sortBy-BPH_zRB8.js.map +1 -0
- package/dist/web/assets/{style-ZUYizAnf.css → style-BhUCMIWI.css} +51 -6
- package/dist/web/assets/styles-I6mpdfRm.js +58 -0
- package/dist/web/assets/styles-I6mpdfRm.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +17 -16
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
- package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.js +0 -2
- package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/auth/core/generators/index.d.ts.map +0 -1
- package/dist/auth/core/generators/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
- package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.js +0 -11
- package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
- package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
- package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
- package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/auth/core/index.d.ts.map +0 -1
- package/dist/auth/core/index.js.map +0 -1
- package/dist/auth/core/schema/models.d.ts +0 -9
- package/dist/auth/core/schema/models.d.ts.map +0 -1
- package/dist/auth/core/schema/models.js.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.js +0 -61
- package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
- package/dist/common/compiler/generator-creators.d.ts +0 -18
- package/dist/common/compiler/generator-creators.d.ts.map +0 -1
- package/dist/common/compiler/generator-creators.js +0 -34
- package/dist/common/compiler/generator-creators.js.map +0 -1
- package/dist/common/compiler/index.d.ts +0 -2
- package/dist/common/compiler/index.d.ts.map +0 -1
- package/dist/common/compiler/index.js +0 -2
- package/dist/common/compiler/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -3
- package/dist/common/index.js.map +0 -1
- package/dist/common/roles/components/index.d.ts +0 -2
- package/dist/common/roles/components/index.d.ts.map +0 -1
- package/dist/common/roles/components/index.js +0 -2
- package/dist/common/roles/components/index.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/common/roles/constants.d.ts.map +0 -1
- package/dist/common/roles/constants.js.map +0 -1
- package/dist/common/roles/index.d.ts +0 -4
- package/dist/common/roles/index.d.ts.map +0 -1
- package/dist/common/roles/index.js +0 -4
- package/dist/common/roles/index.js.map +0 -1
- package/dist/common/roles/schema.d.ts.map +0 -1
- package/dist/common/roles/schema.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js +0 -56
- package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js +0 -36
- package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js +0 -39
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
- package/dist/web/assets/index.esm-DYWXRkn-.js.map +0 -1
- package/dist/web/assets/model-merger-BVBtbNAj.js.map +0 -1
- package/dist/web/assets/plugin-definition-Bdhuga1j.js +0 -36
- package/dist/web/assets/plugin-definition-Bdhuga1j.js.map +0 -1
- package/dist/web/assets/plugin-definition-C9d7ykhX.js +0 -24
- package/dist/web/assets/plugin-definition-C9d7ykhX.js.map +0 -1
- package/dist/web/assets/plugin-definition-QzgXWr1I.js +0 -24
- package/dist/web/assets/plugin-definition-QzgXWr1I.js.map +0 -1
- package/dist/web/assets/role-editor-form-BkcoVwtU.js +0 -319
- package/dist/web/assets/role-editor-form-BkcoVwtU.js.map +0 -1
- package/dist/web/assets/styles-Dfjm_ApH.js +0 -201
- package/dist/web/assets/styles-Dfjm_ApH.js.map +0 -1
- package/manifest.json +0 -4
- /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
- /package/dist/{common → auth/core/schema}/roles/constants.js +0 -0
- /package/dist/{common → auth/core/schema}/roles/schema.d.ts +0 -0
- /package/dist/{common → auth/core/schema}/roles/schema.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/common/roles/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3D,GAAG,CAAC,OAAO,CACT,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpC,CAAC,EAC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,CAAC,MAAM,CACb,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAC/D;CACF,CAAC,CACL,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CGvRdRVe.js';
|
|
2
|
-
import { c as createAuth0PluginDefinitionSchema } from './plugin-definition-QzgXWr1I.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 {authConfigSpec,createPlatformPluginExport,pluginConfigSpec,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
24
|
-
const common = createPlatformPluginExport({
|
|
25
|
-
dependencies: {
|
|
26
|
-
config: pluginConfigSpec
|
|
27
|
-
},
|
|
28
|
-
exports: {
|
|
29
|
-
authConfig: authConfigSpec
|
|
30
|
-
},
|
|
31
|
-
initialize: ({ config }, { pluginId }) => {
|
|
32
|
-
config.registerSchemaCreator(pluginId, createAuth0PluginDefinitionSchema);
|
|
33
|
-
config.registerMigrations(pluginId, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
34
|
-
return {
|
|
35
|
-
authConfig: {
|
|
36
|
-
getUserModel: (definition) => {
|
|
37
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
38
|
-
definition,
|
|
39
|
-
pluginId
|
|
40
|
-
);
|
|
41
|
-
return pluginConfig.modelRefs.user;
|
|
42
|
-
},
|
|
43
|
-
getAuthRoles: (definition) => {
|
|
44
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
45
|
-
definition,
|
|
46
|
-
pluginId
|
|
47
|
-
);
|
|
48
|
-
return pluginConfig.roles;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { common as default };
|
|
56
|
-
//# sourceMappingURL=__federation_expose_auth0CoreCommon-CSWdt8d_.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreCommon-CSWdt8d_.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 authConfigSpec,\n createPlatformPluginExport,\n pluginConfigSpec,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\n\nimport type { Auth0PluginDefinition } from './schema/plugin-definition.js';\n\nimport { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';\nimport { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authConfig: authConfigSpec,\n },\n initialize: ({ config }, { pluginId }) => {\n config.registerSchemaCreator(pluginId, createAuth0PluginDefinitionSchema);\n config.registerMigrations(pluginId, AUTH0_PLUGIN_CONFIG_MIGRATIONS);\n return {\n authConfig: {\n getUserModel: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as Auth0PluginDefinition;\n return pluginConfig.modelRefs.user;\n },\n getAuthRoles: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as Auth0PluginDefinition;\n return pluginConfig.roles;\n },\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAA0D,GAAA;AAAA,EACrE;AAAA,IACE,IAAM,EAAA,aAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,IACT,OAAA,EAAS,CAAC,MAAW,KAAA;AACnB,MAAA,MAAM,WAAc,GAAA,MAAA;AACpB,MAAO,OAAA;AAAA,QACL,aAAe,EAAA;AAAA,UACb,GAAG,WAAA;AAAA,UACH,mBAAqB,EAAA,MAAA;AAAA,UACrB,SAAW,EAAA;AAAA,YACT,MAAM,WAAY,CAAA;AAAA;AACpB;AACF,OACF;AAAA;AACF;AAEJ,CAAA;;ACnBA,MAAA,CAAA,cAAA,CAAA,0BAAA,CAAA,gBAAA,CAAA,WAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAYA,eAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA;AAAA,GACV;AAAA,EACA,OAAS,EAAA;AAAA,IACP,UAAY,EAAA;AAAA,GACd;AAAA,EACA,YAAY,CAAC,EAAE,QAAU,EAAA,EAAE,UAAe,KAAA;AACxC,IAAO,MAAA,CAAA,qBAAA,CAAsB,UAAU,iCAAiC,CAAA;AACxE,IAAO,MAAA,CAAA,kBAAA,CAAmB,UAAU,8BAA8B,CAAA;AAClE,IAAO,OAAA;AAAA,MACL,UAAY,EAAA;AAAA,QACV,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,aAAa,SAAU,CAAA,IAAA;AAAA,SAChC;AAAA,QACA,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,YAAa,CAAA,KAAA;AAAA;AACtB;AACF,KACF;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreWeb-DjVw47sM.js","sources":["../../../src/auth0/core/schema/models.ts","../../../src/auth0/core/components/auth-definition-editor.tsx","../../../src/auth0/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { Auth0PluginDefinition } from './plugin-definition.js';\n\nexport function createAuth0Models({\n authFeatureRef,\n modelRefs,\n}: Pick<Auth0PluginDefinition, 'authFeatureRef' | 'modelRefs'>): {\n user: ModelMergerModelInput;\n} {\n return {\n user: {\n name: modelRefs.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 authRoleEntityType,\n createAndApplyModelMergerResults,\n createModelMergerResults,\n doesModelMergerResultsHaveChanges,\n FeatureUtils,\n ModelUtils,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n FeatureComboboxFieldController,\n ModelComboboxFieldController,\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 { useLens } from '@hookform/lenses';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { RoleEditorForm } from '#src/common/roles/components/index.js';\nimport { AUTH_DEFAULT_ROLES } from '#src/common/roles/index.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 AuthDefinitionEditor({\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 {\n modelRefs: {\n user: ModelUtils.getModelIdByNameOrDefault(definition, 'User'),\n },\n authFeatureRef: FeatureUtils.getFeatureIdByNameOrDefault(\n definition,\n 'auth',\n ),\n roles: AUTH_DEFAULT_ROLES.map((r) => ({\n ...r,\n id: authRoleEntityType.generateNewId(),\n })),\n } satisfies Auth0PluginDefinitionInput;\n }, [definition, pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(auth0PluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit, watch } = form;\n\n const modelRefs = watch('modelRefs');\n const authFeatureRef = watch('authFeatureRef');\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuth0Models({ modelRefs, authFeatureRef });\n\n return createModelMergerResults(\n modelRefs,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authFeatureRef, modelRefs]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const featureRef = FeatureUtils.ensureFeatureByNameRecursively(\n draftConfig,\n data.authFeatureRef,\n );\n const updatedData = {\n ...data,\n authFeatureRef: featureRef,\n };\n createAndApplyModelMergerResults(\n draftConfig,\n updatedData.modelRefs,\n createAuth0Models(updatedData),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer.pluginStore,\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 const lens = useLens({ control });\n\n return (\n <form\n onSubmit={onSubmit}\n className=\"auth:mb-[--action-bar-height] auth:max-w-6xl\"\n >\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Auth0 Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n Configure your Auth0 authentication settings, user model, and\n role definitions.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n\n <div className=\"auth:grid auth:grid-cols-1 auth:gap-6 auth:md:grid-cols-2\">\n <ModelComboboxFieldController\n label=\"User Model\"\n name=\"modelRefs.user\"\n control={control}\n canCreate\n description=\"Select or create the model that will store user authentication data\"\n />\n <FeatureComboboxFieldController\n label=\"Auth Feature Path\"\n name=\"authFeatureRef\"\n control={control}\n canCreate\n description=\"Specify the feature path where authentication endpoints will be generated\"\n />\n </div>\n </SectionListSectionContent>\n </SectionListSection>\n\n <RoleEditorForm lens={lens.focus('roles')} />\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n );\n}\n","import {\n createPlatformPluginExport,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AuthDefinitionEditor } from './components/auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPlatformPluginExport({\n dependencies: {\n webConfig: webConfigSpec,\n },\n exports: {},\n initialize: ({ webConfig }, { pluginId }) => {\n webConfig.registerWebConfigComponent(pluginId, AuthDefinitionEditor);\n return {};\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAIO,SAAS,iBAAkB,CAAA;AAAA,EAChC,cAAA;AAAA,EACA;AACF,CAEE,EAAA;AACA,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,MAAM,SAAU,CAAA,IAAA;AAAA,MAChB,UAAY,EAAA,cAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,MAAQ,EAAA;AAAA,UACN;AAAA,YACE,IAAM,EAAA,IAAA;AAAA,YACN,IAAM,EAAA,MAAA;AAAA,YACN,OAAA,EAAS,EAAE,OAAA,EAAS,IAAK;AAAA,WAC3B;AAAA,UACA;AAAA,YACE,IAAM,EAAA,OAAA;AAAA,YACN,IAAM,EAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,IAAM,EAAA,SAAA;AAAA,YACN,IAAM,EAAA,QAAA;AAAA,YACN,UAAY,EAAA;AAAA;AACd,SACF;AAAA,QACA,mBAAA,EAAqB,CAAC,IAAI,CAAA;AAAA,QAC1B,iBAAmB,EAAA;AAAA,UACjB;AAAA,YACE,MAAQ,EAAA,CAAC,EAAE,QAAA,EAAU,WAAW;AAAA;AAClC;AACF,OACF;AAAA,MACA,OAAS,EAAA;AAAA,QACP,UAAY,EAAA;AAAA,UACV,OAAS,EAAA,IAAA;AAAA,UACT,MAAA,EAAQ,CAAC,IAAA,EAAM,OAAO;AAAA;AACxB;AACF;AACF,GACF;AACF;;AC3CA,MAAA,CAAA,kBAAA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AAA,mBAAA;AAAA,oBACN,IAAK,EAAA,gBAAA;AAAA,oBACL,OAAA;AAAA,oBACA,SAAS,EAAA,IAAA;AAAA,oBACT,WAAY,EAAA;AAAA;AAAA;AACd,eACF,EAAA;AAAA,aACF,EAAA;AAAA,WACF,EAAA,CAAA;AAAA,gDAEC,cAAe,EAAA,EAAA,IAAA,EAAM,IAAK,CAAA,KAAA,CAAM,OAAO,CAAG,EAAA;AAAA,SAAA,EAC7C,CACF,EAAA,CAAA;AAAA,wBAEAA,qBAAA;AAAA,UAAC,aAAA;AAAA,UAAA;AAAA,YACC,IAAA;AAAA,YACA,qBACE,EAAA,CAAC,cACD,IAAA,iCAAA,CAAkC,mBAAmB;AAAA;AAAA;AAEzD;AAAA;AAAA,GACF;AAEJ;;AC1LA,MAAA,CAAA,0BAAA,CAAA,aAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AASA,YAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,SAAW,EAAA;AAAA,GACb;AAAA,EACA,SAAS,EAAC;AAAA,EACV,YAAY,CAAC,EAAE,WAAa,EAAA,EAAE,UAAe,KAAA;AAC3C,IAAU,SAAA,CAAA,0BAAA,CAA2B,UAAU,oBAAoB,CAAA;AACnE,IAAA,OAAO,EAAC;AAAA;AAEZ,CAAC,CAAA;;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CGvRdRVe.js';
|
|
2
|
-
import { c as createAuthPluginDefinitionSchema } from './plugin-definition-Bdhuga1j.js';
|
|
3
|
-
|
|
4
|
-
const {authConfigSpec,createPlatformPluginExport,pluginConfigSpec,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
const common = createPlatformPluginExport({
|
|
6
|
-
dependencies: {
|
|
7
|
-
config: pluginConfigSpec
|
|
8
|
-
},
|
|
9
|
-
exports: {
|
|
10
|
-
authConfig: authConfigSpec
|
|
11
|
-
},
|
|
12
|
-
initialize: ({ config }, { pluginId }) => {
|
|
13
|
-
config.registerSchemaCreator(pluginId, createAuthPluginDefinitionSchema);
|
|
14
|
-
return {
|
|
15
|
-
authConfig: {
|
|
16
|
-
getUserModel: (definition) => {
|
|
17
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
18
|
-
definition,
|
|
19
|
-
pluginId
|
|
20
|
-
);
|
|
21
|
-
return pluginConfig.modelRefs.user;
|
|
22
|
-
},
|
|
23
|
-
getAuthRoles: (definition) => {
|
|
24
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
25
|
-
definition,
|
|
26
|
-
pluginId
|
|
27
|
-
);
|
|
28
|
-
return pluginConfig.roles;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
export { common as default };
|
|
36
|
-
//# sourceMappingURL=__federation_expose_authCoreCommon-CvHJZFIq.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_authCoreCommon-CvHJZFIq.js","sources":["../../../src/auth/core/common.ts"],"sourcesContent":["import {\n authConfigSpec,\n createPlatformPluginExport,\n pluginConfigSpec,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from './schema/plugin-definition.js';\n\nimport { createAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authConfig: authConfigSpec,\n },\n initialize: ({ config }, { pluginId }) => {\n config.registerSchemaCreator(pluginId, createAuthPluginDefinitionSchema);\n return {\n authConfig: {\n getUserModel: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as AuthPluginDefinition;\n return pluginConfig.modelRefs.user;\n },\n getAuthRoles: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as AuthPluginDefinition;\n return pluginConfig.roles;\n },\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,cAAA,CAAA,0BAAA,CAAA,gBAAA,CAAA,WAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA;AAAA,GACV;AAAA,EACA,OAAS,EAAA;AAAA,IACP,UAAY,EAAA;AAAA,GACd;AAAA,EACA,YAAY,CAAC,EAAE,QAAU,EAAA,EAAE,UAAe,KAAA;AACxC,IAAO,MAAA,CAAA,qBAAA,CAAsB,UAAU,gCAAgC,CAAA;AACvE,IAAO,OAAA;AAAA,MACL,UAAY,EAAA;AAAA,QACV,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,aAAa,SAAU,CAAA,IAAA;AAAA,SAChC;AAAA,QACA,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,YAAa,CAAA,KAAA;AAAA;AACtB;AACF,KACF;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_authCoreWeb-CrFEmZp3.js","sources":["../../../src/auth/core/schema/models.ts","../../../src/auth/core/components/auth-definition-editor.tsx","../../../src/auth/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from './plugin-definition.js';\n\nexport function createAuthModels({\n authFeatureRef,\n modelRefs,\n}: Pick<AuthPluginDefinition, 'authFeatureRef' | 'modelRefs'>): {\n user: ModelMergerModelInput;\n userAccount: ModelMergerModelInput;\n userRole: ModelMergerModelInput;\n userSession: ModelMergerModelInput;\n} {\n return {\n user: {\n name: modelRefs.user,\n featureRef: authFeatureRef,\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: true,\n },\n {\n name: 'email',\n type: 'string',\n },\n {\n name: 'emailVerified',\n type: 'boolean',\n options: { default: 'false' },\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: ['id', 'email'],\n },\n },\n },\n userAccount: {\n name: modelRefs.userAccount,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'accountId',\n type: 'string',\n },\n {\n name: 'providerId',\n type: 'string',\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 uniqueConstraints: [\n {\n fields: [{ fieldRef: 'accountId' }, { fieldRef: 'providerId' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: modelRefs.user,\n foreignRelationName: 'accounts',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n userRole: {\n name: modelRefs.userRole,\n featureRef: authFeatureRef,\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: modelRefs.user,\n foreignRelationName: 'roles',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n userSession: {\n name: modelRefs.userSession,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'token',\n type: 'string',\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'renewedAt',\n type: 'dateTime',\n options: { defaultToNow: 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 uniqueConstraints: [\n {\n fields: [{ fieldRef: 'token' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: modelRefs.user,\n foreignRelationName: 'sessions',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\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 FeatureUtils,\n ModelUtils,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n FeatureComboboxFieldController,\n ModelComboboxFieldController,\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 { useLens } from '@hookform/lenses';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { RoleEditorForm } from '#src/common/roles/components/index.js';\nimport { createDefaultAuthRoles } from '#src/common/roles/index.js';\n\nimport type { AuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function AuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as AuthPluginDefinitionInput;\n }\n\n return {\n modelRefs: {\n user: ModelUtils.getModelIdByNameOrDefault(definition, 'User'),\n userAccount: ModelUtils.getModelIdByNameOrDefault(\n definition,\n 'UserAccount',\n ),\n userRole: ModelUtils.getModelIdByNameOrDefault(definition, 'UserRole'),\n userSession: ModelUtils.getModelIdByNameOrDefault(\n definition,\n 'UserSession',\n ),\n },\n authFeatureRef: FeatureUtils.getFeatureIdByNameOrDefault(\n definition,\n 'auth',\n ),\n roles: createDefaultAuthRoles(),\n } satisfies AuthPluginDefinitionInput;\n }, [definition, pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit, watch } = form;\n\n const modelRefs = watch('modelRefs');\n const authFeatureRef = watch('authFeatureRef');\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels({ modelRefs, authFeatureRef });\n\n return createModelMergerResults(\n modelRefs,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authFeatureRef, modelRefs]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const featureRef = FeatureUtils.ensureFeatureByNameRecursively(\n draftConfig,\n data.authFeatureRef,\n );\n const updatedData = {\n ...data,\n authFeatureRef: featureRef,\n };\n updatedData.modelRefs = createAndApplyModelMergerResults(\n draftConfig,\n updatedData.modelRefs,\n createAuthModels(updatedData),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer.pluginStore,\n );\n },\n {\n successMessage: 'Successfully saved auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n const lens = useLens({ control });\n\n return (\n <form\n onSubmit={onSubmit}\n className=\"auth:mb-[--action-bar-height] auth:max-w-6xl\"\n >\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Local Authentication Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n Configure your local authentication settings, user models, and\n role definitions.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n\n <div className=\"auth:grid auth:grid-cols-1 auth:gap-6 auth:md:grid-cols-2\">\n <ModelComboboxFieldController\n label=\"User Model\"\n name=\"modelRefs.user\"\n control={control}\n canCreate\n description=\"The main user model for authentication\"\n />\n <ModelComboboxFieldController\n label=\"User Account Model\"\n name=\"modelRefs.userAccount\"\n control={control}\n canCreate\n description=\"Model for user account credentials\"\n />\n <ModelComboboxFieldController\n label=\"User Role Model\"\n name=\"modelRefs.userRole\"\n control={control}\n canCreate\n description=\"Model for assigning roles to users\"\n />\n <ModelComboboxFieldController\n label=\"User Session Model\"\n name=\"modelRefs.userSession\"\n control={control}\n canCreate\n description=\"Model for managing user sessions\"\n />\n </div>\n\n <div className=\"auth:space-y-2\">\n <FeatureComboboxFieldController\n label=\"Auth Feature Path\"\n name=\"authFeatureRef\"\n control={control}\n canCreate\n description=\"Specify the feature path where authentication endpoints will be generated\"\n />\n </div>\n </SectionListSectionContent>\n </SectionListSection>\n\n <RoleEditorForm lens={lens.focus('roles')} />\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n );\n}\n","import {\n createPlatformPluginExport,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AuthDefinitionEditor } from './components/auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPlatformPluginExport({\n dependencies: {\n webConfig: webConfigSpec,\n },\n exports: {},\n initialize: ({ webConfig }, { pluginId }) => {\n webConfig.registerWebConfigComponent(pluginId, AuthDefinitionEditor);\n return {};\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAIO,SAAS,gBAAiB,CAAA;AAAA,EAC/B,cAAA;AAAA,EACA;AACF,CAKE,EAAA;AACA,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,MAAM,SAAU,CAAA,IAAA;AAAA,MAChB,UAAY,EAAA,cAAA;AAAA,MACZ,KAAO,EAAA;AAAA,QACL,MAAQ,EAAA;AAAA,UACN;AAAA,YACE,IAAM,EAAA,IAAA;AAAA,YACN,IAAM,EAAA,MAAA;AAAA,YACN,OAAA,EAAS,EAAE,OAAA,EAAS,IAAK;AAAA,WAC3B;AAAA,UACA;AAAA,YACE,IAAM,EAAA,MAAA;AAAA,YACN,IAAM,EAAA,QAAA;AAAA,YACN,UAAY,EAAA;AAAA,WACd;AAAA,UACA;AAAA,YACE,IAAM,EAAA,OAAA;AAAA,YACN,IAAM,EAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,IAAM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;AAAA;AAAA;AACd,eACF,EAAA,CAAA;AAAA,8BAEAA,qBAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAU,gBACb,EAAA,QAAA,kBAAAA,qBAAA;AAAA,gBAAC,8BAAA;AAAA,gBAAA;AAAA,kBACC,KAAM,EAAA,mBAAA;AAAA,kBACN,IAAK,EAAA,gBAAA;AAAA,kBACL,OAAA;AAAA,kBACA,SAAS,EAAA,IAAA;AAAA,kBACT,WAAY,EAAA;AAAA;AAAA,eAEhB,EAAA;AAAA,aACF,EAAA;AAAA,WACF,EAAA,CAAA;AAAA,gDAEC,cAAe,EAAA,EAAA,IAAA,EAAM,IAAK,CAAA,KAAA,CAAM,OAAO,CAAG,EAAA;AAAA,SAAA,EAC7C,CACF,EAAA,CAAA;AAAA,wBAEAA,qBAAA;AAAA,UAAC,aAAA;AAAA,UAAA;AAAA,YACC,IAAA;AAAA,YACA,qBACE,EAAA,CAAC,cACD,IAAA,iCAAA,CAAkC,mBAAmB;AAAA;AAAA;AAEzD;AAAA;AAAA,GACF;AAEJ;;ACvNA,MAAA,CAAA,0BAAA,CAAA,aAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AASA,YAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,SAAW,EAAA;AAAA,GACb;AAAA,EACA,SAAS,EAAC;AAAA,EACV,YAAY,CAAC,EAAE,WAAa,EAAA,EAAE,UAAe,KAAA;AAC3C,IAAU,SAAA,CAAA,0BAAA,CAA2B,UAAU,oBAAoB,CAAA;AACnE,IAAA,OAAO,EAAC;AAAA;AAEZ,CAAC,CAAA;;;;"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-CGvRdRVe.js';
|
|
2
|
-
import { c as createPlaceholderAuthPluginDefinitionSchema } from './plugin-definition-C9d7ykhX.js';
|
|
3
|
-
|
|
4
|
-
const {authConfigSpec,createPlatformPluginExport,pluginConfigSpec,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
|
-
const common = createPlatformPluginExport({
|
|
6
|
-
dependencies: {
|
|
7
|
-
config: pluginConfigSpec
|
|
8
|
-
},
|
|
9
|
-
exports: {
|
|
10
|
-
authConfig: authConfigSpec
|
|
11
|
-
},
|
|
12
|
-
initialize: ({ config }, { pluginId }) => {
|
|
13
|
-
config.registerSchemaCreator(
|
|
14
|
-
pluginId,
|
|
15
|
-
createPlaceholderAuthPluginDefinitionSchema
|
|
16
|
-
);
|
|
17
|
-
return {
|
|
18
|
-
authConfig: {
|
|
19
|
-
getUserModel: (definition) => {
|
|
20
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
21
|
-
definition,
|
|
22
|
-
pluginId
|
|
23
|
-
);
|
|
24
|
-
return pluginConfig.modelRefs.user;
|
|
25
|
-
},
|
|
26
|
-
getAuthRoles: (definition) => {
|
|
27
|
-
const pluginConfig = PluginUtils.configByIdOrThrow(
|
|
28
|
-
definition,
|
|
29
|
-
pluginId
|
|
30
|
-
);
|
|
31
|
-
return pluginConfig.roles;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export { common as default };
|
|
39
|
-
//# sourceMappingURL=__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js","sources":["../../../src/placeholder-auth/core/common.ts"],"sourcesContent":["import {\n authConfigSpec,\n createPlatformPluginExport,\n pluginConfigSpec,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\n\nimport type { PlaceholderAuthPluginDefinition } from './schema/plugin-definition.js';\n\nimport { createPlaceholderAuthPluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPlatformPluginExport({\n dependencies: {\n config: pluginConfigSpec,\n },\n exports: {\n authConfig: authConfigSpec,\n },\n initialize: ({ config }, { pluginId }) => {\n config.registerSchemaCreator(\n pluginId,\n createPlaceholderAuthPluginDefinitionSchema,\n );\n return {\n authConfig: {\n getUserModel: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as PlaceholderAuthPluginDefinition;\n return pluginConfig.modelRefs.user;\n },\n getAuthRoles: (definition) => {\n const pluginConfig = PluginUtils.configByIdOrThrow(\n definition,\n pluginId,\n ) as PlaceholderAuthPluginDefinition;\n return pluginConfig.roles;\n },\n },\n };\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,cAAA,CAAA,0BAAA,CAAA,gBAAA,CAAA,WAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAcA,eAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,MAAQ,EAAA;AAAA,GACV;AAAA,EACA,OAAS,EAAA;AAAA,IACP,UAAY,EAAA;AAAA,GACd;AAAA,EACA,YAAY,CAAC,EAAE,QAAU,EAAA,EAAE,UAAe,KAAA;AACxC,IAAO,MAAA,CAAA,qBAAA;AAAA,MACL,QAAA;AAAA,MACA;AAAA,KACF;AACA,IAAO,OAAA;AAAA,MACL,UAAY,EAAA;AAAA,QACV,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,aAAa,SAAU,CAAA,IAAA;AAAA,SAChC;AAAA,QACA,YAAA,EAAc,CAAC,UAAe,KAAA;AAC5B,UAAA,MAAM,eAAe,WAAY,CAAA,iBAAA;AAAA,YAC/B,UAAA;AAAA,YACA;AAAA,WACF;AACA,UAAA,OAAO,YAAa,CAAA,KAAA;AAAA;AACtB;AACF,KACF;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js","sources":["../../../src/placeholder-auth/core/schema/models.ts","../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx","../../../src/placeholder-auth/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { PlaceholderAuthPluginDefinition } from './plugin-definition.js';\n\nexport function createAuthModels({\n authFeatureRef,\n modelRefs,\n}: Pick<PlaceholderAuthPluginDefinition, 'authFeatureRef' | 'modelRefs'>): {\n user: ModelMergerModelInput;\n} {\n return {\n user: {\n name: modelRefs.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 isOptional: 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: ['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 FeatureUtils,\n ModelUtils,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n FeatureComboboxFieldController,\n ModelComboboxFieldController,\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 { useLens } from '@hookform/lenses';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { RoleEditorForm } from '#src/common/roles/components/index.js';\nimport { createDefaultAuthRoles } from '#src/common/roles/index.js';\n\nimport type { PlaceholderAuthPluginDefinition } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createPlaceholderAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function PlaceholderAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createPlaceholderAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as PlaceholderAuthPluginDefinition;\n }\n\n return {\n modelRefs: {\n user: ModelUtils.getModelIdByNameOrDefault(definition, 'User'),\n },\n authFeatureRef: FeatureUtils.getFeatureIdByNameOrDefault(\n definition,\n 'auth',\n ),\n roles: createDefaultAuthRoles(),\n } satisfies PlaceholderAuthPluginDefinition;\n }, [definition, pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit, watch } = form;\n\n const modelRefs = watch('modelRefs');\n const authFeatureRef = watch('authFeatureRef');\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels({ modelRefs, authFeatureRef });\n\n return createModelMergerResults(\n modelRefs,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authFeatureRef, modelRefs]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const featureRef = FeatureUtils.ensureFeatureByNameRecursively(\n draftConfig,\n data.authFeatureRef,\n );\n const updatedData = {\n ...data,\n authFeatureRef: featureRef,\n };\n updatedData.modelRefs = createAndApplyModelMergerResults(\n draftConfig,\n updatedData.modelRefs,\n createAuthModels(updatedData),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer.pluginStore,\n );\n },\n {\n successMessage: 'Successfully saved auth plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n const lens = useLens({ control });\n\n return (\n <form\n onSubmit={onSubmit}\n className=\"auth:mb-[--action-bar-height] auth:max-w-6xl\"\n >\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Placeholder Auth Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n Configure your placeholder auth settings, user model, and role\n definitions.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n\n <div className=\"auth:grid auth:grid-cols-1 auth:gap-6 auth:md:grid-cols-2\">\n <ModelComboboxFieldController\n label=\"User Model\"\n name=\"modelRefs.user\"\n control={control}\n canCreate\n description=\"Select or create the model that will store user authentication data\"\n />\n <FeatureComboboxFieldController\n label=\"Auth Feature Path\"\n name=\"authFeatureRef\"\n control={control}\n canCreate\n description=\"Specify the feature path where authentication endpoints will be generated\"\n />\n </div>\n </SectionListSectionContent>\n </SectionListSection>\n\n <RoleEditorForm lens={lens.focus('roles')} />\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n );\n}\n","import {\n createPlatformPluginExport,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPlatformPluginExport({\n dependencies: {\n webConfig: webConfigSpec,\n },\n exports: {},\n initialize: ({ webConfig }, { pluginId }) => {\n webConfig.registerWebConfigComponent(\n pluginId,\n PlaceholderAuthDefinitionEditor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