@baseplate-dev/plugin-auth 3.0.1 → 3.0.2

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.
Files changed (153) hide show
  1. package/dist/auth/core/components/auth-definition-editor.js +1 -1
  2. package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
  3. package/dist/auth/core/schema/plugin-definition.d.ts +6 -39
  4. package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
  5. package/dist/auth/core/schema/roles/schema.d.ts +7 -27
  6. package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
  7. package/dist/auth/core/schema/roles/schema.js +1 -1
  8. package/dist/auth/core/schema/roles/schema.js.map +1 -1
  9. package/dist/auth0/core/components/auth0-definition-editor.js +1 -1
  10. package/dist/auth0/core/components/auth0-definition-editor.js.map +1 -1
  11. package/dist/auth0/core/schema/plugin-definition.d.ts +1 -1
  12. package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
  13. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +1 -1
  14. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +1 -1
  15. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +1 -1
  16. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +1 -1
  17. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +1 -1
  18. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  19. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +1 -1
  20. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  21. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +1 -1
  22. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +1 -1
  23. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
  24. package/dist/local-auth/admin/schema/manage-role-action.d.ts +5 -11
  25. package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -1
  26. package/dist/local-auth/admin/schema/reset-password-action.d.ts +5 -11
  27. package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -1
  28. package/dist/local-auth/admin/schema/roles-column.d.ts +1 -10
  29. package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -1
  30. package/dist/local-auth/core/components/local-auth-definition-editor.js +1 -1
  31. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
  32. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +2 -2
  33. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  34. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +0 -1
  35. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  36. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +0 -1
  37. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +2 -2
  38. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +2 -2
  39. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +1 -1
  40. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +2 -2
  41. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +2 -2
  42. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +3 -3
  43. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +1 -1
  44. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +4 -4
  45. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +3 -11
  46. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
  47. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -4
  48. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  49. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -4
  50. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +3 -11
  51. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  52. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -4
  53. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  54. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -4
  55. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +1 -1
  56. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -1
  57. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts +1 -1
  58. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +1 -1
  59. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +3 -3
  60. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +2 -2
  61. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +1 -1
  62. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +2 -2
  63. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  64. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +16 -0
  65. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  66. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +17 -0
  67. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -1
  68. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +8 -2
  69. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -1
  70. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +8 -2
  71. package/dist/local-auth/core/schema/plugin-definition.d.ts +3 -9
  72. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
  73. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +1 -1
  74. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
  75. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
  76. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +1 -1
  77. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +1 -1
  78. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +1 -1
  79. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
  80. package/dist/web/assets/{__federation_expose_auth0CoreCommon-xk1Gj1WU.js → __federation_expose_auth0CoreCommon-DxPG_Wc0.js} +3 -3
  81. package/dist/web/assets/{__federation_expose_auth0CoreCommon-xk1Gj1WU.js.map → __federation_expose_auth0CoreCommon-DxPG_Wc0.js.map} +1 -1
  82. package/dist/web/assets/{__federation_expose_auth0CoreWeb-CAiUkJwE.js → __federation_expose_auth0CoreWeb-B9jV1EyN.js} +7 -7
  83. package/dist/web/assets/__federation_expose_auth0CoreWeb-B9jV1EyN.js.map +1 -0
  84. package/dist/web/assets/{__federation_expose_authCoreCommon-K21saJbW.js → __federation_expose_authCoreCommon-Cxa_7fkO.js} +3 -3
  85. package/dist/web/assets/{__federation_expose_authCoreCommon-K21saJbW.js.map → __federation_expose_authCoreCommon-Cxa_7fkO.js.map} +1 -1
  86. package/dist/web/assets/{__federation_expose_authCoreWeb-L7mv-Kl9.js → __federation_expose_authCoreWeb-CTQI1rXb.js} +9 -9
  87. package/dist/web/assets/__federation_expose_authCoreWeb-CTQI1rXb.js.map +1 -0
  88. package/dist/web/assets/{__federation_expose_local-authAdminCommon-BcMGRCCu.js → __federation_expose_local-authAdminCommon-C0_ovnDb.js} +2 -2
  89. package/dist/web/assets/{__federation_expose_local-authAdminCommon-BcMGRCCu.js.map → __federation_expose_local-authAdminCommon-C0_ovnDb.js.map} +1 -1
  90. package/dist/web/assets/{__federation_expose_local-authAdminWeb-DUY1rKEt.js → __federation_expose_local-authAdminWeb-GqHU6av7.js} +2 -2
  91. package/dist/web/assets/{__federation_expose_local-authAdminWeb-DUY1rKEt.js.map → __federation_expose_local-authAdminWeb-GqHU6av7.js.map} +1 -1
  92. package/dist/web/assets/{__federation_expose_local-authCoreCommon-B1wtgXDT.js → __federation_expose_local-authCoreCommon-PHXPCKoj.js} +3 -3
  93. package/dist/web/assets/{__federation_expose_local-authCoreCommon-B1wtgXDT.js.map → __federation_expose_local-authCoreCommon-PHXPCKoj.js.map} +1 -1
  94. package/dist/web/assets/{__federation_expose_local-authCoreWeb-CSWj3XON.js → __federation_expose_local-authCoreWeb-Dz4oU0uP.js} +7 -7
  95. package/dist/web/assets/__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map +1 -0
  96. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-BTZdABuy.js → __federation_expose_placeholder-authCoreCommon-CrB_sJO_.js} +3 -3
  97. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-BTZdABuy.js.map → __federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map} +1 -1
  98. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-DXc_X2aO.js → __federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js} +7 -7
  99. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map +1 -0
  100. package/dist/web/assets/{__federation_fn_import-BVpKhyMw.js → __federation_fn_import-CVjKjdRb.js} +2 -2
  101. package/dist/web/assets/{__federation_fn_import-BVpKhyMw.js.map → __federation_fn_import-CVjKjdRb.js.map} +1 -1
  102. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-gdwlRH2l.js → web-BTmJxb08.js} +11 -6
  103. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BTmJxb08.js.map +1 -0
  104. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-BvJ1_iif.js → project-builder-lib-FK4Jv94w.js} +620 -644
  105. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +1 -0
  106. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-E30UR3cY.js → ui-components-jZLf5m_y.js} +5 -5
  107. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-E30UR3cY.js.map → ui-components-jZLf5m_y.js.map} +1 -1
  108. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-Ciu7eAT9.js → utils-CAgM5SRt.js} +47 -48
  109. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +1 -0
  110. package/dist/web/assets/__federation_shared_@tanstack/{react-router-AU7vpPwr.js → react-router-DynsSbJG.js} +2541 -2240
  111. package/dist/web/assets/__federation_shared_@tanstack/react-router-DynsSbJG.js.map +1 -0
  112. package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js +12007 -0
  113. package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js.map +1 -0
  114. package/dist/web/assets/{get-auth-plugin-definition-CHOjVGaq.js → get-auth-plugin-definition-DqZ2Eg7c.js} +2 -2
  115. package/dist/web/assets/{get-auth-plugin-definition-CHOjVGaq.js.map → get-auth-plugin-definition-DqZ2Eg7c.js.map} +1 -1
  116. package/dist/web/assets/{index-DqPqnxYC.js → index-Dccn3WBN.js} +2 -2
  117. package/dist/web/assets/{index-DqPqnxYC.js.map → index-Dccn3WBN.js.map} +1 -1
  118. package/dist/web/assets/{index.esm-DUunUtBj.js → index.esm-DeCjXqFv.js} +2 -2
  119. package/dist/web/assets/{index.esm-DUunUtBj.js.map → index.esm-DeCjXqFv.js.map} +1 -1
  120. package/dist/web/assets/{model-merger-CI1pu411.js → model-merger-kOQ_dmiE.js} +326 -170
  121. package/dist/web/assets/model-merger-kOQ_dmiE.js.map +1 -0
  122. package/dist/web/assets/{plugin-definition-CIiMl7Zf.js → plugin-definition-CxKhFkmJ.js} +3 -3
  123. package/dist/web/assets/plugin-definition-CxKhFkmJ.js.map +1 -0
  124. package/dist/web/assets/{plugin-definition--cfUfY5Z.js → plugin-definition-DKygiFuR.js} +2 -2
  125. package/dist/web/assets/{plugin-definition--cfUfY5Z.js.map → plugin-definition-DKygiFuR.js.map} +1 -1
  126. package/dist/web/assets/{plugin-definition-BzhiPIBh.js → plugin-definition-JFxKP18O.js} +2 -2
  127. package/dist/web/assets/{plugin-definition-BzhiPIBh.js.map → plugin-definition-JFxKP18O.js.map} +1 -1
  128. package/dist/web/assets/{plugin-definition-BYzEIUL9.js → plugin-definition-qkkt1X28.js} +2 -2
  129. package/dist/web/assets/{plugin-definition-BYzEIUL9.js.map → plugin-definition-qkkt1X28.js.map} +1 -1
  130. package/dist/web/assets/{react-DW8S9iUr.js → react-DA5A88WZ.js} +2 -2
  131. package/dist/web/assets/{react-DW8S9iUr.js.map → react-DA5A88WZ.js.map} +1 -1
  132. package/dist/web/assets/registries-19UehlAo.js +1081 -0
  133. package/dist/web/assets/registries-19UehlAo.js.map +1 -0
  134. package/dist/web/assets/remoteEntry.js +10 -10
  135. package/dist/web/assets/styles-CfTjrsB-.js +59 -0
  136. package/dist/web/assets/styles-CfTjrsB-.js.map +1 -0
  137. package/package.json +15 -15
  138. package/dist/index.js.map +0 -1
  139. package/dist/web/assets/__federation_expose_auth0CoreWeb-CAiUkJwE.js.map +0 -1
  140. package/dist/web/assets/__federation_expose_authCoreWeb-L7mv-Kl9.js.map +0 -1
  141. package/dist/web/assets/__federation_expose_local-authCoreWeb-CSWj3XON.js.map +0 -1
  142. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DXc_X2aO.js.map +0 -1
  143. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-gdwlRH2l.js.map +0 -1
  144. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-BvJ1_iif.js.map +0 -1
  145. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Ciu7eAT9.js.map +0 -1
  146. package/dist/web/assets/__federation_shared_@tanstack/react-router-AU7vpPwr.js.map +0 -1
  147. package/dist/web/assets/__federation_shared_zod-BGUJlEOa.js +0 -4291
  148. package/dist/web/assets/__federation_shared_zod-BGUJlEOa.js.map +0 -1
  149. package/dist/web/assets/model-merger-CI1pu411.js.map +0 -1
  150. package/dist/web/assets/plugin-definition-CIiMl7Zf.js.map +0 -1
  151. package/dist/web/assets/styles-N05E1ZaS.js +0 -58
  152. package/dist/web/assets/styles-N05E1ZaS.js.map +0 -1
  153. package/dist/web-export.js.map +0 -1
@@ -24,8 +24,8 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_RENDERERS: {
24
24
  logError: {};
25
25
  }>>;
26
26
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
27
- userSessionClient: {};
28
27
  UserSessionClient: {};
28
+ userSessionClient: {};
29
29
  }>>;
30
30
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
31
31
  }, undefined>;
@@ -20,8 +20,8 @@ export declare const hooksGroup: {
20
20
  logError: {};
21
21
  }>>;
22
22
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
23
- userSessionClient: {};
24
23
  UserSessionClient: {};
24
+ userSessionClient: {};
25
25
  }>>;
26
26
  }, Record<never, Record<never, never>>>;
27
27
  useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
@@ -56,8 +56,8 @@ export declare const LOCAL_AUTH_CORE_AUTH_HOOKS_TEMPLATES: {
56
56
  logError: {};
57
57
  }>>;
58
58
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
59
- userSessionClient: {};
60
59
  UserSessionClient: {};
60
+ userSessionClient: {};
61
61
  }>>;
62
62
  }, Record<never, Record<never, never>>>;
63
63
  useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Generator for auth routes for logging in and registering
3
3
  */
4
- export declare const authRoutesGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
4
+ export declare const authRoutesGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
5
5
  paths: import("@baseplate-dev/sync").GeneratorTask<{
6
6
  authCoreAuthRoutesPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").AuthCoreAuthRoutesPaths>;
7
7
  }, {
@@ -234,8 +234,8 @@ export declare const authRoutesGenerator: import("@baseplate-dev/sync").Generato
234
234
  logError: {};
235
235
  }>>;
236
236
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
237
- userSessionClient: {};
238
237
  UserSessionClient: {};
238
+ userSessionClient: {};
239
239
  }>>;
240
240
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
241
241
  }, undefined>;
@@ -236,8 +236,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
236
236
  logError: {};
237
237
  }>>;
238
238
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
239
- userSessionClient: {};
240
239
  UserSessionClient: {};
240
+ userSessionClient: {};
241
241
  }>>;
242
242
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
243
243
  }, undefined>;
@@ -468,8 +468,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
468
468
  logError: {};
469
469
  }>>;
470
470
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
471
- userSessionClient: {};
472
471
  UserSessionClient: {};
472
+ userSessionClient: {};
473
473
  }>>;
474
474
  }, Record<never, Record<never, never>>>;
475
475
  register: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
@@ -696,8 +696,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
696
696
  logError: {};
697
697
  }>>;
698
698
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
699
- userSessionClient: {};
700
699
  UserSessionClient: {};
700
+ userSessionClient: {};
701
701
  }>>;
702
702
  }, Record<never, Record<never, never>>>;
703
703
  route: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
@@ -238,8 +238,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_RENDERERS: {
238
238
  logError: {};
239
239
  }>>;
240
240
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
241
- userSessionClient: {};
242
241
  UserSessionClient: {};
242
+ userSessionClient: {};
243
243
  }>>;
244
244
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
245
245
  }, undefined>;
@@ -223,8 +223,8 @@ export declare const mainGroup: {
223
223
  logError: {};
224
224
  }>>;
225
225
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
226
- userSessionClient: {};
227
226
  UserSessionClient: {};
227
+ userSessionClient: {};
228
228
  }>>;
229
229
  }, Record<never, Record<never, never>>>;
230
230
  register: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
@@ -451,8 +451,8 @@ export declare const mainGroup: {
451
451
  logError: {};
452
452
  }>>;
453
453
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
454
- userSessionClient: {};
455
454
  UserSessionClient: {};
455
+ userSessionClient: {};
456
456
  }>>;
457
457
  }, Record<never, Record<never, never>>>;
458
458
  route: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
@@ -683,8 +683,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
683
683
  logError: {};
684
684
  }>>;
685
685
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
686
- userSessionClient: {};
687
686
  UserSessionClient: {};
687
+ userSessionClient: {};
688
688
  }>>;
689
689
  }, Record<never, Record<never, never>>>;
690
690
  register: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
@@ -911,8 +911,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
911
911
  logError: {};
912
912
  }>>;
913
913
  reactSessionImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
914
- userSessionClient: {};
915
914
  UserSessionClient: {};
915
+ userSessionClient: {};
916
916
  }>>;
917
917
  }, Record<never, Record<never, never>>>;
918
918
  route: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
@@ -1,15 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const Route: import("@tanstack/router-core").Route<never, never, never, never, never, z.ZodObject<{
2
+ export declare const Route: import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, never, never, never, never, never, z.ZodObject<{
3
3
  return_to: z.ZodOptional<z.ZodString>;
4
- }, "strip", z.ZodTypeAny, {
5
- return_to?: string | undefined;
6
- }, {
7
- return_to?: string | undefined;
8
- }>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<never, z.ZodObject<{
4
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<import("@tanstack/react-router").Register, never, z.ZodObject<{
9
5
  return_to: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- return_to?: string | undefined;
12
- }, {
13
- return_to?: string | undefined;
14
- }>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext>) => void, {}, undefined, unknown, unknown>;
6
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
15
7
  //# sourceMappingURL=login.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;;;;;;;;;+LAahB,CAAC"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;+PAahB,CAAC"}
@@ -27,10 +27,7 @@ export const Route = createFileRoute('/auth_/login')({
27
27
  });
28
28
  const PASSWORD_MIN_LENGTH = 8;
29
29
  const formSchema = z.object({
30
- email: z
31
- .string()
32
- .email()
33
- .transform((value) => value.toLowerCase()),
30
+ email: z.email().transform((value) => value.toLowerCase()),
34
31
  password: z.string().min(PASSWORD_MIN_LENGTH),
35
32
  });
36
33
  function LoginPage() {
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/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IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,kBAAkB,EAC/B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,sBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,uCACX,GAAG,EAC/B,KAAC,IAAI,IAAC,EAAE,EAAC,gBAAgB,EAAC,SAAS,EAAC,8BAA8B,wBAE3D,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC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,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,eACH,MAAC,UAAU,eACT,KAAC,SAAS,wCAAkC,EAC5C,KAAC,eAAe,kEAEE,IACP,EACb,KAAC,WAAW,cACV,gBAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,kBAAkB,EAC/B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,sBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,uCACX,GAAG,EAC/B,KAAC,IAAI,IAAC,EAAE,EAAC,gBAAgB,EAAC,SAAS,EAAC,8BAA8B,wBAE3D,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
@@ -43,10 +43,7 @@ export const Route = createFileRoute('/auth_/login')({
43
43
  const PASSWORD_MIN_LENGTH = 8;
44
44
 
45
45
  const formSchema = z.object({
46
- email: z
47
- .string()
48
- .email()
49
- .transform((value) => value.toLowerCase()),
46
+ email: z.email().transform((value) => value.toLowerCase()),
50
47
  password: z.string().min(PASSWORD_MIN_LENGTH),
51
48
  });
52
49
 
@@ -1,15 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const Route: import("@tanstack/router-core").Route<never, never, never, never, never, z.ZodObject<{
2
+ export declare const Route: import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, never, never, never, never, never, z.ZodObject<{
3
3
  return_to: z.ZodOptional<z.ZodString>;
4
- }, "strip", z.ZodTypeAny, {
5
- return_to?: string | undefined;
6
- }, {
7
- return_to?: string | undefined;
8
- }>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<never, z.ZodObject<{
4
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<import("@tanstack/react-router").Register, never, z.ZodObject<{
9
5
  return_to: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- return_to?: string | undefined;
12
- }, {
13
- return_to?: string | undefined;
14
- }>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext>) => void, {}, undefined, unknown, unknown>;
6
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
15
7
  //# sourceMappingURL=register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;;;;;;;;;+LAahB,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;+PAahB,CAAC"}
@@ -27,10 +27,7 @@ export const Route = createFileRoute('/auth_/register')({
27
27
  });
28
28
  const PASSWORD_MIN_LENGTH = 8;
29
29
  const formSchema = z.object({
30
- email: z
31
- .string()
32
- .email()
33
- .transform((value) => value.toLowerCase()),
30
+ email: z.email().transform((value) => value.toLowerCase()),
34
31
  password: z.string().min(PASSWORD_MIN_LENGTH),
35
32
  });
36
33
  function RegisterPage() {
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC;QACvB,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,KAAK,CAAC,sCAAsC,CAAC;aAC7C,QAAQ,EAAE;KACd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,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,yBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,yCACd,GAAG,EAC5B,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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gBAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,yBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,yCACd,GAAG,EAC5B,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
@@ -43,10 +43,7 @@ export const Route = createFileRoute('/auth_/register')({
43
43
  const PASSWORD_MIN_LENGTH = 8;
44
44
 
45
45
  const formSchema = z.object({
46
- email: z
47
- .string()
48
- .email()
49
- .transform((value) => value.toLowerCase()),
46
+ email: z.email().transform((value) => value.toLowerCase()),
50
47
  password: z.string().min(PASSWORD_MIN_LENGTH),
51
48
  });
52
49
 
@@ -1,2 +1,2 @@
1
- export declare const Route: import("@tanstack/router-core").Route<never, never, never, never, never, undefined, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown>;
1
+ export declare const Route: import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, never, never, never, never, never, undefined, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
2
2
  //# sourceMappingURL=route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/route.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,oTAEhB,CAAC"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/route.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,4XAEhB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Generator for basic React auth integrations
3
3
  */
4
- export declare const reactAuthGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
4
+ export declare const reactAuthGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
5
5
  reactAuth: import("@baseplate-dev/sync").GeneratorTask<{
6
6
  reactAuthRoutes: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/react-generators").ReactAuthRoutesProvider>;
7
7
  }, any, any>;
@@ -2,8 +2,8 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
2
2
  imports: {
3
3
  task: import("@baseplate-dev/sync").GeneratorTask<{
4
4
  reactSessionImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
5
- userSessionClient: {};
6
5
  UserSessionClient: {};
6
+ userSessionClient: {};
7
7
  }>>;
8
8
  }, {
9
9
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreReactSessionPaths>;
@@ -1,18 +1,18 @@
1
1
  import type { TsImportMapProviderFromSchema } from '@baseplate-dev/core-generators';
2
2
  export declare const reactSessionImportsSchema: {
3
- userSessionClient: {};
4
3
  UserSessionClient: {};
4
+ userSessionClient: {};
5
5
  };
6
6
  export type ReactSessionImportsProvider = TsImportMapProviderFromSchema<typeof reactSessionImportsSchema>;
7
7
  export declare const reactSessionImportsProvider: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
8
- userSessionClient: {};
9
8
  UserSessionClient: {};
9
+ userSessionClient: {};
10
10
  }>>;
11
11
  export declare const LOCAL_AUTH_CORE_REACT_SESSION_IMPORTS: {
12
12
  task: import("@baseplate-dev/sync").GeneratorTask<{
13
13
  reactSessionImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
14
- userSessionClient: {};
15
14
  UserSessionClient: {};
15
+ userSessionClient: {};
16
16
  }>>;
17
17
  }, {
18
18
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreReactSessionPaths>;
@@ -2,8 +2,8 @@ import { createTsImportMap, createTsImportMapSchema, packageScope, } from '@base
2
2
  import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
3
3
  import { LOCAL_AUTH_CORE_REACT_SESSION_PATHS } from './template-paths.js';
4
4
  export const reactSessionImportsSchema = createTsImportMapSchema({
5
- userSessionClient: {},
6
5
  UserSessionClient: {},
6
+ userSessionClient: {},
7
7
  });
8
8
  export const reactSessionImportsProvider = createReadOnlyProviderType('react-session-imports');
9
9
  const localAuthCoreReactSessionImportsTask = createGeneratorTask({
@@ -17,8 +17,8 @@ const localAuthCoreReactSessionImportsTask = createGeneratorTask({
17
17
  return {
18
18
  providers: {
19
19
  reactSessionImports: createTsImportMap(reactSessionImportsSchema, {
20
- userSessionClient: paths.userSessionClient,
21
20
  UserSessionClient: paths.userSessionClient,
21
+ userSessionClient: paths.userSessionClient,
22
22
  }),
23
23
  },
24
24
  };
@@ -7,7 +7,7 @@ const userSessionClient = createTsTemplateFile({
7
7
  group: 'main',
8
8
  importMapProviders: { reactUtilsImports: reactUtilsImportsProvider },
9
9
  name: 'user-session-client',
10
- projectExports: { userSessionClient: {}, UserSessionClient: {} },
10
+ projectExports: { UserSessionClient: {}, userSessionClient: {} },
11
11
  source: {
12
12
  path: path.join(import.meta.dirname, '../templates/src/services/user-session-client.ts'),
13
13
  },
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Generator for React session management
3
3
  */
4
- export declare const reactSessionGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
4
+ export declare const reactSessionGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
5
5
  paths: import("@baseplate-dev/sync").GeneratorTask<{
6
6
  localAuthCoreReactSessionPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").LocalAuthCoreReactSessionPaths>;
7
7
  }, {
@@ -9,8 +9,8 @@ export declare const reactSessionGenerator: import("@baseplate-dev/sync").Genera
9
9
  }, undefined>;
10
10
  imports: import("@baseplate-dev/sync").GeneratorTask<{
11
11
  reactSessionImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
12
- userSessionClient: {};
13
12
  UserSessionClient: {};
13
+ userSessionClient: {};
14
14
  }>>;
15
15
  }, {
16
16
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreReactSessionPaths>;
@@ -1 +1 @@
1
- {"version":3,"file":"user-session-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqD9C"}
1
+ {"version":3,"file":"user-session-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsE9C"}
@@ -40,6 +40,22 @@ export function UserSessionProvider({ children, }) {
40
40
  });
41
41
  return unsubscribe;
42
42
  }, [cachedUserId, apolloClient]);
43
+ useEffect(() => {
44
+ // Once we have server session data, sync it with the client
45
+ if (sessionQueryData) {
46
+ const serverUserId = sessionQueryData.currentUserSession?.userId;
47
+ const clientUserId = userSessionClient.getUserId();
48
+ // If server says different user (or no user), update the client
49
+ if (serverUserId !== clientUserId) {
50
+ if (serverUserId) {
51
+ userSessionClient.signIn(serverUserId);
52
+ }
53
+ else {
54
+ userSessionClient.signOut();
55
+ }
56
+ }
57
+ }
58
+ }, [sessionQueryData]);
43
59
  if (!session) {
44
60
  return _jsx(ErrorableLoader, { error: sessionError });
45
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user-session-provider.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMrD,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,GACiB;IACzB,MAAM,CAAC,YAAY,EAAE,eAA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AAO,KAAC,eAAe,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC;IAClD,CAAC;IAED,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YACxC,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"user-session-provider.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMrD,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,GACiB;IACzB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAC9C,iBAAiB,CAAC,SAAS,EAAE,CAC9B,CAAC;IACF,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,QAAQ,CAC9D,6BAA6B,EAC7B;QACE,2BAA2B,EAAE,IAAI;KAClC,CACF,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,GAA4B,EAAE;QACpD,IAAI,CAAC,gBAAgB,IAAI,YAAY,EAAE,CAAC;YACtC,kDAAkD;YAClD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,C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IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,KAAC,eAAe,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC;IAClD,CAAC;IAED,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YACxC,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC"}
@@ -61,6 +61,23 @@ export function UserSessionProvider({
61
61
  return unsubscribe;
62
62
  }, [cachedUserId, apolloClient]);
63
63
 
64
+ useEffect(() => {
65
+ // Once we have server session data, sync it with the client
66
+ if (sessionQueryData) {
67
+ const serverUserId = sessionQueryData.currentUserSession?.userId;
68
+ const clientUserId = userSessionClient.getUserId();
69
+
70
+ // If server says different user (or no user), update the client
71
+ if (serverUserId !== clientUserId) {
72
+ if (serverUserId) {
73
+ userSessionClient.signIn(serverUserId);
74
+ } else {
75
+ userSessionClient.signOut();
76
+ }
77
+ }
78
+ }
79
+ }, [sessionQueryData]);
80
+
64
81
  if (!session) {
65
82
  return <ErrorableLoader error={sessionError} />;
66
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user-session-client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,KAAK,oBAAoB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;AAEjE;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmC;IAC7D,OAAO,CAAC,eAAe,CAAC,CAAa;;IAOrC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK5B;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI;IAO1D;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;IAM/B;;;OAGG;IACH,OAAO,CAAC,SAAS;IAejB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAQ5B;;OAEG;IACH,OAAO,CAAC,eAAe;CAMxB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
1
+ {"version":3,"file":"user-session-client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,KAAK,oBAAoB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;AAEjE;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmC;IAC7D,OAAO,CAAC,eAAe,CAAC,CAAa;;IAOrC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ5B;;OAEG;IACH,OAAO,IAAI,IAAI;IAQf;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI;IAO1D;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;IAM/B;;;OAGG;IACH,OAAO,CAAC,SAAS;IAejB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAQ5B;;OAEG;IACH,OAAO,CAAC,eAAe;CAMxB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
@@ -18,15 +18,21 @@ export class UserSessionClient {
18
18
  * @param userId - The user ID to sign in
19
19
  */
20
20
  signIn(userId) {
21
+ const existingUserId = this.getUserId();
21
22
  this.setUserId(userId);
22
- this.notifyCallbacks();
23
+ if (existingUserId !== userId) {
24
+ this.notifyCallbacks();
25
+ }
23
26
  }
24
27
  /**
25
28
  * Sign out the current user
26
29
  */
27
30
  signOut() {
31
+ const existingUserId = this.getUserId();
28
32
  this.setUserId(null);
29
- this.notifyCallbacks();
33
+ if (existingUserId) {
34
+ this.notifyCallbacks();
35
+ }
30
36
  }
31
37
  /**
32
38
  * Subscribe to user ID changes
@@ -1 +1 @@
1
- {"version":3,"file":"user-session-client.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOzD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAU,mBAAmB,GAAG,aAAa,CAAC;IAC3C,OAAO,GAAG,mBAAmB,EAAE,CAAC;IAChC,SAAS,GAAG,IAAI,GAAG,EAAwB,CAAC;IACrD,eAAe,CAAc;IAErC;QACE,4DAA4D;QAC5D,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,QAA8B;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG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}
1
+ {"version":3,"file":"user-session-client.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOzD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAU,mBAAmB,GAAG,aAAa,CAAC;IAC3C,OAAO,GAAG,mBAAmB,EAAE,CAAC;IAChC,SAAS,GAAG,IAAI,GAAG,EAAwB,CAAC;IACrD,eAAe,CAAc;IAErC;QACE,4DAA4D;QAC5D,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc;QACnB,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,cAAc,KAAK,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,QAA8B;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,CACL,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,SAAS,CACzE,CAAC;IACJ,CAAC;IAED;;;OAGG;IACK,SAAS,CAAC,MAAqB;QACrC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACvC,MAAM,aAAa,GAAG,MAAM,KAAK,aAAa,CAAC;QAE/C,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QACtE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED;;OAEG;IACK,oBAAoB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,KAAK,iBAAiB,CAAC,mBAAmB,EAAE,CAAC;gBAClD,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,eAAe;QACrB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;;AAGH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
@@ -27,16 +27,22 @@ export class UserSessionClient {
27
27
  * @param userId - The user ID to sign in
28
28
  */
29
29
  signIn(userId: string): void {
30
+ const existingUserId = this.getUserId();
30
31
  this.setUserId(userId);
31
- this.notifyCallbacks();
32
+ if (existingUserId !== userId) {
33
+ this.notifyCallbacks();
34
+ }
32
35
  }
33
36
 
34
37
  /**
35
38
  * Sign out the current user
36
39
  */
37
40
  signOut(): void {
41
+ const existingUserId = this.getUserId();
38
42
  this.setUserId(null);
39
- this.notifyCallbacks();
43
+ if (existingUserId) {
44
+ this.notifyCallbacks();
45
+ }
40
46
  }
41
47
 
42
48
  /**
@@ -1,15 +1,9 @@
1
1
  import type { def } from '@baseplate-dev/project-builder-lib';
2
2
  import { z } from 'zod';
3
3
  export declare const createLocalAuthPluginDefinitionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
4
- initialUserRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
5
- userAdminRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
6
- }, "strip", z.ZodTypeAny, {
7
- userAdminRoles?: string[] | undefined;
8
- initialUserRoles?: string[] | undefined;
9
- }, {
10
- userAdminRoles?: string[] | undefined;
11
- initialUserRoles?: string[] | undefined;
12
- }>;
4
+ initialUserRoles: z.ZodOptional<z.ZodType<string[] | undefined, string[] | undefined, z.core.$ZodTypeInternals<string[] | undefined, string[] | undefined>>>;
5
+ userAdminRoles: z.ZodOptional<z.ZodType<string[] | undefined, string[] | undefined, z.core.$ZodTypeInternals<string[] | undefined, string[] | undefined>>>;
6
+ }, z.core.$strip>;
13
7
  export type LocalAuthPluginDefinition = def.InferOutput<typeof createLocalAuthPluginDefinitionSchema>;
14
8
  export type LocalAuthPluginDefinitionInput = def.InferInput<typeof createLocalAuthPluginDefinitionSchema>;
15
9
  //# sourceMappingURL=plugin-definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;;;;;;;;EAqBjD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,WAAW,CACrD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,UAAU,CACzD,OAAO,qCAAqC,CAC7C,CAAC"}
1
+ {"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;;iBAqBjD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,WAAW,CACrD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,UAAU,CACzD,OAAO,qCAAqC,CAC7C,CAAC"}
@@ -34,7 +34,7 @@ export function PlaceholderAuthDefinitionEditor({ definition: pluginMetadata, me
34
34
  ...data,
35
35
  };
36
36
  createAndApplyModelMergerResults(draftConfig, PLACEHOLDER_AUTH_MODELS, createAuthModels(authDefinition), definitionContainer);
37
- PluginUtils.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer.pluginStore);
37
+ PluginUtils.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer);
38
38
  }, {
39
39
  successMessage: 'Successfully saved placeholder auth plugin!',
40
40
  onSuccess: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-auth-definition-editor.js","sourceRoot":"","sources":["../../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,E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AAY,YACzB,KAAC,WAAW,cACV,MAAC,kBAAkB,eACjB,MAAC,wBAAwB,eACvB,KAAC,uBAAuB,iDAEE,EAC1B,KAAC,6BAA6B,+EAEE,IACP,EAC3B,KAAC,yBAAyB,IAAC,SAAS,EAAC,gBAAgB,YACnD,KAAC,sBAAsB,IACrB,mBAAmB,EAAE,mBAAmB,GACxC,GACwB,IACT,GACT,GACV,EAEN,KAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,qBAAqB,EACnB,CAAC,cAAc;gCACf,iCAAiC,CAAC,mBAAmB,CAAC,GAExD,IACG,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"placeholder-auth-definition-editor.js","sourceRoot":"","sources":["../../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,iCAAiC,EACjC,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAIzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,2CAA2C,EAAE,MAAM,gCAAgC,CAAC;AAE7F,OAAO,iBAA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AAC,eAAe,CACzB,WAAW,EACX,QAAQ,EACR,WAAW,EACX,mBAAmB,CACpB,CAAC;IACJ,CAAC,EACD;QACE,cAAc,EAAE,6CAA6C;QAC7D,SAAS,EAAE,GAAG,EAAE;YACd,MAAM,EAAE,CAAC;QACX,CAAC;KACF,CACF,CACF,CAAC;IAEF,8BAA8B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE7D,OAAO,CACL,eAAK,SAAS,EAAC,+FAA+F,aAC5G,KAAC,cAAc,KAAG,EAClB,cACE,SAAS,EAAC,0EAA0E,EACpF,KAAK,EACH;oBACE,qBAAqB,EAAE,MAAM;iBACP,YAG1B,gBAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,4BAA4B,aAC9D,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,WAAW,cACV,MAAC,kBAAkB,eACjB,MAAC,wBAAwB,eACvB,KAAC,uBAAuB,iDAEE,EAC1B,KAAC,6BAA6B,+EAEE,IACP,EAC3B,KAAC,yBAAyB,IAAC,SAAS,EAAC,gBAAgB,YACnD,KAAC,sBAAsB,IACrB,mBAAmB,EAAE,mBAAmB,GACxC,GACwB,IACT,GACT,GACV,EAEN,KAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,qBAAqB,EACnB,CAAC,cAAc;gCACf,iCAAiC,CAAC,mBAAmB,CAAC,GAExD,IACG,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Useful for creating a test auth implementation.
5
5
  */
6
- export declare const placeholderAuthHooksGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
6
+ export declare const placeholderAuthHooksGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
7
7
  paths: import("@baseplate-dev/sync").GeneratorTask<{
8
8
  placeholderAuthCorePlaceholderAuthHooksPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").PlaceholderAuthCorePlaceholderAuthHooksPaths>;
9
9
  }, {
@@ -1,4 +1,4 @@
1
- export declare const placeholderAuthModuleGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
1
+ export declare const placeholderAuthModuleGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
2
2
  paths: import("@baseplate-dev/sync").GeneratorTask<{
3
3
  placeholderAuthCorePlaceholderAuthModulePaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").PlaceholderAuthCorePlaceholderAuthModulePaths>;
4
4
  }, {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Generator for placeholder React auth
3
3
  */
4
- export declare const placeholderReactAuthGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{}, {
4
+ export declare const placeholderReactAuthGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
5
5
  reactAuth: import("@baseplate-dev/sync").GeneratorTask<{
6
6
  reactAuth: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/react-generators").ReactAuthRoutesProvider>;
7
7
  }, any, any>;