@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
@@ -26,7 +26,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
26
26
  SessionData: {
27
27
  isTypeOnly: true;
28
28
  };
29
- useCurrentUser: {};
30
29
  useLogOut: {};
31
30
  useRequiredUserId: {};
32
31
  useSession: {};
@@ -34,8 +33,18 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
34
33
  isTypeOnly: true;
35
34
  };
36
35
  }>>;
37
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
38
- '*': {};
36
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
37
+ graphql: {};
38
+ readFragment: {};
39
+ FragmentOf: {
40
+ isTypeOnly: true;
41
+ };
42
+ ResultOf: {
43
+ isTypeOnly: true;
44
+ };
45
+ VariablesOf: {
46
+ isTypeOnly: true;
47
+ };
39
48
  }>>;
40
49
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
41
50
  AuthSessionContext: {};
@@ -275,7 +284,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
275
284
  SessionData: {
276
285
  isTypeOnly: true;
277
286
  };
278
- useCurrentUser: {};
279
287
  useLogOut: {};
280
288
  useRequiredUserId: {};
281
289
  useSession: {};
@@ -283,8 +291,18 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
283
291
  isTypeOnly: true;
284
292
  };
285
293
  }>>;
286
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
287
- '*': {};
294
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
295
+ graphql: {};
296
+ readFragment: {};
297
+ FragmentOf: {
298
+ isTypeOnly: true;
299
+ };
300
+ ResultOf: {
301
+ isTypeOnly: true;
302
+ };
303
+ VariablesOf: {
304
+ isTypeOnly: true;
305
+ };
288
306
  }>>;
289
307
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
290
308
  AuthSessionContext: {};
@@ -509,7 +527,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
509
527
  userSessionClient: {};
510
528
  }>;
511
529
  };
512
- userSessionProviderGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
513
530
  };
514
531
  };
515
532
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnD,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export interface LocalAuthCoreReactSessionPaths {
2
2
  userSessionClient: string;
3
3
  userSessionProvider: string;
4
- userSessionProviderGql: string;
5
4
  }
6
5
  export declare const LOCAL_AUTH_CORE_REACT_SESSION_PATHS: {
7
6
  provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreReactSessionPaths>;
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;CAChC;AA2BD,eAAO,MAAM,mCAAmC;;;;;;;CAG/C,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AA0BD,eAAO,MAAM,mCAAmC;;;;;;;CAG/C,CAAC"}
@@ -13,7 +13,6 @@ const localAuthCoreReactSessionPathsTask = createGeneratorTask({
13
13
  localAuthCoreReactSessionPaths: {
14
14
  userSessionClient: `${srcRoot}/services/user-session-client.ts`,
15
15
  userSessionProvider: `${srcRoot}/app/user-session-provider.tsx`,
16
- userSessionProviderGql: `${srcRoot}/app/user-session-provider.gql`,
17
16
  },
18
17
  },
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,MAAM,8BAA8B,GAClC,kBAAkB,CAChB,qCAAqC,CACtC,CAAC;AAEJ,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,8BAA8B,EAAE,8BAA8B,CAAC,MAAM,EAAE;KACxE;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,8BAA8B,EAAE;oBAC9B,iBAAiB,EAAE,GAAG,OAAO,kCAAkC;oBAC/D,mBAAmB,EAAE,GAAG,OAAO,gCAAgC;oBAC/D,sBAAsB,EAAE,GAAG,OAAO,gCAAgC;iBACnE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,QAAQ,EAAE,8BAA8B;IACxC,IAAI,EAAE,kCAAkC;CACzC,CAAC"}
1
+ {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAO9E,MAAM,8BAA8B,GAClC,kBAAkB,CAChB,qCAAqC,CACtC,CAAC;AAEJ,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,8BAA8B,EAAE,8BAA8B,CAAC,MAAM,EAAE;KACxE;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,8BAA8B,EAAE;oBAC9B,iBAAiB,EAAE,GAAG,OAAO,kCAAkC;oBAC/D,mBAAmB,EAAE,GAAG,OAAO,gCAAgC;iBAChE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,QAAQ,EAAE,8BAA8B;IACxC,IAAI,EAAE,kCAAkC;CACzC,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 { LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES } from './typed-templates.js';
4
4
  export interface LocalAuthCoreReactSessionRenderers {
5
5
  mainGroup: {
6
6
  render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES.mainGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
- userSessionProviderGql: {
9
- render: (options: Omit<RenderTextTemplateFileActionInput<typeof LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES.userSessionProviderGql>, 'destination' | 'template'>) => BuilderAction;
10
- };
11
8
  }
12
9
  export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
13
10
  provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreReactSessionRenderers>;
@@ -18,7 +15,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
18
15
  SessionData: {
19
16
  isTypeOnly: true;
20
17
  };
21
- useCurrentUser: {};
22
18
  useLogOut: {};
23
19
  useRequiredUserId: {};
24
20
  useSession: {};
@@ -26,8 +22,18 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
26
22
  isTypeOnly: true;
27
23
  };
28
24
  }>>;
29
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
30
- '*': {};
25
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
26
+ graphql: {};
27
+ readFragment: {};
28
+ FragmentOf: {
29
+ isTypeOnly: true;
30
+ };
31
+ ResultOf: {
32
+ isTypeOnly: true;
33
+ };
34
+ VariablesOf: {
35
+ isTypeOnly: true;
36
+ };
31
37
  }>>;
32
38
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
33
39
  AuthSessionContext: {};
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/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;AAkBzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,uCAAuC,CAAC,SAAS,CACzD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,sBAAsB,EAAE;QACtB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,uCAAuC,CAAC,sBAAsB,CACtE,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAmED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnD,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAezD,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,uCAAuC,CAAC,SAAS,CACzD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA0DD,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
2
- import { authHooksImportsProvider, generatedGraphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, reactUtilsImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
+ import { authHooksImportsProvider, graphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, reactUtilsImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
4
  import { localAuthHooksImportsProvider } from '#src/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js';
5
5
  import { LOCAL_AUTH_CORE_REACT_SESSION_PATHS } from './template-paths.js';
@@ -8,7 +8,7 @@ const localAuthCoreReactSessionRenderers = createProviderType('local-auth-core-r
8
8
  const localAuthCoreReactSessionRenderersTask = createGeneratorTask({
9
9
  dependencies: {
10
10
  authHooksImports: authHooksImportsProvider,
11
- generatedGraphqlImports: generatedGraphqlImportsProvider,
11
+ graphqlImports: graphqlImportsProvider,
12
12
  localAuthHooksImports: localAuthHooksImportsProvider,
13
13
  paths: LOCAL_AUTH_CORE_REACT_SESSION_PATHS.provider,
14
14
  reactComponentsImports: reactComponentsImportsProvider,
@@ -19,7 +19,7 @@ const localAuthCoreReactSessionRenderersTask = createGeneratorTask({
19
19
  exports: {
20
20
  localAuthCoreReactSessionRenderers: localAuthCoreReactSessionRenderers.export(),
21
21
  },
22
- run({ authHooksImports, generatedGraphqlImports, localAuthHooksImports, paths, reactComponentsImports, reactErrorImports, reactUtilsImports, typescriptFile, }) {
22
+ run({ authHooksImports, graphqlImports, localAuthHooksImports, paths, reactComponentsImports, reactErrorImports, reactUtilsImports, typescriptFile, }) {
23
23
  return {
24
24
  providers: {
25
25
  localAuthCoreReactSessionRenderers: {
@@ -29,7 +29,7 @@ const localAuthCoreReactSessionRenderersTask = createGeneratorTask({
29
29
  paths,
30
30
  importMapProviders: {
31
31
  authHooksImports,
32
- generatedGraphqlImports,
32
+ graphqlImports,
33
33
  localAuthHooksImports,
34
34
  reactComponentsImports,
35
35
  reactErrorImports,
@@ -39,13 +39,6 @@ const localAuthCoreReactSessionRenderersTask = createGeneratorTask({
39
39
  ...options,
40
40
  }),
41
41
  },
42
- userSessionProviderGql: {
43
- render: (options) => renderTextTemplateFileAction({
44
- template: LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES.userSessionProviderGql,
45
- destination: paths.userSessionProviderGql,
46
- ...options,
47
- }),
48
- },
49
42
  },
50
43
  },
51
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAE5H,OAAO,EAAE,mCAAmC,EAAE,MAAM,qB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;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,QAAQ,EAAE,kCAAkC;IAC5C,IAAI,EAAE,sCAAsC;CAC7C,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAE5H,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,uCAAuC,EAAE,MAAM,sBAAsB,CAAC;AAe/E,MAAM,kCAAkC,GACtC,kBAAkB,CAChB,yCAAyC,CAC1C,CAAC;AAEJ,MAAM,sCAAsC,GAAG,mBAAmB,CAAC;IACjE,YAAY,EAAE;QACZ,gBAAgB,EAAE,wBAAwB;QAC1C,cAAc,EAAE,sBAAsB;QACtC,qBAAqB,EAAE,6BAA6B;QACpD,KAAK,EAAE,mCAAmC,CAAC,QAAQ;QACnD,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,iBAAiB,EAAE,yBAAyB;QAC5C,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,kCAAkC,EAChC,kCAAkC,CAAC,MAAM,EAAE;KAC9C;IACD,GAAG,CAAC,EACF,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf;QACC,OAAO;YACL,SAAS,EAAE;gBACT,kCAAkC,EAAE;oBAClC,SAAS,EAAE;wBACT,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,uCAAuC,CAAC,SAAS;4BACxD,KAAK;4BACL,kBAAkB,EAAE;gCAClB,gBAAgB;gCAChB,cAAc;gCACd,qBAAqB;gCACrB,sBAAsB;gCACtB,iBAAiB;gCACjB,iBAAiB;6BAClB;4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,QAAQ,EAAE,kCAAkC;IAC5C,IAAI,EAAE,sCAAsC;CAC7C,CAAC"}
@@ -9,7 +9,6 @@ export declare const mainGroup: {
9
9
  SessionData: {
10
10
  isTypeOnly: true;
11
11
  };
12
- useCurrentUser: {};
13
12
  useLogOut: {};
14
13
  useRequiredUserId: {};
15
14
  useSession: {};
@@ -17,8 +16,18 @@ export declare const mainGroup: {
17
16
  isTypeOnly: true;
18
17
  };
19
18
  }>>;
20
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
21
- '*': {};
19
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
20
+ graphql: {};
21
+ readFragment: {};
22
+ FragmentOf: {
23
+ isTypeOnly: true;
24
+ };
25
+ ResultOf: {
26
+ isTypeOnly: true;
27
+ };
28
+ VariablesOf: {
29
+ isTypeOnly: true;
30
+ };
22
31
  }>>;
23
32
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
24
33
  AuthSessionContext: {};
@@ -255,7 +264,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES: {
255
264
  SessionData: {
256
265
  isTypeOnly: true;
257
266
  };
258
- useCurrentUser: {};
259
267
  useLogOut: {};
260
268
  useRequiredUserId: {};
261
269
  useSession: {};
@@ -263,8 +271,18 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES: {
263
271
  isTypeOnly: true;
264
272
  };
265
273
  }>>;
266
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
267
- '*': {};
274
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
275
+ graphql: {};
276
+ readFragment: {};
277
+ FragmentOf: {
278
+ isTypeOnly: true;
279
+ };
280
+ ResultOf: {
281
+ isTypeOnly: true;
282
+ };
283
+ VariablesOf: {
284
+ isTypeOnly: true;
285
+ };
268
286
  }>>;
269
287
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
270
288
  AuthSessionContext: {};
@@ -489,6 +507,5 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES: {
489
507
  userSessionClient: {};
490
508
  }>;
491
509
  };
492
- userSessionProviderGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
493
510
  };
494
511
  //# sourceMappingURL=typed-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/typed-templates.ts"],"names":[],"mappings":"AAmDA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAC;AAcpE,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnD,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/typed-templates.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAC;AAEpE,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/core-generators';
2
- import { authHooksImportsProvider, generatedGraphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, reactUtilsImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
+ import { authHooksImportsProvider, graphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, reactUtilsImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import path from 'node:path';
4
4
  import { localAuthHooksImportsProvider } from '#src/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js';
5
5
  const userSessionClient = createTsTemplateFile({
@@ -18,7 +18,7 @@ const userSessionProvider = createTsTemplateFile({
18
18
  group: 'main',
19
19
  importMapProviders: {
20
20
  authHooksImports: authHooksImportsProvider,
21
- generatedGraphqlImports: generatedGraphqlImportsProvider,
21
+ graphqlImports: graphqlImportsProvider,
22
22
  localAuthHooksImports: localAuthHooksImportsProvider,
23
23
  reactComponentsImports: reactComponentsImportsProvider,
24
24
  reactErrorImports: reactErrorImportsProvider,
@@ -31,16 +31,5 @@ const userSessionProvider = createTsTemplateFile({
31
31
  variables: {},
32
32
  });
33
33
  export const mainGroup = { userSessionClient, userSessionProvider };
34
- const userSessionProviderGql = createTextTemplateFile({
35
- fileOptions: { kind: 'singleton' },
36
- name: 'user-session-provider-gql',
37
- source: {
38
- path: path.join(import.meta.dirname, '../templates/src/app/user-session-provider.gql'),
39
- },
40
- variables: {},
41
- });
42
- export const LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES = {
43
- mainGroup,
44
- userSessionProviderGql,
45
- };
34
+ export const LOCAL_AUTH_CORE_REACT_SESSION_TEMPLATES = { mainGroup };
46
35
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,g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,CAAC;AAEpE,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;IACpD,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,gDAAgD,CACjD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,SAAS;IACT,sBAAsB;CACvB,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAE5H,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE,EAAE,iBAAiB,EAAE,yBAAyB,EAAE;IACpE,IAAI,EAAE,qBAAqB;IAC3B,cAAc,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAChE,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,kDAAkD,CACnD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;QAClB,gBAAgB,EAAE,wBAAwB;QAC1C,cAAc,EAAE,sBAAsB;QACtC,qBAAqB,EAAE,6BAA6B;QACpD,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,uBAAuB;IAC7B,4BAA4B,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACvD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,gDAAgD,CACjD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;AAEpE,MAAM,CAAC,MAAM,uCAAuC,GAAG,EAAE,SAAS,EAAE,CAAC"}
@@ -22,7 +22,6 @@ export declare const reactSessionGenerator: import("@baseplate-dev/sync").Genera
22
22
  SessionData: {
23
23
  isTypeOnly: true;
24
24
  };
25
- useCurrentUser: {};
26
25
  useLogOut: {};
27
26
  useRequiredUserId: {};
28
27
  useSession: {};
@@ -30,8 +29,18 @@ export declare const reactSessionGenerator: import("@baseplate-dev/sync").Genera
30
29
  isTypeOnly: true;
31
30
  };
32
31
  }>>;
33
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
34
- '*': {};
32
+ graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
33
+ graphql: {};
34
+ readFragment: {};
35
+ FragmentOf: {
36
+ isTypeOnly: true;
37
+ };
38
+ ResultOf: {
39
+ isTypeOnly: true;
40
+ };
41
+ VariablesOf: {
42
+ isTypeOnly: true;
43
+ };
35
44
  }>>;
36
45
  localAuthHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
37
46
  AuthSessionContext: {};
@@ -1 +1 @@
1
- {"version":3,"file":"react-session.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/react-session/react-session.generator.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ChC,CAAC"}
1
+ {"version":3,"file":"react-session.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/react-session/react-session.generator.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ChC,CAAC"}
@@ -39,7 +39,6 @@ export const reactSessionGenerator = createGenerator({
39
39
  await builder.apply(renderers.mainGroup.render({
40
40
  variables: {},
41
41
  }));
42
- await builder.apply(renderers.userSessionProviderGql.render({}));
43
42
  },
44
43
  };
45
44
  },
@@ -1 +1 @@
1
- {"version":3,"file":"react-session.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/react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BACf,CAAC,CAAC;YACL,CAAC;SACF,CAAC;QACF,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;wBACF,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBACnE,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"react-session.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/react-session/react-session.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uCAAuC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEtG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;IACnD,IAAI,EAAE,+BAA+B;IACrC,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,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,cAAc,EAAE,mBAAmB,CAAC;YAClC,YAAY,EAAE;gBACZ,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;aAC1C;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE;gBAC3B,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,eAAe,EAAE;oBACjD,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CACjB,WAAW,CAAC,mBAAmB,CAAC;wBAC9B,eAAe,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,mBAAmB,CAC1B;qBACF,CAAC,CAAA,wBAAwB,QAAQ,wBAAwB;oBAC5D,IAAI,EAAE,QAAQ;iBACf,CAAC,CAAC;YACL,CAAC;SACF,CAAC;QACF,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"}
@@ -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,CAsE9C"}
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;AAWD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsE9C"}
@@ -1,15 +1,23 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { userSessionClient } from '$userSessionClient';
3
- import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
3
+ import { graphql } from '%graphqlImports';
4
4
  import { AuthSessionContext } from '%localAuthHooksImports';
5
5
  import { ErrorableLoader } from '%reactComponentsImports';
6
6
  import { logError } from '%reactErrorImports';
7
7
  import { useApolloClient, useQuery } from '@apollo/client/react';
8
8
  import { useEffect, useMemo, useState } from 'react';
9
+ const getCurrentUserSessionQuery = graphql(`
10
+ query CurrentUserSession {
11
+ currentUserSession {
12
+ userId
13
+ roles
14
+ }
15
+ }
16
+ `);
9
17
  export function UserSessionProvider({ children, }) {
10
18
  const [cachedUserId, setCachedUserId] = useState(userSessionClient.getUserId());
11
19
  const apolloClient = useApolloClient();
12
- const { data: sessionQueryData, error: sessionError } = useQuery(GetCurrentUserSessionDocument, {
20
+ const { data: sessionQueryData, error: sessionError } = useQuery(getCurrentUserSessionQuery, {
13
21
  notifyOnNetworkStatusChange: true,
14
22
  });
15
23
  const session = useMemo(() => {
@@ -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,sBAAsB,CAAC;AACjE,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,CAAC;YAC1C,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,eAAe,EAAE,KAAK;gBACtB,KAAK,EAAE,CAAC,QAAQ,CAAC;aAClB,CAAC;QACJ,CAAC;QACD,OAAO;YACL,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,MAAM;YAClD,eAAe,EAAE,IAAI;YACr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{"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,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,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,sBAAsB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMrD,MAAM,0BAA0B,GAAG,OAAO,CAAC;;;;;;;CAO1C,CAAC,CAAC;AAEH,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,0BAA0B,EAC1B;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,CAAC;YAC1C,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,eAAe,EAAE,KAAK;gBACtB,KAAK,EAAE,CAAC,QAAQ,CAAC;aAClB,CAAC;QACJ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,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YACxC,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC"}
@@ -4,7 +4,7 @@ import type { SessionData } from '%authHooksImports';
4
4
  import type React from 'react';
5
5
 
6
6
  import { userSessionClient } from '$userSessionClient';
7
- import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
7
+ import { graphql } from '%graphqlImports';
8
8
  import { AuthSessionContext } from '%localAuthHooksImports';
9
9
  import { ErrorableLoader } from '%reactComponentsImports';
10
10
  import { logError } from '%reactErrorImports';
@@ -15,6 +15,15 @@ interface UserSessionProviderProps {
15
15
  children: React.ReactNode;
16
16
  }
17
17
 
18
+ const getCurrentUserSessionQuery = graphql(`
19
+ query CurrentUserSession {
20
+ currentUserSession {
21
+ userId
22
+ roles
23
+ }
24
+ }
25
+ `);
26
+
18
27
  export function UserSessionProvider({
19
28
  children,
20
29
  }: UserSessionProviderProps): React.JSX.Element {
@@ -24,7 +33,7 @@ export function UserSessionProvider({
24
33
  const apolloClient = useApolloClient();
25
34
 
26
35
  const { data: sessionQueryData, error: sessionError } = useQuery(
27
- GetCurrentUserSessionDocument,
36
+ getCurrentUserSessionQuery,
28
37
  {
29
38
  notifyOnNetworkStatusChange: true,
30
39
  },
@@ -5,7 +5,6 @@ export declare const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_GENERATED: {
5
5
  SessionData: {
6
6
  isTypeOnly: true;
7
7
  };
8
- useCurrentUser: {};
9
8
  useLogOut: {};
10
9
  useRequiredUserId: {};
11
10
  useSession: {};
@@ -30,29 +29,18 @@ export declare const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_GENERATED: {
30
29
  task: import("@baseplate-dev/sync").GeneratorTask<{
31
30
  placeholderAuthCorePlaceholderAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").PlaceholderAuthCorePlaceholderAuthHooksRenderers>;
32
31
  }, {
33
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
34
- '*': {};
35
- }>>;
36
32
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").PlaceholderAuthCorePlaceholderAuthHooksPaths>;
37
33
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
38
34
  }, undefined>;
39
35
  };
40
36
  templates: {
41
37
  hooksGroup: {
42
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
43
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
44
- '*': {};
45
- }>>;
46
- }, {
47
- useSession: {};
48
- }>;
49
38
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
50
39
  useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
51
40
  useSession: {};
52
41
  }>;
53
42
  useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
54
43
  };
55
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
56
44
  };
57
45
  };
58
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlE,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export interface PlaceholderAuthCorePlaceholderAuthHooksPaths {
2
- useCurrentUser: string;
3
- useCurrentUserGql: string;
4
2
  useLogOut: string;
5
3
  useRequiredUserId: string;
6
4
  useSession: string;
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4CAA4C;IAC3D,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AA8BD,eAAO,MAAM,kDAAkD;;;;;;;CAG9D,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4CAA4C;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AA4BD,eAAO,MAAM,kDAAkD;;;;;;;CAG9D,CAAC"}
@@ -11,8 +11,6 @@ const placeholderAuthCorePlaceholderAuthHooksPathsTask = createGeneratorTask({
11
11
  return {
12
12
  providers: {
13
13
  placeholderAuthCorePlaceholderAuthHooksPaths: {
14
- useCurrentUser: `${srcRoot}/hooks/use-current-user.ts`,
15
- useCurrentUserGql: `${srcRoot}/hooks/use-current-user.gql`,
16
14
  useLogOut: `${srcRoot}/hooks/use-log-out.ts`,
17
15
  useRequiredUserId: `${srcRoot}/hooks/use-user-id-or-throw.ts`,
18
16
  useSession: `${srcRoot}/hooks/use-session.ts`,
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAU9E,MAAM,4CAA4C,GAChD,kBAAkB,CAChB,oDAAoD,CACrD,CAAC;AAEJ,MAAM,gDAAgD,GAAG,mBAAmB,CAAC;IAC3E,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,4CAA4C,EAC1C,4CAA4C,CAAC,MAAM,EAAE;KACxD;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,4CAA4C,EAAE;oBAC5C,cAAc,EAAE,GAAG,OAAO,4BAA4B;oBACtD,iBAAiB,EAAE,GAAG,OAAO,6BAA6B;oBAC1D,SAAS,EAAE,GAAG,OAAO,uBAAuB;oBAC5C,iBAAiB,EAAE,GAAG,OAAO,gCAAgC;oBAC7D,UAAU,EAAE,GAAG,OAAO,uBAAuB;iBAC9C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,QAAQ,EAAE,4CAA4C;IACtD,IAAI,EAAE,gDAAgD;CACvD,CAAC"}
1
+ {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,MAAM,4CAA4C,GAChD,kBAAkB,CAChB,oDAAoD,CACrD,CAAC;AAEJ,MAAM,gDAAgD,GAAG,mBAAmB,CAAC;IAC3E,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,4CAA4C,EAC1C,4CAA4C,CAAC,MAAM,EAAE;KACxD;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,4CAA4C,EAAE;oBAC5C,SAAS,EAAE,GAAG,OAAO,uBAAuB;oBAC5C,iBAAiB,EAAE,GAAG,OAAO,gCAAgC;oBAC7D,UAAU,EAAE,GAAG,OAAO,uBAAuB;iBAC9C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,QAAQ,EAAE,4CAA4C;IACtD,IAAI,EAAE,gDAAgD;CACvD,CAAC"}
@@ -1,22 +1,16 @@
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 { PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES } from './typed-templates.js';
4
4
  export interface PlaceholderAuthCorePlaceholderAuthHooksRenderers {
5
5
  hooksGroup: {
6
6
  render: (options: Omit<RenderTsTemplateGroupActionInput<typeof PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES.hooksGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
- useCurrentUserGql: {
9
- render: (options: Omit<RenderTextTemplateFileActionInput<typeof PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES.useCurrentUserGql>, 'destination' | 'template'>) => BuilderAction;
10
- };
11
8
  }
12
9
  export declare const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_RENDERERS: {
13
10
  provider: import("@baseplate-dev/sync").ProviderType<PlaceholderAuthCorePlaceholderAuthHooksRenderers>;
14
11
  task: import("@baseplate-dev/sync").GeneratorTask<{
15
12
  placeholderAuthCorePlaceholderAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<PlaceholderAuthCorePlaceholderAuthHooksRenderers>;
16
13
  }, {
17
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
18
- '*': {};
19
- }>>;
20
14
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").PlaceholderAuthCorePlaceholderAuthHooksPaths>;
21
15
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
22
16
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/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;AAUzD,OAAO,EAAE,sDAAsD,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,WAAW,gDAAgD;IAC/D,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,sDAAsD,CAAC,UAAU,CACzE,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE;QACjB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,sDAAsD,CAAC,iBAAiB,CAChF,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAkDD,eAAO,MAAM,sDAAsD;;;;;;;;;;;CAGlE,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD,OAAO,EAAE,sDAAsD,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,WAAW,gDAAgD;IAC/D,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,sDAAsD,CAAC,UAAU,CACzE,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqCD,eAAO,MAAM,sDAAsD;;;;;;;;CAGlE,CAAC"}