@baseplate-dev/plugin-auth 0.1.3 → 1.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/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +6 -3
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts +13 -1
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.js +20 -8
- package/dist/auth/generators/fastify/auth-module/auth-module.generator.js.map +1 -1
- package/dist/auth/generators/fastify/auth-module/generated/index.d.ts +88 -0
- package/dist/auth/generators/fastify/auth-module/generated/index.d.ts.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/index.js +9 -0
- package/dist/auth/generators/fastify/auth-module/generated/index.js.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts +16 -0
- package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/template-paths.js +26 -0
- package/dist/auth/generators/fastify/auth-module/generated/template-paths.js.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts +10 -0
- package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js +23 -0
- package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +26 -41
- package/dist/auth/generators/fastify/auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js +68 -0
- package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js.map +1 -0
- package/dist/auth/generators/fastify/auth-module/index.d.ts +2 -0
- package/dist/auth/generators/fastify/auth-module/index.d.ts.map +1 -0
- package/dist/auth/generators/fastify/auth-module/index.js +2 -0
- package/dist/auth/generators/fastify/auth-module/index.js.map +1 -0
- package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/cookie-signer.ts +6 -0
- package/dist/auth/generators/fastify/index.d.ts +1 -1
- package/dist/auth/generators/fastify/index.d.ts.map +1 -1
- package/dist/auth/generators/fastify/index.js +1 -1
- package/dist/auth/generators/fastify/index.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +14 -6
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +11 -16
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +62 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js +9 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +13 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +23 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +10 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +23 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +2 -2
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.js → typed-templates.js} +11 -8
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts +2 -0
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/index.js +2 -0
- package/dist/auth0/generators/fastify/auth0-module/index.js.map +1 -0
- package/dist/auth0/generators/fastify/index.d.ts +1 -1
- package/dist/auth0/generators/fastify/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/index.js +1 -1
- package/dist/auth0/generators/fastify/index.js.map +1 -1
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts +2 -0
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-apollo/index.js +2 -0
- package/dist/auth0/generators/react/auth0-apollo/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts +101 -8
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +10 -11
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts +290 -0
- package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/index.js +7 -0
- package/dist/auth0/generators/react/auth0-callback/generated/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts +13 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js +23 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts +280 -0
- package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/{ts-templates.js → typed-templates.js} +11 -9
- package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/index.d.ts +2 -0
- package/dist/auth0/generators/react/auth0-callback/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/index.js +2 -0
- package/dist/auth0/generators/react/auth0-callback/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/templates/{auth0-callback.page.tsx → routes/auth0-callback.page.tsx} +3 -3
- package/dist/auth0/generators/react/auth0-callback/templates/{signup.page.tsx → routes/signup.page.tsx} +3 -3
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts +106 -12
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js +12 -16
- package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-components/generated/index.d.ts +151 -0
- package/dist/auth0/generators/react/auth0-components/generated/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/index.js +9 -0
- package/dist/auth0/generators/react/auth0-components/generated/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts +12 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-paths.js +22 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-paths.js.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts +10 -0
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js +25 -0
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts +132 -0
- package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js +17 -0
- package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js.map +1 -0
- package/dist/auth0/generators/react/auth0-components/index.d.ts +2 -0
- package/dist/auth0/generators/react/auth0-components/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/index.js +2 -0
- package/dist/auth0/generators/react/auth0-components/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-components/templates/{RequireAuth.tsx → src/components/require-auth/require-auth.tsx} +4 -4
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +10 -2
- 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 +13 -24
- 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 +51 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js +9 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +16 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +26 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +16 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +27 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +44 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +67 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts +2 -0
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/index.js +2 -0
- package/dist/auth0/generators/react/auth0-hooks/index.js.map +1 -0
- package/dist/auth0/generators/react/index.d.ts +5 -5
- package/dist/auth0/generators/react/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/index.js +5 -5
- package/dist/auth0/generators/react/index.js.map +1 -1
- package/dist/auth0/generators/react/react-auth0/index.d.ts +2 -0
- package/dist/auth0/generators/react/react-auth0/index.d.ts.map +1 -0
- package/dist/auth0/generators/react/react-auth0/index.js +2 -0
- package/dist/auth0/generators/react/react-auth0/index.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DCwCR5dZ.js → __federation_expose_auth0CoreCommon-BE50qa2_.js} +3 -3
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DCwCR5dZ.js.map → __federation_expose_auth0CoreCommon-BE50qa2_.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-BlCwYpTq.js → __federation_expose_auth0CoreWeb-AdDVCP7O.js} +7 -9
- package/dist/web/assets/__federation_expose_auth0CoreWeb-AdDVCP7O.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-DKyLSPCa.js +36 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-DKyLSPCa.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CfCyOvUk.js +442 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CfCyOvUk.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-dzKjrTzS.js → __federation_fn_import-CxP86CUK.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-dzKjrTzS.js.map → __federation_fn_import-CxP86CUK.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BXHJHUXP.js → web-BFCvL5ku.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BFCvL5ku.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-GtzVuDsM.js → project-builder-lib-BAwM_-SS.js} +150 -159
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-BAwM_-SS.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-ChoqtPkg.js → ui-components-C3uzqK6u.js} +18156 -10210
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-C3uzqK6u.js.map +1 -0
- package/dist/web/assets/{index-BxDOOHD-.js → index-scyXBD_d.js} +10 -4
- package/dist/web/assets/{index-BxDOOHD-.js.map → index-scyXBD_d.js.map} +1 -1
- package/dist/web/assets/{index.esm-BZEyAv4m.js → index.esm-DIgRm3lq.js} +3 -3
- package/dist/web/assets/{index.esm-BZEyAv4m.js.map → index.esm-DIgRm3lq.js.map} +1 -1
- package/dist/web/assets/{model-merger-CdV-7CWE.js → model-merger-gxuB007n.js} +33 -23
- package/dist/web/assets/model-merger-gxuB007n.js.map +1 -0
- package/dist/web/assets/plugin-definition-Bgi_XH0-.js +22 -0
- package/dist/web/assets/plugin-definition-Bgi_XH0-.js.map +1 -0
- package/dist/web/assets/plugin-definition-EtIvYJxn.js +34 -0
- package/dist/web/assets/plugin-definition-EtIvYJxn.js.map +1 -0
- package/dist/web/assets/{react-BfiX28GO.js → react-CAuz_DuX.js} +2 -2
- package/dist/web/assets/{react-BfiX28GO.js.map → react-CAuz_DuX.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +8 -2
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/{plugin-definition-C9Q-BrBQ.js → schema-BAfRBwYE.js} +16 -27
- package/dist/web/assets/schema-BAfRBwYE.js.map +1 -0
- package/dist/web/assets/styles-BpKIyKWd.js +8 -0
- package/dist/web/assets/styles-BpKIyKWd.js.map +1 -0
- package/manifest.json +1 -1
- package/package.json +18 -10
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js +0 -94
- package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js.map +0 -1
- package/dist/auth/generators/fastify/auth-module/templates/management.ts +0 -22
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session-payload.object-type.ts +0 -23
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.mutations.ts +0 -22
- package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.queries.ts +0 -20
- package/dist/auth/generators/fastify/auth-module/templates/user-session.service.ts +0 -101
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js +0 -12
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts +0 -106
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js +0 -12
- package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts +0 -45
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js +0 -13
- package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts +0 -8
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js +0 -12
- package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts +0 -3
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js +0 -16
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts +0 -33
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js +0 -50
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-BlCwYpTq.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXHJHUXP.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-GtzVuDsM.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-ChoqtPkg.js.map +0 -1
- package/dist/web/assets/model-merger-CdV-7CWE.js.map +0 -1
- package/dist/web/assets/plugin-definition-C9Q-BrBQ.js.map +0 -1
- /package/dist/auth/generators/fastify/auth-module/templates/{user-session.constants.ts → module/constants/user-session.constants.ts} +0 -0
- /package/dist/auth/generators/fastify/auth-module/templates/{services → module/services}/user-session.service.ts +0 -0
- /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/session-cookie.ts +0 -0
- /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/verify-request-origin.ts +0 -0
- /package/dist/auth0/generators/fastify/auth0-module/templates/{management.ts → module/services/management.ts} +0 -0
- /package/dist/auth0/generators/fastify/auth0-module/templates/{user-session.service.ts → module/services/user-session.service.ts} +0 -0
- /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.gql → src/hooks/useCurrentUser.gql} +0 -0
- /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.ts → src/hooks/useCurrentUser.ts} +0 -0
- /package/dist/auth0/generators/react/auth0-hooks/templates/{useLogOut.ts → src/hooks/useLogOut.ts} +0 -0
- /package/dist/auth0/generators/react/auth0-hooks/templates/{useRequiredUserId.ts → src/hooks/useRequiredUserId.ts} +0 -0
- /package/dist/auth0/generators/react/auth0-hooks/templates/{useSession.ts → src/hooks/useSession.ts} +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export declare const AUTH0_AUTH0_COMPONENTS_GENERATED: {
|
|
2
|
+
imports: {
|
|
3
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
|
+
authComponentsImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
|
+
RequireAuth: {};
|
|
6
|
+
}>>;
|
|
7
|
+
}, {
|
|
8
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0ComponentsPaths>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
};
|
|
11
|
+
paths: {
|
|
12
|
+
provider: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0ComponentsPaths>;
|
|
13
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
14
|
+
auth0Auth0ComponentsPaths: import("@baseplate-dev/sync").ProviderExport<import("./template-paths.js").Auth0Auth0ComponentsPaths>;
|
|
15
|
+
}, {
|
|
16
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
};
|
|
19
|
+
templates: {
|
|
20
|
+
requireAuth: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
21
|
+
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
22
|
+
AddOptionRequiredFields: {
|
|
23
|
+
isTypeOnly: true;
|
|
24
|
+
};
|
|
25
|
+
Alert: {};
|
|
26
|
+
Button: {};
|
|
27
|
+
buttonVariants: {};
|
|
28
|
+
Calendar: {};
|
|
29
|
+
Card: {};
|
|
30
|
+
Checkbox: {};
|
|
31
|
+
CheckboxField: {};
|
|
32
|
+
CheckboxFieldController: {};
|
|
33
|
+
CheckedInput: {};
|
|
34
|
+
CircularProgress: {};
|
|
35
|
+
cn: {};
|
|
36
|
+
Combobox: {};
|
|
37
|
+
ComboboxField: {};
|
|
38
|
+
ComboboxFieldController: {};
|
|
39
|
+
ConfirmDialog: {};
|
|
40
|
+
DatePickerField: {};
|
|
41
|
+
DatePickerFieldController: {};
|
|
42
|
+
DateTimePickerField: {};
|
|
43
|
+
DateTimePickerFieldController: {};
|
|
44
|
+
Dialog: {};
|
|
45
|
+
DialogClose: {};
|
|
46
|
+
DialogContent: {};
|
|
47
|
+
DialogDescription: {};
|
|
48
|
+
DialogFooter: {};
|
|
49
|
+
DialogHeader: {};
|
|
50
|
+
DialogOverlay: {};
|
|
51
|
+
DialogPortal: {};
|
|
52
|
+
DialogTitle: {};
|
|
53
|
+
DialogTrigger: {};
|
|
54
|
+
DialogWidth: {
|
|
55
|
+
isTypeOnly: true;
|
|
56
|
+
};
|
|
57
|
+
EmptyDisplay: {};
|
|
58
|
+
ErrorableLoader: {};
|
|
59
|
+
ErrorDisplay: {};
|
|
60
|
+
FormControl: {};
|
|
61
|
+
FormDescription: {};
|
|
62
|
+
FormFieldProps: {
|
|
63
|
+
isTypeOnly: true;
|
|
64
|
+
};
|
|
65
|
+
FormItem: {};
|
|
66
|
+
FormLabel: {};
|
|
67
|
+
FormMessage: {};
|
|
68
|
+
IconElement: {
|
|
69
|
+
isTypeOnly: true;
|
|
70
|
+
};
|
|
71
|
+
Input: {};
|
|
72
|
+
InputField: {};
|
|
73
|
+
InputFieldController: {};
|
|
74
|
+
inputVariants: {};
|
|
75
|
+
Label: {};
|
|
76
|
+
LinkButton: {};
|
|
77
|
+
ListGroup: {};
|
|
78
|
+
Loader: {};
|
|
79
|
+
mergeRefs: {};
|
|
80
|
+
Modal: {};
|
|
81
|
+
MultiSelectOptionProps: {
|
|
82
|
+
isTypeOnly: true;
|
|
83
|
+
};
|
|
84
|
+
NavigationMenu: {};
|
|
85
|
+
NavigationMenuContent: {};
|
|
86
|
+
NavigationMenuIndicator: {};
|
|
87
|
+
NavigationMenuItem: {};
|
|
88
|
+
NavigationMenuItemWithLink: {};
|
|
89
|
+
NavigationMenuLink: {};
|
|
90
|
+
NavigationMenuList: {};
|
|
91
|
+
NavigationMenuTrigger: {};
|
|
92
|
+
navigationMenuTriggerStyle: {};
|
|
93
|
+
NavigationMenuViewport: {};
|
|
94
|
+
NotFoundCard: {};
|
|
95
|
+
Popover: {};
|
|
96
|
+
PopoverAnchor: {};
|
|
97
|
+
PopoverContent: {};
|
|
98
|
+
PopoverTrigger: {};
|
|
99
|
+
ReactDatePickerInput: {};
|
|
100
|
+
ReactSelectInput: {};
|
|
101
|
+
ScrollArea: {};
|
|
102
|
+
Select: {};
|
|
103
|
+
selectCheckVariants: {};
|
|
104
|
+
selectContentVariants: {};
|
|
105
|
+
SelectField: {};
|
|
106
|
+
SelectFieldController: {};
|
|
107
|
+
SelectInput: {};
|
|
108
|
+
selectItemVariants: {};
|
|
109
|
+
SelectOptionProps: {
|
|
110
|
+
isTypeOnly: true;
|
|
111
|
+
};
|
|
112
|
+
selectTriggerVariants: {};
|
|
113
|
+
SidebarLayout: {};
|
|
114
|
+
SidebarLayoutContent: {};
|
|
115
|
+
SidebarLayoutSidebar: {};
|
|
116
|
+
Status: {
|
|
117
|
+
isTypeOnly: true;
|
|
118
|
+
};
|
|
119
|
+
StatusType: {
|
|
120
|
+
isTypeOnly: true;
|
|
121
|
+
};
|
|
122
|
+
Switch: {};
|
|
123
|
+
SwitchField: {};
|
|
124
|
+
SwitchFieldController: {};
|
|
125
|
+
Table: {};
|
|
126
|
+
TableBody: {};
|
|
127
|
+
TableCaption: {};
|
|
128
|
+
TableCell: {};
|
|
129
|
+
TableFooter: {};
|
|
130
|
+
TableHead: {};
|
|
131
|
+
TableHeader: {};
|
|
132
|
+
TableRow: {};
|
|
133
|
+
Textarea: {};
|
|
134
|
+
TextareaField: {};
|
|
135
|
+
TextareaFieldController: {};
|
|
136
|
+
TextAreaInput: {};
|
|
137
|
+
TextInput: {};
|
|
138
|
+
Toaster: {};
|
|
139
|
+
useConfirmDialog: {};
|
|
140
|
+
UseConfirmDialogRequestOptions: {
|
|
141
|
+
isTypeOnly: true;
|
|
142
|
+
};
|
|
143
|
+
useConfirmDialogState: {};
|
|
144
|
+
useControlledState: {};
|
|
145
|
+
useControllerMerged: {};
|
|
146
|
+
useStatus: {};
|
|
147
|
+
}>>;
|
|
148
|
+
}>;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AUTH0_AUTH0_COMPONENTS_PATHS } from './template-paths.js';
|
|
2
|
+
import { AUTH0_AUTH0_COMPONENTS_IMPORTS } from './ts-import-providers.js';
|
|
3
|
+
import { AUTH0_AUTH0_COMPONENTS_TEMPLATES } from './typed-templates.js';
|
|
4
|
+
export const AUTH0_AUTH0_COMPONENTS_GENERATED = {
|
|
5
|
+
imports: AUTH0_AUTH0_COMPONENTS_IMPORTS,
|
|
6
|
+
paths: AUTH0_AUTH0_COMPONENTS_PATHS,
|
|
7
|
+
templates: AUTH0_AUTH0_COMPONENTS_TEMPLATES,
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAExE,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,8BAA8B;IACvC,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,gCAAgC;CAC5C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Auth0Auth0ComponentsPaths {
|
|
2
|
+
requireAuth: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const AUTH0_AUTH0_COMPONENTS_PATHS: {
|
|
5
|
+
provider: import("@baseplate-dev/sync").ProviderType<Auth0Auth0ComponentsPaths>;
|
|
6
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
7
|
+
auth0Auth0ComponentsPaths: import("@baseplate-dev/sync").ProviderExport<Auth0Auth0ComponentsPaths>;
|
|
8
|
+
}, {
|
|
9
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=template-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB;AAsBD,eAAO,MAAM,4BAA4B;;;;;;;CAGxC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { packageInfoProvider } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
3
|
+
const auth0Auth0ComponentsPaths = createProviderType('auth0-auth0-components-paths');
|
|
4
|
+
const auth0Auth0ComponentsPathsTask = createGeneratorTask({
|
|
5
|
+
dependencies: { packageInfo: packageInfoProvider },
|
|
6
|
+
exports: { auth0Auth0ComponentsPaths: auth0Auth0ComponentsPaths.export() },
|
|
7
|
+
run({ packageInfo }) {
|
|
8
|
+
const srcRoot = packageInfo.getPackageSrcPath();
|
|
9
|
+
return {
|
|
10
|
+
providers: {
|
|
11
|
+
auth0Auth0ComponentsPaths: {
|
|
12
|
+
requireAuth: `${srcRoot}/components/require-auth/require-auth.tsx`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
export const AUTH0_AUTH0_COMPONENTS_PATHS = {
|
|
19
|
+
provider: auth0Auth0ComponentsPaths,
|
|
20
|
+
task: auth0Auth0ComponentsPathsTask,
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=template-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAM9E,MAAM,yBAAyB,GAAG,kBAAkB,CAClD,8BAA8B,CAC/B,CAAC;AAEF,MAAM,6BAA6B,GAAG,mBAAmB,CAAC;IACxD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,yBAAyB,EAAE,yBAAyB,CAAC,MAAM,EAAE,EAAE;IAC1E,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,yBAAyB,EAAE;oBACzB,WAAW,EAAE,GAAG,OAAO,2CAA2C;iBACnE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,yBAAyB;IACnC,IAAI,EAAE,6BAA6B;CACpC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const AUTH0_AUTH0_COMPONENTS_IMPORTS: {
|
|
2
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
3
|
+
authComponentsImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
4
|
+
RequireAuth: {};
|
|
5
|
+
}>>;
|
|
6
|
+
}, {
|
|
7
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0ComponentsPaths>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ts-import-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-import-providers.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,8BAA8B;;;;;;;;CAE1C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createTsImportMap, packageScope, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { authComponentsImportsProvider, authComponentsImportsSchema, } from '@baseplate-dev/react-generators';
|
|
3
|
+
import { createGeneratorTask } from '@baseplate-dev/sync';
|
|
4
|
+
import { AUTH0_AUTH0_COMPONENTS_PATHS } from './template-paths.js';
|
|
5
|
+
const auth0Auth0ComponentsImportsTask = createGeneratorTask({
|
|
6
|
+
dependencies: {
|
|
7
|
+
paths: AUTH0_AUTH0_COMPONENTS_PATHS.provider,
|
|
8
|
+
},
|
|
9
|
+
exports: {
|
|
10
|
+
authComponentsImports: authComponentsImportsProvider.export(packageScope),
|
|
11
|
+
},
|
|
12
|
+
run({ paths }) {
|
|
13
|
+
return {
|
|
14
|
+
providers: {
|
|
15
|
+
authComponentsImports: createTsImportMap(authComponentsImportsSchema, {
|
|
16
|
+
RequireAuth: paths.requireAuth,
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
export const AUTH0_AUTH0_COMPONENTS_IMPORTS = {
|
|
23
|
+
task: auth0Auth0ComponentsImportsTask,
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ts-import-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IAC1D,YAAY,EAAE;QACZ,KAAK,EAAE,4BAA4B,CAAC,QAAQ;KAC7C;IACD,OAAO,EAAE;QACP,qBAAqB,EAAE,6BAA6B,CAAC,MAAM,CAAC,YAAY,CAAC;KAC1E;IACD,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,qBAAqB,EAAE,iBAAiB,CAAC,2BAA2B,EAAE;oBACpE,WAAW,EAAE,KAAK,CAAC,WAAW;iBAC/B,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,IAAI,EAAE,+BAA+B;CACtC,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
export declare const AUTH0_AUTH0_COMPONENTS_TEMPLATES: {
|
|
2
|
+
requireAuth: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
3
|
+
reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
4
|
+
AddOptionRequiredFields: {
|
|
5
|
+
isTypeOnly: true;
|
|
6
|
+
};
|
|
7
|
+
Alert: {};
|
|
8
|
+
Button: {};
|
|
9
|
+
buttonVariants: {};
|
|
10
|
+
Calendar: {};
|
|
11
|
+
Card: {};
|
|
12
|
+
Checkbox: {};
|
|
13
|
+
CheckboxField: {};
|
|
14
|
+
CheckboxFieldController: {};
|
|
15
|
+
CheckedInput: {};
|
|
16
|
+
CircularProgress: {};
|
|
17
|
+
cn: {};
|
|
18
|
+
Combobox: {};
|
|
19
|
+
ComboboxField: {};
|
|
20
|
+
ComboboxFieldController: {};
|
|
21
|
+
ConfirmDialog: {};
|
|
22
|
+
DatePickerField: {};
|
|
23
|
+
DatePickerFieldController: {};
|
|
24
|
+
DateTimePickerField: {};
|
|
25
|
+
DateTimePickerFieldController: {};
|
|
26
|
+
Dialog: {};
|
|
27
|
+
DialogClose: {};
|
|
28
|
+
DialogContent: {};
|
|
29
|
+
DialogDescription: {};
|
|
30
|
+
DialogFooter: {};
|
|
31
|
+
DialogHeader: {};
|
|
32
|
+
DialogOverlay: {};
|
|
33
|
+
DialogPortal: {};
|
|
34
|
+
DialogTitle: {};
|
|
35
|
+
DialogTrigger: {};
|
|
36
|
+
DialogWidth: {
|
|
37
|
+
isTypeOnly: true;
|
|
38
|
+
};
|
|
39
|
+
EmptyDisplay: {};
|
|
40
|
+
ErrorableLoader: {};
|
|
41
|
+
ErrorDisplay: {};
|
|
42
|
+
FormControl: {};
|
|
43
|
+
FormDescription: {};
|
|
44
|
+
FormFieldProps: {
|
|
45
|
+
isTypeOnly: true;
|
|
46
|
+
};
|
|
47
|
+
FormItem: {};
|
|
48
|
+
FormLabel: {};
|
|
49
|
+
FormMessage: {};
|
|
50
|
+
IconElement: {
|
|
51
|
+
isTypeOnly: true;
|
|
52
|
+
};
|
|
53
|
+
Input: {};
|
|
54
|
+
InputField: {};
|
|
55
|
+
InputFieldController: {};
|
|
56
|
+
inputVariants: {};
|
|
57
|
+
Label: {};
|
|
58
|
+
LinkButton: {};
|
|
59
|
+
ListGroup: {};
|
|
60
|
+
Loader: {};
|
|
61
|
+
mergeRefs: {};
|
|
62
|
+
Modal: {};
|
|
63
|
+
MultiSelectOptionProps: {
|
|
64
|
+
isTypeOnly: true;
|
|
65
|
+
};
|
|
66
|
+
NavigationMenu: {};
|
|
67
|
+
NavigationMenuContent: {};
|
|
68
|
+
NavigationMenuIndicator: {};
|
|
69
|
+
NavigationMenuItem: {};
|
|
70
|
+
NavigationMenuItemWithLink: {};
|
|
71
|
+
NavigationMenuLink: {};
|
|
72
|
+
NavigationMenuList: {};
|
|
73
|
+
NavigationMenuTrigger: {};
|
|
74
|
+
navigationMenuTriggerStyle: {};
|
|
75
|
+
NavigationMenuViewport: {};
|
|
76
|
+
NotFoundCard: {};
|
|
77
|
+
Popover: {};
|
|
78
|
+
PopoverAnchor: {};
|
|
79
|
+
PopoverContent: {};
|
|
80
|
+
PopoverTrigger: {};
|
|
81
|
+
ReactDatePickerInput: {};
|
|
82
|
+
ReactSelectInput: {};
|
|
83
|
+
ScrollArea: {};
|
|
84
|
+
Select: {};
|
|
85
|
+
selectCheckVariants: {};
|
|
86
|
+
selectContentVariants: {};
|
|
87
|
+
SelectField: {};
|
|
88
|
+
SelectFieldController: {};
|
|
89
|
+
SelectInput: {};
|
|
90
|
+
selectItemVariants: {};
|
|
91
|
+
SelectOptionProps: {
|
|
92
|
+
isTypeOnly: true;
|
|
93
|
+
};
|
|
94
|
+
selectTriggerVariants: {};
|
|
95
|
+
SidebarLayout: {};
|
|
96
|
+
SidebarLayoutContent: {};
|
|
97
|
+
SidebarLayoutSidebar: {};
|
|
98
|
+
Status: {
|
|
99
|
+
isTypeOnly: true;
|
|
100
|
+
};
|
|
101
|
+
StatusType: {
|
|
102
|
+
isTypeOnly: true;
|
|
103
|
+
};
|
|
104
|
+
Switch: {};
|
|
105
|
+
SwitchField: {};
|
|
106
|
+
SwitchFieldController: {};
|
|
107
|
+
Table: {};
|
|
108
|
+
TableBody: {};
|
|
109
|
+
TableCaption: {};
|
|
110
|
+
TableCell: {};
|
|
111
|
+
TableFooter: {};
|
|
112
|
+
TableHead: {};
|
|
113
|
+
TableHeader: {};
|
|
114
|
+
TableRow: {};
|
|
115
|
+
Textarea: {};
|
|
116
|
+
TextareaField: {};
|
|
117
|
+
TextareaFieldController: {};
|
|
118
|
+
TextAreaInput: {};
|
|
119
|
+
TextInput: {};
|
|
120
|
+
Toaster: {};
|
|
121
|
+
useConfirmDialog: {};
|
|
122
|
+
UseConfirmDialogRequestOptions: {
|
|
123
|
+
isTypeOnly: true;
|
|
124
|
+
};
|
|
125
|
+
useConfirmDialogState: {};
|
|
126
|
+
useControlledState: {};
|
|
127
|
+
useControllerMerged: {};
|
|
128
|
+
useStatus: {};
|
|
129
|
+
}>>;
|
|
130
|
+
}>;
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=typed-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/typed-templates.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createTsTemplateFile } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { reactComponentsImportsProvider } from '@baseplate-dev/react-generators';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
const requireAuth = createTsTemplateFile({
|
|
5
|
+
fileOptions: { kind: 'singleton' },
|
|
6
|
+
importMapProviders: {
|
|
7
|
+
reactComponentsImports: reactComponentsImportsProvider,
|
|
8
|
+
},
|
|
9
|
+
name: 'require-auth',
|
|
10
|
+
projectExports: { RequireAuth: {} },
|
|
11
|
+
source: {
|
|
12
|
+
path: path.join(import.meta.dirname, '../templates/src/components/require-auth/require-auth.tsx'),
|
|
13
|
+
},
|
|
14
|
+
variables: {},
|
|
15
|
+
});
|
|
16
|
+
export const AUTH0_AUTH0_COMPONENTS_TEMPLATES = { requireAuth };
|
|
17
|
+
//# sourceMappingURL=typed-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,WAAW,GAAG,oBAAoB,CAAC;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,sBAAsB,EAAE,8BAA8B;KACvD;IACD,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;IACnC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2DAA2D,CAC5D;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ReactElement } from 'react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Loader } from '%reactComponentsImports';
|
|
6
6
|
import { withAuthenticationRequired } from '@auth0/auth0-react';
|
|
7
7
|
|
|
8
8
|
interface Props {
|
|
9
9
|
children: ReactElement;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function RequireAuthRoot({ children }: Props): ReactElement {
|
|
13
13
|
return children;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export const RequireAuth = withAuthenticationRequired(RequireAuthRoot, {
|
|
17
17
|
onRedirecting: () => (
|
|
18
18
|
<div className="flex h-full items-center justify-center">
|
|
19
|
-
<
|
|
19
|
+
<Loader />
|
|
20
20
|
</div>
|
|
21
21
|
),
|
|
22
22
|
});
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export declare const auth0HooksGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
|
|
2
2
|
userQueryName?: string | undefined;
|
|
3
3
|
}, {
|
|
4
|
-
|
|
4
|
+
paths: import("@baseplate-dev/sync").GeneratorTask<{
|
|
5
|
+
auth0Auth0HooksPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").Auth0Auth0HooksPaths>;
|
|
6
|
+
}, {
|
|
7
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
imports: import("@baseplate-dev/sync").GeneratorTask<{
|
|
5
10
|
authHooksImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
6
11
|
SessionData: {
|
|
7
12
|
isTypeOnly: true;
|
|
@@ -11,7 +16,9 @@ export declare const auth0HooksGenerator: import("@baseplate-dev/sync").Generato
|
|
|
11
16
|
useRequiredUserId: {};
|
|
12
17
|
useSession: {};
|
|
13
18
|
}>>;
|
|
14
|
-
},
|
|
19
|
+
}, {
|
|
20
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0HooksPaths>;
|
|
21
|
+
}, undefined>;
|
|
15
22
|
main: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
16
23
|
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
17
24
|
reactApollo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/react-generators").ReactApolloProvider>;
|
|
@@ -23,6 +30,7 @@ export declare const auth0HooksGenerator: import("@baseplate-dev/sync").Generato
|
|
|
23
30
|
generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
24
31
|
'*': {};
|
|
25
32
|
}>>;
|
|
33
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0HooksPaths>;
|
|
26
34
|
}, any>;
|
|
27
35
|
}>;
|
|
28
36
|
//# sourceMappingURL=auth0-hooks.generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth0-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyD9B,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { createGenerator, createGeneratorTask
|
|
1
|
+
import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { generatedGraphqlImportsProvider, reactApolloProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
|
|
3
|
+
import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import {
|
|
6
|
-
import { createAuth0HooksImports } from './generated/ts-import-maps.js';
|
|
7
|
-
import { AUTH_0_AUTH_0_HOOKS_TS_TEMPLATES } from './generated/ts-templates.js';
|
|
5
|
+
import { AUTH0_AUTH0_HOOKS_GENERATED } from './generated/index.js';
|
|
8
6
|
const descriptorSchema = z.object({
|
|
9
7
|
userQueryName: z.string().default('user'),
|
|
10
8
|
});
|
|
@@ -13,31 +11,22 @@ export const auth0HooksGenerator = createGenerator({
|
|
|
13
11
|
generatorFileUrl: import.meta.url,
|
|
14
12
|
descriptorSchema,
|
|
15
13
|
buildTasks: ({ userQueryName }) => ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
authHooksImports: authHooksImportsProvider.export(projectScope),
|
|
19
|
-
},
|
|
20
|
-
run() {
|
|
21
|
-
return {
|
|
22
|
-
providers: {
|
|
23
|
-
authHooksImports: createAuth0HooksImports('@/src/hooks'),
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
14
|
+
paths: AUTH0_AUTH0_HOOKS_GENERATED.paths.task,
|
|
15
|
+
imports: AUTH0_AUTH0_HOOKS_GENERATED.imports.task,
|
|
28
16
|
main: createGeneratorTask({
|
|
29
17
|
dependencies: {
|
|
30
18
|
typescriptFile: typescriptFileProvider,
|
|
31
19
|
reactApollo: reactApolloProvider,
|
|
32
20
|
reactErrorImports: reactErrorImportsProvider,
|
|
33
21
|
generatedGraphqlImports: generatedGraphqlImportsProvider,
|
|
22
|
+
paths: AUTH0_AUTH0_HOOKS_GENERATED.paths.provider,
|
|
34
23
|
},
|
|
35
|
-
run({ typescriptFile, reactErrorImports, generatedGraphqlImports, reactApollo, }) {
|
|
24
|
+
run({ typescriptFile, reactErrorImports, generatedGraphqlImports, reactApollo, paths, }) {
|
|
36
25
|
return {
|
|
37
26
|
build: async (builder) => {
|
|
38
27
|
await builder.apply(typescriptFile.renderTemplateGroup({
|
|
39
|
-
group:
|
|
40
|
-
|
|
28
|
+
group: AUTH0_AUTH0_HOOKS_GENERATED.templates.hooksGroup,
|
|
29
|
+
paths,
|
|
41
30
|
variables: {
|
|
42
31
|
useCurrentUser: {
|
|
43
32
|
TPL_USER: userQueryName,
|
|
@@ -49,13 +38,13 @@ export const auth0HooksGenerator = createGenerator({
|
|
|
49
38
|
},
|
|
50
39
|
}));
|
|
51
40
|
await builder.apply(renderTextTemplateFileAction({
|
|
52
|
-
template:
|
|
53
|
-
destination:
|
|
41
|
+
template: AUTH0_AUTH0_HOOKS_GENERATED.templates.useCurrentUserGql,
|
|
42
|
+
destination: paths.useCurrentUserGql,
|
|
54
43
|
variables: {
|
|
55
44
|
TPL_USER_QUERY_NAME: userQueryName,
|
|
56
45
|
},
|
|
57
46
|
}));
|
|
58
|
-
reactApollo.registerGqlFile(
|
|
47
|
+
reactApollo.registerGqlFile(paths.useCurrentUserGql);
|
|
59
48
|
},
|
|
60
49
|
};
|
|
61
50
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC;QAClC,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,cAAc,EAAE,sBAAsB;gBACtC,WAAW,EAAE,mBAAmB;gBAChC,iBAAiB,EAAE,yBAAyB;gBAC5C,uBAAuB,EAAE,+BAA+B;gBACxD,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EACF,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,WAAW,EACX,KAAK,GACN;gBACC,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,2BAA2B,CAAC,SAAS,CAAC,UAAU;4BACvD,KAAK;4BACL,SAAS,EAAE;gCACT,cAAc,EAAE;oCACd,QAAQ,EAAE,aAAa;iCACxB;6BACF;4BACD,kBAAkB,EAAE;gCAClB,uBAAuB;gCACvB,iBAAiB;6BAClB;yBACF,CAAC,CACH,CAAC;wBAEF,MAAM,OAAO,CAAC,KAAK,CACjB,4BAA4B,CAAC;4BAC3B,QAAQ,EACN,2BAA2B,CAAC,SAAS,CAAC,iBAAiB;4BACzD,WAAW,EAAE,KAAK,CAAC,iBAAiB;4BACpC,SAAS,EAAE;gCACT,mBAAmB,EAAE,aAAa;6BACnC;yBACF,CAAC,CACH,CAAC;wBAEF,WAAW,CAAC,eAAe,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;oBACvD,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const AUTH0_AUTH0_HOOKS_GENERATED: {
|
|
2
|
+
imports: {
|
|
3
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
|
+
authHooksImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
|
+
SessionData: {
|
|
6
|
+
isTypeOnly: true;
|
|
7
|
+
};
|
|
8
|
+
useCurrentUser: {};
|
|
9
|
+
useLogOut: {};
|
|
10
|
+
useRequiredUserId: {};
|
|
11
|
+
useSession: {};
|
|
12
|
+
}>>;
|
|
13
|
+
}, {
|
|
14
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0HooksPaths>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
};
|
|
17
|
+
paths: {
|
|
18
|
+
provider: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0HooksPaths>;
|
|
19
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
20
|
+
auth0Auth0HooksPaths: import("@baseplate-dev/sync").ProviderExport<import("./template-paths.js").Auth0Auth0HooksPaths>;
|
|
21
|
+
}, {
|
|
22
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
};
|
|
25
|
+
templates: {
|
|
26
|
+
useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{
|
|
27
|
+
TPL_USER_QUERY_NAME: {
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
hooksGroup: {
|
|
32
|
+
useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
33
|
+
TPL_USER: {};
|
|
34
|
+
}, {
|
|
35
|
+
generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
36
|
+
'*': {};
|
|
37
|
+
}>>;
|
|
38
|
+
}>;
|
|
39
|
+
useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
40
|
+
reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
41
|
+
formatError: {};
|
|
42
|
+
logAndFormatError: {};
|
|
43
|
+
logError: {};
|
|
44
|
+
}>>;
|
|
45
|
+
}>;
|
|
46
|
+
useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
|
|
47
|
+
useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvC,CAAC"}
|