@baseplate-dev/plugin-auth 3.0.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +39 -25
  2. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  3. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
  4. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  5. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
  6. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
  7. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
  8. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
  9. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
  10. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
  11. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
  12. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  13. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
  14. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
  15. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
  16. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
  17. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
  18. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
  19. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
  20. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
  21. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  22. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
  23. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  24. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
  25. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  26. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
  27. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
  28. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
  29. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
  30. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
  31. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  32. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
  33. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  34. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
  35. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
  36. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
  37. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
  38. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
  39. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  40. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
  41. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  42. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
  43. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  44. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
  45. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  46. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
  47. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  48. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
  49. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
  50. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
  51. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
  52. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
  53. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  54. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
  55. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
  56. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
  57. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  58. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
  59. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
  60. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
  61. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  62. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
  63. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  64. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
  65. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
  66. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  67. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
  68. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  69. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
  70. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  71. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
  72. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
  73. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
  74. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
  75. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
  76. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  77. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
  78. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
  79. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
  80. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  81. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
  82. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
  83. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
  84. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
  85. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
  86. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  87. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
  88. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  89. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
  90. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
  91. package/dist/local-auth/admin/node.d.ts.map +1 -1
  92. package/dist/local-auth/admin/node.js +2 -6
  93. package/dist/local-auth/admin/node.js.map +1 -1
  94. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -3
  95. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  96. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
  97. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
  98. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
  99. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  100. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
  101. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
  102. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
  103. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
  104. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
  105. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  106. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
  107. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
  108. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
  109. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  110. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
  111. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
  112. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
  113. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  114. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
  115. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
  116. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
  117. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
  118. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
  119. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
  120. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
  121. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
  122. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
  123. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
  124. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
  125. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
  126. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  127. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -0
  128. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  129. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +6 -1
  130. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  131. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
  132. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  133. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
  134. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  135. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
  136. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  137. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +19 -0
  138. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
  139. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  140. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -8
  141. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  142. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +36 -7
  143. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  144. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
  145. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  146. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +0 -1
  147. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  148. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +13 -6
  149. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  150. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +5 -12
  151. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  152. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
  153. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  154. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -13
  155. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  156. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
  157. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  158. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +12 -2
  159. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -2
  160. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  161. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +12 -2
  162. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
  163. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  164. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
  165. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
  166. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
  167. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
  168. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
  169. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  170. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
  171. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
  172. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
  173. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  174. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
  175. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
  176. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
  177. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  178. package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
  179. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
  180. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  181. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
  182. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  183. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
  184. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
  185. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  186. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  187. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
  188. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  189. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
  190. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  191. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  192. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  193. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  194. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
  195. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  196. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
  197. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  198. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  199. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  200. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
  201. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  202. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
  203. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  204. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  205. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
  206. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js → __federation_expose_auth0CoreCommon-Ga9LD3d6.js} +3 -3
  207. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map → __federation_expose_auth0CoreCommon-Ga9LD3d6.js.map} +1 -1
  208. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-CZueDXPK.js} +5 -5
  209. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-CZueDXPK.js.map} +1 -1
  210. package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js → __federation_expose_authCoreCommon-BrTLsuJC.js} +3 -3
  211. package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js.map → __federation_expose_authCoreCommon-BrTLsuJC.js.map} +1 -1
  212. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-C8rgnA2v.js} +6 -6
  213. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-C8rgnA2v.js.map} +1 -1
  214. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-C75-DAzO.js} +2 -2
  215. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js.map → __federation_expose_local-authAdminCommon-C75-DAzO.js.map} +1 -1
  216. package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js → __federation_expose_local-authAdminWeb-D2xGvwyL.js} +2 -2
  217. package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js.map → __federation_expose_local-authAdminWeb-D2xGvwyL.js.map} +1 -1
  218. package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js → __federation_expose_local-authCoreCommon-BFUbyPYg.js} +3 -3
  219. package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js.map → __federation_expose_local-authCoreCommon-BFUbyPYg.js.map} +1 -1
  220. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-ChyvdsRq.js} +5 -5
  221. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-ChyvdsRq.js.map} +1 -1
  222. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js} +3 -3
  223. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map} +1 -1
  224. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js} +5 -5
  225. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map} +1 -1
  226. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-C_QCk5FX.js} +2 -2
  227. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-C_QCk5FX.js.map} +1 -1
  228. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-DtztAtUw.js} +5 -5
  229. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js.map → web-DtztAtUw.js.map} +1 -1
  230. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CcNtL_U6.js} +293 -216
  231. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +1 -0
  232. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-DA_4I2Vy.js} +5 -5
  233. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-DA_4I2Vy.js.map} +1 -1
  234. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-Bxy-1ETU.js} +34 -3
  235. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +1 -0
  236. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-DooFj-IS.js} +2 -2
  237. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-DooFj-IS.js.map} +1 -1
  238. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-D2XMaoy7.js} +2 -2
  239. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-D2XMaoy7.js.map} +1 -1
  240. package/dist/web/assets/{index-Dccn3WBN.js → index-DwJT6_Wn.js} +2 -2
  241. package/dist/web/assets/{index-Dccn3WBN.js.map → index-DwJT6_Wn.js.map} +1 -1
  242. package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-ChwWPPiL.js} +2 -2
  243. package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-ChwWPPiL.js.map} +1 -1
  244. package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-gGkFnyaY.js} +7 -2
  245. package/dist/web/assets/model-merger-gGkFnyaY.js.map +1 -0
  246. package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-QRBMcFiG.js} +2 -2
  247. package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-QRBMcFiG.js.map} +1 -1
  248. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-_slrOM0G.js} +2 -2
  249. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-_slrOM0G.js.map} +1 -1
  250. package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-hAzbWO7b.js} +2 -2
  251. package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-hAzbWO7b.js.map} +1 -1
  252. package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-rpMj4pr8.js} +2 -2
  253. package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-rpMj4pr8.js.map} +1 -1
  254. package/dist/web/assets/{react-DA5A88WZ.js → react-DbX1FP85.js} +2 -2
  255. package/dist/web/assets/{react-DA5A88WZ.js.map → react-DbX1FP85.js.map} +1 -1
  256. package/dist/web/assets/remoteEntry.js +10 -10
  257. package/dist/web/assets/{styles-CfTjrsB-.js → styles-DqLt1Blm.js} +3 -3
  258. package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-DqLt1Blm.js.map} +1 -1
  259. package/package.json +12 -12
  260. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  261. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
  262. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
  263. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
  264. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  265. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  266. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  267. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  268. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  269. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  270. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  271. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
  272. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
  273. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  274. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  275. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  276. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  277. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  278. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
  279. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
  280. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
  281. package/dist/web/assets/model-merger-kOQ_dmiE.js.map +0 -1
@@ -13,8 +13,18 @@ export declare const authRoutesGenerator: import("@baseplate-dev/sync").Generato
13
13
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
14
14
  getApolloErrorCode: {};
15
15
  }>>;
16
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
17
- '*': {};
16
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
17
+ graphql: {};
18
+ readFragment: {};
19
+ FragmentOf: {
20
+ isTypeOnly: true;
21
+ };
22
+ ResultOf: {
23
+ isTypeOnly: true;
24
+ };
25
+ VariablesOf: {
26
+ isTypeOnly: true;
27
+ };
18
28
  }>>;
19
29
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").AuthCoreAuthRoutesPaths>;
20
30
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -241,7 +251,6 @@ export declare const authRoutesGenerator: import("@baseplate-dev/sync").Generato
241
251
  }, undefined>;
242
252
  main: import("@baseplate-dev/sync").GeneratorTask<any, {
243
253
  renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").AuthCoreAuthRoutesRenderers>;
244
- paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").AuthCoreAuthRoutesPaths>;
245
254
  }, any>;
246
255
  }>;
247
256
  //# sourceMappingURL=auth-routes.generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-routes.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/auth-routes.generator.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgC9B,CAAC"}
1
+ {"version":3,"file":"auth-routes.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/auth-routes.generator.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB9B,CAAC"}
@@ -1,4 +1,3 @@
1
- import { renderTextTemplateFileAction } from '@baseplate-dev/core-generators';
2
1
  import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
3
2
  import { z } from 'zod';
4
3
  import { AUTH_CORE_AUTH_ROUTES_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
@@ -16,19 +15,13 @@ export const authRoutesGenerator = createGenerator({
16
15
  main: createGeneratorTask({
17
16
  dependencies: {
18
17
  renderers: GENERATED_TEMPLATES.renderers.provider,
19
- paths: GENERATED_TEMPLATES.paths.provider,
20
18
  },
21
- run({ renderers, paths }) {
19
+ run({ renderers }) {
22
20
  return {
23
21
  build: async (builder) => {
24
22
  await builder.apply(renderers.mainGroup.render({
25
23
  variables: {},
26
24
  }));
27
- await builder.apply(renderTextTemplateFileAction({
28
- destination: paths.queriesGql,
29
- template: GENERATED_TEMPLATES.templates.queriesGql,
30
- variables: {},
31
- }));
32
25
  },
33
26
  };
34
27
  },
@@ -1 +1 @@
1
- {"version":3,"file":"auth-routes.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/auth-routes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,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"auth-routes.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/auth-routes.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,+BAA+B,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,uBAAuB;IAC7B,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;4BACzB,SAAS,EAAE,EAAE;yBACd,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -15,8 +15,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
15
15
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
16
16
  getApolloErrorCode: {};
17
17
  }>>;
18
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
19
- '*': {};
18
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
19
+ graphql: {};
20
+ readFragment: {};
21
+ FragmentOf: {
22
+ isTypeOnly: true;
23
+ };
24
+ ResultOf: {
25
+ isTypeOnly: true;
26
+ };
27
+ VariablesOf: {
28
+ isTypeOnly: true;
29
+ };
20
30
  }>>;
21
31
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").AuthCoreAuthRoutesPaths>;
22
32
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -248,8 +258,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
248
258
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
249
259
  getApolloErrorCode: {};
250
260
  }>>;
251
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
252
- '*': {};
261
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
262
+ graphql: {};
263
+ readFragment: {};
264
+ FragmentOf: {
265
+ isTypeOnly: true;
266
+ };
267
+ ResultOf: {
268
+ isTypeOnly: true;
269
+ };
270
+ VariablesOf: {
271
+ isTypeOnly: true;
272
+ };
253
273
  }>>;
254
274
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
255
275
  AddOptionRequiredFields: {
@@ -476,8 +496,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
476
496
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
477
497
  getApolloErrorCode: {};
478
498
  }>>;
479
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
480
- '*': {};
499
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
500
+ graphql: {};
501
+ readFragment: {};
502
+ FragmentOf: {
503
+ isTypeOnly: true;
504
+ };
505
+ ResultOf: {
506
+ isTypeOnly: true;
507
+ };
508
+ VariablesOf: {
509
+ isTypeOnly: true;
510
+ };
481
511
  }>>;
482
512
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
483
513
  AddOptionRequiredFields: {
@@ -702,7 +732,6 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
702
732
  }, Record<never, Record<never, never>>>;
703
733
  route: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
704
734
  };
705
- queriesGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
706
735
  };
707
736
  };
708
737
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3C,CAAC"}
@@ -1,6 +1,5 @@
1
1
  export interface AuthCoreAuthRoutesPaths {
2
2
  login: string;
3
- queriesGql: string;
4
3
  register: string;
5
4
  route: string;
6
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAyBD,eAAO,MAAM,2BAA2B;;;;;;;CAGvC,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAwBD,eAAO,MAAM,2BAA2B;;;;;;;CAGvC,CAAC"}
@@ -10,7 +10,6 @@ const authCoreAuthRoutesPathsTask = createGeneratorTask({
10
10
  providers: {
11
11
  authCoreAuthRoutesPaths: {
12
12
  login: `${routesRoot}/auth_/login.tsx`,
13
- queriesGql: `${routesRoot}/auth_/queries.gql`,
14
13
  register: `${routesRoot}/auth_/register.tsx`,
15
14
  route: `${routesRoot}/auth_/route.tsx`,
16
15
  },
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAS9E,MAAM,uBAAuB,GAAG,kBAAkB,CAChD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IACtD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,uBAAuB,EAAE,uBAAuB,CAAC,MAAM,EAAE,EAAE;IACtE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,UAAU,GAAG,WAAW,CAAC,qBAAqB,EAAE,CAAC;QAEvD,OAAO;YACL,SAAS,EAAE;gBACT,uBAAuB,EAAE;oBACvB,KAAK,EAAE,GAAG,UAAU,kBAAkB;oBACtC,UAAU,EAAE,GAAG,UAAU,oBAAoB;oBAC7C,QAAQ,EAAE,GAAG,UAAU,qBAAqB;oBAC5C,KAAK,EAAE,GAAG,UAAU,kBAAkB;iBACvC;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,uBAAuB;IACjC,IAAI,EAAE,2BAA2B;CAClC,CAAC"}
1
+ {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,MAAM,uBAAuB,GAAG,kBAAkB,CAChD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IACtD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,uBAAuB,EAAE,uBAAuB,CAAC,MAAM,EAAE,EAAE;IACtE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,UAAU,GAAG,WAAW,CAAC,qBAAqB,EAAE,CAAC;QAEvD,OAAO;YACL,SAAS,EAAE;gBACT,uBAAuB,EAAE;oBACvB,KAAK,EAAE,GAAG,UAAU,kBAAkB;oBACtC,QAAQ,EAAE,GAAG,UAAU,qBAAqB;oBAC5C,KAAK,EAAE,GAAG,UAAU,kBAAkB;iBACvC;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,uBAAuB;IACjC,IAAI,EAAE,2BAA2B;CAClC,CAAC"}
@@ -1,13 +1,10 @@
1
- import type { RenderTextTemplateFileActionInput, RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
1
+ import type { RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
2
2
  import type { BuilderAction } from '@baseplate-dev/sync';
3
3
  import { AUTH_CORE_AUTH_ROUTES_TEMPLATES } from './typed-templates.js';
4
4
  export interface AuthCoreAuthRoutesRenderers {
5
5
  mainGroup: {
6
6
  render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH_CORE_AUTH_ROUTES_TEMPLATES.mainGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
- queriesGql: {
9
- render: (options: Omit<RenderTextTemplateFileActionInput<typeof AUTH_CORE_AUTH_ROUTES_TEMPLATES.queriesGql>, 'destination' | 'template'>) => BuilderAction;
10
- };
11
8
  }
12
9
  export declare const AUTH_CORE_AUTH_ROUTES_RENDERERS: {
13
10
  provider: import("@baseplate-dev/sync").ProviderType<AuthCoreAuthRoutesRenderers>;
@@ -17,8 +14,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_RENDERERS: {
17
14
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
18
15
  getApolloErrorCode: {};
19
16
  }>>;
20
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
21
- '*': {};
17
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
18
+ graphql: {};
19
+ readFragment: {};
20
+ FragmentOf: {
21
+ isTypeOnly: true;
22
+ };
23
+ ResultOf: {
24
+ isTypeOnly: true;
25
+ };
26
+ VariablesOf: {
27
+ isTypeOnly: true;
28
+ };
22
29
  }>>;
23
30
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").AuthCoreAuthRoutesPaths>;
24
31
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAiBzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAEvE,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,+BAA+B,CAAC,SAAS,CACjD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,+BAA+B,CAAC,UAAU,CAClD,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA6DD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3C,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAczD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAEvE,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,+BAA+B,CAAC,SAAS,CACjD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqDD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3C,CAAC"}
@@ -1,5 +1,5 @@
1
- import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
2
- import { apolloErrorImportsProvider, generatedGraphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
+ import { apolloErrorImportsProvider, graphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
4
  import { reactSessionImportsProvider } from '#src/local-auth/core/generators/react-session/generated/ts-import-providers.js';
5
5
  import { AUTH_CORE_AUTH_ROUTES_PATHS } from './template-paths.js';
@@ -8,7 +8,7 @@ const authCoreAuthRoutesRenderers = createProviderType('auth-core-auth-routes-re
8
8
  const authCoreAuthRoutesRenderersTask = createGeneratorTask({
9
9
  dependencies: {
10
10
  apolloErrorImports: apolloErrorImportsProvider,
11
- generatedGraphqlImports: generatedGraphqlImportsProvider,
11
+ graphqlImports: graphqlImportsProvider,
12
12
  paths: AUTH_CORE_AUTH_ROUTES_PATHS.provider,
13
13
  reactComponentsImports: reactComponentsImportsProvider,
14
14
  reactErrorImports: reactErrorImportsProvider,
@@ -18,7 +18,7 @@ const authCoreAuthRoutesRenderersTask = createGeneratorTask({
18
18
  exports: {
19
19
  authCoreAuthRoutesRenderers: authCoreAuthRoutesRenderers.export(),
20
20
  },
21
- run({ apolloErrorImports, generatedGraphqlImports, paths, reactComponentsImports, reactErrorImports, reactSessionImports, typescriptFile, }) {
21
+ run({ apolloErrorImports, graphqlImports, paths, reactComponentsImports, reactErrorImports, reactSessionImports, typescriptFile, }) {
22
22
  return {
23
23
  providers: {
24
24
  authCoreAuthRoutesRenderers: {
@@ -28,7 +28,7 @@ const authCoreAuthRoutesRenderersTask = createGeneratorTask({
28
28
  paths,
29
29
  importMapProviders: {
30
30
  apolloErrorImports,
31
- generatedGraphqlImports,
31
+ graphqlImports,
32
32
  reactComponentsImports,
33
33
  reactErrorImports,
34
34
  reactSessionImports,
@@ -36,13 +36,6 @@ const authCoreAuthRoutesRenderersTask = createGeneratorTask({
36
36
  ...options,
37
37
  }),
38
38
  },
39
- queriesGql: {
40
- render: (options) => renderTextTemplateFileAction({
41
- template: AUTH_CORE_AUTH_ROUTES_TEMPLATES.queriesGql,
42
- destination: paths.queriesGql,
43
- ...options,
44
- }),
45
- },
46
39
  },
47
40
  },
48
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAyBvE,MAAM,2BAA2B,GAC/B,kBAAkB,CAChB,iCAAiC,CAClC,CAAC;AAEJ,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IAC1D,YAAY,EAAE;QACZ,kBAAkB,EAAE,0BAA0B;QAC9C,uBAAuB,EAAE,+BAA+B;QACxD,KAAK,EAAE,2BAA2B,CAAC,QAAQ;QAC3C,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,mBAAmB,EAAE,2BAA2B;QAChD,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,2BAA2B,EAAE,2BAA2B,CAAC,MAAM,EAAE;KAClE;IACD,GAAG,CAAC,EACF,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,EACL,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,GACf;QACC,OAAO;YACL,SAAS,EAAE;gBACT,2BAA2B,EAAE;oBAC3B,SAAS,EAAE;wBACT,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,+BAA+B,CAAC,SAAS;4BAChD,KAAK;4BACL,kBAAkB,EAAE;gCAClB,kBAAkB;gCAClB,uBAAuB;gCACvB,sBAAsB;gCACtB,iBAAiB;gCACjB,mBAAmB;6BACpB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,4BAA4B,CAAC;4BAC3B,QAAQ,EAAE,+BAA+B,CAAC,UAAU;4BACpD,WAAW,EAAE,KAAK,CAAC,UAAU;4BAC7B,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,+BAA+B;CACtC,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAevE,MAAM,2BAA2B,GAC/B,kBAAkB,CAChB,iCAAiC,CAClC,CAAC;AAEJ,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IAC1D,YAAY,EAAE;QACZ,kBAAkB,EAAE,0BAA0B;QAC9C,cAAc,EAAE,sBAAsB;QACtC,KAAK,EAAE,2BAA2B,CAAC,QAAQ;QAC3C,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,mBAAmB,EAAE,2BAA2B;QAChD,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,2BAA2B,EAAE,2BAA2B,CAAC,MAAM,EAAE;KAClE;IACD,GAAG,CAAC,EACF,kBAAkB,EAClB,cAAc,EACd,KAAK,EACL,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,GACf;QACC,OAAO;YACL,SAAS,EAAE;gBACT,2BAA2B,EAAE;oBAC3B,SAAS,EAAE;wBACT,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,+BAA+B,CAAC,SAAS;4BAChD,KAAK;4BACL,kBAAkB,EAAE;gCAClB,kBAAkB;gCAClB,cAAc;gCACd,sBAAsB;gCACtB,iBAAiB;gCACjB,mBAAmB;6BACpB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,+BAA+B;CACtC,CAAC"}
@@ -3,8 +3,18 @@ export declare const mainGroup: {
3
3
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
4
  getApolloErrorCode: {};
5
5
  }>>;
6
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
7
- '*': {};
6
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
7
+ graphql: {};
8
+ readFragment: {};
9
+ FragmentOf: {
10
+ isTypeOnly: true;
11
+ };
12
+ ResultOf: {
13
+ isTypeOnly: true;
14
+ };
15
+ VariablesOf: {
16
+ isTypeOnly: true;
17
+ };
8
18
  }>>;
9
19
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
10
20
  AddOptionRequiredFields: {
@@ -231,8 +241,18 @@ export declare const mainGroup: {
231
241
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
232
242
  getApolloErrorCode: {};
233
243
  }>>;
234
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
235
- '*': {};
244
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
245
+ graphql: {};
246
+ readFragment: {};
247
+ FragmentOf: {
248
+ isTypeOnly: true;
249
+ };
250
+ ResultOf: {
251
+ isTypeOnly: true;
252
+ };
253
+ VariablesOf: {
254
+ isTypeOnly: true;
255
+ };
236
256
  }>>;
237
257
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
238
258
  AddOptionRequiredFields: {
@@ -463,8 +483,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
463
483
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
464
484
  getApolloErrorCode: {};
465
485
  }>>;
466
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
467
- '*': {};
486
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
487
+ graphql: {};
488
+ readFragment: {};
489
+ FragmentOf: {
490
+ isTypeOnly: true;
491
+ };
492
+ ResultOf: {
493
+ isTypeOnly: true;
494
+ };
495
+ VariablesOf: {
496
+ isTypeOnly: true;
497
+ };
468
498
  }>>;
469
499
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
470
500
  AddOptionRequiredFields: {
@@ -691,8 +721,18 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
691
721
  apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
692
722
  getApolloErrorCode: {};
693
723
  }>>;
694
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
695
- '*': {};
724
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
725
+ graphql: {};
726
+ readFragment: {};
727
+ FragmentOf: {
728
+ isTypeOnly: true;
729
+ };
730
+ ResultOf: {
731
+ isTypeOnly: true;
732
+ };
733
+ VariablesOf: {
734
+ isTypeOnly: true;
735
+ };
696
736
  }>>;
697
737
  reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
698
738
  AddOptionRequiredFields: {
@@ -917,6 +957,5 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
917
957
  }, Record<never, Record<never, never>>>;
918
958
  route: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
919
959
  };
920
- queriesGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
921
960
  };
922
961
  //# sourceMappingURL=typed-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AA8DA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC;AAcpD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC;AAEpD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/core-generators';
2
- import { apolloErrorImportsProvider, generatedGraphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
+ import { apolloErrorImportsProvider, graphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import path from 'node:path';
4
4
  import { reactSessionImportsProvider } from '#src/local-auth/core/generators/react-session/generated/ts-import-providers.js';
5
5
  const login = createTsTemplateFile({
@@ -7,7 +7,7 @@ const login = createTsTemplateFile({
7
7
  group: 'main',
8
8
  importMapProviders: {
9
9
  apolloErrorImports: apolloErrorImportsProvider,
10
- generatedGraphqlImports: generatedGraphqlImportsProvider,
10
+ graphqlImports: graphqlImportsProvider,
11
11
  reactComponentsImports: reactComponentsImportsProvider,
12
12
  reactErrorImports: reactErrorImportsProvider,
13
13
  reactSessionImports: reactSessionImportsProvider,
@@ -23,7 +23,7 @@ const register = createTsTemplateFile({
23
23
  group: 'main',
24
24
  importMapProviders: {
25
25
  apolloErrorImports: apolloErrorImportsProvider,
26
- generatedGraphqlImports: generatedGraphqlImportsProvider,
26
+ graphqlImports: graphqlImportsProvider,
27
27
  reactComponentsImports: reactComponentsImportsProvider,
28
28
  reactErrorImports: reactErrorImportsProvider,
29
29
  reactSessionImports: reactSessionImportsProvider,
@@ -45,13 +45,5 @@ const route = createTsTemplateFile({
45
45
  variables: {},
46
46
  });
47
47
  export const mainGroup = { login, register, route };
48
- const queriesGql = createTextTemplateFile({
49
- fileOptions: { kind: 'singleton' },
50
- name: 'queries-gql',
51
- source: {
52
- path: path.join(import.meta.dirname, '../templates/routes/auth_/queries.gql'),
53
- },
54
- variables: {},
55
- });
56
- export const AUTH_CORE_AUTH_ROUTES_TEMPLATES = { mainGroup, queriesGql };
48
+ export const AUTH_CORE_AUTH_ROUTES_TEMPLATES = { mainGroup };
57
49
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,MAAM,KAAK,GAAG,oBAAoB,CAAC;IACjC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,uBAAuB,EAAE,+BAA+B;QACxD,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,mBAAmB,EAAE,2BAA2B;KACjD;IACD,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,qCAAqC,CAAC;KAC5E;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,oBAAoB,CAAC;IACpC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,uBAAuB,EAAE,+BAA+B;QACxD,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,mBAAmB,EAAE,2BAA2B;KACjD;IACD,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,wCAAwC,CACzC;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,oBAAoB,CAAC;IACjC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,qCAAqC,CAAC;KAC5E;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAEpD,MAAM,UAAU,GAAG,sBAAsB,CAAC;IACxC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EAC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,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,qCAAqC,CAAC;KAC5E;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAEpD,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,SAAS,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-nocheck
3
3
  import { getApolloErrorCode } from '%apolloErrorImports';
4
- import { LoginWithEmailPasswordDocument } from '%generatedGraphqlImports';
4
+ import { graphql } from '%graphqlImports';
5
5
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
6
6
  import { logAndFormatError, logError } from '%reactErrorImports';
7
7
  import { userSessionClient } from '%reactSessionImports';
@@ -30,12 +30,21 @@ const formSchema = z.object({
30
30
  email: z.email().transform((value) => value.toLowerCase()),
31
31
  password: z.string().min(PASSWORD_MIN_LENGTH),
32
32
  });
33
+ const loginWithEmailPasswordMutation = graphql(`
34
+ mutation LoginWithEmailPassword($input: LoginWithEmailPasswordInput!) {
35
+ loginWithEmailPassword(input: $input) {
36
+ session {
37
+ userId
38
+ }
39
+ }
40
+ }
41
+ `);
33
42
  function LoginPage() {
34
43
  const { control, handleSubmit, resetField, setError: setFormError, } = useForm({
35
44
  resolver: zodResolver(formSchema),
36
45
  reValidateMode: 'onBlur',
37
46
  });
38
- const [loginWithEmailPassword, { loading }] = useMutation(LoginWithEmailPasswordDocument);
47
+ const [loginWithEmailPassword, { loading }] = useMutation(loginWithEmailPasswordMutation);
39
48
  const navigate = useNavigate();
40
49
  const { return_to } = Route.useSearch();
41
50
  const onSubmit = (data) => {
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../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AAO,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"}
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,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,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,sBAAsB,CAAC;AACnD,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,CAA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CACT,iBAAiB,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAC1D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,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"}
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
 
3
3
  import { getApolloErrorCode } from '%apolloErrorImports';
4
- import { LoginWithEmailPasswordDocument } from '%generatedGraphqlImports';
4
+ import { graphql } from '%graphqlImports';
5
5
  import {
6
6
  Button,
7
7
  Card,
@@ -49,6 +49,16 @@ const formSchema = z.object({
49
49
 
50
50
  type FormData = z.infer<typeof formSchema>;
51
51
 
52
+ const loginWithEmailPasswordMutation = graphql(`
53
+ mutation LoginWithEmailPassword($input: LoginWithEmailPasswordInput!) {
54
+ loginWithEmailPassword(input: $input) {
55
+ session {
56
+ userId
57
+ }
58
+ }
59
+ }
60
+ `);
61
+
52
62
  function LoginPage(): React.JSX.Element {
53
63
  const {
54
64
  control,
@@ -60,7 +70,7 @@ function LoginPage(): React.JSX.Element {
60
70
  reValidateMode: 'onBlur',
61
71
  });
62
72
  const [loginWithEmailPassword, { loading }] = useMutation(
63
- LoginWithEmailPasswordDocument,
73
+ loginWithEmailPasswordMutation,
64
74
  );
65
75
  const navigate = useNavigate();
66
76
  const { return_to } = Route.useSearch();
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-nocheck
3
3
  import { getApolloErrorCode } from '%apolloErrorImports';
4
- import { RegisterWithEmailPasswordDocument } from '%generatedGraphqlImports';
4
+ import { graphql } from '%graphqlImports';
5
5
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
6
6
  import { logAndFormatError, logError } from '%reactErrorImports';
7
7
  import { userSessionClient } from '%reactSessionImports';
@@ -30,12 +30,21 @@ const formSchema = z.object({
30
30
  email: z.email().transform((value) => value.toLowerCase()),
31
31
  password: z.string().min(PASSWORD_MIN_LENGTH),
32
32
  });
33
+ const registerWithEmailPasswordMutation = graphql(`
34
+ mutation RegisterWithEmailPassword($input: RegisterWithEmailPasswordInput!) {
35
+ registerWithEmailPassword(input: $input) {
36
+ session {
37
+ userId
38
+ }
39
+ }
40
+ }
41
+ `);
33
42
  function RegisterPage() {
34
43
  const { control, handleSubmit, setError: setFormError, } = useForm({
35
44
  resolver: zodResolver(formSchema),
36
45
  reValidateMode: 'onBlur',
37
46
  });
38
- const [registerWithEmailPassword, { loading }] = useMutation(RegisterWithEmailPasswordDocument);
47
+ const [registerWithEmailPassword, { loading }] = useMutation(registerWithEmailPasswordMutation);
39
48
  const navigate = useNavigate();
40
49
  const { return_to } = Route.useSearch();
41
50
  const onSubmit = (data) => {
@@ -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,sBAAsB,CAAC;AACnD,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,CAAC;IACF,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;QAC7D,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,QAAQ,CAAC,EAAE,EAAE,EAAE,SAAS,IAAI,GA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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,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,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,sBAAsB,CAAC;AACnD,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,CAAC;IACF,SAAS,EAAE,YAAY;IACvB,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AAC,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"}
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
 
3
3
  import { getApolloErrorCode } from '%apolloErrorImports';
4
- import { RegisterWithEmailPasswordDocument } from '%generatedGraphqlImports';
4
+ import { graphql } from '%graphqlImports';
5
5
  import {
6
6
  Button,
7
7
  Card,
@@ -49,6 +49,16 @@ const formSchema = z.object({
49
49
 
50
50
  type FormData = z.infer<typeof formSchema>;
51
51
 
52
+ const registerWithEmailPasswordMutation = graphql(`
53
+ mutation RegisterWithEmailPassword($input: RegisterWithEmailPasswordInput!) {
54
+ registerWithEmailPassword(input: $input) {
55
+ session {
56
+ userId
57
+ }
58
+ }
59
+ }
60
+ `);
61
+
52
62
  function RegisterPage(): React.JSX.Element {
53
63
  const {
54
64
  control,
@@ -59,7 +69,7 @@ function RegisterPage(): React.JSX.Element {
59
69
  reValidateMode: 'onBlur',
60
70
  });
61
71
  const [registerWithEmailPassword, { loading }] = useMutation(
62
- RegisterWithEmailPasswordDocument,
72
+ registerWithEmailPasswordMutation,
63
73
  );
64
74
  const navigate = useNavigate();
65
75
  const { return_to } = Route.useSearch();